"use strict";var D=Object.create;var d=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var H=Object.getPrototypeOf;var U=Object.prototype.hasOwnProperty;var S=(e,i)=>d(e,"name",{value:i,configurable:true});var z=(e,i)=>{for(var t in i)d(e,t,{get:i[t],enumerable:true})};var I=(e,i,t,o)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let s of E(i))if(!U.call(e,s)&&s!==t)d(e,s,{get:()=>i[s],enumerable:!(o=l(i,s))||o.enumerable})}return e};var P=(e,i,t)=>(t=e!=null?D(H(e)):{},I(i||!e||!e.__esModule?d(t,"default",{value:e,enumerable:true}):t,e));var F=e=>I(d({},"__esModule",{value:true}),e);var h=(e,i,t,o)=>{var s=o>1?void 0:o?l(i,t):i;for(var a=e.length-1,n;a>=0;a--)if(n=e[a])s=(o?n(i,t,s):n(s))||s;if(o&&s)d(i,t,s);return s};var q={};z(q,{default:()=>Y});module.exports=F(q);var v=require("react/jsx-runtime");var p=require("mobx-react");var m=require("react");var u=require("react-sortable-hoc");var M=P(require("./TabItem"));let g=class extends m.Component{render(){const{services:i,setActive:t,reload:o,toggleNotifications:s,toggleAudio:a,toggleDarkMode:n,deleteService:f,clearCache:w,disableService:b,enableService:k,hibernateService:N,wakeUpService:W,openSettings:y,showMessageBadgeWhenMutedSetting:A,showServiceNameSetting:C,showMessageBadgesEvenWhenMuted:x,useHorizontalStyle:B}=this.props;return(0,v.jsx)("ul",{className:"tabs",onWheel:r=>{if(B){const c=r.currentTarget;c.scrollBy({left:r.deltaY})}},children:i.map((r,c)=>(0,v.jsx)(M.default,{clickHandler:()=>t({serviceId:r.id}),service:r,index:c,shortcutIndex:c+1,reload:()=>o({serviceId:r.id}),toggleNotifications:()=>s({serviceId:r.id}),toggleAudio:()=>a({serviceId:r.id}),toggleDarkMode:()=>n({serviceId:r.id}),deleteService:()=>f({serviceId:r.id}),clearCache:()=>w({serviceId:r.id}),disableService:()=>b({serviceId:r.id}),enableService:()=>k({serviceId:r.id}),hibernateService:()=>N({serviceId:r.id}),wakeUpService:()=>W({serviceId:r.id}),openSettings:y,showMessageBadgeWhenMutedSetting:A,showMessageBadgesEvenWhenMuted:x,showServiceNameSetting:C},r.id))})}};S(g,"TabBarSortableList");g=h([p.observer],g);var Y=(0,u.SortableContainer)(g);
