@para-ui/core 4.0.21 → 4.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cascader/index.js +2 -2
- package/ComboSelect/index.js +1 -1
- package/DynamicMultiBox/index.js +1 -1
- package/Form/index.js +2 -2
- package/FormItem/index.js +2 -2
- package/Pagination/index.js +2 -2
- package/README.md +4 -0
- package/Tree/index.js +2 -2
- package/_verture/{index-f59b0bc0.js → index-066d47d4.js} +594 -591
- package/_verture/{index-c77ccb98.js → index-b892f976.js} +5 -1
- package/index.js +3 -3
- package/package.json +1 -1
- package/umd/AutoBox.js +2 -2
- package/umd/AutoTips.js +4 -4
- package/umd/Breadcrumbs.js +4 -4
- package/umd/Button.js +4 -4
- package/umd/ButtonGroup.js +4 -4
- package/umd/Cascader.js +3 -3
- package/umd/Checkbox.js +2 -2
- package/umd/CheckboxGroup.js +2 -2
- package/umd/Collapse.js +2 -2
- package/umd/CollapseBox.js +1 -1
- package/umd/ComboSelect.js +3 -3
- package/umd/CopyText.js +4 -4
- package/umd/CycleSelector.js +2 -2
- package/umd/DatePicker.js +4 -4
- package/umd/Descriptions.js +2 -2
- package/umd/Desktop.js +2 -2
- package/umd/Drawer.js +2 -2
- package/umd/Dropdown.js +2 -2
- package/umd/DynamicMultiBox.js +3 -3
- package/umd/Form.js +3 -3
- package/umd/FormItem.js +3 -3
- package/umd/FunctionModal.js +5 -5
- package/umd/Help.js +2 -2
- package/umd/InputLang.js +4 -4
- package/umd/InputNumber.js +2 -2
- package/umd/Label.js +2 -2
- package/umd/Menu.js +2 -2
- package/umd/Modal.js +6 -6
- package/umd/MultiBox.js +2 -2
- package/umd/Notification.js +1 -1
- package/umd/OperateBtn.js +2 -2
- package/umd/PageHeader.js +2 -2
- package/umd/Pagination.js +2 -2
- package/umd/PopConfirm.js +2 -2
- package/umd/PopMenu.js +2 -2
- package/umd/Popover.js +2 -2
- package/umd/Progress.js +1 -1
- package/umd/QuickReply.js +2 -2
- package/umd/Radio.js +2 -2
- package/umd/RadioGroup.js +2 -2
- package/umd/Search.js +2 -2
- package/umd/Select.js +2 -2
- package/umd/SelectInput.js +2 -2
- package/umd/Selector.js +2 -2
- package/umd/SelectorPicker.js +2 -2
- package/umd/SingleBox.js +2 -2
- package/umd/Slider.js +2 -2
- package/umd/Stepper.js +2 -2
- package/umd/Switch.js +2 -2
- package/umd/Table.js +2 -2
- package/umd/Tabs.js +2 -2
- package/umd/Tag.js +2 -2
- package/umd/TextEditor.js +17 -17
- package/umd/TextField.js +2 -2
- package/umd/TimePicker.js +4 -4
- package/umd/Title.js +6 -6
- package/umd/ToggleButton.js +4 -4
- package/umd/Tooltip.js +2 -2
- package/umd/Transfer.js +2 -2
- package/umd/Tree.js +2 -2
- package/umd/Upload.js +2 -2
- /package/_verture/{index-fa1ee687.js → index-4b965dd7.js} +0 -0
package/umd/CheckboxGroup.js
CHANGED
|
@@ -18,7 +18,7 @@ object-assign
|
|
|
18
18
|
(c) Sindre Sorhus
|
|
19
19
|
@license MIT
|
|
20
20
|
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var s in i=Object(arguments[u]))n.call(i,s)&&(c[s]=i[s]);if(t){a=t(i);for(var l=0;l<a.length;l++)r.call(i,a[l])&&(c[a[l]]=i[a[l]])}}return c}},44785:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(64467),o=n(89379),i=n(3453),a=n(82284),c=n(39155),u=n(66588),s=n(8719),l=n(46942),f=n.n(l),p=n(80371),d=n(25931),h=n(25318),v=n(72137),m=n(58515);const b=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.A)(e)&&(t=e.transitionSupport);var l=c.forwardRef((function(e,t){var a=e.visible,l=void 0===a||a,b=e.removeOnLeave,y=void 0===b||b,g=e.forceRender,x=e.children,w=e.motionName,k=e.leavedClassName,A=e.eventProps,O=n(e),E=(0,c.useRef)(),j=(0,c.useRef)();var S=(0,h.A)(O,l,(function(){try{return(0,u.A)(E.current||j.current)}catch(e){return null}}),e),P=(0,i.A)(S,4),C=P[0],T=P[1],M=P[2],_=P[3],N=c.useRef(_);_&&(N.current=!0);var D=(0,c.useRef)(t);D.current=t;var R,L=c.useCallback((function(e){E.current=e,(0,s.Xf)(D.current,e)}),[]),H=(0,o.A)((0,o.A)({},A),{},{visible:l});if(x)if(C!==d.SF&&n(e)){var V,z;T===d.px?z="prepare":(0,m.$m)(T)?z="active":T===d.Mv&&(z="start"),R=x((0,o.A)((0,o.A)({},H),{},{className:f()((0,p.by)(w,C),(V={},(0,r.A)(V,(0,p.by)(w,"".concat(C,"-").concat(z)),z),(0,r.A)(V,w,"string"==typeof w),V)),style:M}),L)}else R=_?x((0,o.A)({},H),L):!y&&N.current?x((0,o.A)((0,o.A)({},H),{},{className:k}),L):g?x((0,o.A)((0,o.A)({},H),{},{style:{display:"none"}}),L):null;else R=null;return c.createElement(v.A,{ref:j},R)}));return l.displayName="CSSMotion",l}(p.J1)},97333:(e,t,n)=>{"use strict";var r=n(58168),o=n(80045),i=n(89379),a=n(23029),c=n(92901),u=n(85501),s=n(29426),l=n(39155),f=n(44785),p=n(80371),d=n(29710),h=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.A,n=function(e){(0,u.A)(f,e);var n=(0,s.A)(f);function f(){var e;return(0,a.A)(this,f),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.A)((0,i.A)({},e),{},{status:d.e8})}))}}))},e}return(0,c.A)(f,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,i=this.props,a=i.component,c=i.children,u=i.onVisibleChanged,s=(0,o.A)(i,["component","children","onVisibleChanged"]),f=a||l.Fragment,p={};return h.forEach((function(e){p[e]=s[e],delete s[e]})),delete s.keys,l.createElement(f,s,n.map((function(n){var i=n.status,a=(0,o.A)(n,["status"]),s=i===d.bK||i===d.xI;return l.createElement(t,(0,r.A)({},p,{key:a.key,visible:s,eventProps:a,onVisibleChanged:function(t){null==u||u(t,{key:a.key}),t||e.removeKey(a.key)}}),c)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=(0,d.Ss)(n);return{keyEntities:(0,d.y$)(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==d.e8||e.status!==d.au}))}}}]),f}(l.Component);n.defaultProps={component:"div"}}(p.J1)},72137:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(23029),o=n(92901),i=n(85501),a=n(29426),c=n(39155);const u=function(e){(0,i.A)(n,e);var t=(0,a.A)(n);function n(){return(0,r.A)(this,n),t.apply(this,arguments)}return(0,o.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component)},85849:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39155),o=n(80371);const i=function(e){var t=(0,r.useRef)(),n=(0,r.useRef)(e);n.current=e;var i=r.useCallback((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(o.m8,i),e.removeEventListener(o.Vc,i))}return r.useEffect((function(){return function(){a(t.current)}}),[]),[function(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(o.m8,i),e.addEventListener(o.Vc,i),t.current=e)},a]}},43982:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(39155);const o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect},84560:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39155),o=n(25371);const i=function(){var e=r.useRef(null);function t(){o.A.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,o.A)((function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)}));e.current=a},t]}},92659:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3453),o=n(39155);function i(e){var t=(0,o.useRef)(!1),n=(0,o.useState)(e),i=(0,r.A)(n,2),a=i[0],c=i[1];return(0,o.useEffect)((function(){return function(){t.current=!0}}),[]),[a,function(e){t.current||c(e)}]}},25318:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(89379),o=n(64467),i=n(3453),a=n(39155),c=n(25931),u=n(92659),s=n(43982),l=n(58515),f=n(85849);function p(e,t,n,p){var d=p.motionEnter,h=void 0===d||d,v=p.motionAppear,m=void 0===v||v,b=p.motionLeave,y=void 0===b||b,g=p.motionDeadline,x=p.motionLeaveImmediately,w=p.onAppearPrepare,k=p.onEnterPrepare,A=p.onLeavePrepare,O=p.onAppearStart,E=p.onEnterStart,j=p.onLeaveStart,S=p.onAppearActive,P=p.onEnterActive,C=p.onLeaveActive,T=p.onAppearEnd,M=p.onEnterEnd,_=p.onLeaveEnd,N=p.onVisibleChanged,D=(0,u.A)(),R=(0,i.A)(D,2),L=R[0],H=R[1],V=(0,u.A)(c.SF),z=(0,i.A)(V,2),F=z[0],B=z[1],I=(0,u.A)(null),W=(0,i.A)(I,2),Y=W[0],q=W[1],X=(0,a.useRef)(!1),U=(0,a.useRef)(null),$=(0,a.useRef)(!1),G=(0,a.useRef)(null);function K(){return n()||G.current}var J=(0,a.useRef)(!1);function Z(e){var t,n=K();e&&!e.deadline&&e.target!==n||(F===c.Tv&&J.current?t=null==T?void 0:T(n,e):F===c.Wd&&J.current?t=null==M?void 0:M(n,e):F===c.dp&&J.current&&(t=null==_?void 0:_(n,e)),!1===t||$.current||(B(c.SF),q(null)))}var Q=(0,f.A)(Z),ee=(0,i.A)(Q,1)[0],te=a.useMemo((function(){var e,t,n;switch(F){case"appear":return e={},(0,o.A)(e,c.px,w),(0,o.A)(e,c.Mv,O),(0,o.A)(e,c.m7,S),e;case"enter":return t={},(0,o.A)(t,c.px,k),(0,o.A)(t,c.Mv,E),(0,o.A)(t,c.m7,P),t;case"leave":return n={},(0,o.A)(n,c.px,A),(0,o.A)(n,c.Mv,j),(0,o.A)(n,c.m7,C),n;default:return{}}}),[F]),ne=(0,l.Ay)(F,(function(e){if(e===c.px){var t=te[c.px];return t?t(K()):l.es}var n;ie in te&&q((null===(n=te[ie])||void 0===n?void 0:n.call(te,K(),null))||null);return ie===c.m7&&(ee(K()),g>0&&(clearTimeout(U.current),U.current=setTimeout((function(){Z({deadline:!0})}),g))),l.qB})),re=(0,i.A)(ne,2),oe=re[0],ie=re[1],ae=(0,l.$m)(ie);J.current=ae,(0,s.A)((function(){H(t);var n,r=X.current;(X.current=!0,e)&&(!r&&t&&m&&(n=c.Tv),r&&t&&h&&(n=c.Wd),(r&&!t&&y||!r&&x&&!t&&y)&&(n=c.dp),n&&(B(n),oe()))}),[t]),(0,a.useEffect)((function(){(F===c.Tv&&!m||F===c.Wd&&!h||F===c.dp&&!y)&&B(c.SF)}),[m,h,y]),(0,a.useEffect)((function(){return function(){clearTimeout(U.current),$.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==L&&F===c.SF&&(null==N||N(L))}),[L,F]);var ce=Y;return te[c.px]&&ie===c.Mv&&(ce=(0,r.A)({transition:"none"},ce)),[F,ie,ce,null!=L?L:t]}},58515:(e,t,n)=>{"use strict";n.d(t,{$m:()=>f,Ay:()=>p,es:()=>s,qB:()=>l});var r=n(3453),o=n(39155),i=n(25931),a=n(43982),c=n(84560),u=[i.px,i.Mv,i.m7,i.Hs],s=!1,l=!0;function f(e){return e===i.m7||e===i.Hs}const p=function(e,t){var n=o.useState(i.cE),l=(0,r.A)(n,2),f=l[0],p=l[1],d=(0,c.A)(),h=(0,r.A)(d,2),v=h[0],m=h[1];return(0,a.A)((function(){if(f!==i.cE&&f!==i.Hs){var e=u.indexOf(f),n=u[e+1],r=t(f);r===s?p(n):v((function(e){function t(){e.isCanceled()||p(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,f]),o.useEffect((function(){return function(){m()}}),[]),[function(){p(i.px)},f]}},30156:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(44785);n(97333);const o=r.A},25931:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>f,Mv:()=>s,SF:()=>r,Tv:()=>o,Wd:()=>i,cE:()=>c,dp:()=>a,m7:()=>l,px:()=>u});var r="none",o="appear",i="enter",a="leave",c="none",u="prepare",s="start",l="active",f="end"},29710:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>l,au:()=>c,bK:()=>i,e8:()=>u,xI:()=>a,y$:()=>f});var r=n(89379),o=n(82284),i="add",a="keep",c="remove",u="removed";function s(e){var t;return t=e&&"object"===(0,o.A)(e)&&"key"in e?e:{key:e},(0,r.A)((0,r.A)({},t),{},{key:String(t.key)})}function l(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(s)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,u=t.length,s=l(e),f=l(t);s.forEach((function(e){for(var t=!1,s=o;s<u;s+=1){var l=f[s];if(l.key===e.key){o<s&&(n=n.concat(f.slice(o,s).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:i})}))),o=s),n.push((0,r.A)((0,r.A)({},l),{},{status:a})),o+=1,t=!0;break}}t||n.push((0,r.A)((0,r.A)({},e),{},{status:c}))})),o<u&&(n=n.concat(f.slice(o).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:i})}))));var p={};return n.forEach((function(e){var t=e.key;p[t]=(p[t]||0)+1})),Object.keys(p).filter((function(e){return p[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==c}))).forEach((function(t){t.key===e&&(t.status=a)}))})),n}},80371:(e,t,n)=>{"use strict";n.d(t,{J1:()=>m,Vc:()=>b,by:()=>g,m8:()=>y});var r=n(82284),o=n(20998);function i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var a,c,u,s=(a=(0,o.A)(),c="undefined"!=typeof window?window:{},u={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in c||delete u.animationend.animation,"TransitionEvent"in c||delete u.transitionend.transition),u),l={};if((0,o.A)()){var f=document.createElement("div");l=f.style}var p={};function d(e){if(p[e])return p[e];var t=s[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in l)return p[e]=t[i],p[e]}return""}var h=d("animationend"),v=d("transitionend"),m=!(!h||!v),b=h||"animationend",y=v||"transitionend";function g(e,t){return e?"object"===(0,r.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},34307:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(58168),o=n(82284),i=n(89379),a=n(80045),c=n(39155),u=n(1748),s={adjustX:1,adjustY:1},l=[0,0],f={left:{points:["cr","cl"],overflow:s,offset:[-4,0],targetOffset:l},right:{points:["cl","cr"],overflow:s,offset:[4,0],targetOffset:l},top:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:l},bottom:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:l},topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:l},leftTop:{points:["tr","tl"],overflow:s,offset:[-4,0],targetOffset:l},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:l},rightTop:{points:["tl","tr"],overflow:s,offset:[4,0],targetOffset:l},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:l},rightBottom:{points:["bl","br"],overflow:s,offset:[4,0],targetOffset:l},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:l},leftBottom:{points:["br","bl"],overflow:s,offset:[-4,0],targetOffset:l}};const p=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle;return c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t)};var d=function(e,t){var n=e.overlayClassName,s=e.trigger,l=void 0===s?["hover"]:s,d=e.mouseEnterDelay,h=void 0===d?0:d,v=e.mouseLeaveDelay,m=void 0===v?.1:v,b=e.overlayStyle,y=e.prefixCls,g=void 0===y?"rc-tooltip":y,x=e.children,w=e.onVisibleChange,k=e.afterVisibleChange,A=e.transitionName,O=e.animation,E=e.motion,j=e.placement,S=void 0===j?"right":j,P=e.align,C=void 0===P?{}:P,T=e.destroyTooltipOnHide,M=void 0!==T&&T,_=e.defaultVisible,N=e.getTooltipContainer,D=e.overlayInnerStyle,R=(0,a.A)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),L=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,(function(){return L.current}));var H=(0,i.A)({},R);"visible"in e&&(H.popupVisible=e.visible);var V=!1,z=!1;if("boolean"==typeof M)V=M;else if(M&&"object"===(0,o.A)(M)){var F=M.keepParent;V=!0===F,z=!1===F}return c.createElement(u.A,(0,r.A)({popupClassName:n,prefixCls:g,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,o=e.id;return[c.createElement("div",{className:"".concat(g,"-arrow"),key:"arrow"},n),c.createElement(p,{key:"content",prefixCls:g,id:o,overlay:r,overlayInnerStyle:D})]},action:l,builtinPlacements:f,popupPlacement:S,ref:L,popupAlign:C,getPopupContainer:N,onPopupVisibleChange:w,afterPopupVisibleChange:k,popupTransitionName:A,popupAnimation:O,popupMotion:E,defaultPopupVisible:_,destroyPopupOnHide:V,autoDestroy:z,mouseLeaveDelay:m,popupStyle:b,mouseEnterDelay:h},H),x)};const h=(0,c.forwardRef)(d)},94934:(e,t)=>{"use strict";t.DD=void 0;var n={adjustX:1,adjustY:1},r=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}};t.DD=o},1748:(e,t,n)=>{"use strict";n.d(t,{A:()=>ut});var r=n(89379),o=n(58168),i=n(23029),a=n(92901),c=n(9417),u=n(85501),s=n(29426),l=n(64467),f=n(39155),p=n.n(f),d=n(69514),h=n.n(d),v=n(25371),m=n(54808),b=n(66588),y=n(8719),g=n(69916),x=n(88822),w=n(46942),k=n.n(w);function A(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var O=n(3453),E=n(80045),j=n(68430),S=n(30156);function P(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function C(e){var t=e.prefixCls,n=e.visible,i=e.zIndex,a=e.mask,c=e.maskMotion,u=e.maskAnimation,s=e.maskTransitionName;if(!a)return null;var l={};return(c||s||u)&&(l=(0,r.A)({motionAppear:!0},P({motion:c,prefixCls:t,transitionName:s,animation:u}))),f.createElement(S.A,(0,o.A)({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return f.createElement("div",{style:{zIndex:i},className:k()("".concat(t,"-mask"),n)})}))}var T,M=n(82284);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function H(){if(void 0!==T)return T;T="";var e=document.createElement("p").style;for(var t in L)t+"Transform"in e&&(T=t);return T}function V(){return H()?"".concat(H(),"TransitionProperty"):"transitionProperty"}function z(){return H()?"".concat(H(),"Transform"):"transform"}function F(e,t){var n=V();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function B(e,t){var n=z();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var I,W=/matrix\((.*)\)/,Y=/matrix3d\((.*)\)/;function q(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function X(e,t,n){var r=n;if("object"!==D(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):I(e,t);for(var o in t)t.hasOwnProperty(o)&&X(e,o,t[o])}function U(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function $(e){return U(e)}function G(e){return U(e,!0)}function K(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=$(r),t.top+=G(r),t}function J(e){return null!=e&&e==e.window}function Z(e){return J(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Q=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),ee=/^(top|right|bottom|left)$/,te="currentStyle",ne="runtimeStyle",re="left";function oe(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ie(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ae(e,t,n){"static"===X(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=oe("left",n),a=oe("top",n),c=ie(i),u=ie(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var s,l="",f=K(e);("left"in t||"top"in t)&&(l=(s=e).style.transitionProperty||s.style[V()]||"",F(e,"none")),"left"in t&&(e.style[c]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[u]="",e.style[a]="".concat(o,"px")),q(e);var p=K(e),d={};for(var h in t)if(t.hasOwnProperty(h)){var v=oe(h,n),m="left"===h?r:o,b=f[h]-p[h];d[v]=v===h?m+b:m-b}X(e,d),q(e),("left"in t||"top"in t)&&F(e,l);var y={};for(var g in t)if(t.hasOwnProperty(g)){var x=oe(g,n),w=t[g]-f[g];y[x]=g===x?d[x]+w:d[x]-w}X(e,y)}function ce(e,t){var n=K(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(z());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(z());if(r&&"none"!==r){var o,i=r.match(W);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,B(e,"matrix(".concat(o.join(","),")"))):((o=r.match(Y)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,B(e,"matrix3d(".concat(o.join(","),")")))}else B(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function ue(e,t){for(var n=0;n<e.length;n++)t(e[n])}function se(e){return"border-box"===I(e,"boxSizing")}"undefined"!=typeof window&&(I=window.getComputedStyle?function(e,t,n){var r=n,o="",i=Z(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e[te]&&e[te][t];if(Q.test(n)&&!ee.test(t)){var r=e.style,o=r[re],i=e[ne][re];e[ne][re]=e[te][re],r[re]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[re]=o,e[ne][re]=i}return""===n?"auto":n});var le=["margin","border","padding"],fe=-1,pe=2,de=1;function he(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var c=void 0;c="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(I(e,c))||0}return a}var ve={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function me(e,t,n){var r=n;if(J(e))return"width"===t?ve.viewportWidth(e):ve.viewportHeight(e);if(9===e.nodeType)return"width"===t?ve.docWidth(e):ve.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=se(e),c=0;(null==i||i<=0)&&(i=void 0,(null==(c=I(e,t))||Number(c)<0)&&(c=e.style[t]||0),c=Math.floor(parseFloat(c))||0),void 0===r&&(r=a?de:fe);var u=void 0!==i||a,s=i||c;return r===fe?u?s-he(e,["border","padding"],o):c:u?r===de?s:s+(r===pe?-he(e,["border"],o):he(e,["margin"],o)):c+he(e,le.slice(r),o)}ue(["Width","Height"],(function(e){ve["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],ve["viewport".concat(e)](n))},ve["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var be={position:"absolute",visibility:"hidden",display:"block"};function ye(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=me.apply(void 0,t):function(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}(o,be,(function(){r=me.apply(void 0,t)})),r}function ge(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}ue(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);ve["outer".concat(t)]=function(t,n){return t&&ye(t,e,n?0:de)};var n="width"===e?["Left","Right"]:["Top","Bottom"];ve[e]=function(t,r){var o=r;return void 0!==o?t?(se(t)&&(o+=he(t,["padding","border"],n)),X(t,e,o)):void 0:t&&ye(t,e,fe)}}));var xe={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Z,offset:function(e,t,n){if(void 0===t)return K(e);!function(e,t,n){if(n.ignoreShake){var r=K(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),c=t.top.toFixed(0);if(o===a&&i===c)return}n.useCssRight||n.useCssBottom?ae(e,t,n):n.useCssTransform&&z()in document.body.style?ce(e,t):ae(e,t,n)}(e,t,n||{})},isWindow:J,each:ue,css:X,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:ge,getWindowScrollLeft:function(e){return $(e)},getWindowScrollTop:function(e){return G(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)xe.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};ge(xe,ve);var we=xe.getParent;function ke(e){if(xe.isWindow(e)||9===e.nodeType)return null;var t,n=xe.getDocument(e).body,r=xe.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:we(e);for(t=we(e);t&&t!==n&&9!==t.nodeType;t=we(t))if("static"!==(r=xe.css(t,"position")))return t;return null}var Ae=xe.getParent;function Oe(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=ke(e),o=xe.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,c=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===c||"visible"===xe.css(r,"overflow")){if(r===a||r===c)break}else{var u=xe.offset(r);u.left+=r.clientLeft,u.top+=r.clientTop,n.top=Math.max(n.top,u.top),n.right=Math.min(n.right,u.left+r.clientWidth),n.bottom=Math.min(n.bottom,u.top+r.clientHeight),n.left=Math.max(n.left,u.left)}r=ke(r)}var s=null;xe.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===xe.css(e,"position")&&(e.style.position="fixed"));var l=xe.getWindowScrollLeft(i),f=xe.getWindowScrollTop(i),p=xe.viewportWidth(i),d=xe.viewportHeight(i),h=c.scrollWidth,v=c.scrollHeight,m=window.getComputedStyle(a);if("hidden"===m.overflowX&&(h=i.innerWidth),"hidden"===m.overflowY&&(v=i.innerHeight),e.style&&(e.style.position=s),t||function(e){if(xe.isWindow(e)||9===e.nodeType)return!1;var t=xe.getDocument(e),n=t.body,r=null;for(r=Ae(e);r&&r!==n&&r!==t;r=Ae(r))if("fixed"===xe.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,l),n.top=Math.max(n.top,f),n.right=Math.min(n.right,l+p),n.bottom=Math.min(n.bottom,f+d);else{var b=Math.max(h,l+p);n.right=Math.min(n.right,b);var y=Math.max(v,f+d);n.bottom=Math.min(n.bottom,y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ee(e){var t,n,r;if(xe.isWindow(e)||9===e.nodeType){var o=xe.getWindow(e);t={left:xe.getWindowScrollLeft(o),top:xe.getWindowScrollTop(o)},n=xe.viewportWidth(o),r=xe.viewportHeight(o)}else t=xe.offset(e),n=xe.outerWidth(e),r=xe.outerHeight(e);return t.width=n,t.height=r,t}function je(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,c=e.top;return"c"===n?c+=i/2:"b"===n&&(c+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:c}}function Se(e,t,n,r,o){var i=je(t,n[1]),a=je(e,n[0]),c=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-c[0]+r[0]-o[0]),top:Math.round(e.top-c[1]+r[1]-o[1])}}function Pe(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Ce(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Te(e,t,n){var r=[];return xe.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Me(e,t){return e[t]=-e[t],e}function _e(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Ne(e,t){e[0]=_e(e[0],t.width),e[1]=_e(e[1],t.height)}function De(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],c=n.overflow,u=n.source||e;i=[].concat(i),a=[].concat(a);var s={},l=0,f=Oe(u,!(!(c=c||{})||!c.alwaysByViewport)),p=Ee(u);Ne(i,p),Ne(a,t);var d=Se(p,t,o,i,a),h=xe.merge(p,d);if(f&&(c.adjustX||c.adjustY)&&r){if(c.adjustX&&Pe(d,p,f)){var v=Te(o,/[lr]/gi,{l:"r",r:"l"}),m=Me(i,0),b=Me(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Se(p,t,v,m,b),p,f)||(l=1,o=v,i=m,a=b)}if(c.adjustY&&Ce(d,p,f)){var y=Te(o,/[tb]/gi,{t:"b",b:"t"}),g=Me(i,1),x=Me(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Se(p,t,y,g,x),p,f)||(l=1,o=y,i=g,a=x)}l&&(d=Se(p,t,o,i,a),xe.mix(h,d));var w=Pe(d,p,f),k=Ce(d,p,f);if(w||k){var A=o;w&&(A=Te(o,/[lr]/gi,{l:"r",r:"l"})),k&&(A=Te(o,/[tb]/gi,{t:"b",b:"t"})),o=A,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=c.adjustX&&w,s.adjustY=c.adjustY&&k,(s.adjustX||s.adjustY)&&(h=function(e,t,n,r){var o=xe.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),xe.mix(o,i)}(d,p,f,s))}return h.width!==p.width&&xe.css(u,"width",xe.width(u)+h.width-p.width),h.height!==p.height&&xe.css(u,"height",xe.height(u)+h.height-p.height),xe.offset(u,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:s}}function Re(e,t,n){var r=n.target||t,o=Ee(r),i=!function(e,t){var n=Oe(e,t),r=Ee(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return De(e,o,n,i)}Re.__getOffsetParent=ke,Re.__getVisibleRectForElement=Oe;var Le=n(43210),He=n(42467),Ve=n(30981);var ze=n(43591);function Fe(e,t){var n=null,r=null;var o=new ze.default((function(e){var o=(0,O.A)(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,c=i.height,u=Math.floor(a),s=Math.floor(c);n===u&&r===s||Promise.resolve().then((function(){t({width:u,height:s})})),n=u,r=s}}));return e&&o.observe(e),function(){o.disconnect()}}function Be(e){return"function"!=typeof e?null:e()}function Ie(e){return"object"===(0,M.A)(e)&&e?e:null}var We=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,c=e.monitorWindowResize,u=e.monitorBufferTime,s=void 0===u?0:u,l=p().useRef({}),f=p().useRef(),d=p().Children.only(n),h=p().useRef({});h.current.disabled=r,h.current.target=o,h.current.align=i,h.current.onAlign=a;var v=function(e,t){var n=p().useRef(!1),r=p().useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e(a))return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign,i=f.current;if(!t&&n&&i){var a,c=Be(n),u=Ie(n);l.current.element=c,l.current.point=u,l.current.align=r;var s=document.activeElement;return c&&(0,He.A)(c)?a=Re(i,c,r):u&&(a=function(e,t,n){var r,o,i=xe.getDocument(e),a=i.defaultView||i.parentWindow,c=xe.getWindowScrollLeft(a),u=xe.getWindowScrollTop(a),s=xe.viewportWidth(a),l=xe.viewportHeight(a),f={left:r="pageX"in t?t.pageX:c+t.clientX,top:o="pageY"in t?t.pageY:u+t.clientY,width:0,height:0},p=r>=0&&r<=c+s&&o>=0&&o<=u+l,d=[n.points[0],"cc"];return De(e,f,N(N({},n),{},{points:d}),p)}(i,u,r)),function(e,t){e!==document.activeElement&&(0,m.A)(t,e)&&"function"==typeof e.focus&&e.focus()}(s,i),o&&a&&o(i,a),!0}return!1}),s),b=(0,O.A)(v,2),x=b[0],w=b[1],k=p().useState(),A=(0,O.A)(k,2),E=A[0],j=A[1],S=p().useState(),P=(0,O.A)(S,2),C=P[0],T=P[1];return(0,Ve.A)((function(){j(Be(o)),T(Ie(o))})),p().useEffect((function(){var e,t;l.current.element===E&&((e=l.current.point)===(t=C)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,Le.A)(l.current.align,i)||x()})),p().useEffect((function(){return Fe(f.current,x)}),[f.current]),p().useEffect((function(){return Fe(E,x)}),[E]),p().useEffect((function(){r?w():x()}),[r]),p().useEffect((function(){if(c)return(0,g.A)(window,"resize",x).remove}),[c]),p().useEffect((function(){return function(){w()}}),[]),p().useImperativeHandle(t,(function(){return{forceAlign:function(){return x(!0)}}})),p().isValidElement(d)&&(d=p().cloneElement(d,{ref:(0,y.K4)(d.ref,f)})),d},Ye=p().forwardRef(We);Ye.displayName="Align";const qe=Ye;function Xe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
21
|
-
Xe=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),c=new T(r||[]);return o(a,"_invoke",{value:j(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="suspendedYield",h="executing",v="completed",m={};function b(){}function y(){}function g(){}var x={};s(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(_([])));k&&k!==n&&r.call(k,a)&&(x=k);var A=g.prototype=b.prototype=Object.create(x);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==(0,M.A)(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=S(c,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=f(t,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function S(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function _(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError((0,M.A)(t)+" is not iterable")}return y.prototype=g,o(A,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=s(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s(e,u,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},O(E.prototype),s(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(A),s(A,u,"Generator"),s(A,a,(function(){return this})),s(A,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}var Ue=n(10467),$e=n(1233),Ge=["measure","alignPre","align",null,"motion"];var Ke=f.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,a=e.className,c=e.style,u=e.children,s=e.zIndex,l=e.stretch,p=e.destroyPopupOnHide,d=e.forceRender,h=e.align,m=e.point,b=e.getRootDomNode,y=e.getClassNameFromAlign,g=e.onAlign,x=e.onMouseEnter,w=e.onMouseLeave,A=e.onMouseDown,E=e.onTouchStart,j=e.onClick,C=(0,f.useRef)(),T=(0,f.useRef)(),M=(0,f.useState)(),_=(0,O.A)(M,2),N=_[0],D=_[1],R=function(e){var t=f.useState({width:0,height:0}),n=(0,O.A)(t,2),r=n[0],o=n[1];return[f.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),i=r.width,a=r.height;Math.abs(t-i)<1&&Math.abs(n-a)<1&&(t=i,n=a),o({width:t,height:n})}]}(l),L=(0,O.A)(R,2),H=L[0],V=L[1];var z=function(e,t){var n=(0,$e.A)(null),r=(0,O.A)(n,2),o=r[0],i=r[1],a=(0,f.useRef)();function c(e){i(e,!0)}function u(){v.A.cancel(a.current)}return(0,f.useEffect)((function(){c("measure")}),[e]),(0,f.useEffect)((function(){"measure"===o&&t(),o&&(a.current=(0,v.A)((0,Ue.A)(Xe().mark((function e(){var t,n;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ge.indexOf(o),(n=Ge[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,f.useEffect)((function(){return function(){u()}}),[]),[o,function(e){u(),a.current=(0,v.A)((function(){c((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){l&&V(b())})),F=(0,O.A)(z,2),B=F[0],I=F[1],W=(0,f.useState)(0),Y=(0,O.A)(W,2),q=Y[0],X=Y[1],U=(0,f.useRef)();function $(){var e;null===(e=C.current)||void 0===e||e.forceAlign()}function G(e,t){var n=y(t);N!==n&&D(n),X((function(e){return e+1})),"align"===B&&(null==g||g(e,t))}(0,Ve.A)((function(){"alignPre"===B&&X(0)}),[B]),(0,Ve.A)((function(){"align"===B&&(q<3?$():I((function(){var e;null===(e=U.current)||void 0===e||e.call(U)})))}),[q]);var K=(0,r.A)({},P(e));function J(){return new Promise((function(e){U.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=K[e];K[e]=function(e,n){return I(),null==t?void 0:t(e,n)}})),f.useEffect((function(){K.motionName||"motion"!==B||I()}),[K.motionName,B]),f.useImperativeHandle(t,(function(){return{forceAlign:$,getElement:function(){return T.current}}}));var Z=(0,r.A)((0,r.A)({},H),{},{zIndex:s,opacity:"motion"!==B&&"stable"!==B&&n?0:void 0,pointerEvents:n||"stable"===B?void 0:"none"},c),Q=!0;null==h||!h.points||"align"!==B&&"stable"!==B||(Q=!1);var ee=u;return f.Children.count(u)>1&&(ee=f.createElement("div",{className:"".concat(i,"-content")},u)),f.createElement(S.A,(0,o.A)({visible:n,ref:T,leavedClassName:"".concat(i,"-hidden")},K,{onAppearPrepare:J,onEnterPrepare:J,removeOnLeave:p,forceRender:d}),(function(e,t){var n=e.className,o=e.style,c=k()(i,a,N,n);return f.createElement(qe,{target:m||b,key:"popup",ref:C,monitorWindowResize:!0,disabled:Q,align:h,onAlign:G},f.createElement("div",{ref:t,className:c,onMouseEnter:x,onMouseLeave:w,onMouseDownCapture:A,onTouchStartCapture:E,onClick:j,style:(0,r.A)((0,r.A)({},o),Z)},ee))}))}));Ke.displayName="PopupInner";const Je=Ke;var Ze=f.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,a=e.zIndex,c=e.children,u=e.mobile,s=(u=void 0===u?{}:u).popupClassName,l=u.popupStyle,p=u.popupMotion,d=void 0===p?{}:p,h=u.popupRender,v=e.onClick,m=f.useRef();f.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var b=(0,r.A)({zIndex:a},l),y=c;return f.Children.count(c)>1&&(y=f.createElement("div",{className:"".concat(n,"-content")},c)),h&&(y=h(y)),f.createElement(S.A,(0,o.A)({visible:i,ref:m,removeOnLeave:!0},d),(function(e,t){var o=e.className,i=e.style,a=k()(n,s,o);return f.createElement("div",{ref:t,className:a,onClick:v,style:(0,r.A)((0,r.A)({},i),b)},y)}))}));Ze.displayName="MobilePopupInner";const Qe=Ze;var et=["visible","mobile"],tt=f.forwardRef((function(e,t){var n=e.visible,i=e.mobile,a=(0,E.A)(e,et),c=(0,f.useState)(n),u=(0,O.A)(c,2),s=u[0],l=u[1],p=(0,f.useState)(!1),d=(0,O.A)(p,2),h=d[0],v=d[1],m=(0,r.A)((0,r.A)({},a),{},{visible:s});(0,f.useEffect)((function(){l(n),n&&i&&v((0,j.A)())}),[n,i]);var b=h?f.createElement(Qe,(0,o.A)({},m,{mobile:i,ref:t})):f.createElement(Je,(0,o.A)({},m,{ref:t}));return f.createElement("div",null,f.createElement(C,m),b)}));tt.displayName="Popup";const nt=tt;const rt=f.createContext(null);function ot(){}function it(){return""}function at(e){return e?e.ownerDocument:window.document}var ct=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const ut=(st=x.A,lt=function(e){(0,u.A)(n,e);var t=(0,s.A)(n);function n(e){var r,a;return(0,i.A)(this,n),r=t.call(this,e),(0,l.A)((0,c.A)(r),"popupRef",f.createRef()),(0,l.A)((0,c.A)(r),"triggerRef",f.createRef()),(0,l.A)((0,c.A)(r),"portalContainer",void 0),(0,l.A)((0,c.A)(r),"attachId",void 0),(0,l.A)((0,c.A)(r),"clickOutsideHandler",void 0),(0,l.A)((0,c.A)(r),"touchOutsideHandler",void 0),(0,l.A)((0,c.A)(r),"contextMenuOutsideHandler1",void 0),(0,l.A)((0,c.A)(r),"contextMenuOutsideHandler2",void 0),(0,l.A)((0,c.A)(r),"mouseDownTimeout",void 0),(0,l.A)((0,c.A)(r),"focusTime",void 0),(0,l.A)((0,c.A)(r),"preClickTime",void 0),(0,l.A)((0,c.A)(r),"preTouchTime",void 0),(0,l.A)((0,c.A)(r),"delayTimer",void 0),(0,l.A)((0,c.A)(r),"hasPopupMouseDown",void 0),(0,l.A)((0,c.A)(r),"onMouseEnter",(function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)})),(0,l.A)((0,c.A)(r),"onMouseMove",(function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)})),(0,l.A)((0,c.A)(r),"onMouseLeave",(function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,c.A)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,l.A)((0,c.A)(r),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,m.A)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,c.A)(r),"onFocus",(function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,l.A)((0,c.A)(r),"onMouseDown",(function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()})),(0,l.A)((0,c.A)(r),"onTouchStart",(function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()})),(0,l.A)((0,c.A)(r),"onBlur",(function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,l.A)((0,c.A)(r),"onContextMenu",(function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)})),(0,l.A)((0,c.A)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,l.A)((0,c.A)(r),"onClick",(function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)})),(0,l.A)((0,c.A)(r),"onPopupMouseDown",(function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)})),(0,l.A)((0,c.A)(r),"onDocumentClick",(function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,m.A)(n,t)&&!r.isContextMenuOnly()||(0,m.A)(o,t)||r.hasPopupMouseDown||r.close()}})),(0,l.A)((0,c.A)(r),"getRootDomNode",(function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,b.A)(r.triggerRef.current);if(t)return t}catch(e){}return h().findDOMNode((0,c.A)(r))})),(0,l.A)((0,c.A)(r),"getPopupClassNameFromAlign",(function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,c=n.alignPoint,u=n.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var c=i[a];if(A(e[c].points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(i,a,e,c)),u&&t.push(u(e)),t.join(" ")})),(0,l.A)((0,c.A)(r),"getComponent",(function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,c=e.popupMotion,u=e.popupAnimation,s=e.popupTransitionName,l=e.popupStyle,p=e.mask,d=e.maskAnimation,h=e.maskTransitionName,v=e.maskMotion,m=e.zIndex,b=e.popup,y=e.stretch,g=e.alignPoint,x=e.mobile,w=e.forceRender,k=e.onPopupClick,A=r.state,O=A.popupVisible,E=A.point,j=r.getPopupAlign(),S={};return r.isMouseEnterToShow()&&(S.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(S.onMouseLeave=r.onPopupMouseLeave),S.onMouseDown=r.onPopupMouseDown,S.onTouchStart=r.onPopupMouseDown,f.createElement(nt,(0,o.A)({prefixCls:t,destroyPopupOnHide:n,visible:O,point:g&&E,className:i,align:j,onAlign:a,animation:u,getClassNameFromAlign:r.getPopupClassNameFromAlign},S,{stretch:y,getRootDomNode:r.getRootDomNode,style:l,mask:p,zIndex:m,transitionName:s,maskAnimation:d,maskTransitionName:h,maskMotion:v,ref:r.popupRef,motion:c,mobile:x,forceRender:w,onClick:k}),"function"==typeof b?b():b)})),(0,l.A)((0,c.A)(r),"attachParent",(function(e){v.A.cancel(r.attachId);var t,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=(0,v.A)((function(){r.attachParent(e)}))})),(0,l.A)((0,c.A)(r),"getContainer",(function(){if(!r.portalContainer){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.portalContainer=e}return r.attachParent(r.portalContainer),r.portalContainer})),(0,l.A)((0,c.A)(r),"setPoint",(function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,l.A)((0,c.A)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,l.A)((0,c.A)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},ct.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,g.A)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,g.A)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,g.A)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,g.A)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),v.A.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,r.A)((0,r.A)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,a=t.className,c=t.autoDestroy,u=f.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,i&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var l=k()(u&&u.props&&u.props.className,a);l&&(s.className=l);var p=(0,r.A)({},s);(0,y.f3)(u)&&(p.ref=(0,y.K4)(this.triggerRef,u.ref));var d,h=f.cloneElement(u,p);return(e||this.popupRef.current||o)&&(d=f.createElement(st,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(d=null),f.createElement(rt.Provider,{value:this.triggerContextValue},h,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(f.Component),(0,l.A)(lt,"contextType",rt),(0,l.A)(lt,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:it,getDocument:at,onPopupVisibleChange:ot,afterPopupVisibleChange:ot,onPopupAlign:ot,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),lt);var st,lt},69916:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(69514),o=n.n(r);function i(e,t,n,r){var i=o().unstable_batchedUpdates?function(e){o().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}},20998:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},54808:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},66588:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(39155),o=n.n(r),i=n(69514),a=n.n(i);function c(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof o().Component?a().findDOMNode(e):null}},42467:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},88822:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(39155),o=n(69514),i=n.n(o),a=n(20998);const c=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,o=e.getContainer,c=e.children,u=(0,r.useRef)(),s=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var l=(0,r.useRef)(!1);return!l.current&&(0,a.A)()&&(s.current=o(),u.current=s.current.parentNode,l.current=!0),(0,r.useEffect)((function(){null==n||n(e)})),(0,r.useEffect)((function(){return null===s.current.parentNode&&null!==u.current&&u.current.appendChild(s.current),function(){var e;null===(e=s.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(s.current)}}),[]),s.current?i().createPortal(c,s.current):null}))},30981:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect,i=function(e,t){var n=r.useRef(!0);o((function(){return e(n.current)}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])};const a=i},28104:(e,t,n)=>{"use strict";n(39155)},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3453),o=n(39155);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.A)(n,2),a=i[0],c=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||c(e)}]}},43210:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(68210);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=i.has(t);if((0,o.Ay)(!u,"Warning: There may be circular references"),u)return!1;if(t===a)return!0;if(n&&c>1)return!1;i.add(t);var s=c+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],a[l],s))return!1;return!0}if(t&&a&&"object"===(0,r.A)(t)&&"object"===(0,r.A)(a)){var f=Object.keys(t);return f.length===Object.keys(a).length&&f.every((function(n){return e(t[n],a[n],s)}))}return!1}(e,t)}},68430:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function c(e){a.delete(e)}var u=function(e){var t=i+=1;return function n(o){if(0===o)c(t),e();else{var i=r((function(){n(o-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};u.cancel=function(e){var t=a.get(e);return c(e),o(t)};const s=u},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>a,Xf:()=>i,f3:()=>c});var r=n(82284),o=(n(39155),n(44363));n(28104);function i(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){i(t,e)}))}}function c(e){var t,n,r=(0,o.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===o.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===o.ForwardRef)}},68210:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r={},o=[];function i(e,t){}function a(e,t){}function c(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function u(e,t){c(i,e,t)}u.preMessage=function(e){o.push(e)},u.resetWarned=function(){r={}},u.noteOnce=function(e,t){c(a,e,t)};const s=u},22799:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");
|
|
21
|
+
Xe=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),c=new T(r||[]);return o(a,"_invoke",{value:j(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="suspendedYield",h="executing",v="completed",m={};function b(){}function y(){}function g(){}var x={};s(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(_([])));k&&k!==n&&r.call(k,a)&&(x=k);var A=g.prototype=b.prototype=Object.create(x);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==(0,M.A)(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=S(c,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=f(t,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function S(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function _(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError((0,M.A)(t)+" is not iterable")}return y.prototype=g,o(A,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=s(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s(e,u,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},O(E.prototype),s(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(A),s(A,u,"Generator"),s(A,a,(function(){return this})),s(A,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}var Ue=n(10467),$e=n(1233),Ge=["measure","alignPre","align",null,"motion"];var Ke=f.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,a=e.className,c=e.style,u=e.children,s=e.zIndex,l=e.stretch,p=e.destroyPopupOnHide,d=e.forceRender,h=e.align,m=e.point,b=e.getRootDomNode,y=e.getClassNameFromAlign,g=e.onAlign,x=e.onMouseEnter,w=e.onMouseLeave,A=e.onMouseDown,E=e.onTouchStart,j=e.onClick,C=(0,f.useRef)(),T=(0,f.useRef)(),M=(0,f.useState)(),_=(0,O.A)(M,2),N=_[0],D=_[1],R=function(e){var t=f.useState({width:0,height:0}),n=(0,O.A)(t,2),r=n[0],o=n[1];return[f.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),i=r.width,a=r.height;Math.abs(t-i)<1&&Math.abs(n-a)<1&&(t=i,n=a),o({width:t,height:n})}]}(l),L=(0,O.A)(R,2),H=L[0],V=L[1];var z=function(e,t){var n=(0,$e.A)(null),r=(0,O.A)(n,2),o=r[0],i=r[1],a=(0,f.useRef)();function c(e){i(e,!0)}function u(){v.A.cancel(a.current)}return(0,f.useEffect)((function(){c("measure")}),[e]),(0,f.useEffect)((function(){"measure"===o&&t(),o&&(a.current=(0,v.A)((0,Ue.A)(Xe().mark((function e(){var t,n;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ge.indexOf(o),(n=Ge[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,f.useEffect)((function(){return function(){u()}}),[]),[o,function(e){u(),a.current=(0,v.A)((function(){c((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){l&&V(b())})),F=(0,O.A)(z,2),B=F[0],I=F[1],W=(0,f.useState)(0),Y=(0,O.A)(W,2),q=Y[0],X=Y[1],U=(0,f.useRef)();function $(){var e;null===(e=C.current)||void 0===e||e.forceAlign()}function G(e,t){var n=y(t);N!==n&&D(n),X((function(e){return e+1})),"align"===B&&(null==g||g(e,t))}(0,Ve.A)((function(){"alignPre"===B&&X(0)}),[B]),(0,Ve.A)((function(){"align"===B&&(q<3?$():I((function(){var e;null===(e=U.current)||void 0===e||e.call(U)})))}),[q]);var K=(0,r.A)({},P(e));function J(){return new Promise((function(e){U.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=K[e];K[e]=function(e,n){return I(),null==t?void 0:t(e,n)}})),f.useEffect((function(){K.motionName||"motion"!==B||I()}),[K.motionName,B]),f.useImperativeHandle(t,(function(){return{forceAlign:$,getElement:function(){return T.current}}}));var Z=(0,r.A)((0,r.A)({},H),{},{zIndex:s,opacity:"motion"!==B&&"stable"!==B&&n?0:void 0,pointerEvents:n||"stable"===B?void 0:"none"},c),Q=!0;null==h||!h.points||"align"!==B&&"stable"!==B||(Q=!1);var ee=u;return f.Children.count(u)>1&&(ee=f.createElement("div",{className:"".concat(i,"-content")},u)),f.createElement(S.A,(0,o.A)({visible:n,ref:T,leavedClassName:"".concat(i,"-hidden")},K,{onAppearPrepare:J,onEnterPrepare:J,removeOnLeave:p,forceRender:d}),(function(e,t){var n=e.className,o=e.style,c=k()(i,a,N,n);return f.createElement(qe,{target:m||b,key:"popup",ref:C,monitorWindowResize:!0,disabled:Q,align:h,onAlign:G},f.createElement("div",{ref:t,className:c,onMouseEnter:x,onMouseLeave:w,onMouseDownCapture:A,onTouchStartCapture:E,onClick:j,style:(0,r.A)((0,r.A)({},o),Z)},ee))}))}));Ke.displayName="PopupInner";const Je=Ke;var Ze=f.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,a=e.zIndex,c=e.children,u=e.mobile,s=(u=void 0===u?{}:u).popupClassName,l=u.popupStyle,p=u.popupMotion,d=void 0===p?{}:p,h=u.popupRender,v=e.onClick,m=f.useRef();f.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var b=(0,r.A)({zIndex:a},l),y=c;return f.Children.count(c)>1&&(y=f.createElement("div",{className:"".concat(n,"-content")},c)),h&&(y=h(y)),f.createElement(S.A,(0,o.A)({visible:i,ref:m,removeOnLeave:!0},d),(function(e,t){var o=e.className,i=e.style,a=k()(n,s,o);return f.createElement("div",{ref:t,className:a,onClick:v,style:(0,r.A)((0,r.A)({},i),b)},y)}))}));Ze.displayName="MobilePopupInner";const Qe=Ze;var et=["visible","mobile"],tt=f.forwardRef((function(e,t){var n=e.visible,i=e.mobile,a=(0,E.A)(e,et),c=(0,f.useState)(n),u=(0,O.A)(c,2),s=u[0],l=u[1],p=(0,f.useState)(!1),d=(0,O.A)(p,2),h=d[0],v=d[1],m=(0,r.A)((0,r.A)({},a),{},{visible:s});(0,f.useEffect)((function(){l(n),n&&i&&v((0,j.A)())}),[n,i]);var b=h?f.createElement(Qe,(0,o.A)({},m,{mobile:i,ref:t})):f.createElement(Je,(0,o.A)({},m,{ref:t}));return f.createElement("div",null,f.createElement(C,m),b)}));tt.displayName="Popup";const nt=tt;const rt=f.createContext(null);function ot(){}function it(){return""}function at(e){return e?e.ownerDocument:window.document}var ct=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const ut=(st=x.A,lt=function(e){(0,u.A)(n,e);var t=(0,s.A)(n);function n(e){var r,a;return(0,i.A)(this,n),r=t.call(this,e),(0,l.A)((0,c.A)(r),"popupRef",f.createRef()),(0,l.A)((0,c.A)(r),"triggerRef",f.createRef()),(0,l.A)((0,c.A)(r),"portalContainer",void 0),(0,l.A)((0,c.A)(r),"attachId",void 0),(0,l.A)((0,c.A)(r),"clickOutsideHandler",void 0),(0,l.A)((0,c.A)(r),"touchOutsideHandler",void 0),(0,l.A)((0,c.A)(r),"contextMenuOutsideHandler1",void 0),(0,l.A)((0,c.A)(r),"contextMenuOutsideHandler2",void 0),(0,l.A)((0,c.A)(r),"mouseDownTimeout",void 0),(0,l.A)((0,c.A)(r),"focusTime",void 0),(0,l.A)((0,c.A)(r),"preClickTime",void 0),(0,l.A)((0,c.A)(r),"preTouchTime",void 0),(0,l.A)((0,c.A)(r),"delayTimer",void 0),(0,l.A)((0,c.A)(r),"hasPopupMouseDown",void 0),(0,l.A)((0,c.A)(r),"onMouseEnter",(function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)})),(0,l.A)((0,c.A)(r),"onMouseMove",(function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)})),(0,l.A)((0,c.A)(r),"onMouseLeave",(function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,c.A)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,l.A)((0,c.A)(r),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,m.A)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,c.A)(r),"onFocus",(function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,l.A)((0,c.A)(r),"onMouseDown",(function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()})),(0,l.A)((0,c.A)(r),"onTouchStart",(function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()})),(0,l.A)((0,c.A)(r),"onBlur",(function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,l.A)((0,c.A)(r),"onContextMenu",(function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)})),(0,l.A)((0,c.A)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,l.A)((0,c.A)(r),"onClick",(function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)})),(0,l.A)((0,c.A)(r),"onPopupMouseDown",(function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)})),(0,l.A)((0,c.A)(r),"onDocumentClick",(function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,m.A)(n,t)&&!r.isContextMenuOnly()||(0,m.A)(o,t)||r.hasPopupMouseDown||r.close()}})),(0,l.A)((0,c.A)(r),"getRootDomNode",(function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,b.A)(r.triggerRef.current);if(t)return t}catch(e){}return h().findDOMNode((0,c.A)(r))})),(0,l.A)((0,c.A)(r),"getPopupClassNameFromAlign",(function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,c=n.alignPoint,u=n.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var c=i[a];if(A(e[c].points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(i,a,e,c)),u&&t.push(u(e)),t.join(" ")})),(0,l.A)((0,c.A)(r),"getComponent",(function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,c=e.popupMotion,u=e.popupAnimation,s=e.popupTransitionName,l=e.popupStyle,p=e.mask,d=e.maskAnimation,h=e.maskTransitionName,v=e.maskMotion,m=e.zIndex,b=e.popup,y=e.stretch,g=e.alignPoint,x=e.mobile,w=e.forceRender,k=e.onPopupClick,A=r.state,O=A.popupVisible,E=A.point,j=r.getPopupAlign(),S={};return r.isMouseEnterToShow()&&(S.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(S.onMouseLeave=r.onPopupMouseLeave),S.onMouseDown=r.onPopupMouseDown,S.onTouchStart=r.onPopupMouseDown,f.createElement(nt,(0,o.A)({prefixCls:t,destroyPopupOnHide:n,visible:O,point:g&&E,className:i,align:j,onAlign:a,animation:u,getClassNameFromAlign:r.getPopupClassNameFromAlign},S,{stretch:y,getRootDomNode:r.getRootDomNode,style:l,mask:p,zIndex:m,transitionName:s,maskAnimation:d,maskTransitionName:h,maskMotion:v,ref:r.popupRef,motion:c,mobile:x,forceRender:w,onClick:k}),"function"==typeof b?b():b)})),(0,l.A)((0,c.A)(r),"attachParent",(function(e){v.A.cancel(r.attachId);var t,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=(0,v.A)((function(){r.attachParent(e)}))})),(0,l.A)((0,c.A)(r),"getContainer",(function(){if(!r.portalContainer){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.portalContainer=e}return r.attachParent(r.portalContainer),r.portalContainer})),(0,l.A)((0,c.A)(r),"setPoint",(function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,l.A)((0,c.A)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,l.A)((0,c.A)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},ct.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,g.A)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,g.A)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,g.A)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,g.A)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),v.A.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,r.A)((0,r.A)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,a=t.className,c=t.autoDestroy,u=f.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,i&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var l=k()(u&&u.props&&u.props.className,a);l&&(s.className=l);var p=(0,r.A)({},s);(0,y.f3)(u)&&(p.ref=(0,y.K4)(this.triggerRef,u.ref));var d,h=f.cloneElement(u,p);return(e||this.popupRef.current||o)&&(d=f.createElement(st,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(d=null),f.createElement(rt.Provider,{value:this.triggerContextValue},h,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(f.Component),(0,l.A)(lt,"contextType",rt),(0,l.A)(lt,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:it,getDocument:at,onPopupVisibleChange:ot,afterPopupVisibleChange:ot,onPopupAlign:ot,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),lt);var st,lt},69916:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(69514),o=n.n(r);function i(e,t,n,r){var i=o().unstable_batchedUpdates?function(e){o().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}},20998:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},54808:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},66588:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(39155),o=n.n(r),i=n(69514),a=n.n(i);function c(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof o().Component?a().findDOMNode(e):null}},42467:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},88822:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(39155),o=n(69514),i=n.n(o),a=n(20998);const c=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,o=e.getContainer,c=e.children,u=(0,r.useRef)(),s=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var l=(0,r.useRef)(!1);return!l.current&&(0,a.A)()&&(s.current=o(),u.current=s.current.parentNode,l.current=!0),(0,r.useEffect)((function(){null==n||n(e)})),(0,r.useEffect)((function(){return null===s.current.parentNode&&null!==u.current&&u.current.appendChild(s.current),function(){var e;null===(e=s.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(s.current)}}),[]),s.current?i().createPortal(c,s.current):null}))},30981:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect,i=function(e,t){var n=r.useRef(!0);o((function(){return e(n.current)}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])};const a=i},28104:(e,t,n)=>{"use strict";n(39155)},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3453),o=n(39155);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.A)(n,2),a=i[0],c=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||c(e)}]}},43210:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(68210);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=i.has(t);if((0,o.Ay)(!u,"Warning: There may be circular references"),u)return!1;if(t===a)return!0;if(n&&c>1)return!1;i.add(t);var s=c+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],a[l],s))return!1;return!0}if(t&&a&&"object"===(0,r.A)(t)&&"object"===(0,r.A)(a)){var f=Object.keys(t);return f.length===Object.keys(a).length&&f.every((function(n){return e(t[n],a[n],s)}))}return!1}(e,t)}},68430:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function c(e){a.delete(e)}var u=function(e){var t=i+=1;return function n(o){if(0===o)c(t),e();else{var i=r((function(){n(o-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};u.cancel=function(e){var t=a.get(e);return c(e),o(t)};const s=u},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>a,Xf:()=>i,f3:()=>c});var r=n(82284),o=(n(39155),n(44363)),i=(n(28104),function(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)}),a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){i(t,e)}))}},c=function(e){var t,n,r=(0,o.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===o.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===o.ForwardRef)}},68210:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r={},o=[];function i(e,t){}function a(e,t){}function c(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function u(e,t){c(i,e,t)}u.preMessage=function(e){o.push(e)},u.resetWarned=function(){r={}},u.noteOnce=function(e,t){c(a,e,t)};const s=u},22799:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");
|
|
22
22
|
/**
|
|
23
23
|
* @license React
|
|
24
24
|
* react-is.production.min.js
|
|
@@ -40,4 +40,4 @@ Xe=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Objec
|
|
|
40
40
|
Copyright (c) 2018 Jed Watson.
|
|
41
41
|
Licensed under the MIT License (MIT), see
|
|
42
42
|
http://jedwatson.github.io/classnames
|
|
43
|
-
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},10467:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,u,"next",e)}function u(e){r(a,o,i,c,u,"throw",e)}c(void 0)}))}}n.d(t,{A:()=>o})},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(49922);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(53954),o=n(52176),i=n(56822);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49922);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},53954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},52176:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},6986:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}n.d(t,{A:()=>r})},76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(64467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(98587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(9417);function i(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(96369),o=n(6986),i=n(27800),a=n(76562);function c(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},92327:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(92327);function i(e){var t=(0,o.A)(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return r[e](n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var a={};return(()=>{"use strict";i.r(a),i.d(a,{CheckboxGroup:()=>h,default:()=>v});var e=i(39155),t=i.n(e),n=i(20855),r=i(18406),o=i(32209),c=i(32663),u=i(14552);i(30934);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function p(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=function(i){var a=i.label,s=void 0===a?"":a,l=i.labelTooltip,h=i.spacing,v=void 0===h?"32px":h,m=i.itemWidth,b=i.size,y=void 0===b?"large":b,g=i.row,x=void 0===g||g,w=i.disabled,k=void 0!==w&&w,A=i.required,O=void 0!==A&&A,E=i.error,j=void 0!==E&&E,S=i.hideErrorDom,P=i.helperText,C=void 0===P?"":P,T=i.id,M=void 0===T?"name":T,_=i.list,N=i.className,D=void 0===N?"":N,R=i.onChange,L=i.style,H=d((0,e.useState)([]),2),V=H[0],z=H[1];(0,e.useEffect)((function(){void 0!==i.defaultValue&&z(i.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==i.value&&z(i.value)}),[i.value]);var F,B=function(e){return function(t,n){var r=e[M],o=(0,c.DeepClone)(V);if(n)o.push(r);else{var a=o.indexOf(r);o.splice(a,1)}void 0===i.value&&z(o),R&&R(o)}},I=function(e,t,n){var r=f({display:"inline-block"},e.style);return v&&x&&n.length!==t+1&&(r.marginRight=v),m&&(r.width=m),r};return t().createElement("div",{className:(F="".concat(u.n,"-checkbox-group"),D&&(F+=" ".concat(D)),y&&(F+=" ".concat(u.n,"-checkbox-group-").concat(y)),j&&(F+=" ".concat(u.n,"-checkbox-group-error")),k&&(F+=" ".concat(u.n,"-checkbox-group-disabled")),F+=" ".concat(u.n,x?"-checkbox-group-row":"-checkbox-group-column")),style:L},function(){if(s||O){return t().createElement(r.default,p(f({label:s,required:O},l),{className:(e="checkbox-group-label",l&&l.className&&(e+=" ".concat(l.className)),e)}))}var e}(),t().createElement("div",{className:"checkbox-group-content"},_.map((function(e,r){return Array.isArray(e)?t().createElement("div",{className:"checkbox-group-content-item",key:r},e.map((function(o,i){return t().createElement("span",{className:"checkbox-item-box",style:I(o,i,e),key:i},t().createElement(n.default,p(f({},o),{style:{},checked:-1!==V.indexOf(o[M]),size:y,disabled:Boolean(k||o.disabled),key:r,onChange:B(o)})))}))):t().createElement("span",{className:"checkbox-item-box",style:I(e,r,_),key:r},t().createElement(n.default,p(f({},e),{style:{},checked:-1!==V.indexOf(e[M]),size:y,disabled:Boolean(k||e.disabled),key:r,onChange:B(e)})))}))),t().createElement(o.default,{className:"checkbox-group-error-text",error:j,helperText:C,hideErrorDom:S}))};const v=h})(),a})()));
|
|
43
|
+
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},10467:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,u,"next",e)}function u(e){r(a,o,i,c,u,"throw",e)}c(void 0)}))}}n.d(t,{A:()=>o})},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(49922);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(53954),o=n(52176),i=n(56822);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49922);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},53954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},52176:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},6986:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}n.d(t,{A:()=>r})},76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(64467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(98587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(9417);function i(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(96369),o=n(6986),i=n(27800),a=n(76562);function c(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},92327:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(92327);function i(e){var t=(0,o.A)(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return r[e](n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var a={};return(()=>{"use strict";i.r(a),i.d(a,{CheckboxGroup:()=>h,default:()=>v});var e=i(39155),t=i.n(e),n=i(20855),r=i(18406),o=i(32209),c=i(32663),u=i(14552);i(30934);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function p(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=function(i){var a=i.label,s=void 0===a?"":a,l=i.labelTooltip,h=i.spacing,v=void 0===h?"32px":h,m=i.itemWidth,b=i.size,y=void 0===b?"large":b,g=i.row,x=void 0===g||g,w=i.disabled,k=void 0!==w&&w,A=i.required,O=void 0!==A&&A,E=i.error,j=void 0!==E&&E,S=i.hideErrorDom,P=i.helperText,C=void 0===P?"":P,T=i.id,M=void 0===T?"name":T,_=i.list,N=i.className,D=void 0===N?"":N,R=i.onChange,L=i.style,H=d((0,e.useState)([]),2),V=H[0],z=H[1];(0,e.useEffect)((function(){void 0!==i.defaultValue&&z(i.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==i.value&&z(i.value)}),[i.value]);var F,B=function(e){return function(t,n){var r=e[M],o=(0,c.DeepClone)(V);if(n)o.push(r);else{var a=o.indexOf(r);o.splice(a,1)}void 0===i.value&&z(o),R&&R(o)}},I=function(e,t,n){var r=f({display:"inline-block"},e.style);return v&&x&&n.length!==t+1&&(r.marginRight=v),m&&(r.width=m),r};return t().createElement("div",{className:(F="".concat(u.n,"-checkbox-group"),D&&(F+=" ".concat(D)),y&&(F+=" ".concat(u.n,"-checkbox-group-").concat(y)),j&&(F+=" ".concat(u.n,"-checkbox-group-error")),k&&(F+=" ".concat(u.n,"-checkbox-group-disabled")),F+=" ".concat(u.n,x?"-checkbox-group-row":"-checkbox-group-column")),style:L},function(){if(s||O){return t().createElement(r.default,p(f({label:s,required:O},l),{className:(e="checkbox-group-label",l&&l.className&&(e+=" ".concat(l.className)),e)}))}var e}(),t().createElement("div",{className:"checkbox-group-content"},_.map((function(e,r){return Array.isArray(e)?t().createElement("div",{className:"checkbox-group-content-item",key:r},e.map((function(o,i){return t().createElement("span",{className:"checkbox-item-box",style:I(o,i,e),key:i},t().createElement(n.default,p(f({},o),{style:{},checked:-1!==V.indexOf(o[M]),size:y,disabled:Boolean(k||o.disabled),key:r,onChange:B(o)})))}))):t().createElement("span",{className:"checkbox-item-box",style:I(e,r,_),key:r},t().createElement(n.default,p(f({},e),{style:{},checked:-1!==V.indexOf(e[M]),size:y,disabled:Boolean(k||e.disabled),key:r,onChange:B(e)})))}))),t().createElement(o.default,{className:"checkbox-group-error-text",error:j,helperText:C,hideErrorDom:S}))};const v=h})(),a})()));
|
package/umd/Collapse.js
CHANGED
|
@@ -17,7 +17,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
17
17
|
object-assign
|
|
18
18
|
(c) Sindre Sorhus
|
|
19
19
|
@license MIT
|
|
20
|
-
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,c,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var l in a=Object(arguments[s]))n.call(a,l)&&(i[l]=a[l]);if(t){c=t(a);for(var u=0;u<c.length;u++)r.call(a,c[u])&&(i[c[u]]=a[c[u]])}}return i}},44785:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(64467),o=n(89379),a=n(3453),c=n(82284),i=n(39155),s=n(66588),l=n(8719),u=n(46942),p=n.n(u),f=n(80371),d=n(25931),v=n(25318),m=n(72137),y=n(58515);const b=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,c.A)(e)&&(t=e.transitionSupport);var u=i.forwardRef((function(e,t){var c=e.visible,u=void 0===c||c,b=e.removeOnLeave,h=void 0===b||b,g=e.forceRender,A=e.children,O=e.motionName,j=e.leavedClassName,w=e.eventProps,x=n(e),S=(0,i.useRef)(),E=(0,i.useRef)();var P=(0,v.A)(x,u,(function(){try{return(0,s.A)(S.current||E.current)}catch(e){return null}}),e),k=(0,a.A)(P,4),C=k[0],N=k[1],I=k[2],R=k[3],T=i.useRef(R);R&&(T.current=!0);var L=(0,i.useRef)(t);L.current=t;var M,_=i.useCallback((function(e){S.current=e,(0,l.Xf)(L.current,e)}),[]),D=(0,o.A)((0,o.A)({},w),{},{visible:u});if(A)if(C!==d.SF&&n(e)){var F,K;N===d.px?K="prepare":(0,y.$m)(N)?K="active":N===d.Mv&&(K="start"),M=A((0,o.A)((0,o.A)({},D),{},{className:p()((0,f.by)(O,C),(F={},(0,r.A)(F,(0,f.by)(O,"".concat(C,"-").concat(K)),K),(0,r.A)(F,O,"string"==typeof O),F)),style:I}),_)}else M=R?A((0,o.A)({},D),_):!h&&T.current?A((0,o.A)((0,o.A)({},D),{},{className:j}),_):g?A((0,o.A)((0,o.A)({},D),{},{style:{display:"none"}}),_):null;else M=null;return i.createElement(m.A,{ref:E},M)}));return u.displayName="CSSMotion",u}(f.J1)},97333:(e,t,n)=>{"use strict";var r=n(58168),o=n(80045),a=n(89379),c=n(23029),i=n(92901),s=n(85501),l=n(29426),u=n(39155),p=n(44785),f=n(80371),d=n(29710),v=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.A,n=function(e){(0,s.A)(p,e);var n=(0,l.A)(p);function p(){var e;return(0,c.A)(this,p),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,a.A)((0,a.A)({},e),{},{status:d.e8})}))}}))},e}return(0,i.A)(p,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,a=this.props,c=a.component,i=a.children,s=a.onVisibleChanged,l=(0,o.A)(a,["component","children","onVisibleChanged"]),p=c||u.Fragment,f={};return v.forEach((function(e){f[e]=l[e],delete l[e]})),delete l.keys,u.createElement(p,l,n.map((function(n){var a=n.status,c=(0,o.A)(n,["status"]),l=a===d.bK||a===d.xI;return u.createElement(t,(0,r.A)({},f,{key:c.key,visible:l,eventProps:c,onVisibleChanged:function(t){null==s||s(t,{key:c.key}),t||e.removeKey(c.key)}}),i)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=(0,d.Ss)(n);return{keyEntities:(0,d.y$)(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==d.e8||e.status!==d.au}))}}}]),p}(u.Component);n.defaultProps={component:"div"}}(f.J1)},72137:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(23029),o=n(92901),a=n(85501),c=n(29426),i=n(39155);const s=function(e){(0,a.A)(n,e);var t=(0,c.A)(n);function n(){return(0,r.A)(this,n),t.apply(this,arguments)}return(0,o.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component)},85849:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=n(80371);const a=function(e){var t=(0,r.useRef)(),n=(0,r.useRef)(e);n.current=e;var a=r.useCallback((function(e){n.current(e)}),[]);function c(e){e&&(e.removeEventListener(o.m8,a),e.removeEventListener(o.Vc,a))}return r.useEffect((function(){return function(){c(t.current)}}),[]),[function(e){t.current&&t.current!==e&&c(t.current),e&&e!==t.current&&(e.addEventListener(o.m8,a),e.addEventListener(o.Vc,a),t.current=e)},c]}},43982:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(39155);const o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect},84560:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=n(25371);const a=function(){var e=r.useRef(null);function t(){o.A.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var c=(0,o.A)((function(){a<=1?r({isCanceled:function(){return c!==e.current}}):n(r,a-1)}));e.current=c},t]}},92659:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(3453),o=n(39155);function a(e){var t=(0,o.useRef)(!1),n=(0,o.useState)(e),a=(0,r.A)(n,2),c=a[0],i=a[1];return(0,o.useEffect)((function(){return function(){t.current=!0}}),[]),[c,function(e){t.current||i(e)}]}},25318:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(89379),o=n(64467),a=n(3453),c=n(39155),i=n(25931),s=n(92659),l=n(43982),u=n(58515),p=n(85849);function f(e,t,n,f){var d=f.motionEnter,v=void 0===d||d,m=f.motionAppear,y=void 0===m||m,b=f.motionLeave,h=void 0===b||b,g=f.motionDeadline,A=f.motionLeaveImmediately,O=f.onAppearPrepare,j=f.onEnterPrepare,w=f.onLeavePrepare,x=f.onAppearStart,S=f.onEnterStart,E=f.onLeaveStart,P=f.onAppearActive,k=f.onEnterActive,C=f.onLeaveActive,N=f.onAppearEnd,I=f.onEnterEnd,R=f.onLeaveEnd,T=f.onVisibleChanged,L=(0,s.A)(),M=(0,a.A)(L,2),_=M[0],D=M[1],F=(0,s.A)(i.SF),K=(0,a.A)(F,2),z=K[0],H=K[1],U=(0,s.A)(null),B=(0,a.A)(U,2),$=B[0],q=B[1],V=(0,c.useRef)(!1),W=(0,c.useRef)(null),J=(0,c.useRef)(!1),Y=(0,c.useRef)(null);function X(){return n()||Y.current}var G=(0,c.useRef)(!1);function Q(e){var t,n=X();e&&!e.deadline&&e.target!==n||(z===i.Tv&&G.current?t=null==N?void 0:N(n,e):z===i.Wd&&G.current?t=null==I?void 0:I(n,e):z===i.dp&&G.current&&(t=null==R?void 0:R(n,e)),!1===t||J.current||(H(i.SF),q(null)))}var Z=(0,p.A)(Q),ee=(0,a.A)(Z,1)[0],te=c.useMemo((function(){var e,t,n;switch(z){case"appear":return e={},(0,o.A)(e,i.px,O),(0,o.A)(e,i.Mv,x),(0,o.A)(e,i.m7,P),e;case"enter":return t={},(0,o.A)(t,i.px,j),(0,o.A)(t,i.Mv,S),(0,o.A)(t,i.m7,k),t;case"leave":return n={},(0,o.A)(n,i.px,w),(0,o.A)(n,i.Mv,E),(0,o.A)(n,i.m7,C),n;default:return{}}}),[z]),ne=(0,u.Ay)(z,(function(e){if(e===i.px){var t=te[i.px];return t?t(X()):u.es}var n;ae in te&&q((null===(n=te[ae])||void 0===n?void 0:n.call(te,X(),null))||null);return ae===i.m7&&(ee(X()),g>0&&(clearTimeout(W.current),W.current=setTimeout((function(){Q({deadline:!0})}),g))),u.qB})),re=(0,a.A)(ne,2),oe=re[0],ae=re[1],ce=(0,u.$m)(ae);G.current=ce,(0,l.A)((function(){D(t);var n,r=V.current;(V.current=!0,e)&&(!r&&t&&y&&(n=i.Tv),r&&t&&v&&(n=i.Wd),(r&&!t&&h||!r&&A&&!t&&h)&&(n=i.dp),n&&(H(n),oe()))}),[t]),(0,c.useEffect)((function(){(z===i.Tv&&!y||z===i.Wd&&!v||z===i.dp&&!h)&&H(i.SF)}),[y,v,h]),(0,c.useEffect)((function(){return function(){clearTimeout(W.current),J.current=!0}}),[]),(0,c.useEffect)((function(){void 0!==_&&z===i.SF&&(null==T||T(_))}),[_,z]);var ie=$;return te[i.px]&&ae===i.Mv&&(ie=(0,r.A)({transition:"none"},ie)),[z,ae,ie,null!=_?_:t]}},58515:(e,t,n)=>{"use strict";n.d(t,{$m:()=>p,Ay:()=>f,es:()=>l,qB:()=>u});var r=n(3453),o=n(39155),a=n(25931),c=n(43982),i=n(84560),s=[a.px,a.Mv,a.m7,a.Hs],l=!1,u=!0;function p(e){return e===a.m7||e===a.Hs}const f=function(e,t){var n=o.useState(a.cE),u=(0,r.A)(n,2),p=u[0],f=u[1],d=(0,i.A)(),v=(0,r.A)(d,2),m=v[0],y=v[1];return(0,c.A)((function(){if(p!==a.cE&&p!==a.Hs){var e=s.indexOf(p),n=s[e+1],r=t(p);r===l?f(n):m((function(e){function t(){e.isCanceled()||f(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,p]),o.useEffect((function(){return function(){y()}}),[]),[function(){f(a.px)},p]}},30156:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(44785);n(97333);const o=r.A},25931:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>p,Mv:()=>l,SF:()=>r,Tv:()=>o,Wd:()=>a,cE:()=>i,dp:()=>c,m7:()=>u,px:()=>s});var r="none",o="appear",a="enter",c="leave",i="none",s="prepare",l="start",u="active",p="end"},29710:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>u,au:()=>i,bK:()=>a,e8:()=>s,xI:()=>c,y$:()=>p});var r=n(89379),o=n(82284),a="add",c="keep",i="remove",s="removed";function l(e){var t;return t=e&&"object"===(0,o.A)(e)&&"key"in e?e:{key:e},(0,r.A)((0,r.A)({},t),{},{key:String(t.key)})}function u(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(l)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,s=t.length,l=u(e),p=u(t);l.forEach((function(e){for(var t=!1,l=o;l<s;l+=1){var u=p[l];if(u.key===e.key){o<l&&(n=n.concat(p.slice(o,l).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:a})}))),o=l),n.push((0,r.A)((0,r.A)({},u),{},{status:c})),o+=1,t=!0;break}}t||n.push((0,r.A)((0,r.A)({},e),{},{status:i}))})),o<s&&(n=n.concat(p.slice(o).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:a})}))));var f={};return n.forEach((function(e){var t=e.key;f[t]=(f[t]||0)+1})),Object.keys(f).filter((function(e){return f[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==i}))).forEach((function(t){t.key===e&&(t.status=c)}))})),n}},80371:(e,t,n)=>{"use strict";n.d(t,{J1:()=>y,Vc:()=>b,by:()=>g,m8:()=>h});var r=n(82284),o=n(20998);function a(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var c,i,s,l=(c=(0,o.A)(),i="undefined"!=typeof window?window:{},s={animationend:a("Animation","AnimationEnd"),transitionend:a("Transition","TransitionEnd")},c&&("AnimationEvent"in i||delete s.animationend.animation,"TransitionEvent"in i||delete s.transitionend.transition),s),u={};if((0,o.A)()){var p=document.createElement("div");u=p.style}var f={};function d(e){if(f[e])return f[e];var t=l[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in u)return f[e]=t[a],f[e]}return""}var v=d("animationend"),m=d("transitionend"),y=!(!v||!m),b=v||"animationend",h=m||"transitionend";function g(e,t){return e?"object"===(0,r.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},20998:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},66588:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39155),o=n.n(r),a=n(69514),c=n.n(a);function i(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof o().Component?c().findDOMNode(e):null}},28104:(e,t,n)=>{"use strict";n(39155)},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var a=0,c=new Map;function i(e){c.delete(e)}var s=function(e){var t=a+=1;return function n(o){if(0===o)i(t),e();else{var a=r((function(){n(o-1)}));c.set(t,a)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};s.cancel=function(e){var t=c.get(e);return i(e),o(t)};const l=s},8719:(e,t,n)=>{"use strict";n.d(t,{Xf:()=>o});var r=n(82284);n(39155),n(44363),n(28104);function o(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)}},22799:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");
|
|
20
|
+
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,c,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var l in a=Object(arguments[s]))n.call(a,l)&&(i[l]=a[l]);if(t){c=t(a);for(var u=0;u<c.length;u++)r.call(a,c[u])&&(i[c[u]]=a[c[u]])}}return i}},44785:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(64467),o=n(89379),a=n(3453),c=n(82284),i=n(39155),s=n(66588),l=n(8719),u=n(46942),p=n.n(u),f=n(80371),d=n(25931),v=n(25318),m=n(72137),y=n(58515);const b=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,c.A)(e)&&(t=e.transitionSupport);var u=i.forwardRef((function(e,t){var c=e.visible,u=void 0===c||c,b=e.removeOnLeave,h=void 0===b||b,g=e.forceRender,A=e.children,O=e.motionName,j=e.leavedClassName,w=e.eventProps,x=n(e),S=(0,i.useRef)(),E=(0,i.useRef)();var P=(0,v.A)(x,u,(function(){try{return(0,s.A)(S.current||E.current)}catch(e){return null}}),e),k=(0,a.A)(P,4),C=k[0],N=k[1],I=k[2],R=k[3],T=i.useRef(R);R&&(T.current=!0);var L=(0,i.useRef)(t);L.current=t;var M,_=i.useCallback((function(e){S.current=e,(0,l.Xf)(L.current,e)}),[]),D=(0,o.A)((0,o.A)({},w),{},{visible:u});if(A)if(C!==d.SF&&n(e)){var F,K;N===d.px?K="prepare":(0,y.$m)(N)?K="active":N===d.Mv&&(K="start"),M=A((0,o.A)((0,o.A)({},D),{},{className:p()((0,f.by)(O,C),(F={},(0,r.A)(F,(0,f.by)(O,"".concat(C,"-").concat(K)),K),(0,r.A)(F,O,"string"==typeof O),F)),style:I}),_)}else M=R?A((0,o.A)({},D),_):!h&&T.current?A((0,o.A)((0,o.A)({},D),{},{className:j}),_):g?A((0,o.A)((0,o.A)({},D),{},{style:{display:"none"}}),_):null;else M=null;return i.createElement(m.A,{ref:E},M)}));return u.displayName="CSSMotion",u}(f.J1)},97333:(e,t,n)=>{"use strict";var r=n(58168),o=n(80045),a=n(89379),c=n(23029),i=n(92901),s=n(85501),l=n(29426),u=n(39155),p=n(44785),f=n(80371),d=n(29710),v=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.A,n=function(e){(0,s.A)(p,e);var n=(0,l.A)(p);function p(){var e;return(0,c.A)(this,p),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,a.A)((0,a.A)({},e),{},{status:d.e8})}))}}))},e}return(0,i.A)(p,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,a=this.props,c=a.component,i=a.children,s=a.onVisibleChanged,l=(0,o.A)(a,["component","children","onVisibleChanged"]),p=c||u.Fragment,f={};return v.forEach((function(e){f[e]=l[e],delete l[e]})),delete l.keys,u.createElement(p,l,n.map((function(n){var a=n.status,c=(0,o.A)(n,["status"]),l=a===d.bK||a===d.xI;return u.createElement(t,(0,r.A)({},f,{key:c.key,visible:l,eventProps:c,onVisibleChanged:function(t){null==s||s(t,{key:c.key}),t||e.removeKey(c.key)}}),i)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=(0,d.Ss)(n);return{keyEntities:(0,d.y$)(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==d.e8||e.status!==d.au}))}}}]),p}(u.Component);n.defaultProps={component:"div"}}(f.J1)},72137:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(23029),o=n(92901),a=n(85501),c=n(29426),i=n(39155);const s=function(e){(0,a.A)(n,e);var t=(0,c.A)(n);function n(){return(0,r.A)(this,n),t.apply(this,arguments)}return(0,o.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component)},85849:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=n(80371);const a=function(e){var t=(0,r.useRef)(),n=(0,r.useRef)(e);n.current=e;var a=r.useCallback((function(e){n.current(e)}),[]);function c(e){e&&(e.removeEventListener(o.m8,a),e.removeEventListener(o.Vc,a))}return r.useEffect((function(){return function(){c(t.current)}}),[]),[function(e){t.current&&t.current!==e&&c(t.current),e&&e!==t.current&&(e.addEventListener(o.m8,a),e.addEventListener(o.Vc,a),t.current=e)},c]}},43982:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(39155);const o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect},84560:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=n(25371);const a=function(){var e=r.useRef(null);function t(){o.A.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var c=(0,o.A)((function(){a<=1?r({isCanceled:function(){return c!==e.current}}):n(r,a-1)}));e.current=c},t]}},92659:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(3453),o=n(39155);function a(e){var t=(0,o.useRef)(!1),n=(0,o.useState)(e),a=(0,r.A)(n,2),c=a[0],i=a[1];return(0,o.useEffect)((function(){return function(){t.current=!0}}),[]),[c,function(e){t.current||i(e)}]}},25318:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(89379),o=n(64467),a=n(3453),c=n(39155),i=n(25931),s=n(92659),l=n(43982),u=n(58515),p=n(85849);function f(e,t,n,f){var d=f.motionEnter,v=void 0===d||d,m=f.motionAppear,y=void 0===m||m,b=f.motionLeave,h=void 0===b||b,g=f.motionDeadline,A=f.motionLeaveImmediately,O=f.onAppearPrepare,j=f.onEnterPrepare,w=f.onLeavePrepare,x=f.onAppearStart,S=f.onEnterStart,E=f.onLeaveStart,P=f.onAppearActive,k=f.onEnterActive,C=f.onLeaveActive,N=f.onAppearEnd,I=f.onEnterEnd,R=f.onLeaveEnd,T=f.onVisibleChanged,L=(0,s.A)(),M=(0,a.A)(L,2),_=M[0],D=M[1],F=(0,s.A)(i.SF),K=(0,a.A)(F,2),z=K[0],H=K[1],U=(0,s.A)(null),B=(0,a.A)(U,2),$=B[0],q=B[1],V=(0,c.useRef)(!1),W=(0,c.useRef)(null),J=(0,c.useRef)(!1),Y=(0,c.useRef)(null);function X(){return n()||Y.current}var G=(0,c.useRef)(!1);function Q(e){var t,n=X();e&&!e.deadline&&e.target!==n||(z===i.Tv&&G.current?t=null==N?void 0:N(n,e):z===i.Wd&&G.current?t=null==I?void 0:I(n,e):z===i.dp&&G.current&&(t=null==R?void 0:R(n,e)),!1===t||J.current||(H(i.SF),q(null)))}var Z=(0,p.A)(Q),ee=(0,a.A)(Z,1)[0],te=c.useMemo((function(){var e,t,n;switch(z){case"appear":return e={},(0,o.A)(e,i.px,O),(0,o.A)(e,i.Mv,x),(0,o.A)(e,i.m7,P),e;case"enter":return t={},(0,o.A)(t,i.px,j),(0,o.A)(t,i.Mv,S),(0,o.A)(t,i.m7,k),t;case"leave":return n={},(0,o.A)(n,i.px,w),(0,o.A)(n,i.Mv,E),(0,o.A)(n,i.m7,C),n;default:return{}}}),[z]),ne=(0,u.Ay)(z,(function(e){if(e===i.px){var t=te[i.px];return t?t(X()):u.es}var n;ae in te&&q((null===(n=te[ae])||void 0===n?void 0:n.call(te,X(),null))||null);return ae===i.m7&&(ee(X()),g>0&&(clearTimeout(W.current),W.current=setTimeout((function(){Q({deadline:!0})}),g))),u.qB})),re=(0,a.A)(ne,2),oe=re[0],ae=re[1],ce=(0,u.$m)(ae);G.current=ce,(0,l.A)((function(){D(t);var n,r=V.current;(V.current=!0,e)&&(!r&&t&&y&&(n=i.Tv),r&&t&&v&&(n=i.Wd),(r&&!t&&h||!r&&A&&!t&&h)&&(n=i.dp),n&&(H(n),oe()))}),[t]),(0,c.useEffect)((function(){(z===i.Tv&&!y||z===i.Wd&&!v||z===i.dp&&!h)&&H(i.SF)}),[y,v,h]),(0,c.useEffect)((function(){return function(){clearTimeout(W.current),J.current=!0}}),[]),(0,c.useEffect)((function(){void 0!==_&&z===i.SF&&(null==T||T(_))}),[_,z]);var ie=$;return te[i.px]&&ae===i.Mv&&(ie=(0,r.A)({transition:"none"},ie)),[z,ae,ie,null!=_?_:t]}},58515:(e,t,n)=>{"use strict";n.d(t,{$m:()=>p,Ay:()=>f,es:()=>l,qB:()=>u});var r=n(3453),o=n(39155),a=n(25931),c=n(43982),i=n(84560),s=[a.px,a.Mv,a.m7,a.Hs],l=!1,u=!0;function p(e){return e===a.m7||e===a.Hs}const f=function(e,t){var n=o.useState(a.cE),u=(0,r.A)(n,2),p=u[0],f=u[1],d=(0,i.A)(),v=(0,r.A)(d,2),m=v[0],y=v[1];return(0,c.A)((function(){if(p!==a.cE&&p!==a.Hs){var e=s.indexOf(p),n=s[e+1],r=t(p);r===l?f(n):m((function(e){function t(){e.isCanceled()||f(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,p]),o.useEffect((function(){return function(){y()}}),[]),[function(){f(a.px)},p]}},30156:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(44785);n(97333);const o=r.A},25931:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>p,Mv:()=>l,SF:()=>r,Tv:()=>o,Wd:()=>a,cE:()=>i,dp:()=>c,m7:()=>u,px:()=>s});var r="none",o="appear",a="enter",c="leave",i="none",s="prepare",l="start",u="active",p="end"},29710:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>u,au:()=>i,bK:()=>a,e8:()=>s,xI:()=>c,y$:()=>p});var r=n(89379),o=n(82284),a="add",c="keep",i="remove",s="removed";function l(e){var t;return t=e&&"object"===(0,o.A)(e)&&"key"in e?e:{key:e},(0,r.A)((0,r.A)({},t),{},{key:String(t.key)})}function u(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(l)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,s=t.length,l=u(e),p=u(t);l.forEach((function(e){for(var t=!1,l=o;l<s;l+=1){var u=p[l];if(u.key===e.key){o<l&&(n=n.concat(p.slice(o,l).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:a})}))),o=l),n.push((0,r.A)((0,r.A)({},u),{},{status:c})),o+=1,t=!0;break}}t||n.push((0,r.A)((0,r.A)({},e),{},{status:i}))})),o<s&&(n=n.concat(p.slice(o).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:a})}))));var f={};return n.forEach((function(e){var t=e.key;f[t]=(f[t]||0)+1})),Object.keys(f).filter((function(e){return f[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==i}))).forEach((function(t){t.key===e&&(t.status=c)}))})),n}},80371:(e,t,n)=>{"use strict";n.d(t,{J1:()=>y,Vc:()=>b,by:()=>g,m8:()=>h});var r=n(82284),o=n(20998);function a(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var c,i,s,l=(c=(0,o.A)(),i="undefined"!=typeof window?window:{},s={animationend:a("Animation","AnimationEnd"),transitionend:a("Transition","TransitionEnd")},c&&("AnimationEvent"in i||delete s.animationend.animation,"TransitionEvent"in i||delete s.transitionend.transition),s),u={};if((0,o.A)()){var p=document.createElement("div");u=p.style}var f={};function d(e){if(f[e])return f[e];var t=l[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in u)return f[e]=t[a],f[e]}return""}var v=d("animationend"),m=d("transitionend"),y=!(!v||!m),b=v||"animationend",h=m||"transitionend";function g(e,t){return e?"object"===(0,r.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},20998:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},66588:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39155),o=n.n(r),a=n(69514),c=n.n(a);function i(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof o().Component?c().findDOMNode(e):null}},28104:(e,t,n)=>{"use strict";n(39155)},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var a=0,c=new Map;function i(e){c.delete(e)}var s=function(e){var t=a+=1;return function n(o){if(0===o)i(t),e();else{var a=r((function(){n(o-1)}));c.set(t,a)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};s.cancel=function(e){var t=c.get(e);return i(e),o(t)};const l=s},8719:(e,t,n)=>{"use strict";n.d(t,{Xf:()=>o});var r=n(82284),o=(n(39155),n(44363),n(28104),function(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)})},22799:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");
|
|
21
21
|
/**
|
|
22
22
|
* @license React
|
|
23
23
|
* react-is.production.min.js
|
|
@@ -39,4 +39,4 @@ object-assign
|
|
|
39
39
|
Copyright (c) 2018 Jed Watson.
|
|
40
40
|
Licensed under the MIT License (MIT), see
|
|
41
41
|
http://jedwatson.github.io/classnames
|
|
42
|
-
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=c(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=c(t,n));return t}function c(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(49922);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(53954),o=n(52176),a=n(56822);function c(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var c=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,c)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49922);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},53954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},52176:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},6986:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,c,i=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(l)throw o}}return i}}n.d(t,{A:()=>r})},76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(64467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(98587);function o(e,t){if(null==e)return{};var n,o,a=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(82284),o=n(9417);function a(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(96369),o=n(6986),a=n(27800),c=n(76562);function i(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,a.A)(e,t)||(0,c.A)()}},92327:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(82284),o=n(92327);function a(e){var t=(0,o.A)(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={id:e,exports:{}};return n[e](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var a={};return(()=>{"use strict";o.r(a),o.d(a,{Collapse:()=>W,default:()=>J});var e=o(39155),t=o.n(e),n=o(64467),r=o(43145);var c=o(27800);function i(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,c.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s=o(23029),l=o(92901),u=o(85501),p=o(29426),f=o(82284),d=o(46942),v=o.n(d),m=o(2833),y=o.n(m),b=o(44363);function h(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t().Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(h(e)):(0,b.isFragment)(e)&&e.props?r=r.concat(h(e.props.children,n)):r.push(e))})),r}var g=o(58168),A=o(30156),O=o(3453),j=e.forwardRef((function(t,r){var o,a=t.prefixCls,c=t.forceRender,i=t.className,s=t.style,l=t.children,u=t.isActive,p=t.role,f=e.useState(u||c),d=(0,O.A)(f,2),m=d[0],y=d[1];return e.useEffect((function(){(c||u)&&y(!0)}),[c,u]),m?e.createElement("div",{ref:r,className:v()("".concat(a,"-content"),(o={},(0,n.A)(o,"".concat(a,"-content-active"),u),(0,n.A)(o,"".concat(a,"-content-inactive"),!u),o),i),style:s,role:p},e.createElement("div",{className:"".concat(a,"-content-box")},l)):null}));j.displayName="PanelContent";const w=j;var x=function(t){(0,u.A)(o,t);var r=(0,p.A)(o);function o(){var e;(0,s.A)(this,o);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return(e=r.call.apply(r,[this].concat(n))).handleItemClick=function(){var t=e.props,n=t.onItemClick,r=t.panelKey;"function"==typeof n&&n(r)},e.handleKeyPress=function(t){"Enter"!==t.key&&13!==t.keyCode&&13!==t.which||e.handleItemClick()},e}return(0,l.A)(o,[{key:"shouldComponentUpdate",value:function(e){return!y()(this.props,e)}},{key:"render",value:function(){var t,r,o=this,a=this.props,c=a.className,i=a.id,s=a.style,l=a.prefixCls,u=a.header,p=a.headerClass,f=a.children,d=a.isActive,m=a.showArrow,y=a.destroyInactivePanel,b=a.accordion,h=a.forceRender,O=a.openMotion,j=a.expandIcon,x=a.extra,S=a.collapsible,E="disabled"===S,P=v()("".concat(l,"-header"),(t={},(0,n.A)(t,p,p),(0,n.A)(t,"".concat(l,"-header-collapsible-only"),"header"===S),t)),k=v()((r={},(0,n.A)(r,"".concat(l,"-item"),!0),(0,n.A)(r,"".concat(l,"-item-active"),d),(0,n.A)(r,"".concat(l,"-item-disabled"),E),r),c),C=e.createElement("i",{className:"arrow"});m&&"function"==typeof j&&(C=j(this.props));var N=null!=x&&"boolean"!=typeof x;return e.createElement("div",{className:k,style:s,id:i},e.createElement("div",{className:P,onClick:function(){return"header"!==S&&o.handleItemClick()},role:b?"tab":"button",tabIndex:E?-1:0,"aria-expanded":d,onKeyPress:this.handleKeyPress},m&&C,"header"===S?e.createElement("span",{onClick:this.handleItemClick,className:"".concat(l,"-header-text")},u):u,N&&e.createElement("div",{className:"".concat(l,"-extra")},x)),e.createElement(A.A,(0,g.A)({visible:d,leavedClassName:"".concat(l,"-content-hidden")},O,{forceRender:h,removeOnLeave:y}),(function(t,n){var r=t.className,o=t.style;return e.createElement(w,{ref:n,prefixCls:l,className:r,style:o,isActive:d,forceRender:h,role:b?"tabpanel":null},f)})))}}]),o}(e.Component);x.defaultProps={showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1};const S=x;function E(e){var t=e;if(!Array.isArray(t)){var n=(0,f.A)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var P=function(t){(0,u.A)(o,t);var r=(0,p.A)(o);function o(t){var n;(0,s.A)(this,o),(n=r.call(this,t)).onClickItem=function(e){var t=n.state.activeKey;if(n.props.accordion)t=t[0]===e?[]:[e];else{var r=(t=i(t)).indexOf(e);r>-1?t.splice(r,1):t.push(e)}n.setActiveKey(t)},n.getNewChild=function(t,r){if(!t)return null;var o=n.state.activeKey,a=n.props,c=a.prefixCls,i=a.openMotion,s=a.accordion,l=a.destroyInactivePanel,u=a.expandIcon,p=a.collapsible,f=t.key||String(r),d=t.props,v=d.header,m=d.headerClass,y=d.destroyInactivePanel,b=d.collapsible,h=null!=b?b:p,g={key:f,panelKey:f,header:v,headerClass:m,isActive:s?o[0]===f:o.indexOf(f)>-1,prefixCls:c,destroyInactivePanel:null!=y?y:l,openMotion:i,accordion:s,children:t.props.children,onItemClick:"disabled"===h?null:n.onClickItem,expandIcon:u,collapsible:h};return"string"==typeof t.type?t:e.cloneElement(t,g)},n.getItems=function(){return h(n.props.children).map(n.getNewChild)},n.setActiveKey=function(e){"activeKey"in n.props||n.setState({activeKey:e}),n.props.onChange(n.props.accordion?e[0]:e)};var a=t.activeKey,c=t.defaultActiveKey;return"activeKey"in t&&(c=a),n.state={activeKey:E(c)},n}return(0,l.A)(o,[{key:"shouldComponentUpdate",value:function(e,t){return!y()(this.props,e)||!y()(this.state,t)}},{key:"render",value:function(){var t,r=this.props,o=r.prefixCls,a=r.className,c=r.style,i=r.accordion,s=v()((t={},(0,n.A)(t,o,!0),(0,n.A)(t,a,!!a),t));return e.createElement("div",{className:s,style:c,role:i?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(e){var t={};return"activeKey"in e&&(t.activeKey=E(e.activeKey)),t}}]),o}(e.Component);P.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},P.Panel=S;const k=P;P.Panel;var C=o(14552);function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}const R=function(e){var n,r=e.className,o=void 0===r?"":r,a=e.showArrow,c=void 0===a||a;return t().createElement(k.Panel,I(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){N(e,t,n[t])}))}return e}({},e),{className:(n="",o&&(n+=o),c||(n+=" collapse-panel-no-arrow"),n),prefixCls:"".concat(C.g,"-collapse")}))};function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L=e.isValidElement;function M(t,n){return function(t,n,r){return L(t)?e.cloneElement(t,"function"==typeof r?r(t.props||{}):r):n}(t,t,n)}function _(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){T(e,t,n[t])}))}return e}({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var D=o(74848),F=o(55307),K=function(e){return(0,D.jsx)(F.A,Object.assign({dataName:"Right",viewBox:"0 0 24 24",path:(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)("g",Object.assign({id:"Right",transform:"translate(-105 -1649)"},{children:[(0,D.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(105 1649)",fill:"none"}),(0,D.jsx)("path",{id:"icon",d:"M.933,17.867a.933.933,0,0,1-.66-1.593l7.34-7.34L.273,1.593A.933.933,0,0,1,1.593.273l8,8a.934.934,0,0,1,0,1.32l-8,8a.93.93,0,0,1-.66.273",transform:"translate(112.067 1652.067)"})]}))})},e))},z=function(){return{height:0,opacity:0}},H=function(e){return{height:e.scrollHeight,opacity:1}},U=function(e,t){return!0===(null==t?void 0:t.deadline)||"height"===t.propertyName};const B={motionName:"collapse-motion-collapse",onAppearStart:z,onEnterStart:z,onAppearActive:H,onEnterActive:H,onLeaveStart:function(e){return{height:e?e.offsetHeight:0}},onLeaveActive:z,onAppearEnd:U,onEnterEnd:U,onLeaveEnd:U,motionDeadline:500};o(85735);function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$(e,t,n[t])}))}return e}function V(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var W=function(e){var n,r,o,a=e.className,c=void 0===a?"":a,i=e.expandIconPosition,s=void 0===i?"left":i,l=V(q({},B),{motionAppear:!1,leavedClassName:"collapse-content-hidden"});return t().createElement(k,V(q({openMotion:l},e),{expandIcon:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.expandIcon,o=r?r(n):t().createElement(K,{className:"collapse-expand-svg"});return t().createElement("div",{className:"collapse-svg-box"},o)},prefixCls:"".concat(C.g,"-collapse"),className:(o="".concat(C.n,"-collapse"),c&&(o+=" ".concat(c)),s&&(o+=" ".concat(C.n,"-collapse-svg-").concat(s)),o)}),(r=e.children,(n=r,n?Array.isArray(n)?n:[n]:[]).map((function(e,t){var n;if(null===(n=e.props)||void 0===n?void 0:n.disabled){var r=e.key||String(t),o=e.props,a=o.disabled,c=o.collapsible;return M(e,V(q({},_(e.props,["disabled"])),{key:r,collapsible:null!=c?c:a?"disabled":void 0}))}return e}))))};W.Panel=R;const J=W})(),a})()));
|
|
42
|
+
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=c(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=c(t,n));return t}function c(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(49922);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(53954),o=n(52176),a=n(56822);function c(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var c=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,c)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49922);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},53954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},52176:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},6986:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,c,i=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(l)throw o}}return i}}n.d(t,{A:()=>r})},76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(64467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(98587);function o(e,t){if(null==e)return{};var n,o,a=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(82284),o=n(9417);function a(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(96369),o=n(6986),a=n(27800),c=n(76562);function i(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,a.A)(e,t)||(0,c.A)()}},92327:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(82284),o=n(92327);function a(e){var t=(0,o.A)(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={id:e,exports:{}};return n[e](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var a={};return(()=>{"use strict";o.r(a),o.d(a,{Collapse:()=>W,default:()=>J});var e=o(39155),t=o.n(e),n=o(64467),r=o(43145);var c=o(27800);function i(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,c.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s=o(23029),l=o(92901),u=o(85501),p=o(29426),f=o(82284),d=o(46942),v=o.n(d),m=o(2833),y=o.n(m),b=o(44363);function h(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t().Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(h(e)):(0,b.isFragment)(e)&&e.props?r=r.concat(h(e.props.children,n)):r.push(e))})),r}var g=o(58168),A=o(30156),O=o(3453),j=e.forwardRef((function(t,r){var o,a=t.prefixCls,c=t.forceRender,i=t.className,s=t.style,l=t.children,u=t.isActive,p=t.role,f=e.useState(u||c),d=(0,O.A)(f,2),m=d[0],y=d[1];return e.useEffect((function(){(c||u)&&y(!0)}),[c,u]),m?e.createElement("div",{ref:r,className:v()("".concat(a,"-content"),(o={},(0,n.A)(o,"".concat(a,"-content-active"),u),(0,n.A)(o,"".concat(a,"-content-inactive"),!u),o),i),style:s,role:p},e.createElement("div",{className:"".concat(a,"-content-box")},l)):null}));j.displayName="PanelContent";const w=j;var x=function(t){(0,u.A)(o,t);var r=(0,p.A)(o);function o(){var e;(0,s.A)(this,o);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return(e=r.call.apply(r,[this].concat(n))).handleItemClick=function(){var t=e.props,n=t.onItemClick,r=t.panelKey;"function"==typeof n&&n(r)},e.handleKeyPress=function(t){"Enter"!==t.key&&13!==t.keyCode&&13!==t.which||e.handleItemClick()},e}return(0,l.A)(o,[{key:"shouldComponentUpdate",value:function(e){return!y()(this.props,e)}},{key:"render",value:function(){var t,r,o=this,a=this.props,c=a.className,i=a.id,s=a.style,l=a.prefixCls,u=a.header,p=a.headerClass,f=a.children,d=a.isActive,m=a.showArrow,y=a.destroyInactivePanel,b=a.accordion,h=a.forceRender,O=a.openMotion,j=a.expandIcon,x=a.extra,S=a.collapsible,E="disabled"===S,P=v()("".concat(l,"-header"),(t={},(0,n.A)(t,p,p),(0,n.A)(t,"".concat(l,"-header-collapsible-only"),"header"===S),t)),k=v()((r={},(0,n.A)(r,"".concat(l,"-item"),!0),(0,n.A)(r,"".concat(l,"-item-active"),d),(0,n.A)(r,"".concat(l,"-item-disabled"),E),r),c),C=e.createElement("i",{className:"arrow"});m&&"function"==typeof j&&(C=j(this.props));var N=null!=x&&"boolean"!=typeof x;return e.createElement("div",{className:k,style:s,id:i},e.createElement("div",{className:P,onClick:function(){return"header"!==S&&o.handleItemClick()},role:b?"tab":"button",tabIndex:E?-1:0,"aria-expanded":d,onKeyPress:this.handleKeyPress},m&&C,"header"===S?e.createElement("span",{onClick:this.handleItemClick,className:"".concat(l,"-header-text")},u):u,N&&e.createElement("div",{className:"".concat(l,"-extra")},x)),e.createElement(A.A,(0,g.A)({visible:d,leavedClassName:"".concat(l,"-content-hidden")},O,{forceRender:h,removeOnLeave:y}),(function(t,n){var r=t.className,o=t.style;return e.createElement(w,{ref:n,prefixCls:l,className:r,style:o,isActive:d,forceRender:h,role:b?"tabpanel":null},f)})))}}]),o}(e.Component);x.defaultProps={showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1};const S=x;function E(e){var t=e;if(!Array.isArray(t)){var n=(0,f.A)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var P=function(t){(0,u.A)(o,t);var r=(0,p.A)(o);function o(t){var n;(0,s.A)(this,o),(n=r.call(this,t)).onClickItem=function(e){var t=n.state.activeKey;if(n.props.accordion)t=t[0]===e?[]:[e];else{var r=(t=i(t)).indexOf(e);r>-1?t.splice(r,1):t.push(e)}n.setActiveKey(t)},n.getNewChild=function(t,r){if(!t)return null;var o=n.state.activeKey,a=n.props,c=a.prefixCls,i=a.openMotion,s=a.accordion,l=a.destroyInactivePanel,u=a.expandIcon,p=a.collapsible,f=t.key||String(r),d=t.props,v=d.header,m=d.headerClass,y=d.destroyInactivePanel,b=d.collapsible,h=null!=b?b:p,g={key:f,panelKey:f,header:v,headerClass:m,isActive:s?o[0]===f:o.indexOf(f)>-1,prefixCls:c,destroyInactivePanel:null!=y?y:l,openMotion:i,accordion:s,children:t.props.children,onItemClick:"disabled"===h?null:n.onClickItem,expandIcon:u,collapsible:h};return"string"==typeof t.type?t:e.cloneElement(t,g)},n.getItems=function(){return h(n.props.children).map(n.getNewChild)},n.setActiveKey=function(e){"activeKey"in n.props||n.setState({activeKey:e}),n.props.onChange(n.props.accordion?e[0]:e)};var a=t.activeKey,c=t.defaultActiveKey;return"activeKey"in t&&(c=a),n.state={activeKey:E(c)},n}return(0,l.A)(o,[{key:"shouldComponentUpdate",value:function(e,t){return!y()(this.props,e)||!y()(this.state,t)}},{key:"render",value:function(){var t,r=this.props,o=r.prefixCls,a=r.className,c=r.style,i=r.accordion,s=v()((t={},(0,n.A)(t,o,!0),(0,n.A)(t,a,!!a),t));return e.createElement("div",{className:s,style:c,role:i?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(e){var t={};return"activeKey"in e&&(t.activeKey=E(e.activeKey)),t}}]),o}(e.Component);P.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},P.Panel=S;const k=P;P.Panel;var C=o(14552);function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}const R=function(e){var n,r=e.className,o=void 0===r?"":r,a=e.showArrow,c=void 0===a||a;return t().createElement(k.Panel,I(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){N(e,t,n[t])}))}return e}({},e),{className:(n="",o&&(n+=o),c||(n+=" collapse-panel-no-arrow"),n),prefixCls:"".concat(C.g,"-collapse")}))};function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L=e.isValidElement;function M(t,n){return function(t,n,r){return L(t)?e.cloneElement(t,"function"==typeof r?r(t.props||{}):r):n}(t,t,n)}function _(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){T(e,t,n[t])}))}return e}({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var D=o(74848),F=o(55307),K=function(e){return(0,D.jsx)(F.A,Object.assign({dataName:"Right",viewBox:"0 0 24 24",path:(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)("g",Object.assign({id:"Right",transform:"translate(-105 -1649)"},{children:[(0,D.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(105 1649)",fill:"none"}),(0,D.jsx)("path",{id:"icon",d:"M.933,17.867a.933.933,0,0,1-.66-1.593l7.34-7.34L.273,1.593A.933.933,0,0,1,1.593.273l8,8a.934.934,0,0,1,0,1.32l-8,8a.93.93,0,0,1-.66.273",transform:"translate(112.067 1652.067)"})]}))})},e))},z=function(){return{height:0,opacity:0}},H=function(e){return{height:e.scrollHeight,opacity:1}},U=function(e,t){return!0===(null==t?void 0:t.deadline)||"height"===t.propertyName};const B={motionName:"collapse-motion-collapse",onAppearStart:z,onEnterStart:z,onAppearActive:H,onEnterActive:H,onLeaveStart:function(e){return{height:e?e.offsetHeight:0}},onLeaveActive:z,onAppearEnd:U,onEnterEnd:U,onLeaveEnd:U,motionDeadline:500};o(85735);function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$(e,t,n[t])}))}return e}function V(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var W=function(e){var n,r,o,a=e.className,c=void 0===a?"":a,i=e.expandIconPosition,s=void 0===i?"left":i,l=V(q({},B),{motionAppear:!1,leavedClassName:"collapse-content-hidden"});return t().createElement(k,V(q({openMotion:l},e),{expandIcon:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.expandIcon,o=r?r(n):t().createElement(K,{className:"collapse-expand-svg"});return t().createElement("div",{className:"collapse-svg-box"},o)},prefixCls:"".concat(C.g,"-collapse"),className:(o="".concat(C.n,"-collapse"),c&&(o+=" ".concat(c)),s&&(o+=" ".concat(C.n,"-collapse-svg-").concat(s)),o)}),(r=e.children,(n=r,n?Array.isArray(n)?n:[n]:[]).map((function(e,t){var n;if(null===(n=e.props)||void 0===n?void 0:n.disabled){var r=e.key||String(t),o=e.props,a=o.disabled,c=o.collapsible;return M(e,V(q({},_(e.props,["disabled"])),{key:r,collapsible:null!=c?c:a?"disabled":void 0}))}return e}))))};W.Panel=R;const J=W})(),a})()));
|
package/umd/CollapseBox.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.ParaUI=e(require("react"),require("react-dom")):t.ParaUI=e(t.react,t["react-dom"])}(self,((t,e)=>(()=>{var n={36821:(t,e,n)=>{(e=n(76314)(!1)).push([t.id,".paraui-v4-collapse-box{transition:height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;width:100%;overflow:hidden;height:0}.paraui-v4-collapse-box>.collapse-box-wrapper{display:flex;width:100%}.paraui-v4-collapse-box>.collapse-box-wrapper>.collapse-box-wrapper-inner{width:100%}.paraui-v4-collapse-box.paraui-v4-collapse-box-entered{overflow:visible}.paraui-v4-collapse-box.paraui-v4-collapse-box-hidden{visibility:hidden}",""]),t.exports=e},76314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),i=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(i).concat([o]).join("\n")}var a,s,u;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},69414:(t,e,n)=>{var r=n(85072),o=n(36821);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},85072:(t,e,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function u(t,e){for(var n={},r=[],o=0;o<t.length;o++){var i=t[o],u=e.base?i[0]+e.base:i[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var p=s(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:m(f,e),references:1}),r.push(l)}return r}function c(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,p=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function f(t,e,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=p(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function d(t,e,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var h=null,v=0;function m(t,e){var n,r,o;if(e.singleton){var i=v++;n=h||(h=c(e)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=c(e),r=d.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=u(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var o=s(n[r]);a[o].references--}for(var i=u(t,e),c=0;c<n.length;c++){var l=s(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},14552:(t,e,n)=>{"use strict";n.d(e,{n:()=>r});var r="paraui-v4"},39155:e=>{"use strict";e.exports=t},69514:t=>{"use strict";t.exports=e},98587:(t,e,n)=>{"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,{A:()=>r})},63662:(t,e,n)=>{"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}n.d(e,{A:()=>r})}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={id:t,exports:{}};return n[t](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nc=void 0;var i={};return(()=>{"use strict";o.r(i),o.d(i,{default:()=>w});var t=o(39155),e=o.n(t),n=o(98587),r=o(63662);var a=o(69514),s=o.n(a);const u=!1,c=e().createContext(null);var l="unmounted",p="exited",f="entering",d="entered",h="exiting",v=function(t){var o,i;function a(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=p,r.appearStatus=f):o=d:o=e.unmountOnExit||e.mountOnEnter?l:p,r.state={status:o},r.nextCallback=null,r}i=t,(o=a).prototype=Object.create(i.prototype),o.prototype.constructor=o,(0,r.A)(o,i),a.getDerivedStateFromProps=function(t,e){return t.in&&e.status===l?{status:p}:null};var v=a.prototype;return v.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},v.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==d&&(e=f):n!==f&&n!==d||(e=h)}this.updateStatus(!1,e)},v.componentWillUnmount=function(){this.cancelNextCallback()},v.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},v.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),e===f?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===p&&this.setState({status:l})},v.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,o=this.props.nodeRef?[r]:[s().findDOMNode(this),r],i=o[0],a=o[1],c=this.getTimeouts(),l=r?c.appear:c.enter;!t&&!n||u?this.safeSetState({status:d},(function(){e.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:f},(function(){e.props.onEntering(i,a),e.onTransitionEnd(l,(function(){e.safeSetState({status:d},(function(){e.props.onEntered(i,a)}))}))})))},v.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:s().findDOMNode(this);e&&!u?(this.props.onExit(r),this.safeSetState({status:h},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:p},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){t.props.onExited(r)}))},v.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},v.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},v.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},v.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:s().findDOMNode(this),r=null==t&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},v.render=function(){var t=this.state.status;if(t===l)return null;var r=this.props,o=r.children,i=(r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef,(0,n.A)(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e().createElement(c.Provider,{value:null},"function"==typeof o?o(t,i):e().cloneElement(e().Children.only(o),i))},a}(e().Component);function m(){}v.contextType=c,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},v.UNMOUNTED=l,v.EXITED=p,v.ENTERING=f,v.ENTERED=d,v.EXITING=h;const b=v;function x(t,e){var n=t.timeout,r=t.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[e.mode]||0,delay:o.transitionDelay}}function y(t){if(!t)return 0;var e=t/36;return Math.round(10*(4+15*Math.pow(e,.25)+e/5))}var E=o(14552);o(69414);function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){S(t,e,n[e])}))}return t}function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const w=function(n){var r=n.className,o=n.style,i=n.in,a=n.collapsedHeight,s=void 0===a?"0px":a,u=n.timeout,c=void 0===u?"auto":u,l=n.unmountOnExit,p=n.children,f=(0,t.useRef)(null),d=(0,t.useRef)(null),h=(0,t.useRef)(null),v=(0,t.useRef)(null),m="number"==typeof s?"".concat(s,"px"):s,g=C((0,t.useState)(!1),2),S=g[0],w=g[1];(0,t.useEffect)((function(){return function(){clearTimeout(f.current)}}),[]),(0,t.useEffect)((function(){w(i)}),[i]);var j=function(t){var e="".concat(E.n,"-collapse-box");return r&&(e+=" ".concat(r)),"entered"===t&&(e+=" ".concat(E.n,"-collapse-box-entered")),"exited"!==t||S||"0px"!==m||(e+=" ".concat(E.n,"-collapse-box-hidden")),e};return e().createElement(b,{in:S,unmountOnExit:l,onEnter:function(t){t.style.height=m},onEntered:function(t){t.style.height="auto"},onEntering:function(t){var e=h.current?h.current.clientHeight:0,n=x({style:o,timeout:c},{mode:"enter"}).duration;if("auto"===c){var r=y(e);t.style.transitionDuration="".concat(r,"ms"),v.current=r}else t.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");t.style.height="".concat(e,"px")},onExit:function(t){var e=h.current?h.current.clientHeight:0;t.style.height="".concat(e,"px")},onExiting:function(t){var e=h.current?h.current.clientHeight:0,n=x({style:o,timeout:c},{mode:"exit"}).duration;if("auto"===c){var r=y(e);t.style.transitionDuration="".concat(r,"ms"),v.current=r}else t.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");t.style.height=m},timeout:"auto"===c?void 0:c,addEndListener:function(t,e){f.current=setTimeout(e,v.current||0)}},(function(t,n){return e().createElement("div",O({className:j(t),style:O({minHeight:m},o),ref:d},n),e().createElement("div",{className:"collapse-box-wrapper",ref:h},e().createElement("div",{className:"collapse-box-wrapper-inner"},p)))}))}})(),i})()));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.ParaUI=e(require("react"),require("react-dom")):t.ParaUI=e(t.react,t["react-dom"])}(self,((t,e)=>(()=>{var n={36821:(t,e,n)=>{(e=n(76314)(!1)).push([t.id,".paraui-v4-collapse-box{transition:height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;width:100%;overflow:hidden;height:0}.paraui-v4-collapse-box>.collapse-box-wrapper{display:flex;width:100%}.paraui-v4-collapse-box>.collapse-box-wrapper>.collapse-box-wrapper-inner{width:100%}.paraui-v4-collapse-box.paraui-v4-collapse-box-entered{overflow:visible}.paraui-v4-collapse-box.paraui-v4-collapse-box-hidden{visibility:hidden}",""]),t.exports=e},76314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),i=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(i).concat([o]).join("\n")}var a,s,u;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},69414:(t,e,n)=>{var r=n(85072),o=n(36821);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},85072:(t,e,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function u(t,e){for(var n={},r=[],o=0;o<t.length;o++){var i=t[o],u=e.base?i[0]+e.base:i[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var p=s(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:m(f,e),references:1}),r.push(l)}return r}function c(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,p=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function f(t,e,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=p(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function d(t,e,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var h=null,v=0;function m(t,e){var n,r,o;if(e.singleton){var i=v++;n=h||(h=c(e)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=c(e),r=d.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=u(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var o=s(n[r]);a[o].references--}for(var i=u(t,e),c=0;c<n.length;c++){var l=s(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},14552:(t,e,n)=>{"use strict";n.d(e,{n:()=>r});var r="paraui-v4"},39155:e=>{"use strict";e.exports=t},69514:t=>{"use strict";t.exports=e},98587:(t,e,n)=>{"use strict";function r(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}n.d(e,{A:()=>r})},63662:(t,e,n)=>{"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}n.d(e,{A:()=>r})}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={id:t,exports:{}};return n[t](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nc=void 0;var i={};return(()=>{"use strict";o.r(i),o.d(i,{default:()=>w});var t=o(39155),e=o.n(t),n=o(98587),r=o(63662);var a=o(69514),s=o.n(a);const u=!1,c=e().createContext(null);var l="unmounted",p="exited",f="entering",d="entered",h="exiting",v=function(t){var o,i;function a(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=p,r.appearStatus=f):o=d:o=e.unmountOnExit||e.mountOnEnter?l:p,r.state={status:o},r.nextCallback=null,r}i=t,(o=a).prototype=Object.create(i.prototype),o.prototype.constructor=o,(0,r.A)(o,i),a.getDerivedStateFromProps=function(t,e){return t.in&&e.status===l?{status:p}:null};var v=a.prototype;return v.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},v.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==d&&(e=f):n!==f&&n!==d||(e=h)}this.updateStatus(!1,e)},v.componentWillUnmount=function(){this.cancelNextCallback()},v.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},v.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),e===f?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===p&&this.setState({status:l})},v.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,o=this.props.nodeRef?[r]:[s().findDOMNode(this),r],i=o[0],a=o[1],c=this.getTimeouts(),l=r?c.appear:c.enter;!t&&!n||u?this.safeSetState({status:d},(function(){e.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:f},(function(){e.props.onEntering(i,a),e.onTransitionEnd(l,(function(){e.safeSetState({status:d},(function(){e.props.onEntered(i,a)}))}))})))},v.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:s().findDOMNode(this);e&&!u?(this.props.onExit(r),this.safeSetState({status:h},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:p},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){t.props.onExited(r)}))},v.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},v.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},v.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},v.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:s().findDOMNode(this),r=null==t&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},v.render=function(){var t=this.state.status;if(t===l)return null;var r=this.props,o=r.children,i=(r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef,(0,n.A)(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e().createElement(c.Provider,{value:null},"function"==typeof o?o(t,i):e().cloneElement(e().Children.only(o),i))},a}(e().Component);function m(){}v.contextType=c,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},v.UNMOUNTED=l,v.EXITED=p,v.ENTERING=f,v.ENTERED=d,v.EXITING=h;const b=v;function x(t,e){var n=t.timeout,r=t.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[e.mode]||0,delay:o.transitionDelay}}function y(t){if(!t)return 0;var e=t/36;return Math.round(10*(4+15*Math.pow(e,.25)+e/5))}var E=o(14552);o(69414);function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){S(t,e,n[e])}))}return t}function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const w=function(n){var r=n.className,o=n.style,i=n.in,a=n.collapsedHeight,s=void 0===a?"0px":a,u=n.timeout,c=void 0===u?"auto":u,l=n.unmountOnExit,p=n.children,f=(0,t.useRef)(null),d=(0,t.useRef)(null),h=(0,t.useRef)(null),v=(0,t.useRef)(null),m="number"==typeof s?"".concat(s,"px"):s,g=C((0,t.useState)(!1),2),S=g[0],w=g[1];(0,t.useEffect)((function(){return function(){clearTimeout(f.current)}}),[]),(0,t.useEffect)((function(){w(i)}),[i]);var j=function(t){var e="".concat(E.n,"-collapse-box");return r&&(e+=" ".concat(r)),"entered"===t&&(e+=" ".concat(E.n,"-collapse-box-entered")),"exited"!==t||S||"0px"!==m||(e+=" ".concat(E.n,"-collapse-box-hidden")),e};return e().createElement(b,{in:S,unmountOnExit:l,onEnter:function(t){t.style.height=m},onEntered:function(t){t.style.height="auto"},onEntering:function(t){var e=h.current?h.current.clientHeight:0,n=x({style:o,timeout:c},{mode:"enter"}).duration;if("auto"===c){var r=y(e);t.style.transitionDuration="".concat(r,"ms"),v.current=r}else t.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");t.style.height="".concat(e,"px")},onExit:function(t){var e=h.current?h.current.clientHeight:0;t.style.height="".concat(e,"px")},onExiting:function(t){var e=h.current?h.current.clientHeight:0,n=x({style:o,timeout:c},{mode:"exit"}).duration;if("auto"===c){var r=y(e);t.style.transitionDuration="".concat(r,"ms"),v.current=r}else t.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");t.style.height=m},timeout:"auto"===c?void 0:c,addEndListener:function(t,e){f.current=setTimeout(e,v.current||0)}},(function(t,n){return e().createElement("div",O({className:j(t),style:O({minHeight:m},o),ref:d},n),e().createElement("div",{className:"collapse-box-wrapper",ref:h},e().createElement("div",{className:"collapse-box-wrapper-inner"},p)))}))}})(),i})()));
|