"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[93549],{190869(e,r,o){o.d(r,{A:()=>_});var n=o(274934),t=o(977872),d=o(125799),l=o(938984),a=o(853777),s=o(247816),i=o(309130),c=o(793442),u=o(100978),b=o(470070),g=o(309476),k=o(291935),A=o(726831),h=o(81811);const p="enabled",$="inUse",x="notAvailable",O="blacklisted",N="blockedForOutdoor",C=(0,s.A)("div")`
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 2px;
  margin-left: 2px;

  ${({theme:{themeName:e}})=>`\n\n  &.${$} {\n    background: ${g.Y.inUse[`${e}-background`]};\n  }\n  \n  &.${p} {\n    background: ${g.Y.enabled[`${e}-background`]};\n    border: ${g.Y.enabled[`${e}-border`]};\n  }\n\n  &.inUsePreview {\n    background: ${g.Y.inUsePreview["light-background"]};\n  }\n\n  &.nextAi {\n    background: ${g.Y.nextAi[`${e}-background`]};\n  }\n\n  &.suggested {\n    background: ${g.Y.suggested[`${e}-background`]};\n    border: ${g.Y.suggested[`${e}-border`]};\n  }\n\n  &.dfs {\n    background: ${g.Y.dfsLegend[`${e}-background`]};\n    border: ${g.Y.dfsLegend[`${e}-border`]};\n  }\n  \n  &.${N} {\n    background: ${g.Y.blockedForOutdoor[`${e}-background`]};\n    border: ${g.Y.blockedForOutdoor[`${e}-border`]};\n    background-size: 3px 3px;\n  }\n\n  &.${x} {\n    background: ${g.Y.notAvailable[`${e}-background`]};\n  }\n\n  &.utilization {\n    background: ${g.Y.utilization[`${e}-background`]};\n  }\n\n  &.${O} {\n    background: ${g.Y.blacklisted[`${e}-background`]};\n  }\n\n  `}
`,y=({className:e,label:r,icon:o})=>(0,n.jsxs)(u.A,{alignItems:"center",gap:i.YC,children:[(0,n.jsx)(C,{className:e}),(0,n.jsx)(l.A,{variant:"caption",children:r}),o]}),_=({showBlacklisted:e,stateType:r,hasAfcSupport:o,containerProps:l})=>(0,n.jsxs)(u.A,{gap:i.xO,justifyContent:l?.justifyContent||"center",...l,children:[[h.xd.NORMAL,h.xd.OPTIMIZING].includes(r)?(0,n.jsx)(y,{className:$,label:(0,n.jsx)(b.sA,{id:"COMMON_IN_USE"})}):null,(0,n.jsx)(y,{className:p,label:(0,n.jsx)(b.sA,{id:"COMMON_ENABLED"})}),(0,n.jsx)(y,{className:"dfs",label:(0,n.jsx)(b.sA,{id:"COMMON_DEVICE_RADIO_CHANNEL_DFS"})}),o?(0,n.jsx)(y,{className:N,label:(0,n.jsx)(b.sA,{id:"COMMON_CHANNEL_BLOCKED_FOR_OUTDOOR"}),icon:(0,n.jsx)(d.A,{description:(0,n.jsx)(b.sA,{id:"COMMON_CHANNEL_AFC_RESTRICTION_TOOLTIP",values:{link:(0,n.jsx)(c.A,{href:A.A.afcArticle,id:"COMMON_LEARN_MORE"})}}),portal:!0,isInteractive:!0,children:(0,n.jsx)(a.A,{isActive:!0,size:"medium"})})}):null,(0,n.jsx)(y,{className:x,label:(0,n.jsx)(b.sA,{id:"COMMON_NOT_AVAILABLE"}),icon:(0,n.jsx)(d.A,{description:(0,n.jsx)(b.sA,{id:"COMMON_WIFI_CHANNELIZATION_NOT_AVAILABLE_REGION",values:{countryCode:(0,t.d4)(k.AP)}}),portal:!0,children:(0,n.jsx)(a.A,{isActive:!0,size:"medium"})})}),e?(0,n.jsx)(y,{className:O,label:(0,n.jsx)(b.sA,{id:"COMMON_EXCLUDED"})}):null]})},61346(e,r,o){o.d(r,{A:()=>le});var n=o(274934),t=o(602086),d=o(977872),l=o(920048),a=o(569994),s=o(877784),i=o(500785),c=o(221008),u=o(658473),b=o(222102),g=o(845274),k=o(956978),A=o(927316),h=o(754924);const p=(0,b.Mz)(h.ID,e=>{const r={};for(let o=0;o<e.length;o+=1){const n=e[o];if(!(0,k.r$V)(n))for(let e=0;e<(n.radio_table?.length||0);e+=1){const o=n.radio_table[e],t=n.radio_table_stats?.find(({name:e})=>e===o.name);if(t){const e=`${o.radio}-${o.ht}`;r[e]||(r[e]=[]),r[e].push(t.channel)}}}return r}),$=(0,b.Mz)(h.ID,e=>{const r={};for(let o=0;o<e.length;o+=1){const n=e[o];if(!(0,k.r$V)(n))for(let e=0;e<(n.radio_table?.length||0);e+=1){const o=n.radio_table[e],t=n.radio_table_stats?.find(({name:e})=>e===o.name);if(t){const e=(0,A.Lm)(n.radio_table_stats,o),d=`${o.radio}-${o.ht}-${t.channel}`;r[d]||(r[d]=[]),r[d].push({channelWidth:o.ht,channel:t.channel,client:t.num_sta,interference:e?.interference,txRetry:e?.selfTx,utilization:e?.total})}}}return Object.keys(r).reduce((e,o)=>{const n=r[o],t=r[o].length;return e[o]={client:(0,g.A)(n.map(e=>e.client)),interference:(0,u.rc)((0,g.A)(n.map(e=>e.interference))/t),txRetry:(0,u.rc)((0,g.A)(n.map(e=>e.txRetry))/t),utilization:(0,u.rc)((0,g.A)(n.map(e=>e.utilization))/t),ap:t},e},{})});var x=o(813681),O=o(814557),N=o(125799),C=o(900302),y=o(938984),_=o(600191),f=o(247816),I=o(309130),L=o(761801),j=o(100978),E=o(577384),m=o(470070);const M=(0,f.A)(_.A)`
  margin-top: ${I.YC};
  color: ${({theme:{themeName:e}})=>O.Ay[`desktop-color-orange-06-${e}`]};
`,T=()=>(0,n.jsxs)(j.A,{alignItems:"flex-start",gap:I.YC,children:[(0,n.jsx)(M,{size:"original"}),(0,n.jsx)(y.A,{color:"inherit",children:(0,n.jsx)(m.sA,{id:"COMMON_CHANNEL_WILL_BLOCK_ALL"})})]}),v={blacklisted:"COMMON_EXCLUDED",enable:"COMMON_ENABLED",inUse:"COMMON_IN_USE"},Y=(0,f.A)("div")`
  text-align: right;
`,S=({label:e,value:r})=>(0,n.jsxs)(j.A,{justifyContent:"space-between",gap:I.Ln,children:[(0,n.jsx)("div",{children:e}),(0,n.jsx)(Y,{children:(0,n.jsx)(y.A,{size:"small",children:r})})]}),U=({state:e,data:r})=>(0,n.jsxs)(j.A,{flexDirection:"column",gap:I.YC,children:[(0,n.jsx)(S,{label:(0,n.jsx)(m.sA,{id:"COMMON_STATUS"}),value:(0,n.jsx)(m.sA,{id:v[e]})}),r?.utilization?(0,n.jsx)(S,{label:(0,n.jsx)(m.sA,{id:"COMMON_UTILIZATION"}),value:`${r.utilization}%`}):null,r?.interference?(0,n.jsx)(S,{label:(0,n.jsx)(m.sA,{id:"COMMON_INTERFERENCE"}),value:`${r.interference}%`}):null,r?.ap?(0,n.jsx)(S,{label:(0,n.jsx)(m.sA,{id:"COMMON_ACCESS_POINTS"}),value:r.ap}):null,r?.client?(0,n.jsx)(S,{label:(0,n.jsx)(m.sA,{id:"COMMON_CLIENTS"}),value:r.client}):null,r?.txRetry?(0,n.jsx)(S,{label:(0,n.jsx)(m.sA,{id:"COMMON_TX_RETRIES"}),value:`${r.txRetry}%`}):null,(0,n.jsx)(j.A,{children:(0,n.jsx)(y.A,{color:"text-3",size:"small",children:(0,n.jsx)(m.sA,{id:e===x.d.BLACKLISTED?"COMMON_CHANNEL_CLICK_TO_INCLUDE_CHANNEL":"COMMON_CHANNEL_CLICK_TO_EXCLUDE_CHANNEL"})})})]}),R=({children:e,channel:r,controlChannel:o,channelWidth:t,state:d,isDfs:l,notAvailable:a,willBlockAll:s,radioType:i,data:c,cursorType:u})=>{const{formatMessage:b}=(0,m.tz)(),g=a?(0,n.jsx)(E.A,{}):s?(0,n.jsx)(T,{}):null;return(0,n.jsx)(N.A,{width:s?300:void 0,description:g||(0,n.jsx)(U,{state:d,data:c}),title:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(y.A,{color:"inherit",weight:"bold",children:[(0,n.jsx)(m.sA,{id:"COMMON_CHANNEL_PLAN_CONTROL_CHANNEL"})," ",o]}),(0,n.jsx)(C.A,{}),(0,n.jsx)(y.A,{color:"inherit",weight:"bold",size:"small",children:(0,n.jsxs)(j.A,{flexDirection:"row",gap:I.kc,children:[(0,n.jsxs)(j.A,{children:[(0,n.jsx)(m.sA,{id:"COMMON_CHANNEL"})," ",r,l?` (${b({id:"COMMON_DEVICE_RADIO_CHANNEL_DFS"})})`:""]}),(0,n.jsx)(j.A,{children:(0,n.jsx)(L.A,{radio:i})}),(0,n.jsxs)(j.A,{children:[t," ",(0,n.jsx)(m.sA,{id:"COMMON_UNIT_MHZ"})]})]})})]}),portal:!0,noWrap:!0,cursorType:u,children:e})};var D,w=o(263705),F=o(409844),P=o(291508),H=o(897166),B=o(309476),z=o(81811);!function(e){e.HALF_RIGHT="halfRight",e.FULL="full"}(D||(D={}));const K="inUse",G="enable",V="dfs",Z="blockedForOutdoor",W="notAvailable",X="selected",J="blacklisted",q="blacklistedDfs",Q=(0,f.A)("button")`
  position: relative;
  user-select: none;
  background: transparent;
  color: inherit;

  border: none;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 2px;
  overflow: hidden;
  width: 100%;
  height: 100%;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
  }

  ${({onClick:e,disabled:r})=>e&&!r?"cursor: pointer;":""}
`,ee=({themeName:e})=>F.AH`
  border: 1px solid transparent;

  &.${K} {
    background: ${B.Y.inUse[`${e}-background`]};
    border: ${B.Y.inUse[`${e}-border`]};
  }

  &.${"inUsePreview"} {
    background: ${B.Y.inUsePreview[`${e}-background`]};
  }

  &.${"nextAi"} {
    background: ${B.Y.nextAi[`${e}-background`]};
  }

  &.${"suggested"} {
    background: ${B.Y.suggested[`${e}-background`]};
    border: ${B.Y.suggested[`${e}-border`]};
  }

  &.${G} {
    background: ${B.Y.enable[`${e}-background`]};
    border: ${B.Y.enable[`${e}-border`]};
  }

  &.${V} {
    border: ${B.Y.dfs[`${e}-border`]};
    background: ${B.Y.dfs[`${e}-background`]};

    .${G} & {
      border: none;
    }
  }

  &.${V}.${K} {
    border: ${B.Y.dfsInUse[`${e}-border`]};
    background: ${B.Y.dfsInUse[`${e}-background`]};
  }

  &.${W} {
    background: ${B.Y.notAvailable[`${e}-background`]};
    border: ${B.Y.notAvailable[`${e}-border`]};
  }

  &.${Z} {
    background: ${B.Y.blockedForOutdoor[`${e}-background`]};
    background-size: 4px 4px;
    border: ${B.Y.blockedForOutdoor[`${e}-border`]};
  }

  &.${Z}.${K} {
    background: ${B.Y.blockedForOutdoorInUse[`${e}-background`]};
    border: ${B.Y.blockedForOutdoorInUse[`${e}-border`]};
  }

  &.${"blacklistedRight"} {
    background: ${B.Y.enable[`${e}-background`]};

    ::before {
      left: 50%;
      background: ${B.Y.blacklisted[`${e}-background`]};
    }

    border: ${B.Y.enable[`${e}-border`]};
  }

  &.${"blacklistedLeft"} {
    background: ${B.Y.enable[`${e}-background`]};

    ::before {
      right: 50%;
      background: ${B.Y.blacklisted[`${e}-background`]};
    }

    border: ${B.Y.enable[`${e}-border`]};
  }

  &.${J} {
    background: ${B.Y.blacklisted[`${e}-background`]};
    border: ${B.Y.blacklisted[`${e}-border`]};
  }

  &.${q} {
    background: ${B.Y.blacklistedDfs[`${e}-background`]};
    border: ${B.Y.blacklistedDfs[`${e}-border`]};
  }

  &.${X} {
    border: ${B.Y.selected[`${e}-border`]};
  }
`,re=({themeName:e})=>F.AH`
  &:hover {
    border: ${B.Y.selected[`${e}-border`]} !important;

    & > div {
      border: none;
    }
  }
`,oe=(e,r,o,n,t,d)=>{let l=r;return r===x.d.IN_USE?[z.xd.NORMAL,z.xd.OPTIMIZING].includes(e.type)&&(l=K):r===x.d.BLACKLISTED&&(l=o?q:J),t&&(l=W),[{[Z]:n&&!t},l,{[V]:o,[X]:d&&!t}]},ne=(0,f.A)("div",(0,P.A)("right"))`
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  ${({right:e})=>e?"left: 50%;":"right: 50%;"}
`,te=(0,t.forwardRef)(({channel:e,radioAnalysisState:r,preview:o,dfs:t,isBlockedForOutdoor:l,notAvailable:a,selected:s,state:i,...c},u)=>{const b=(0,w.u)(),g=(0,d.d4)(H.EL)?void 0:c.onClick;return(0,n.jsx)(Q,{...c,onClick:g,className:(0,F.cx)(ee(b),oe(r,i,t===D.FULL,l,a,s),g&&re(b)),type:"button",ref:u,children:t===D.HALF_RIGHT?(0,n.jsx)(ne,{right:!0,className:(0,F.cx)(ee(b),oe(r,i,!0,l,a,s))}):null})}),de=(e,r)=>{const o=r.includes(e[0]),n=r.includes(e.at(-1));if(o||n)return n&&!o?D.HALF_RIGHT:D.FULL},le=({sectionId:e,blacklistedChannels:r,onChangeBlacklistedChannels:o,radioAnalysisState:b,hideLegend:g,disableActions:k,channelsTableStyle:A})=>{const{band:h}=l.kL[e],O=(0,d.d4)(c.H),N=(0,d.d4)($),C=(0,d.d4)(p),y=(0,t.useMemo)(()=>(0,i.r)(O,null,h,null,!0),[h,O]),_=(0,t.useMemo)(()=>(0,i.r)(O,null,h,Number(a.P)).filter(e=>!r.has((0,u.PA)(h,a.P,e))),[h,r,O]);return(0,n.jsx)(l.Ay,{sectionId:e,hideLegend:g,channelsTableStyle:A,renderChannel:({channel:e,channelWidth:t,custom:d})=>{if(d)return d;const{subChannels:l,band:c}=s.R[h]?.[t]?.[+e]??{};if(!l?.length)return null;const g=(0,i.r)(O,null,h,Number(t)),A=(0,u.o)(l,C[`${h}-${t}`]),p=A||l[0],$=(0,u.JE)(l,h,a.P,r)||(A?x.d.IN_USE:x.d.ENABLE),f=l.some(e=>!g.includes(e)),I=$!==x.d.BLACKLISTED&&_?.length<=l?.length&&_?.every(e=>l?.includes(e)),L=(0,n.jsx)(te,{channel:e,radioAnalysisState:b,state:$,onClick:f||I||k?void 0:()=>{const e=new Set([...r]);l.forEach(r=>{const o=(0,u.PA)(h,a.P,r);$===x.d.BLACKLISTED?e.delete(o):e.add(o)}),o(e)},dfs:de(l,y),isBlockedForOutdoor:Boolean(c&&u.Oh.includes(c)),notAvailable:f,preview:!1});return k?L:(0,n.jsx)(R,{channel:e,controlChannel:p,channelWidth:t,state:$,isDfs:y.includes(p),radioType:h,data:N[`${h}-${t}-${p}`],notAvailable:f,willBlockAll:I,children:L},e)}})}},309476(e,r,o){o.d(r,{Y:()=>a});var n=o(814557);const t=(e,r)=>`repeating-linear-gradient(\n  -45deg,\n  ${e},\n  ${e} 1px,\n  ${r} 1px,\n  ${r} 5px\n)`,d=(e,r)=>`repeating-linear-gradient(\n  -45deg,\n  ${e},\n  ${e} 1px,\n  ${r} 1px,\n  ${r} 3px\n)`,l=(e,r)=>`radial-gradient(\n  circle at 2px 1px, ${e} 1px, ${r} 0\n)`,a={inUse:{"light-background":n.Ay["desktop-color-green-06-light"],"dark-background":n.Ay["desktop-color-green-06-dark"],"light-border":`1px solid ${n.Ay["desktop-color-green-05-light"]}`,"dark-border":`1px solid ${n.Ay["desktop-color-green-05-dark"]}`},enabled:{"light-background":n.Ay["desktop-color-neutral-03-light"],"dark-background":n.Ay["desktop-color-neutral-03-dark"],"light-border":`1px solid ${n.Ay["desktop-color-neutral-06-light"]}`,"dark-border":`1px solid ${n.Ay["desktop-color-neutral-06-dark"]}`},inUsePreview:{"light-background":n.Ay["desktop-color-green-03-light"]},nextAi:{"light-background":n.Ay["desktop-color-green-06-light"],"dark-background":n.Ay["desktop-color-green-06-dark"]},suggested:{"light-background":n.Ay["desktop-color-green-06-light"],"light-border":`1px solid ${n.Ay["desktop-color-green-07-light"]}`,"dark-background":n.Ay["desktop-color-green-06-dark"],"dark-border":`1px solid ${n.Ay["desktop-color-green-07-dark"]}`},enable:{"light-background":n.Ay["desktop-color-neutral-03-light"],"dark-background":n.Ay["desktop-color-neutral-03-dark"],"light-border":`1px solid ${n.Ay["desktop-color-neutral-06-light"]}`,"dark-border":`1px solid ${n.Ay["desktop-color-neutral-06-dark"]}`},dfs:{"light-border":`1px solid ${n.Ay["desktop-color-neutral-06-light"]}`,"light-background":t(n.Ay["desktop-color-neutral-03-light"],n.Ay["desktop-color-neutral-00-light"]),"dark-border":`1px solid ${n.Ay["desktop-color-neutral-06-dark"]}`,"dark-background":t("#333539","#282B2F")},dfsLegend:{"light-border":`1px solid ${n.Ay["desktop-color-neutral-06-light"]}`,"light-background":d(n.Ay["desktop-color-neutral-03-light"],n.Ay["desktop-color-neutral-00-light"]),"dark-border":`1px solid ${n.Ay["desktop-color-neutral-06-dark"]}`,"dark-background":d("#333539","#282B2F")},dfsInUse:{"light-background":t(n.Ay["desktop-color-neutral-05-light"],n.Ay["desktop-color-green-06-light"]),"dark-background":t(n.Ay["desktop-color-neutral-05-dark"],n.Ay["desktop-color-green-06-dark"])},blockedForOutdoor:{"light-background":l(n.Ay["desktop-color-neutral-03-light"],"transparent"),"dark-background":l(n.Ay["desktop-color-neutral-03-dark"],"transparent"),"light-border":`1px solid ${n.Ay["desktop-color-neutral-06-light"]}`,"dark-border":`1px solid ${n.Ay["desktop-color-neutral-06-dark"]}`},blockedForOutdoorInUse:{"light-background":l(n.Ay["desktop-color-neutral-05-light"],n.Ay["desktop-color-green-06-light"]),"dark-background":l(n.Ay["desktop-color-neutral-05-dark"],n.Ay["desktop-color-green-06-dark"])},notAvailable:{"light-background":n.Ay["desktop-color-orange-03-light"],"dark-background":n.Ay["desktop-color-orange-01-dark"],"light-border":`1px solid ${n.Ay["desktop-color-orange-04-light"]}`,"dark-border":`1px solid ${n.Ay["desktop-color-orange-02-dark"]}`},utilization:{"light-background":n.Ay["desktop-color-orange-05-light"],"dark-background":n.Ay["desktop-color-orange-05-dark"]},selected:{"light-border":`1px solid ${n.Ay["desktop-color-ublue-06-light"]}`,"dark-border":`1px solid ${n.Ay["desktop-color-ublue-06-dark"]}`},blacklisted:{"light-background":n.Ay["desktop-color-red-02-light"],"dark-background":n.Ay["desktop-color-red-02-dark"],"light-border":`1px solid ${n.Ay["desktop-color-red-01-light"]}`,"dark-border":`1px solid ${n.Ay["desktop-color-red-01-dark"]}`},blacklistedDfs:{"light-background":t(n.Ay["desktop-color-red-03-light"],n.Ay["desktop-color-red-02-light"]),"dark-background":t(n.Ay["desktop-color-red-03-dark"],n.Ay["desktop-color-red-02-dark"]),"light-border":`1px solid ${n.Ay["desktop-color-red-03-light"]}`,"dark-border":`1px solid ${n.Ay["desktop-color-red-03-dark"]}`}}},813681(e,r,o){var n;o.d(r,{d:()=>n}),function(e){e.IN_USE="inUse",e.ENABLE="enable",e.BLACKLISTED="blacklisted",e.BLACKLISTED_RIGHT="blacklistedRight",e.BLACKLISTED_LEFT="blacklistedLeft"}(n||(n={}))},81811(e,r,o){o.d(r,{RC:()=>s,gO:()=>a,xd:()=>n});var n,t=o(602086),d=o(977872),l=o(893147);!function(e){e.NORMAL="normal",e.OPTIMIZING="optimizing"}(n||(n={}));const a=e=>[n.OPTIMIZING].includes(e.type),s=()=>{const[e,r]=(0,t.useState)({type:n.NORMAL}),o=(0,d.d4)(l.ax);return(0,t.useEffect)(()=>{o?r({type:n.OPTIMIZING}):e.type===n.OPTIMIZING&&r({type:n.NORMAL})},[o,e.type]),{state:e}}},658473(e,r,o){o.d(r,{Oh:()=>a,JE:()=>u,o:()=>g,_5:()=>c,rc:()=>b,NT:()=>i,PA:()=>s});var n,t=o(569994),d=o(561614);!function(e){e.UNII6="unii6",e.UNII8="unii8"}(n||(n={}));var l=o(813681);const a=[n.UNII6,n.UNII8],s=(e,r,o)=>`${e}.${r}.${o}`,i=e=>`${e.radio}.${t.P}.${e.channel}`,c=e=>{const[r,o,n]=e.split(".");return{radio:r,channel_width:o,channel:n}},u=(e,r,o,n)=>{if(r===d.sx.RADIO_6E){const t=n.has(s(r,o,e.at(-1)));if(t!==n.has(s(r,o,e[0])))return t?l.d.BLACKLISTED_RIGHT:l.d.BLACKLISTED_LEFT}return e.every(e=>n.has(s(r,o,e)))?l.d.BLACKLISTED:void 0},b=e=>Math.floor(100*e)/100,g=(e,r)=>e.find(e=>r?.includes(e))},891679(e,r,o){o.d(r,{A:()=>$});var n=o(274934),t=o(602086),d=o(20277),l=o(762705),a=o(947414),s=o(470070),i=o(409844),c=o(309130);const u=i.AH`
  margin-left: ${c.kc};
  min-width: 16px;
  height: 16px;
  width: fit-content;
`;var b=o(95032),g=o(247816),k=o(100978);const A=(0,g.A)(k.A)`
  border-radius: ${c.YC};
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  height: ${c.S2};
`,h=(0,g.A)(b.A)`
  width: 100%;
`,p=(0,g.A)(b.A)`
  margin-left: ${c.kc};
`,$=({id:e,onChange:r,checked:o,translationId:i,translationValues:c,children:b,disabled:g,count:k,countType:$,countVariant:x})=>{const O=0===k||"text"===x,N=(0,t.useCallback)(e=>{g||(e.stopPropagation(),e.preventDefault(),r())},[r,g]);return(0,n.jsxs)(A,{onClick:N,children:[(0,n.jsx)(l.A,{checked:o,id:e,onChange:a.P1,disabled:g}),(0,n.jsxs)(h,{color:g?"text-4":"text-2",size:"medium",isTruncated:!0,children:[i?(0,n.jsx)(s.sA,{id:i,values:c}):null,b]}),x?(0,n.jsx)(p,{color:g?"text-4":"text-3",size:"small",children:O?k:(0,n.jsx)(d.A,{type:$,value:+k,className:u,size:"small"})}):null]})}},233288(e,r,o){o.d(r,{A:()=>u});var n=o(274934),t=o(300842),d=o(247816),l=o(291508),a=o(309130),s=o(100978);const i=(0,d.A)(s.A,(0,l.A)("columns"))`
  display: grid;
  grid-template-columns: ${({columns:e=2})=>`repeat(${e}, calc((100% - ${e-1} * ${a.kc}) / ${e}))`};
  user-select: none;
  column-gap: ${a.kc};
  max-width: 100%;
`,c=(0,d.A)(s.A)`
  display: flex;
  flex-direction: column;
  user-select: none;
  max-width: 100%;
`,u=({label:e,height:r,isSingleColumn:o=!1,columns:d,isEditorOpen:l=!1,initialExpanded:a=!0,isStatic:s=!1,children:u,hasPaddedContent:b=!1})=>(0,n.jsx)(t.A,{label:e,initialExpanded:a,isStatic:s,hasPaddedContent:b,isEditorOpen:l,children:(0,n.jsx)(o?c:i,{height:r,columns:d,children:u})})},475378(e,r,o){o.d(r,{A:()=>h});var n=o(274934),t=o(602086),d=o(977872),l=o(938984),a=o(954702),s=o(244081),i=o(724081),c=o(250266),u=o(470070),b=o(501523),g=o(114350),k=o(598990),A=o(897166);const h=({onRestore:e})=>{const r=(0,d.wA)(),o=(0,d.d4)(b.U),h=(0,d.d4)(A.EL),p=(0,t.useCallback)(()=>{r((0,k.Iz)(o)),e&&e(o)},[r,o,e]),[$,x]=(0,t.useState)(!1);return(0,i.A)([(0,g.y)(void 0,{crudCacheStrategy:{type:s.e.CACHE}})],(0,n.jsx)(c.A,{title:"COMMON_RESTORE_TO_DEFAULTS",message:"COMMON_CHANNEL_DEFAULT_CONFIRMATION",buttonMessage:"COMMON_ACTION_RESET",buttonVariant:"danger",handleClose:()=>x(!1),handleConfirm:p,isOpen:$,children:(0,n.jsx)(a.A,{type:"button",onPress:()=>x(!0),isDisabled:h,children:(0,n.jsx)(l.A,{color:"inherit",size:"medium",children:(0,n.jsx)(u.sA,{id:"COMMON_RESTORE_TO_DEFAULTS"})})})}))}},648208(e,r,o){o.d(r,{O:()=>n,v:()=>t});const n=(e,r)=>[...new Set([...r||[],e])],t=(e,r)=>r.filter(r=>String(r)!==e)}}]);