cortex-react-ui 0.1.40 → 0.1.41

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.
Files changed (2) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/package.json +1 -1
package/lib/cjs/index.js CHANGED
@@ -14,5 +14,5 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */function N(e,t){e&&("function"==typeof e?e(t):e.current=t)}!function(e){"production"!==process.env.NODE_ENV&&function(){var t=i.default,r=y,n=60103,o=60106;e.Fragment=60107;var a=60108,c=60114,s=60109,l=60110,u=60112,f=60113,d=60120,p=60115,v=60116,g=60121,m=60122,h=60117,b=60129,x=60131;if("function"==typeof Symbol&&Symbol.for){var w=Symbol.for;n=w("react.element"),o=w("react.portal"),e.Fragment=w("react.fragment"),a=w("react.strict_mode"),c=w("react.profiler"),s=w("react.provider"),l=w("react.context"),u=w("react.forward_ref"),f=w("react.suspense"),d=w("react.suspense_list"),p=w("react.memo"),v=w("react.lazy"),g=w("react.block"),m=w("react.server.block"),h=w("react.fundamental"),w("react.scope"),w("react.opaque.id"),b=w("react.debug_trace_mode"),w("react.offscreen"),x=w("react.legacy_hidden")}var j="function"==typeof Symbol&&Symbol.iterator;var E=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];O("error",e,r)}function O(e,t,r){var n=E.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}function C(e){return e.displayName||"Context"}function N(t){if(null==t)return null;if("number"==typeof t.tag&&k("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case e.Fragment:return"Fragment";case o:return"Portal";case c:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case d:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case l:return C(t)+".Consumer";case s:return C(t._context)+".Provider";case u:return m=t,h=t.render,y="ForwardRef",b=h.displayName||h.name||"",m.displayName||(""!==b?y+"("+b+")":y);case p:return N(t.type);case g:return N(t._render);case v:var r=t,n=r._payload,i=r._init;try{return N(i(n))}catch(e){return null}}var m,h,y,b;return null}var T,R,_,S,P,L,D,F=0;function A(){}A.__reactDisabledLog=!0;var I,$=E.ReactCurrentDispatcher;function M(e,t,r){if(void 0===I)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);I=n&&n[1]||""}return"\n"+I+e}var B,W=!1,z="function"==typeof WeakMap?WeakMap:Map;function U(e,t){if(!e||W)return"";var n,o=B.get(e);if(void 0!==o)return o;W=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=$.current,$.current=null,function(){if(0===F){T=console.log,R=console.info,_=console.warn,S=console.error,P=console.group,L=console.groupCollapsed,D=console.groupEnd;var e={configurable:!0,enumerable:!0,value:A,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}();try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(c,[])}catch(e){n=e}Reflect.construct(e,[],c)}else{try{c.call()}catch(e){n=e}e.call(c.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,f=l.length-1;u>=1&&f>=0&&s[u]!==l[f];)f--;for(;u>=1&&f>=0;u--,f--)if(s[u]!==l[f]){if(1!==u||1!==f)do{if(u--,--f<0||s[u]!==l[f]){var d="\n"+s[u].replace(" at new "," at ");return"function"==typeof e&&B.set(e,d),d}}while(u>=1&&f>=0);break}}}finally{W=!1,$.current=a,function(){if(0==--F){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:r({},e,{value:T}),info:r({},e,{value:R}),warn:r({},e,{value:_}),error:r({},e,{value:S}),group:r({},e,{value:P}),groupCollapsed:r({},e,{value:L}),groupEnd:r({},e,{value:D})})}F<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",v=p?M(p):"";return"function"==typeof e&&B.set(e,v),v}function Y(e,t,r){return U(e,!1)}function q(e,t,r){if(null==e)return"";if("function"==typeof e)return U(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return M(e);switch(e){case f:return M("Suspense");case d:return M("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return Y(e.render);case p:return q(e.type,t,r);case g:return Y(e._render);case v:var o=e,a=o._payload,i=o._init;try{return q(i(a),t,r)}catch(e){}}return""}B=new z;var H={},X=E.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,r=q(e.type,e._source,t?t.type:null);X.setExtraStackFrame(r)}else X.setExtraStackFrame(null)}var G,J,K,Q=E.ReactCurrentOwner,Z=Object.prototype.hasOwnProperty,ee={key:!0,ref:!0,__self:!0,__source:!0};K={};function te(e,t,r,o,a){var i,c={},s=null,l=null;for(i in void 0!==r&&(s=""+r),function(e){if(Z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(s=""+t.key),function(e){if(Z.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&Q.current&&t&&Q.current.stateNode!==t){var r=N(Q.current.type);K[r]||(k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',N(Q.current.type),e.ref),K[r]=!0)}}(t,a)),t)Z.call(t,i)&&!ee.hasOwnProperty(i)&&(c[i]=t[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===c[i]&&(c[i]=u[i])}if(s||l){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var r=function(){G||(G=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(c,f),l&&function(e,t){var r=function(){J||(J=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(c,f)}return function(e,t,r,o,a,i,c){var s={$$typeof:n,type:e,key:t,ref:r,props:c,_owner:i,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}(e,s,l,a,o,Q.current,c)}var re,ne=E.ReactCurrentOwner,oe=E.ReactDebugCurrentFrame;function ae(e){if(e){var t=e._owner,r=q(e.type,e._source,t?t.type:null);oe.setExtraStackFrame(r)}else oe.setExtraStackFrame(null)}function ie(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function ce(){if(ne.current){var e=N(ne.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}re=!1;var se={};function le(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=ce();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!se[r]){se[r]=!0;var n="";e&&e._owner&&e._owner!==ne.current&&(n=" It was passed a child from "+N(e._owner.type)+"."),ae(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),ae(null)}}}function ue(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];ie(n)&&le(n,t)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=j&&e[j]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ie(a.value)&&le(a.value,t)}}function fe(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==u&&r.$$typeof!==p)return;t=r.propTypes}if(t){var n=N(r);!function(e,t,r,n,o){var a=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(a(e,i)){var c=void 0;try{if("function"!=typeof e[i]){var s=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}c=e[i](t,i,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){c=e}!c||c instanceof Error||(V(o),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,i,typeof c),V(null)),c instanceof Error&&!(c.message in H)&&(H[c.message]=!0,V(o),k("Failed %s type: %s",r,c.message),V(null))}}(t,e.props,"prop",n,e)}else if(void 0!==r.PropTypes&&!re){re=!0,k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",N(r)||"Unknown")}"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function de(t,r,o,i,y,w){var j=function(t){return"string"==typeof t||"function"==typeof t||t===e.Fragment||t===c||t===b||t===a||t===f||t===d||t===x||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===p||t.$$typeof===s||t.$$typeof===l||t.$$typeof===u||t.$$typeof===h||t.$$typeof===g||t[0]===m)}(t);if(!j){var E="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(E+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O,C=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(y);E+=C||ce(),null===t?O="null":Array.isArray(t)?O="array":void 0!==t&&t.$$typeof===n?(O="<"+(N(t.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):O=typeof t,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,E)}var T=te(t,r,o,y,w);if(null==T)return T;if(j){var R=r.children;if(void 0!==R)if(i)if(Array.isArray(R)){for(var _=0;_<R.length;_++)ue(R[_],t);Object.freeze&&Object.freeze(R)}else k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ue(R,t)}return t===e.Fragment?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){ae(e),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),ae(null);break}}null!==e.ref&&(ae(e),k("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}(T):fe(T),T}var pe=function(e,t,r){return de(e,t,r,!1)},ve=function(e,t,r){return de(e,t,r,!0)};e.jsx=pe,e.jsxs=ve}()}(C),"production"===process.env.NODE_ENV?d.exports=p:d.exports=C;var T=i.default.forwardRef((function(e,t){var r=e.children,n=e.container,o=void 0===n?document.body:n,a=i.default.useMemo((function(){return function(e){return"function"==typeof e?e():e}(o)||document.body}),[o]);return i.default.useEffect((function(){if(t&&a)return N(t,a),function(){N(t,null)}}),[t,a]),a?l.default.createPortal(r,a):a}));function R(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=[],n=function(t){var n=e[t];if(!n)return"continue";var o=typeof n;if("string"===o||"number"===o)r.push(n);else if(Array.isArray(n)){if(n.length){var a=R.apply(void 0,n);a&&r.push(a)}}else"object"===o?n.toString===Object.prototype.toString&&Object.keys(n).forEach((function(e){n[e]&&r.push(e)})):r.push(n.toString())},o=0;o<e.length;o+=1)n(o);return r.join(" ")}T.propTypes={children:s.default.node,container:s.default.oneOfType([s.default.instanceOf(HTMLElement),s.default.func])},T.defaultProps={children:void 0,container:void 0};function _(e){var t=window,r=document.body,n=void 0!==t.pageXOffset?t.pageXOffset:(document.documentElement||r.parentNode||r).scrollLeft,o=void 0!==t.pageYOffset?t.pageYOffset:(document.documentElement||r.parentNode||r).scrollTop,a=e.getBoundingClientRect();if(e!==r)for(var i=e.parentNode;i!==r&&null!==i;)n+=i.scrollLeft,o+=i.scrollTop,i=i.parentNode;return{bottom:a.bottom+o,height:a.height,left:a.left+n,right:a.right+n,top:a.top+o,width:a.width}}var S={Center:"center",BottomCenter:"bottom-center",BottomRight:"bottom-right",BottomLeft:"bottom-left",TopCenter:"top-center",TopRight:"top-right",TopLeft:"top-left",LeftTop:"left-top",LeftBottom:"left-bottom",LeftCenter:"left-center",RightTop:"right-top",RightBottom:"right-bottom",RightCenter:"right-center"},P=i.default.forwardRef((function(e,t){var r=e.anchorEl,n=e.anchorPosition,o=e.placement,a=e.open,c=void 0!==a&&a,s=e.overflow,l=void 0!==s&&s,f=e.role,p=e.children,v=e.className,g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["anchorEl","anchorPosition","placement","open","overflow","role","children","className"]),m=i.default.useRef(null),h=i.default.useRef(null),y=i.default.useState(null),b=y[0],x=y[1],w=i.default.useState({left:0,top:0,height:window.innerHeight,width:window.innerWidth}),j=w[0],E=w[1],k=i.default.useState({position:"absolute",margin:"0",inset:"0px auto auto 0px",transform:"translate3d(0px, 0px, 0px)",opacity:0}),O=k[0],C=k[1];return i.default.useEffect((function(){x(function(e){var t;if(!e)return document.body;if("[object String]"===Object.prototype.toString.call(e)){var r=document.getElementById(e);return null!=r?r:document.body}var n=e;return n&&n.current?null!==(t=n.current)&&void 0!==t?t:document.body:e}(r))}),[r]),i.default.useEffect((function(){if(t&&m)return N(t,m.current),function(){N(t,null)}}),[t,m.current]),i.default.useEffect((function(){var e=function(){console.log("a"),E({height:window.innerHeight,width:window.innerWidth,left:window.scrollX,top:window.scrollY})},t=function(){console.log("b"),E({height:window.innerHeight,width:window.innerWidth,left:window.scrollX,top:window.scrollY})};return c&&(window.addEventListener("resize",e),window.addEventListener("scroll",t)),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",t)}}),[c]),i.default.useEffect((function(){if(c&&m.current&&b){var e=function(e,t,r,n){var o=0,a=0,i=r?{bottom:r.top,height:0,left:r.left,right:r.left,top:r.top,width:0}:_(t),c=_(n);switch(e){case S.Center:o=i.left+i.width/2-c.width/2,a=i.top+i.height/2-c.height/2;break;case S.BottomLeft:o=i.left,a=i.bottom;break;case S.BottomRight:o=i.left-c.width+i.width,a=i.bottom;break;case S.BottomCenter:o=i.left+i.width/2-c.width/2,a=i.bottom;break;case S.TopLeft:o=i.left,a=i.top-c.height;break;case S.TopRight:o=i.left-c.width+i.width,a=i.top-c.height;break;case S.TopCenter:o=i.left+i.width/2-c.width/2,a=i.top-c.height;break;case S.LeftTop:o=i.left-c.width,a=i.top;break;case S.LeftBottom:o=i.left-c.width,a=i.bottom-c.height;break;case S.LeftCenter:o=i.left-c.width,a=i.top+i.height/2-c.height/2;break;case S.RightTop:o=i.right,a=i.top;break;case S.RightBottom:o=i.right,a=i.bottom-c.height;break;case S.RightCenter:o=i.right,a=i.top+i.height/2-c.height/2}return{left:o,top:a}}(o,b,n,m.current),t=e.left,r=e.top,a=0,i=0;if(!1===l){console.log("compute tooltip postion",j);var s=function(e,t,r,n,o){if(!e)return null;if(!t)return null;var a=t.getBoundingClientRect(),i={left:r,top:n,height:0,width:0};return r<e.left&&(i.left=e.left),n<e.top&&(i.top=e.top),o?(i.width=e.left+e.width-r,i.height=e.top+e.height-n):(r+a.width>=e.left+e.width&&(i.left=e.left+e.width-a.width),n+a.height>=e.top+e.height&&(i.top=e.top+e.height-a.height)),i}(j,m.current,t,r,!1);null!==s&&(t=s.left,r=s.top,a=s.height,i=s.width)}C({position:"absolute",margin:"0",inset:"0px auto auto 0px",transform:"translate3d(".concat(t,"px, ").concat(r,"px, 0px)"),opacity:1,maxHeight:a>0?"".concat(a.toFixed(),"px"):void 0,maxWidth:i>0?"".concat(i.toFixed(),"px"):void 0})}}),[m,b,c,o,n,l,j]),!0!==c?null:d.exports.jsx(T,u({ref:h},{children:d.exports.jsx("div",u({ref:function(e){m.current=e},style:O,role:f,className:R("ui-popper",v)},g,{children:p}),void 0)}),void 0)}));P.propTypes={anchorEl:s.default.oneOfType([s.default.string.isRequired,s.default.instanceOf(HTMLElement).isRequired,s.default.shape({current:s.default.instanceOf(HTMLElement).isRequired}).isRequired]),placement:s.default.oneOf(Object.values(S)),open:s.default.bool,role:s.default.string,children:s.default.node,overflow:s.default.bool},P.defaultProps={anchorEl:void 0,placement:S.BottomLeft,open:!1,role:void 0,children:void 0,overflow:!1};var L=function(e){var t=e.className,r=e.variant,n=void 0===r?"indeterminate":r;return d.exports.jsx("div",u({className:R("ui-spinner","indeterminate"===n?"ui-spinner-indeterminate":"ui-spinner-determinate",t)},{children:"loading..."}),void 0)};L.propTypes={className:s.default.string,variant:s.default.oneOf(["indeterminate","determinate"])},L.defaultProps={className:void 0,variant:"indeterminate"};var D;!function(e){e[e.Enter=0]="Enter",e[e.Entering=1]="Entering",e[e.Entered=2]="Entered",e[e.Exit=3]="Exit",e[e.Exiting=4]="Exiting",e[e.Exited=5]="Exited"}(D||(D={}));var F=i.default.forwardRef((function(e,t){var r=e.trigger,n=e.mode,o=void 0===n?"appear":n,a=e.children,c=e.enterTimeout,s=e.exitTimeout,l=e.className,f=e.onEnter,p=e.onEntering,v=e.onEntered,g=e.onExit,m=e.onExiting,h=e.onExited,y=i.default.useRef(null),b=i.default.useRef(),x=i.default.useState((function(){return"appear"===o?D.Exited:D.Entered}));x[0];var w=x[1];i.default.useEffect((function(){return function(){b.current&&window.clearTimeout(b.current)}}),[b]),i.default.useEffect((function(){r?(b.current&&window.clearTimeout(b.current),y.current.classList.remove("".concat(l,"-exit")),y.current.classList.remove("".concat(l,"-exiting")),y.current.classList.remove("".concat(l,"-exited")),f&&f(),y.current.classList.add("".concat(l,"-enter")),b.current=window.setTimeout((function(){w((function(){return p&&p(),y.current.classList.add("".concat(l,"-entering")),D.Entering})),b.current=window.setTimeout((function(){w((function(){return v&&v(),y.current.classList.add("".concat(l,"-entered")),D.Entered}))}),c||1e3)}),10)):(b.current&&window.clearTimeout(b.current),y.current.classList.remove("".concat(l,"-enter")),y.current.classList.remove("".concat(l,"-entering")),y.current.classList.remove("".concat(l,"-entered")),g&&g(),y.current.classList.add("".concat(l,"-exit")),b.current=window.setTimeout((function(){w((function(){return m&&m(),y.current.classList.add("".concat(l,"-exiting")),D.Exiting})),b.current=window.setTimeout((function(){w((function(){return h&&h(),y.current.classList.add("".concat(l,"-exited")),D.Exited}))}),s||1e3)})))}),[r]);var j=i.default.useMemo((function(){if(a){var e=u(u({},a.props),{className:R(l,a.props.className),ref:y});return i.default.cloneElement(a,e)}}),[a,y]);return d.exports.jsx(d.exports.Fragment,{children:j},void 0)}));F.propTypes={},F.defaultProps={};var A=i.default.forwardRef((function(e,t){var r=e.trigger,n=e.children,o=e.onEnter,a=e.onEntering,i=e.onEntered,c=e.onExit,s=e.onExiting,l=e.onExited;return d.exports.jsx(F,u({ref:t,trigger:r,mode:"appear",className:"ui-fade",enterTimeout:160,exitTimeout:160,onEnter:o,onExit:c,onEntering:a,onEntered:i,onExiting:s,onExited:l},{children:n}),void 0)}));A.propTypes={},A.defaultProps={};function I(e,t){var r=c.useCallback((function(r){var n=r.target,o=t.reduce((function(e,t){if(!t)return e;var r=function(e){var t;if(!e)return document.body;if("[object String]"===Object.prototype.toString.call(e)){var r=document.getElementById(e);return null!=r?r:document.body}var n=e;return n&&void 0!==n.current?null!==(t=n.current)&&void 0!==t?t:void 0:e}(t);return!1!==e&&r&&null!==r?!r.contains(n):e}),!0);e&&o&&e()}),[e]);c.useEffect((function(){return document.addEventListener("click",r),function(){document.removeEventListener("click",r)}}),[t,r])}var $=function(e){var t=e.tag;e.className;var r=e.onDelete;return d.exports.jsxs("span",u({className:"ui-taginputItem"},{children:[d.exports.jsx("span",u({className:"ui-taginputItemLabel"},{children:t.label}),void 0),d.exports.jsx("button",u({type:"button",className:"ui-taginputItemRemove",onClick:r},{children:"x"}),void 0)]}),void 0)},M=i.default.forwardRef((function(e,t){var r=e.className,n=e.value,o=e.onClick,a=e.onChange,c=i.default.useRef(null),s=i.default.useCallback((function(e){a&&a(e.target.value)}),[a]);return i.default.useEffect((function(){if(t&&c)return N(t,c.current),function(){N(t,null)}}),[t,c]),d.exports.jsx(d.exports.Fragment,{children:d.exports.jsx("input",{ref:c,value:n,className:R("ui-taginputFilter",r),autoComplete:"off",spellCheck:"false","data-form-type":"other",onChange:s,onClick:o},void 0)},void 0)})),B=function(e){var t=e.suggestion,r=e.onClick,n=i.default.useCallback((function(e){r&&r(t,e)}),[r]);return d.exports.jsx("div",u({role:"button",className:"ui-taginputSelectItem",tabIndex:0,onClick:n},{children:t.label}),void 0)},W=function(e){var t=e.group,r=e.onClick,n=Array.isArray(t.suggestions)?t.suggestions.map((function(e,t){return!0===e.group?d.exports.jsx(W,{group:e,onClick:r},t):d.exports.jsx(B,{suggestion:e,onClick:r},t)})):null;return d.exports.jsxs("div",u({className:"ui-taginputSelectGroup"},{children:[d.exports.jsx("span",u({className:"ui-taginputSelectGroupLabel"},{children:t.label}),void 0),d.exports.jsx("div",u({className:"ui-taginputSelectGroupItems"},{children:n}),void 0)]}),void 0)},z=i.default.forwardRef((function(e,t){var r=e.open,n=e.tags,o=e.disableFilter,a=e.suggestions,c=e.anchorEl,s=e.filter,l=e.onSuggestionClick,f=i.default.useMemo((function(){if(!Array.isArray(a))return[];if(o)return a;var e=Array.isArray(n)&&n.length>0,t=s&&s.length>0,r=[];return a.forEach((function(o){if(!0!==o.group)e&&n.some((function(e){return e.id===o.id}))||t&&o.label.toUpperCase().indexOf(s.toUpperCase())<0||r.push(u({},o));else if(Array.isArray(o.suggestions)){var a=u(u({},o),{suggestions:[]});o.suggestions.forEach((function(r){e&&n.some((function(e){return e.id===r.id}))||t&&r.label.toUpperCase().indexOf(s.toUpperCase())<0||a.suggestions.push(u({},r))})),a.suggestions.length>0&&r.push(a)}})),r}),[a,s,n]),p=i.default.useCallback((function(e){l&&l(e)}),[l]),v=r&&f.length>0,g=f.map((function(e,t){return!0===e.group?d.exports.jsx(W,{group:e,onClick:p},t):d.exports.jsx(B,{suggestion:e,onClick:p},t)}));return d.exports.jsx(P,u({ref:t,open:v,anchorEl:c,placement:S.BottomLeft},{children:d.exports.jsx("div",u({className:"ui-taginputSelect"},{children:g}),void 0)}),void 0)})),U=function(e){e.className;var t=e.children,r=e.open,n=e.anchorEl,o=e.anchorPosition,a=e.placement,c=e.onClick,s=e.onClose,l=i.default.useRef(null);return I((function(){r&&s&&s()}),[l,n]),d.exports.jsx(P,u({ref:l,anchorEl:n,anchorPosition:o,placement:a,open:r},{children:d.exports.jsx("ul",u({className:"ui-menu",onClick:c,onContextMenu:c},{children:t}),void 0)}),void 0)};U.propTypes={className:s.default.string},U.defaultProps={className:void 0};function Y(e){var t=c.useState(),r=t[0],n=t[1];return c.useEffect((function(){n(function(e){var t;if(e){if("[object String]"===Object.prototype.toString.call(e)){var r=document.getElementById(e);return null!=r?r:void 0}var n=e;return n&&void 0!==n.current?null!==(t=n.current)&&void 0!==t?t:void 0:e}}(e))}),[e]),r}var q=function(e){var t=e.className,r=e.children,n=e.placement,o=e.open,a=e.container,c=e.onOpen,s=e.onClose,l=Y(a),f=i.default.useState(null),p=f[0],v=f[1],g=i.default.useCallback((function(e){e.preventDefault(),e.ctrlKey||(v({mouseX:e.pageX-2,mouseY:e.pageY-4}),c&&c())}),[c]);i.default.useEffect((function(){var e=null!=l?l:document;return e.addEventListener("contextmenu",g),function(){e.removeEventListener("contextmenu",g)}}),[l,g]);return d.exports.jsx(U,u({className:t,placement:n,anchorPosition:null!==p?{top:p.mouseY,left:p.mouseX}:void 0,open:null!==p&&o,onClose:s,onClick:function(e){e&&2===e.button&&(e.preventDefault(),e.stopPropagation())}},{children:r}),void 0)};q.propTypes={className:s.default.string},q.defaultProps={className:void 0};var H=function(e){e.className;var t=e.children,r=e.onClick;return d.exports.jsx("li",u({className:"ui-menuItem",onClick:r},{children:t}),void 0)};H.propTypes={className:s.default.string},H.defaultProps={className:void 0};var X=function(e){return e.className,d.exports.jsx("hr",{},void 0)};X.propTypes={className:s.default.string},X.defaultProps={className:void 0};var V=function(e){e.open;var t=e.className,r=e.children,n=e.onClose,o=i.default.useRef(null),a=i.default.useRef(null),c=i.default.useCallback((function(){n&&n()}),[n]);return d.exports.jsx(T,u({ref:o},{children:d.exports.jsxs("div",u({ref:function(e){a.current=e},style:{position:"fixed",margin:"0"},role:"dialog",className:R("ui-dialog",t)},{children:[d.exports.jsx("div",{role:"presentation",className:"ui-dialog-overlay",onClick:c},void 0),d.exports.jsx("div",u({className:"ui-dialog-container"},{children:r}),void 0)]}),void 0)}),void 0)};V.propTypes={className:s.default.string},V.defaultProps={className:void 0};var G=function(e){var t=e.className,r=e.children;return d.exports.jsx("div",u({className:R("ui-dialog-content",t)},{children:r}),void 0)};G.propTypes={className:s.default.string},G.defaultProps={className:void 0};var J=function(e){var t=e.className,r=e.children;return d.exports.jsx("footer",u({className:R("ui-dialog-footer",t)},{children:r}),void 0)};J.propTypes={className:s.default.string},J.defaultProps={className:void 0};var K=function(e){var t=e.className,r=e.children;return d.exports.jsx("header",u({className:R("ui-dialog-header",t)},{children:r}),void 0)};K.propTypes={className:s.default.string},K.defaultProps={className:void 0};var Q=function(e){var t=e.title,r=e.ok,n=e.cancel,o=e.children,a=e.className,c=e.onClose,s=i.default.useCallback((function(){c&&c(!1)}),[c]),l=i.default.useCallback((function(){c&&c(!0)}),[c]),f=null!=r?r:"oui",p=null!=n?n:"Annuler";return d.exports.jsxs(V,u({open:!0,className:R("ui-dialog-box","ui-dialog-confirm",a)},{children:[d.exports.jsx(K,{children:d.exports.jsxs(d.exports.Fragment,{children:[d.exports.jsxs("svg",u({className:"ui-dialog-icon",xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 438.5 438.5"},{children:[d.exports.jsx("path",{d:"M409.1,109.2c-19.6-33.6-46.2-60.2-79.8-79.8C295.7,9.8,259.1,0,219.3,0c-39.8,0-76.5,9.8-110.1,29.4\n C75.6,49,49,75.6,29.4,109.2C9.8,142.8,0,179.5,0,219.3c0,39.8,9.8,76.5,29.4,110.1c19.6,33.6,46.2,60.2,79.8,79.8\n c33.6,19.6,70.3,29.4,110.1,29.4s76.5-9.8,110.1-29.4c33.6-19.6,60.2-46.2,79.8-79.8c19.6-33.6,29.4-70.3,29.4-110.1\n C438.5,179.5,428.7,142.8,409.1,109.2z M387.4,290.2c-9.7,22.6-22.7,42-39,58.2c-16.3,16.3-35.7,29.3-58.2,39\n c-22.6,9.7-46.2,14.6-70.9,14.6s-48.4-4.9-70.9-14.6c-22.6-9.7-42-22.7-58.2-39c-16.3-16.3-29.3-35.7-39-58.2\n c-9.7-22.6-14.6-46.2-14.6-70.9c0-24.7,4.9-48.4,14.6-70.9c9.7-22.6,22.7-42,39-58.2c16.3-16.3,35.7-29.3,58.2-39\n c22.6-9.7,46.2-14.6,70.9-14.6c24.7,0,48.4,4.9,70.9,14.6c22.6,9.7,42,22.7,58.2,39c16.3,16.3,29.3,35.7,39,58.2\n c9.7,22.6,14.6,46.2,14.6,70.9C402,244,397.1,267.7,387.4,290.2z"},void 0),d.exports.jsx("path",{d:"M217,294c-14.6,0-26.5,12.2-26.5,26.8c0,14.3,11.5,26.8,26.5,26.8s26.8-12.5,26.8-26.8C243.8,306.2,231.6,294,217,294z"},void 0),d.exports.jsx("path",{d:"M221.5,90.8c-47.1,0-68.7,27.9-68.7,46.7c0,13.6,11.5,19.9,20.9,19.9c18.8,0,11.2-26.8,46.7-26.8c17.4,0,31.4,7.7,31.4,23.7\n c0,18.8-19.5,29.6-31,39.4c-10.1,8.7-23.4,23-23.4,53c0,18.1,4.9,23.4,19.2,23.4c17.1,0,20.6-7.7,20.6-14.3\n c0-18.1,0.4-28.6,19.5-43.6c9.4-7.3,39-31,39-63.8S266.1,90.8,221.5,90.8z"},void 0)]}),void 0),d.exports.jsx("h1",u({className:"ui-dialog-title"},{children:t}),void 0)]},void 0)},void 0),d.exports.jsx(G,{children:o},void 0),d.exports.jsxs(J,{children:[d.exports.jsx("button",u({type:"button",className:"btn dialog-action-ok dialog-action",onClick:l},{children:f}),void 0),d.exports.jsx("button",u({type:"button",className:"btn dialog-action-close dialog-action",onClick:s},{children:p}),void 0)]},void 0)]}),void 0)};Q.propTypes={className:s.default.string},Q.defaultProps={className:void 0},e.Button=function(e){return d.exports.jsx("button",u({type:"button"},{children:e.label}),void 0)},e.ConfirmDialog=Q,e.ContextMenu=q,e.Dialog=V,e.DialogContent=G,e.DialogFooter=J,e.DialogHeader=K,e.Divider=X,e.DomContainer=T,e.Menu=U,e.MenuItem=H,e.Popper=P,e.Spinner=L,e.TagInput=function(e){var t=e.tags;e.className;var r=e.suggestions,n=e.disableFilter,o=e.onTextChange,a=e.onChange,c=i.default.useRef(null),s=i.default.useRef(null),l=i.default.useRef(null),p=i.default.useState(""),v=p[0],g=p[1],m=i.default.useState(!1),h=m[0],y=m[1];I((function(){y(!1)}),[c,s]);var b=i.default.useCallback((function(e){if(a&&Array.isArray(t)){var r=t.findIndex((function(t){return t.id===e.id}));if(!(r<0)){var n=f([],t,!0);n.splice(r,1),a(n)}}}),[t,a]),x=i.default.useCallback((function(e){if(e){var r={id:e.id,label:e.label,value:e.value},n=Array.isArray(t)?f(f([],t,!0),[r],!1):[r];y(!1),a&&a(n),g(""),o&&o("")}}),[t,a,o]),w=i.default.useCallback((function(e){g(e),o&&o(e)}),[o]),j=Array.isArray(t)?t.map((function(e,t){return d.exports.jsx($,{tag:e,onDelete:function(){return b(e)}},t)})):[];return d.exports.jsxs("div",u({ref:l,className:"ui-taginput"},{children:[j,d.exports.jsx(M,{ref:c,value:v,onChange:w,onClick:function(){y(!0)}},void 0),d.exports.jsx(z,{ref:s,open:h,anchorEl:c,filter:v,tags:t,suggestions:r,disableFilter:n,onSuggestionClick:x},void 0)]}),void 0)},e.Tooltip=function(e){var t=e.children,r=e.title;e.anchorEl;var n,o=e.enterDelay,a=void 0===o?0:o,c=e.leaveDelay,s=void 0===c?0:c,l=e.className,f=i.default.useState(void 0),p=f[0],v=f[1],g=i.default.useState(!1),m=g[0],h=g[1],y=i.default.useState(!1),b=y[0],x=y[1],w=i.default.useRef(),j=i.default.useRef(),E=function(){h(!0)},k=function(e){clearTimeout(w.current),clearTimeout(j.current),p||v(e.currentTarget),j.current=setTimeout((function(){h(!1)}),s)},O=function(e){clearTimeout(w.current),clearTimeout(j.current),p||v(e.currentTarget),w.current=setTimeout((function(){E()}),a)};if(t){var C=u(u({},t.props),{onFocus:function(e){p||v(e.currentTarget)},onMouseEnter:function(e){clearTimeout(w.current),clearTimeout(j.current),p||v(e.currentTarget),w.current=setTimeout((function(){E()}),a)},onMouseLeave:k,onMouseOver:O});n=i.default.cloneElement(t,C)}var N=m||!b;return console.log(m,N,b),d.exports.jsxs(d.exports.Fragment,{children:[n,d.exports.jsx(P,u({role:"tooltip",anchorEl:p,open:N,className:R("ui-tooltip",l),onMouseOver:O,onMouseLeave:k},{children:d.exports.jsx(A,u({trigger:m,onEnter:function(){x(!1)},onExited:function(){x(!0)}},{children:d.exports.jsxs("div",u({className:"ui-tooltip-content"},{children:[r,d.exports.jsx("br",{},void 0),"a",d.exports.jsx("br",{},void 0),"a",d.exports.jsx("br",{},void 0),"asad asdsa sadsa asdasdasdsa dasd",d.exports.jsx("br",{},void 0),"a",d.exports.jsx("br",{},void 0),"a",d.exports.jsx("br",{},void 0),"aasdsadasd as dasdasda sdasas d"]}),void 0)}),void 0)}),void 0)]},void 0)},Object.defineProperty(e,"__esModule",{value:!0})}));
17
+ */function N(e,t){e&&("function"==typeof e?e(t):e.current=t)}!function(e){"production"!==process.env.NODE_ENV&&function(){var t=i.default,r=y,n=60103,o=60106;e.Fragment=60107;var a=60108,c=60114,s=60109,l=60110,u=60112,f=60113,d=60120,p=60115,v=60116,g=60121,m=60122,h=60117,b=60129,x=60131;if("function"==typeof Symbol&&Symbol.for){var w=Symbol.for;n=w("react.element"),o=w("react.portal"),e.Fragment=w("react.fragment"),a=w("react.strict_mode"),c=w("react.profiler"),s=w("react.provider"),l=w("react.context"),u=w("react.forward_ref"),f=w("react.suspense"),d=w("react.suspense_list"),p=w("react.memo"),v=w("react.lazy"),g=w("react.block"),m=w("react.server.block"),h=w("react.fundamental"),w("react.scope"),w("react.opaque.id"),b=w("react.debug_trace_mode"),w("react.offscreen"),x=w("react.legacy_hidden")}var j="function"==typeof Symbol&&Symbol.iterator;var E=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];O("error",e,r)}function O(e,t,r){var n=E.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}function C(e){return e.displayName||"Context"}function N(t){if(null==t)return null;if("number"==typeof t.tag&&k("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case e.Fragment:return"Fragment";case o:return"Portal";case c:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case d:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case l:return C(t)+".Consumer";case s:return C(t._context)+".Provider";case u:return m=t,h=t.render,y="ForwardRef",b=h.displayName||h.name||"",m.displayName||(""!==b?y+"("+b+")":y);case p:return N(t.type);case g:return N(t._render);case v:var r=t,n=r._payload,i=r._init;try{return N(i(n))}catch(e){return null}}var m,h,y,b;return null}var T,R,_,S,P,L,D,F=0;function A(){}A.__reactDisabledLog=!0;var I,$=E.ReactCurrentDispatcher;function M(e,t,r){if(void 0===I)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);I=n&&n[1]||""}return"\n"+I+e}var B,W=!1,z="function"==typeof WeakMap?WeakMap:Map;function U(e,t){if(!e||W)return"";var n,o=B.get(e);if(void 0!==o)return o;W=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=$.current,$.current=null,function(){if(0===F){T=console.log,R=console.info,_=console.warn,S=console.error,P=console.group,L=console.groupCollapsed,D=console.groupEnd;var e={configurable:!0,enumerable:!0,value:A,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}();try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(c,[])}catch(e){n=e}Reflect.construct(e,[],c)}else{try{c.call()}catch(e){n=e}e.call(c.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,f=l.length-1;u>=1&&f>=0&&s[u]!==l[f];)f--;for(;u>=1&&f>=0;u--,f--)if(s[u]!==l[f]){if(1!==u||1!==f)do{if(u--,--f<0||s[u]!==l[f]){var d="\n"+s[u].replace(" at new "," at ");return"function"==typeof e&&B.set(e,d),d}}while(u>=1&&f>=0);break}}}finally{W=!1,$.current=a,function(){if(0==--F){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:r({},e,{value:T}),info:r({},e,{value:R}),warn:r({},e,{value:_}),error:r({},e,{value:S}),group:r({},e,{value:P}),groupCollapsed:r({},e,{value:L}),groupEnd:r({},e,{value:D})})}F<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",v=p?M(p):"";return"function"==typeof e&&B.set(e,v),v}function Y(e,t,r){return U(e,!1)}function q(e,t,r){if(null==e)return"";if("function"==typeof e)return U(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return M(e);switch(e){case f:return M("Suspense");case d:return M("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return Y(e.render);case p:return q(e.type,t,r);case g:return Y(e._render);case v:var o=e,a=o._payload,i=o._init;try{return q(i(a),t,r)}catch(e){}}return""}B=new z;var H={},X=E.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,r=q(e.type,e._source,t?t.type:null);X.setExtraStackFrame(r)}else X.setExtraStackFrame(null)}var G,J,K,Q=E.ReactCurrentOwner,Z=Object.prototype.hasOwnProperty,ee={key:!0,ref:!0,__self:!0,__source:!0};K={};function te(e,t,r,o,a){var i,c={},s=null,l=null;for(i in void 0!==r&&(s=""+r),function(e){if(Z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(s=""+t.key),function(e){if(Z.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&Q.current&&t&&Q.current.stateNode!==t){var r=N(Q.current.type);K[r]||(k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',N(Q.current.type),e.ref),K[r]=!0)}}(t,a)),t)Z.call(t,i)&&!ee.hasOwnProperty(i)&&(c[i]=t[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===c[i]&&(c[i]=u[i])}if(s||l){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var r=function(){G||(G=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(c,f),l&&function(e,t){var r=function(){J||(J=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(c,f)}return function(e,t,r,o,a,i,c){var s={$$typeof:n,type:e,key:t,ref:r,props:c,_owner:i,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}(e,s,l,a,o,Q.current,c)}var re,ne=E.ReactCurrentOwner,oe=E.ReactDebugCurrentFrame;function ae(e){if(e){var t=e._owner,r=q(e.type,e._source,t?t.type:null);oe.setExtraStackFrame(r)}else oe.setExtraStackFrame(null)}function ie(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function ce(){if(ne.current){var e=N(ne.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}re=!1;var se={};function le(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=ce();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!se[r]){se[r]=!0;var n="";e&&e._owner&&e._owner!==ne.current&&(n=" It was passed a child from "+N(e._owner.type)+"."),ae(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),ae(null)}}}function ue(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];ie(n)&&le(n,t)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=j&&e[j]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ie(a.value)&&le(a.value,t)}}function fe(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==u&&r.$$typeof!==p)return;t=r.propTypes}if(t){var n=N(r);!function(e,t,r,n,o){var a=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(a(e,i)){var c=void 0;try{if("function"!=typeof e[i]){var s=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}c=e[i](t,i,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){c=e}!c||c instanceof Error||(V(o),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,i,typeof c),V(null)),c instanceof Error&&!(c.message in H)&&(H[c.message]=!0,V(o),k("Failed %s type: %s",r,c.message),V(null))}}(t,e.props,"prop",n,e)}else if(void 0!==r.PropTypes&&!re){re=!0,k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",N(r)||"Unknown")}"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function de(t,r,o,i,y,w){var j=function(t){return"string"==typeof t||"function"==typeof t||t===e.Fragment||t===c||t===b||t===a||t===f||t===d||t===x||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===p||t.$$typeof===s||t.$$typeof===l||t.$$typeof===u||t.$$typeof===h||t.$$typeof===g||t[0]===m)}(t);if(!j){var E="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(E+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O,C=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(y);E+=C||ce(),null===t?O="null":Array.isArray(t)?O="array":void 0!==t&&t.$$typeof===n?(O="<"+(N(t.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):O=typeof t,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,E)}var T=te(t,r,o,y,w);if(null==T)return T;if(j){var R=r.children;if(void 0!==R)if(i)if(Array.isArray(R)){for(var _=0;_<R.length;_++)ue(R[_],t);Object.freeze&&Object.freeze(R)}else k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ue(R,t)}return t===e.Fragment?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){ae(e),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),ae(null);break}}null!==e.ref&&(ae(e),k("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}(T):fe(T),T}var pe=function(e,t,r){return de(e,t,r,!1)},ve=function(e,t,r){return de(e,t,r,!0)};e.jsx=pe,e.jsxs=ve}()}(C),"production"===process.env.NODE_ENV?d.exports=p:d.exports=C;var T=i.default.forwardRef((function(e,t){var r=e.children,n=e.container,o=void 0===n?document.body:n,a=i.default.useMemo((function(){return function(e){return"function"==typeof e?e():e}(o)||document.body}),[o]);return i.default.useEffect((function(){if(t&&a)return N(t,a),function(){N(t,null)}}),[t,a]),a?l.default.createPortal(r,a):a}));function R(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=[],n=function(t){var n=e[t];if(!n)return"continue";var o=typeof n;if("string"===o||"number"===o)r.push(n);else if(Array.isArray(n)){if(n.length){var a=R.apply(void 0,n);a&&r.push(a)}}else"object"===o?n.toString===Object.prototype.toString&&Object.keys(n).forEach((function(e){n[e]&&r.push(e)})):r.push(n.toString())},o=0;o<e.length;o+=1)n(o);return r.join(" ")}T.propTypes={children:s.default.node,container:s.default.oneOfType([s.default.instanceOf(HTMLElement),s.default.func])},T.defaultProps={children:void 0,container:void 0};function _(e){var t=window,r=document.body,n=void 0!==t.pageXOffset?t.pageXOffset:(document.documentElement||r.parentNode||r).scrollLeft,o=void 0!==t.pageYOffset?t.pageYOffset:(document.documentElement||r.parentNode||r).scrollTop,a=e.getBoundingClientRect();if(e!==r)for(var i=e.parentNode;i!==r&&null!==i;)n+=i.scrollLeft,o+=i.scrollTop,i=i.parentNode;return{bottom:a.bottom+o,height:a.height,left:a.left+n,right:a.right+n,top:a.top+o,width:a.width}}var S={Center:"center",BottomCenter:"bottom-center",BottomRight:"bottom-right",BottomLeft:"bottom-left",TopCenter:"top-center",TopRight:"top-right",TopLeft:"top-left",LeftTop:"left-top",LeftBottom:"left-bottom",LeftCenter:"left-center",RightTop:"right-top",RightBottom:"right-bottom",RightCenter:"right-center"},P=i.default.forwardRef((function(e,t){var r=e.anchorEl,n=e.anchorPosition,o=e.placement,a=e.open,c=void 0!==a&&a,s=e.overflow,l=void 0!==s&&s,f=e.role,p=e.children,v=e.className,g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["anchorEl","anchorPosition","placement","open","overflow","role","children","className"]),m=i.default.useRef(null),h=i.default.useRef(null),y=i.default.useState(null),b=y[0],x=y[1],w=i.default.useState({left:0,top:0,height:window.innerHeight,width:window.innerWidth}),j=w[0],E=w[1],k=i.default.useState({position:"absolute",margin:"0",inset:"0px auto auto 0px",transform:"translate3d(0px, 0px, 0px)",opacity:0}),O=k[0],C=k[1];return i.default.useEffect((function(){x(function(e){var t;if(!e)return document.body;if("[object String]"===Object.prototype.toString.call(e)){var r=document.getElementById(e);return null!=r?r:document.body}var n=e;return n&&n.current?null!==(t=n.current)&&void 0!==t?t:document.body:e}(r))}),[r]),i.default.useEffect((function(){if(t&&m)return N(t,m.current),function(){N(t,null)}}),[t,m.current]),i.default.useEffect((function(){var e=function(){console.log("a"),E({height:window.innerHeight,width:window.innerWidth,left:window.scrollX,top:window.scrollY})},t=function(){console.log("b"),E({height:window.innerHeight,width:window.innerWidth,left:window.scrollX,top:window.scrollY})};return c&&(window.addEventListener("resize",e),window.addEventListener("scroll",t)),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",t)}}),[c]),i.default.useEffect((function(){if(c&&m.current&&b){var e=function(e,t,r,n){var o=0,a=0,i=r?{bottom:r.top,height:0,left:r.left,right:r.left,top:r.top,width:0}:_(t),c=_(n);switch(e){case S.Center:o=i.left+i.width/2-c.width/2,a=i.top+i.height/2-c.height/2;break;case S.BottomLeft:o=i.left,a=i.bottom;break;case S.BottomRight:o=i.left-c.width+i.width,a=i.bottom;break;case S.BottomCenter:o=i.left+i.width/2-c.width/2,a=i.bottom;break;case S.TopLeft:o=i.left,a=i.top-c.height;break;case S.TopRight:o=i.left-c.width+i.width,a=i.top-c.height;break;case S.TopCenter:o=i.left+i.width/2-c.width/2,a=i.top-c.height;break;case S.LeftTop:o=i.left-c.width,a=i.top;break;case S.LeftBottom:o=i.left-c.width,a=i.bottom-c.height;break;case S.LeftCenter:o=i.left-c.width,a=i.top+i.height/2-c.height/2;break;case S.RightTop:o=i.right,a=i.top;break;case S.RightBottom:o=i.right,a=i.bottom-c.height;break;case S.RightCenter:o=i.right,a=i.top+i.height/2-c.height/2}return{left:o,top:a}}(o,b,n,m.current),t=e.left,r=e.top,a=0,i=0;if(!1===l){console.log("compute tooltip postion",j);var s=function(e,t,r,n,o){if(!e)return null;if(!t)return null;var a=t.getBoundingClientRect(),i={left:r,top:n,height:0,width:0};return r<e.left&&(i.left=e.left),n<e.top&&(i.top=e.top),o?(i.width=e.left+e.width-r,i.height=e.top+e.height-n):(r+a.width>=e.left+e.width&&(i.left=e.left+e.width-a.width),n+a.height>=e.top+e.height&&(i.top=e.top+e.height-a.height)),i}(j,m.current,t,r,!1);null!==s&&(t=s.left,r=s.top,a=s.height,i=s.width)}C({position:"absolute",margin:"0",inset:"0px auto auto 0px",transform:"translate3d(".concat(t,"px, ").concat(r,"px, 0px)"),opacity:1,maxHeight:a>0?"".concat(a.toFixed(),"px"):void 0,maxWidth:i>0?"".concat(i.toFixed(),"px"):void 0})}}),[m,b,c,o,n,l,j]),!0!==c?null:d.exports.jsx(T,u({ref:h},{children:d.exports.jsx("div",u({ref:function(e){m.current=e},style:O,role:f,className:R("ui-popper",v)},g,{children:p}),void 0)}),void 0)}));P.propTypes={anchorEl:s.default.oneOfType([s.default.string.isRequired,s.default.instanceOf(HTMLElement).isRequired,s.default.shape({current:s.default.instanceOf(HTMLElement).isRequired}).isRequired]),placement:s.default.oneOf(Object.values(S)),open:s.default.bool,role:s.default.string,children:s.default.node,overflow:s.default.bool},P.defaultProps={anchorEl:void 0,placement:S.BottomLeft,open:!1,role:void 0,children:void 0,overflow:!1};var L=function(e){var t=e.className,r=e.variant,n=void 0===r?"indeterminate":r;return d.exports.jsx("div",u({className:R("ui-spinner","indeterminate"===n?"ui-spinner-indeterminate":"ui-spinner-determinate",t)},{children:"loading..."}),void 0)};L.propTypes={className:s.default.string,variant:s.default.oneOf(["indeterminate","determinate"])},L.defaultProps={className:void 0,variant:"indeterminate"};var D;!function(e){e[e.Enter=0]="Enter",e[e.Entering=1]="Entering",e[e.Entered=2]="Entered",e[e.Exit=3]="Exit",e[e.Exiting=4]="Exiting",e[e.Exited=5]="Exited"}(D||(D={}));var F=i.default.forwardRef((function(e,t){var r=e.trigger,n=e.mode,o=void 0===n?"appear":n,a=e.children,c=e.enterTimeout,s=e.exitTimeout,l=e.className,f=e.onEnter,p=e.onEntering,v=e.onEntered,g=e.onExit,m=e.onExiting,h=e.onExited,y=i.default.useRef(null),b=i.default.useRef(),x=i.default.useState((function(){return"appear"===o?D.Exited:D.Entered}));x[0];var w=x[1];i.default.useEffect((function(){return function(){b.current&&window.clearTimeout(b.current)}}),[b]),i.default.useEffect((function(){r?(b.current&&window.clearTimeout(b.current),y.current.classList.remove("".concat(l,"-exit")),y.current.classList.remove("".concat(l,"-exiting")),y.current.classList.remove("".concat(l,"-exited")),f&&f(),y.current.classList.add("".concat(l,"-enter")),b.current=window.setTimeout((function(){w((function(){return p&&p(),y.current.classList.add("".concat(l,"-entering")),D.Entering})),b.current=window.setTimeout((function(){w((function(){return v&&v(),y.current.classList.add("".concat(l,"-entered")),D.Entered}))}),c||1e3)}),10)):(b.current&&window.clearTimeout(b.current),y.current.classList.remove("".concat(l,"-enter")),y.current.classList.remove("".concat(l,"-entering")),y.current.classList.remove("".concat(l,"-entered")),g&&g(),y.current.classList.add("".concat(l,"-exit")),b.current=window.setTimeout((function(){w((function(){return m&&m(),y.current.classList.add("".concat(l,"-exiting")),D.Exiting})),b.current=window.setTimeout((function(){w((function(){return h&&h(),y.current.classList.add("".concat(l,"-exited")),D.Exited}))}),s||1e3)})))}),[r]);var j=i.default.useMemo((function(){if(a){var e=u(u({},a.props),{className:R(l,a.props.className),ref:y});return i.default.cloneElement(a,e)}}),[a,y]);return d.exports.jsx(d.exports.Fragment,{children:j},void 0)}));F.propTypes={},F.defaultProps={};var A=i.default.forwardRef((function(e,t){var r=e.trigger,n=e.children,o=e.onEnter,a=e.onEntering,i=e.onEntered,c=e.onExit,s=e.onExiting,l=e.onExited;return d.exports.jsx(F,u({ref:t,trigger:r,mode:"appear",className:"ui-fade",enterTimeout:160,exitTimeout:160,onEnter:o,onExit:c,onEntering:a,onEntered:i,onExiting:s,onExited:l},{children:n}),void 0)}));A.propTypes={},A.defaultProps={};function I(e,t){var r=c.useCallback((function(r){var n=r.target,o=t.reduce((function(e,t){if(!t)return e;var r=function(e){var t;if(!e)return document.body;if("[object String]"===Object.prototype.toString.call(e)){var r=document.getElementById(e);return null!=r?r:document.body}var n=e;return n&&void 0!==n.current?null!==(t=n.current)&&void 0!==t?t:void 0:e}(t);return!1!==e&&r&&null!==r?!r.contains(n):e}),!0);e&&o&&e()}),[e]);c.useEffect((function(){return document.addEventListener("click",r),function(){document.removeEventListener("click",r)}}),[t,r])}var $=function(e){var t=e.tag;e.className;var r=e.onDelete;return d.exports.jsxs("span",u({className:"ui-taginputItem"},{children:[d.exports.jsx("span",u({className:"ui-taginputItemLabel"},{children:t.label}),void 0),d.exports.jsx("button",u({type:"button",className:"ui-taginputItemRemove",onClick:r},{children:"x"}),void 0)]}),void 0)},M=i.default.forwardRef((function(e,t){var r=e.className,n=e.value,o=e.onClick,a=e.onChange,c=i.default.useRef(null),s=i.default.useCallback((function(e){a&&a(e.target.value)}),[a]);return i.default.useEffect((function(){if(t&&c)return N(t,c.current),function(){N(t,null)}}),[t,c]),d.exports.jsx(d.exports.Fragment,{children:d.exports.jsx("input",{ref:c,value:n,className:R("ui-taginputFilter",r),autoComplete:"off",spellCheck:"false","data-form-type":"other",onChange:s,onClick:o},void 0)},void 0)})),B=function(e){var t=e.suggestion,r=e.onClick,n=i.default.useCallback((function(e){r&&r(t,e)}),[r]);return d.exports.jsx("div",u({role:"button",className:"ui-taginputSelectItem",tabIndex:0,onClick:n},{children:t.label}),void 0)},W=function(e){var t=e.group,r=e.onClick,n=Array.isArray(t.suggestions)?t.suggestions.map((function(e,t){return!0===e.group?d.exports.jsx(W,{group:e,onClick:r},t):d.exports.jsx(B,{suggestion:e,onClick:r},t)})):null;return d.exports.jsxs("div",u({className:"ui-taginputSelectGroup"},{children:[d.exports.jsx("span",u({className:"ui-taginputSelectGroupLabel"},{children:t.label}),void 0),d.exports.jsx("div",u({className:"ui-taginputSelectGroupItems"},{children:n}),void 0)]}),void 0)},z=i.default.forwardRef((function(e,t){var r=e.open,n=e.tags,o=e.disableFilter,a=e.suggestions,c=e.anchorEl,s=e.filter,l=e.onSuggestionClick,f=i.default.useMemo((function(){if(!Array.isArray(a))return[];if(o)return a;var e=Array.isArray(n)&&n.length>0,t=s&&s.length>0,r=[];return a.forEach((function(o){if(!0!==o.group)e&&n.some((function(e){return e.id===o.id}))||t&&o.label.toUpperCase().indexOf(s.toUpperCase())<0||r.push(u({},o));else if(Array.isArray(o.suggestions)){var a=u(u({},o),{suggestions:[]});o.suggestions.forEach((function(r){e&&n.some((function(e){return e.id===r.id}))||t&&r.label.toUpperCase().indexOf(s.toUpperCase())<0||a.suggestions.push(u({},r))})),a.suggestions.length>0&&r.push(a)}})),r}),[a,s,n]),p=i.default.useCallback((function(e){l&&l(e)}),[l]),v=r&&f.length>0,g=f.map((function(e,t){return!0===e.group?d.exports.jsx(W,{group:e,onClick:p},t):d.exports.jsx(B,{suggestion:e,onClick:p},t)}));return d.exports.jsx(P,u({ref:t,open:v,anchorEl:c,placement:S.BottomLeft},{children:d.exports.jsx("div",u({className:"ui-taginputSelect"},{children:g}),void 0)}),void 0)})),U=function(e){e.className;var t=e.children,r=e.open,n=e.anchorEl,o=e.anchorPosition,a=e.placement,c=e.onClick,s=e.onClose,l=i.default.useRef(null);return I((function(){r&&s&&s()}),[l,n]),d.exports.jsx(P,u({ref:l,anchorEl:n,anchorPosition:o,placement:a,open:r},{children:d.exports.jsx("ul",u({className:"ui-menu",onClick:c,onContextMenu:c},{children:t}),void 0)}),void 0)};U.propTypes={className:s.default.string},U.defaultProps={className:void 0};function Y(e){var t=c.useState(),r=t[0],n=t[1];return c.useEffect((function(){n(function(e){var t;if(e){if("[object String]"===Object.prototype.toString.call(e)){var r=document.getElementById(e);return null!=r?r:void 0}var n=e;return n&&void 0!==n.current?null!==(t=n.current)&&void 0!==t?t:void 0:e}}(e))}),[e]),r}var q=function(e){var t=e.className,r=e.children,n=e.placement,o=e.open,a=e.container,c=e.onOpen,s=e.onClose,l=Y(a),f=i.default.useState(null),p=f[0],v=f[1],g=i.default.useCallback((function(e){e.preventDefault(),e.ctrlKey||(v({mouseX:e.pageX-2,mouseY:e.pageY-4}),c&&c())}),[c]);i.default.useEffect((function(){var e=null!=l?l:document;return e.addEventListener("contextmenu",g),function(){e.removeEventListener("contextmenu",g)}}),[l,g]);return d.exports.jsx(U,u({className:t,placement:n,anchorPosition:null!==p?{top:p.mouseY,left:p.mouseX}:void 0,open:null!==p&&o,onClose:s,onClick:function(e){e&&2===e.button&&(e.preventDefault(),e.stopPropagation())}},{children:r}),void 0)};q.propTypes={className:s.default.string},q.defaultProps={className:void 0};var H=function(e){e.className;var t=e.children,r=e.onClick;return d.exports.jsx("li",u({className:"ui-menuItem",onClick:r},{children:t}),void 0)};H.propTypes={className:s.default.string},H.defaultProps={className:void 0};var X=function(e){return e.className,d.exports.jsx("hr",{},void 0)};X.propTypes={className:s.default.string},X.defaultProps={className:void 0};var V=function(e){e.open;var t=e.className,r=e.children,n=e.onClose,o=i.default.useRef(null),a=i.default.useRef(null),c=i.default.useCallback((function(){n&&n()}),[n]);return d.exports.jsx(T,u({ref:o},{children:d.exports.jsxs("div",u({ref:function(e){a.current=e},style:{position:"fixed",margin:"0"},role:"dialog",className:R("ui-dialog",t)},{children:[d.exports.jsx("div",{role:"presentation",className:"ui-dialog-overlay",onClick:c},void 0),d.exports.jsx("div",u({className:"ui-dialog-container"},{children:r}),void 0)]}),void 0)}),void 0)};V.propTypes={className:s.default.string},V.defaultProps={className:void 0};var G=function(e){var t=e.className,r=e.children;return d.exports.jsx("div",u({className:R("ui-dialog-content",t)},{children:r}),void 0)};G.propTypes={className:s.default.string},G.defaultProps={className:void 0};var J=function(e){var t=e.className,r=e.children;return d.exports.jsx("footer",u({className:R("ui-dialog-footer",t)},{children:r}),void 0)};J.propTypes={className:s.default.string},J.defaultProps={className:void 0};var K=function(e){var t=e.className,r=e.children;return d.exports.jsx("header",u({className:R("ui-dialog-header",t)},{children:r}),void 0)};K.propTypes={className:s.default.string},K.defaultProps={className:void 0};var Q=function(e){var t=e.title,r=e.ok,n=e.cancel,o=e.children,a=e.className,c=e.onClose,s=i.default.useCallback((function(){c&&c(!1)}),[c]),l=i.default.useCallback((function(){c&&c(!0)}),[c]),f=null!=r?r:"oui",p=null!=n?n:"Annuler";return d.exports.jsxs(V,u({open:!0,className:R("ui-dialog-box","ui-dialog-confirm",a)},{children:[d.exports.jsx(K,{children:d.exports.jsxs(d.exports.Fragment,{children:[d.exports.jsxs("svg",u({className:"ui-dialog-icon",xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 438.5 438.5"},{children:[d.exports.jsx("path",{d:"M409.1,109.2c-19.6-33.6-46.2-60.2-79.8-79.8C295.7,9.8,259.1,0,219.3,0c-39.8,0-76.5,9.8-110.1,29.4\n C75.6,49,49,75.6,29.4,109.2C9.8,142.8,0,179.5,0,219.3c0,39.8,9.8,76.5,29.4,110.1c19.6,33.6,46.2,60.2,79.8,79.8\n c33.6,19.6,70.3,29.4,110.1,29.4s76.5-9.8,110.1-29.4c33.6-19.6,60.2-46.2,79.8-79.8c19.6-33.6,29.4-70.3,29.4-110.1\n C438.5,179.5,428.7,142.8,409.1,109.2z M387.4,290.2c-9.7,22.6-22.7,42-39,58.2c-16.3,16.3-35.7,29.3-58.2,39\n c-22.6,9.7-46.2,14.6-70.9,14.6s-48.4-4.9-70.9-14.6c-22.6-9.7-42-22.7-58.2-39c-16.3-16.3-29.3-35.7-39-58.2\n c-9.7-22.6-14.6-46.2-14.6-70.9c0-24.7,4.9-48.4,14.6-70.9c9.7-22.6,22.7-42,39-58.2c16.3-16.3,35.7-29.3,58.2-39\n c22.6-9.7,46.2-14.6,70.9-14.6c24.7,0,48.4,4.9,70.9,14.6c22.6,9.7,42,22.7,58.2,39c16.3,16.3,29.3,35.7,39,58.2\n c9.7,22.6,14.6,46.2,14.6,70.9C402,244,397.1,267.7,387.4,290.2z"},void 0),d.exports.jsx("path",{d:"M217,294c-14.6,0-26.5,12.2-26.5,26.8c0,14.3,11.5,26.8,26.5,26.8s26.8-12.5,26.8-26.8C243.8,306.2,231.6,294,217,294z"},void 0),d.exports.jsx("path",{d:"M221.5,90.8c-47.1,0-68.7,27.9-68.7,46.7c0,13.6,11.5,19.9,20.9,19.9c18.8,0,11.2-26.8,46.7-26.8c17.4,0,31.4,7.7,31.4,23.7\n c0,18.8-19.5,29.6-31,39.4c-10.1,8.7-23.4,23-23.4,53c0,18.1,4.9,23.4,19.2,23.4c17.1,0,20.6-7.7,20.6-14.3\n c0-18.1,0.4-28.6,19.5-43.6c9.4-7.3,39-31,39-63.8S266.1,90.8,221.5,90.8z"},void 0)]}),void 0),d.exports.jsx("h1",u({className:"ui-dialog-title"},{children:t}),void 0)]},void 0)},void 0),d.exports.jsx(G,{children:o},void 0),d.exports.jsxs(J,{children:[d.exports.jsx("button",u({type:"button",className:"btn dialog-action-ok dialog-action",onClick:l},{children:f}),void 0),d.exports.jsx("button",u({type:"button",className:"btn dialog-action-close dialog-action",onClick:s},{children:p}),void 0)]},void 0)]}),void 0)};Q.propTypes={className:s.default.string},Q.defaultProps={className:void 0},e.Button=function(e){return d.exports.jsx("button",u({type:"button"},{children:e.label}),void 0)},e.ConfirmDialog=Q,e.ContextMenu=q,e.Dialog=V,e.DialogContent=G,e.DialogFooter=J,e.DialogHeader=K,e.Divider=X,e.DomContainer=T,e.Menu=U,e.MenuItem=H,e.Popper=P,e.Spinner=L,e.TagInput=function(e){var t=e.tags;e.className;var r=e.suggestions,n=e.disableFilter,o=e.onTextChange,a=e.onChange,c=i.default.useRef(null),s=i.default.useRef(null),l=i.default.useRef(null),p=i.default.useState(""),v=p[0],g=p[1],m=i.default.useState(!1),h=m[0],y=m[1];I((function(){y(!1)}),[c,s]);var b=i.default.useCallback((function(e){if(a&&Array.isArray(t)){var r=t.findIndex((function(t){return t.id===e.id}));if(!(r<0)){var n=f([],t,!0);n.splice(r,1),a(n)}}}),[t,a]),x=i.default.useCallback((function(e){if(e){var r={id:e.id,label:e.label,value:e.value},n=Array.isArray(t)?f(f([],t,!0),[r],!1):[r];y(!1),a&&a(n),g(""),o&&o("")}}),[t,a,o]),w=i.default.useCallback((function(e){g(e),o&&o(e)}),[o]),j=Array.isArray(t)?t.map((function(e,t){return d.exports.jsx($,{tag:e,onDelete:function(){return b(e)}},t)})):[];return d.exports.jsxs("div",u({ref:l,className:"ui-taginput"},{children:[j,d.exports.jsx(M,{ref:c,value:v,onChange:w,onClick:function(){y(!0)}},void 0),d.exports.jsx(z,{ref:s,open:h,anchorEl:c,filter:v,tags:t,suggestions:r,disableFilter:n,onSuggestionClick:x},void 0)]}),void 0)},e.Tooltip=function(e){var t=e.children,r=e.title;e.anchorEl;var n,o=e.enterDelay,a=void 0===o?0:o,c=e.leaveDelay,s=void 0===c?0:c,l=e.className,f=i.default.useState(void 0),p=f[0],v=f[1],g=i.default.useState(!1),m=g[0],h=g[1],y=i.default.useState(!0),b=y[0],x=y[1],w=i.default.useRef(),j=i.default.useRef(),E=function(){h(!0)},k=function(e){clearTimeout(w.current),clearTimeout(j.current),p||v(e.currentTarget),j.current=setTimeout((function(){h(!1)}),s)},O=function(e){clearTimeout(w.current),clearTimeout(j.current),p||v(e.currentTarget),w.current=setTimeout((function(){E()}),a)};if(t){var C=u(u({},t.props),{onFocus:function(e){p||v(e.currentTarget)},onMouseEnter:function(e){clearTimeout(w.current),clearTimeout(j.current),p||v(e.currentTarget),w.current=setTimeout((function(){E()}),a)},onMouseLeave:k,onMouseOver:O});n=i.default.cloneElement(t,C)}var N=m||!b;return console.log(m,N,b),d.exports.jsxs(d.exports.Fragment,{children:[n,d.exports.jsx(P,u({role:"tooltip",anchorEl:p,open:N,className:R("ui-tooltip",l),onMouseOver:O,onMouseLeave:k},{children:d.exports.jsx(A,u({trigger:m,onEnter:function(){x(!1)},onExited:function(){x(!0)}},{children:d.exports.jsxs("div",u({className:"ui-tooltip-content"},{children:[r,d.exports.jsx("br",{},void 0),"a",d.exports.jsx("br",{},void 0),"a",d.exports.jsx("br",{},void 0),"asad asdsa sadsa asdasdasdsa dasd",d.exports.jsx("br",{},void 0),"a",d.exports.jsx("br",{},void 0),"a",d.exports.jsx("br",{},void 0),"aasdsadasd as dasdasda sdasas d"]}),void 0)}),void 0)}),void 0)]},void 0)},Object.defineProperty(e,"__esModule",{value:!0})}));
18
18
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortex-react-ui",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "description": "React UI",
5
5
  "author": "Anthony",
6
6
  "license": "MIT",