"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[7109],{210484(e,t,a){a.d(t,{A:()=>i});var n=a(71479),o=a(566723);const i=(0,n.A)("div")`
  div {
    flex-wrap: wrap;
  }

  svg {
    max-width: 20px;
    flex: 1;
  }
  span {
    flex: 1;
  }

  span + div:last-child {
    flex-basis: 100%;
    margin-left: ${o.ED};
  }
`},465543(e,t,a){a.d(t,{w:()=>s});var n=a(296540),o=a(469733),i=a(845030);const s=e=>{const t=(0,o.useDispatch)();(0,n.useEffect)(()=>{t((0,i.SQ)(e))},[t,e])}},853801(e,t,a){a.d(t,{y:()=>i});var n=a(349785),o=a(465543);const i=e=>{const t=(0,n.lN)(e);return(0,o.w)(t.isDirty)}},263130(e,t,a){a.d(t,{A:()=>T});var n=a(822336),o=a(296540),i=a(217439),s=a(71479),r=a(382389),_=a(566723),E=a(294303);const l=(0,s.A)(i.A)`
  line-height: 20px;
`,T=({icon:e,description:t,action:a,footer:i,background:s,...T})=>{const{themeName:c}=(0,r.u)();return o.createElement(E.A,{flexGrow:1,borderRadius:_.YC,padding:_.kc,background:s||n.Ay[`desktop-color-neutral-01-${c}`],gap:_.kc,flexDirection:"column",...T},o.createElement(E.A,{flexGrow:1,gap:_.kc},e,t?o.createElement(l,{size:"medium"},t):null,a?o.createElement(E.A,{marginLeft:"auto"},o.createElement(l,{size:"medium"},a)):null),i)}},689965(e,t,a){a.d(t,{A:()=>O,I:()=>n});var n,o=a(296540),i=a(822336),s=a(963724),r=a(71479),_=a(825032),E=a(566723),l=a(294303),T=a(311785);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(n||(n={}));const c=(0,r.A)(l.A,(0,T.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:a}})=>e||i.Ay[a===_.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  padding: ${({theme:e,isButtonList:t,padding:a})=>a||(t?`0 ${e.spacing["spacing-l"]}`:e.spacing["spacing-l"])};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  width: ${({width:e="100%"})=>e};
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  ${({isButtonList:e})=>e?`\n    > div {\n      display: flex;\n      height: 48px;\n      border-bottom: ${({theme:{themeName:e}})=>i.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,S=(0,r.A)(s.A,(0,T.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:a}})=>e||i.Ay[a===_.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  ${({padding:e})=>e?`padding: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  > li {
    > div:first-child {
      background: ${({background:e,theme:{themeName:t}})=>e||i.Ay[t===_.S.DARK?"desktop-color-neutral-01-dark":"desktop-color-neutral-00-light"]};
      height: 48px;
      padding: 0 ${E.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${E.Ln} ${E.Ln};
      }
    }
  }
`,O=({type:e,marginBottom:t,margin:a,padding:i,flex:s,width:r,nested:_,...E})=>"items"in E?o.createElement(S,{marginBottom:t,margin:a,padding:i,flex:s,nested:_,...E}):o.createElement(c,{nested:_,width:r,marginBottom:t,margin:a,padding:i,flex:s,isButtonList:e===n.BUTTON_LIST,...E},E.children)},242366(e,t,a){a.d(t,{A:()=>s});var n=a(296540),o=a(566723),i=a(294303);const s=(0,n.forwardRef)((e,t)=>n.createElement(i.A,{ref:t,flexDirection:"column",gap:o.kc,width:"100%",...e}))},48925(e,t,a){a.d(t,{A:()=>I});var n=a(822336),o=a(296540),i=a(217439),s=a(71479),r=a(566723),_=a(968906),E=a(199582),l=a(311785),T=a(766624),c=a(294303),S=a(689965),O=a(242366);const d=(0,s.A)(S.A,(0,l.A)("isOutlined"))`
  border: ${({theme:{themeName:e},isOutlined:t})=>`1px solid ${t?n.Ay[`desktop-color-ublue-06-${e}`]:"transparent"}`};
`,I=({children:e,title:t,tooltip:a,tooltipProps:n,[E.L]:s,titleAction:l,isOutlined:S})=>{const I=(e=>o.Children.toArray(e).length>0)(e);return o.createElement(d,{marginBottom:"none",..._.A.addDataTestId(s??""),isOutlined:S},o.createElement(c.A,{flexDirection:"column",...I&&{gap:r.Ln},width:"100%"},t?o.createElement(c.A,{alignItems:"center",gap:r.YC,justifyContent:"space-between",width:"100%"},o.createElement(c.A,{gap:r.YC,alignItems:"center"},o.createElement(i.A,{variant:"heading-medium"},t),a?o.createElement(T.A,{description:a,portal:!0,...n}):null),l?o.createElement(c.A,null,l):null):null,I?o.createElement(O.A,null,e):null))}},373229(e,t,a){a.d(t,{A:()=>l});var n=a(296540),o=a(758649),i=a(71479),s=a(566723),r=a(916537),_=a(311785);const E=(0,i.A)("footer",(0,_.A)("hasFormResetButton"))`
  display: flex;
  justify-content: ${({hasFormResetButton:e})=>e?"space-between":"flex-end"};
  padding: ${s.S2} ${s.fS};
  gap: ${s.kc};
`,l=({allowCancel:e,isDirty:t,isInvalid:a,isSubmitting:i,onFormSubmit:s,onFormReset:_,onFormCancel:l,className:T,submitButtonText:c,customButton:S,applyButton:O,applyButtonFirst:d,hideCancelButton:I,form:m})=>{const N=(0,n.useMemo)(()=>O||n.createElement(o.A,{name:"submit",variant:"primary",type:"submit",onClick:s,disabled:!t||a||i,form:m},n.createElement(r.sA,{id:c||"COMMON_ACTION_APPLY_CHANGES"})),[O,m,t,a,i,s,c]);return n.createElement(E,{className:T,hasFormResetButton:!!_},d?N:S,I?null:n.createElement(o.A,{name:"cancel",variant:"default",type:"button",onClick:l,disabled:!e&&!t},n.createElement(r.sA,{id:"COMMON_ACTION_CANCEL"})),_?n.createElement(o.A,{name:"reset",variant:"default",type:"button",onClick:_,disabled:!t},n.createElement(r.sA,{id:"COMMON_ACTION_RESET_TO_DEFAULT"})):null,d?S:N)}},329109(e,t,a){a.d(t,{A:()=>l});var n=a(296540),o=a(691441),i=a(71479),s=a(132196),r=a(373229);const _=(0,i.A)("div")`
  height: 66px;
`,E=s.AH`
  padding: 0px !important;
`,l=({isDirty:e,onFormSubmit:t,onFormCancel:a,isInvalid:i,...s})=>e?n.createElement(o.A,null,n.createElement(r.A,{isDirty:e,onFormCancel:a,onFormSubmit:t,isInvalid:i,className:E,...s})):n.createElement(_,null)},607109(e,t,a){a.r(t),a.d(t,{default:()=>b});var n=a(296540),o=a(469733),i=a(592510),s=a(742920),r=a(38671),_=a(853801),E=a(606081),l=a(675291),T=a(169568),c=a(895424),S=a(222190),O=a(641777),d=a(79786),I=a(398300),m=a(566723),N=a(48925),A=a(845030),u=a(675359),C=a(916537),p=a(210484),L=a(655524),R=a(959341),v=a(602021),M=a(329109);const h=e=>"number"==typeof e&&e>-1?e/1e3:void 0,G=e=>{if(e._id===R.R6)return{name:"",downloadSpeed:void 0,uploadSpeed:void 0};const t=e;return{name:t.name||"",qos_rate_max_down:h(t.qos_rate_max_down),qos_rate_max_up:h(t.qos_rate_max_up)}},D=e=>{const t=Number(e);return t?Math.max(Math.round(1e3*t),-1):-1};var g=a(614476),P=a(263963);const F=100,f=.002,W=g.z.object({name:g.z.string().max(64,{message:(0,P.rn)("SETTINGS_COMMON_FIELD_SHOULD_NOT_EXCEED_MAX_LENGTH",{name:(0,P.rn)("COMMON_NAME"),limit:64})}),qos_rate_max_down:g.z.number().min(f,{message:(0,P.rn)("COMMON_VALIDATION_MIN",{name:(0,P.rn)("COMMON_DOWNLOAD_BANDWIDTH_LIMIT"),min:f})}).max(F,{message:(0,P.rn)("COMMON_VALIDATION_MAX",{name:(0,P.rn)("COMMON_DOWNLOAD_BANDWIDTH_LIMIT"),max:F})}).nullish(),qos_rate_max_up:g.z.number().min(f,{message:(0,P.rn)("COMMON_VALIDATION_MIN",{name:(0,P.rn)("COMMON_UPLOAD_BANDWIDTH_LIMIT"),min:f})}).max(F,{message:(0,P.rn)("COMMON_VALIDATION_MAX",{name:(0,P.rn)("COMMON_UPLOAD_BANDWIDTH_LIMIT"),max:F})}).nullish()}),U="wifi-speed-limit-form",b=({activeItem:e})=>{const t=(0,o.useDispatch)(),a=(0,o.useSelector)(v.EL),h=e._id===R.R6,{formatMessage:g}=(0,C.tz)(),P=(0,d.m)({schema:W,defaultValues:G(e)}),b=(0,E.S)(T.v.SETTINGS_WIFI_SPEED_LIMIT_PROFILES);(0,_.y)(P);const y=P.handleSubmit(async a=>{const n={name:a.name,qos_rate_max_down:D(a.qos_rate_max_down),qos_rate_max_up:D(a.qos_rate_max_up)};return t(h?(0,L.$6)(n):(0,L.G4)(e._id,n)).then(e=>{t((0,L.Ik)(void 0,{crudCacheStrategy:{type:i.e.CACHE}})),t((0,A.SQ)(!1)),h&&t((0,A.XP)({id:e._id,type:I.H.WIFI_SPEED_LIMIT_PROFILE}))}).then(()=>{P.reset()}).catch(e=>{const a=(0,r.F)(e)?e:void 0;t((0,u.ox)({icon:s.C.danger,message:h?"SETTINGS_PROFILES_WIFI_SPEED_LIMIT_CREATE_FAILURE_TOAST":"SETTINGS_PROFILES_WIFI_SPEED_LIMIT_UPDATE_FAILURE_TOAST",values:{name:n.name},errorMessage:a?.msg,errorValues:a}))})});return n.createElement(O.A,{isDisabled:b||a},n.createElement("form",{onSubmit:y,id:U},n.createElement(l.A,{feature:T.v.SETTINGS_WIFI_SPEED_LIMIT_PROFILES,renderWarning:({children:e})=>n.createElement(p.A,{style:{marginBottom:m.Ln}},n.createElement(N.A,null,e))}),n.createElement(N.A,null,n.createElement(c.A,{autoFocus:!0,control:P.control,name:"name",label:n.createElement(C.sA,{id:"COMMON_NAME"})}),n.createElement(S.A,{control:P.control,name:"qos_rate_max_down",tooltip:n.createElement(C.sA,{id:"SETTINGS_PROFILES_WIFI_SPEED_LIMIT_FORM_DESCRIPTION_LIMIT_BANDWIDTH_DOWNLOAD",values:{minMbps:f,maxMbps:F}}),label:n.createElement(C.sA,{id:"COMMON_DOWNLOAD_BANDWIDTH_LIMIT"}),placeholder:g({id:"COMMON_UNLIMITED"}),contentAfter:n.createElement(C.sA,{id:"COMMON_SPEED_METRICS_MBPS"})}),n.createElement(S.A,{control:P.control,name:"qos_rate_max_up",tooltip:n.createElement(C.sA,{id:"SETTINGS_PROFILES_WIFI_SPEED_LIMIT_FORM_DESCRIPTION_LIMIT_BANDWIDTH_UPLOAD",values:{minMbps:f,maxMbps:F}}),label:n.createElement(C.sA,{id:"COMMON_UPLOAD_BANDWIDTH_LIMIT"}),contentAfter:n.createElement(C.sA,{id:"COMMON_SPEED_METRICS_MBPS"}),placeholder:g({id:"COMMON_UNLIMITED"})})),n.createElement(M.A,{onFormCancel:()=>P.reset(),isDirty:P.formState.isDirty||h&&!b,hideCancelButton:!P.formState.isDirty,submitButtonText:h?"COMMON_ACTION_ADD":void 0,form:U,isSubmitting:P.formState.isSubmitting})))}},766624(e,t,a){a.d(t,{A:()=>_});var n=a(296540),o=a(271856),i=a(709690),s=a(284428),r=a(566723);const _=({description:e,isInteractive:t,portal:a=!0,cursorType:_,title:E,position:l,width:T,iconProps:c,disabled:S=!1})=>{const O=(0,s.Im)()||S,d=(0,s.q)();return n.createElement(o.A,{description:e,portal:a,isInteractive:t,style:{display:"flex",alignItems:"center"},cursorType:_,title:E,position:l,width:T,disableHover:d},n.createElement(i.A,{isActive:!0,size:"original",opacity:O?r.xN:void 0,...c}))}},675344(e,t,a){a.d(t,{By:()=>n,Ko:()=>s,Qb:()=>i,uE:()=>o,xh:()=>r});const n="800px",o="832px",i="1362px",s="664px",r="100px"},79786(e,t,a){a.d(t,{m:()=>r});var n=a(296540),o=a(349785),i=a(59116),s=a(870893);function r({schema:e,defaultValues:t,presets:a}){const r=(0,n.useMemo)(()=>a?(0,i.A)(a,e=>e.defaultValues):{},[a]),_=(0,n.useMemo)(()=>({...t,...r}),[r,t]),E=(0,o.mN)({resolver:(0,s.u)(e),shouldFocusError:!0,defaultValues:_,shouldUseNativeValidation:!1,mode:"onTouched"}),l=(0,n.useRef)(_);l.current=_;const T=(0,n.useCallback)((...e)=>{const[t,...a]=e;return E.reset(t?{...t,...r}:l.current,...a)},[r,E]);return{...E,reset:T,formState:{...E.formState,isDirty:!!Object.keys(E.formState.dirtyFields).length,isSubmitting:E.formState.isSubmitting},handleSubmit:(...e)=>E.handleSubmit(e[0],(t,...a)=>{const n=Object.keys(t)[0];if(n)try{const e=document.getElementsByName(n)?.[0];e?.scrollIntoView?.({behavior:"smooth",block:"center"}),e?.focus?.({preventScroll:!0})}catch{}e[1]?.(t,...a)})}}},451449(e,t,a){a.d(t,{I:()=>n});const n=(0,a(296540).createContext)({fields:!1,labels:!1,tooltipPopovers:!1,tooltipIcons:!1})},641777(e,t,a){a.d(t,{A:()=>s});var n=a(296540),o=a(284428),i=a(451449);const s=({isDisabled:e,isAdditive:t=!0,children:a})=>{const s=(0,o.pv)(),r=(0,n.useMemo)(()=>"boolean"==typeof e?{fields:e,labels:e,tooltipIcons:e,tooltipPopovers:!1}:e,[e]),_=(0,n.useMemo)(()=>({fields:t?r.fields||s.fields:r.fields,labels:t?r.labels||s.labels:r.labels,tooltipIcons:t?r.tooltipIcons||s.tooltipIcons:r.tooltipIcons,tooltipPopovers:t?r.tooltipPopovers||s.tooltipPopovers:r.tooltipPopovers}),[t,r.fields,r.labels,r.tooltipIcons,r.tooltipPopovers,s.fields,s.labels,s.tooltipIcons,s.tooltipPopovers]);return n.createElement(i.I.Provider,{value:_},a)}},284428(e,t,a){a.d(t,{Im:()=>_,iL:()=>E,mQ:()=>s,pv:()=>i,q:()=>r});var n=a(296540),o=a(451449);function i(){return(0,n.useContext)(o.I)}function s(){return i().fields}function r(){return i().tooltipPopovers}function _(){return i().tooltipIcons}function E(){return i().labels}},263963(e,t,a){a.d(t,{L_:()=>E,MS:()=>_,rn:()=>r});var n=a(296540),o=a(614476),i=a(916537);const s="{::}",r=(e,t)=>`${e}${s}${JSON.stringify(t??{})}`,_=(e,t)=>{if("string"!=typeof t)return;const[a,...n]=t.split(s);if(!a||!n.length)return t;let o={};try{o=Object.fromEntries(Object.entries(JSON.parse(n.join(s))).map(([t,a])=>[t,"string"==typeof a?_(e,a):a]))}catch{}return e.formatMessage({id:a},o)};function E(){const{formatMessage:e}=(0,i.tz)();return(0,n.useCallback)(t=>_({formatMessage:e},t),[e])}o.z.setErrorMap((e,t)=>e.message?{message:e.message}:e.code===o.z.ZodIssueCode.too_small&&"string"===e.type?{message:r("COMMON_MIN_CHARS",{min:Number(e.minimum)})}:e.code===o.z.ZodIssueCode.too_big&&"string"===e.type?{message:r("COMMON_MAX_CHARS",{name:r("COMMON_VALUE"),max:Number(e.maximum)})}:e.code===o.z.ZodIssueCode.invalid_type&&"array"===e.expected&&"undefined"===e.received?{message:r("COMMON_SELECT_AT_LEAST_ONE_ITEM")}:e.code===o.z.ZodIssueCode.too_small&&"array"===e.type?{message:r("COMMON_ADD_AT_LEAST_X_ITEMS",{min:Number(e.minimum)})}:e.code===o.z.ZodIssueCode.invalid_type&&"undefined"===e.received?{message:r("COMMON_VALIDATION_VALUE_REQUIRED")}:e.code===o.z.ZodIssueCode.invalid_type&&"number"===e.expected?{message:r("COMMON_VALIDATION_PLEASE_ENTER_A_NUMBER")}:{message:t.defaultError})},222190(e,t,a){a.d(t,{A:()=>E});var n=a(296540),o=a(349785),i=a(438628),s=a(566723),r=a(263963),_=a(284428);const E=function({control:e,name:t,label:a,placeholder:E,tooltip:l,tooltipProps:T,contentAfter:c,arrowSize:S,min:O,max:d,step:I,value:m,iconBefore:N,onAfterChange:A,onChange:u}){const C=(0,_.mQ)(),p=(0,r.L_)();return n.createElement(o.xI,{control:e,name:t,render:({field:{ref:e,...r},fieldState:_,formState:L})=>n.createElement(i.A,{type:"number",variant:"secondary",width:"100%",...r,value:m??r.value??"",onChange:e=>{u?u(e,L):r.onChange(e.target.value?.length?+e.target.value:null),A?.(e)},disabled:C,invalid:_.invalid?p((0,o.Jt)(L.errors,t)?.message)||!0:void 0,labelTooltip:l,labelTooltipProps:{style:{opacity:C?s.xN:void 0,...T?.style},...T},label:a,placeholder:E,arrowSize:S,contentAfter:c,iconBefore:N,step:I,min:O,max:d})})}},895424(e,t,a){a.d(t,{A:()=>l});var n=a(296540),o=a(349785),i=a(438628),s=a(705145),r=a(566723),_=a(263963),E=a(284428);const l=function({control:e,name:t,label:a,placeholder:l,tooltip:T,tooltipProps:c,autoFocus:S,motif:O,onChange:d,onBlur:I,onAfterChange:m,onPaste:N,onKeyDown:A,passwordToggle:u,type:C,helperMessage:p,autoComplete:L,contentBefore:R,contentAfter:v,onFocus:M,value:h,invalid:G}){const D=(0,E.mQ)(),g=(0,E.Im)(),P=(0,E.q)(),F=(0,_.L_)();return n.createElement(o.xI,{control:e,name:t,render:({field:e,fieldState:_,formState:E})=>n.createElement(i.A,{type:C||(u?"password":"text"),variant:"secondary",width:"100%",autoFocus:S,...e,onChange:t=>{d?d(t,e,E):e.onChange(t),m?.(t)},onBlur:t=>{I?I(t,e,E):e.onBlur()},onFocus:M,onPaste:N,disabled:D,value:h??e.value?.toString(),invalid:G||(_.invalid?n.createElement(s.A,{variant:"inherit",style:{overflowWrap:"break-word"}},F((0,o.Jt)(E.errors,t)?.message)||!0," "):void 0),label:a,placeholder:l,labelTooltip:T,labelTooltipProps:{style:{opacity:g?r.xN:void 0,pointerEvents:P?"none":void 0,...c?.style},...c},motif:O,passwordToggle:u,helperMessage:p,autoComplete:L,onKeyDown:A,contentBefore:R,contentAfter:v})})}},267691(e,t,a){a.d(t,{u:()=>r});var n=a(296540),o=a(469733),i=a(528644),s=a(674319);function r(e){const t=(0,o.useSelector)(i.C);return(0,n.useMemo)(()=>(0,s.TM)(e,t),[e,t])}},675291(e,t,a){a.d(t,{A:()=>N});var n=a(296540),o=a(469733),i=a(847883),s=a(758649),r=a(162420),_=a(687370),E=a(958372),l=a(267691),T=a(675344),c=a(566723),S=a(294303),O=a(263130),d=a(916537),I=a(789768);const m={maxWidth:T.By,margin:`${c.Ln} 0 0 0`,style:{flex:0}},N=({feature:e,children:t,rowProps:a,skipApproval:T=!1,renderWarning:N})=>{const A=(0,o.useDispatch)(),u=(0,l.u)(e),C=(0,_.r)(e),p=(0,n.useCallback)(()=>{A((0,I.ct)(e))},[A,e]),L=C?null:n.createElement(O.A,{icon:n.createElement(r.A,{variant:"fill",size:"original",isActive:!0}),description:n.createElement(d.sA,{id:E.b[e]?.(u||T)||"COMMON_LOCKED_FEATURE"}),action:u||T?null:n.createElement(s.A,{type:"button",onClick:p,variant:"inline"},n.createElement(d.sA,{id:"COMMON_LOCKED_PRECONFIGURE"}))});return n.createElement(n.Fragment,null,L?n.createElement(n.Fragment,null,N?N({children:L}):n.createElement(i.A,{unlimitedWidth:!0,...m,...a},L)):null,t?n.createElement(i.A,{unlimitedWidth:!0,disabled:!C&&!u&&!T,marginBottom:0},n.createElement(S.A,{width:"100%",flexDirection:"column",gap:c.Ln},t)):null)}},674319(e,t,a){a.d(t,{A:()=>r,TM:()=>l,f9:()=>E});var n=a(598796),o=a(780811),i=a(169568);const s={[i.v.SETTINGS_WIFI]:e=>!e.devicesHaveLastFetchTime||e.hasApAdopted,[i.v.SETTINGS_WIFI_SPEED_LIMIT_PROFILES]:e=>!e.devicesHaveLastFetchTime||e.hasApAdopted,[i.v.SETTINGS_NETWORKS]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway||e.hasSwitchAdopted||e.hasApAdopted,[i.v.SETTINGS_INTERNET]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway,[i.v.SETTINGS_TELEPORT]:e=>e.features.has(n.Xj.TELEPORT),[i.v.SETTING_ROUTING]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway||e.hasL3SwitchAdopted,[i.v.SETTINGS_SECURITY]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway||e.hasL3SwitchAdopted,[i.v.SETTINGS_RADIUS]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway,[i.v.NETWORK_OBJECTS]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway,[i.v.SETTINGS_ETHERNET_PORTS]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway||e.hasSwitchAdopted,[i.v.SETTINGS_PROFILES]:e=>!e.devicesHaveLastFetchTime||e.hasApAdopted||e.hasSiteGateway||e.hasSwitchAdopted,[i.v.SETTINGS_VPN]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway,[i.v.SETTINGS_VPN_CLIENT]:e=>e.hasSiteGateway&&!(0,o.oWO)({type:e.siteGatewayInterfaces.type})&&!(0,o.ziy)({model:e.siteGatewayInterfaces.model}),[i.v.SETTINGS_POLICY]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway||e.hasL3SwitchAdopted||e.features.has(n.Xj.SWITCH_CUSTOM_ACL_RULES)||e.features.has(n.Xj.ZONE_BASED_FIREWALL)||e.features.has(n.Xj.USER_DEFINED_NAT_RULES)||e.features.has(n.Xj.STATIC_DNS),[i.v.SETTINGS_POLICY_ACL]:e=>!e.devicesHaveLastFetchTime||e.features.has(n.Xj.SWITCH_CUSTOM_ACL_RULES),[i.v.SETTINGS_POLICY_QOS]:e=>!e.devicesHaveLastFetchTime||e.features.has(n.Xj.ZONE_BASED_FIREWALL),[i.v.SETTINGS_POLICY_NAT]:e=>!e.devicesHaveLastFetchTime||e.features.has(n.Xj.USER_DEFINED_NAT_RULES),[i.v.SETTINGS_POLICY_DNS]:e=>!e.devicesHaveLastFetchTime||e.features.has(n.Xj.STATIC_DNS),[i.v.SETTINGS_POLICY_PORT_FORWARDING]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway,[i.v.SETTINGS_POLICY_FIREWALL]:e=>!e.devicesHaveLastFetchTime||e.features.has(n.Xj.ZONE_BASED_FIREWALL),[i.v.SETTINGS_POLICY_ROUTE]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway||e.hasL3SwitchAdopted,[i.v.SETTINGS_CONTENT_FILTER]:e=>!e.devicesHaveLastFetchTime||e.features.has(n.Xj.CLOUDFLARE_CONTENT_FILTERING)},r=(e,t)=>!!s[e]?.(t),_={[i.v.SETTINGS_WIFI]:()=>!0,[i.v.SETTINGS_WIFI_SPEED_LIMIT_PROFILES]:()=>!0,[i.v.SETTINGS_NETWORKS]:()=>!0,[i.v.SETTINGS_INTERNET]:()=>!0,[i.v.SETTINGS_TELEPORT]:()=>!0,[i.v.SETTING_ROUTING]:()=>!0,[i.v.SETTINGS_SECURITY]:()=>!0,[i.v.SETTINGS_RADIUS]:()=>!0,[i.v.NETWORK_OBJECTS]:()=>!0,[i.v.SETTINGS_ETHERNET_PORTS]:()=>!0,[i.v.SETTINGS_PROFILES]:()=>!0,[i.v.SETTINGS_VPN]:()=>!0,[i.v.SETTINGS_VPN_CLIENT]:()=>!0,[i.v.SETTINGS_POLICY]:()=>!0,[i.v.SETTINGS_POLICY_ACL]:()=>!1,[i.v.SETTINGS_POLICY_QOS]:()=>!1,[i.v.SETTINGS_POLICY_NAT]:()=>!1,[i.v.SETTINGS_POLICY_DNS]:()=>!1,[i.v.SETTINGS_POLICY_PORT_FORWARDING]:()=>!0,[i.v.SETTINGS_POLICY_FIREWALL]:()=>!1,[i.v.SETTINGS_POLICY_ROUTE]:()=>!0,[i.v.SETTINGS_CONTENT_FILTER]:()=>!1},E=(e,t)=>_[e]?.(t),l=(e,t)=>!!t.selfPreconfigureApprovals?.includes(e)&&E(e,t)},169568(e,t,a){var n;a.d(t,{v:()=>n}),function(e){e.SETTINGS_WIFI="settingsWifi",e.SETTINGS_NETWORKS="settingsNetworks",e.SETTINGS_INTERNET="settingsInternet",e.SETTINGS_TELEPORT="settingsTeleport",e.SETTINGS_VPN="settingsVpn",e.SETTING_ROUTING="settingsRouting",e.SETTINGS_SECURITY="settingsSecurity",e.SETTINGS_ETHERNET_PORTS="settingsEthernetPorts",e.SETTINGS_WIFI_SPEED_LIMIT_PROFILES="settingsWifiSpeedLimitProfiles",e.SETTINGS_RADIUS="settingsRadius",e.NETWORK_OBJECTS="settingsNetworkObjects",e.SETTINGS_PROFILES="settingsProfiles",e.SETTINGS_VPN_CLIENT="vpnClient",e.SETTINGS_CONTENT_FILTER="settingsContentFilter",e.SETTINGS_POLICY="settingsPolicy",e.SETTINGS_POLICY_ACL="settingsPolicyAcl",e.SETTINGS_POLICY_QOS="settingsPolicyQos",e.SETTINGS_POLICY_NAT="settingsPolicyNat",e.SETTINGS_POLICY_DNS="settingsPolicyDns",e.SETTINGS_POLICY_PORT_FORWARDING="settingsPolicyPortForwarding",e.SETTINGS_POLICY_FIREWALL="settingsPolicyFirewall",e.SETTINGS_POLICY_ROUTE="settingsPolicyRoute"}(n||(n={}))},528644(e,t,a){a.d(t,{C:()=>_});var n=a(801081),o=a(198494),i=a(792072),s=a(532419),r=a(319797);const _=(0,n.Mz)(s.$8,s.m9,s.N4,s.at,s.Tp,i.et,o.UP,s.IP,s.C$,r.Az,(e,t,a,n,o,i,s,r,_,E)=>({devicesHaveLastFetchTime:e,hasSiteGateway:t,hasApAdopted:a,hasSwitchAdopted:n,hasL3SwitchAdopted:o,features:i,selfPreconfigureApprovals:s,siteGatewayInterfaces:r,isUsg:_,isFirewallManagedByOrchestration:E}))},958372(e,t,a){a.d(t,{D:()=>l,b:()=>T});var n=a(296540),o=a(169568),i=a(916537),s=a(196010),r=a(928085),_=a(959341);const E=()=>{const e=(0,r.A)(_.tz);return n.createElement(s.A,{to:e},n.createElement(i.sA,{id:"COMMON_ACTION_MANAGE"}))},l={[o.v.SETTINGS_POLICY_ACL]:n.createElement(i.sA,{id:"SETTINGS_POLICY_TYPE_ACL_UNSUPPORTED"}),[o.v.SETTINGS_POLICY_QOS]:n.createElement(i.sA,{id:"SETTINGS_ZONE_BASED_FIREWALL_REQUIRED",values:{link:n.createElement(E,null)}}),[o.v.SETTINGS_POLICY_FIREWALL]:n.createElement(i.sA,{id:"SETTINGS_ZONE_BASED_FIREWALL_REQUIRED",values:{link:n.createElement(E,null)}}),[o.v.SETTINGS_POLICY_NAT]:n.createElement(i.sA,{id:"SETTINGS_NAT_NOT_SUPPORTED"}),[o.v.SETTINGS_POLICY_DNS]:n.createElement(i.sA,{id:"SETTINGS_DNS_NOT_SUPPORTED"}),[o.v.SETTINGS_POLICY_PORT_FORWARDING]:n.createElement(i.sA,{id:"SETTINGS_PORT_FORWARDING_NOT_SUPPORTED"}),[o.v.SETTINGS_POLICY_ROUTE]:n.createElement(i.sA,{id:"SETTINGS_ROUTING_NOT_SUPPORTED"})},T={[o.v.SETTINGS_WIFI]:e=>e?"COMMON_LOCKED_FEATURE_AP_PRECONFIGURED":"COMMON_LOCKED_FEATURE_AP",[o.v.SETTINGS_NETWORKS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW_OR_AP",[o.v.SETTINGS_INTERNET]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[o.v.SETTINGS_TELEPORT]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[o.v.SETTING_ROUTING]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[o.v.SETTINGS_SECURITY]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[o.v.SETTINGS_ETHERNET_PORTS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[o.v.SETTINGS_WIFI_SPEED_LIMIT_PROFILES]:e=>e?"COMMON_LOCKED_FEATURE_AP_PRECONFIGURED":"COMMON_LOCKED_FEATURE_AP",[o.v.NETWORK_OBJECTS]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[o.v.SETTINGS_VPN]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[o.v.SETTINGS_POLICY]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[o.v.SETTINGS_POLICY_ACL]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[o.v.SETTINGS_POLICY_QOS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[o.v.SETTINGS_POLICY_NAT]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[o.v.SETTINGS_POLICY_DNS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[o.v.SETTINGS_POLICY_PORT_FORWARDING]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[o.v.SETTINGS_POLICY_FIREWALL]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[o.v.SETTINGS_POLICY_ROUTE]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW"}},687370(e,t,a){a.d(t,{r:()=>r});var n=a(296540),o=a(469733),i=a(528644),s=a(674319);function r(e){const t=(0,o.useSelector)(i.C);return(0,n.useMemo)(()=>(0,s.A)(e,t),[e,t])}},606081(e,t,a){a.d(t,{S:()=>r});var n=a(296540),o=a(469733),i=a(528644),s=a(674319);function r(e){const t=(0,o.useSelector)(i.C);return(0,n.useMemo)(()=>!(0,s.TM)(e,t)&&!(0,s.A)(e,t),[e,t])}}}]);