"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[96200],{638990(e,n,i){var t;i.d(n,{Z:()=>t}),function(e){e.AIRVIEW="AIRVIEW"}(t||(t={}))},242342(e,n,i){i.r(n),i.d(n,{default:()=>p});var t=i(274934),o=i(602086),s=i(129467);const a=e=>o.createElement(s.zM,{"data-uic-component":"Window.Root",...e});a.displayName="WindowRoot";var r=i(977872),d=i(285832),w=i(638990);const c=(0,o.lazy)(()=>i.e(67225).then(i.bind(i,967225))),l={[w.Z.AIRVIEW]:c};var u=i(864129);const p=()=>{const e=(0,r.wA)(),n=(0,r.d4)(d.iH),i=(0,o.useCallback)((n,i,t)=>{e((0,u.j8)(n,i,t))},[e]),s=(0,o.useCallback)(()=>{e((0,u.Ot)(window.innerWidth,window.innerHeight))},[e]);return(0,o.useEffect)(()=>(window.addEventListener("resize",s),s(),()=>{window.removeEventListener("resize",s)}),[]),n.map(({id:n,windowType:s,windowProps:r,...d})=>{const w=l[s];return w?(0,t.jsx)(o.Suspense,{fallback:null,children:(0,t.jsx)(a,{isOpen:!0,onOpenChange:i=>!i&&e((0,u.TR)(n)),children:(0,t.jsx)(w,{onPositionChange:({x:e,y:t})=>i(n,e,t),...d,...r})})},n):null})}}}]);