summaryrefslogtreecommitdiffstats
path: root/src/web/gui/v2/3705.38e023af816fb6ce8fc9.chunk.js
blob: c674c51f4ce96cf4a018c8e4661885c8211b98cd (plain)
1
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c655a45e-d47e-4c2a-aecc-50ea4980b609",e._sentryDebugIdIdentifier="sentry-dbid-c655a45e-d47e-4c2a-aecc-50ea4980b609")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"08864407160b3973b9b88c5ae92687282b21e2f4"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[3705],{3705:(e,t,n)=>{n.d(t,{A:()=>f});n(62953);var o=n(96540);const d={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0},f=()=>{const[e,t]=(0,o.useState)(null),[n,f]=(0,o.useState)(d),i=(0,o.useMemo)((()=>new window.ResizeObserver((e=>{if(e[0]){const{x:t,y:n,width:o,height:d,top:i,left:s,bottom:a,right:c}=e[0].contentRect;f({x:t,y:n,width:o,height:d,top:i,left:s,bottom:a,right:c})}}))),[]);return(0,o.useLayoutEffect)((()=>{if(e)return i.observe(e),()=>{i.disconnect()}}),[e]),[t,n]}}}]);