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