"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[36757],{352431(e,t,o){o.d(t,{A:()=>n});var r=o(455642),n={formFooter:"formFooter__54baADCQ","formFooter-light":"formFooter-light__54baADCQ","formFooter-bordered":"formFooter-bordered__54baADCQ","formFooter-dark":"formFooter-dark__54baADCQ",formFooterContent:"formFooterContent__54baADCQ","formFooterContent-light":"formFooterContent-light__54baADCQ",backgroundGradient:"backgroundGradient__54baADCQ","formFooterContent-dark":"formFooterContent-dark__54baADCQ","formFooterContent-align-left":"formFooterContent-align-left__54baADCQ","formFooterContent-align-center":"formFooterContent-align-center__54baADCQ","formFooterContent-align-right":"formFooterContent-align-right__54baADCQ","formFooterContent-align-space-between":"formFooterContent-align-space-between__54baADCQ",formFooterWithTransform:"formFooterWithTransform__54baADCQ",formFooterButtonWrap:"formFooterButtonWrap__54baADCQ",formFooterTertiaryButtonWrap:"formFooterTertiaryButtonWrap__54baADCQ","formFooterButton-default-size-small":"formFooterButton-default-size-small__54baADCQ","formFooterButton-default-size-medium":"formFooterButton-default-size-medium__54baADCQ","formFooterButton-default-size-large":"formFooterButton-default-size-large__54baADCQ",formFooterSummary:"formFooterSummary__54baADCQ",formFooterSummaryTitle:"formFooterSummaryTitle__54baADCQ",formFooterSummaryParagraph:"formFooterSummaryParagraph__54baADCQ"};(0,r.A)(".formFooter__54baADCQ{flex:none;overflow:hidden;position:relative;width:100%}.formFooter-light__54baADCQ.formFooter-bordered__54baADCQ{border-top:1px solid rgba(33,35,39,.07)}.formFooter-dark__54baADCQ.formFooter-bordered__54baADCQ{border-top:1px solid hsla(214,8%,98%,.07)}.formFooterContent__54baADCQ{align-items:flex-start;display:flex;width:100%}.formFooterContent-light__54baADCQ.backgroundGradient__54baADCQ{background:linear-gradient(90deg,#fff 0,#f4f5f6)}.formFooterContent-dark__54baADCQ.backgroundGradient__54baADCQ{background:linear-gradient(90deg,#131416 0,#282b2f)}.formFooterContent-align-left__54baADCQ{justify-content:flex-start}.formFooterContent-align-center__54baADCQ{justify-content:center}.formFooterContent-align-right__54baADCQ{justify-content:flex-end}.formFooterContent-align-space-between__54baADCQ{justify-content:space-between}.formFooterWithTransform__54baADCQ{transition:height .1s ease,transform .1s ease}.formFooterWithTransform__54baADCQ .formFooterContent__54baADCQ{position:absolute}.formFooterButtonWrap__54baADCQ{flex:0 1 100px}.formFooterButtonWrap__54baADCQ:not(:last-child){margin-right:16px}.formFooterTertiaryButtonWrap__54baADCQ:not(:last-child){margin-right:28px}button.formFooterButton-default-size-small__54baADCQ{height:30px}button.formFooterButton-default-size-medium__54baADCQ{height:34px}button.formFooterButton-default-size-large__54baADCQ{height:50px}.formFooterSummary__54baADCQ{flex:1}.formFooterSummary__54baADCQ:not(:last-child){margin-right:16px}.formFooterSummaryTitle__54baADCQ{margin-bottom:8px;margin-top:0}.formFooterSummaryParagraph__54baADCQ{margin-bottom:0;margin-top:0}")},244762(e,t,o){o.d(t,{A:()=>s});var r=o(602086),n=o(307878),a=o(352431),i=o(999803),l=o(599110);const d=(0,i.c)(a.A),s=({size:e="medium",variant:t,wrapClassName:o,className:a,...i})=>r.createElement(l.A,{className:d.concat(a)(t===n.HI[0]&&`formFooterButton-default-size-${e}`),size:e,wrapClassName:d.concat(o)("tertiary"===t?"formFooterTertiaryButtonWrap":"formFooterButtonWrap"),variant:t,...i})},333316(e,t,o){o.d(t,{A:()=>r});const r=(0,o(602086).createContext)({isStandalone:!0,header:[null,()=>{}],footer:[null,()=>{}]})},232932(e,t,o){o.d(t,{A:()=>a});var r=o(602086),n=o(333316);function a(e){const{children:t}=e,{isStandalone:o,footer:[,a]}=(0,r.useContext)(n.A);return(0,r.useLayoutEffect)(()=>{if(!o)return a(t),()=>a(null)},[o,t]),r.createElement(r.Fragment,null,o&&t)}},770167(e,t,o){o.d(t,{A:()=>r});const r={MIN:1,MAX:65535}},593091(e,t,o){o.d(t,{A:()=>a});var r=o(843871),n=o(531984);const a=()=>{const{dirty:e}=(0,r.j7)();return(0,n.w)(e),null}},531984(e,t,o){o.d(t,{w:()=>i});var r=o(602086),n=o(977872),a=o(205521);const i=e=>{const t=(0,n.wA)();(0,r.useEffect)(()=>{t((0,a.SQ)(e))},[t,e])}},612389(e,t,o){o.d(t,{A:()=>_});var r=o(274934),n=o(814557),a=o(938984),i=o(247816),l=o(263705),d=o(309130),s=o(100978);const m=(0,i.A)(a.A)`
  line-height: 20px;
`,_=({icon:e,description:t,action:o,footer:a,background:i,..._})=>{const{themeName:c}=(0,l.u)();return(0,r.jsxs)(s.A,{flexGrow:1,borderRadius:d.YC,padding:d.kc,background:i||n.Ay[`desktop-color-neutral-01-${c}`],gap:d.kc,flexDirection:"column",..._,children:[(0,r.jsxs)(s.A,{flexGrow:1,gap:d.kc,children:[e,t?(0,r.jsx)(m,{size:"medium",children:t}):null,o?(0,r.jsx)(s.A,{marginLeft:"auto",children:(0,r.jsx)(m,{size:"medium",children:o})}):null]}),a]})}},753959(e,t,o){o.d(t,{A:()=>d});var r=o(274934),n=o(814557),a=o(853777),i=o(263705),l=o(612389);const d=({children:e,icon:t,background:o,...d})=>{const{themeName:s}=(0,i.u)();return(0,r.jsx)(l.A,{icon:t||(0,r.jsx)(a.A,{variant:"fill",size:"original",color:n.Ay[`desktop-color-ublue-06-${s}`]}),description:e,background:o,...d})}},535322(e,t,o){o.d(t,{A:()=>A,I:()=>r});var r,n=o(274934),a=o(814557),i=o(158885),l=o(247816),d=o(565527),s=o(309130),m=o(100978),_=o(291508);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(r||(r={}));const c=(0,l.A)(m.A,(0,_.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:o}})=>e||a.Ay[o===d.S.DARK?`desktop-color-neutral-${t?"00":"01"}-${d.S.DARK}`:`desktop-color-neutral-${t?"01":"00"}-${d.S.LIGHT}`]};
  padding: ${({isButtonList:e,padding:t})=>t||(e?`0 ${s.Ln}`:s.Ln)};
  margin-bottom: ${({marginBottom:e})=>e||s.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}})=>a.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,u=(0,l.A)(i.A,(0,_.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:o}})=>e||a.Ay[o===d.S.DARK?`desktop-color-neutral-${t?"00":"01"}-${d.S.DARK}`:`desktop-color-neutral-${t?"01":"00"}-${d.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||a.Ay[t===d.S.DARK?`desktop-color-neutral-01-${d.S.DARK}`:`desktop-color-neutral-00-${d.S.LIGHT}`]};
      height: 48px;
      padding: 0 ${s.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${s.Ln} ${s.Ln};
      }
    }
  }
`,A=({type:e,marginBottom:t,margin:o,padding:a,flex:i,width:l,nested:d,...s})=>"items"in s?(0,n.jsx)(u,{marginBottom:t,margin:o,padding:a,flex:i,nested:d,...s}):(0,n.jsx)(c,{nested:d,width:l,marginBottom:t,margin:o,padding:a,flex:i,isButtonList:e===r.BUTTON_LIST,...s,children:s.children})},555612(e,t,o){o.d(t,{A:()=>_});var r=o(274934),n=o(602086),a=o(244762),i=o(600191),l=o(247816),d=o(470070),s=o(669439);const m=(0,l.A)(i.A)`
  color: #ffffff;
`,_=(0,n.memo)(({isDisabled:e,showLoader:t,showWarning:o,showWarningIcon:n,warning:i,label:l="COMMON_ACTION_APPLY_CHANGES",onSubmit:_,form:c})=>(0,r.jsx)(s.A,{description:o?i??(0,r.jsx)(d.sA,{id:"COMMON_FORM_CHANGES_TRIGGER_PROVISION"}):null,children:(0,r.jsx)(a.A,{disabled:e,type:"submit",onClick:_,variant:"primary",Icon:o||n?(0,r.jsx)(m,{variant:"fill"}):null,loader:t?"loading":void 0,form:c,children:(0,r.jsx)(d.sA,{id:l})})}))},89469(e,t,o){o.d(t,{A:()=>l});var r=o(274934),n=o(602086),a=o(309130),i=o(100978);const l=(0,n.forwardRef)((e,t)=>(0,r.jsx)(i.A,{ref:t,flexDirection:"column",gap:a.kc,width:"100%",...e}))},756782(e,t,o){o.d(t,{A:()=>b});var r=o(274934),n=o(814557),a=o(602086),i=o(938984),l=o(247816),d=o(309130),s=o(590979),m=o(147045),_=o(291508),c=o(304151),u=o(100978),A=o(535322),f=o(89469);const p=(0,l.A)(A.A,(0,_.A)("isOutlined"))`
  border: ${({theme:{themeName:e},isOutlined:t})=>`1px solid ${t?n.Ay[`desktop-color-ublue-06-${e}`]:"transparent"}`};
`,b=({children:e,title:t,tooltip:o,tooltipProps:n,[m.L]:l,titleAction:_,isOutlined:A})=>{const b=(e=>a.Children.toArray(e).length>0)(e);return(0,r.jsx)(p,{marginBottom:"none",...s.A.addDataTestId(l??""),isOutlined:A,children:(0,r.jsxs)(u.A,{flexDirection:"column",...b&&{gap:d.Ln},width:"100%",children:[t?(0,r.jsxs)(u.A,{alignItems:"center",gap:d.YC,justifyContent:"space-between",width:"100%",children:[(0,r.jsxs)(u.A,{gap:d.YC,alignItems:"center",children:[(0,r.jsx)(i.A,{variant:"heading-medium",children:t}),o?(0,r.jsx)(c.A,{description:o,portal:!0,...n}):null]}),_?(0,r.jsx)(u.A,{children:_}):null]}):null,b?(0,r.jsx)(f.A,{children:e}):null]})})}},479523(e,t,o){o.d(t,{A:()=>s});var r=o(274934),n=o(753959),a=o(341699),i=o(793442),l=o(100978),d=o(470070);const s=({cloud_template:e,feature:t})=>(0,r.jsx)(n.A,{children:(0,r.jsxs)(l.A,{flexDirection:"column",children:[(0,r.jsx)(d.sA,{id:"COMMON_MANAGED_BY_FABRIC",values:{feature:t}}),(0,r.jsx)(i.A,{id:"COMMON_VIEW_IN_SITE_MANAGER",href:(0,a.vF)(e)})]})})},341699(e,t,o){o.d(t,{HV:()=>a,pm:()=>i,vF:()=>n});var r=o(726831);const n=e=>`${r.A.fabricsOrchestration}?orchestrationId=${e?.template_id||""}&orgId=${e?.organization_id||""}`,a=e=>`${r.A.fabricsDeviceTemplates}/${e?.template_id||""}?orgId=${e?.organization_id||""}`,i=()=>`${r.A.fabricsOrchestration}`},594492(e,t,o){o.d(t,{A:()=>_});var r=o(274934),n=o(602086),a=o(599110),i=o(247816),l=o(309130),d=o(470070),s=o(291508);const m=(0,i.A)("footer",(0,s.A)("hasFormResetButton"))`
  display: flex;
  justify-content: ${({hasFormResetButton:e})=>e?"space-between":"flex-end"};
  padding: ${l.S2} ${l.fS};
  gap: ${l.kc};
`,_=({allowCancel:e,isDirty:t,isInvalid:o,isSubmitting:i,onFormSubmit:l,onFormReset:s,onFormCancel:_,className:c,submitButtonText:u,customButton:A,applyButton:f,applyButtonFirst:p,hideCancelButton:b,form:h})=>{const g=(0,n.useMemo)(()=>f||(0,r.jsx)(a.A,{name:"submit",variant:"primary",type:"submit",onClick:l,disabled:!t||o||i,form:h,children:(0,r.jsx)(d.sA,{id:u||"COMMON_ACTION_APPLY_CHANGES"})}),[f,h,t,o,i,l,u]);return(0,r.jsxs)(m,{className:c,hasFormResetButton:!!s,children:[p?g:A,b?null:(0,r.jsx)(a.A,{name:"cancel",variant:"default",type:"button",onClick:_,disabled:!e&&!t,children:(0,r.jsx)(d.sA,{id:"COMMON_ACTION_CANCEL"})}),s?(0,r.jsx)(a.A,{name:"reset",variant:"default",type:"button",onClick:s,disabled:!t,children:(0,r.jsx)(d.sA,{id:"COMMON_ACTION_RESET_TO_DEFAULT"})}):null,p?A:g]})}},115114(e,t,o){o.d(t,{A:()=>m});var r=o(274934),n=o(232932),a=o(247816),i=o(409844),l=o(594492);const d=(0,a.A)("div")`
  height: 66px;
`,s=i.AH`
  padding: 0px !important;
`,m=({isDirty:e,onFormSubmit:t,onFormCancel:o,isInvalid:a,...i})=>e?(0,r.jsx)(n.A,{children:(0,r.jsx)(l.A,{isDirty:e,onFormCancel:o,onFormSubmit:t,isInvalid:a,className:s,...i})}):(0,r.jsx)(d,{})},362751(e,t,o){o.d(t,{KW:()=>_,XE:()=>u,fR:()=>s,l9:()=>m,sD:()=>A,ww:()=>c});var r=o(274934),n=o(950804),a=o(770167),i=o(570866),l=o(470070),d=o(894381);const s=60,m=86400,_=3600,c=1812,u=1813,A=n.A.object().shape({x_secret:n.A.string().label("COMMON_SHARED_SECRET").min(1).max(d.IF).matches(i.Aq,{message:(0,r.jsx)(l.sA,{id:"SETTINGS_RADIUS_SHARED_SECRET_VALIDATION"})}).required(),auth_port:n.A.number().label("SETTINGS_ADVANCED_RADIUS_SERVER_FORM_LABEL_AUTHENTICATION_PORT").min(a.A.MIN).max(a.A.MAX).required(),acct_port:n.A.number().label("SETTINGS_ADVANCED_RADIUS_SERVER_FORM_LABEL_ACCOUNTING_PORT").min(a.A.MIN).max(a.A.MAX).required(),interim_update_interval:n.A.number().label("COMMON_INTERIM_UPDATE_INTERVAL").required().min(s).max(m),tunneled_reply:n.A.boolean()})},681023(e,t,o){o.d(t,{Ct:()=>_,F8:()=>d,Wo:()=>l,dE:()=>i,fr:()=>m,zr:()=>s});var r=o(440727),n=o(544841),a=o(362751);const i=(e,t)=>({_id:e._id,name:e.name,enabled:t.enabled,configure_whole_network:t.configure_whole_network,attr_hidden_id:e.attr_hidden_id,attr_no_delete:e.attr_no_delete,attr_no_edit:e.attr_no_edit,x_secret:t.x_secret,auth_port:t.auth_port??a.ww,acct_port:t.acct_port??a.XE,tunneled_reply:t.tunneled_reply??!0,interim_update_interval:t.interim_update_interval??a.KW,wireless_networks_enabled:e.vlan_wlan_mode===n.z.ENABLED,wired_networks_enabled:e.vlan_enabled||!1}),l=e=>{const{wired_networks_enabled:t,wireless_networks_enabled:o,...r}=e;return{...r,vlan_wlan_mode:e.wireless_networks_enabled?n.z.ENABLED:n.z.DISABLED,vlan_enabled:e.wired_networks_enabled}},d=e=>({key:r.FP.RADIUS,enabled:e.enabled,configure_whole_network:e.configure_whole_network,x_secret:e.x_secret,auth_port:e.auth_port,acct_port:e.acct_port,tunneled_reply:e.tunneled_reply,interim_update_interval:e.interim_update_interval}),s=e=>({acct_port:e.acct_port||a.XE,auth_port:e.auth_port||a.ww}),m=(e,t)=>e.wired_networks_enabled!==t.wired_networks_enabled||e.wireless_networks_enabled!==t.wireless_networks_enabled,_=(e,t)=>e.enabled!==t.enabled||e.configure_whole_network!==t.configure_whole_network||e.x_secret!==t.x_secret||e.auth_port!==t.auth_port||e.acct_port!==t.acct_port||e.tunneled_reply!==t.tunneled_reply||e.interim_update_interval!==t.interim_update_interval},877840(e,t,o){o.d(t,{A:()=>l});var r=o(274934),n=o(602086),a=o(184931),i=o(712642);const l=({isDisabled:e,isAdditive:t=!0,children:o})=>{const l=(0,a.pv)(),d=(0,n.useMemo)(()=>"boolean"==typeof e?{fields:e,labels:e,tooltipIcons:e,tooltipPopovers:!1}:e,[e]),s=(0,n.useMemo)(()=>({fields:t?d.fields||l.fields:d.fields,labels:t?d.labels||l.labels:d.labels,tooltipIcons:t?d.tooltipIcons||l.tooltipIcons:d.tooltipIcons,tooltipPopovers:t?d.tooltipPopovers||l.tooltipPopovers:d.tooltipPopovers}),[t,d.fields,d.labels,d.tooltipIcons,d.tooltipPopovers,l.fields,l.labels,l.tooltipIcons,l.tooltipPopovers]);return(0,r.jsx)(i.I.Provider,{value:s,children:o})}}}]);