"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[78347],{578347(e,t,i){i.r(t),i.d(t,{default:()=>C});var a=i(296540),n=i(469733),l=i(617147),r=i(126457),s=i(349107),c=i(294303),o=i(916537),A=i(566723),_=i(457311),d=i(998386);const C=({onCancel:e,cloudTemplate:t})=>{const i=(0,n.useDispatch)(),C=(0,a.useCallback)(()=>{i((0,r.AS)()),e()},[i,e]),O=(0,a.useCallback)(()=>{i((0,_.Np)("global_wifi")).then(e=>{(e?.data?.setting_keys||[]).length>0&&i((0,_.Uc)(void 0,{resolveWithExisting:!1}))}),C()},[i,C]);return a.createElement(l.A,{title:a.createElement(o.sA,{id:"COMMON_ADOPTION_UNAVAILABLE"}),size:"small",onRequestClose:C,actions:[{type:"button",text:a.createElement(o.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:C},{type:"button",text:a.createElement(o.sA,{id:"COMMON_DETACH"}),onClick:O,variant:"danger"}],isOpen:!0,allowOverflow:!0},a.createElement(c.A,{flexDirection:"column",gap:A.kc},a.createElement(o.sA,{id:"COMMON_MESHING_ADOPTION_BLOCKED_BY_FABRIC"}),a.createElement(s.A,{id:"COMMON_VIEW_IN_SITE_MANAGER",href:(0,d.v)(t)})))}},998386(e,t,i){i.d(t,{H:()=>l,v:()=>n});var a=i(765562);const n=e=>`${a.A.fabricsOrchestration}?orchestrationId=${e?.template_id||""}&orgId=${e?.organization_id||""}`,l=e=>`${a.A.fabricsDeviceTemplates}/${e?.template_id||""}?orgId=${e?.organization_id||""}`}}]);