1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
|
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8446],{30073:function(e,t,o){var n=o(64836);t.Z=void 0;var r=n(o(64938)),i=o(85893),a=(0,r.default)([(0,i.jsx)("path",{d:"M8 16h12V4H8v12zm2-7h3V6h2v3h3v2h-3v3h-2v-3h-3V9z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M4 22h14v-2H4V6H2v14c0 1.1.9 2 2 2zM8 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-2H8zm12 14H8V4h12v12zm-7-2h2v-3h3V9h-3V6h-2v3h-3v2h3z"},"1")],"LibraryAddTwoTone");t.Z=a},9404:function(e,t,o){o.d(t,{Z:function(){return n}});const n=(0,o(45711).Z)("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"}]])},62841: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<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowContainer=void 0;var r=o(85893),i=o(67294),a=o(9512);t.ArrowContainer=function(e){var t=e.childRect,o=e.popoverRect,c=e.position,u=e.arrowColor,l=e.arrowSize,d=e.arrowClassName,s=e.arrowStyle,p=e.className,f=e.children,v=e.style,h=(0,a.useArrowContainer)({childRect:t,popoverRect:o,position:c,arrowColor:u,arrowSize:l}),g=h.arrowContainerStyle,m=h.arrowStyle,b=(0,i.useMemo)((function(){return n(n({},g),v)}),[g,v]),y=(0,i.useMemo)((function(){return n(n({},m),s)}),[m,s]);return(0,r.jsxs)("div",{className:p,style:b,children:[(0,r.jsx)("div",{style:y,className:d}),f]})}},82106: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<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Popover=t.usePopover=t.ArrowContainer=t.useArrowContainer=void 0;var r=o(85893),i=o(67294),a=o(95114),c=o(62319),u=o(91101);Object.defineProperty(t,"usePopover",{enumerable:!0,get:function(){return u.usePopover}});var l=o(16444),d=o(9270),s=o(9512);Object.defineProperty(t,"useArrowContainer",{enumerable:!0,get:function(){return s.useArrowContainer}});var p=o(62841);Object.defineProperty(t,"ArrowContainer",{enumerable:!0,get:function(){return p.ArrowContainer}});var f=["top","left","right","bottom"],v=(0,i.forwardRef)((function(e,t){var o=e.isOpen,n=e.children,s=e.content,p=e.positions,v=void 0===p?f:p,h=e.align,g=void 0===h?"center":h,m=e.padding,b=void 0===m?0:m,y=e.reposition,R=void 0===y||y,w=e.parentElement,P=void 0===w?window.document.body:w,C=e.boundaryElement,E=void 0===C?P:C,M=e.containerClassName,x=e.containerStyle,_=e.transform,j=e.transformMode,O=void 0===j?"absolute":j,N=e.boundaryInset,T=void 0===N?0:N,A=e.onClickOutside,k=e.clickOutsideCapture,L=void 0!==k&&k,V=(0,l.useMemoizedArray)(Array.isArray(v)?v:[v]),I=(0,d.useHandlePrevValues)({positions:V,reposition:R,transformMode:O,transform:_,boundaryElement:E,boundaryInset:T}),S=I.prev,z=I.updatePrevValues,B=(0,i.useRef)(),Y=(0,i.useState)({align:g,nudgedLeft:0,nudgedTop:0,position:V[0],padding:b,childRect:c.EMPTY_RECT,popoverRect:c.EMPTY_RECT,parentRect:c.EMPTY_RECT,boundaryRect:c.EMPTY_RECT,boundaryInset:T,violations:c.EMPTY_RECT,hasViolations:!1}),H=Y[0],F=Y[1],q=(0,i.useCallback)((function(e){return F(e)}),[]),Z=(0,u.usePopover)({isOpen:o,childRef:B,containerClassName:M,parentElement:P,boundaryElement:E,transform:_,transformMode:O,positions:V,align:g,padding:b,boundaryInset:T,reposition:R,onPositionPopover:q}),D=Z.positionPopover,G=Z.popoverRef,J=Z.scoutRef;(0,i.useLayoutEffect)((function(){var e=!0,t=function(){var n,r;if(o&&e){var i=null===(n=null===B||void 0===B?void 0:B.current)||void 0===n?void 0:n.getBoundingClientRect(),a=null===(r=null===G||void 0===G?void 0:G.current)||void 0===r?void 0:r.getBoundingClientRect();null==i||null==a||(0,c.rectsAreEqual)(i,H.childRect)&&a.width===H.popoverRect.width&&a.height===H.popoverRect.height&&H.padding===b&&H.align===g&&V===S.positions&&R===S.rep
|