summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/2337.40d93ac60f1ccbb653ae.chunk.js
blob: 58c908553c6278521e50a56c29451f0fd67cba86 (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]="dcf56212-c287-4a34-b430-0496c5652e56",e._sentryDebugIdIdentifier="sentry-dbid-dcf56212-c287-4a34-b430-0496c5652e56")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"8b7b01b6c705cf50f8050ce0fb8fc6b58fe68567"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[2337],{38626:function(e,t,n){var o=n(87462),f=n(29439),i=n(45987),r=n(67294),c=n(93416),u=n(64637),d=n(82351),a=["text","TextComponent"];t.Z=function(e){var t=e.text,n=e.TextComponent,s=void 0===n?c.Text:n,l=(0,i.Z)(e,a),b=(0,r.useState)(""),h=(0,f.Z)(b,2),g=h[0],w=h[1],y=(0,r.useState)(),p=(0,f.Z)(y,2),v=p[0],x=p[1];return(0,r.useEffect)((function(){if(v){for(var e=v.offsetWidth,n=0;v.scrollWidth>e;)v.textContent=(0,u.a)(v.textContent,n),n+=1;v.textContent!==t&&w(t)}}),[t,v]),r.createElement(d.Z,{content:g?t:"",align:"bottom",isBasic:!0},r.createElement(s,(0,o.Z)({truncate:!0,ref:x},l),t))}},24281:function(e,t,n){var o=n(29439),f=n(67294),i={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};t.Z=function(){var e=(0,f.useState)(null),t=(0,o.Z)(e,2),n=t[0],r=t[1],c=(0,f.useState)(i),u=(0,o.Z)(c,2),d=u[0],a=u[1],s=(0,f.useMemo)((function(){return new window.ResizeObserver((function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,f=t.width,i=t.height,r=t.top,c=t.left,u=t.bottom,d=t.right;a({x:n,y:o,width:f,height:i,top:r,left:c,bottom:u,right:d})}}))}),[]);return(0,f.useLayoutEffect)((function(){if(n)return s.observe(n),function(){s.disconnect()}}),[n]),[r,d]}}}]);