"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[96200],{668763(e,n,t){var i;t.d(n,{Z:()=>i}),function(e){e.AIRVIEW="AIRVIEW"}(i||(i={}))},439490(e,n,t){t.r(n),t.d(n,{default:()=>w});var i=t(296540),o=t(36035);const a=e=>i.createElement(o.zM,{"data-uic-component":"Window.Root",...e});a.displayName="WindowRoot";var s=t(469733),r=t(407895),c=t(668763);const l=(0,i.lazy)(()=>t.e(31979).then(t.bind(t,731979))),u={[c.Z.AIRVIEW]:l};var d=t(956846);const w=()=>{const e=(0,s.useDispatch)(),n=(0,s.useSelector)(r.iH),t=(0,i.useCallback)((n,t,i)=>{e((0,d.j8)(n,t,i))},[e]),o=(0,i.useCallback)(()=>{e((0,d.Ot)(window.innerWidth,window.innerHeight))},[]);return(0,i.useEffect)(()=>(window.addEventListener("resize",o),o(),()=>{window.removeEventListener("resize",o)}),[]),n.map(({id:n,windowType:o,windowProps:s,...r})=>{const c=u[o];return c?i.createElement(i.Suspense,{fallback:null,key:n},i.createElement(a,{isOpen:!0,onOpenChange:t=>!t&&e((0,d.TR)(n))},i.createElement(c,{onPositionChange:({x:e,y:i})=>t(n,e,i),...r,...s}))):null})}}}]);