"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[48903],{233313(e,t,_){_.d(t,{A:()=>i});var T=_(247816),E=_(309130);const i=(0,T.A)("div")`
  div {
    flex-wrap: wrap;
  }

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

  span + div:last-child {
    flex-basis: 100%;
    margin-left: ${E.ED};
  }
`},612389(e,t,_){_.d(t,{A:()=>N});var T=_(274934),E=_(814557),i=_(938984),s=_(247816),S=_(263705),O=_(309130),a=_(100978);const I=(0,s.A)(i.A)`
  line-height: 20px;
`,N=({icon:e,description:t,action:_,footer:i,background:s,...N})=>{const{themeName:n}=(0,S.u)();return(0,T.jsxs)(a.A,{flexGrow:1,borderRadius:O.YC,padding:O.kc,background:s||E.Ay[`desktop-color-neutral-01-${n}`],gap:O.kc,flexDirection:"column",...N,children:[(0,T.jsxs)(a.A,{flexGrow:1,gap:O.kc,children:[e,t?(0,T.jsx)(I,{size:"medium",children:t}):null,_?(0,T.jsx)(a.A,{marginLeft:"auto",children:(0,T.jsx)(I,{size:"medium",children:_})}):null]}),i]})}},535322(e,t,_){_.d(t,{A:()=>d,I:()=>T});var T,E=_(274934),i=_(814557),s=_(158885),S=_(247816),O=_(565527),a=_(309130),I=_(100978),N=_(291508);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(T||(T={}));const n=(0,S.A)(I.A,(0,N.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:_}})=>e||i.Ay[_===O.S.DARK?`desktop-color-neutral-${t?"00":"01"}-${O.S.DARK}`:`desktop-color-neutral-${t?"01":"00"}-${O.S.LIGHT}`]};
  padding: ${({isButtonList:e,padding:t})=>t||(e?`0 ${a.Ln}`:a.Ln)};
  margin-bottom: ${({marginBottom:e})=>e||a.Ln};
  ${({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  `:""}
`,o=(0,S.A)(s.A,(0,N.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:_}})=>e||i.Ay[_===O.S.DARK?`desktop-color-neutral-${t?"00":"01"}-${O.S.DARK}`:`desktop-color-neutral-${t?"01":"00"}-${O.S.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===O.S.DARK?`desktop-color-neutral-01-${O.S.DARK}`:`desktop-color-neutral-00-${O.S.LIGHT}`]};
      height: 48px;
      padding: 0 ${a.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${a.Ln} ${a.Ln};
      }
    }
  }
`,d=({type:e,marginBottom:t,margin:_,padding:i,flex:s,width:S,nested:O,...a})=>"items"in a?(0,E.jsx)(o,{marginBottom:t,margin:_,padding:i,flex:s,nested:O,...a}):(0,E.jsx)(n,{nested:O,width:S,marginBottom:t,margin:_,padding:i,flex:s,isButtonList:e===T.BUTTON_LIST,...a,children:a.children})},700149(e,t,_){_.d(t,{By:()=>T,Ko:()=>s,Qb:()=>i,uE:()=>E,xh:()=>S});const T="800px",E="832px",i="1362px",s="664px",S="100px"},877840(e,t,_){_.d(t,{A:()=>S});var T=_(274934),E=_(602086),i=_(184931),s=_(712642);const S=({isDisabled:e,isAdditive:t=!0,children:_})=>{const S=(0,i.pv)(),O=(0,E.useMemo)(()=>"boolean"==typeof e?{fields:e,labels:e,tooltipIcons:e,tooltipPopovers:!1}:e,[e]),a=(0,E.useMemo)(()=>({fields:t?O.fields||S.fields:O.fields,labels:t?O.labels||S.labels:O.labels,tooltipIcons:t?O.tooltipIcons||S.tooltipIcons:O.tooltipIcons,tooltipPopovers:t?O.tooltipPopovers||S.tooltipPopovers:O.tooltipPopovers}),[t,O.fields,O.labels,O.tooltipIcons,O.tooltipPopovers,S.fields,S.labels,S.tooltipIcons,S.tooltipPopovers]);return(0,T.jsx)(s.I.Provider,{value:a,children:_})}},742012(e,t,_){_.d(t,{u:()=>S});var T=_(602086),E=_(977872),i=_(92781),s=_(519372);function S(e){const t=(0,E.d4)(i.C);return(0,T.useMemo)(()=>(0,s.TM)(e,t),[e,t])}},23964(e,t,_){_.d(t,{A:()=>G});var T=_(274934),E=_(602086),i=_(977872),s=_(713804),S=_(599110),O=_(853777),a=_(982631),I=_(191105),N=_(742012),n=_(700149),o=_(309130),d=_(100978),R=_(612389),r=_(470070),C=_(158402);const L={maxWidth:n.By,margin:`${o.Ln} 0 0 0`,style:{flex:0}},G=({feature:e,children:t,rowProps:_,skipApproval:n=!1,renderWarning:G})=>{const c=(0,i.wA)(),l=(0,N.u)(e),A=(0,a.r)(e),v=(0,E.useCallback)(()=>{c((0,C.ct)(e))},[c,e]),h=A?null:(0,T.jsx)(R.A,{icon:(0,T.jsx)(O.A,{variant:"fill",size:"original",isActive:!0}),description:(0,T.jsx)(r.sA,{id:I.b[e]?.(l||n)||"COMMON_LOCKED_FEATURE"}),action:l||n?null:(0,T.jsx)(S.A,{type:"button",onClick:v,variant:"inline",children:(0,T.jsx)(r.sA,{id:"COMMON_LOCKED_PRECONFIGURE"})})});return(0,T.jsxs)(T.Fragment,{children:[h?(0,T.jsx)(T.Fragment,{children:G?G({children:h}):(0,T.jsx)(s.A,{unlimitedWidth:!0,...L,..._,children:h})}):null,t?(0,T.jsx)(s.A,{unlimitedWidth:!0,disabled:!A&&!l&&!n,marginBottom:0,children:(0,T.jsx)(d.A,{width:"100%",flexDirection:"column",gap:o.Ln,children:t})}):null]})}},519372(e,t,_){_.d(t,{A:()=>S,TM:()=>I,f9:()=>a});var T=_(95857),E=_(956978),i=_(670241);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(T.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,E.oWO)({type:e.siteGatewayInterfaces.type})&&!(0,E.ziy)({model:e.siteGatewayInterfaces.model}),[i.v.SETTINGS_POLICY]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway||e.hasL3SwitchAdopted||e.features.has(T.Xj.SWITCH_CUSTOM_ACL_RULES)||e.features.has(T.Xj.ZONE_BASED_FIREWALL)||e.features.has(T.Xj.USER_DEFINED_NAT_RULES)||e.features.has(T.Xj.STATIC_DNS),[i.v.SETTINGS_POLICY_ACL]:e=>!e.devicesHaveLastFetchTime||e.features.has(T.Xj.SWITCH_CUSTOM_ACL_RULES),[i.v.SETTINGS_POLICY_QOS]:e=>!e.devicesHaveLastFetchTime||e.features.has(T.Xj.ZONE_BASED_FIREWALL),[i.v.SETTINGS_POLICY_NAT]:e=>!e.devicesHaveLastFetchTime||e.features.has(T.Xj.USER_DEFINED_NAT_RULES),[i.v.SETTINGS_POLICY_DNS]:e=>!e.devicesHaveLastFetchTime||e.features.has(T.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(T.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(T.Xj.CLOUDFLARE_CONTENT_FILTERING)},S=(e,t)=>!!s[e]?.(t),O={[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},a=(e,t)=>O[e]?.(t),I=(e,t)=>!!t.selfPreconfigureApprovals?.includes(e)&&a(e,t)},670241(e,t,_){var T;_.d(t,{v:()=>T}),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"}(T||(T={}))},92781(e,t,_){_.d(t,{C:()=>O});var T=_(222102),E=_(570801),i=_(167933),s=_(754924),S=_(655424);const O=(0,T.Mz)(s.$8,s.m9,s.N4,s.at,s.Tp,i.et,E.UP,s.IP,s.C$,S.Az,(e,t,_,T,E,i,s,S,O,a)=>({devicesHaveLastFetchTime:e,hasSiteGateway:t,hasApAdopted:_,hasSwitchAdopted:T,hasL3SwitchAdopted:E,features:i,selfPreconfigureApprovals:s,siteGatewayInterfaces:S,isUsg:O,isFirewallManagedByOrchestration:a}))},191105(e,t,_){_.d(t,{D:()=>I,b:()=>N});var T=_(274934),E=_(670241),i=_(470070),s=_(502129),S=_(43506),O=_(969288);const a=()=>{const e=(0,S.A)(O.tz);return(0,T.jsx)(s.A,{to:e,children:(0,T.jsx)(i.sA,{id:"COMMON_ACTION_MANAGE"})})},I={[E.v.SETTINGS_POLICY_ACL]:(0,T.jsx)(i.sA,{id:"SETTINGS_POLICY_TYPE_ACL_UNSUPPORTED"}),[E.v.SETTINGS_POLICY_QOS]:(0,T.jsx)(i.sA,{id:"SETTINGS_ZONE_BASED_FIREWALL_REQUIRED",values:{link:(0,T.jsx)(a,{})}}),[E.v.SETTINGS_POLICY_FIREWALL]:(0,T.jsx)(i.sA,{id:"SETTINGS_ZONE_BASED_FIREWALL_REQUIRED",values:{link:(0,T.jsx)(a,{})}}),[E.v.SETTINGS_POLICY_NAT]:(0,T.jsx)(i.sA,{id:"SETTINGS_NAT_NOT_SUPPORTED"}),[E.v.SETTINGS_POLICY_DNS]:(0,T.jsx)(i.sA,{id:"SETTINGS_DNS_NOT_SUPPORTED"}),[E.v.SETTINGS_POLICY_PORT_FORWARDING]:(0,T.jsx)(i.sA,{id:"SETTINGS_PORT_FORWARDING_NOT_SUPPORTED"}),[E.v.SETTINGS_POLICY_ROUTE]:(0,T.jsx)(i.sA,{id:"SETTINGS_ROUTING_NOT_SUPPORTED"})},N={[E.v.SETTINGS_WIFI]:e=>e?"COMMON_LOCKED_FEATURE_AP_PRECONFIGURED":"COMMON_LOCKED_FEATURE_AP",[E.v.SETTINGS_NETWORKS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW_OR_AP",[E.v.SETTINGS_INTERNET]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[E.v.SETTINGS_TELEPORT]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[E.v.SETTING_ROUTING]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[E.v.SETTINGS_SECURITY]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[E.v.SETTINGS_ETHERNET_PORTS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[E.v.SETTINGS_WIFI_SPEED_LIMIT_PROFILES]:e=>e?"COMMON_LOCKED_FEATURE_AP_PRECONFIGURED":"COMMON_LOCKED_FEATURE_AP",[E.v.NETWORK_OBJECTS]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[E.v.SETTINGS_VPN]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[E.v.SETTINGS_POLICY]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[E.v.SETTINGS_POLICY_ACL]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[E.v.SETTINGS_POLICY_QOS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[E.v.SETTINGS_POLICY_NAT]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[E.v.SETTINGS_POLICY_DNS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[E.v.SETTINGS_POLICY_PORT_FORWARDING]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[E.v.SETTINGS_POLICY_FIREWALL]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[E.v.SETTINGS_POLICY_ROUTE]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW"}},982631(e,t,_){_.d(t,{r:()=>S});var T=_(602086),E=_(977872),i=_(92781),s=_(519372);function S(e){const t=(0,E.d4)(i.C);return(0,T.useMemo)(()=>(0,s.A)(e,t),[e,t])}},988646(e,t,_){_.d(t,{S:()=>S});var T=_(602086),E=_(977872),i=_(92781),s=_(519372);function S(e){const t=(0,E.d4)(i.C);return(0,T.useMemo)(()=>!(0,s.TM)(e,t)&&!(0,s.A)(e,t),[e,t])}}}]);