"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5680],{35381:(e,t,o)=>{var n=o(24994);t.A=void 0;var r=n(o(44888)),i=o(74848);t.A=(0,r.default)([(0,i.jsx)("path",{d:"M8 16h12V4H8zm2-7h3V6h2v3h3v2h-3v3h-2v-3h-3z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M4 22h14v-2H4V6H2v14c0 1.1.9 2 2 2M8 2c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm12 14H8V4h12zm-7-2h2v-3h3V9h-3V6h-2v3h-3v2h3z"},"1")],"LibraryAddTwoTone")},23238:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(95737).A)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},40640:function(e,t,o){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o{Object.defineProperty(t,"__esModule",{value:!0}),t.PopoverPortal=void 0;var n=o(96540),r=o(40961);t.PopoverPortal=function(e){var t=e.container,o=e.element,i=e.scoutElement,a=e.children;return(0,n.useLayoutEffect)(function(){return t.appendChild(o),t.appendChild(i),function(){t.removeChild(o),t.removeChild(i)}},[t,o,i]),(0,r.createPortal)(a,o)}},46305:function(e,t,o){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,o=1,n=arguments.length;ou?u-e:r,n=Number.isNaN(n=(n=nl?l-e:n)?0:n,r=Number.isNaN(r)?0:r,i){case"right":return{borderTop:"".concat(a,"px solid transparent"),borderBottom:"".concat(a,"px solid transparent"),borderRight:"".concat(a,"px solid ").concat(c),left:0,top:n};case"left":return{borderTop:"".concat(a,"px solid transparent"),borderBottom:"".concat(a,"px solid transparent"),borderLeft:"".concat(a,"px solid ").concat(c),right:0,top:n};case"bottom":return{borderLeft:"".concat(a,"px solid transparent"),borderRight:"".concat(a,"px solid transparent"),borderBottom:"".concat(a,"px solid ").concat(c),top:0,left:r};case"top":return{borderLeft:"".concat(a,"px solid transparent"),borderRight:"".concat(a,"px solid transparent"),borderTop:"".concat(a,"px solid ").concat(c),bottom:0,left:r};default:return{display:"hidden"}}}())},[c,a,t.height,t.left,t.top,t.width,o.height,o.left,o.top,o.width,i])}}},5116:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useElementRef=void 0;var n=o(96540),r=o(72456);t.useElementRef=function(e){var t=e.containerClassName,o=e.containerStyle,i=(0,n.useRef)(),a=(0,n.useState)(function(){return(0,r.createContainer)({containerStyle:o,containerClassName:t})})[0];return(0,n.useLayoutEffect)(function(){a.className=t},[t,a]),(0,n.useLayoutEffect)(function(){Object.assign(a.style,o)},[o,a]),i.current=a,i}},52128:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useHandlePrevValues=void 0;var n=o(96540);t.useHandlePrevValues=function(e){var t=(0,n.useRef)(e.positions),o=(0,n.useRef)(e.reposition),r=(0,n.useRef)(e.transformMode),i=(0,n.useRef)(e.transform),a=(0,n.useRef)(e.boundaryElement),c=(0,n.useRef)(e.boundaryInset),u=(0,n.useCallback)(function(){t.current=e.positions,o.current=e.reposition,r.current=e.transformMode,i.current=e.transform,a.current=e.boundaryElement,c.current=e.boundaryInset},[e.boundaryElement,e.boundaryInset,e.positions,e.reposition,e.transform,e.transformMode]);return{prev:{positions:t.current,reposition:o.current,transformMode:r.current,transform:i.current,boundaryElement:a.current,boundaryInset:c.current},updatePrevValues:u}}},71292:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useMemoizedArray=void 0;var n=o(96540);t.useMemoizedArray=function(e){var t=(0,n.useRef)(e);return(0,n.useMemo)(function(){if(t.current===e)return t.current;if(t.current.length!==e.length)return t.current=e,e;for(var o=0;o{Object.defineProperty(t,"__esModule",{value:!0}),t.usePopover=void 0;var n=o(96540),r=o(72456),i=o(5116),a={position:"fixed",overflow:"visible",top:"0px",left:"0px"},c={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"};t.usePopover=function(e){var t=e.isOpen,o=e.childRef,u=e.positions,l=e.containerClassName,s=e.parentElement,d=e.transform,p=e.transformMode,f=e.align,v=e.padding,h=e.reposition,g=e.boundaryInset,m=e.boundaryElement,b=e.onPositionPopover,y=(0,i.useElementRef)({containerClassName:"react-tiny-popover-scout",containerStyle:c}),R=(0,i.useElementRef)({containerClassName:null!=l&&l.length>0&&"react-tiny-popover-container"!==l?"react-tiny-popover-container ".concat(l):"react-tiny-popover-container",containerStyle:a}),w=(0,n.useCallback)(function(e){var n,i,a=void 0===e?{}:e,c=a.positionIndex,l=void 0===c?0:c,P=a.parentRect,C=void 0===P?s.getBoundingClientRect():P,E=a.childRect,M=void 0===E?null===(n=null==o?void 0:o.current)||void 0===n?void 0:n.getBoundingClientRect():E,x=a.scoutRect,_=void 0===x?null===(i=null==y?void 0:y.current)||void 0===i?void 0:i.getBoundingClientRect():x,j=a.popoverRect,O=void 0===j?R.current.getBoundingClientRect():j,N=a.boundaryRect,T=void 0===N?m===s?C:m.getBoundingClientRect():N;if(M&&C&&t){if(d&&"absolute"===p){var A="function"==typeof d?d({childRect:M,popoverRect:O,parentRect:C,boundaryRect:T,padding:v,align:f,nudgedTop:0,nudgedLeft:0,boundaryInset:g,violations:r.EMPTY_RECT,hasViolations:!1}):d,k=A.top,L=A.left,V=Math.round(C.left+L-_.left),I=Math.round(C.top+k-_.top);R.current.style.transform="translate(".concat(V,"px, ").concat(I,"px)"),b({childRect:M,popoverRect:(0,r.createRect)({left:V,top:I,width:O.width,height:O.height}),parentRect:C,boundaryRect:T,padding:v,align:f,transform:{top:k,left:L},nudgedTop:0,nudgedLeft:0,boundaryInset:g,violations:r.EMPTY_RECT,hasViolations:!1});return}var S=l===u.length,z=S?u[0]:u[l],B=(0,r.getNewPopoverRect)({childRect:M,popoverRect:O,boundaryRect:T,position:z,align:f,padding:v,reposition:h},g),Y=B.rect;if(B.boundaryViolation&&h&&!S){w({positionIndex:l+1,childRect:M,popoverRect:O,parentRect:C,boundaryRect:T});return}var H=Y.top,F=Y.left,q=Y.width,D=Y.height,G=h&&!S,J=(0,r.getNudgedPopoverRect)(Y,T,g),K=J.left,Q=J.top,U=H,W=F;G&&(U=Q,W=K),U=Math.round(U-_.top),W=Math.round(W-_.left),R.current.style.transform="translate(".concat(W,"px, ").concat(U,"px)");var X={top:T.top+g-U,left:T.left+g-W,right:W+q-T.right+g,bottom:U+D-T.bottom+g},Z={childRect:M,popoverRect:(0,r.createRect)({left:W,top:U,width:q,height:D}),parentRect:C,boundaryRect:T,position:z,align:f,padding:v,nudgedTop:Q-H,nudgedLeft:K-F,boundaryInset:g,violations:{top:X.top<=0?0:X.top,left:X.left<=0?0:X.left,right:X.right<=0?0:X.right,bottom:X.bottom<=0?0:X.bottom},hasViolations:X.top>0||X.left>0||X.right>0||X.bottom>0};if(d){b(Z);var $="function"==typeof d?d(Z):d,ee=$.top,et=$.left;R.current.style.transform="translate(".concat(Math.round(W+(null!=et?et:0)),"px, ").concat(Math.round(U+(null!=ee?ee:0)),"px)"),Z.nudgedLeft+=null!=et?et:0,Z.nudgedTop+=null!=ee?ee:0,Z.transform={top:ee,left:et}}b(Z)}},[s,o,y,R,m,t,d,p,u,f,v,h,g,b]);return{positionPopover:w,popoverRef:R,scoutRef:y}}},72456:function(e,t){var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,o=1,n=arguments.length;oc.right-o||"bottom"===n&&s.bottom>c.bottom-o);return{rect:s,boundaryViolation:d}},t.getNudgedPopoverRect=function(e,n,r){var i=n.top+r,a=n.left+r,c=n.right-r,u=n.bottom-r,l=e.topu?u-e.height:l;var s=e.leftc?c-e.width:s,(0,t.createRect)(o(o({},e),{top:l,left:s}))}}}]);