"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[29676],{276035:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(296540),l=r(402210),o=r(314714),a=r(874807),d=r(699784),c=r(132196),i=r(566723);const s=c.AH`
  margin-left: ${i.kc};
  min-width: 16px;
  height: 16px;
  width: fit-content;
`;var u=r(705145),b=r(71479),g=r(294303);const k=(0,b.A)(g.A)`
  border-radius: ${i.YC};
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  height: ${i.S2};
`,A=(0,b.A)(u.A)`
  width: 100%;
`,$=(0,b.A)(u.A)`
  margin-left: ${i.kc};
`,p=({id:e,onChange:t,checked:r,translationId:c,translationValues:i,children:u,disabled:b,count:g,countType:p,countVariant:h})=>{const E=0===g||"text"===h,m=(0,n.useCallback)(e=>{b||(e.stopPropagation(),e.preventDefault(),t())},[t,b]);return n.createElement(k,{onClick:m},n.createElement(o.A,{checked:r,id:e,onChange:a.P1,disabled:b}),n.createElement(A,{color:b?"text-4":"text-2",size:"medium",isTruncated:!0},c?n.createElement(d.sA,{id:c,values:i}):null,u),h?n.createElement($,{color:b?"text-4":"text-3",size:"small"},E?g:n.createElement(l.A,{type:p,value:+g,className:s,size:"small"})):null)}},302737:(e,t,r)=>{r.d(t,{A:()=>k});var n=r(469733),l=r(296540),o=r(217439),a=r(592563),d=r(592510),c=r(582724),i=r(137625),s=r(699784),u=r(511690),b=r(358980),g=r(457311);const k=({onRestore:e})=>{const t=(0,n.useDispatch)(),r=(0,n.useSelector)(u.U),k=(0,l.useCallback)(()=>{t((0,g.Iz)(r)),e&&e(r)},[t,r]),[A,$]=(0,l.useState)(!1);return(0,c.A)([(0,b.y)(void 0,{crudCacheStrategy:{type:d.e.CACHE}})],l.createElement(i.A,{title:"COMMON_RESTORE_TO_DEFAULTS",message:"COMMON_CHANNEL_DEFAULT_CONFIRMATION",buttonMessage:"COMMON_ACTION_RESET",buttonVariant:"danger",handleClose:()=>$(!1),handleConfirm:k,isOpen:A},l.createElement(a.A,{type:"button",onPress:()=>$(!0)},l.createElement(o.E,{color:"inherit",size:"medium"},l.createElement(s.sA,{id:"COMMON_RESTORE_TO_DEFAULTS"})))))}},359719:(e,t,r)=>{r.d(t,{Oh:()=>d,JE:()=>u,o:()=>g,_5:()=>s,rc:()=>b,NT:()=>i,PA:()=>c});var n,l=r(736201),o=r(564985);!function(e){e.UNII6="unii6",e.UNII8="unii8"}(n||(n={}));var a=r(456618);const d=[n.UNII6,n.UNII8],c=(e,t,r)=>`${e}.${t}.${r}`,i=e=>`${e.radio}.${l.P}.${e.channel}`,s=e=>{const[t,r,n]=e.split(".");return{radio:t,channel_width:r,channel:n}},u=(e,t,r,n)=>{if(t===o.sx.RADIO_6E){const l=n.has(c(t,r,e[e.length-1]));if(l!==n.has(c(t,r,e[0])))return l?a.d.BLACKLISTED_RIGHT:a.d.BLACKLISTED_LEFT}return e.every(e=>n.has(c(t,r,e)))?a.d.BLACKLISTED:void 0},b=e=>Math.floor(100*e)/100,g=(e,t)=>e.find(e=>t?.includes(e))},456618:(e,t,r)=>{var n;r.d(t,{d:()=>n}),function(e){e.IN_USE="inUse",e.ENABLE="enable",e.BLACKLISTED="blacklisted",e.BLACKLISTED_RIGHT="blacklistedRight",e.BLACKLISTED_LEFT="blacklistedLeft"}(n||(n={}))},601628:(e,t,r)=>{r.d(t,{RC:()=>c,gO:()=>d,xd:()=>n});var n,l=r(469733),o=r(296540),a=r(67097);!function(e){e.NORMAL="normal",e.OPTIMIZING="optimizing"}(n||(n={}));const d=e=>[n.OPTIMIZING].includes(e.type),c=()=>{const[e,t]=(0,o.useState)({type:n.NORMAL}),r=(0,l.useSelector)(a.ax);return(0,o.useEffect)(()=>{r?t({type:n.OPTIMIZING}):e.type===n.OPTIMIZING&&t({type:n.NORMAL})},[r,e.type]),{state:e}}},707478:(e,t,r)=>{r.d(t,{A:()=>ce});var n=r(469733),l=r(296540),o=r(276420),a=r(736201),d=r(439173),c=r(762720),i=r(252959),s=r(359719),u=r(801081),b=r(250791),g=r(780811),k=r(170459),A=r(532419);const $=(0,u.Mz)(A.ID,e=>{const t={};for(let r=0;r<e.length;r+=1){const n=e[r];if(!(0,g.r$V)(n))for(let e=0;e<(n.radio_table?.length||0);e+=1){const r=n.radio_table[e],l=n.radio_table_stats?.find(({name:e})=>e===r.name);if(l){const e=`${r.radio}-${r.ht}`;t[e]||(t[e]=[]),t[e].push(l.channel)}}}return t}),p=(0,u.Mz)(A.ID,e=>{const t={};for(let r=0;r<e.length;r+=1){const n=e[r];if(!(0,g.r$V)(n))for(let e=0;e<(n.radio_table?.length||0);e+=1){const r=n.radio_table[e],l=n.radio_table_stats?.find(({name:e})=>e===r.name);if(l){const e=(0,k.Lm)(n.radio_table_stats,r),o=`${r.radio}-${r.ht}-${l.channel}`;t[o]||(t[o]=[]),t[o].push({channelWidth:r.ht,channel:l.channel,client:l.num_sta,interference:e?.interference,txRetry:e?.selfTx,utilization:e?.total})}}}return Object.keys(t).reduce((e,r)=>{const n=t[r],l=t[r].length;return e[r]={client:(0,b.A)(n.map(e=>e.client)),interference:(0,s.rc)((0,b.A)(n.map(e=>e.interference))/l),txRetry:(0,s.rc)((0,b.A)(n.map(e=>e.txRetry))/l),utilization:(0,s.rc)((0,b.A)(n.map(e=>e.utilization))/l),ap:l},e},{})});var h=r(456618),E=r(271856),m=r(84385),O=r(217439),N=r(823858),C=r(71479),y=r(566723),_=r(280062),f=r(294303),I=r(383225),L=r(699784);const x=(0,C.A)(N.A)`
  margin-top: ${y.YC};
  color: ${({theme:{motifPalette:{warning:e}}})=>e};
`,M=()=>l.createElement(f.A,{alignItems:"flex-start",gap:y.YC},l.createElement(x,{size:"original"}),l.createElement(O.A,{color:"inherit"},l.createElement(L.sA,{id:"COMMON_CHANNEL_WILL_BLOCK_ALL"}))),T={blacklisted:"COMMON_EXCLUDED",enable:"COMMON_ENABLED",inUse:"COMMON_IN_USE"},v=(0,C.A)("div")`
  text-align: right;
`,S=({label:e,value:t})=>l.createElement(f.A,{justifyContent:"space-between",gap:y.Ln},l.createElement("div",null,e),l.createElement(v,null,l.createElement(O.A,{size:"small"},t))),Y=({state:e,data:t})=>l.createElement(f.A,{flexDirection:"column",gap:y.YC},l.createElement(S,{label:l.createElement(L.sA,{id:"COMMON_STATUS"}),value:l.createElement(L.sA,{id:T[e]})}),t?.utilization?l.createElement(S,{label:l.createElement(L.sA,{id:"COMMON_UTILIZATION"}),value:`${t.utilization}%`}):null,t?.interference?l.createElement(S,{label:l.createElement(L.sA,{id:"COMMON_INTERFERENCE"}),value:`${t.interference}%`}):null,t?.ap?l.createElement(S,{label:l.createElement(L.sA,{id:"COMMON_ACCESS_POINTS"}),value:t.ap}):null,t?.client?l.createElement(S,{label:l.createElement(L.sA,{id:"COMMON_CLIENTS"}),value:t.client}):null,t?.txRetry?l.createElement(S,{label:l.createElement(L.sA,{id:"COMMON_TX_RETRIES"}),value:`${t.txRetry}%`}):null,l.createElement(f.A,null,l.createElement(O.A,{color:"text-3",size:"small"},l.createElement(L.sA,{id:e===h.d.BLACKLISTED?"COMMON_CHANNEL_CLICK_TO_INCLUDE_CHANNEL":"COMMON_CHANNEL_CLICK_TO_EXCLUDE_CHANNEL"})))),U=({children:e,channel:t,controlChannel:r,channelWidth:n,state:o,isDfs:a,notAvailable:d,willBlockAll:c,radioType:i,data:s,cursorType:u})=>{const{formatMessage:b}=(0,L.tz)(),g=d?l.createElement(I.A,null):c&&l.createElement(M,null);return l.createElement(E.A,{width:c?300:void 0,description:g||l.createElement(Y,{state:o,data:s}),title:l.createElement(l.Fragment,null,l.createElement(O.A,{color:"inherit",weight:"bold"},l.createElement(L.sA,{id:"COMMON_CHANNEL_PLAN_CONTROL_CHANNEL"})," ",r),l.createElement(m.A,null),l.createElement(O.A,{color:"inherit",weight:"bold",size:"small"},l.createElement(f.A,{flexDirection:"row",gap:y.kc},l.createElement(f.A,null,l.createElement(L.sA,{id:"COMMON_CHANNEL"})," ",t,a?` (${b({id:"COMMON_DEVICE_RADIO_CHANNEL_DFS"})})`:""),l.createElement(f.A,null,l.createElement(_.A,{radio:i})),l.createElement(f.A,null,n," ",l.createElement(L.sA,{id:"COMMON_UNIT_MHZ"}))))),portal:!0,noWrap:!0,cursorType:u},e)};var R,D=r(998837),w=r(132196),F=r(311785),P=r(709565),H=r(601628);!function(e){e.HALF_RIGHT="halfRight",e.FULL="full"}(R||(R={}));const B="inUse",z="inUsePreview",K="nextAi",G="suggested",V="enable",Z="dfs",W="blockedForOutdoor",j="notAvailable",X="selected",J="blacklisted",q="blacklistedDfs",Q="blacklistedRight",ee="blacklistedLeft",te=(0,C.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:t})=>e&&!t?"cursor: pointer;":""}
`,re=({themeName:e})=>w.AH`
  border: 1px solid transparent;

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

  &.${z} {
    background: ${P.Y.inUsePreview[`${e}-background`]};
  }

  &.${K} {
    background: ${P.Y.nextAi[`${e}-background`]};
  }

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

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

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

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

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

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

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

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

  &.${Q} {
    background: ${P.Y.enable[`${e}-background`]};

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

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

  &.${ee} {
    background: ${P.Y.enable[`${e}-background`]};

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

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

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

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

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

    & > div {
      border: none;
    }
  }
`,le=(e,t,r,n,l,o)=>{let a=t;return t===h.d.IN_USE?[H.xd.NORMAL,H.xd.OPTIMIZING].includes(e.type)&&(a=B):t===h.d.BLACKLISTED&&(a=r?q:J),l&&(a=j),[{[W]:n&&!l},a,{[Z]:r,[X]:o&&!l}]},oe=(0,C.A)("div",(0,F.A)("right"))`
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  ${({right:e})=>e?"left: 50%;":"right: 50%;"}
`,ae=(0,l.forwardRef)(({channel:e,radioAnalysisState:t,preview:r,dfs:n,isBlockedForOutdoor:o,notAvailable:a,selected:d,state:c,...i},s)=>{const u=(0,D.u)();return l.createElement(te,{...i,className:(0,w.cx)(re(u),le(t,c,n===R.FULL,o,a,d),i.onClick&&ne(u)),type:"button",ref:s},n===R.HALF_RIGHT?l.createElement(oe,{right:!0,className:(0,w.cx)(re(u),le(t,c,!0,o,a,d))}):null)}),de=(e,t)=>{const r=t.includes(e[0]),n=t.includes(e[e.length-1]);if(r||n)return n&&!r?R.HALF_RIGHT:R.FULL},ce=({sectionId:e,blacklistedChannels:t,onChangeBlacklistedChannels:r,radioAnalysisState:u,hideLegend:b,disableActions:g,channelsTableStyle:k})=>{const{band:A}=o.kL[e],E=(0,n.useSelector)(i.H),m=(0,n.useSelector)(p),O=(0,n.useSelector)($),N=(0,l.useMemo)(()=>(0,c.r)(E,null,A,null,!0),[A,E]),C=(0,l.useMemo)(()=>(0,c.r)(E,null,A,Number(a.P)).filter(e=>!t.has((0,s.PA)(A,a.P,e))),[A,t,E]);return l.createElement(o.Ay,{sectionId:e,hideLegend:b,channelsTableStyle:k,renderChannel:({channel:e,channelWidth:n,custom:o})=>{if(o)return o;const{subChannels:i,band:b}=d.R[A]?.[n]?.[+e]??{};if(!i?.length)return null;const k=(0,c.r)(E,null,A,Number(n)),$=O[`${A}-${n}`],p=(0,s.o)(i,$),y=p||i[0],_=(0,s.JE)(i,A,a.P,t)||(p?h.d.IN_USE:h.d.ENABLE),f=!i.some(e=>k.includes(e)),I=_!==h.d.BLACKLISTED&&C?.length<=i?.length&&C?.every(e=>i?.includes(e)),L=l.createElement(ae,{channel:e,radioAnalysisState:u,state:_,onClick:f||I||g?void 0:()=>{const e=new Set([...t]);i.forEach(t=>{const r=(0,s.PA)(A,a.P,t);_===h.d.BLACKLISTED?e.delete(r):e.add(r)}),r(e)},dfs:de(i,N),isBlockedForOutdoor:Boolean(b&&s.Oh.includes(b)),notAvailable:f,preview:!1});return g?L:l.createElement(U,{key:e,channel:e,controlChannel:y,channelWidth:n,state:_,isDfs:N.includes(y),radioType:A,data:m[`${A}-${n}-${y}`],notAvailable:f,willBlockAll:I},L)}})}},709565:(e,t,r)=>{r.d(t,{Y:()=>d});var n=r(822336);const l=(e,t)=>`repeating-linear-gradient(\n  -45deg,\n  ${e},\n  ${e} 1px,\n  ${t} 1px,\n  ${t} 5px\n)`,o=(e,t)=>`repeating-linear-gradient(\n  -45deg,\n  ${e},\n  ${e} 1px,\n  ${t} 1px,\n  ${t} 3px\n)`,a=(e,t)=>`radial-gradient(\n  circle at 2px 1px, ${e} 1px, ${t} 0\n)`,d={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":l(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":l("#333539","#282B2F")},dfsLegend:{"light-border":`1px solid ${n.Ay["desktop-color-neutral-06-light"]}`,"light-background":o(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":o("#333539","#282B2F")},dfsInUse:{"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"])},blockedForOutdoor:{"light-background":a(n.Ay["desktop-color-neutral-03-light"],"transparent"),"dark-background":a(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":a(n.Ay["desktop-color-neutral-05-light"],n.Ay["desktop-color-green-06-light"]),"dark-background":a(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":l(n.Ay["desktop-color-red-03-light"],n.Ay["desktop-color-red-02-light"]),"dark-background":l(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"]}`}}},727678:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(296540),l=r(445535),o=r(71479),a=r(566723),d=r(294303);const c=(0,o.A)(d.A)`
  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%;
`,i=(0,o.A)(d.A)`
  display: flex;
  flex-direction: column;
  user-select: none;
  max-width: 100%;
`,s=({label:e,height:t,isSingleColumn:r=!1,columns:o,isEditorOpen:a=!1,initialExpanded:d=!0,isStatic:s=!1,children:u,hasPaddedContent:b=!1})=>{const g=r?i:c;return n.createElement(l.A,{label:e,initialExpanded:d,isStatic:s,hasPaddedContent:b,isEditorOpen:a},n.createElement(g,{height:t,columns:o},u))}},769048:(e,t,r)=>{r.d(t,{A:()=>x});var n=r(469733),l=r(296540),o=r(271856),a=r(217439),d=r(162420),c=r(71479),i=r(566723),s=r(349107),u=r(294303),b=r(699784),g=r(709565),k=r(302167),A=r(765562),$=r(601628);const p="enabled",h="inUse",E="inUsePreview",m="nextAi",O="suggested",N="dfs",C="notAvailable",y="utilization",_="blacklisted",f="blockedForOutdoor",I=(0,c.A)("div")`
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 2px;
  margin-left: 2px;

  ${({theme:{themeName:e}})=>`\n\n  &.${h} {\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  &.${E} {\n    background: ${g.Y.inUsePreview["light-background"]};\n  }\n\n  &.${m} {\n    background: ${g.Y.nextAi[`${e}-background`]};\n  }\n\n  &.${O} {\n    background: ${g.Y.suggested[`${e}-background`]};\n    border: ${g.Y.suggested[`${e}-border`]};\n  }\n\n  &.${N} {\n    background: ${g.Y.dfsLegend[`${e}-background`]};\n    border: ${g.Y.dfsLegend[`${e}-border`]};\n  }\n  \n  &.${f} {\n    background: ${g.Y.blockedForOutdoor[`${e}-background`]};\n    border: ${g.Y.blockedForOutdoor[`${e}-border`]};\n    background-size: 3px 3px;\n  }\n\n  &.${C} {\n    background: ${g.Y.notAvailable[`${e}-background`]};\n  }\n\n  &.${y} {\n    background: ${g.Y.utilization[`${e}-background`]};\n  }\n\n  &.${_} {\n    background: ${g.Y.blacklisted[`${e}-background`]};\n  }\n\n  `}
`,L=({className:e,label:t,icon:r})=>l.createElement(u.A,{alignItems:"center",gap:i.YC},l.createElement(I,{className:e}),l.createElement(a.A,{variant:"caption"},t),r),x=({showBlacklisted:e,stateType:t,hasAfcSupport:r,containerProps:a})=>l.createElement(u.A,{gap:i.xO,justifyContent:a?.justifyContent||"center",...a},[$.xd.NORMAL,$.xd.OPTIMIZING].includes(t)?l.createElement(L,{className:h,label:l.createElement(b.sA,{id:"COMMON_IN_USE"})}):null,l.createElement(L,{className:p,label:l.createElement(b.sA,{id:"COMMON_ENABLED"})}),l.createElement(L,{className:N,label:l.createElement(b.sA,{id:"COMMON_DEVICE_RADIO_CHANNEL_DFS"})}),r?l.createElement(L,{className:f,label:l.createElement(b.sA,{id:"COMMON_CHANNEL_BLOCKED_FOR_OUTDOOR"}),icon:l.createElement(o.A,{description:l.createElement(b.sA,{id:"COMMON_CHANNEL_AFC_RESTRICTION_TOOLTIP",values:{link:l.createElement(s.A,{href:A.A.afcArticle,id:"COMMON_LEARN_MORE"})}}),portal:!0,isInteractive:!0},l.createElement(d.A,{isActive:!0,size:"medium"}))}):null,l.createElement(L,{className:C,label:l.createElement(b.sA,{id:"COMMON_NOT_AVAILABLE"}),icon:l.createElement(o.A,{description:l.createElement(b.sA,{id:"COMMON_WIFI_CHANNELIZATION_NOT_AVAILABLE_REGION",values:{countryCode:(0,n.useSelector)(k.AP)}}),portal:!0},l.createElement(d.A,{isActive:!0,size:"medium"}))}),e?l.createElement(L,{className:_,label:l.createElement(b.sA,{id:"COMMON_EXCLUDED"})}):null)},969015:(e,t,r)=>{r.d(t,{O:()=>n,v:()=>l});const n=(e,t)=>[...new Set([...t||[],e])],l=(e,t)=>t.filter(t=>String(t)!==e)}}]);