"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[66818],{566818(e,t,i){i.r(t),i.d(t,{default:()=>C});var s=i(274934),a=i(602086),n=i(977872),o=i(832162),l=i(869332),r=i(793442),c=i(100978),A=i(470070),d=i(309130),O=i(598990),_=i(341699);const C=({onCancel:e,cloudTemplate:t})=>{const i=(0,n.wA)(),C=(0,a.useCallback)(()=>{i((0,l.AS)()),e()},[i,e]),N=(0,a.useCallback)(()=>{i((0,O.Np)("global_wifi")).then(e=>{(e?.data?.setting_keys||[]).length>0&&i((0,O.Uc)(void 0,{resolveWithExisting:!1}))}),C()},[i,C]);return(0,s.jsx)(o.A,{title:(0,s.jsx)(A.sA,{id:"COMMON_ADOPTION_UNAVAILABLE"}),size:"small",onRequestClose:C,actions:[{type:"button",text:(0,s.jsx)(A.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:C},{type:"button",text:(0,s.jsx)(A.sA,{id:"COMMON_DETACH"}),onClick:N,variant:"danger"}],isOpen:!0,allowOverflow:!0,children:(0,s.jsxs)(c.A,{flexDirection:"column",gap:d.kc,children:[(0,s.jsx)(A.sA,{id:"COMMON_MESHING_ADOPTION_BLOCKED_BY_FABRIC"}),(0,s.jsx)(r.A,{id:"COMMON_VIEW_IN_SITE_MANAGER",href:(0,_.vF)(t)})]})})}},341699(e,t,i){i.d(t,{HV:()=>n,pm:()=>o,vF:()=>a});var s=i(726831);const a=e=>`${s.A.fabricsOrchestration}?orchestrationId=${e?.template_id||""}&orgId=${e?.organization_id||""}`,n=e=>`${s.A.fabricsDeviceTemplates}/${e?.template_id||""}?orgId=${e?.organization_id||""}`,o=()=>`${s.A.fabricsOrchestration}`}}]);