@para-ui/core 2.1.29 → 2.1.32
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/AutoBox/index.d.ts +3 -0
- package/AutoBox/index.js +1 -1
- package/Button/SplitButton.d.ts +17 -3
- package/Button/index.js +3 -3
- package/Button/lang/en_US.d.ts +4 -0
- package/Button/lang/index.d.ts +9 -0
- package/Button/lang/zh_CN.d.ts +4 -0
- package/ButtonGroup/index.js +9 -9
- package/Checkbox/index.js +1 -1
- package/CheckboxGroup/index.js +1 -1
- package/ComboSelect/index.js +2 -2
- package/DatePicker/index.js +3 -3
- package/Drawer/index.js +8 -8
- package/Form/index.js +2 -2
- package/FormItem/index.js +2 -2
- package/FunctionModal/index.js +3 -3
- package/Help/index.js +1 -1
- package/InputLang/index.js +19 -19
- package/InputNumber/index.js +1 -1
- package/Label/index.js +1 -1
- package/Menu/index.js +1 -1
- package/Modal/index.js +19 -19
- package/MultiBox/index.js +2 -2
- package/OperateBtn/index.js +11 -11
- package/PageHeader/index.js +3 -3
- package/Pagination/index.js +2 -2
- package/PopConfirm/index.js +2 -2
- package/README.md +23 -0
- package/Radio/index.js +1 -1
- package/RadioGroup/index.js +1 -1
- package/Search/index.d.ts +2 -0
- package/Search/index.js +2 -2
- package/Select/index.d.ts +2 -0
- package/Select/index.js +2 -2
- package/SelectInput/index.js +2 -2
- package/SingleBox/index.js +2 -2
- package/Switch/index.js +1 -1
- package/Table/index.js +2 -2
- package/Table/interface.d.ts +1 -1
- package/Table/util.d.ts +1 -1
- package/Tabs/index.js +2 -2
- package/TextField/index.d.ts +2 -0
- package/TextField/index.js +2 -2
- package/TimePicker/index.js +3 -3
- package/ToggleButton/index.js +3 -3
- package/Transfer/index.js +22 -22
- package/Tree/index.js +1 -1
- package/Upload/index.js +2 -2
- package/cdn/AutoBox/index.js +1 -1
- package/cdn/Button/index.js +4 -4
- package/cdn/ButtonGroup/index.js +6 -6
- package/cdn/Checkbox/index.js +4 -4
- package/cdn/CheckboxGroup/index.js +1 -1
- package/cdn/ComboSelect/index.js +2 -2
- package/cdn/DatePicker/index.js +2 -2
- package/cdn/Drawer/index.js +2 -2
- package/cdn/Form/index.js +5 -5
- package/cdn/FormItem/index.js +35 -35
- package/cdn/FunctionModal/index.js +3 -3
- package/cdn/Help/index.js +1 -1
- package/cdn/InputLang/index.js +2 -2
- package/cdn/InputNumber/index.js +1 -1
- package/cdn/Label/index.js +1 -1
- package/cdn/Menu/index.js +1 -1
- package/cdn/Modal/index.js +4 -4
- package/cdn/MultiBox/index.js +2 -2
- package/cdn/OperateBtn/index.js +4 -4
- package/cdn/PageHeader/index.js +4 -4
- package/cdn/Pagination/index.js +2 -2
- package/cdn/PopConfirm/index.js +2 -2
- package/cdn/Radio/index.js +1 -1
- package/cdn/RadioGroup/index.js +1 -1
- package/cdn/Search/index.js +19 -19
- package/cdn/Select/index.js +2 -2
- package/cdn/SelectInput/index.js +2 -2
- package/cdn/SingleBox/index.js +2 -2
- package/cdn/Switch/index.js +1 -1
- package/cdn/Table/index.js +2 -2
- package/cdn/Tabs/index.js +5 -5
- package/cdn/TextField/index.js +2 -2
- package/cdn/TimePicker/index.js +5 -5
- package/cdn/ToggleButton/index.js +4 -4
- package/cdn/Transfer/index.js +2 -2
- package/cdn/Tree/index.js +1 -1
- package/cdn/Upload/index.js +2 -2
- package/index.js +3 -3
- package/package.json +2 -2
- package/style.css +4 -4
package/cdn/AutoBox/index.js
CHANGED
|
@@ -26,4 +26,4 @@ object-assign
|
|
|
26
26
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
27
27
|
* @website https://github.com/cssinjs/jss
|
|
28
28
|
* @license MIT
|
|
29
|
-
*/ye()},96630:function(e,t,n){"use strict";var r=n(63366),i=n(94578),o=n(8156),a=n.n(o),s=n(47111),u=n.n(s),c=n(6035),l=n(220),f="unmounted",d="exited",p="entering",h="entered",v="exiting",y=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=d,r.appearStatus=p):i=h:i=t.unmountOnExit||t.mountOnEnter?f:d,r.state={status:i},r.nextCallback=null,r}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==h&&(t=p):n!==p&&n!==h||(t=v)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===p?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===d&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[u().findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||c.Z.disabled?this.safeSetState({status:h},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:p},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u().findDOMNode(this);t&&!c.Z.disabled?(this.props.onExit(r),this.safeSetState({status:v},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(l.Z.Provider,{value:null},"function"==typeof n?n(e,i):a().cloneElement(a().Children.only(n),i))},t}(a().Component);function m(){}y.contextType=l.Z,y.propTypes={},y.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},y.UNMOUNTED=f,y.EXITED=d,y.ENTERING=p,y.ENTERED=h,y.EXITING=v,t.ZP=y},220:function(e,t,n){"use strict";var r=n(8156),i=n.n(r);t.Z=i().createContext(null)},6035:function(e,t){"use strict";t.Z={disabled:!1}},43753:function(e,t,n){var r=n(93379),i=n(7388);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},24895:function(e,t,n){var r=n(93379),i=n(95845);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},93379:function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],u=t.base?o[0]+t.base:o[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var f=s(l),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:l,updater:y(d,t),references:1}),r.push(l)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.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(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function p(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function y(e,t){var n,r,i;if(t.singleton){var o=v++;n=h||(h=c(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=c(t),r=p.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=u(e,t),c=0;c<n.length;c++){var l=s(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=o}}}},36413:function(e,t,n){"use strict";n.d(t,{default:function(){return H}});var r=n(8156),i=n.n(r),o=n(87462),a=n(45987),s=n(47111),u=n(79437),c=n(86010),l=n(30626),f=n(80713),d=n(82568),p=n(52543),h=n(159),v=n(93869),y=n(76234),m=n(17294),g=n(55192),b=n(92781),x=n(15671),Z=n(43144),w=n(89062);function S(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function k(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function E(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat((0,w.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&S(e,i)}))}function O(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function R(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,l.Z)(e);return t.body===e?(0,f.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(k(o)+a,"px"),n=(0,l.Z)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(k(e)+a,"px")}))}var s=o.parentElement,u="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var C=function(){function e(){(0,x.Z)(this,e),this.modals=[],this.containers=[]}return(0,Z.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&S(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);E(t,e.mountNode,e.modalRef,r,!0);var i=O(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=O(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=R(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=O(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&S(e.modalRef,!0),E(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&S(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var P=function(e){var t=e.children,n=e.disableAutoFocus,i=void 0!==n&&n,o=e.disableEnforceFocus,a=void 0!==o&&o,u=e.disableRestoreFocus,c=void 0!==u&&u,f=e.getDoc,d=e.isEnabled,p=e.open,h=r.useRef(),v=r.useRef(null),y=r.useRef(null),g=r.useRef(),b=r.useRef(null),x=r.useCallback((function(e){b.current=s.findDOMNode(e)}),[]),Z=(0,m.Z)(t.ref,x),w=r.useRef();return r.useEffect((function(){w.current=p}),[p]),!w.current&&p&&"undefined"!=typeof window&&(g.current=f().activeElement),r.useEffect((function(){if(p){var e=(0,l.Z)(b.current);i||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!a&&d()&&!h.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():h.current=!1)},n=function(t){!a&&d()&&9===t.keyCode&&e.activeElement===b.current&&(h.current=!0,t.shiftKey?y.current.focus():v.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),c||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[i,a,c,d,p]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:Z}),r.createElement("div",{tabIndex:0,ref:y,"data-test":"sentinelEnd"}))},j={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},A=r.forwardRef((function(e,t){var n=e.invisible,i=void 0!==n&&n,s=e.open,u=(0,a.Z)(e,["invisible","open"]);return s?r.createElement("div",(0,o.Z)({"aria-hidden":!0,ref:t},u,{style:(0,o.Z)({},j.root,i?j.invisible:{},u.style)})):null}));var M=new C,T=r.forwardRef((function(e,t){var n=(0,h.Z)(),i=(0,v.Z)({name:"MuiModal",props:(0,o.Z)({},e),theme:n}),u=i.BackdropComponent,c=void 0===u?A:u,f=i.BackdropProps,p=i.children,x=i.closeAfterTransition,Z=void 0!==x&&x,w=i.container,k=i.disableAutoFocus,E=void 0!==k&&k,O=i.disableBackdropClick,R=void 0!==O&&O,C=i.disableEnforceFocus,j=void 0!==C&&C,T=i.disableEscapeKeyDown,N=void 0!==T&&T,I=i.disablePortal,z=void 0!==I&&I,_=i.disableRestoreFocus,L=void 0!==_&&_,F=i.disableScrollLock,$=void 0!==F&&F,D=i.hideBackdrop,B=void 0!==D&&D,U=i.keepMounted,W=void 0!==U&&U,H=i.manager,q=void 0===H?M:H,V=i.onBackdropClick,G=i.onClose,J=i.onEscapeKeyDown,K=i.onRendered,X=i.open,Y=(0,a.Z)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=r.useState(!0),ee=Q[0],te=Q[1],ne=r.useRef({}),re=r.useRef(null),ie=r.useRef(null),oe=(0,m.Z)(ie,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),se=function(){return(0,l.Z)(re.current)},ue=function(){return ne.current.modalRef=ie.current,ne.current.mountNode=re.current,ne.current},ce=function(){q.mount(ue(),{disableScrollLock:$}),ie.current.scrollTop=0},le=(0,g.Z)((function(){var e=function(e){return e="function"==typeof e?e():e,s.findDOMNode(e)}(w)||se().body;q.add(ue(),e),ie.current&&ce()})),fe=r.useCallback((function(){return q.isTopModal(ue())}),[q]),de=(0,g.Z)((function(e){re.current=e,e&&(K&&K(),X&&fe()?ce():S(ie.current,!0))})),pe=r.useCallback((function(){q.remove(ue())}),[q]);if(r.useEffect((function(){return function(){pe()}}),[pe]),r.useEffect((function(){X?le():ae&&Z||pe()}),[X,pe,ae,Z,le]),!W&&!X&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:b.Z}),ve={};return void 0===p.props.tabIndex&&(ve.tabIndex=p.props.tabIndex||"-1"),ae&&(ve.onEnter=(0,d.Z)((function(){te(!1)}),p.props.onEnter),ve.onExited=(0,d.Z)((function(){te(!0),Z&&pe()}),p.props.onExited)),r.createElement(y.Z,{ref:de,container:w,disablePortal:z},r.createElement("div",(0,o.Z)({ref:oe,onKeyDown:function(e){"Escape"===e.key&&fe()&&(J&&J(e),N||(e.stopPropagation(),G&&G(e,"escapeKeyDown")))},role:"presentation"},Y,{style:(0,o.Z)({},he.root,!X&&ee?he.hidden:{},Y.style)}),B?null:r.createElement(c,(0,o.Z)({open:X,onClick:function(e){e.target===e.currentTarget&&(V&&V(e),!R&&G&&G(e,"backdropClick"))}},f)),r.createElement(P,{disableEnforceFocus:j,disableAutoFocus:E,disableRestoreFocus:L,getDoc:se,isEnabled:fe,open:X},r.cloneElement(p,ve))))})),N=n(20170),I=r.forwardRef((function(e,t){var n=e.classes,i=e.className,s=e.component,u=void 0===s?"div":s,l=e.square,f=void 0!==l&&l,d=e.elevation,p=void 0===d?1:d,h=e.variant,v=void 0===h?"elevation":h,y=(0,a.Z)(e,["classes","className","component","square","elevation","variant"]);return r.createElement(u,(0,o.Z)({className:(0,c.Z)(n.root,i,"outlined"===v?n.outlined:n["elevation".concat(p)],!f&&n.rounded),ref:t},y))})),z=(0,p.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,o.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(I);function _(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function L(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function F(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function $(e){return"function"==typeof e?e():e}var D=r.forwardRef((function(e,t){var n=e.action,i=e.anchorEl,p=e.anchorOrigin,h=void 0===p?{vertical:"top",horizontal:"left"}:p,v=e.anchorPosition,y=e.anchorReference,m=void 0===y?"anchorEl":y,g=e.children,b=e.classes,x=e.className,Z=e.container,w=e.elevation,S=void 0===w?8:w,k=e.getContentAnchorEl,E=e.marginThreshold,O=void 0===E?16:E,R=e.onEnter,C=e.onEntered,P=e.onEntering,j=e.onExit,A=e.onExited,M=e.onExiting,I=e.open,D=e.PaperProps,B=void 0===D?{}:D,U=e.transformOrigin,W=void 0===U?{vertical:"top",horizontal:"left"}:U,H=e.TransitionComponent,q=void 0===H?N.Z:H,V=e.transitionDuration,G=void 0===V?"auto":V,J=e.TransitionProps,K=void 0===J?{}:J,X=(0,a.Z)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),Y=r.useRef(),Q=r.useCallback((function(e){if("anchorPosition"===m)return v;var t=$(i),n=(t&&1===t.nodeType?t:(0,l.Z)(Y.current).body).getBoundingClientRect(),r=0===e?h.vertical:"center";return{top:n.top+_(n,r),left:n.left+L(n,h.horizontal)}}),[i,h.horizontal,h.vertical,v,m]),ee=r.useCallback((function(e){var t=0;if(k&&"anchorEl"===m){var n=k(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[h.vertical,m,k]),te=r.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:_(e,W.vertical)+t,horizontal:L(e,W.horizontal)}}),[W.horizontal,W.vertical]),ne=r.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===m)return{top:null,left:null,transformOrigin:F(r)};var o=Q(t),a=o.top-r.vertical,s=o.left-r.horizontal,u=a+n.height,c=s+n.width,l=(0,f.Z)($(i)),d=l.innerHeight-O,p=l.innerWidth-O;if(a<O){var h=a-O;a-=h,r.vertical+=h}else if(u>d){var v=u-d;a-=v,r.vertical+=v}if(s<O){var y=s-O;s-=y,r.horizontal+=y}else if(c>p){var g=c-p;s-=g,r.horizontal+=g}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:F(r)}}),[i,m,Q,ee,te,O]),re=r.useCallback((function(){var e=Y.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),ie=r.useCallback((function(e){Y.current=s.findDOMNode(e)}),[]);r.useEffect((function(){I&&re()})),r.useImperativeHandle(n,(function(){return I?{updatePosition:function(){re()}}:null}),[I,re]),r.useEffect((function(){if(I){var e=(0,u.Z)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[I,re]);var oe=G;"auto"!==G||q.muiSupportAuto||(oe=void 0);var ae=Z||(i?(0,l.Z)($(i)).body:void 0);return r.createElement(T,(0,o.Z)({container:ae,open:I,ref:t,BackdropProps:{invisible:!0},className:(0,c.Z)(b.root,x)},X),r.createElement(q,(0,o.Z)({appear:!0,in:I,onEnter:R,onEntered:C,onExit:j,onExited:A,onExiting:M,timeout:oe},K,{onEntering:(0,d.Z)((function(e,t){P&&P(e,t),re()}),K.onEntering)}),r.createElement(z,(0,o.Z)({elevation:S,ref:ie},B,{className:(0,c.Z)(b.paper,B.className)}),g)))})),B=(0,p.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(D);n(24895);function U(){return U=Object.assign||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},U.apply(this,arguments)}function W(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var H=function(e){var t,n=e.className,r=e.children,o=e.classes,a=W(e,["className","children","classes"]);return i().createElement(B,U({className:(t="paraui-popover",n&&(t+=" "+n),t),classes:{paper:o?"paraui-popover-paper ".concat(o):"paraui-popover-paper"}},a),r)}},58543:function(e){"use strict";e.exports=n},8156:function(t){"use strict";t.exports=e},47111:function(e){"use strict";e.exports=t},30907:function(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,{Z:function(){return r}})},83878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},45057:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30907);function i(e){if(Array.isArray(e))return(0,r.Z)(e)}},97326:function(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,{Z:function(){return r}})},15671:function(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,{Z:function(){return r}})},43144:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return i}})},4942:function(e,t,n){"use strict";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}n.d(t,{Z:function(){return r}})},87462:function(e,t,n){"use strict";function r(){return r=Object.assign||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,{Z:function(){return r}})},94578:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},59199:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},31902:function(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}n.d(t,{Z:function(){return r}})},25267:function(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,{Z:function(){return r}})},42786:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},45987:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63366);function i(e,t){if(null==e)return{};var n,i,o=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},89611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},93324:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(83878),i=n(31902),o=n(40181),a=n(25267);function s(e,t){return(0,r.Z)(e)||(0,i.Z)(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},89062:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(45057),i=n(59199),o=n(40181),a=n(42786);function s(e){return(0,r.Z)(e)||(0,i.Z)(e)||(0,o.Z)(e)||(0,a.Z)()}},71002:function(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,{Z:function(){return r}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30907);function i(e,t){if(e){if("string"==typeof e)return(0,r.Z)(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.Z)(e,t):void 0}}}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return r[e](n,n.exports,o),n.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";o.r(a),o.d(a,{AutoBox:function(){return l}});var e=o(8156),t=o.n(e),n=o(36413),r=o(12950),i=o.n(r),s=o(58543);o(43753);function u(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 c(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(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 u(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 l=function(r){var o=r.className,a=r.list,u=void 0===a?[]:a,l=r.popoverClassName,f=r.moreCustomize,d=r.anchorEl,p=r.hideMore,h=void 0!==p&&p,v=r.onCloseMore,y=r.onShowMore,m=r.style,g=c((0,e.useState)("auto-box-"+(0,s.UUID)()),1)[0],b=c((0,e.useState)(null),2),x=b[0],Z=b[1],w=c((0,e.useState)(!1),2),S=w[0],k=w[1],E=c((0,e.useState)(null),2),O=E[0],R=E[1],C=c((0,e.useState)({}),1)[0],P=(0,e.useRef)();(0,e.useEffect)((function(){void 0!==r.openMore&&k(r.openMore)}),[r.openMore]),(0,e.useEffect)((function(){d&&R(d)}),[d]),(0,e.useEffect)((function(){return N(),window.addEventListener("resize",N),function(){window.removeEventListener("resize",N),clearTimeout(C.timer)}}),[u]),(0,e.useEffect)((function(){null!==x&&u.length>x?y&&y(!0):y&&y(!1)}),[u,x,y]);var j,A=function(){k(!1),v&&v()},M=function(e){k(!0),R(P.current)},T=function(e){if(null!==e&&0!==e){void 0===e&&(e=u.length);var t=document.querySelector("."+g);if(t)if(t.scrollWidth>t.clientWidth){var n=Number(e)-1;Z(n),T(n)}else u.length<=e&&A()}},N=function(){clearTimeout(C.timer),A(),C.timer=setTimeout((function(){Z(u.length),T()}),100)},I=(0,e.useMemo)((function(){return S&&t().createElement(n.default,{open:S,anchorEl:O,onClose:A,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:(r="auto-box-popover paraui-auto-box-popover",l&&(r+=" "+l),r)},t().createElement("div",{className:"auto-box-popover-content"},u&&u.map((function(n,r){return null!==x&&x>r?null:t().createElement(e.Fragment,{key:r},n)}))));var r}),[S,O,u,x,l]);return t().createElement("div",{className:(j="auto-box paraui-auto-box",g&&(j+=" "+g),o&&(j+=" "+o),j),style:m},u.map((function(n,r){return null!==x&&x<=r?null:t().createElement(e.Fragment,{key:r},n)})),function(){if(null!==x&&u.length>x&&!h)return t().createElement("div",{className:"auto-box-more",ref:P,onClick:M},f||t().createElement(i(),null))}(),I)};a.default=l}(),a}()}));
|
|
29
|
+
*/ye()},96630:function(e,t,n){"use strict";var r=n(63366),i=n(94578),o=n(8156),a=n.n(o),s=n(47111),u=n.n(s),c=n(6035),l=n(220),f="unmounted",d="exited",p="entering",h="entered",v="exiting",y=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=d,r.appearStatus=p):i=h:i=t.unmountOnExit||t.mountOnEnter?f:d,r.state={status:i},r.nextCallback=null,r}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==h&&(t=p):n!==p&&n!==h||(t=v)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===p?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===d&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[u().findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||c.Z.disabled?this.safeSetState({status:h},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:p},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u().findDOMNode(this);t&&!c.Z.disabled?(this.props.onExit(r),this.safeSetState({status:v},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(l.Z.Provider,{value:null},"function"==typeof n?n(e,i):a().cloneElement(a().Children.only(n),i))},t}(a().Component);function m(){}y.contextType=l.Z,y.propTypes={},y.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},y.UNMOUNTED=f,y.EXITED=d,y.ENTERING=p,y.ENTERED=h,y.EXITING=v,t.ZP=y},220:function(e,t,n){"use strict";var r=n(8156),i=n.n(r);t.Z=i().createContext(null)},6035:function(e,t){"use strict";t.Z={disabled:!1}},43753:function(e,t,n){var r=n(93379),i=n(7388);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},24895:function(e,t,n){var r=n(93379),i=n(95845);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},93379:function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],u=t.base?o[0]+t.base:o[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var f=s(l),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:l,updater:y(d,t),references:1}),r.push(l)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.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(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function p(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function y(e,t){var n,r,i;if(t.singleton){var o=v++;n=h||(h=c(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=c(t),r=p.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=u(e,t),c=0;c<n.length;c++){var l=s(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=o}}}},36413:function(e,t,n){"use strict";n.d(t,{default:function(){return H}});var r=n(8156),i=n.n(r),o=n(87462),a=n(45987),s=n(47111),u=n(79437),c=n(86010),l=n(30626),f=n(80713),d=n(82568),p=n(52543),h=n(159),v=n(93869),y=n(76234),m=n(17294),g=n(55192),b=n(92781),x=n(15671),Z=n(43144),w=n(89062);function S(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function k(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function E(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat((0,w.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&S(e,i)}))}function O(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function R(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,l.Z)(e);return t.body===e?(0,f.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(k(o)+a,"px"),n=(0,l.Z)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(k(e)+a,"px")}))}var s=o.parentElement,u="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var C=function(){function e(){(0,x.Z)(this,e),this.modals=[],this.containers=[]}return(0,Z.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&S(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);E(t,e.mountNode,e.modalRef,r,!0);var i=O(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=O(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=R(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=O(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&S(e.modalRef,!0),E(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&S(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var P=function(e){var t=e.children,n=e.disableAutoFocus,i=void 0!==n&&n,o=e.disableEnforceFocus,a=void 0!==o&&o,u=e.disableRestoreFocus,c=void 0!==u&&u,f=e.getDoc,d=e.isEnabled,p=e.open,h=r.useRef(),v=r.useRef(null),y=r.useRef(null),g=r.useRef(),b=r.useRef(null),x=r.useCallback((function(e){b.current=s.findDOMNode(e)}),[]),Z=(0,m.Z)(t.ref,x),w=r.useRef();return r.useEffect((function(){w.current=p}),[p]),!w.current&&p&&"undefined"!=typeof window&&(g.current=f().activeElement),r.useEffect((function(){if(p){var e=(0,l.Z)(b.current);i||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!a&&d()&&!h.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():h.current=!1)},n=function(t){!a&&d()&&9===t.keyCode&&e.activeElement===b.current&&(h.current=!0,t.shiftKey?y.current.focus():v.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),c||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[i,a,c,d,p]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:Z}),r.createElement("div",{tabIndex:0,ref:y,"data-test":"sentinelEnd"}))},j={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},A=r.forwardRef((function(e,t){var n=e.invisible,i=void 0!==n&&n,s=e.open,u=(0,a.Z)(e,["invisible","open"]);return s?r.createElement("div",(0,o.Z)({"aria-hidden":!0,ref:t},u,{style:(0,o.Z)({},j.root,i?j.invisible:{},u.style)})):null}));var M=new C,T=r.forwardRef((function(e,t){var n=(0,h.Z)(),i=(0,v.Z)({name:"MuiModal",props:(0,o.Z)({},e),theme:n}),u=i.BackdropComponent,c=void 0===u?A:u,f=i.BackdropProps,p=i.children,x=i.closeAfterTransition,Z=void 0!==x&&x,w=i.container,k=i.disableAutoFocus,E=void 0!==k&&k,O=i.disableBackdropClick,R=void 0!==O&&O,C=i.disableEnforceFocus,j=void 0!==C&&C,T=i.disableEscapeKeyDown,N=void 0!==T&&T,I=i.disablePortal,z=void 0!==I&&I,_=i.disableRestoreFocus,L=void 0!==_&&_,F=i.disableScrollLock,$=void 0!==F&&F,D=i.hideBackdrop,B=void 0!==D&&D,U=i.keepMounted,W=void 0!==U&&U,H=i.manager,q=void 0===H?M:H,V=i.onBackdropClick,G=i.onClose,J=i.onEscapeKeyDown,K=i.onRendered,X=i.open,Y=(0,a.Z)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=r.useState(!0),ee=Q[0],te=Q[1],ne=r.useRef({}),re=r.useRef(null),ie=r.useRef(null),oe=(0,m.Z)(ie,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),se=function(){return(0,l.Z)(re.current)},ue=function(){return ne.current.modalRef=ie.current,ne.current.mountNode=re.current,ne.current},ce=function(){q.mount(ue(),{disableScrollLock:$}),ie.current.scrollTop=0},le=(0,g.Z)((function(){var e=function(e){return e="function"==typeof e?e():e,s.findDOMNode(e)}(w)||se().body;q.add(ue(),e),ie.current&&ce()})),fe=r.useCallback((function(){return q.isTopModal(ue())}),[q]),de=(0,g.Z)((function(e){re.current=e,e&&(K&&K(),X&&fe()?ce():S(ie.current,!0))})),pe=r.useCallback((function(){q.remove(ue())}),[q]);if(r.useEffect((function(){return function(){pe()}}),[pe]),r.useEffect((function(){X?le():ae&&Z||pe()}),[X,pe,ae,Z,le]),!W&&!X&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:b.Z}),ve={};return void 0===p.props.tabIndex&&(ve.tabIndex=p.props.tabIndex||"-1"),ae&&(ve.onEnter=(0,d.Z)((function(){te(!1)}),p.props.onEnter),ve.onExited=(0,d.Z)((function(){te(!0),Z&&pe()}),p.props.onExited)),r.createElement(y.Z,{ref:de,container:w,disablePortal:z},r.createElement("div",(0,o.Z)({ref:oe,onKeyDown:function(e){"Escape"===e.key&&fe()&&(J&&J(e),N||(e.stopPropagation(),G&&G(e,"escapeKeyDown")))},role:"presentation"},Y,{style:(0,o.Z)({},he.root,!X&&ee?he.hidden:{},Y.style)}),B?null:r.createElement(c,(0,o.Z)({open:X,onClick:function(e){e.target===e.currentTarget&&(V&&V(e),!R&&G&&G(e,"backdropClick"))}},f)),r.createElement(P,{disableEnforceFocus:j,disableAutoFocus:E,disableRestoreFocus:L,getDoc:se,isEnabled:fe,open:X},r.cloneElement(p,ve))))})),N=n(20170),I=r.forwardRef((function(e,t){var n=e.classes,i=e.className,s=e.component,u=void 0===s?"div":s,l=e.square,f=void 0!==l&&l,d=e.elevation,p=void 0===d?1:d,h=e.variant,v=void 0===h?"elevation":h,y=(0,a.Z)(e,["classes","className","component","square","elevation","variant"]);return r.createElement(u,(0,o.Z)({className:(0,c.Z)(n.root,i,"outlined"===v?n.outlined:n["elevation".concat(p)],!f&&n.rounded),ref:t},y))})),z=(0,p.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,o.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(I);function _(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function L(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function F(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function $(e){return"function"==typeof e?e():e}var D=r.forwardRef((function(e,t){var n=e.action,i=e.anchorEl,p=e.anchorOrigin,h=void 0===p?{vertical:"top",horizontal:"left"}:p,v=e.anchorPosition,y=e.anchorReference,m=void 0===y?"anchorEl":y,g=e.children,b=e.classes,x=e.className,Z=e.container,w=e.elevation,S=void 0===w?8:w,k=e.getContentAnchorEl,E=e.marginThreshold,O=void 0===E?16:E,R=e.onEnter,C=e.onEntered,P=e.onEntering,j=e.onExit,A=e.onExited,M=e.onExiting,I=e.open,D=e.PaperProps,B=void 0===D?{}:D,U=e.transformOrigin,W=void 0===U?{vertical:"top",horizontal:"left"}:U,H=e.TransitionComponent,q=void 0===H?N.Z:H,V=e.transitionDuration,G=void 0===V?"auto":V,J=e.TransitionProps,K=void 0===J?{}:J,X=(0,a.Z)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),Y=r.useRef(),Q=r.useCallback((function(e){if("anchorPosition"===m)return v;var t=$(i),n=(t&&1===t.nodeType?t:(0,l.Z)(Y.current).body).getBoundingClientRect(),r=0===e?h.vertical:"center";return{top:n.top+_(n,r),left:n.left+L(n,h.horizontal)}}),[i,h.horizontal,h.vertical,v,m]),ee=r.useCallback((function(e){var t=0;if(k&&"anchorEl"===m){var n=k(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[h.vertical,m,k]),te=r.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:_(e,W.vertical)+t,horizontal:L(e,W.horizontal)}}),[W.horizontal,W.vertical]),ne=r.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===m)return{top:null,left:null,transformOrigin:F(r)};var o=Q(t),a=o.top-r.vertical,s=o.left-r.horizontal,u=a+n.height,c=s+n.width,l=(0,f.Z)($(i)),d=l.innerHeight-O,p=l.innerWidth-O;if(a<O){var h=a-O;a-=h,r.vertical+=h}else if(u>d){var v=u-d;a-=v,r.vertical+=v}if(s<O){var y=s-O;s-=y,r.horizontal+=y}else if(c>p){var g=c-p;s-=g,r.horizontal+=g}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:F(r)}}),[i,m,Q,ee,te,O]),re=r.useCallback((function(){var e=Y.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),ie=r.useCallback((function(e){Y.current=s.findDOMNode(e)}),[]);r.useEffect((function(){I&&re()})),r.useImperativeHandle(n,(function(){return I?{updatePosition:function(){re()}}:null}),[I,re]),r.useEffect((function(){if(I){var e=(0,u.Z)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[I,re]);var oe=G;"auto"!==G||q.muiSupportAuto||(oe=void 0);var ae=Z||(i?(0,l.Z)($(i)).body:void 0);return r.createElement(T,(0,o.Z)({container:ae,open:I,ref:t,BackdropProps:{invisible:!0},className:(0,c.Z)(b.root,x)},X),r.createElement(q,(0,o.Z)({appear:!0,in:I,onEnter:R,onEntered:C,onExit:j,onExited:A,onExiting:M,timeout:oe},K,{onEntering:(0,d.Z)((function(e,t){P&&P(e,t),re()}),K.onEntering)}),r.createElement(z,(0,o.Z)({elevation:S,ref:ie},B,{className:(0,c.Z)(b.paper,B.className)}),g)))})),B=(0,p.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(D);n(24895);function U(){return U=Object.assign||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},U.apply(this,arguments)}function W(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var H=function(e){var t,n=e.className,r=e.children,o=e.classes,a=W(e,["className","children","classes"]);return i().createElement(B,U({className:(t="paraui-popover",n&&(t+=" "+n),t),classes:{paper:o?"paraui-popover-paper ".concat(o):"paraui-popover-paper"}},a),r)}},58543:function(e){"use strict";e.exports=n},8156:function(t){"use strict";t.exports=e},47111:function(e){"use strict";e.exports=t},30907:function(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,{Z:function(){return r}})},83878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},45057:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30907);function i(e){if(Array.isArray(e))return(0,r.Z)(e)}},97326:function(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,{Z:function(){return r}})},15671:function(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,{Z:function(){return r}})},43144:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return i}})},4942:function(e,t,n){"use strict";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}n.d(t,{Z:function(){return r}})},87462:function(e,t,n){"use strict";function r(){return r=Object.assign||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,{Z:function(){return r}})},94578:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},59199:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},31902:function(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}n.d(t,{Z:function(){return r}})},25267:function(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,{Z:function(){return r}})},42786:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},45987:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63366);function i(e,t){if(null==e)return{};var n,i,o=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},89611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},93324:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(83878),i=n(31902),o=n(40181),a=n(25267);function s(e,t){return(0,r.Z)(e)||(0,i.Z)(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},89062:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(45057),i=n(59199),o=n(40181),a=n(42786);function s(e){return(0,r.Z)(e)||(0,i.Z)(e)||(0,o.Z)(e)||(0,a.Z)()}},71002:function(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,{Z:function(){return r}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30907);function i(e,t){if(e){if("string"==typeof e)return(0,r.Z)(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.Z)(e,t):void 0}}}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return r[e](n,n.exports,o),n.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";o.r(a),o.d(a,{AutoBox:function(){return l}});var e=o(8156),t=o.n(e),n=o(36413),r=o(12950),i=o.n(r),s=o(58543);o(43753);function u(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 c(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(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 u(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 l=function(r){var o=r.className,a=r.list,u=void 0===a?[]:a,l=r.popoverClassName,f=r.moreCustomize,d=r.anchorEl,p=r.hideMore,h=void 0!==p&&p,v=r.showNum,y=r.onCloseMore,m=r.onShowMore,g=r.style,b=c((0,e.useState)("auto-box-"+(0,s.UUID)()),1)[0],x=c((0,e.useState)(null),2),Z=x[0],w=x[1],S=c((0,e.useState)(!1),2),k=S[0],E=S[1],O=c((0,e.useState)(null),2),R=O[0],C=O[1],P=c((0,e.useState)({}),1)[0],j=(0,e.useRef)();(0,e.useEffect)((function(){void 0!==r.openMore&&E(r.openMore)}),[r.openMore]),(0,e.useEffect)((function(){d&&C(d)}),[d]),(0,e.useEffect)((function(){if(void 0===r.showNum)return I(),window.addEventListener("resize",I),function(){window.removeEventListener("resize",I),clearTimeout(P.timer)}}),[u]),(0,e.useEffect)((function(){void 0!==v&&(w(v),window.removeEventListener("resize",I))}),[v]),(0,e.useEffect)((function(){null!==Z&&u.length>Z?m&&m(!0):m&&m(!1)}),[u,Z,m]);var A,M=function(){E(!1),y&&y()},T=function(e){E(!0),C(j.current)},N=function(e){if(null!==e&&0!==e){void 0===e&&(e=u.length);var t=document.querySelector("."+b);if(t)if(t.scrollWidth>t.clientWidth){var n=Number(e)-1;w(n),N(n)}else u.length<=e&&M()}},I=function(){clearTimeout(P.timer),M(),P.timer=setTimeout((function(){w(u.length),N()}),100)},z=(0,e.useMemo)((function(){return k&&t().createElement(n.default,{open:k,anchorEl:R,onClose:M,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:(r="auto-box-popover paraui-auto-box-popover",l&&(r+=" "+l),r)},t().createElement("div",{className:"auto-box-popover-content"},u&&u.map((function(n,r){return null!==Z&&Z>r?null:t().createElement(e.Fragment,{key:r},n)}))));var r}),[k,R,u,Z,l]);return t().createElement("div",{className:(A="auto-box paraui-auto-box",b&&(A+=" "+b),o&&(A+=" "+o),A),style:g},u.map((function(n,r){return null!==Z&&Z<=r?null:t().createElement(e.Fragment,{key:r},n)})),function(){if(null!==Z&&u.length>Z&&!h)return t().createElement("div",{className:"auto-box-more",ref:j,onClick:T},f||t().createElement(i(),null))}(),z)};a.default=l}(),a}()}));
|