@fattureincloud/fic-design-system 0.11.2 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.esm.js CHANGED
@@ -37,7 +37,7 @@ var YX,qX={},GX={get exports(){return qX},set exports(e){qX=e}},KX={};
37
37
  *
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
- */function ZX(){return XX||(XX=1,"production"!==process.env.NODE_ENV&&function(){var e=c,n=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator";var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];!function(e,n,t){var r=y.ReactDebugCurrentFrame,o=r.getStackAddendum();""!==o&&(n+="%s",t=t.concat([o]));var i=t.map((function(e){return String(e)}));i.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,i)}("error",e,t)}var v,x=!1,w=!1,k=!1,_=!1,C=!1;function $(e){return e.displayName||"Context"}function S(e){if(null==e)return null;if("number"==typeof e.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case t:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return $(e)+".Consumer";case a:return $(e._context)+".Provider";case s:return function(e,n,t){var r=e.displayName;if(r)return r;var o=n.displayName||n.name||"";return""!==o?t+"("+o+")":t}(e,e.render,"ForwardRef");case f:var n=e.displayName||null;return null!==n?n:S(e.type)||"Memo";case p:var c=e,h=c._payload,m=c._init;try{return S(m(h))}catch{return null}}return null}v=Symbol.for("react.module.reference");var E,T,D,M,O,P,R,N=Object.assign,A=0;function I(){}I.__reactDisabledLog=!0;var F,L=y.ReactCurrentDispatcher;function j(e,n,t){if(void 0===F)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);F=r&&r[1]||""}return"\n"+F+e}var z,B=!1,H="function"==typeof WeakMap?WeakMap:Map;function U(e,n){if(!e||B)return"";var t,r=z.get(e);if(void 0!==r)return r;B=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=L.current,L.current=null,function(){if(0===A){E=console.log,T=console.info,D=console.warn,M=console.error,O=console.group,P=console.groupCollapsed,R=console.groupEnd;var e={configurable:!0,enumerable:!0,value:I,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}A++}();try{if(n){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){t=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){t=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){t=e}e()}}catch(n){if(n&&t&&"string"==typeof n.stack){for(var l=n.stack.split("\n"),s=t.stack.split("\n"),c=l.length-1,u=s.length-1;c>=1&&u>=0&&l[c]!==s[u];)u--;for(;c>=1&&u>=0;c--,u--)if(l[c]!==s[u]){if(1!==c||1!==u)do{if(c--,--u<0||l[c]!==s[u]){var d="\n"+l[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&z.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{B=!1,L.current=o,function(){if(0==--A){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:E}),info:N({},e,{value:T}),warn:N({},e,{value:D}),error:N({},e,{value:M}),group:N({},e,{value:O}),groupCollapsed:N({},e,{value:P}),groupEnd:N({},e,{value:R})})}A<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?j(f):"";return"function"==typeof e&&z.set(e,p),p}function W(e,n,t){if(null==e)return"";if("function"==typeof e)return U(e,function(e){var n=e.prototype;return!(!n||!n.isReactComponent)}(e));if("string"==typeof e)return j(e);switch(e){case u:return j("Suspense");case d:return j("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case s:return function(e,n,t){return U(e,!1)}(e.render);case f:return W(e.type,n,t);case p:var r=e,o=r._payload,i=r._init;try{return W(i(o),n,t)}catch{}}return""}z=new H;var V=Object.prototype.hasOwnProperty,Y={},q=y.ReactDebugCurrentFrame;function G(e){if(e){var n=e._owner,t=W(e.type,e._source,n?n.type:null);q.setExtraStackFrame(t)}else q.setExtraStackFrame(null)}var K=Array.isArray;function X(e){return K(e)}function Q(e){return""+e}function Z(e){if(function(e){try{return Q(e),!1}catch{return!0}}(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Q(e)}var J,ee,ne,te=y.ReactCurrentOwner,re={key:!0,ref:!0,__self:!0,__source:!0};ne={};var oe=function(e,t,r,o,i,a,l){var s={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:a,_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:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ie(e,n,t,r,o){var i,a={},l=null,s=null;for(i in void 0!==t&&(Z(t),l=""+t),function(e){if(V.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(n)&&(Z(n.key),l=""+n.key),function(e){if(V.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return void 0!==e.ref}(n)&&(s=n.ref,function(e,n){if("string"==typeof e.ref&&te.current&&n&&te.current.stateNode!==n){var t=S(te.current.type);ne[t]||(b('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',S(te.current.type),e.ref),ne[t]=!0)}}(n,o)),n)V.call(n,i)&&!re.hasOwnProperty(i)&&(a[i]=n[i]);if(e&&e.defaultProps){var c=e.defaultProps;for(i in c)void 0===a[i]&&(a[i]=c[i])}if(l||s){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,n){var t=function(){J||(J=!0,b("%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)",n))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(a,u),s&&function(e,n){var t=function(){ee||(ee=!0,b("%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)",n))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}(a,u)}return oe(e,l,s,o,r,te.current,a)}var ae,le=y.ReactCurrentOwner,se=y.ReactDebugCurrentFrame;function ce(e){if(e){var n=e._owner,t=W(e.type,e._source,n?n.type:null);se.setExtraStackFrame(t)}else se.setExtraStackFrame(null)}function ue(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function de(){if(le.current){var e=S(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ae=!1;var fe={};function pe(e,n){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var n=de();if(!n){var t="string"==typeof e?e:e.displayName||e.name;t&&(n="\n\nCheck the top-level render call using <"+t+">.")}return n}(n);if(!fe[t]){fe[t]=!0;var r="";e&&e._owner&&e._owner!==le.current&&(r=" It was passed a child from "+S(e._owner.type)+"."),ce(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,r),ce(null)}}}function he(e,n){if("object"==typeof e)if(X(e))for(var t=0;t<e.length;t++){var r=e[t];ue(r)&&pe(r,n)}else if(ue(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var n=m&&e[m]||e[g];return"function"==typeof n?n:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)ue(i.value)&&pe(i.value,n)}}function me(e){var n,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)n=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==s&&t.$$typeof!==f)return;n=t.propTypes}if(n){var r=S(t);!function(e,n,t,r,o){var i=Function.call.bind(V);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var s=Error((r||"React class")+": "+t+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[a](n,a,r,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}l&&!(l instanceof Error)&&(G(o),b("%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).",r||"React class",t,a,typeof l),G(null)),l instanceof Error&&!(l.message in Y)&&(Y[l.message]=!0,G(o),b("Failed %s type: %s",t,l.message),G(null))}}(n,e.props,"prop",r,e)}else if(void 0!==t.PropTypes&&!ae){ae=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",S(t)||"Unknown")}"function"==typeof t.getDefaultProps&&!t.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ge(e,t,c,m,g,y){var $=function(e){return!!("string"==typeof e||"function"==typeof e||e===r||e===i||C||e===o||e===u||e===d||_||e===h||x||w||k||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===a||e.$$typeof===l||e.$$typeof===s||e.$$typeof===v||void 0!==e.getModuleId))}(e);if(!$){var E="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).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 T,D=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);E+=D||de(),null===e?T="null":X(e)?T="array":void 0!==e&&e.$$typeof===n?(T="<"+(S(e.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):T=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,E)}var M=ie(e,t,c,g,y);if(null==M)return M;if($){var O=t.children;if(void 0!==O)if(m)if(X(O)){for(var P=0;P<O.length;P++)he(O[P],e);Object.freeze&&Object.freeze(O)}else b("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 he(O,e)}return e===r?function(e){for(var n=Object.keys(e.props),t=0;t<n.length;t++){var r=n[t];if("children"!==r&&"key"!==r){ce(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ce(null);break}}null!==e.ref&&(ce(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),ce(null))}(M):me(M),M}var ye=function(e,n,t){return ge(e,n,t,!1)},be=function(e,n,t){return ge(e,n,t,!0)};QX.Fragment=r,QX.jsx=ye,QX.jsxs=be}()),QX}!function(e){"production"===process.env.NODE_ENV?e.exports=function(){if(YX)return KX;YX=1;var e=c,n=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,t,a){var l,s={},c=null,u=null;for(l in void 0!==a&&(c=""+a),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)r.call(t,l)&&!i.hasOwnProperty(l)&&(s[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps)void 0===s[l]&&(s[l]=t[l]);return{$$typeof:n,type:e,key:c,ref:u,props:s,_owner:o.current}}return KX.Fragment=t,KX.jsx=a,KX.jsxs=a,KX}():e.exports=ZX()}(GX);const JX=qX.jsx;var eQ,nQ,tQ,rQ,oQ,iQ=T.div(nQ||(nQ=mn(["\n display: flex;\n flex: 1;\n align-items: center;\n width: 100%;\n\n ","\n"],["\n display: flex;\n flex: 1;\n align-items: center;\n width: 100%;\n\n ","\n"])),(function(e){var n=e.theme;return D(eQ||(eQ=mn(["\n .Month {\n border: 1px solid ",";\n border-bottom: 3px solid ",";\n position: relative;\n user-select: none;\n cursor: pointer;\n }\n\n .Month--selected {\n border-bottom: 3px solid ",";\n "],["\n .Month {\n border: 1px solid ",";\n border-bottom: 3px solid ",";\n position: relative;\n user-select: none;\n cursor: pointer;\n }\n\n .Month--selected {\n border-bottom: 3px solid ",";\n "])),n.components.monthlyTab.border,n.components.monthlyTab.standard.borderBottom,n.components.monthlyTab.selected.borderBottom)})),aQ=T((e=>{const n=C();return m((()=>{const{onBeforeStart:t,onBeforeDrag:r,onStart:o,onMove:i,onStop:a,...l}=e,s=n.current,c=new VX({boundaries:s,...l});return t&&c.on("beforestart",t),r&&c.on("beforedrag",r),o&&c.on("start",o),i&&c.on("move",i),a&&c.on("stop",a),()=>c.destroy()}),[]),JX("div",{ref:n,className:e.className,id:e.id,children:e.children})}))(tQ||(tQ=mn(["\n display: flex;\n flex-direction: row;\n flex: 1;\n"],["\n display: flex;\n flex-direction: row;\n flex: 1;\n"]))),lQ=T(hl)(rQ||(rQ=mn(["\n font-size: 14px;\n margin-left: 8px;\n"],["\n font-size: 14px;\n margin-left: 8px;\n"]))),sQ=T(ma)(oQ||(oQ=mn(["\n height: 20px;\n text-align: center;\n margin-top: 8px;\n"],["\n height: 20px;\n text-align: center;\n margin-top: 8px;\n"]))),cQ=function(e){var n,t,r=e.data,o=e.onSelectionChange,i=e.monthText,a=void 0===i?[{singular:"documento",plural:"documenti"}]:i,l=e.preSelectedMonths,s=void 0===l?[1]:l,u=e.currentMonth,d=void 0===u?1:u,f=g(""),h=f[0],y=f[1],b=g(!1),v=b[0],x=b[1],w=(n=r.months.map((function(e){return e.amount})),t=Math.max.apply(Math,n),n.map((function(e){return e/t*100}))),k=g(new Set(s)),_=k[0],C=k[1],$=g(new Set(s)),S=$[0],E=$[1],T=g(new Set(s)),D=T[0],M=T[1];m((function(){v&&(1===_.size?y("Trascina per selezionare un intervallo di mesi"):_.size>1&&_.size<r.months.length?y("Rilascia il mouse per confermare la selezione"):y(""))}),[r.months.length,v,_]),m((function(){if(!v&&_.size>0){var e=Array.from(_,(function(e){return Number(e)}));if(!$e(_,S)){var n=e.map((function(e){return cn(cn({},r.months[e]),{month:e,monthName:kX(e)})}));if(0===n.length)return;o(n),E(new Set(_))}}}),[r.months,_,v,o,S]);var O=p((function(e){e.selection.clearSelection(),C(new Set(void 0))}),[]),P=p((function(e){var n=e.store.changed,t=n.added,r=n.removed;(t.length>0||r.length>0)&&(x(!0),C((function(e){M(e);var n=new Set(e);return wX(t).forEach((function(e){return e&&n.add(+e)})),wX(r).forEach((function(e){e&&n.delete(+e)})),n})))}),[]),R=p((function(){var e=Array.from(Array(r.months.length).keys(),(function(e){return e}));y(""),C(new Set(e))}),[r.months.length]);return c.createElement(c.Fragment,null,c.createElement(iQ,null,c.createElement(aQ,{onStart:O,onMove:P,onStop:function(){y(""),x(!1)},selectables:".Month"},r.months.map((function(e,n){var t=e.documents,r=e.amount;return c.createElement(DX,{key:"month-"+n,monthNumber:n,documents:t,percentage:w[n],selected:_.has(n)?_.has(n):D.has(n),monthText:a,amount:r,isCurrentMonth:n===d})}))),c.createElement(lQ,{text:"Seleziona tutto",color:"grey",size:"medium",onClick:R})),c.createElement(sQ,null,h))},uQ=(_n.grey[300],_n.white[100],_n.grey[600],_n.grey[50],_n.grey[100],function(e){var n=(void 0===e?{}:e).initialFilter,t=g(void 0===n?"":n),r=t[0],o=t[1],i=g([]);return{filter:r,setFilter:o,selection:i[0],setSelection:i[1]}}),dQ=function(e,n){return dQ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},dQ(e,n)};var fQ=function(){return fQ=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},fQ.apply(this,arguments)};var pQ="Pixel",hQ="Percent",mQ={unit:hQ,value:.8};function gQ(e){return"number"==typeof e?{unit:hQ,value:100*e}:"string"==typeof e?e.match(/^(\d*(\.\d+)?)px$/)?{unit:pQ,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:hQ,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),mQ):(console.warn("scrollThreshold should be string or number"),mQ)}var yQ,bQ,vQ,xQ,wQ=function(e){function n(n){var t=e.call(this,n)||this;return t.lastScrollTop=0,t.actionTriggered=!1,t.startY=0,t.currentY=0,t.dragging=!1,t.maxPullDownDistance=0,t.getScrollableTarget=function(){return t.props.scrollableTarget instanceof HTMLElement?t.props.scrollableTarget:"string"==typeof t.props.scrollableTarget?document.getElementById(t.props.scrollableTarget):(null===t.props.scrollableTarget&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n happen because the element may not have been added to DOM yet.\n See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n "),null)},t.onStart=function(e){t.lastScrollTop||(t.dragging=!0,e instanceof MouseEvent?t.startY=e.pageY:e instanceof TouchEvent&&(t.startY=e.touches[0].pageY),t.currentY=t.startY,t._infScroll&&(t._infScroll.style.willChange="transform",t._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},t.onMove=function(e){t.dragging&&(e instanceof MouseEvent?t.currentY=e.pageY:e instanceof TouchEvent&&(t.currentY=e.touches[0].pageY),t.currentY<t.startY||(t.currentY-t.startY>=Number(t.props.pullDownToRefreshThreshold)&&t.setState({pullToRefreshThresholdBreached:!0}),t.currentY-t.startY>1.5*t.maxPullDownDistance||t._infScroll&&(t._infScroll.style.overflow="visible",t._infScroll.style.transform="translate3d(0px, "+(t.currentY-t.startY)+"px, 0px)")))},t.onEnd=function(){t.startY=0,t.currentY=0,t.dragging=!1,t.state.pullToRefreshThresholdBreached&&(t.props.refreshFunction&&t.props.refreshFunction(),t.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame((function(){t._infScroll&&(t._infScroll.style.overflow="auto",t._infScroll.style.transform="none",t._infScroll.style.willChange="unset")}))},t.onScrollListener=function(e){"function"==typeof t.props.onScroll&&setTimeout((function(){return t.props.onScroll&&t.props.onScroll(e)}),0);var n=t.props.height||t._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;t.actionTriggered||((t.props.inverse?t.isElementAtTop(n,t.props.scrollThreshold):t.isElementAtBottom(n,t.props.scrollThreshold))&&t.props.hasMore&&(t.actionTriggered=!0,t.setState({showLoader:!0}),t.props.next&&t.props.next()),t.lastScrollTop=n.scrollTop)},t.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:n.dataLength},t.throttledOnScrollListener=function(e,n,t,r){var o,i=!1,a=0;function l(){o&&clearTimeout(o)}function s(){var s=this,c=Date.now()-a,u=arguments;function d(){a=Date.now(),t.apply(s,u)}i||(r&&!o&&d(),l(),void 0===r&&c>e?d():!0!==n&&(o=setTimeout(r?function(){o=void 0}:d,void 0===r?e-c:e)))}return"boolean"!=typeof n&&(r=t,t=n,n=void 0),s.cancel=function(){l(),i=!0},s}(150,t.onScrollListener).bind(t),t.onStart=t.onStart.bind(t),t.onMove=t.onMove.bind(t),t.onEnd=t.onEnd.bind(t),t}return function(e,n){function t(){this.constructor=e}dQ(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}(n,e),n.prototype.componentDidMount=function(){if(void 0===this.props.dataLength)throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"==typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!=typeof this.props.refreshFunction))throw new Error('Mandatory prop "refreshFunction" missing.\n Pull Down To Refresh functionality will not work\n as expected. Check README.md for usage\'')},n.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},n.prototype.componentDidUpdate=function(e){this.props.dataLength!==e.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},n.getDerivedStateFromProps=function(e,n){return e.dataLength!==n.prevDataLength?fQ(fQ({},n),{prevDataLength:e.dataLength}):null},n.prototype.isElementAtTop=function(e,n){void 0===n&&(n=.8);var t=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=gQ(n);return r.unit===pQ?e.scrollTop<=r.value+t-e.scrollHeight+1:e.scrollTop<=r.value/100+t-e.scrollHeight+1},n.prototype.isElementAtBottom=function(e,n){void 0===n&&(n=.8);var t=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=gQ(n);return r.unit===pQ?e.scrollTop+t>=e.scrollHeight-r.value:e.scrollTop+t>=r.value/100*e.scrollHeight},n.prototype.render=function(){var e=this,n=fQ({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),t=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),r=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return c.createElement("div",{style:r,className:"infinite-scroll-component__outerdiv"},c.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(n){return e._infScroll=n},style:n},this.props.pullDownToRefresh&&c.createElement("div",{style:{position:"relative"},ref:function(n){return e._pullDown=n}},c.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!t&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},n}(d),kQ=c.createElement("div",null,"Non ci sono elementi da visualizzare"),_Q=function(e){var n=e.columnsCount,t=e.EmptyPage;return c.createElement(CQ,{colSpan:n},t||kQ)},CQ=T.td(yQ||(yQ=mn(["\n text-align: center;\n padding: 1em;\n"],["\n text-align: center;\n padding: 1em;\n"]))),$Q=function(e){var n=e.text,t=e.onClick,r=e.isActive;return c.createElement(SQ,{isActive:r,onClick:t},n)},SQ=T.div.attrs((function(e){var n=e.theme,t=e.isActive,r=n.components.table.pagination.numbers,o=r.active,i=r.hover,a=r.normal,l=t?o:a,s=t?o:i;return{color:l.color,background:l.background,hoverColor:s.color,hoverBackground:s.background}}))(bQ||(bQ=mn(["\n border-radius: 0.3em;\n font-size: 1em;\n cursor: ",";\n\n width: 1.7em;\n height: 1.7em;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n color: ",";\n background: ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n"],["\n border-radius: 0.3em;\n font-size: 1em;\n cursor: ",";\n\n width: 1.7em;\n height: 1.7em;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n color: ",";\n background: ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n"])),(function(e){return e.isActive?"initial":"pointer"}),(function(e){return e.color}),(function(e){return e.background}),(function(e){return e.hoverColor}),(function(e){return e.hoverBackground})),EQ=function(e){var n=e.pageCount,t=e.pageIndex,r=e.gotoPage,o=u((function(){return Array.from({length:n}).map((function(e,n){return c.createElement($Q,{key:n,text:n+1,isActive:t===n,onClick:function(){return r(n)}})}))}),[r,n,t]),i=u((function(){return n<=8?o:t<=3?hn(hn([],o.slice(0,5),!0),["...",o[n-1]],!1):t>n-5?hn([o[0],"..."],o.slice(-6),!0):[o[0],"...",o[t-2],o[t-1],o[t],o[t+1],o[t+2],"...",o[n-1]]}),[o,n,t]);return c.createElement(c.Fragment,null,i)},TQ=function(e){var n=e.canPreviousPage,t=e.nextPage,r=e.previousPage,o=e.canNextPage,i=e.gotoPage,a=e.pageCount,l=e.pageIndex,s=M().components.table.pagination.buttons;return c.createElement(DQ,null,c.createElement(hl,{color:s,text:"Indietro",onClick:r,isDisabled:!n}),c.createElement(EQ,{pageCount:a,pageIndex:l,gotoPage:i}),c.createElement(hl,{color:s,text:"Avanti",onClick:t,isDisabled:!o}))},DQ=T.div(vQ||(vQ=mn(["\n border-top: 1px solid ",";\n background-color: ",";\n color: ",";\n font-size: 14px;\n\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 1.5em;\n padding: 1em;\n"],["\n border-top: 1px solid ",";\n background-color: ",";\n color: ",";\n font-size: 14px;\n\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 1.5em;\n padding: 1em;\n"])),(function(e){return e.theme.palette.grey[200]}),(function(e){return e.theme.palette.white[100]}),(function(e){return e.theme.palette.black[100]})),MQ=function(e){var n=e.count,t=e.resetSelection,r=M().components.table.selectedRowsCount.resetButtonColor;return c.createElement(OQ,null,c.createElement("div",null,n," elementi selezionati"),c.createElement(hl,{type:"text",color:r,text:"Annulla selezione",onClick:t}))},OQ=T.div(xQ||(xQ=mn(["\n height: 40px;\n background: ",";\n color: ",";\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 8px;\n padding: 8px;\n"],["\n height: 40px;\n background: ",";\n color: ",";\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 8px;\n padding: 8px;\n"])),(function(e){return e.theme.components.table.selectedRowsCount.background}),(function(e){return e.theme.components.table.selectedRowsCount.color})),PQ=function(){return PQ=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},PQ.apply(this,arguments)};var RQ,NQ,AQ,IQ,FQ,LQ,jQ,zQ,BQ,HQ,UQ,WQ,VQ,YQ,qQ,GQ,KQ,XQ,QQ,ZQ,JQ=function(e){var n=e.animate,t=void 0===n||n,r=e.animateBegin,o=e.backgroundColor,i=void 0===o?"#f5f6f7":o,a=e.backgroundOpacity,l=void 0===a?1:a,s=e.baseUrl,c=void 0===s?"":s,u=e.children,d=e.foregroundColor,f=void 0===d?"#eee":d,p=e.foregroundOpacity,h=void 0===p?1:p,m=e.gradientRatio,g=void 0===m?2:m,y=e.gradientDirection,b=void 0===y?"left-right":y,v=e.uniqueKey,w=e.interval,k=void 0===w?.25:w,_=e.rtl,C=void 0!==_&&_,$=e.speed,E=void 0===$?1.2:$,T=e.style,D=void 0===T?{}:T,M=e.title,O=void 0===M?"Loading...":M,P=e.beforeMask,R=void 0===P?null:P,N=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}(e,["animate","animateBegin","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","gradientDirection","uniqueKey","interval","rtl","speed","style","title","beforeMask"]),A=v||Math.random().toString(36).substring(6),I=A+"-diff",F=A+"-animated-diff",L=A+"-aria",j=C?{transform:"scaleX(-1)"}:null,z="0; "+k+"; 1",B=E+"s",H="top-bottom"===b?"rotate(90)":void 0;return x("svg",PQ({"aria-labelledby":L,role:"img",style:PQ(PQ({},D),j)},N),O?x("title",{id:L},O):null,R&&S(R)?R:null,x("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+c+"#"+I+")",style:{fill:"url("+c+"#"+F+")"}}),x("defs",null,x("clipPath",{id:I},u),x("linearGradient",{id:F,gradientTransform:H},x("stop",{offset:"0%",stopColor:i,stopOpacity:l},t&&x("animate",{attributeName:"offset",values:-g+"; "+-g+"; 1",keyTimes:z,dur:B,repeatCount:"indefinite",begin:r})),x("stop",{offset:"50%",stopColor:f,stopOpacity:h},t&&x("animate",{attributeName:"offset",values:-g/2+"; "+-g/2+"; "+(1+g/2),keyTimes:z,dur:B,repeatCount:"indefinite",begin:r})),x("stop",{offset:"100%",stopColor:i,stopOpacity:l},t&&x("animate",{attributeName:"offset",values:"0; 0; "+(1+g),keyTimes:z,dur:B,repeatCount:"indefinite",begin:r})))))},eZ=function(e){return e.children?x(JQ,PQ({},e)):x(nZ,PQ({},e))},nZ=function(e){return x(eZ,PQ({viewBox:"0 0 476 124"},e),x("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),x("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),x("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),x("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),x("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),x("circle",{cx:"20",cy:"20",r:"20"}))},tZ=eZ,rZ=function(e){var n=e.column,t="selection"===n.id,r=t?26:n.width?+n.width:150;return c.createElement(oZ,{style:{margin:t?"0 12px":"0"},speed:2,width:r,height:26,animate:!0,viewBox:"0 0 "+r+" 36"},c.createElement("rect",{x:"0",y:"9",rx:"5",ry:"5",width:r,height:"26"}))},oZ=T(tZ)(RQ||(RQ=mn(["\n max-width: 100%;\n width: auto;\n clear: both;\n"],["\n max-width: 100%;\n width: auto;\n clear: both;\n"]))),iZ=T((function(e){var n=e.children,t=e.align,r=e.isLoading,o=un(e,["children","align","isLoading"]);return c.createElement("td",cn({},o),c.createElement(lZ,{align:t||"left",isLoading:!!r},n))}))(NQ||(NQ=mn(["\n font-size: 14px;\n display: flex;\n flex-direction: row;\n align-items: center;\n"],["\n font-size: 14px;\n display: flex;\n flex-direction: row;\n align-items: center;\n"]))),aZ={left:"flex-start",center:"center",right:"flex-end"},lZ=T.div(AQ||(AQ=mn(["\n margin: 0 ",";\n display: flex;\n justify-content: ",";\n align-items: center;\n gap: 8px;\n flex: 1;\n"],["\n margin: 0 ",";\n display: flex;\n justify-content: ",";\n align-items: center;\n gap: 8px;\n flex: 1;\n"])),(function(e){return e.isLoading?"0":"16px"}),(function(e){var n=e.align;return aZ[n]})),sZ=function(e){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){return hn(hn([],e,!0),[n.id],!1)}),[]))&&void 0!==n?n:[]},cZ=T((function(e){var n=e.children,t=un(e,["children"]);return c.createElement("th",cn({},t),c.createElement(uZ,null,n))}))(IQ||(IQ=mn(["\n font-size: 14px;\n display: flex;\n flex-direction: row;\n align-items: center;\n"],["\n font-size: 14px;\n display: flex;\n flex-direction: row;\n align-items: center;\n"]))),uZ=T.div(FQ||(FQ=mn(["\n display: flex;\n flex: 1;\n justify-content: space-between;\n margin: 0 16px;\n"],["\n display: flex;\n flex: 1;\n justify-content: space-between;\n margin: 0 16px;\n"]))),dZ=T.table(LQ||(LQ=mn(["\n width: 100%;\n border-collapse: collapse;\n border-spacing: 0;\n\n "," + "," {\n border-left: 1px solid ",";\n }\n\n "," + "," {\n border-left: 1px solid transparent;\n }\n\n td {\n overflow: hidden;\n }\n"],["\n width: 100%;\n border-collapse: collapse;\n border-spacing: 0;\n\n "," + "," {\n border-left: 1px solid ",";\n }\n\n "," + "," {\n border-left: 1px solid transparent;\n }\n\n td {\n overflow: hidden;\n }\n"])),cZ,cZ,(function(e){return e.theme.palette.grey[100]}),iZ,iZ),fZ=T.thead(jQ||(jQ=mn(["\n display: block;\n width: 100%;\n background-color: ",";\n border-bottom: 1px solid ",";\n padding-right: ",";\n box-sizing: border-box;\n"],["\n display: block;\n width: 100%;\n background-color: ",";\n border-bottom: 1px solid ",";\n padding-right: ",";\n box-sizing: border-box;\n"])),(function(e){return e.theme.components.table.header.background}),(function(e){return e.theme.palette.grey[100]}),(function(e){var n=e.scrollBar;return n?n+"px":0})),pZ=T.tbody(zQ||(zQ=mn(["\n height: ",";\n display: block;\n overflow-y: auto; /* Trigger vertical scroll */\n overflow-x: hidden; /* Hide the horizontal scroll */\n /* cursor: pointer; */\n\n /* :focus-within {\n cursor: none;\n } */\n"],["\n height: ",";\n display: block;\n overflow-y: auto; /* Trigger vertical scroll */\n overflow-x: hidden; /* Hide the horizontal scroll */\n /* cursor: pointer; */\n\n /* :focus-within {\n cursor: none;\n } */\n"])),(function(e){var n=e.bodyHeight;return""+Mn(n)})),hZ=T.tr(HQ||(HQ=mn(["\n ",";\n ","\n"],["\n ",";\n ","\n"])),(function(e){var n=e.rowHeight;return n?"height: "+Mn(n):""}),(function(e){var n=e.isHeader,t=e.headerHeight;return n&&D(BQ||(BQ=mn(["\n ",";\n background-color: ",";\n color: ",";\n "],["\n ",";\n background-color: ",";\n color: ",";\n "])),t?"height: "+Mn(t):"",(function(e){return e.theme.components.table.header.background}),(function(e){return e.theme.components.table.header.color}))})),mZ=T.tfoot(UQ||(UQ=mn(["\n border-top: 1px solid ",";\n background-color: ",";\n color: ",";\n font-size: 14px;\n"],["\n border-top: 1px solid ",";\n background-color: ",";\n color: ",";\n font-size: 14px;\n"])),(function(e){return e.theme.palette.grey[200]}),(function(e){return e.theme.palette.white[100]}),(function(e){return e.theme.palette.black[100]})),gZ=T(hZ).attrs((function(e){var n=e.theme,t=e.isDisabled,r=e.isSelected,o=n.components.table.rows,i=o.normal,a=o.disabled,l=o.selected,s=o.hover,c=t?a:r?l:i,u=c.background,d=c.color,f=t?a:r?l:s,p=f.background;return{background:u,color:d,hoverColor:f.color,hoverBackground:p}}))(YQ||(YQ=mn(["\n padding: 5px 0;\n transition: background-color 200ms ease;\n\n background-color: ",";\n color: ",";\n\n ","\n\n :focus {\n ","\n }\n"],["\n padding: 5px 0;\n transition: background-color 200ms ease;\n\n background-color: ",";\n color: ",";\n\n ","\n\n :focus {\n ","\n }\n"])),(function(e){return e.background}),(function(e){return e.color}),(function(e){var n=e.rowHasFocus,t=e.hoverBackground,r=e.hoverColor;return!n&&D(WQ||(WQ=mn(["\n :hover {\n background-color: ",";\n color: ",";\n }\n "],["\n :hover {\n background-color: ",";\n color: ",";\n }\n "])),t,r)}),(function(e){var n=e.hoverBackground,t=e.hoverColor;return D(VQ||(VQ=mn(["\n background-color: ",";\n color: ",";\n outline: 0 solid transparent;\n "],["\n background-color: ",";\n color: ",";\n outline: 0 solid transparent;\n "])),n,t)})),yZ=function(e){var n=e.isLoading,t=e.onRowClick,r=e.prepareRow,o=e.rowHasFocus,i=e.rowHeight,a=e.rows,l=e.selectableRows,s=e.selectedRowsIds,u=e.setHighlightedRow,d=e.tableId;return c.createElement(c.Fragment,null,a.map((function(e,a){r(e);var f=e.original.isDisabled,p=function(){null==t||t(e),l&&e.toggleRowSelected()},h=e.getRowProps((function(e){return cn(cn({},e),{isDisabled:f,onClick:p})})),m=h.key,g=un(h,["key"]);return c.createElement(gZ,cn({id:d+"_"+a+"_row",tabIndex:-1,spellCheck:!1,key:m,onMouseEnter:function(){return!o&&u(a)},isDisabled:f,isSelected:s.includes(e.id),rowHeight:i,rowHasFocus:o},g),e.cells.map((function(e){var t=e.getCellProps(),r=t.key,o=un(t,["key"]);return c.createElement(iZ,cn({key:r},o,{align:e.column.align,isLoading:n}),c.createElement(c.Fragment,null,n?c.createElement(rZ,{column:e.column,key:r}):e.render("Cell")))})))})))},bZ=c.createElement(Ln,{icon:se}),vZ=c.createElement(Ln,{icon:ce}),xZ=c.createElement(Ln,{icon:ue}),wZ=function(e){var n=e.isSorted,t=e.isSortedDesc;return n?t?vZ:xZ:bZ},kZ=function(e){var n=e.headerHeight,t=e.headerGroups,r=e.scrollBar;return c.createElement(fZ,{scrollBar:r},t.map((function(e){var t=e.getHeaderGroupProps(),r=t.key,o=un(t,["key"]);return c.createElement(hZ,cn({isHeader:!0,headerHeight:n,key:r},o),e.headers.map((function(e){var n=e.getHeaderProps(cn(cn({},e.getSortByToggleProps()),e)),t=n.key,r={align:n.align,colSpan:n.colSpan,id:n.id,onClick:n.onClick,role:n.role,style:n.style,title:n.title,width:n.width};return c.createElement(cZ,cn({key:t},r),e.render("Header"),e.canSort&&c.createElement(wZ,{isSorted:e.isSorted,isSortedDesc:e.isSortedDesc}))})))})))},_Z=function(e){var n=e.row,r=e.actions,o=e.rowIsDisabled,i=M().components.table.actions.dropdownTriggerColor,a=p((function(){return c.createElement(ml,{color:i,icon:{icon:t,fixedWidth:!0}})}),[i]),l=u((function(){return r.map((function(e){var t=e.isDisabled,r=e.onClick,i=un(e,["isDisabled","onClick"]);return cn(cn({},i),{isDisabled:t||o,onClick:function(){return r(n)}})}))}),[r,n,o]);return c.createElement(bA,{placement:"right-start",renderTrigger:a,content:l})},CZ=function(e){var n=e.action,t=e.row,r=e.rowIsDisabled,o=e.type,i=void 0===o?"default":o,a=n.text,l=n.onClick,s=n.isDisabled,u=M().components.table.actions.colors[i];return c.createElement(hl,{color:u,type:"text",text:a,onClick:function(){return l(t)},isDisabled:s||r})},$Z=function(e){var n,t=e.row,r=e.actions,o=e.renderActions,i=t.original.isDisabled;return c.createElement(c.Fragment,null,null==o?void 0:o(),(null==r?void 0:r.primary)&&c.createElement(CZ,{row:t,action:r.primary,rowIsDisabled:i}),(null===(n=null==r?void 0:r.dropdown)||void 0===n?void 0:n.length)&&c.createElement(_Z,{row:t,actions:r.dropdown,rowIsDisabled:i}))},SZ=function(e){var n=e.row,t=n.getToggleRowSelectedProps(),r=t.checked,o=t.onChange,i=un(t,["checked","onChange"]);return c.createElement(hH,cn({value:r?QB.CHECKED:QB.UNCHECKED,onChange:o,disabled:n.original.isDisabled},i))},EZ=function(e){return!e.original.isDisabled},TZ=function(e){var n=e.headerProps,t=e.selectSinglePage,r=void 0!==t&&t,o=n.getToggleAllPageRowsSelectedProps,i=n.toggleRowSelected,a=n.getToggleAllRowsSelectedProps,l=n.rows,s=n.page,c=r?s:l,u=r?o():a(),d=function(e){return e.filter(EZ).every((function(e){return e.isSelected}))}(c),f=0===c.filter(EZ).length,p=!f&&d,h=!p&&c.some((function(e){return e.isSelected}));return cn(cn({},u),{checked:p,indeterminate:h,onChange:function(){c.forEach((function(e){return i(e.id,!d&&EZ(e))}))},disabled:f})},DZ=function(e){var n=TZ({headerProps:e}),t=n.indeterminate,r=n.checked,o=un(n,["indeterminate","checked"]),i=r?QB.CHECKED:t?QB.INDETERMINATE:QB.UNCHECKED;return c.createElement(hH,cn({value:i},o))},MZ=function(e){e.visibleColumns.push((function(e){return hn([{id:"selection",Header:DZ,Cell:SZ,width:50,canResize:!1,align:"left"}],e,!0)}))},OZ=function(e){var n=e.actions,t=e.bodyHeight,r=void 0===t?300:t,o=e.columns,i=e.data,a=e.EmptyPage,l=e.Footer,s=e.globalFilter,d=e.headerHeight,f=void 0===d?40:d,h=e.hideHeader,y=void 0!==h&&h,b=e.isLoading,v=void 0!==b&&b,x=e.manualPagination,w=e.noPagination,k=void 0!==w&&w,_=e.onRowClick,C=e.onScroll,$=e.onSelectionChange,S=e.onSort,T=e.preSelectAllRows,D=e.renderActions,M=e.actionsHeader,O=e.rowHeight,P=void 0===O?40:O,R=e.selectableRows,N=void 0!==R&&R,A=e.sortable,I=void 0===A||A,F=e.withCheckbox,L=void 0!==F&&F,j=e.pageSize,z=void 0===j?20:j,B=e.disableArrowNavigation,H=void 0!==B&&B,U=g(Pn())[0],W=function(e){var n=e.actions,t=e.renderActions,r=e.withCheckbox,o=e.selectableRows,i=e.actionsHeader,a=void 0===i?"Azioni":i,l=[Xe,Qe,Ze,Je,en];return(o||r)&&(l.push(Ke),r&&l.push(MZ)),(n||t)&&l.push((function(e){e.visibleColumns.push((function(e){return hn(hn([],e,!0),[{id:"actions",Header:a,align:"center",Cell:function(e){var r=e.row;return c.createElement($Z,{row:r,actions:n,renderActions:t})}}],!1)}))})),l}({actions:n,renderActions:D,withCheckbox:L,selectableRows:N,actionsHeader:M}),V=nn.apply(void 0,hn([{columns:o,data:i,manualFilters:!0,disableSortBy:!I,manualSortBy:!!S,manualPagination:k||!!x,autoResetSelectedRows:!0,autoResetPage:!0,pageCount:null==x?void 0:x.pageCount,initialState:{selectedRowIds:T?Array.from(Array(i.length).keys()).reduce((function(e,n){var t;return Object.assign(e,((t={})[n]=!0,t))}),{}):{},pageSize:z}}],W,!1)),Y=V.getTableBodyProps,q=V.getTableProps,G=V.headerGroups,K=V.prepareRow,X=V.page,Q=V.state,Z=V.allColumns,J=V.canPreviousPage,ee=V.canNextPage,ne=V.pageCount,te=V.gotoPage,re=V.nextPage,oe=V.previousPage,ie=V.selectedFlatRows,ae=V.toggleAllRowsSelected,le=V.setGlobalFilter,se=function(e,n,t,r){var o=g([]),i=o[0],a=o[1],l=g(n?sZ(e):[]),s=l[0],c=l[1];return m((function(){if(e&&e.length!==i.length){var n=sZ(e);if(t){var o=e.filter((function(e){return!s.includes(e.id)})),l=[],u=[];r.forEach((function(e){!n.includes(e.id)&&i.includes(e.id)&&(l.push(e.id),u.push(e))})),t(e,o,u)}c(n),a(sZ(e))}}),[i,t,r,e,s]),s}(ie,Boolean(T),$,X),ce=p((function(){return null==ae?void 0:ae(!1)}),[ae]);m((function(){return le(s)}),[s,le]);var ue=Q.pageIndex,de=Q.sortBy;m((function(){return null==x?void 0:x.setCurrentPage(ue+1)}),[x,ue]),m((function(){return null==S?void 0:S(de)}),[S,de]);var fe=g(0),pe=fe[0],he=fe[1];E((function(){var e=document.getElementById(U),n=document.getElementById(U+"_body");e&&n&&(null==e?void 0:e.clientWidth)-(null==n?void 0:n.clientWidth)>0?he((null==e?void 0:e.clientWidth)-(null==n?void 0:n.clientWidth)):he(0)}),[U]);var me=p((function(e){return null==_?void 0:_(X[e])}),[_,X]),ge=iA(U+"_body",U+"_:id_row",H,me,X.length),ye=ge[1],be=ge[2],ve=u((function(){return y?c.createElement(c.Fragment,null):c.createElement(kZ,{selectedRowsIds:se,headerHeight:null!=f?f:40,headerGroups:G,scrollBar:pe,sortBy:de})}),[y,se,f,G,pe,de]),xe=(null==Z?void 0:Z.length)||0,we=(null==ie?void 0:ie.length)||0,ke=u((function(){return X.length?c.createElement(yZ,{tableId:U,isLoading:v,prepareRow:K,rows:X,selectedRowsIds:se,onRowClick:_,rowHeight:null!=P?P:40,selectableRows:N,setHighlightedRow:ye,rowHasFocus:be}):c.createElement(_Q,{columnsCount:xe,EmptyPage:a})}),[a,xe,v,_,X,K,U,be,P,N,se,ye]),_e=u((function(){return we>0||l?c.createElement(mZ,null,we>0&&c.createElement("tr",null,c.createElement("td",{colSpan:xe},c.createElement(MQ,{count:we,resetSelection:ce}))),l&&c.createElement("tr",null,c.createElement("td",{colSpan:xe},l))):c.createElement(c.Fragment,null)}),[l,xe,ce,we]),Ce=c.createElement(dZ,cn({},q(),{id:U}),ve,c.createElement(pZ,cn({id:U+"_body",tabIndex:0},Y(),{bodyHeight:null!=r?r:300}),ke),_e);return k?c.createElement(wQ,{dataLength:X.length,next:function(){return null==C?void 0:C()},hasMore:!0,loader:c.createElement(c.Fragment,null),scrollableTarget:U+"_body",scrollThreshold:1},Ce):c.createElement(c.Fragment,null,Ce,c.createElement(TQ,{pageIndex:ue,pageCount:ne,gotoPage:te,canPreviousPage:J,nextPage:re,previousPage:oe,canNextPage:ee}))},PZ=(_n.grey[50],_n.black[100],_n.white[100],_n.black[100],_n.black[100],_n.blue[50],_n.black[100],_n.blue[100],_n.grey[800],_n.grey[100],_n.yellow[50],_n.black[100],_n.white[100],_n.black[100],_n.blue[50],_n.blue[500],_n.blue[500],_n.white[100],T.div(qQ||(qQ=mn(["\n display: flex;\n justify-content: center;\n width: 100%;\n margin-top: 2rem;\n"],["\n display: flex;\n justify-content: center;\n width: 100%;\n margin-top: 2rem;\n"])))),RZ=T.div(GQ||(GQ=mn(["\n padding: 2px;\n margin-right: 4px;\n margin-left: 4px;\n font-size: 14px;\n line-height: 24px;\n cursor: pointer;\n box-sizing: content-box;\n\n &.deactivated {\n opacity: 0.6;\n cursor: not-allowed;\n }\n\n &.selected {\n font-weight: 500;\n border-radius: 4px;\n height: 24px;\n width: 24px;\n text-align: center;\n }\n"],["\n padding: 2px;\n margin-right: 4px;\n margin-left: 4px;\n font-size: 14px;\n line-height: 24px;\n cursor: pointer;\n box-sizing: content-box;\n\n &.deactivated {\n opacity: 0.6;\n cursor: not-allowed;\n }\n\n &.selected {\n font-weight: 500;\n border-radius: 4px;\n height: 24px;\n width: 24px;\n text-align: center;\n }\n"]))),NZ=T(RZ)(KQ||(KQ=mn(["\n color: ",";\n background-color: ",";\n width: 24px;\n height: 24px;\n text-align: center;\n border-radius: 4px;\n &:hover {\n color: ",";\n background-color: ",";\n }\n &.selected {\n color: ",";\n background-color: ",";\n }\n"],["\n color: ",";\n background-color: ",";\n width: 24px;\n height: 24px;\n text-align: center;\n border-radius: 4px;\n &:hover {\n color: ",";\n background-color: ",";\n }\n &.selected {\n color: ",";\n background-color: ",";\n }\n"])),(function(e){return e.theme.components.pagination.numbers.normal.color}),(function(e){return e.theme.components.pagination.numbers.normal.backgroundColor}),(function(e){return e.theme.components.pagination.numbers.hover.color}),(function(e){return e.theme.components.pagination.numbers.hover.backgroundColor}),(function(e){return e.theme.components.pagination.numbers.active.color}),(function(e){return e.theme.components.pagination.numbers.active.backgroundColor})),AZ=T(RZ)(XQ||(XQ=mn(["\n color: ",";\n background-color: ",";\n &.deactivated {\n color: ",";\n background-color: ",";\n }\n"],["\n color: ",";\n background-color: ",";\n &.deactivated {\n color: ",";\n background-color: ",";\n }\n"])),(function(e){return e.theme.components.pagination.buttons.normal.color}),(function(e){return e.theme.components.pagination.buttons.normal.backgroundColor}),(function(e){return e.theme.components.pagination.buttons.disabled.color}),(function(e){return e.theme.components.pagination.buttons.disabled.backgroundColor})),IZ=function(e){var n=e.totalPages,t=e.changePageAction,r=e.currentPage,o=e.listSize,i=e.nextText,a=e.pageSize,l=e.prevText,s=e.nextPageAction,d=e.prevPageAction,f=u((function(){return n||Math.ceil(o/(0===a?1:a))}),[o,a,n]),p=Math.min(r,f),h=tn(p-3,p+4).filter((function(e){return e>0&&e<=f})),m=d&&r>1,g=s&&f>r;return c.createElement(PZ,null,c.createElement(AZ,{onClick:function(){d&&m&&d()},className:m?"":"deactivated"},l),h.includes(1)?null:c.createElement(c.Fragment,null,c.createElement(NZ,{onClick:function(){t(1)},className:1===r?"selected":""},"1"),h[0]-1!=1?c.createElement(NZ,null,"..."):null),h.map((function(e,n){return c.createElement(NZ,{key:n,onClick:function(){t(e)},className:e===p?"selected":""},e)})),h.includes(f)?null:c.createElement(c.Fragment,null,f-h[h.length-1]!=1?c.createElement(NZ,null,"..."):null,c.createElement(NZ,{onClick:function(){t(f)},className:r===f?"selected":""},f)),c.createElement(AZ,{onClick:function(){s&&g&&s()},className:g?"":"deactivated"},i))};_n.white[100],_n.grey[800],_n.white[100],_n.blue[500],_n.blue[500],_n.white[100],_n.blue[50],_n.blue[500],_n.white[100],_n.black[100];!function(e){e.GREY="grey",e.RED="red",e.BLUE="blue",e.YELLOW="yellow",e.GREEN="green"}(QQ||(QQ={})),function(e){e.GREY="grey",e.RED="red",e.BLUE="blue",e.YELLOW="yellow",e.GREEN="green"}(ZQ||(ZQ={}));var FZ,LZ,jZ,zZ,BZ,HZ,UZ,WZ,VZ,YZ,qZ,GZ,KZ,XZ,QZ,ZZ,JZ,eJ,nJ,tJ,rJ,oJ=T.div(FZ||(FZ=mn(["\n height: ",";\n background-color: ",";\n position: relative;\n border-radius: 100px;\n"],["\n height: ",";\n background-color: ",";\n position: relative;\n border-radius: 100px;\n"])),Ca.s,(function(e){return e.theme.palette.grey[100]})),iJ=T.div(LZ||(LZ=mn(["\n position: absolute;\n height: 100%;\n z-index: 1;\n border-radius: 100px;\n transition: width 0.35s ease-in-out;\n\n background-color: ",";\n width: ","%;\n max-width: 100%;\n"],["\n position: absolute;\n height: 100%;\n z-index: 1;\n border-radius: 100px;\n transition: width 0.35s ease-in-out;\n\n background-color: ",";\n width: ","%;\n max-width: 100%;\n"])),(function(e){var n=e.theme,t=e.color;return n.components.progressBar[null!=t?t:ZQ.BLUE].backgroundColor}),(function(e){return e.percentage})),aJ=function(e){return c.createElement(oJ,null,c.createElement(iJ,cn({},e)))},lJ=(_n.grey[500],_n.green[500],_n.blue[500],_n.yellow[500],_n.red[500],_n.blue[500],_n.blue[100],_n.white[100],_n.blue[500],_n.grey[500],_n.grey[100],_n.white[100],_n.grey[200],T.div(jZ||(jZ=mn(["\n display: flex;\n flex-direction: row;\n cursor: pointer;\n height: 32px;\n\n & div:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n margin-left: 0;\n }\n\n & div:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n }\n"],["\n display: flex;\n flex-direction: row;\n cursor: pointer;\n height: 32px;\n\n & div:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n margin-left: 0;\n }\n\n & div:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n }\n"])))),sJ=T.div(HZ||(HZ=mn(["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-left: -1px;\n position: relative;\n padding: 4px 8px;\n gap: 8px;\n\n ","\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-left: -1px;\n position: relative;\n padding: 4px 8px;\n gap: 8px;\n\n ","\n"])),(function(e){var n=e.active,t=e.theme;return n?D(zZ||(zZ=mn(["\n border: 1px solid ",";\n color: ",";\n background-color: ",";\n z-index: 1;\n "],["\n border: 1px solid ",";\n color: ",";\n background-color: ",";\n z-index: 1;\n "])),t.components.segmentButton.selected.border,t.components.segmentButton.selected.primary,t.components.segmentButton.selected.background):D(BZ||(BZ=mn(["\n border: 1px solid ",";\n color: ",";\n background-color: ",";\n "],["\n border: 1px solid ",";\n color: ",";\n background-color: ",";\n "])),t.components.segmentButton.unselected.border,t.components.segmentButton.unselected.primary,t.components.segmentButton.unselected.background)})),cJ=T.div(VZ||(VZ=mn(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: ",";\n min-width: ",";\n border-radius: 4px;\n\n ","\n"],["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: ",";\n min-width: ",";\n border-radius: 4px;\n\n ","\n"])),(function(e){return e.isLoading?"0px 2px":"0px 4px"}),(function(e){return e.isLoading?"18px":"14px"}),(function(e){var n=e.active,t=e.theme;return n?D(UZ||(UZ=mn(["\n color: ",";\n background-color: ",";\n "],["\n color: ",";\n background-color: ",";\n "])),t.components.segmentButton.selected.primary,t.components.segmentButton.selected.secondary):D(WZ||(WZ=mn(["\n color: ",";\n background-color: ",";\n "],["\n color: ",";\n background-color: ",";\n "])),t.components.segmentButton.unselected.primary,t.components.segmentButton.unselected.secondary)})),uJ=O(YZ||(YZ=mn(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"],["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))),dJ=T.div(qZ||(qZ=mn(["\n width: 14px;\n height: 18px;\n border-radius: 50% !important;\n border: 2px solid transparent;\n border-top-color: ",";\n animation: "," 1s linear infinite;\n margin: auto;\n"],["\n width: 14px;\n height: 18px;\n border-radius: 50% !important;\n border: 2px solid transparent;\n border-top-color: ",";\n animation: "," 1s linear infinite;\n margin: auto;\n"])),(function(e){var n=e.active,t=e.theme;return n?t.components.segmentButton.selected.primary:t.components.segmentButton.unselected.primary}),uJ),fJ=function(e){var n=e.onChange,t=e.preselected,r=e.segments,o=e.isLoading,i=g(t&&t>=0&&t<r.length?t:0),a=i[0],l=i[1];return c.createElement(lJ,null,r.map((function(e,t){return c.createElement(sJ,{key:t,active:a===t,onClick:function(){l(t),null==n||n(t,e)}},e.icon&&c.createElement(Ln,cn({},e.icon)),e.text&&c.createElement("div",null,e.text),void 0!==e.counter&&c.createElement(cJ,{isLoading:o,active:a===t},o?c.createElement(dJ,{active:a===t}):e.counter))})))},pJ=c.createElement(Ln,{icon:U,fixedWidth:!0}),hJ=function(e){var n=e.text,t=void 0===n?"":n,r=e.number,o=e.status,i="completed"===o?pJ:r+1;return c.createElement(yJ,{status:o},c.createElement(mJ,null,i),c.createElement(gJ,null,t))},mJ=T.div(GZ||(GZ=mn(["\n border-radius: 50%;\n\n width: 2em;\n height: 2em;\n\n display: flex;\n justify-content: center;\n align-items: center;\n"],["\n border-radius: 50%;\n\n width: 2em;\n height: 2em;\n\n display: flex;\n justify-content: center;\n align-items: center;\n"]))),gJ=T.div(KZ||(KZ=mn([""],[""]))),yJ=T.div.attrs((function(e){var n=e.theme,t=e.status;return n.components.stepper.item[t]}))(XZ||(XZ=mn(["\n "," {\n color: ",";\n background: ",";\n }\n\n "," {\n color: ",";\n }\n\n display: inline-flex;\n align-items: center;\n gap: 0.6em;\n"],["\n "," {\n color: ",";\n background: ",";\n }\n\n "," {\n color: ",";\n }\n\n display: inline-flex;\n align-items: center;\n gap: 0.6em;\n"])),mJ,(function(e){return e.circleTextColor}),(function(e){return e.circleBackground}),gJ,(function(e){return e.color})),bJ=T.div(QZ||(QZ=mn(["\n width: 2.5em;\n height: 0.1em;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(51, 51, 51, 0.16) 50%, rgba(0, 0, 0, 0) 100%);\n"],["\n width: 2.5em;\n height: 0.1em;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(51, 51, 51, 0.16) 50%, rgba(0, 0, 0, 0) 100%);\n"]))),vJ=function(e,n){return e<n?"completed":e===n?"active":"normal"},xJ=function(e){var n=e.steps,t=e.currentStep,r=u((function(){return n.reduce((function(e,n,r){return 0===r?[c.createElement(hJ,{key:r,number:r,status:vJ(r,t),text:n})]:hn(hn([],e,!0),[c.createElement(bJ,{key:"divider_"+r}),c.createElement(hJ,{key:r,number:r,status:vJ(r,t),text:n})],!1)}),[])}),[n,t]);return c.createElement(wJ,null,r)},wJ=T.div(ZZ||(ZZ=mn(["\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: center;\n gap: 0.6em;\n"],["\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: center;\n gap: 0.6em;\n"]))),kJ=(_n.grey[500],_n.grey[500],_n.white[100],_n.blue[500],_n.blue[500],_n.white[100],_n.grey[500],_n.green[500],_n.white[100],_n.white[100],_n.grey[600],_n.white[100],_n.yellow[500],_n.white[100],_n.green[500],_n.white[100],_n.blue[500],_n.white[100],_n.red[500],_n.grey[900],_n.grey[100],_n.yellow[900],_n.yellow[50],_n.green[900],_n.green[50],_n.blue[900],_n.blue[50],_n.red[900],_n.red[50],_n.grey[800],_n.yellow[500],_n.green[500],_n.indigo[500],_n.red[500],T.div(JZ||(JZ=mn(["\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n gap: 8px;\n padding: 16px;\n border-radius: 100px;\n color: ",";\n background-color: ",";\n"],["\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n gap: 8px;\n padding: 16px;\n border-radius: 100px;\n color: ",";\n background-color: ",";\n"])),(function(e){var n=e.theme,t=e.type;return n.components.tip[t].color}),(function(e){var n=e.theme,t=e.type;return n.components.tip[t].backgroundColor}))),_J=T.span(eJ||(eJ=mn(["\n font-size: 20px;\n"],["\n font-size: 20px;\n"]))),CJ=T.span(nJ||(nJ=mn(["\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 21px;\n white-space: nowrap;\n"],["\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 21px;\n white-space: nowrap;\n"]))),$J=T.div(tJ||(tJ=mn(["\n margin-left: 32px;\n line-height: 20px;\n cursor: pointer;\n"],["\n margin-left: 32px;\n line-height: 20px;\n cursor: pointer;\n"])));!function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success"}(rJ||(rJ={}));var SJ,EJ={icon:I},TJ=function(e){var n=e.className,t=e.closeIcon,r=e.leftIcon,o=e.onClose,i=e.renderCloseIcon,a=e.text,l=e.type;return c.createElement(kJ,{className:n,type:null!=l?l:rJ.STANDARD},r&&c.createElement(_J,null,c.createElement(Ln,cn({},r))),c.createElement(CJ,null,a),o&&c.createElement($J,{onClick:o},i?i():c.createElement(Ln,cn({},t||EJ,{fixedWidth:!0}))))},DJ={icon:de},MJ=function(e){var n=e.shortcut,t=e.text,r=un(e,["shortcut","text"]);return c.createElement(TJ,cn({text:c.createElement(c.Fragment,null,t," ",c.createElement("b",null,n)),leftIcon:DJ},r))};_n.white[100],_n.grey[400],_n.white[100],_n.yellow[400],_n.white[100],_n.green[400],_n.white[100],_n.blue[400],_n.white[100],_n.red[400];!function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success"}(SJ||(SJ={}));var OJ,PJ,RJ,NJ,AJ,IJ,FJ,LJ,jJ,zJ,BJ,HJ,UJ,WJ,VJ,YJ,qJ,GJ,KJ,XJ,QJ,ZJ,JJ,e0,n0,t0,r0,o0,i0,a0,l0,s0,c0,u0,d0,f0,p0,h0,m0,g0,y0,b0,v0,x0,w0,k0,_0,C0,$0,S0,E0,T0,D0,M0,O0={standard:"dark",error:"error",info:"info",warning:"warning",success:"success"},P0=T.div(OJ||(OJ=mn(["\n min-height: 40px;\n line-height: 21px;\n font-size: 14px;\n user-select: none;\n min-width: 320px;\n max-width: 640px;\n width: max-content;\n display: flex;\n align-items: center;\n"],["\n min-height: 40px;\n line-height: 21px;\n font-size: 14px;\n user-select: none;\n min-width: 320px;\n max-width: 640px;\n width: max-content;\n display: flex;\n align-items: center;\n"]))),R0=T.div(PJ||(PJ=mn(["\n display: flex;\n flex: 1;\n margin-right: 50px;\n padding: 12px;\n"],["\n display: flex;\n flex: 1;\n margin-right: 50px;\n padding: 12px;\n"]))),N0=T(hl)(RJ||(RJ=mn(["\n margin: 12px;\n min-width: 100px;\n max-height: 32px;\n align-self: center;\n font-size: 14px;\n"],["\n margin: 12px;\n min-width: 100px;\n max-height: 32px;\n align-self: center;\n font-size: 14px;\n"]))),A0=T.div(NJ||(NJ=mn(["\n text-align: center;\n margin-right: 8px;\n /* text-align: start; */\n"],["\n text-align: center;\n margin-right: 8px;\n /* text-align: start; */\n"]))),I0=T.div(AJ||(AJ=mn(["\n align-items: center;\n"],["\n align-items: center;\n"]))),F0=T(Ln)(IJ||(IJ=mn(["\n /* vertical-align: sub; */\n"],["\n /* vertical-align: sub; */\n"]))),L0=T.div(FJ||(FJ=mn(["\n display: block;\n line-height: 21px;\n font-weight: 500;\n word-break: break-word;\n overflow: hidden;\n text-overflow: clip;\n color: ",";\n"],["\n display: block;\n line-height: 21px;\n font-weight: 500;\n word-break: break-word;\n overflow: hidden;\n text-overflow: clip;\n color: ",";\n"])),(function(e){var n=e.theme,t=e.type;return n.components.toast[t||SJ.STANDARD].title})),j0=T.div(LJ||(LJ=mn(["\n display: block;\n line-height: 21px;\n font-weight: 400;\n word-break: break-word;\n overflow: hidden;\n text-overflow: clip;\n color: ",";\n"],["\n display: block;\n line-height: 21px;\n font-weight: 400;\n word-break: break-word;\n overflow: hidden;\n text-overflow: clip;\n color: ",";\n"])),(function(e){var n=e.theme,t=e.type;return n.components.toast[t||SJ.STANDARD].content})),z0=T(rn).attrs({hideProgressBar:!0,newestOnTop:!0,closeOnClick:!1,draggable:!1,rtl:!1})(jJ||(jJ=mn(["\n &.Toastify__toast-container {\n display: flex;\n flex-direction: column;\n align-items: end;\n width: auto;\n z-index: 20000;\n -webkit-transform: translate3d(0, 0, 9999px);\n position: fixed;\n padding: 0px;\n box-sizing: border-box;\n color: ",";\n }\n &.Toastify__toast-container--top-left {\n top: 1em;\n left: 1em;\n }\n &.Toastify__toast-container--top-center {\n top: 1em;\n left: 50%;\n transform: translateX(-50%);\n }\n &.Toastify__toast-container--top-right {\n top: 1em;\n right: 1em;\n }\n &.Toastify__toast-container--bottom-left {\n bottom: 1em;\n left: 1em;\n }\n &.Toastify__toast-container--bottom-center {\n bottom: 1em;\n left: 50%;\n transform: translateX(-50%);\n }\n &.Toastify__toast-container--bottom-right {\n bottom: 1em;\n right: 1em;\n }\n\n @media only screen and (max-width: 480px) {\n &.Toastify__toast-container {\n width: 100vw;\n padding: 0;\n left: 0;\n margin: 0;\n }\n &.Toastify__toast-container--top-left,\n &.Toastify__toast-container--top-center,\n &.Toastify__toast-container--top-right {\n top: 0;\n transform: translateX(0);\n }\n &.Toastify__toast-container--bottom-left,\n &.Toastify__toast-container--bottom-center,\n &.Toastify__toast-container--bottom-right {\n bottom: 0;\n transform: translateX(0);\n }\n &.Toastify__toast-container--rtl {\n right: 0;\n left: initial;\n }\n }\n .Toastify__toast {\n position: relative;\n min-height: 40px;\n box-sizing: border-box;\n margin-bottom: 1rem;\n border-radius: 1px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n max-height: 800px;\n overflow: hidden;\n cursor: pointer;\n direction: ltr;\n width: min-content;\n }\n .Toastify__toast--rtl {\n direction: rtl;\n }\n .Toastify__toast--dark {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--default {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--info {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--success {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--warning {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--error {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast-body {\n margin: auto 0;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n }\n\n @media only screen and (max-width: 480px) {\n .Toastify__toast {\n margin-bottom: 0;\n }\n }\n .Toastify__close-button {\n color: ",";\n background: transparent;\n outline: none;\n border: none;\n padding: 0;\n cursor: pointer;\n opacity: 0.7;\n transition: 0.3s ease;\n -ms-flex-item-align: start;\n align-self: flex-start;\n }\n .Toastify__close-button--default {\n color: ",";\n opacity: 0.3;\n }\n .Toastify__close-button > svg {\n fill: currentColor;\n height: 16px;\n width: 14px;\n }\n .Toastify__close-button:hover,\n .Toastify__close-button:focus {\n opacity: 1;\n }\n\n @keyframes Toastify__trackProgress {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\n }\n .Toastify__progress-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 5px;\n z-index: 20000;\n opacity: 0.7;\n background-color: ",";\n transform-origin: left;\n }\n .Toastify__progress-bar--animated {\n animation: Toastify__trackProgress linear 1 forwards;\n }\n .Toastify__progress-bar--controlled {\n transition: transform 0.2s;\n }\n .Toastify__progress-bar--rtl {\n right: 0;\n left: initial;\n transform-origin: right;\n }\n .Toastify__progress-bar--default {\n background: ",";\n }\n .Toastify__progress-bar--dark {\n background: ",";\n }\n @keyframes Toastify__bounceInRight {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(-25px, 0, 0);\n }\n 75% {\n transform: translate3d(10px, 0, 0);\n }\n 90% {\n transform: translate3d(-5px, 0, 0);\n }\n to {\n transform: none;\n }\n }\n @keyframes Toastify__bounceOutRight {\n 20% {\n opacity: 1;\n transform: translate3d(-20px, 0, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(2000px, 0, 0);\n }\n }\n @keyframes Toastify__bounceInLeft {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(-3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(25px, 0, 0);\n }\n 75% {\n transform: translate3d(-10px, 0, 0);\n }\n 90% {\n transform: translate3d(5px, 0, 0);\n }\n to {\n transform: none;\n }\n }\n @keyframes Toastify__bounceOutLeft {\n 20% {\n opacity: 1;\n transform: translate3d(20px, 0, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(-2000px, 0, 0);\n }\n }\n @keyframes Toastify__bounceInUp {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(0, 3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n 75% {\n transform: translate3d(0, 10px, 0);\n }\n 90% {\n transform: translate3d(0, -5px, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__bounceOutUp {\n 20% {\n transform: translate3d(0, -10px, 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, 20px, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, -2000px, 0);\n }\n }\n @keyframes Toastify__bounceInDown {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(0, -3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, 25px, 0);\n }\n 75% {\n transform: translate3d(0, -10px, 0);\n }\n 90% {\n transform: translate3d(0, 5px, 0);\n }\n to {\n transform: none;\n }\n }\n @keyframes Toastify__bounceOutDown {\n 20% {\n transform: translate3d(0, 10px, 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, 2000px, 0);\n }\n }\n .Toastify__bounce-enter--top-left,\n .Toastify__bounce-enter--bottom-left {\n animation-name: Toastify__bounceInLeft;\n }\n .Toastify__bounce-enter--top-right,\n .Toastify__bounce-enter--bottom-right {\n animation-name: Toastify__bounceInRight;\n }\n .Toastify__bounce-enter--top-center {\n animation-name: Toastify__bounceInDown;\n }\n .Toastify__bounce-enter--bottom-center {\n animation-name: Toastify__bounceInUp;\n }\n\n .Toastify__bounce-exit--top-left,\n .Toastify__bounce-exit--bottom-left {\n animation-name: Toastify__bounceOutLeft;\n }\n .Toastify__bounce-exit--top-right,\n .Toastify__bounce-exit--bottom-right {\n animation-name: Toastify__bounceOutRight;\n }\n .Toastify__bounce-exit--top-center {\n animation-name: Toastify__bounceOutUp;\n }\n .Toastify__bounce-exit--bottom-center {\n animation-name: Toastify__bounceOutDown;\n }\n\n @keyframes Toastify__zoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n 50% {\n opacity: 1;\n }\n }\n @keyframes Toastify__zoomOut {\n from {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n to {\n opacity: 0;\n }\n }\n .Toastify__zoom-enter {\n animation-name: Toastify__zoomIn;\n }\n\n .Toastify__zoom-exit {\n animation-name: Toastify__zoomOut;\n }\n\n @keyframes Toastify__flipIn {\n from {\n transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n animation-timing-function: ease-in;\n opacity: 0;\n }\n 40% {\n transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n animation-timing-function: ease-in;\n }\n 60% {\n transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n opacity: 1;\n }\n 80% {\n transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n }\n to {\n transform: perspective(400px);\n }\n }\n @keyframes Toastify__flipOut {\n from {\n transform: perspective(400px);\n }\n 30% {\n transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n opacity: 1;\n }\n to {\n transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n opacity: 0;\n }\n }\n .Toastify__flip-enter {\n animation-name: Toastify__flipIn;\n }\n\n .Toastify__flip-exit {\n animation-name: Toastify__flipOut;\n }\n\n @keyframes Toastify__slideInRight {\n from {\n transform: translate3d(110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideInLeft {\n from {\n transform: translate3d(-110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideInUp {\n from {\n transform: translate3d(0, 110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideInDown {\n from {\n transform: translate3d(0, -110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideOutRight {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(110%, 0, 0);\n }\n }\n @keyframes Toastify__slideOutLeft {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(-110%, 0, 0);\n }\n }\n @keyframes Toastify__slideOutDown {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, 500px, 0);\n }\n }\n @keyframes Toastify__slideOutUp {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, -500px, 0);\n }\n }\n .Toastify__slide-enter--top-left,\n .Toastify__slide-enter--bottom-left {\n animation-name: Toastify__slideInLeft;\n }\n .Toastify__slide-enter--top-right,\n .Toastify__slide-enter--bottom-right {\n animation-name: Toastify__slideInRight;\n }\n .Toastify__slide-enter--top-center {\n animation-name: Toastify__slideInDown;\n }\n .Toastify__slide-enter--bottom-center {\n animation-name: Toastify__slideInUp;\n }\n\n .Toastify__slide-exit--top-left,\n .Toastify__slide-exit--bottom-left {\n animation-name: Toastify__slideOutLeft;\n }\n .Toastify__slide-exit--top-right,\n .Toastify__slide-exit--bottom-right {\n animation-name: Toastify__slideOutRight;\n }\n .Toastify__slide-exit--top-center {\n animation-name: Toastify__slideOutUp;\n }\n .Toastify__slide-exit--bottom-center {\n animation-name: Toastify__slideOutDown;\n }\n\n /*# sourceMappingURL=ReactToastify.css.map */\n"],["\n &.Toastify__toast-container {\n display: flex;\n flex-direction: column;\n align-items: end;\n width: auto;\n z-index: 20000;\n -webkit-transform: translate3d(0, 0, 9999px);\n position: fixed;\n padding: 0px;\n box-sizing: border-box;\n color: ",";\n }\n &.Toastify__toast-container--top-left {\n top: 1em;\n left: 1em;\n }\n &.Toastify__toast-container--top-center {\n top: 1em;\n left: 50%;\n transform: translateX(-50%);\n }\n &.Toastify__toast-container--top-right {\n top: 1em;\n right: 1em;\n }\n &.Toastify__toast-container--bottom-left {\n bottom: 1em;\n left: 1em;\n }\n &.Toastify__toast-container--bottom-center {\n bottom: 1em;\n left: 50%;\n transform: translateX(-50%);\n }\n &.Toastify__toast-container--bottom-right {\n bottom: 1em;\n right: 1em;\n }\n\n @media only screen and (max-width: 480px) {\n &.Toastify__toast-container {\n width: 100vw;\n padding: 0;\n left: 0;\n margin: 0;\n }\n &.Toastify__toast-container--top-left,\n &.Toastify__toast-container--top-center,\n &.Toastify__toast-container--top-right {\n top: 0;\n transform: translateX(0);\n }\n &.Toastify__toast-container--bottom-left,\n &.Toastify__toast-container--bottom-center,\n &.Toastify__toast-container--bottom-right {\n bottom: 0;\n transform: translateX(0);\n }\n &.Toastify__toast-container--rtl {\n right: 0;\n left: initial;\n }\n }\n .Toastify__toast {\n position: relative;\n min-height: 40px;\n box-sizing: border-box;\n margin-bottom: 1rem;\n border-radius: 1px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n max-height: 800px;\n overflow: hidden;\n cursor: pointer;\n direction: ltr;\n width: min-content;\n }\n .Toastify__toast--rtl {\n direction: rtl;\n }\n .Toastify__toast--dark {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--default {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--info {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--success {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--warning {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--error {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast-body {\n margin: auto 0;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n }\n\n @media only screen and (max-width: 480px) {\n .Toastify__toast {\n margin-bottom: 0;\n }\n }\n .Toastify__close-button {\n color: ",";\n background: transparent;\n outline: none;\n border: none;\n padding: 0;\n cursor: pointer;\n opacity: 0.7;\n transition: 0.3s ease;\n -ms-flex-item-align: start;\n align-self: flex-start;\n }\n .Toastify__close-button--default {\n color: ",";\n opacity: 0.3;\n }\n .Toastify__close-button > svg {\n fill: currentColor;\n height: 16px;\n width: 14px;\n }\n .Toastify__close-button:hover,\n .Toastify__close-button:focus {\n opacity: 1;\n }\n\n @keyframes Toastify__trackProgress {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\n }\n .Toastify__progress-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 5px;\n z-index: 20000;\n opacity: 0.7;\n background-color: ",";\n transform-origin: left;\n }\n .Toastify__progress-bar--animated {\n animation: Toastify__trackProgress linear 1 forwards;\n }\n .Toastify__progress-bar--controlled {\n transition: transform 0.2s;\n }\n .Toastify__progress-bar--rtl {\n right: 0;\n left: initial;\n transform-origin: right;\n }\n .Toastify__progress-bar--default {\n background: ",";\n }\n .Toastify__progress-bar--dark {\n background: ",";\n }\n @keyframes Toastify__bounceInRight {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(-25px, 0, 0);\n }\n 75% {\n transform: translate3d(10px, 0, 0);\n }\n 90% {\n transform: translate3d(-5px, 0, 0);\n }\n to {\n transform: none;\n }\n }\n @keyframes Toastify__bounceOutRight {\n 20% {\n opacity: 1;\n transform: translate3d(-20px, 0, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(2000px, 0, 0);\n }\n }\n @keyframes Toastify__bounceInLeft {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(-3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(25px, 0, 0);\n }\n 75% {\n transform: translate3d(-10px, 0, 0);\n }\n 90% {\n transform: translate3d(5px, 0, 0);\n }\n to {\n transform: none;\n }\n }\n @keyframes Toastify__bounceOutLeft {\n 20% {\n opacity: 1;\n transform: translate3d(20px, 0, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(-2000px, 0, 0);\n }\n }\n @keyframes Toastify__bounceInUp {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(0, 3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n 75% {\n transform: translate3d(0, 10px, 0);\n }\n 90% {\n transform: translate3d(0, -5px, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__bounceOutUp {\n 20% {\n transform: translate3d(0, -10px, 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, 20px, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, -2000px, 0);\n }\n }\n @keyframes Toastify__bounceInDown {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(0, -3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, 25px, 0);\n }\n 75% {\n transform: translate3d(0, -10px, 0);\n }\n 90% {\n transform: translate3d(0, 5px, 0);\n }\n to {\n transform: none;\n }\n }\n @keyframes Toastify__bounceOutDown {\n 20% {\n transform: translate3d(0, 10px, 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, 2000px, 0);\n }\n }\n .Toastify__bounce-enter--top-left,\n .Toastify__bounce-enter--bottom-left {\n animation-name: Toastify__bounceInLeft;\n }\n .Toastify__bounce-enter--top-right,\n .Toastify__bounce-enter--bottom-right {\n animation-name: Toastify__bounceInRight;\n }\n .Toastify__bounce-enter--top-center {\n animation-name: Toastify__bounceInDown;\n }\n .Toastify__bounce-enter--bottom-center {\n animation-name: Toastify__bounceInUp;\n }\n\n .Toastify__bounce-exit--top-left,\n .Toastify__bounce-exit--bottom-left {\n animation-name: Toastify__bounceOutLeft;\n }\n .Toastify__bounce-exit--top-right,\n .Toastify__bounce-exit--bottom-right {\n animation-name: Toastify__bounceOutRight;\n }\n .Toastify__bounce-exit--top-center {\n animation-name: Toastify__bounceOutUp;\n }\n .Toastify__bounce-exit--bottom-center {\n animation-name: Toastify__bounceOutDown;\n }\n\n @keyframes Toastify__zoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n 50% {\n opacity: 1;\n }\n }\n @keyframes Toastify__zoomOut {\n from {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n to {\n opacity: 0;\n }\n }\n .Toastify__zoom-enter {\n animation-name: Toastify__zoomIn;\n }\n\n .Toastify__zoom-exit {\n animation-name: Toastify__zoomOut;\n }\n\n @keyframes Toastify__flipIn {\n from {\n transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n animation-timing-function: ease-in;\n opacity: 0;\n }\n 40% {\n transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n animation-timing-function: ease-in;\n }\n 60% {\n transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n opacity: 1;\n }\n 80% {\n transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n }\n to {\n transform: perspective(400px);\n }\n }\n @keyframes Toastify__flipOut {\n from {\n transform: perspective(400px);\n }\n 30% {\n transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n opacity: 1;\n }\n to {\n transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n opacity: 0;\n }\n }\n .Toastify__flip-enter {\n animation-name: Toastify__flipIn;\n }\n\n .Toastify__flip-exit {\n animation-name: Toastify__flipOut;\n }\n\n @keyframes Toastify__slideInRight {\n from {\n transform: translate3d(110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideInLeft {\n from {\n transform: translate3d(-110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideInUp {\n from {\n transform: translate3d(0, 110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideInDown {\n from {\n transform: translate3d(0, -110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideOutRight {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(110%, 0, 0);\n }\n }\n @keyframes Toastify__slideOutLeft {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(-110%, 0, 0);\n }\n }\n @keyframes Toastify__slideOutDown {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, 500px, 0);\n }\n }\n @keyframes Toastify__slideOutUp {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, -500px, 0);\n }\n }\n .Toastify__slide-enter--top-left,\n .Toastify__slide-enter--bottom-left {\n animation-name: Toastify__slideInLeft;\n }\n .Toastify__slide-enter--top-right,\n .Toastify__slide-enter--bottom-right {\n animation-name: Toastify__slideInRight;\n }\n .Toastify__slide-enter--top-center {\n animation-name: Toastify__slideInDown;\n }\n .Toastify__slide-enter--bottom-center {\n animation-name: Toastify__slideInUp;\n }\n\n .Toastify__slide-exit--top-left,\n .Toastify__slide-exit--bottom-left {\n animation-name: Toastify__slideOutLeft;\n }\n .Toastify__slide-exit--top-right,\n .Toastify__slide-exit--bottom-right {\n animation-name: Toastify__slideOutRight;\n }\n .Toastify__slide-exit--top-center {\n animation-name: Toastify__slideOutUp;\n }\n .Toastify__slide-exit--bottom-center {\n animation-name: Toastify__slideOutDown;\n }\n\n /*# sourceMappingURL=ReactToastify.css.map */\n"])),(function(e){return e.theme.palette.white[100]}),(function(e){return e.theme.components.toast.standard.background}),(function(e){return e.theme.components.toast.standard.content}),(function(e){return e.theme.components.toast.standard.background}),(function(e){return e.theme.components.toast.standard.content}),(function(e){return e.theme.components.toast.info.background}),(function(e){return e.theme.components.toast.info.content}),(function(e){return e.theme.components.toast.success.background}),(function(e){return e.theme.components.toast.success.content}),(function(e){return e.theme.components.toast.warning.background}),(function(e){return e.theme.components.toast.warning.content}),(function(e){return e.theme.components.toast.error.background}),(function(e){return e.theme.components.toast.error.content}),(function(e){return e.theme.palette.white[100]}),(function(e){return e.theme.palette.black[100]}),(function(e){return e.theme.palette.white[8]}),(function(e){var n=e.theme;return"linear-gradient(to right, "+n.palette.green[500]+", "+n.palette.cyan[500]+", "+n.palette.blue[500]+", "+n.palette.fuchsia[500]+", "+n.palette.red[500]+");"}),(function(e){return e.theme.palette.fuchsia[200]})),B0=function(e){switch(e){default:case SJ.STANDARD:return"grey";case SJ.ERROR:return"red";case SJ.WARNING:return"yellow";case SJ.SUCCESS:return"green";case SJ.INFO:return"blue"}},H0=function(e){var n,t,r,o=g(!1),i=o[0],a=o[1];return c.createElement(P0,null,c.createElement(R0,null,c.createElement(A0,null,c.createElement(F0,cn({},e.icon,{fixedWidth:!0}))),c.createElement(I0,null,e.title&&c.createElement(L0,{type:null!==(n=e.type)&&void 0!==n?n:SJ.STANDARD},e.title),e.content&&c.createElement(j0,{type:null!==(t=e.type)&&void 0!==t?t:SJ.STANDARD},e.content))),e.actionLabel&&c.createElement(N0,{text:e.actionLabel,onClick:function(){var n;e.disableActionAfterClick&&a(!0),null===(n=e.onActionClick)||void 0===n||n.call(e)},type:"secondary",size:"medium",color:B0(null!==(r=e.type)&&void 0!==r?r:SJ.STANDARD),isDisabled:e.disableActionAfterClick&&i}))},U0={dark:X,error:F,info:j,warning:L,success:z},W0=function(e,n){var t=n.autoClose,r=n.icon,o=n.type,i=un(n,["autoClose","icon","type"]),a=O0[null!=o?o:"standard"],l=cn({icon:U0[a],size:"1x"},r),s=on[a](c.createElement(H0,cn({icon:l,title:e,type:o},i)),{autoClose:void 0===t||!0===t?3e3:t,closeButton:!1});return s?s.toString():void 0},V0={Container:z0,show:W0,dismiss:function(e){on.dismiss(e)},success:function(e,n){return W0(e,cn(cn({},n),{type:SJ.SUCCESS}))},error:function(e,n){return W0(e,cn(cn({},n),{type:SJ.ERROR}))},info:function(e,n){return W0(e,cn(cn({},n),{type:SJ.INFO}))},warning:function(e,n){return W0(e,cn(cn({},n),{type:SJ.WARNING}))},standard:function(e,n){return W0(e,cn(cn({},n),{type:SJ.STANDARD}))}},Y0={error:{background:_n.red[400],title:_n.white[100],content:_n.red[50]},warning:{background:_n.yellow[400],title:_n.white[100],content:_n.yellow[50]},success:{background:_n.green[400],title:_n.white[100],content:_n.green[50]},info:{background:_n.blue[400],title:_n.white[100],content:_n.blue[50]},standard:{background:_n.grey[900],title:_n.white[100],content:_n.grey[100]}},q0=T.div.attrs((function(e){var n=e.active,t=e.theme,r=e.type,o=n?"active":"normal";return t.components.verticalTabs[r][o]}))(zJ||(zJ=mn(["\n display: flex;\n flex-direction: row;\n align-items: center;\n align-self: stretch;\n gap: 8px;\n padding: 8px 12px;\n cursor: pointer;\n color: ",";\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n align-self: stretch;\n gap: 8px;\n padding: 8px 12px;\n cursor: pointer;\n color: ",";\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n"])),(function(e){return e.color}),(function(e){return e.background}),(function(e){return e.hoverBackground})),G0=T(aa)(BJ||(BJ=mn(["\n flex: 1;\n opacity: ",";\n"],["\n flex: 1;\n opacity: ",";\n"])),(function(e){return e.fade&&"48%"})),K0=function(e){var n=e.active,t=e.counter,o=e.editMode,i=e.icon,a=e.onClick,l=e.text,s=e.type;return c.createElement(q0,{active:n,type:null!=s?s:bn.STANDARD,onClick:a},o?c.createElement(Ln,{fixedWidth:!0,id:"handle",icon:r,color:n?"white":"grey"}):i?c.createElement(Ln,cn({fixedWidth:!0},i)):null,c.createElement(G0,{fade:s===bn.SUCCESS},l),o?c.createElement(Ln,{fixedWidth:!0,icon:Q}):s===bn.SUCCESS?c.createElement(Ln,{fixedWidth:!0,icon:z,color:n?"white":"green"}):c.createElement("span",null,t))},X0=T(wl)(HJ||(HJ=mn(["\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 100%;\n min-height: 200px;\n padding: 0;\n"],["\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 100%;\n min-height: 200px;\n padding: 0;\n"]))),Q0=T.div(UJ||(UJ=mn(["\n min-width: 250px;\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow: auto;\n background-color: ",";\n"],["\n min-width: 250px;\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow: auto;\n background-color: ",";\n"])),(function(e){return e.theme.palette.grey[50]})),Z0=T.div(WJ||(WJ=mn(["\n flex: 2;\n overflow: auto;\n background-color: ",";\n"],["\n flex: 2;\n overflow: auto;\n background-color: ",";\n"])),(function(e){return e.theme.palette.white[100]})),J0=function(e){var n=e.className,t=e.editMode,r=void 0!==t&&t,o=e.style,i=e.tabs,a=g(0),l=a[0],s=a[1],u=i[l].content;return c.createElement(X0,{color:Qa.GREY,type:Xa.PRIMARY,className:n,style:o},c.createElement(Q0,null,i.map((function(e,n){return c.createElement(K0,cn({key:n,active:l===n,editMode:r,onClick:function(){return s(n)}},e.header))}))),c.createElement(Z0,null,u?"function"==typeof u?u():u:null))},e1={error:{active:{color:_n.white[100],background:_n.red[500],hoverBackground:_n.red[700],activeBackground:_n.red[900]},normal:{color:_n.red[500],background:_n.grey[50],hoverBackground:_n.grey[100],activeBackground:_n.grey[200]}},info:{active:{color:_n.white[100],background:_n.blue[500],hoverBackground:_n.blue[600],activeBackground:_n.blue[900]},normal:{color:_n.blue[500],background:_n.grey[50],hoverBackground:_n.grey[100],activeBackground:_n.grey[200]}},standard:{active:{color:_n.white[100],background:_n.blue[500],hoverBackground:_n.blue[600],activeBackground:_n.blue[900]},normal:{color:_n.grey[500],background:_n.grey[50],hoverBackground:_n.grey[100],activeBackground:_n.grey[200]}},success:{active:{color:_n.white[100],background:_n.blue[500],hoverBackground:_n.blue[600],activeBackground:_n.blue[900]},normal:{color:_n.grey[500],background:_n.grey[50],hoverBackground:_n.grey[100],activeBackground:_n.grey[200]}},warning:{active:{color:_n.black[100],background:_n.yellow[500],hoverBackground:_n.yellow[700],activeBackground:_n.yellow[900]},normal:{color:_n.yellow[500],background:_n.grey[50],hoverBackground:_n.grey[100],activeBackground:_n.grey[200]}}},n1=_n,t1=P(VJ||(VJ=mn(["\n .ReactModal__Overlay {\n opacity: 0;\n transition: all 200ms ease-in-out;\n }\n \n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n \n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n \n .ReactModal__Overlay--after-open .ReactModal__Content {\n :not(.fic-modal) {\n opacity: 1;\n transform: translate(-50%, -50%);\n }\n }\n \n .ReactModal__Overlay--before-close .ReactModal__Content {\n opacity: 0;\n transform: translate(-50%, 0%);\n }\n"],["\n .ReactModal__Overlay {\n opacity: 0;\n transition: all 200ms ease-in-out;\n }\n \n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n \n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n \n .ReactModal__Overlay--after-open .ReactModal__Content {\n :not(.fic-modal) {\n opacity: 1;\n transform: translate(-50%, -50%);\n }\n }\n \n .ReactModal__Overlay--before-close .ReactModal__Content {\n opacity: 0;\n transform: translate(-50%, 0%);\n }\n"]))),r1=function(e,n){return n?"100vw":e?"342px":"736px"},o1="80px",i1=200,a1=T(an)(YJ||(YJ=mn(["\n position: absolute;\n top: 50%;\n left: 50%;\n right: auto;\n bottom: auto;\n outline: none;\n opacity: 0;\n transform: translate(-50%, -100%);\n transition: all ","ms ease-in-out;\n"],["\n position: absolute;\n top: 50%;\n left: 50%;\n right: auto;\n bottom: auto;\n outline: none;\n opacity: 0;\n transform: translate(-50%, -100%);\n transition: all ","ms ease-in-out;\n"])),i1),l1=T.div(XJ||(XJ=mn(["\n overflow: auto;\n background: rgb(255, 255, 255);\n padding: 0;\n ","\n\n box-shadow: ",";\n\n border: ",";\n border-radius: ","px;\n width: ","vw;\n\n @media screen and (min-width: 992px) {\n width: ",";\n }\n"],["\n overflow: auto;\n background: rgb(255, 255, 255);\n padding: 0;\n ","\n\n box-shadow: ",";\n\n border: ",";\n border-radius: ","px;\n width: ","vw;\n\n @media screen and (min-width: 992px) {\n width: ",";\n }\n"])),(function(e){var n=e.fullScreenHeight,t=e.isFullscreen,r=e.isSmall;return t?D(qJ||(qJ=mn(["\n height: ","px;\n "],["\n height: ","px;\n "])),n):D(r?GJ||(GJ=mn([""],[""])):KJ||(KJ=mn(["\n min-height: 200px;\n "],["\n min-height: 200px;\n "])))}),(function(e){return e.isFullscreen?"none":"rgba(23, 43, 77, 0.24) 0px 16px 24px, rgba(9, 30, 66, 0.08) 0px 0px 0px"}),(function(e){return e.isFullscreen?0:"1px solid rgb(204, 204, 204)"}),(function(e){return e.isFullscreen?0:8}),(function(e){return e.isFullscreen?100:96}),(function(e){var n=e.isFullscreen,t=e.isSmall;return r1(t,n)})),s1=T.div(e0||(e0=mn(["\n min-height: ",";\n height: ",";\n padding: 1rem ",";\n overflow-y: auto;\n\n ","\n"],["\n min-height: ",";\n height: ",";\n padding: 1rem ",";\n overflow-y: auto;\n\n ","\n"])),(function(e){var n=e.minHeight;return n?n+"px":"auto"}),(function(e){var n=e.height;return n?n+"px":"auto"}),Ca.l,(function(e){var n=e.footer,t=e.header,r=e.isFullscreen,o=e.title;return r?D(QJ||(QJ=mn(["\n height: calc(100% - ("," * 2));\n "],["\n height: calc(100% - ("," * 2));\n "])),o1):t||o||n?D(ZJ||(ZJ=mn(["\n max-height: calc(100vh - ("," * 4));\n "],["\n max-height: calc(100vh - ("," * 4));\n "])),o1):D(JJ||(JJ=mn(["\n max-height: 100%;\n "],["\n max-height: 100%;\n "])))})),c1=T.div(n0||(n0=mn(["\n cursor: pointer;\n &:hover {\n color: ",";\n }\n"],["\n cursor: pointer;\n &:hover {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.grey[800]})),u1=T(c1)(t0||(t0=mn(["\n margin-left: 5px;\n"],["\n margin-left: 5px;\n"]))),d1=T.h3(r0||(r0=mn(["\n font-size: 20px;\n line-height: 30px;\n margin: 0;\n font-weight: 500;\n"],["\n font-size: 20px;\n line-height: 30px;\n margin: 0;\n font-weight: 500;\n"]))),f1=T.div(i0||(i0=mn(["\n padding: 0 ",";\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n ",";\n\n height: ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n ",";\n"],["\n padding: 0 ",";\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n ",";\n\n height: ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n ",";\n"])),Ca.l,Ca.xs,Ca.xs,(function(e){var n=e.theme.palette;return D(o0||(o0=mn(["\n border-bottom: 2px solid ",";\n background-color: ",";\n "],["\n border-bottom: 2px solid ",";\n background-color: ",";\n "])),n.grey[100],n.grey[50])}),o1,d1),p1=T.div(a0||(a0=mn(["\n padding: "," "," 0 ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n ",";\n"],["\n padding: "," "," 0 ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n ",";\n"])),Ca.l,Ca.l,Ca.l,d1),h1=T.div(l0||(l0=mn(["\n > div {\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n gap: 16px;\n margin-top: 24px;\n }\n"],["\n > div {\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n gap: 16px;\n margin-top: 24px;\n }\n"]))),m1=T.div(s0||(s0=mn(["\n padding: 0 ",";\n height: ",";\n border-top: 2px solid ",";\n align-items: center;\n justify-content: flex-end;\n display: flex;\n margin: 0 auto;\n gap: 16px;\n"],["\n padding: 0 ",";\n height: ",";\n border-top: 2px solid ",";\n align-items: center;\n justify-content: flex-end;\n display: flex;\n margin: 0 auto;\n gap: 16px;\n"])),Ca.l,o1,(function(e){return e.theme.palette.grey[100]})),g1=T.div(c0||(c0=mn(["\n position: absolute;\n width: 100%;\n top: ",";\n"],["\n position: absolute;\n width: 100%;\n top: ",";\n"])),(function(e){var n=e.height;return n&&-(n+16)+"px"})),y1=T.div(u0||(u0=mn(["\n width: auto;\n margin-top: 24px;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n"],["\n width: auto;\n margin-top: 24px;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n"]))),b1=T(Ln)(d0||(d0=mn(["\n font-size: 24px;\n font-weight: 500;\n"],["\n font-size: 24px;\n font-weight: 500;\n"]))),v1=function(e){function n(n){var t=e.call(this,n)||this;return t.updateHeight=function(){t.setState({fullScreenHeight:window.innerHeight})},t.hasFooter=function(){return!!t.props.footerButtons||"function"==typeof t.props.footer},t.renderFooter=function(){var e=t.props,n=e.footer,r=e.footerButtons;return r?c.createElement(c.Fragment,null,r.map((function(e,n){return c.createElement("div",{key:n},c.createElement(hl,cn({},e)))}))):n?n():void 0},t.handleModalClose=function(){t.props.onActionClose&&t.props.onActionClose()},t.contentRefCallback=function(){var e=document.getElementById("top-attachment");e&&t.setState({topAttachmentHeight:e.clientHeight})},t.state={topAttachmentHeight:0,fullScreenHeight:0},t}return sn(n,e),n.prototype.componentDidMount=function(){this.props.isFullscreen&&(this.updateHeight(),window.addEventListener("resize",this.updateHeight))},n.prototype.componentWillUnmount=function(){this.props.isFullscreen&&window.removeEventListener("resize",this.updateHeight)},n.prototype.render=function(){var e=this.props,n=e.allowClose,t=e.className,r=e.header,o=e.customHeader,i=e.hideOverlay,a=e.isFullscreen,l=e.isOpen,s=e.onActionClose,u=e.portalClassName,d=e.title,f=e.customFooter,p=e.sizeCloseX,h=e.zIndex,m=e.disableInfoTooltip,g=this.props,y=g.bottomAttachment,b=g.height,v=g.isSmall,x=g.minHeight,w=g.topAttachment,k=this.state.fullScreenHeight,_=null==n||n,C={overlay:{backgroundColor:i?"rgba(0, 0, 0, 0)":n1.black[48],zIndex:h||(this.props.isConfirmModal?99999:1e4)}},$=s?c.createElement(u1,null,c.createElement(Ln,{icon:De,size:p||"1x",type:"light",fixedWidth:!0,onClick:this.handleModalClose,className:"icon"})):null;return c.createElement(c.Fragment,null,c.createElement(t1,null),c.createElement(a1,{closeTimeoutMS:200,shouldCloseOnOverlayClick:_,onRequestClose:_?this.handleModalClose:void 0,shouldCloseOnEsc:_,style:C,isOpen:null==l||l,isFullscreen:a,isSmall:v,contentRef:this.contentRefCallback,ariaHideApp:!1,portalClassName:u},c.createElement(c.Fragment,null,w&&c.createElement(g1,{id:"top-attachment",height:this.state.topAttachmentHeight},w()),c.createElement(l1,{className:t,isFullscreen:a,isSmall:v,fullScreenHeight:k},o&&c.createElement(p1,null,o(),$),!o&&(r||d)&&c.createElement(f1,null,r?r():c.createElement("h3",null,d),$),c.createElement(s1,{height:b,minHeight:x,isFullscreen:a,header:r,title:m?void 0:d,footer:this.props.footer},this.props.children,f&&c.createElement(h1,null,f())),!f&&this.hasFooter()&&c.createElement(m1,null,this.renderFooter())),y&&c.createElement(y1,null,y()))))},n}(d),x1=function(e){var n=e.children,t=e.className,r=e.handleChangeValue,o=e.placeholder,i=e.value,a=c.createElement(k1,null,c.createElement(b1,{icon:Fe,color:"black"}),c.createElement("input",{autoFocus:!0,className:"inputSearchable",type:"text",onChange:function(e){r(e.currentTarget.value)},value:i,placeholder:o}),c.createElement(w1,{visible:!!i,onClick:function(){r("")}},"Cancella"));return c.createElement(v1,cn({className:t,header:function(){return a}},e),n)},w1=T.div(f0||(f0=mn(["\n white-space: nowrap;\n cursor: pointer;\n padding-right: 10px;\n border-right: 1px solid ",";\n color: ",";\n &:hover {\n color: ",";\n }\n display: ",";\n"],["\n white-space: nowrap;\n cursor: pointer;\n padding-right: 10px;\n border-right: 1px solid ",";\n color: ",";\n &:hover {\n color: ",";\n }\n display: ",";\n"])),(function(e){return e.theme.palette.grey[200]}),(function(e){return e.theme.palette.grey[500]}),(function(e){return e.theme.palette.grey[700]}),(function(e){return e.visible?"inherit":"none"})),k1=T.div(p0||(p0=mn(["\n width: 100%;\n display: flex;\n align-items: center;\n caret-color: ",";\n input[type='text'].inputSearchable:focus {\n outline: none !important;\n box-shadow: none !important;\n }\n\n > input {\n width: 100%;\n margin-left: 4px;\n background-color: "," !important;\n border: none;\n font-size: 20px !important;\n top: 6px;\n outline: none;\n box-shadow: none;\n }\n\n > input,\n input::-webkit-input-placeholder {\n font-size: 20px;\n }\n"],["\n width: 100%;\n display: flex;\n align-items: center;\n caret-color: ",";\n input[type='text'].inputSearchable:focus {\n outline: none !important;\n box-shadow: none !important;\n }\n\n > input {\n width: 100%;\n margin-left: 4px;\n background-color: "," !important;\n border: none;\n font-size: 20px !important;\n top: 6px;\n outline: none;\n box-shadow: none;\n }\n\n > input,\n input::-webkit-input-placeholder {\n font-size: 20px;\n }\n"])),(function(e){return e.theme.palette.blue[300]}),(function(e){return e.theme.palette.grey[50]})),_1=T.div(h0||(h0=mn(["\n overflow: hidden;\n align-self: stretch;\n width: ","vw;\n min-width: ","vw;\n\n @media screen and (min-width: 992px) {\n width: ",";\n min-width: ",";\n }\n"],["\n overflow: hidden;\n align-self: stretch;\n width: ","vw;\n min-width: ","vw;\n\n @media screen and (min-width: 992px) {\n width: ",";\n min-width: ",";\n }\n"])),(function(e){return e.isFullscreen?100:96}),(function(e){return e.isFullscreen?100:96}),(function(e){var n=e.isFullscreen,t=e.isSmall;return r1(t,n)}),(function(e){var n=e.isFullscreen,t=e.isSmall;return r1(t,n)})),C1=T(v1)(b0||(b0=mn(["\n & > div {\n overflow: hidden;\n padding: 0px;\n border-radius: 8px;\n max-height: calc(100vh - ("," * 2));\n min-height: 200px;\n display: flex;\n flex-direction: row;\n ","\n\n ","\n\n ","\n }\n\n // Right to left\n .step-modal-next-enter {\n transform: translateX(0%);\n }\n .step-modal-next-enter-active {\n transform: translateX(-100%);\n transition: transform ","ms;\n }\n .step-modal-next-exit {\n transform: translateX(0%);\n }\n .step-modal-next-exit-active {\n transform: translateX(-100%);\n transition: transform ","ms;\n }\n\n // Left to right\n .step-modal-prev-enter {\n transform: translateX(-100%);\n }\n .step-modal-prev-enter-active {\n transform: translateX(0%);\n transition: transform ","ms;\n }\n .step-modal-prev-exit {\n transform: translateX(-100%);\n }\n .step-modal-prev-exit-active {\n transform: translateX(0%);\n transition: transform ","ms;\n }\n"],["\n & > div {\n overflow: hidden;\n padding: 0px;\n border-radius: 8px;\n max-height: calc(100vh - ("," * 2));\n min-height: 200px;\n display: flex;\n flex-direction: row;\n ","\n\n ","\n\n ","\n }\n\n // Right to left\n .step-modal-next-enter {\n transform: translateX(0%);\n }\n .step-modal-next-enter-active {\n transform: translateX(-100%);\n transition: transform ","ms;\n }\n .step-modal-next-exit {\n transform: translateX(0%);\n }\n .step-modal-next-exit-active {\n transform: translateX(-100%);\n transition: transform ","ms;\n }\n\n // Left to right\n .step-modal-prev-enter {\n transform: translateX(-100%);\n }\n .step-modal-prev-enter-active {\n transform: translateX(0%);\n transition: transform ","ms;\n }\n .step-modal-prev-exit {\n transform: translateX(-100%);\n }\n .step-modal-prev-exit-active {\n transform: translateX(0%);\n transition: transform ","ms;\n }\n"])),o1,(function(e){var n=e.height;return n&&D(m0||(m0=mn(["\n height: ","px;\n max-height: ","px;\n "],["\n height: ","px;\n max-height: ","px;\n "])),n,n)}),(function(e){var n=e.minHeight;return n&&D(g0||(g0=mn(["\n min-height: ","px;\n "],["\n min-height: ","px;\n "])),n)}),(function(e){return e.isFullscreen&&D(y0||(y0=mn(["\n height: 100%;\n max-height: 100%;\n "],["\n height: 100%;\n max-height: 100%;\n "])))}),i1,i1,i1,i1),$1=function(e){var n=e.Component,t=e.currentStep,r=e.customProps,o=e.direction,i=e.isFullscreen,a=e.isSmall,l=e.thisStep,s=un(e,["Component","currentStep","customProps","direction","isFullscreen","isSmall","thisStep"]),u=f(null);return c.createElement(ye,{nodeRef:u,classNames:"step-modal-"+o,timeout:200,in:t===l,mountOnEnter:!0,unmountOnExit:!0},c.createElement(_1,{isFullscreen:i,isSmall:a,ref:u},c.createElement(n,cn({currentStep:t},s,r))))},S1=function(e){var n=e.allowBackdropClose,t=e.className,r=e.steps,o=un(e,["allowBackdropClose","className","steps"]),i=f(o.currentStep);return m((function(){i.current=o.currentStep}),[o.currentStep]),o.currentStep<0||o.currentStep>r.length-1?null:c.createElement(C1,{onActionClose:function(){var e;null===(e=o.onActionClose)||void 0===e||e.call(o),o.setIsOpen(!1)},isOpen:o.isOpen,className:t,allowClose:n,isFullscreen:o.isFullscreen,isSmall:o.isSmall,height:o.height,minHeight:o.minHeight},r.map((function(e,n){return c.createElement($1,cn({key:n},o,{Component:e,thisStep:n,direction:o.currentStep>=i.current?"next":"prev"}))})))},E1=T(f1)(v0||(v0=mn(["\n flex-direction: row;\n flex-wrap: nowrap;\n gap: 16px;\n height: ",";\n min-height: ",";\n max-height: ",";\n"],["\n flex-direction: row;\n flex-wrap: nowrap;\n gap: 16px;\n height: ",";\n min-height: ",";\n max-height: ",";\n"])),o1,o1,o1),T1=T.div(x0||(x0=mn(["\n flex: 1;\n"],["\n flex: 1;\n"]))),D1=T(m1)(w0||(w0=mn(["\n height: ",";\n min-height: ",";\n max-height: ",";\n"],["\n height: ",";\n min-height: ",";\n max-height: ",";\n"])),o1,o1,o1),M1=T(s1).attrs((function(e){var n=e.height,t=e.minHeight,r=e.withoutFooter,o=e.withoutHeader;n&&!t&&(t=n);var i=On(o1)+2,a=(r?0:i)+(o?0:i);return{calcHeight:n?n-a:2*i+a,calcMinHeight:t?t-a:2*i+a,height:n,minHeight:t}}))(C0||(C0=mn(["\n padding: 0;\n\n ","\n\n ","\n"],["\n padding: 0;\n\n ","\n\n ","\n"])),(function(e){var n=e.height,t=e.minHeight,r=e.calcHeight,o=e.calcMinHeight;return D(k0||(k0=mn(["\n height: ",";\n max-height: ",";\n min-height: ",";\n "],["\n height: ",";\n max-height: ",";\n min-height: ",";\n "])),n?r+"px":"calc(100vh - "+r+"px)",n?r+"px":"calc(100vh - "+r+"px)",t?o+"px":"calc(100vh - "+o+"px)")}),(function(e){return e.isFullscreen&&D(_0||(_0=mn(["\n height: 100%;\n max-height: 100%;\n "],["\n height: 100%;\n max-height: 100%;\n "])))})),O1=function(e){var n=e.children,t=un(e,["children"]);return c.createElement(M1,cn({},t),n)},P1=function(e){var n=e.buttons,t=e.children,r=e.className;return c.createElement(D1,{className:r},t||(n?n.map((function(e,n){return c.createElement(hl,cn({key:n},e))})):null))},R1=function(e){var n=e.children,t=e.className,r=e.currentStep,o=e.setIsOpen,i=e.setStep,a=e.subtitle,l=e.title;return c.createElement(E1,{className:t},null!=n?n:c.createElement(c.Fragment,null,void 0!==r&&r>0&&i&&c.createElement(c1,null,c.createElement(Ln,{icon:Le,fixedWidth:!0,onClick:function(){return i(r-1)}})),c.createElement(T1,null,a?c.createElement(c.Fragment,null,c.createElement(fa,null,l),c.createElement(ha,null,a)):c.createElement(ua,null,l)),o&&c.createElement(c1,null,c.createElement(Ln,{icon:De,fixedWidth:!0,onClick:function(){return o(!1)}}))))},N1=T(v1)($0||($0=mn(["\n width: 432px;\n max-width: 90vw;\n display: flex;\n flex-direction: column;\n & > div {\n height: 100%;\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n"],["\n width: 432px;\n max-width: 90vw;\n display: flex;\n flex-direction: column;\n & > div {\n height: 100%;\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n"]))),A1=T.div(S0||(S0=mn(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n margin-top: 8px;\n margin-bottom: 8px;\n line-height: 24px;\n font-weight: 500;\n font-size: 16px;\n font-style: normal;\n color: #000000;\n"],["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n margin-top: 8px;\n margin-bottom: 8px;\n line-height: 24px;\n font-weight: 500;\n font-size: 16px;\n font-style: normal;\n color: #000000;\n"]))),I1=T.div(E0||(E0=mn(["\n margin-top: 8px;\n margin-bottom: 8px;\n font-size: 14px;\n font-weight: normal;\n font-style: normal;\n line-height: 21px;\n color: #5e6c84;\n"],["\n margin-top: 8px;\n margin-bottom: 8px;\n font-size: 14px;\n font-weight: normal;\n font-style: normal;\n line-height: 21px;\n color: #5e6c84;\n"]))),F1=T.div(T0||(T0=mn(["\n font-size: 14px;\n font-style: normal;\n line-height: 21px;\n font-weight: 500;\n color: #091e42;\n margin-top: 8px;\n"],["\n font-size: 14px;\n font-style: normal;\n line-height: 21px;\n font-weight: 500;\n color: #091e42;\n margin-top: 8px;\n"]))),L1=T.div(D0||(D0=mn(["\n margin-top: 24px;\n margin-bottom: 8px;\n display: flex;\n flex-direction: row;\n line-height: 21px;\n justify-content: flex-end;\n"],["\n margin-top: 24px;\n margin-bottom: 8px;\n display: flex;\n flex-direction: row;\n line-height: 21px;\n justify-content: flex-end;\n"]))),j1={error:"error",info:"info",warning:"warning",success:"success"},z1={error:L,info:j,warning:L,success:z},B1={error:"red",info:"blue",warning:"yellow",success:"green"},H1=function(e){var n,t,r,o=j1[e.type],i=z1[o],a=B1[o],l=null!==(n=e.cancelText)&&void 0!==n?n:"Annulla",s=e.description instanceof String?c.createElement(I1,null,e.description):e.description;return c.createElement(N1,{isOpen:e.isOpen,onActionClose:function(){return e.setIsOpen(!1)},isSmall:e.isSmall,isConfirmModal:!0},c.createElement("div",null,e.customHeader?c.createElement(A1,null,e.customHeader):c.createElement(A1,null,c.createElement(Ln,{icon:i,size:"1x",color:a}),c.createElement("span",{style:{marginLeft:"10px"}},null!==(t=e.title)&&void 0!==t?t:"")),s,e.question&&c.createElement(F1,null,e.question)),c.createElement(L1,null,c.createElement(hl,{text:l,color:null!==(r=e.cancelColor)&&void 0!==r?r:"grey",onClick:function(){var n;e.setIsOpen(!1),null===(n=e.onCancel)||void 0===n||n.call(e)}}),c.createElement(U1,{text:e.actionText,color:a,onClick:function(){e.setIsOpen(!1),e.onAction()}})))},U1=T(hl)(M0||(M0=mn(["\n margin-left: 16px;\n"],["\n margin-left: 16px;\n"])));
40
+ */function ZX(){return XX||(XX=1,"production"!==process.env.NODE_ENV&&function(){var e=c,n=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator";var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];!function(e,n,t){var r=y.ReactDebugCurrentFrame,o=r.getStackAddendum();""!==o&&(n+="%s",t=t.concat([o]));var i=t.map((function(e){return String(e)}));i.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,i)}("error",e,t)}var v,x=!1,w=!1,k=!1,_=!1,C=!1;function $(e){return e.displayName||"Context"}function S(e){if(null==e)return null;if("number"==typeof e.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case t:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return $(e)+".Consumer";case a:return $(e._context)+".Provider";case s:return function(e,n,t){var r=e.displayName;if(r)return r;var o=n.displayName||n.name||"";return""!==o?t+"("+o+")":t}(e,e.render,"ForwardRef");case f:var n=e.displayName||null;return null!==n?n:S(e.type)||"Memo";case p:var c=e,h=c._payload,m=c._init;try{return S(m(h))}catch{return null}}return null}v=Symbol.for("react.module.reference");var E,T,D,M,O,P,R,N=Object.assign,A=0;function I(){}I.__reactDisabledLog=!0;var F,L=y.ReactCurrentDispatcher;function j(e,n,t){if(void 0===F)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);F=r&&r[1]||""}return"\n"+F+e}var z,B=!1,H="function"==typeof WeakMap?WeakMap:Map;function U(e,n){if(!e||B)return"";var t,r=z.get(e);if(void 0!==r)return r;B=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=L.current,L.current=null,function(){if(0===A){E=console.log,T=console.info,D=console.warn,M=console.error,O=console.group,P=console.groupCollapsed,R=console.groupEnd;var e={configurable:!0,enumerable:!0,value:I,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}A++}();try{if(n){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){t=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){t=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){t=e}e()}}catch(n){if(n&&t&&"string"==typeof n.stack){for(var l=n.stack.split("\n"),s=t.stack.split("\n"),c=l.length-1,u=s.length-1;c>=1&&u>=0&&l[c]!==s[u];)u--;for(;c>=1&&u>=0;c--,u--)if(l[c]!==s[u]){if(1!==c||1!==u)do{if(c--,--u<0||l[c]!==s[u]){var d="\n"+l[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&z.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{B=!1,L.current=o,function(){if(0==--A){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:E}),info:N({},e,{value:T}),warn:N({},e,{value:D}),error:N({},e,{value:M}),group:N({},e,{value:O}),groupCollapsed:N({},e,{value:P}),groupEnd:N({},e,{value:R})})}A<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?j(f):"";return"function"==typeof e&&z.set(e,p),p}function W(e,n,t){if(null==e)return"";if("function"==typeof e)return U(e,function(e){var n=e.prototype;return!(!n||!n.isReactComponent)}(e));if("string"==typeof e)return j(e);switch(e){case u:return j("Suspense");case d:return j("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case s:return function(e,n,t){return U(e,!1)}(e.render);case f:return W(e.type,n,t);case p:var r=e,o=r._payload,i=r._init;try{return W(i(o),n,t)}catch{}}return""}z=new H;var V=Object.prototype.hasOwnProperty,Y={},q=y.ReactDebugCurrentFrame;function G(e){if(e){var n=e._owner,t=W(e.type,e._source,n?n.type:null);q.setExtraStackFrame(t)}else q.setExtraStackFrame(null)}var K=Array.isArray;function X(e){return K(e)}function Q(e){return""+e}function Z(e){if(function(e){try{return Q(e),!1}catch{return!0}}(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Q(e)}var J,ee,ne,te=y.ReactCurrentOwner,re={key:!0,ref:!0,__self:!0,__source:!0};ne={};var oe=function(e,t,r,o,i,a,l){var s={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:a,_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:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ie(e,n,t,r,o){var i,a={},l=null,s=null;for(i in void 0!==t&&(Z(t),l=""+t),function(e){if(V.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(n)&&(Z(n.key),l=""+n.key),function(e){if(V.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return void 0!==e.ref}(n)&&(s=n.ref,function(e,n){if("string"==typeof e.ref&&te.current&&n&&te.current.stateNode!==n){var t=S(te.current.type);ne[t]||(b('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',S(te.current.type),e.ref),ne[t]=!0)}}(n,o)),n)V.call(n,i)&&!re.hasOwnProperty(i)&&(a[i]=n[i]);if(e&&e.defaultProps){var c=e.defaultProps;for(i in c)void 0===a[i]&&(a[i]=c[i])}if(l||s){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,n){var t=function(){J||(J=!0,b("%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)",n))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(a,u),s&&function(e,n){var t=function(){ee||(ee=!0,b("%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)",n))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}(a,u)}return oe(e,l,s,o,r,te.current,a)}var ae,le=y.ReactCurrentOwner,se=y.ReactDebugCurrentFrame;function ce(e){if(e){var n=e._owner,t=W(e.type,e._source,n?n.type:null);se.setExtraStackFrame(t)}else se.setExtraStackFrame(null)}function ue(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function de(){if(le.current){var e=S(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ae=!1;var fe={};function pe(e,n){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var n=de();if(!n){var t="string"==typeof e?e:e.displayName||e.name;t&&(n="\n\nCheck the top-level render call using <"+t+">.")}return n}(n);if(!fe[t]){fe[t]=!0;var r="";e&&e._owner&&e._owner!==le.current&&(r=" It was passed a child from "+S(e._owner.type)+"."),ce(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,r),ce(null)}}}function he(e,n){if("object"==typeof e)if(X(e))for(var t=0;t<e.length;t++){var r=e[t];ue(r)&&pe(r,n)}else if(ue(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var n=m&&e[m]||e[g];return"function"==typeof n?n:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)ue(i.value)&&pe(i.value,n)}}function me(e){var n,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)n=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==s&&t.$$typeof!==f)return;n=t.propTypes}if(n){var r=S(t);!function(e,n,t,r,o){var i=Function.call.bind(V);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var s=Error((r||"React class")+": "+t+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[a](n,a,r,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}l&&!(l instanceof Error)&&(G(o),b("%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).",r||"React class",t,a,typeof l),G(null)),l instanceof Error&&!(l.message in Y)&&(Y[l.message]=!0,G(o),b("Failed %s type: %s",t,l.message),G(null))}}(n,e.props,"prop",r,e)}else if(void 0!==t.PropTypes&&!ae){ae=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",S(t)||"Unknown")}"function"==typeof t.getDefaultProps&&!t.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ge(e,t,c,m,g,y){var $=function(e){return!!("string"==typeof e||"function"==typeof e||e===r||e===i||C||e===o||e===u||e===d||_||e===h||x||w||k||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===a||e.$$typeof===l||e.$$typeof===s||e.$$typeof===v||void 0!==e.getModuleId))}(e);if(!$){var E="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).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 T,D=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);E+=D||de(),null===e?T="null":X(e)?T="array":void 0!==e&&e.$$typeof===n?(T="<"+(S(e.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):T=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,E)}var M=ie(e,t,c,g,y);if(null==M)return M;if($){var O=t.children;if(void 0!==O)if(m)if(X(O)){for(var P=0;P<O.length;P++)he(O[P],e);Object.freeze&&Object.freeze(O)}else b("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 he(O,e)}return e===r?function(e){for(var n=Object.keys(e.props),t=0;t<n.length;t++){var r=n[t];if("children"!==r&&"key"!==r){ce(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ce(null);break}}null!==e.ref&&(ce(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),ce(null))}(M):me(M),M}var ye=function(e,n,t){return ge(e,n,t,!1)},be=function(e,n,t){return ge(e,n,t,!0)};QX.Fragment=r,QX.jsx=ye,QX.jsxs=be}()),QX}!function(e){"production"===process.env.NODE_ENV?e.exports=function(){if(YX)return KX;YX=1;var e=c,n=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,t,a){var l,s={},c=null,u=null;for(l in void 0!==a&&(c=""+a),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)r.call(t,l)&&!i.hasOwnProperty(l)&&(s[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps)void 0===s[l]&&(s[l]=t[l]);return{$$typeof:n,type:e,key:c,ref:u,props:s,_owner:o.current}}return KX.Fragment=t,KX.jsx=a,KX.jsxs=a,KX}():e.exports=ZX()}(GX);const JX=qX.jsx;var eQ,nQ,tQ,rQ,oQ,iQ=T.div(nQ||(nQ=mn(["\n display: flex;\n flex: 1;\n align-items: center;\n width: 100%;\n\n ","\n"],["\n display: flex;\n flex: 1;\n align-items: center;\n width: 100%;\n\n ","\n"])),(function(e){var n=e.theme;return D(eQ||(eQ=mn(["\n .Month {\n border: 1px solid ",";\n border-bottom: 3px solid ",";\n position: relative;\n user-select: none;\n cursor: pointer;\n }\n\n .Month--selected {\n border-bottom: 3px solid ",";\n "],["\n .Month {\n border: 1px solid ",";\n border-bottom: 3px solid ",";\n position: relative;\n user-select: none;\n cursor: pointer;\n }\n\n .Month--selected {\n border-bottom: 3px solid ",";\n "])),n.components.monthlyTab.border,n.components.monthlyTab.standard.borderBottom,n.components.monthlyTab.selected.borderBottom)})),aQ=T((e=>{const n=C();return m((()=>{const{onBeforeStart:t,onBeforeDrag:r,onStart:o,onMove:i,onStop:a,...l}=e,s=n.current,c=new VX({boundaries:s,...l});return t&&c.on("beforestart",t),r&&c.on("beforedrag",r),o&&c.on("start",o),i&&c.on("move",i),a&&c.on("stop",a),()=>c.destroy()}),[]),JX("div",{ref:n,className:e.className,id:e.id,children:e.children})}))(tQ||(tQ=mn(["\n display: flex;\n flex-direction: row;\n flex: 1;\n"],["\n display: flex;\n flex-direction: row;\n flex: 1;\n"]))),lQ=T(hl)(rQ||(rQ=mn(["\n font-size: 14px;\n margin-left: 8px;\n"],["\n font-size: 14px;\n margin-left: 8px;\n"]))),sQ=T(ma)(oQ||(oQ=mn(["\n height: 20px;\n text-align: center;\n margin-top: 8px;\n"],["\n height: 20px;\n text-align: center;\n margin-top: 8px;\n"]))),cQ=function(e){var n,t,r=e.data,o=e.onSelectionChange,i=e.monthText,a=void 0===i?[{singular:"documento",plural:"documenti"}]:i,l=e.preSelectedMonths,s=void 0===l?[1]:l,u=e.currentMonth,d=void 0===u?1:u,f=g(""),h=f[0],y=f[1],b=g(!1),v=b[0],x=b[1],w=(n=r.months.map((function(e){return e.amount})),t=Math.max.apply(Math,n),n.map((function(e){return e/t*100}))),k=g(new Set(s)),_=k[0],C=k[1],$=g(new Set(s)),S=$[0],E=$[1],T=g(new Set(s)),D=T[0],M=T[1];m((function(){v&&(1===_.size?y("Trascina per selezionare un intervallo di mesi"):_.size>1&&_.size<r.months.length?y("Rilascia il mouse per confermare la selezione"):y(""))}),[r.months.length,v,_]),m((function(){if(!v&&_.size>0){var e=Array.from(_,(function(e){return Number(e)}));if(!$e(_,S)){var n=e.map((function(e){return cn(cn({},r.months[e]),{month:e,monthName:kX(e)})}));if(0===n.length)return;o(n),E(new Set(_))}}}),[r.months,_,v,o,S]);var O=p((function(e){e.selection.clearSelection(),C(new Set(void 0))}),[]),P=p((function(e){var n=e.store.changed,t=n.added,r=n.removed;(t.length>0||r.length>0)&&(x(!0),C((function(e){M(e);var n=new Set(e);return wX(t).forEach((function(e){return e&&n.add(+e)})),wX(r).forEach((function(e){e&&n.delete(+e)})),n})))}),[]),R=p((function(){var e=Array.from(Array(r.months.length).keys(),(function(e){return e}));y(""),C(new Set(e))}),[r.months.length]);return c.createElement(c.Fragment,null,c.createElement(iQ,null,c.createElement(aQ,{onStart:O,onMove:P,onStop:function(){y(""),x(!1)},selectables:".Month"},r.months.map((function(e,n){var t=e.documents,r=e.amount;return c.createElement(DX,{key:"month-"+n,monthNumber:n,documents:t,percentage:w[n],selected:_.has(n)?_.has(n):D.has(n),monthText:a,amount:r,isCurrentMonth:n===d})}))),c.createElement(lQ,{text:"Seleziona tutto",color:"grey",size:"medium",onClick:R})),c.createElement(sQ,null,h))},uQ=(_n.grey[300],_n.white[100],_n.grey[600],_n.grey[50],_n.grey[100],function(e){var n=(void 0===e?{}:e).initialFilter,t=g(void 0===n?"":n),r=t[0],o=t[1],i=g([]);return{filter:r,setFilter:o,selection:i[0],setSelection:i[1]}}),dQ=function(e,n){return dQ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},dQ(e,n)};var fQ=function(){return fQ=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},fQ.apply(this,arguments)};var pQ="Pixel",hQ="Percent",mQ={unit:hQ,value:.8};function gQ(e){return"number"==typeof e?{unit:hQ,value:100*e}:"string"==typeof e?e.match(/^(\d*(\.\d+)?)px$/)?{unit:pQ,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:hQ,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),mQ):(console.warn("scrollThreshold should be string or number"),mQ)}var yQ,bQ,vQ,xQ,wQ=function(e){function n(n){var t=e.call(this,n)||this;return t.lastScrollTop=0,t.actionTriggered=!1,t.startY=0,t.currentY=0,t.dragging=!1,t.maxPullDownDistance=0,t.getScrollableTarget=function(){return t.props.scrollableTarget instanceof HTMLElement?t.props.scrollableTarget:"string"==typeof t.props.scrollableTarget?document.getElementById(t.props.scrollableTarget):(null===t.props.scrollableTarget&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n happen because the element may not have been added to DOM yet.\n See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n "),null)},t.onStart=function(e){t.lastScrollTop||(t.dragging=!0,e instanceof MouseEvent?t.startY=e.pageY:e instanceof TouchEvent&&(t.startY=e.touches[0].pageY),t.currentY=t.startY,t._infScroll&&(t._infScroll.style.willChange="transform",t._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},t.onMove=function(e){t.dragging&&(e instanceof MouseEvent?t.currentY=e.pageY:e instanceof TouchEvent&&(t.currentY=e.touches[0].pageY),t.currentY<t.startY||(t.currentY-t.startY>=Number(t.props.pullDownToRefreshThreshold)&&t.setState({pullToRefreshThresholdBreached:!0}),t.currentY-t.startY>1.5*t.maxPullDownDistance||t._infScroll&&(t._infScroll.style.overflow="visible",t._infScroll.style.transform="translate3d(0px, "+(t.currentY-t.startY)+"px, 0px)")))},t.onEnd=function(){t.startY=0,t.currentY=0,t.dragging=!1,t.state.pullToRefreshThresholdBreached&&(t.props.refreshFunction&&t.props.refreshFunction(),t.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame((function(){t._infScroll&&(t._infScroll.style.overflow="auto",t._infScroll.style.transform="none",t._infScroll.style.willChange="unset")}))},t.onScrollListener=function(e){"function"==typeof t.props.onScroll&&setTimeout((function(){return t.props.onScroll&&t.props.onScroll(e)}),0);var n=t.props.height||t._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;t.actionTriggered||((t.props.inverse?t.isElementAtTop(n,t.props.scrollThreshold):t.isElementAtBottom(n,t.props.scrollThreshold))&&t.props.hasMore&&(t.actionTriggered=!0,t.setState({showLoader:!0}),t.props.next&&t.props.next()),t.lastScrollTop=n.scrollTop)},t.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:n.dataLength},t.throttledOnScrollListener=function(e,n,t,r){var o,i=!1,a=0;function l(){o&&clearTimeout(o)}function s(){var s=this,c=Date.now()-a,u=arguments;function d(){a=Date.now(),t.apply(s,u)}i||(r&&!o&&d(),l(),void 0===r&&c>e?d():!0!==n&&(o=setTimeout(r?function(){o=void 0}:d,void 0===r?e-c:e)))}return"boolean"!=typeof n&&(r=t,t=n,n=void 0),s.cancel=function(){l(),i=!0},s}(150,t.onScrollListener).bind(t),t.onStart=t.onStart.bind(t),t.onMove=t.onMove.bind(t),t.onEnd=t.onEnd.bind(t),t}return function(e,n){function t(){this.constructor=e}dQ(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}(n,e),n.prototype.componentDidMount=function(){if(void 0===this.props.dataLength)throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"==typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!=typeof this.props.refreshFunction))throw new Error('Mandatory prop "refreshFunction" missing.\n Pull Down To Refresh functionality will not work\n as expected. Check README.md for usage\'')},n.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},n.prototype.componentDidUpdate=function(e){this.props.dataLength!==e.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},n.getDerivedStateFromProps=function(e,n){return e.dataLength!==n.prevDataLength?fQ(fQ({},n),{prevDataLength:e.dataLength}):null},n.prototype.isElementAtTop=function(e,n){void 0===n&&(n=.8);var t=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=gQ(n);return r.unit===pQ?e.scrollTop<=r.value+t-e.scrollHeight+1:e.scrollTop<=r.value/100+t-e.scrollHeight+1},n.prototype.isElementAtBottom=function(e,n){void 0===n&&(n=.8);var t=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=gQ(n);return r.unit===pQ?e.scrollTop+t>=e.scrollHeight-r.value:e.scrollTop+t>=r.value/100*e.scrollHeight},n.prototype.render=function(){var e=this,n=fQ({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),t=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),r=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return c.createElement("div",{style:r,className:"infinite-scroll-component__outerdiv"},c.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(n){return e._infScroll=n},style:n},this.props.pullDownToRefresh&&c.createElement("div",{style:{position:"relative"},ref:function(n){return e._pullDown=n}},c.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!t&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},n}(d),kQ=c.createElement("div",null,"Non ci sono elementi da visualizzare"),_Q=function(e){var n=e.columnsCount,t=e.EmptyPage;return c.createElement(CQ,{colSpan:n},t||kQ)},CQ=T.td(yQ||(yQ=mn(["\n text-align: center;\n padding: 1em;\n"],["\n text-align: center;\n padding: 1em;\n"]))),$Q=function(e){var n=e.text,t=e.onClick,r=e.isActive;return c.createElement(SQ,{isActive:r,onClick:t},n)},SQ=T.div.attrs((function(e){var n=e.theme,t=e.isActive,r=n.components.table.pagination.numbers,o=r.active,i=r.hover,a=r.normal,l=t?o:a,s=t?o:i;return{color:l.color,background:l.background,hoverColor:s.color,hoverBackground:s.background}}))(bQ||(bQ=mn(["\n border-radius: 0.3em;\n font-size: 1em;\n cursor: ",";\n\n width: 1.7em;\n height: 1.7em;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n color: ",";\n background: ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n"],["\n border-radius: 0.3em;\n font-size: 1em;\n cursor: ",";\n\n width: 1.7em;\n height: 1.7em;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n color: ",";\n background: ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n"])),(function(e){return e.isActive?"initial":"pointer"}),(function(e){return e.color}),(function(e){return e.background}),(function(e){return e.hoverColor}),(function(e){return e.hoverBackground})),EQ=function(e){var n=e.pageCount,t=e.pageIndex,r=e.gotoPage,o=u((function(){return Array.from({length:n}).map((function(e,n){return c.createElement($Q,{key:n,text:n+1,isActive:t===n,onClick:function(){return r(n)}})}))}),[r,n,t]),i=u((function(){return n<=8?o:t<=3?hn(hn([],o.slice(0,5),!0),["...",o[n-1]],!1):t>n-5?hn([o[0],"..."],o.slice(-6),!0):[o[0],"...",o[t-2],o[t-1],o[t],o[t+1],o[t+2],"...",o[n-1]]}),[o,n,t]);return c.createElement(c.Fragment,null,i)},TQ=function(e){var n=e.canPreviousPage,t=e.nextPage,r=e.previousPage,o=e.canNextPage,i=e.gotoPage,a=e.pageCount,l=e.pageIndex,s=M().components.table.pagination.buttons;return c.createElement(DQ,null,c.createElement(hl,{color:s,text:"Indietro",onClick:r,isDisabled:!n}),c.createElement(EQ,{pageCount:a,pageIndex:l,gotoPage:i}),c.createElement(hl,{color:s,text:"Avanti",onClick:t,isDisabled:!o}))},DQ=T.div(vQ||(vQ=mn(["\n border-top: 1px solid ",";\n background-color: ",";\n color: ",";\n font-size: 14px;\n\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 1.5em;\n padding: 1em;\n"],["\n border-top: 1px solid ",";\n background-color: ",";\n color: ",";\n font-size: 14px;\n\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 1.5em;\n padding: 1em;\n"])),(function(e){return e.theme.palette.grey[200]}),(function(e){return e.theme.palette.white[100]}),(function(e){return e.theme.palette.black[100]})),MQ=function(e){var n=e.count,t=e.resetSelection,r=M().components.table.selectedRowsCount.resetButtonColor;return c.createElement(OQ,null,c.createElement("div",null,n," elementi selezionati"),c.createElement(hl,{type:"text",color:r,text:"Annulla selezione",onClick:t}))},OQ=T.div(xQ||(xQ=mn(["\n height: 40px;\n background: ",";\n color: ",";\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 8px;\n padding: 8px;\n"],["\n height: 40px;\n background: ",";\n color: ",";\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 8px;\n padding: 8px;\n"])),(function(e){return e.theme.components.table.selectedRowsCount.background}),(function(e){return e.theme.components.table.selectedRowsCount.color})),PQ=function(){return PQ=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},PQ.apply(this,arguments)};var RQ,NQ,AQ,IQ,FQ,LQ,jQ,zQ,BQ,HQ,UQ,WQ,VQ,YQ,qQ,GQ,KQ,XQ,QQ,ZQ,JQ=function(e){var n=e.animate,t=void 0===n||n,r=e.animateBegin,o=e.backgroundColor,i=void 0===o?"#f5f6f7":o,a=e.backgroundOpacity,l=void 0===a?1:a,s=e.baseUrl,c=void 0===s?"":s,u=e.children,d=e.foregroundColor,f=void 0===d?"#eee":d,p=e.foregroundOpacity,h=void 0===p?1:p,m=e.gradientRatio,g=void 0===m?2:m,y=e.gradientDirection,b=void 0===y?"left-right":y,v=e.uniqueKey,w=e.interval,k=void 0===w?.25:w,_=e.rtl,C=void 0!==_&&_,$=e.speed,E=void 0===$?1.2:$,T=e.style,D=void 0===T?{}:T,M=e.title,O=void 0===M?"Loading...":M,P=e.beforeMask,R=void 0===P?null:P,N=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}(e,["animate","animateBegin","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","gradientDirection","uniqueKey","interval","rtl","speed","style","title","beforeMask"]),A=v||Math.random().toString(36).substring(6),I=A+"-diff",F=A+"-animated-diff",L=A+"-aria",j=C?{transform:"scaleX(-1)"}:null,z="0; "+k+"; 1",B=E+"s",H="top-bottom"===b?"rotate(90)":void 0;return x("svg",PQ({"aria-labelledby":L,role:"img",style:PQ(PQ({},D),j)},N),O?x("title",{id:L},O):null,R&&S(R)?R:null,x("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+c+"#"+I+")",style:{fill:"url("+c+"#"+F+")"}}),x("defs",null,x("clipPath",{id:I},u),x("linearGradient",{id:F,gradientTransform:H},x("stop",{offset:"0%",stopColor:i,stopOpacity:l},t&&x("animate",{attributeName:"offset",values:-g+"; "+-g+"; 1",keyTimes:z,dur:B,repeatCount:"indefinite",begin:r})),x("stop",{offset:"50%",stopColor:f,stopOpacity:h},t&&x("animate",{attributeName:"offset",values:-g/2+"; "+-g/2+"; "+(1+g/2),keyTimes:z,dur:B,repeatCount:"indefinite",begin:r})),x("stop",{offset:"100%",stopColor:i,stopOpacity:l},t&&x("animate",{attributeName:"offset",values:"0; 0; "+(1+g),keyTimes:z,dur:B,repeatCount:"indefinite",begin:r})))))},eZ=function(e){return e.children?x(JQ,PQ({},e)):x(nZ,PQ({},e))},nZ=function(e){return x(eZ,PQ({viewBox:"0 0 476 124"},e),x("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),x("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),x("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),x("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),x("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),x("circle",{cx:"20",cy:"20",r:"20"}))},tZ=eZ,rZ=function(e){var n=e.column,t="selection"===n.id,r=t?26:n.width?+n.width:150;return c.createElement(oZ,{style:{margin:t?"0 12px":"0"},speed:2,width:r,height:26,animate:!0,viewBox:"0 0 "+r+" 36"},c.createElement("rect",{x:"0",y:"9",rx:"5",ry:"5",width:r,height:"26"}))},oZ=T(tZ)(RQ||(RQ=mn(["\n max-width: 100%;\n width: auto;\n clear: both;\n"],["\n max-width: 100%;\n width: auto;\n clear: both;\n"]))),iZ=T((function(e){var n=e.children,t=e.align,r=e.isLoading,o=un(e,["children","align","isLoading"]);return c.createElement("td",cn({},o),c.createElement(lZ,{align:t||"left",isLoading:!!r},n))}))(NQ||(NQ=mn(["\n font-size: 14px;\n display: flex;\n flex-direction: row;\n align-items: center;\n"],["\n font-size: 14px;\n display: flex;\n flex-direction: row;\n align-items: center;\n"]))),aZ={left:"flex-start",center:"center",right:"flex-end"},lZ=T.div(AQ||(AQ=mn(["\n margin: 0 ",";\n display: flex;\n justify-content: ",";\n align-items: center;\n gap: 8px;\n flex: 1;\n"],["\n margin: 0 ",";\n display: flex;\n justify-content: ",";\n align-items: center;\n gap: 8px;\n flex: 1;\n"])),(function(e){return e.isLoading?"0":"16px"}),(function(e){var n=e.align;return aZ[n]})),sZ=function(e){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){return hn(hn([],e,!0),[n.id],!1)}),[]))&&void 0!==n?n:[]},cZ=T((function(e){var n=e.children,t=un(e,["children"]);return c.createElement("th",cn({},t),c.createElement(uZ,null,n))}))(IQ||(IQ=mn(["\n font-size: 14px;\n display: flex;\n flex-direction: row;\n align-items: center;\n"],["\n font-size: 14px;\n display: flex;\n flex-direction: row;\n align-items: center;\n"]))),uZ=T.div(FQ||(FQ=mn(["\n display: flex;\n flex: 1;\n justify-content: space-between;\n margin: 0 16px;\n"],["\n display: flex;\n flex: 1;\n justify-content: space-between;\n margin: 0 16px;\n"]))),dZ=T.table(LQ||(LQ=mn(["\n width: 100%;\n border-collapse: collapse;\n border-spacing: 0;\n\n "," + "," {\n border-left: 1px solid ",";\n }\n\n "," + "," {\n border-left: 1px solid transparent;\n }\n\n td {\n overflow: hidden;\n }\n"],["\n width: 100%;\n border-collapse: collapse;\n border-spacing: 0;\n\n "," + "," {\n border-left: 1px solid ",";\n }\n\n "," + "," {\n border-left: 1px solid transparent;\n }\n\n td {\n overflow: hidden;\n }\n"])),cZ,cZ,(function(e){return e.theme.palette.grey[100]}),iZ,iZ),fZ=T.thead(jQ||(jQ=mn(["\n display: block;\n width: 100%;\n background-color: ",";\n border-bottom: 1px solid ",";\n padding-right: ",";\n box-sizing: border-box;\n"],["\n display: block;\n width: 100%;\n background-color: ",";\n border-bottom: 1px solid ",";\n padding-right: ",";\n box-sizing: border-box;\n"])),(function(e){return e.theme.components.table.header.background}),(function(e){return e.theme.palette.grey[100]}),(function(e){var n=e.scrollBar;return n?n+"px":0})),pZ=T.tbody(zQ||(zQ=mn(["\n height: ",";\n display: block;\n overflow-y: auto; /* Trigger vertical scroll */\n overflow-x: hidden; /* Hide the horizontal scroll */\n /* cursor: pointer; */\n\n /* :focus-within {\n cursor: none;\n } */\n"],["\n height: ",";\n display: block;\n overflow-y: auto; /* Trigger vertical scroll */\n overflow-x: hidden; /* Hide the horizontal scroll */\n /* cursor: pointer; */\n\n /* :focus-within {\n cursor: none;\n } */\n"])),(function(e){var n=e.bodyHeight;return""+Mn(n)})),hZ=T.tr(HQ||(HQ=mn(["\n ",";\n ","\n"],["\n ",";\n ","\n"])),(function(e){var n=e.rowHeight;return n?"height: "+Mn(n):""}),(function(e){var n=e.isHeader,t=e.headerHeight;return n&&D(BQ||(BQ=mn(["\n ",";\n background-color: ",";\n color: ",";\n "],["\n ",";\n background-color: ",";\n color: ",";\n "])),t?"height: "+Mn(t):"",(function(e){return e.theme.components.table.header.background}),(function(e){return e.theme.components.table.header.color}))})),mZ=T.tfoot(UQ||(UQ=mn(["\n border-top: 1px solid ",";\n background-color: ",";\n color: ",";\n font-size: 14px;\n"],["\n border-top: 1px solid ",";\n background-color: ",";\n color: ",";\n font-size: 14px;\n"])),(function(e){return e.theme.palette.grey[200]}),(function(e){return e.theme.palette.white[100]}),(function(e){return e.theme.palette.black[100]})),gZ=T(hZ).attrs((function(e){var n=e.theme,t=e.isDisabled,r=e.isSelected,o=n.components.table.rows,i=o.normal,a=o.disabled,l=o.selected,s=o.hover,c=t?a:r?l:i,u=c.background,d=c.color,f=t?a:r?l:s,p=f.background;return{background:u,color:d,hoverColor:f.color,hoverBackground:p}}))(YQ||(YQ=mn(["\n padding: 5px 0;\n transition: background-color 200ms ease;\n\n background-color: ",";\n color: ",";\n\n ","\n\n :focus {\n ","\n }\n"],["\n padding: 5px 0;\n transition: background-color 200ms ease;\n\n background-color: ",";\n color: ",";\n\n ","\n\n :focus {\n ","\n }\n"])),(function(e){return e.background}),(function(e){return e.color}),(function(e){var n=e.rowHasFocus,t=e.hoverBackground,r=e.hoverColor;return!n&&D(WQ||(WQ=mn(["\n :hover {\n background-color: ",";\n color: ",";\n }\n "],["\n :hover {\n background-color: ",";\n color: ",";\n }\n "])),t,r)}),(function(e){var n=e.hoverBackground,t=e.hoverColor;return D(VQ||(VQ=mn(["\n background-color: ",";\n color: ",";\n outline: 0 solid transparent;\n "],["\n background-color: ",";\n color: ",";\n outline: 0 solid transparent;\n "])),n,t)})),yZ=function(e){var n=e.isLoading,t=e.onRowClick,r=e.prepareRow,o=e.rowHasFocus,i=e.rowHeight,a=e.rows,l=e.selectableRows,s=e.selectedRowsIds,u=e.setHighlightedRow,d=e.tableId;return c.createElement(c.Fragment,null,a.map((function(e,a){r(e);var f=e.original.isDisabled,p=function(){null==t||t(e),l&&e.toggleRowSelected()},h=e.getRowProps((function(e){return cn(cn({},e),{isDisabled:f,onClick:p})})),m=h.key,g=un(h,["key"]);return c.createElement(gZ,cn({id:d+"_"+a+"_row",tabIndex:-1,spellCheck:!1,key:m,onMouseEnter:function(){return!o&&u(a)},isDisabled:f,isSelected:s.includes(e.id),rowHeight:i,rowHasFocus:o},g),e.cells.map((function(e){var t=e.getCellProps(),r=t.key,o=un(t,["key"]);return c.createElement(iZ,cn({key:r},o,{align:e.column.align,isLoading:n}),c.createElement(c.Fragment,null,n?c.createElement(rZ,{column:e.column,key:r}):e.render("Cell")))})))})))},bZ=c.createElement(Ln,{icon:se}),vZ=c.createElement(Ln,{icon:ce}),xZ=c.createElement(Ln,{icon:ue}),wZ=function(e){var n=e.isSorted,t=e.isSortedDesc;return n?t?vZ:xZ:bZ},kZ=function(e){var n=e.headerHeight,t=e.headerGroups,r=e.scrollBar;return c.createElement(fZ,{scrollBar:r},t.map((function(e){var t=e.getHeaderGroupProps(),r=t.key,o=un(t,["key"]);return c.createElement(hZ,cn({isHeader:!0,headerHeight:n,key:r},o),e.headers.map((function(e){var n=e.getHeaderProps(cn(cn({},e.getSortByToggleProps()),e)),t=n.key,r={align:n.align,colSpan:n.colSpan,id:n.id,onClick:n.onClick,role:n.role,style:n.style,title:n.title,width:n.width};return c.createElement(cZ,cn({key:t},r),e.render("Header"),e.canSort&&c.createElement(wZ,{isSorted:e.isSorted,isSortedDesc:e.isSortedDesc}))})))})))},_Z=function(e){var n=e.row,r=e.actions,o=e.rowIsDisabled,i=M().components.table.actions.dropdownTriggerColor,a=p((function(){return c.createElement(ml,{color:i,icon:{icon:t,fixedWidth:!0}})}),[i]),l=u((function(){return r.map((function(e){var t=e.isDisabled,r=e.onClick,i=un(e,["isDisabled","onClick"]);return cn(cn({},i),{isDisabled:t||o,onClick:function(){return r(n)}})}))}),[r,n,o]);return c.createElement(bA,{placement:"right-start",renderTrigger:a,content:l})},CZ=function(e){var n=e.action,t=e.row,r=e.rowIsDisabled,o=e.type,i=void 0===o?"default":o,a=n.text,l=n.onClick,s=n.isDisabled,u=M().components.table.actions.colors[i];return c.createElement(hl,{color:u,type:"text",text:a,onClick:function(){return l(t)},isDisabled:s||r})},$Z=function(e){var n,t=e.row,r=e.actions,o=e.renderActions,i=t.original.isDisabled;return c.createElement(c.Fragment,null,null==o?void 0:o(),(null==r?void 0:r.primary)&&c.createElement(CZ,{row:t,action:r.primary,rowIsDisabled:i}),(null===(n=null==r?void 0:r.dropdown)||void 0===n?void 0:n.length)&&c.createElement(_Z,{row:t,actions:r.dropdown,rowIsDisabled:i}))},SZ=function(e){var n=e.row,t=n.getToggleRowSelectedProps(),r=t.checked,o=t.onChange,i=un(t,["checked","onChange"]);return c.createElement(hH,cn({value:r?QB.CHECKED:QB.UNCHECKED,onChange:o,disabled:n.original.isDisabled},i))},EZ=function(e){return!e.original.isDisabled},TZ=function(e){var n=e.headerProps,t=e.selectSinglePage,r=void 0!==t&&t,o=n.getToggleAllPageRowsSelectedProps,i=n.toggleRowSelected,a=n.getToggleAllRowsSelectedProps,l=n.rows,s=n.page,c=r?s:l,u=r?o():a(),d=function(e){return e.filter(EZ).every((function(e){return e.isSelected}))}(c),f=0===c.filter(EZ).length,p=!f&&d,h=!p&&c.some((function(e){return e.isSelected}));return cn(cn({},u),{checked:p,indeterminate:h,onChange:function(){c.forEach((function(e){return i(e.id,!d&&EZ(e))}))},disabled:f})},DZ=function(e){var n=TZ({headerProps:e}),t=n.indeterminate,r=n.checked,o=un(n,["indeterminate","checked"]),i=r?QB.CHECKED:t?QB.INDETERMINATE:QB.UNCHECKED;return c.createElement(hH,cn({value:i},o))},MZ=function(e){e.visibleColumns.push((function(e){return hn([{id:"selection",Header:DZ,Cell:SZ,width:50,canResize:!1,align:"left"}],e,!0)}))},OZ=function(e){var n=e.actions,t=e.bodyHeight,r=void 0===t?300:t,o=e.columns,i=e.data,a=e.EmptyPage,l=e.Footer,s=e.globalFilter,d=e.headerHeight,f=void 0===d?40:d,h=e.hideHeader,y=void 0!==h&&h,b=e.isLoading,v=void 0!==b&&b,x=e.manualPagination,w=e.noPagination,k=void 0!==w&&w,_=e.onRowClick,C=e.onScroll,$=e.onSelectionChange,S=e.onSort,T=e.preSelectAllRows,D=e.renderActions,M=e.actionsHeader,O=e.rowHeight,P=void 0===O?40:O,R=e.selectableRows,N=void 0!==R&&R,A=e.sortable,I=void 0===A||A,F=e.withCheckbox,L=void 0!==F&&F,j=e.pageSize,z=void 0===j?20:j,B=e.disableArrowNavigation,H=void 0!==B&&B,U=g(Pn())[0],W=function(e){var n=e.actions,t=e.renderActions,r=e.withCheckbox,o=e.selectableRows,i=e.actionsHeader,a=void 0===i?"Azioni":i,l=[Xe,Qe,Ze,Je,en];return(o||r)&&(l.push(Ke),r&&l.push(MZ)),(n||t)&&l.push((function(e){e.visibleColumns.push((function(e){return hn(hn([],e,!0),[{id:"actions",Header:a,align:"center",Cell:function(e){var r=e.row;return c.createElement($Z,{row:r,actions:n,renderActions:t})}}],!1)}))})),l}({actions:n,renderActions:D,withCheckbox:L,selectableRows:N,actionsHeader:M}),V=nn.apply(void 0,hn([{columns:o,data:i,manualFilters:!0,disableSortBy:!I,manualSortBy:!!S,manualPagination:k||!!x,autoResetSelectedRows:!0,autoResetPage:!0,pageCount:null==x?void 0:x.pageCount,initialState:{selectedRowIds:T?Array.from(Array(i.length).keys()).reduce((function(e,n){var t;return Object.assign(e,((t={})[n]=!0,t))}),{}):{},pageSize:z}}],W,!1)),Y=V.getTableBodyProps,q=V.getTableProps,G=V.headerGroups,K=V.prepareRow,X=V.page,Q=V.state,Z=V.allColumns,J=V.canPreviousPage,ee=V.canNextPage,ne=V.pageCount,te=V.gotoPage,re=V.nextPage,oe=V.previousPage,ie=V.selectedFlatRows,ae=V.toggleAllRowsSelected,le=V.setGlobalFilter,se=function(e,n,t,r){var o=g([]),i=o[0],a=o[1],l=g(n?sZ(e):[]),s=l[0],c=l[1];return m((function(){if(e&&e.length!==i.length){var n=sZ(e);if(t){var o=e.filter((function(e){return!s.includes(e.id)})),l=[],u=[];r.forEach((function(e){!n.includes(e.id)&&i.includes(e.id)&&(l.push(e.id),u.push(e))})),t(e,o,u)}c(n),a(sZ(e))}}),[i,t,r,e,s]),s}(ie,Boolean(T),$,X),ce=p((function(){return null==ae?void 0:ae(!1)}),[ae]);m((function(){return le(s)}),[s,le]);var ue=Q.pageIndex,de=Q.sortBy;m((function(){return null==x?void 0:x.setCurrentPage(ue+1)}),[x,ue]),m((function(){return null==S?void 0:S(de)}),[S,de]);var fe=g(0),pe=fe[0],he=fe[1];E((function(){var e=document.getElementById(U),n=document.getElementById(U+"_body");e&&n&&(null==e?void 0:e.clientWidth)-(null==n?void 0:n.clientWidth)>0?he((null==e?void 0:e.clientWidth)-(null==n?void 0:n.clientWidth)):he(0)}),[U]);var me=p((function(e){return null==_?void 0:_(X[e])}),[_,X]),ge=iA(U+"_body",U+"_:id_row",H,me,X.length),ye=ge[1],be=ge[2],ve=u((function(){return y?c.createElement(c.Fragment,null):c.createElement(kZ,{selectedRowsIds:se,headerHeight:null!=f?f:40,headerGroups:G,scrollBar:pe,sortBy:de})}),[y,se,f,G,pe,de]),xe=(null==Z?void 0:Z.length)||0,we=(null==ie?void 0:ie.length)||0,ke=u((function(){return X.length?c.createElement(yZ,{tableId:U,isLoading:v,prepareRow:K,rows:X,selectedRowsIds:se,onRowClick:_,rowHeight:null!=P?P:40,selectableRows:N,setHighlightedRow:ye,rowHasFocus:be}):c.createElement(_Q,{columnsCount:xe,EmptyPage:a})}),[a,xe,v,_,X,K,U,be,P,N,se,ye]),_e=u((function(){return we>0||l?c.createElement(mZ,null,we>0&&c.createElement("tr",null,c.createElement("td",{colSpan:xe},c.createElement(MQ,{count:we,resetSelection:ce}))),l&&c.createElement("tr",null,c.createElement("td",{colSpan:xe},l))):c.createElement(c.Fragment,null)}),[l,xe,ce,we]),Ce=c.createElement(dZ,cn({},q(),{id:U}),ve,c.createElement(pZ,cn({id:U+"_body",tabIndex:0},Y(),{bodyHeight:null!=r?r:300}),ke),_e);return k?c.createElement(wQ,{dataLength:X.length,next:function(){return null==C?void 0:C()},hasMore:!0,loader:c.createElement(c.Fragment,null),scrollableTarget:U+"_body",scrollThreshold:1},Ce):c.createElement(c.Fragment,null,Ce,c.createElement(TQ,{pageIndex:ue,pageCount:ne,gotoPage:te,canPreviousPage:J,nextPage:re,previousPage:oe,canNextPage:ee}))},PZ=(_n.grey[50],_n.black[100],_n.white[100],_n.black[100],_n.black[100],_n.blue[50],_n.black[100],_n.blue[100],_n.grey[800],_n.grey[100],_n.yellow[50],_n.black[100],_n.white[100],_n.black[100],_n.blue[50],_n.blue[500],_n.blue[500],_n.white[100],T.div(qQ||(qQ=mn(["\n display: flex;\n justify-content: center;\n width: 100%;\n margin-top: 2rem;\n"],["\n display: flex;\n justify-content: center;\n width: 100%;\n margin-top: 2rem;\n"])))),RZ=T.div(GQ||(GQ=mn(["\n padding: 2px;\n margin-right: 4px;\n margin-left: 4px;\n font-size: 14px;\n line-height: 24px;\n cursor: pointer;\n box-sizing: content-box;\n\n &.deactivated {\n opacity: 0.6;\n cursor: not-allowed;\n }\n\n &.selected {\n font-weight: 500;\n border-radius: 4px;\n height: 24px;\n width: 24px;\n text-align: center;\n }\n"],["\n padding: 2px;\n margin-right: 4px;\n margin-left: 4px;\n font-size: 14px;\n line-height: 24px;\n cursor: pointer;\n box-sizing: content-box;\n\n &.deactivated {\n opacity: 0.6;\n cursor: not-allowed;\n }\n\n &.selected {\n font-weight: 500;\n border-radius: 4px;\n height: 24px;\n width: 24px;\n text-align: center;\n }\n"]))),NZ=T(RZ)(KQ||(KQ=mn(["\n color: ",";\n background-color: ",";\n width: 24px;\n height: 24px;\n text-align: center;\n border-radius: 4px;\n &:hover {\n color: ",";\n background-color: ",";\n }\n &.selected {\n color: ",";\n background-color: ",";\n }\n"],["\n color: ",";\n background-color: ",";\n width: 24px;\n height: 24px;\n text-align: center;\n border-radius: 4px;\n &:hover {\n color: ",";\n background-color: ",";\n }\n &.selected {\n color: ",";\n background-color: ",";\n }\n"])),(function(e){return e.theme.components.pagination.numbers.normal.color}),(function(e){return e.theme.components.pagination.numbers.normal.backgroundColor}),(function(e){return e.theme.components.pagination.numbers.hover.color}),(function(e){return e.theme.components.pagination.numbers.hover.backgroundColor}),(function(e){return e.theme.components.pagination.numbers.active.color}),(function(e){return e.theme.components.pagination.numbers.active.backgroundColor})),AZ=T(RZ)(XQ||(XQ=mn(["\n color: ",";\n background-color: ",";\n &.deactivated {\n color: ",";\n background-color: ",";\n }\n"],["\n color: ",";\n background-color: ",";\n &.deactivated {\n color: ",";\n background-color: ",";\n }\n"])),(function(e){return e.theme.components.pagination.buttons.normal.color}),(function(e){return e.theme.components.pagination.buttons.normal.backgroundColor}),(function(e){return e.theme.components.pagination.buttons.disabled.color}),(function(e){return e.theme.components.pagination.buttons.disabled.backgroundColor})),IZ=function(e){var n=e.totalPages,t=e.changePageAction,r=e.currentPage,o=e.listSize,i=e.nextText,a=e.pageSize,l=e.prevText,s=e.nextPageAction,d=e.prevPageAction,f=u((function(){return n||Math.ceil(o/(0===a?1:a))}),[o,a,n]),p=Math.min(r,f),h=tn(p-3,p+4).filter((function(e){return e>0&&e<=f})),m=d&&r>1,g=s&&f>r;return c.createElement(PZ,null,c.createElement(AZ,{onClick:function(){d&&m&&d()},className:m?"":"deactivated"},l),h.includes(1)?null:c.createElement(c.Fragment,null,c.createElement(NZ,{onClick:function(){t(1)},className:1===r?"selected":""},"1"),h[0]-1!=1?c.createElement(NZ,null,"..."):null),h.map((function(e,n){return c.createElement(NZ,{key:n,onClick:function(){t(e)},className:e===p?"selected":""},e)})),h.includes(f)?null:c.createElement(c.Fragment,null,f-h[h.length-1]!=1?c.createElement(NZ,null,"..."):null,c.createElement(NZ,{onClick:function(){t(f)},className:r===f?"selected":""},f)),c.createElement(AZ,{onClick:function(){s&&g&&s()},className:g?"":"deactivated"},i))};_n.white[100],_n.grey[800],_n.white[100],_n.blue[500],_n.blue[500],_n.white[100],_n.blue[50],_n.blue[500],_n.white[100],_n.black[100];!function(e){e.GREY="grey",e.RED="red",e.BLUE="blue",e.YELLOW="yellow",e.GREEN="green"}(QQ||(QQ={})),function(e){e.GREY="grey",e.RED="red",e.BLUE="blue",e.YELLOW="yellow",e.GREEN="green"}(ZQ||(ZQ={}));var FZ,LZ,jZ,zZ,BZ,HZ,UZ,WZ,VZ,YZ,qZ,GZ,KZ,XZ,QZ,ZZ,JZ,eJ,nJ,tJ,rJ,oJ=T.div(FZ||(FZ=mn(["\n height: ",";\n background-color: ",";\n position: relative;\n border-radius: 100px;\n"],["\n height: ",";\n background-color: ",";\n position: relative;\n border-radius: 100px;\n"])),Ca.s,(function(e){return e.theme.palette.grey[100]})),iJ=T.div(LZ||(LZ=mn(["\n position: absolute;\n height: 100%;\n z-index: 1;\n border-radius: 100px;\n transition: width 0.35s ease-in-out;\n\n background-color: ",";\n width: ","%;\n max-width: 100%;\n"],["\n position: absolute;\n height: 100%;\n z-index: 1;\n border-radius: 100px;\n transition: width 0.35s ease-in-out;\n\n background-color: ",";\n width: ","%;\n max-width: 100%;\n"])),(function(e){var n=e.theme,t=e.color;return n.components.progressBar[null!=t?t:ZQ.BLUE].backgroundColor}),(function(e){return e.percentage})),aJ=function(e){return c.createElement(oJ,null,c.createElement(iJ,cn({},e)))},lJ=(_n.grey[500],_n.green[500],_n.blue[500],_n.yellow[500],_n.red[500],_n.blue[500],_n.blue[100],_n.white[100],_n.blue[500],_n.grey[500],_n.grey[100],_n.white[100],_n.grey[200],T.div(jZ||(jZ=mn(["\n display: flex;\n flex-direction: row;\n cursor: pointer;\n height: 32px;\n\n & div:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n margin-left: 0;\n }\n\n & div:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n }\n"],["\n display: flex;\n flex-direction: row;\n cursor: pointer;\n height: 32px;\n\n & div:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n margin-left: 0;\n }\n\n & div:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n }\n"])))),sJ=T.div(HZ||(HZ=mn(["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-left: -1px;\n position: relative;\n padding: 4px 8px;\n gap: 8px;\n\n ","\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-left: -1px;\n position: relative;\n padding: 4px 8px;\n gap: 8px;\n\n ","\n"])),(function(e){var n=e.active,t=e.theme;return n?D(zZ||(zZ=mn(["\n border: 1px solid ",";\n color: ",";\n background-color: ",";\n z-index: 1;\n "],["\n border: 1px solid ",";\n color: ",";\n background-color: ",";\n z-index: 1;\n "])),t.components.segmentButton.selected.border,t.components.segmentButton.selected.primary,t.components.segmentButton.selected.background):D(BZ||(BZ=mn(["\n border: 1px solid ",";\n color: ",";\n background-color: ",";\n "],["\n border: 1px solid ",";\n color: ",";\n background-color: ",";\n "])),t.components.segmentButton.unselected.border,t.components.segmentButton.unselected.primary,t.components.segmentButton.unselected.background)})),cJ=T.div(VZ||(VZ=mn(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: ",";\n min-width: ",";\n border-radius: 4px;\n\n ","\n"],["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: ",";\n min-width: ",";\n border-radius: 4px;\n\n ","\n"])),(function(e){return e.isLoading?"0px 2px":"0px 4px"}),(function(e){return e.isLoading?"18px":"14px"}),(function(e){var n=e.active,t=e.theme;return n?D(UZ||(UZ=mn(["\n color: ",";\n background-color: ",";\n "],["\n color: ",";\n background-color: ",";\n "])),t.components.segmentButton.selected.primary,t.components.segmentButton.selected.secondary):D(WZ||(WZ=mn(["\n color: ",";\n background-color: ",";\n "],["\n color: ",";\n background-color: ",";\n "])),t.components.segmentButton.unselected.primary,t.components.segmentButton.unselected.secondary)})),uJ=O(YZ||(YZ=mn(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"],["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))),dJ=T.div(qZ||(qZ=mn(["\n width: 14px;\n height: 18px;\n border-radius: 50% !important;\n border: 2px solid transparent;\n border-top-color: ",";\n animation: "," 1s linear infinite;\n margin: auto;\n"],["\n width: 14px;\n height: 18px;\n border-radius: 50% !important;\n border: 2px solid transparent;\n border-top-color: ",";\n animation: "," 1s linear infinite;\n margin: auto;\n"])),(function(e){var n=e.active,t=e.theme;return n?t.components.segmentButton.selected.primary:t.components.segmentButton.unselected.primary}),uJ),fJ=function(e){var n=e.onChange,t=e.preselected,r=e.segments,o=e.isLoading,i=g(t&&t>=0&&t<r.length?t:0),a=i[0],l=i[1];return c.createElement(lJ,null,r.map((function(e,t){return c.createElement(sJ,{key:t,active:a===t,onClick:function(){l(t),null==n||n(t,e)}},e.icon&&c.createElement(Ln,cn({},e.icon)),e.text&&c.createElement("div",null,e.text),void 0!==e.counter&&c.createElement(cJ,{isLoading:o,active:a===t},o?c.createElement(dJ,{active:a===t}):e.counter))})))},pJ=c.createElement(Ln,{icon:U,fixedWidth:!0}),hJ=function(e){var n=e.text,t=void 0===n?"":n,r=e.number,o=e.status,i="completed"===o?pJ:r+1;return c.createElement(yJ,{status:o},c.createElement(mJ,null,i),c.createElement(gJ,null,t))},mJ=T.div(GZ||(GZ=mn(["\n border-radius: 50%;\n\n width: 2em;\n height: 2em;\n\n display: flex;\n justify-content: center;\n align-items: center;\n"],["\n border-radius: 50%;\n\n width: 2em;\n height: 2em;\n\n display: flex;\n justify-content: center;\n align-items: center;\n"]))),gJ=T.div(KZ||(KZ=mn([""],[""]))),yJ=T.div.attrs((function(e){var n=e.theme,t=e.status;return n.components.stepper.item[t]}))(XZ||(XZ=mn(["\n "," {\n color: ",";\n background: ",";\n }\n\n "," {\n color: ",";\n }\n\n display: inline-flex;\n align-items: center;\n gap: 0.6em;\n"],["\n "," {\n color: ",";\n background: ",";\n }\n\n "," {\n color: ",";\n }\n\n display: inline-flex;\n align-items: center;\n gap: 0.6em;\n"])),mJ,(function(e){return e.circleTextColor}),(function(e){return e.circleBackground}),gJ,(function(e){return e.color})),bJ=T.div(QZ||(QZ=mn(["\n width: 2.5em;\n height: 0.1em;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(51, 51, 51, 0.16) 50%, rgba(0, 0, 0, 0) 100%);\n"],["\n width: 2.5em;\n height: 0.1em;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(51, 51, 51, 0.16) 50%, rgba(0, 0, 0, 0) 100%);\n"]))),vJ=function(e,n){return e<n?"completed":e===n?"active":"normal"},xJ=function(e){var n=e.steps,t=e.currentStep,r=u((function(){return n.reduce((function(e,n,r){return 0===r?[c.createElement(hJ,{key:r,number:r,status:vJ(r,t),text:n})]:hn(hn([],e,!0),[c.createElement(bJ,{key:"divider_"+r}),c.createElement(hJ,{key:r,number:r,status:vJ(r,t),text:n})],!1)}),[])}),[n,t]);return c.createElement(wJ,null,r)},wJ=T.div(ZZ||(ZZ=mn(["\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: center;\n gap: 0.6em;\n"],["\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: center;\n gap: 0.6em;\n"]))),kJ=(_n.grey[500],_n.grey[500],_n.white[100],_n.blue[500],_n.blue[500],_n.white[100],_n.grey[500],_n.green[500],_n.white[100],_n.white[100],_n.grey[600],_n.white[100],_n.yellow[500],_n.white[100],_n.green[500],_n.white[100],_n.blue[500],_n.white[100],_n.red[500],_n.grey[900],_n.grey[100],_n.yellow[900],_n.yellow[50],_n.green[900],_n.green[50],_n.blue[900],_n.blue[50],_n.red[900],_n.red[50],_n.grey[800],_n.yellow[500],_n.green[500],_n.indigo[500],_n.red[500],T.div(JZ||(JZ=mn(["\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n gap: 8px;\n padding: 16px;\n border-radius: 100px;\n color: ",";\n background-color: ",";\n"],["\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n gap: 8px;\n padding: 16px;\n border-radius: 100px;\n color: ",";\n background-color: ",";\n"])),(function(e){var n=e.theme,t=e.type;return n.components.tip[t].color}),(function(e){var n=e.theme,t=e.type;return n.components.tip[t].backgroundColor}))),_J=T.span(eJ||(eJ=mn(["\n font-size: 20px;\n"],["\n font-size: 20px;\n"]))),CJ=T.span(nJ||(nJ=mn(["\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 21px;\n white-space: nowrap;\n"],["\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 21px;\n white-space: nowrap;\n"]))),$J=T.div(tJ||(tJ=mn(["\n margin-left: 32px;\n line-height: 20px;\n cursor: pointer;\n"],["\n margin-left: 32px;\n line-height: 20px;\n cursor: pointer;\n"])));!function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success"}(rJ||(rJ={}));var SJ,EJ={icon:I},TJ=function(e){var n=e.className,t=e.closeIcon,r=e.leftIcon,o=e.onClose,i=e.renderCloseIcon,a=e.text,l=e.type;return c.createElement(kJ,{className:n,type:null!=l?l:rJ.STANDARD},r&&c.createElement(_J,null,c.createElement(Ln,cn({},r))),c.createElement(CJ,null,a),o&&c.createElement($J,{onClick:o},i?i():c.createElement(Ln,cn({},t||EJ,{fixedWidth:!0}))))},DJ={icon:de},MJ=function(e){var n=e.shortcut,t=e.text,r=un(e,["shortcut","text"]);return c.createElement(TJ,cn({text:c.createElement(c.Fragment,null,t," ",c.createElement("b",null,n)),leftIcon:DJ},r))};_n.white[100],_n.grey[400],_n.white[100],_n.yellow[400],_n.white[100],_n.green[400],_n.white[100],_n.blue[400],_n.white[100],_n.red[400];!function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success"}(SJ||(SJ={}));var OJ,PJ,RJ,NJ,AJ,IJ,FJ,LJ,jJ,zJ,BJ,HJ,UJ,WJ,VJ,YJ,qJ,GJ,KJ,XJ,QJ,ZJ,JJ,e0,n0,t0,r0,o0,i0,a0,l0,s0,c0,u0,d0,f0,p0,h0,m0,g0,y0,b0,v0,x0,w0,k0,_0,C0,$0,S0,E0,T0,D0,M0,O0={standard:"dark",error:"error",info:"info",warning:"warning",success:"success"},P0=T.div(OJ||(OJ=mn(["\n min-height: 40px;\n line-height: 21px;\n font-size: 14px;\n user-select: none;\n min-width: 320px;\n max-width: 640px;\n width: max-content;\n display: flex;\n align-items: center;\n"],["\n min-height: 40px;\n line-height: 21px;\n font-size: 14px;\n user-select: none;\n min-width: 320px;\n max-width: 640px;\n width: max-content;\n display: flex;\n align-items: center;\n"]))),R0=T.div(PJ||(PJ=mn(["\n display: flex;\n flex: 1;\n margin-right: 50px;\n padding: 12px;\n"],["\n display: flex;\n flex: 1;\n margin-right: 50px;\n padding: 12px;\n"]))),N0=T(hl)(RJ||(RJ=mn(["\n margin: 12px;\n min-width: 100px;\n max-height: 32px;\n align-self: center;\n font-size: 14px;\n"],["\n margin: 12px;\n min-width: 100px;\n max-height: 32px;\n align-self: center;\n font-size: 14px;\n"]))),A0=T.div(NJ||(NJ=mn(["\n text-align: center;\n margin-right: 8px;\n /* text-align: start; */\n"],["\n text-align: center;\n margin-right: 8px;\n /* text-align: start; */\n"]))),I0=T.div(AJ||(AJ=mn(["\n align-items: center;\n"],["\n align-items: center;\n"]))),F0=T(Ln)(IJ||(IJ=mn(["\n /* vertical-align: sub; */\n"],["\n /* vertical-align: sub; */\n"]))),L0=T.div(FJ||(FJ=mn(["\n display: block;\n line-height: 21px;\n font-weight: 500;\n word-break: break-word;\n overflow: hidden;\n text-overflow: clip;\n color: ",";\n"],["\n display: block;\n line-height: 21px;\n font-weight: 500;\n word-break: break-word;\n overflow: hidden;\n text-overflow: clip;\n color: ",";\n"])),(function(e){var n=e.theme,t=e.type;return n.components.toast[t||SJ.STANDARD].title})),j0=T.div(LJ||(LJ=mn(["\n display: block;\n line-height: 21px;\n font-weight: 400;\n word-break: break-word;\n overflow: hidden;\n text-overflow: clip;\n color: ",";\n"],["\n display: block;\n line-height: 21px;\n font-weight: 400;\n word-break: break-word;\n overflow: hidden;\n text-overflow: clip;\n color: ",";\n"])),(function(e){var n=e.theme,t=e.type;return n.components.toast[t||SJ.STANDARD].content})),z0=T(rn).attrs({hideProgressBar:!0,newestOnTop:!0,closeOnClick:!1,draggable:!1,rtl:!1})(jJ||(jJ=mn(["\n &.Toastify__toast-container {\n display: flex;\n flex-direction: column;\n align-items: end;\n width: auto;\n z-index: 20000;\n -webkit-transform: translate3d(0, 0, 9999px);\n position: fixed;\n padding: 0px;\n box-sizing: border-box;\n color: ",";\n }\n &.Toastify__toast-container--top-left {\n top: 1em;\n left: 1em;\n }\n &.Toastify__toast-container--top-center {\n top: 1em;\n left: 50%;\n transform: translateX(-50%);\n }\n &.Toastify__toast-container--top-right {\n top: 1em;\n right: 1em;\n }\n &.Toastify__toast-container--bottom-left {\n bottom: 1em;\n left: 1em;\n }\n &.Toastify__toast-container--bottom-center {\n bottom: 1em;\n left: 50%;\n transform: translateX(-50%);\n }\n &.Toastify__toast-container--bottom-right {\n bottom: 1em;\n right: 1em;\n }\n\n @media only screen and (max-width: 480px) {\n &.Toastify__toast-container {\n width: 100vw;\n padding: 0;\n left: 0;\n margin: 0;\n }\n &.Toastify__toast-container--top-left,\n &.Toastify__toast-container--top-center,\n &.Toastify__toast-container--top-right {\n top: 0;\n transform: translateX(0);\n }\n &.Toastify__toast-container--bottom-left,\n &.Toastify__toast-container--bottom-center,\n &.Toastify__toast-container--bottom-right {\n bottom: 0;\n transform: translateX(0);\n }\n &.Toastify__toast-container--rtl {\n right: 0;\n left: initial;\n }\n }\n .Toastify__toast {\n position: relative;\n min-height: 40px;\n box-sizing: border-box;\n margin-bottom: 1rem;\n border-radius: 1px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n max-height: 800px;\n overflow: hidden;\n cursor: pointer;\n direction: ltr;\n width: min-content;\n }\n .Toastify__toast--rtl {\n direction: rtl;\n }\n .Toastify__toast--dark {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--default {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--info {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--success {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--warning {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--error {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast-body {\n margin: auto 0;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n }\n\n @media only screen and (max-width: 480px) {\n .Toastify__toast {\n margin-bottom: 0;\n }\n }\n .Toastify__close-button {\n color: ",";\n background: transparent;\n outline: none;\n border: none;\n padding: 0;\n cursor: pointer;\n opacity: 0.7;\n transition: 0.3s ease;\n -ms-flex-item-align: start;\n align-self: flex-start;\n }\n .Toastify__close-button--default {\n color: ",";\n opacity: 0.3;\n }\n .Toastify__close-button > svg {\n fill: currentColor;\n height: 16px;\n width: 14px;\n }\n .Toastify__close-button:hover,\n .Toastify__close-button:focus {\n opacity: 1;\n }\n\n @keyframes Toastify__trackProgress {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\n }\n .Toastify__progress-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 5px;\n z-index: 20000;\n opacity: 0.7;\n background-color: ",";\n transform-origin: left;\n }\n .Toastify__progress-bar--animated {\n animation: Toastify__trackProgress linear 1 forwards;\n }\n .Toastify__progress-bar--controlled {\n transition: transform 0.2s;\n }\n .Toastify__progress-bar--rtl {\n right: 0;\n left: initial;\n transform-origin: right;\n }\n .Toastify__progress-bar--default {\n background: ",";\n }\n .Toastify__progress-bar--dark {\n background: ",";\n }\n @keyframes Toastify__bounceInRight {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(-25px, 0, 0);\n }\n 75% {\n transform: translate3d(10px, 0, 0);\n }\n 90% {\n transform: translate3d(-5px, 0, 0);\n }\n to {\n transform: none;\n }\n }\n @keyframes Toastify__bounceOutRight {\n 20% {\n opacity: 1;\n transform: translate3d(-20px, 0, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(2000px, 0, 0);\n }\n }\n @keyframes Toastify__bounceInLeft {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(-3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(25px, 0, 0);\n }\n 75% {\n transform: translate3d(-10px, 0, 0);\n }\n 90% {\n transform: translate3d(5px, 0, 0);\n }\n to {\n transform: none;\n }\n }\n @keyframes Toastify__bounceOutLeft {\n 20% {\n opacity: 1;\n transform: translate3d(20px, 0, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(-2000px, 0, 0);\n }\n }\n @keyframes Toastify__bounceInUp {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(0, 3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n 75% {\n transform: translate3d(0, 10px, 0);\n }\n 90% {\n transform: translate3d(0, -5px, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__bounceOutUp {\n 20% {\n transform: translate3d(0, -10px, 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, 20px, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, -2000px, 0);\n }\n }\n @keyframes Toastify__bounceInDown {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(0, -3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, 25px, 0);\n }\n 75% {\n transform: translate3d(0, -10px, 0);\n }\n 90% {\n transform: translate3d(0, 5px, 0);\n }\n to {\n transform: none;\n }\n }\n @keyframes Toastify__bounceOutDown {\n 20% {\n transform: translate3d(0, 10px, 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, 2000px, 0);\n }\n }\n .Toastify__bounce-enter--top-left,\n .Toastify__bounce-enter--bottom-left {\n animation-name: Toastify__bounceInLeft;\n }\n .Toastify__bounce-enter--top-right,\n .Toastify__bounce-enter--bottom-right {\n animation-name: Toastify__bounceInRight;\n }\n .Toastify__bounce-enter--top-center {\n animation-name: Toastify__bounceInDown;\n }\n .Toastify__bounce-enter--bottom-center {\n animation-name: Toastify__bounceInUp;\n }\n\n .Toastify__bounce-exit--top-left,\n .Toastify__bounce-exit--bottom-left {\n animation-name: Toastify__bounceOutLeft;\n }\n .Toastify__bounce-exit--top-right,\n .Toastify__bounce-exit--bottom-right {\n animation-name: Toastify__bounceOutRight;\n }\n .Toastify__bounce-exit--top-center {\n animation-name: Toastify__bounceOutUp;\n }\n .Toastify__bounce-exit--bottom-center {\n animation-name: Toastify__bounceOutDown;\n }\n\n @keyframes Toastify__zoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n 50% {\n opacity: 1;\n }\n }\n @keyframes Toastify__zoomOut {\n from {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n to {\n opacity: 0;\n }\n }\n .Toastify__zoom-enter {\n animation-name: Toastify__zoomIn;\n }\n\n .Toastify__zoom-exit {\n animation-name: Toastify__zoomOut;\n }\n\n @keyframes Toastify__flipIn {\n from {\n transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n animation-timing-function: ease-in;\n opacity: 0;\n }\n 40% {\n transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n animation-timing-function: ease-in;\n }\n 60% {\n transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n opacity: 1;\n }\n 80% {\n transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n }\n to {\n transform: perspective(400px);\n }\n }\n @keyframes Toastify__flipOut {\n from {\n transform: perspective(400px);\n }\n 30% {\n transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n opacity: 1;\n }\n to {\n transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n opacity: 0;\n }\n }\n .Toastify__flip-enter {\n animation-name: Toastify__flipIn;\n }\n\n .Toastify__flip-exit {\n animation-name: Toastify__flipOut;\n }\n\n @keyframes Toastify__slideInRight {\n from {\n transform: translate3d(110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideInLeft {\n from {\n transform: translate3d(-110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideInUp {\n from {\n transform: translate3d(0, 110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideInDown {\n from {\n transform: translate3d(0, -110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideOutRight {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(110%, 0, 0);\n }\n }\n @keyframes Toastify__slideOutLeft {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(-110%, 0, 0);\n }\n }\n @keyframes Toastify__slideOutDown {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, 500px, 0);\n }\n }\n @keyframes Toastify__slideOutUp {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, -500px, 0);\n }\n }\n .Toastify__slide-enter--top-left,\n .Toastify__slide-enter--bottom-left {\n animation-name: Toastify__slideInLeft;\n }\n .Toastify__slide-enter--top-right,\n .Toastify__slide-enter--bottom-right {\n animation-name: Toastify__slideInRight;\n }\n .Toastify__slide-enter--top-center {\n animation-name: Toastify__slideInDown;\n }\n .Toastify__slide-enter--bottom-center {\n animation-name: Toastify__slideInUp;\n }\n\n .Toastify__slide-exit--top-left,\n .Toastify__slide-exit--bottom-left {\n animation-name: Toastify__slideOutLeft;\n }\n .Toastify__slide-exit--top-right,\n .Toastify__slide-exit--bottom-right {\n animation-name: Toastify__slideOutRight;\n }\n .Toastify__slide-exit--top-center {\n animation-name: Toastify__slideOutUp;\n }\n .Toastify__slide-exit--bottom-center {\n animation-name: Toastify__slideOutDown;\n }\n\n /*# sourceMappingURL=ReactToastify.css.map */\n"],["\n &.Toastify__toast-container {\n display: flex;\n flex-direction: column;\n align-items: end;\n width: auto;\n z-index: 20000;\n -webkit-transform: translate3d(0, 0, 9999px);\n position: fixed;\n padding: 0px;\n box-sizing: border-box;\n color: ",";\n }\n &.Toastify__toast-container--top-left {\n top: 1em;\n left: 1em;\n }\n &.Toastify__toast-container--top-center {\n top: 1em;\n left: 50%;\n transform: translateX(-50%);\n }\n &.Toastify__toast-container--top-right {\n top: 1em;\n right: 1em;\n }\n &.Toastify__toast-container--bottom-left {\n bottom: 1em;\n left: 1em;\n }\n &.Toastify__toast-container--bottom-center {\n bottom: 1em;\n left: 50%;\n transform: translateX(-50%);\n }\n &.Toastify__toast-container--bottom-right {\n bottom: 1em;\n right: 1em;\n }\n\n @media only screen and (max-width: 480px) {\n &.Toastify__toast-container {\n width: 100vw;\n padding: 0;\n left: 0;\n margin: 0;\n }\n &.Toastify__toast-container--top-left,\n &.Toastify__toast-container--top-center,\n &.Toastify__toast-container--top-right {\n top: 0;\n transform: translateX(0);\n }\n &.Toastify__toast-container--bottom-left,\n &.Toastify__toast-container--bottom-center,\n &.Toastify__toast-container--bottom-right {\n bottom: 0;\n transform: translateX(0);\n }\n &.Toastify__toast-container--rtl {\n right: 0;\n left: initial;\n }\n }\n .Toastify__toast {\n position: relative;\n min-height: 40px;\n box-sizing: border-box;\n margin-bottom: 1rem;\n border-radius: 1px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n max-height: 800px;\n overflow: hidden;\n cursor: pointer;\n direction: ltr;\n width: min-content;\n }\n .Toastify__toast--rtl {\n direction: rtl;\n }\n .Toastify__toast--dark {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--default {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--info {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--success {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--warning {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast--error {\n background: ",";\n color: ",";\n border-radius: 4px;\n }\n .Toastify__toast-body {\n margin: auto 0;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n }\n\n @media only screen and (max-width: 480px) {\n .Toastify__toast {\n margin-bottom: 0;\n }\n }\n .Toastify__close-button {\n color: ",";\n background: transparent;\n outline: none;\n border: none;\n padding: 0;\n cursor: pointer;\n opacity: 0.7;\n transition: 0.3s ease;\n -ms-flex-item-align: start;\n align-self: flex-start;\n }\n .Toastify__close-button--default {\n color: ",";\n opacity: 0.3;\n }\n .Toastify__close-button > svg {\n fill: currentColor;\n height: 16px;\n width: 14px;\n }\n .Toastify__close-button:hover,\n .Toastify__close-button:focus {\n opacity: 1;\n }\n\n @keyframes Toastify__trackProgress {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\n }\n .Toastify__progress-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 5px;\n z-index: 20000;\n opacity: 0.7;\n background-color: ",";\n transform-origin: left;\n }\n .Toastify__progress-bar--animated {\n animation: Toastify__trackProgress linear 1 forwards;\n }\n .Toastify__progress-bar--controlled {\n transition: transform 0.2s;\n }\n .Toastify__progress-bar--rtl {\n right: 0;\n left: initial;\n transform-origin: right;\n }\n .Toastify__progress-bar--default {\n background: ",";\n }\n .Toastify__progress-bar--dark {\n background: ",";\n }\n @keyframes Toastify__bounceInRight {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(-25px, 0, 0);\n }\n 75% {\n transform: translate3d(10px, 0, 0);\n }\n 90% {\n transform: translate3d(-5px, 0, 0);\n }\n to {\n transform: none;\n }\n }\n @keyframes Toastify__bounceOutRight {\n 20% {\n opacity: 1;\n transform: translate3d(-20px, 0, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(2000px, 0, 0);\n }\n }\n @keyframes Toastify__bounceInLeft {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(-3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(25px, 0, 0);\n }\n 75% {\n transform: translate3d(-10px, 0, 0);\n }\n 90% {\n transform: translate3d(5px, 0, 0);\n }\n to {\n transform: none;\n }\n }\n @keyframes Toastify__bounceOutLeft {\n 20% {\n opacity: 1;\n transform: translate3d(20px, 0, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(-2000px, 0, 0);\n }\n }\n @keyframes Toastify__bounceInUp {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(0, 3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n 75% {\n transform: translate3d(0, 10px, 0);\n }\n 90% {\n transform: translate3d(0, -5px, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__bounceOutUp {\n 20% {\n transform: translate3d(0, -10px, 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, 20px, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, -2000px, 0);\n }\n }\n @keyframes Toastify__bounceInDown {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(0, -3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, 25px, 0);\n }\n 75% {\n transform: translate3d(0, -10px, 0);\n }\n 90% {\n transform: translate3d(0, 5px, 0);\n }\n to {\n transform: none;\n }\n }\n @keyframes Toastify__bounceOutDown {\n 20% {\n transform: translate3d(0, 10px, 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, 2000px, 0);\n }\n }\n .Toastify__bounce-enter--top-left,\n .Toastify__bounce-enter--bottom-left {\n animation-name: Toastify__bounceInLeft;\n }\n .Toastify__bounce-enter--top-right,\n .Toastify__bounce-enter--bottom-right {\n animation-name: Toastify__bounceInRight;\n }\n .Toastify__bounce-enter--top-center {\n animation-name: Toastify__bounceInDown;\n }\n .Toastify__bounce-enter--bottom-center {\n animation-name: Toastify__bounceInUp;\n }\n\n .Toastify__bounce-exit--top-left,\n .Toastify__bounce-exit--bottom-left {\n animation-name: Toastify__bounceOutLeft;\n }\n .Toastify__bounce-exit--top-right,\n .Toastify__bounce-exit--bottom-right {\n animation-name: Toastify__bounceOutRight;\n }\n .Toastify__bounce-exit--top-center {\n animation-name: Toastify__bounceOutUp;\n }\n .Toastify__bounce-exit--bottom-center {\n animation-name: Toastify__bounceOutDown;\n }\n\n @keyframes Toastify__zoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n 50% {\n opacity: 1;\n }\n }\n @keyframes Toastify__zoomOut {\n from {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n to {\n opacity: 0;\n }\n }\n .Toastify__zoom-enter {\n animation-name: Toastify__zoomIn;\n }\n\n .Toastify__zoom-exit {\n animation-name: Toastify__zoomOut;\n }\n\n @keyframes Toastify__flipIn {\n from {\n transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n animation-timing-function: ease-in;\n opacity: 0;\n }\n 40% {\n transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n animation-timing-function: ease-in;\n }\n 60% {\n transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n opacity: 1;\n }\n 80% {\n transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n }\n to {\n transform: perspective(400px);\n }\n }\n @keyframes Toastify__flipOut {\n from {\n transform: perspective(400px);\n }\n 30% {\n transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n opacity: 1;\n }\n to {\n transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n opacity: 0;\n }\n }\n .Toastify__flip-enter {\n animation-name: Toastify__flipIn;\n }\n\n .Toastify__flip-exit {\n animation-name: Toastify__flipOut;\n }\n\n @keyframes Toastify__slideInRight {\n from {\n transform: translate3d(110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideInLeft {\n from {\n transform: translate3d(-110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideInUp {\n from {\n transform: translate3d(0, 110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideInDown {\n from {\n transform: translate3d(0, -110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n }\n @keyframes Toastify__slideOutRight {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(110%, 0, 0);\n }\n }\n @keyframes Toastify__slideOutLeft {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(-110%, 0, 0);\n }\n }\n @keyframes Toastify__slideOutDown {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, 500px, 0);\n }\n }\n @keyframes Toastify__slideOutUp {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, -500px, 0);\n }\n }\n .Toastify__slide-enter--top-left,\n .Toastify__slide-enter--bottom-left {\n animation-name: Toastify__slideInLeft;\n }\n .Toastify__slide-enter--top-right,\n .Toastify__slide-enter--bottom-right {\n animation-name: Toastify__slideInRight;\n }\n .Toastify__slide-enter--top-center {\n animation-name: Toastify__slideInDown;\n }\n .Toastify__slide-enter--bottom-center {\n animation-name: Toastify__slideInUp;\n }\n\n .Toastify__slide-exit--top-left,\n .Toastify__slide-exit--bottom-left {\n animation-name: Toastify__slideOutLeft;\n }\n .Toastify__slide-exit--top-right,\n .Toastify__slide-exit--bottom-right {\n animation-name: Toastify__slideOutRight;\n }\n .Toastify__slide-exit--top-center {\n animation-name: Toastify__slideOutUp;\n }\n .Toastify__slide-exit--bottom-center {\n animation-name: Toastify__slideOutDown;\n }\n\n /*# sourceMappingURL=ReactToastify.css.map */\n"])),(function(e){return e.theme.palette.white[100]}),(function(e){return e.theme.components.toast.standard.background}),(function(e){return e.theme.components.toast.standard.content}),(function(e){return e.theme.components.toast.standard.background}),(function(e){return e.theme.components.toast.standard.content}),(function(e){return e.theme.components.toast.info.background}),(function(e){return e.theme.components.toast.info.content}),(function(e){return e.theme.components.toast.success.background}),(function(e){return e.theme.components.toast.success.content}),(function(e){return e.theme.components.toast.warning.background}),(function(e){return e.theme.components.toast.warning.content}),(function(e){return e.theme.components.toast.error.background}),(function(e){return e.theme.components.toast.error.content}),(function(e){return e.theme.palette.white[100]}),(function(e){return e.theme.palette.black[100]}),(function(e){return e.theme.palette.white[8]}),(function(e){var n=e.theme;return"linear-gradient(to right, "+n.palette.green[500]+", "+n.palette.cyan[500]+", "+n.palette.blue[500]+", "+n.palette.fuchsia[500]+", "+n.palette.red[500]+");"}),(function(e){return e.theme.palette.fuchsia[200]})),B0=function(e){switch(e){default:case SJ.STANDARD:return"grey";case SJ.ERROR:return"red";case SJ.WARNING:return"yellow";case SJ.SUCCESS:return"green";case SJ.INFO:return"blue"}},H0=function(e){var n,t,r,o=g(!1),i=o[0],a=o[1];return c.createElement(P0,null,c.createElement(R0,null,c.createElement(A0,null,c.createElement(F0,cn({},e.icon,{fixedWidth:!0}))),c.createElement(I0,null,e.title&&c.createElement(L0,{type:null!==(n=e.type)&&void 0!==n?n:SJ.STANDARD},e.title),e.content&&c.createElement(j0,{type:null!==(t=e.type)&&void 0!==t?t:SJ.STANDARD},e.content))),e.actionLabel&&c.createElement(N0,{text:e.actionLabel,onClick:function(){var n;e.disableActionAfterClick&&a(!0),null===(n=e.onActionClick)||void 0===n||n.call(e)},type:"secondary",size:"medium",color:B0(null!==(r=e.type)&&void 0!==r?r:SJ.STANDARD),isDisabled:e.disableActionAfterClick&&i}))},U0={dark:X,error:F,info:j,warning:L,success:z},W0=function(e,n){var t=n.autoClose,r=n.icon,o=n.type,i=un(n,["autoClose","icon","type"]),a=O0[null!=o?o:"standard"],l=cn({icon:U0[a],size:"1x"},r),s=on[a](c.createElement(H0,cn({icon:l,title:e,type:o},i)),{autoClose:void 0===t||!0===t?3e3:t,closeButton:!1});return s?s.toString():void 0},V0={Container:z0,show:W0,dismiss:function(e){on.dismiss(e)},success:function(e,n){return W0(e,cn(cn({},n),{type:SJ.SUCCESS}))},error:function(e,n){return W0(e,cn(cn({},n),{type:SJ.ERROR}))},info:function(e,n){return W0(e,cn(cn({},n),{type:SJ.INFO}))},warning:function(e,n){return W0(e,cn(cn({},n),{type:SJ.WARNING}))},standard:function(e,n){return W0(e,cn(cn({},n),{type:SJ.STANDARD}))}},Y0={error:{background:_n.red[400],title:_n.white[100],content:_n.red[50]},warning:{background:_n.yellow[400],title:_n.white[100],content:_n.yellow[50]},success:{background:_n.green[400],title:_n.white[100],content:_n.green[50]},info:{background:_n.blue[400],title:_n.white[100],content:_n.blue[50]},standard:{background:_n.grey[900],title:_n.white[100],content:_n.grey[100]}},q0=T.div.attrs((function(e){var n=e.active,t=e.theme,r=e.type,o=n?"active":"normal";return t.components.verticalTabs[r][o]}))(zJ||(zJ=mn(["\n display: flex;\n flex-direction: row;\n align-items: center;\n align-self: stretch;\n gap: 8px;\n padding: 8px 12px;\n cursor: pointer;\n color: ",";\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n align-self: stretch;\n gap: 8px;\n padding: 8px 12px;\n cursor: pointer;\n color: ",";\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n"])),(function(e){return e.color}),(function(e){return e.background}),(function(e){return e.hoverBackground})),G0=T(aa)(BJ||(BJ=mn(["\n flex: 1;\n opacity: ",";\n"],["\n flex: 1;\n opacity: ",";\n"])),(function(e){return e.fade&&"80%"})),K0=function(e){var n=e.active,t=e.counter,o=e.editMode,i=e.icon,a=e.onClick,l=e.text,s=e.type;return c.createElement(q0,{active:n,type:null!=s?s:bn.STANDARD,onClick:a},o?c.createElement(Ln,{fixedWidth:!0,id:"handle",icon:r,color:n?"white":"grey"}):i?c.createElement(Ln,cn({fixedWidth:!0},i)):null,c.createElement(G0,{fade:s===bn.SUCCESS},l),o?c.createElement(Ln,{fixedWidth:!0,icon:Q}):s===bn.SUCCESS?c.createElement(Ln,{fixedWidth:!0,icon:z,color:n?"white":"green"}):c.createElement("span",null,t))},X0=T(wl)(HJ||(HJ=mn(["\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 100%;\n min-height: 200px;\n padding: 0;\n"],["\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 100%;\n min-height: 200px;\n padding: 0;\n"]))),Q0=T.div(UJ||(UJ=mn(["\n min-width: 250px;\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow: auto;\n background-color: ",";\n"],["\n min-width: 250px;\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow: auto;\n background-color: ",";\n"])),(function(e){return e.theme.palette.grey[50]})),Z0=T.div(WJ||(WJ=mn(["\n flex: 2;\n overflow: auto;\n background-color: ",";\n"],["\n flex: 2;\n overflow: auto;\n background-color: ",";\n"])),(function(e){return e.theme.palette.white[100]})),J0=function(e){var n=e.className,t=e.editMode,r=void 0!==t&&t,o=e.style,i=e.tabs,a=g(0),l=a[0],s=a[1],u=i[l].content;return c.createElement(X0,{color:Qa.GREY,type:Xa.PRIMARY,className:n,style:o},c.createElement(Q0,null,i.map((function(e,n){return c.createElement(K0,cn({key:n,active:l===n,editMode:r,onClick:function(){return s(n)}},e.header))}))),c.createElement(Z0,null,u?"function"==typeof u?u():u:null))},e1={error:{active:{color:_n.white[100],background:_n.red[500],hoverBackground:_n.red[700],activeBackground:_n.red[900]},normal:{color:_n.red[500],background:_n.grey[50],hoverBackground:_n.grey[100],activeBackground:_n.grey[200]}},info:{active:{color:_n.white[100],background:_n.blue[500],hoverBackground:_n.blue[600],activeBackground:_n.blue[900]},normal:{color:_n.blue[500],background:_n.grey[50],hoverBackground:_n.grey[100],activeBackground:_n.grey[200]}},standard:{active:{color:_n.white[100],background:_n.blue[500],hoverBackground:_n.blue[600],activeBackground:_n.blue[900]},normal:{color:_n.grey[500],background:_n.grey[50],hoverBackground:_n.grey[100],activeBackground:_n.grey[200]}},success:{active:{color:_n.white[100],background:_n.blue[500],hoverBackground:_n.blue[600],activeBackground:_n.blue[900]},normal:{color:_n.grey[500],background:_n.grey[50],hoverBackground:_n.grey[100],activeBackground:_n.grey[200]}},warning:{active:{color:_n.black[100],background:_n.yellow[500],hoverBackground:_n.yellow[700],activeBackground:_n.yellow[900]},normal:{color:_n.yellow[500],background:_n.grey[50],hoverBackground:_n.grey[100],activeBackground:_n.grey[200]}}},n1=_n,t1=P(VJ||(VJ=mn(["\n .ReactModal__Overlay {\n opacity: 0;\n transition: all 200ms ease-in-out;\n }\n \n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n \n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n \n .ReactModal__Overlay--after-open .ReactModal__Content {\n :not(.fic-modal) {\n opacity: 1;\n transform: translate(-50%, -50%);\n }\n }\n \n .ReactModal__Overlay--before-close .ReactModal__Content {\n opacity: 0;\n transform: translate(-50%, 0%);\n }\n"],["\n .ReactModal__Overlay {\n opacity: 0;\n transition: all 200ms ease-in-out;\n }\n \n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n \n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n \n .ReactModal__Overlay--after-open .ReactModal__Content {\n :not(.fic-modal) {\n opacity: 1;\n transform: translate(-50%, -50%);\n }\n }\n \n .ReactModal__Overlay--before-close .ReactModal__Content {\n opacity: 0;\n transform: translate(-50%, 0%);\n }\n"]))),r1=function(e,n){return n?"100vw":e?"342px":"736px"},o1="80px",i1=200,a1=T(an)(YJ||(YJ=mn(["\n position: absolute;\n top: 50%;\n left: 50%;\n right: auto;\n bottom: auto;\n outline: none;\n opacity: 0;\n transform: translate(-50%, -100%);\n transition: all ","ms ease-in-out;\n"],["\n position: absolute;\n top: 50%;\n left: 50%;\n right: auto;\n bottom: auto;\n outline: none;\n opacity: 0;\n transform: translate(-50%, -100%);\n transition: all ","ms ease-in-out;\n"])),i1),l1=T.div(XJ||(XJ=mn(["\n overflow: auto;\n background: rgb(255, 255, 255);\n padding: 0;\n ","\n\n box-shadow: ",";\n\n border: ",";\n border-radius: ","px;\n width: ","vw;\n\n @media screen and (min-width: 992px) {\n width: ",";\n }\n"],["\n overflow: auto;\n background: rgb(255, 255, 255);\n padding: 0;\n ","\n\n box-shadow: ",";\n\n border: ",";\n border-radius: ","px;\n width: ","vw;\n\n @media screen and (min-width: 992px) {\n width: ",";\n }\n"])),(function(e){var n=e.fullScreenHeight,t=e.isFullscreen,r=e.isSmall;return t?D(qJ||(qJ=mn(["\n height: ","px;\n "],["\n height: ","px;\n "])),n):D(r?GJ||(GJ=mn([""],[""])):KJ||(KJ=mn(["\n min-height: 200px;\n "],["\n min-height: 200px;\n "])))}),(function(e){return e.isFullscreen?"none":"rgba(23, 43, 77, 0.24) 0px 16px 24px, rgba(9, 30, 66, 0.08) 0px 0px 0px"}),(function(e){return e.isFullscreen?0:"1px solid rgb(204, 204, 204)"}),(function(e){return e.isFullscreen?0:8}),(function(e){return e.isFullscreen?100:96}),(function(e){var n=e.isFullscreen,t=e.isSmall;return r1(t,n)})),s1=T.div(e0||(e0=mn(["\n min-height: ",";\n height: ",";\n padding: 1rem ",";\n overflow-y: auto;\n\n ","\n"],["\n min-height: ",";\n height: ",";\n padding: 1rem ",";\n overflow-y: auto;\n\n ","\n"])),(function(e){var n=e.minHeight;return n?n+"px":"auto"}),(function(e){var n=e.height;return n?n+"px":"auto"}),Ca.l,(function(e){var n=e.footer,t=e.header,r=e.isFullscreen,o=e.title;return r?D(QJ||(QJ=mn(["\n height: calc(100% - ("," * 2));\n "],["\n height: calc(100% - ("," * 2));\n "])),o1):t||o||n?D(ZJ||(ZJ=mn(["\n max-height: calc(100vh - ("," * 4));\n "],["\n max-height: calc(100vh - ("," * 4));\n "])),o1):D(JJ||(JJ=mn(["\n max-height: 100%;\n "],["\n max-height: 100%;\n "])))})),c1=T.div(n0||(n0=mn(["\n cursor: pointer;\n &:hover {\n color: ",";\n }\n"],["\n cursor: pointer;\n &:hover {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.grey[800]})),u1=T(c1)(t0||(t0=mn(["\n margin-left: 5px;\n"],["\n margin-left: 5px;\n"]))),d1=T.h3(r0||(r0=mn(["\n font-size: 20px;\n line-height: 30px;\n margin: 0;\n font-weight: 500;\n"],["\n font-size: 20px;\n line-height: 30px;\n margin: 0;\n font-weight: 500;\n"]))),f1=T.div(i0||(i0=mn(["\n padding: 0 ",";\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n ",";\n\n height: ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n ",";\n"],["\n padding: 0 ",";\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n ",";\n\n height: ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n ",";\n"])),Ca.l,Ca.xs,Ca.xs,(function(e){var n=e.theme.palette;return D(o0||(o0=mn(["\n border-bottom: 2px solid ",";\n background-color: ",";\n "],["\n border-bottom: 2px solid ",";\n background-color: ",";\n "])),n.grey[100],n.grey[50])}),o1,d1),p1=T.div(a0||(a0=mn(["\n padding: "," "," 0 ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n ",";\n"],["\n padding: "," "," 0 ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n ",";\n"])),Ca.l,Ca.l,Ca.l,d1),h1=T.div(l0||(l0=mn(["\n > div {\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n gap: 16px;\n margin-top: 24px;\n }\n"],["\n > div {\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n gap: 16px;\n margin-top: 24px;\n }\n"]))),m1=T.div(s0||(s0=mn(["\n padding: 0 ",";\n height: ",";\n border-top: 2px solid ",";\n align-items: center;\n justify-content: flex-end;\n display: flex;\n margin: 0 auto;\n gap: 16px;\n"],["\n padding: 0 ",";\n height: ",";\n border-top: 2px solid ",";\n align-items: center;\n justify-content: flex-end;\n display: flex;\n margin: 0 auto;\n gap: 16px;\n"])),Ca.l,o1,(function(e){return e.theme.palette.grey[100]})),g1=T.div(c0||(c0=mn(["\n position: absolute;\n width: 100%;\n top: ",";\n"],["\n position: absolute;\n width: 100%;\n top: ",";\n"])),(function(e){var n=e.height;return n&&-(n+16)+"px"})),y1=T.div(u0||(u0=mn(["\n width: auto;\n margin-top: 24px;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n"],["\n width: auto;\n margin-top: 24px;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n"]))),b1=T(Ln)(d0||(d0=mn(["\n font-size: 24px;\n font-weight: 500;\n"],["\n font-size: 24px;\n font-weight: 500;\n"]))),v1=function(e){function n(n){var t=e.call(this,n)||this;return t.updateHeight=function(){t.setState({fullScreenHeight:window.innerHeight})},t.hasFooter=function(){return!!t.props.footerButtons||"function"==typeof t.props.footer},t.renderFooter=function(){var e=t.props,n=e.footer,r=e.footerButtons;return r?c.createElement(c.Fragment,null,r.map((function(e,n){return c.createElement("div",{key:n},c.createElement(hl,cn({},e)))}))):n?n():void 0},t.handleModalClose=function(){t.props.onActionClose&&t.props.onActionClose()},t.contentRefCallback=function(){var e=document.getElementById("top-attachment");e&&t.setState({topAttachmentHeight:e.clientHeight})},t.state={topAttachmentHeight:0,fullScreenHeight:0},t}return sn(n,e),n.prototype.componentDidMount=function(){this.props.isFullscreen&&(this.updateHeight(),window.addEventListener("resize",this.updateHeight))},n.prototype.componentWillUnmount=function(){this.props.isFullscreen&&window.removeEventListener("resize",this.updateHeight)},n.prototype.render=function(){var e=this.props,n=e.allowClose,t=e.className,r=e.header,o=e.customHeader,i=e.hideOverlay,a=e.isFullscreen,l=e.isOpen,s=e.onActionClose,u=e.portalClassName,d=e.title,f=e.customFooter,p=e.sizeCloseX,h=e.zIndex,m=e.disableInfoTooltip,g=this.props,y=g.bottomAttachment,b=g.height,v=g.isSmall,x=g.minHeight,w=g.topAttachment,k=this.state.fullScreenHeight,_=null==n||n,C={overlay:{backgroundColor:i?"rgba(0, 0, 0, 0)":n1.black[48],zIndex:h||(this.props.isConfirmModal?99999:1e4)}},$=s?c.createElement(u1,null,c.createElement(Ln,{icon:De,size:p||"1x",type:"light",fixedWidth:!0,onClick:this.handleModalClose,className:"icon"})):null;return c.createElement(c.Fragment,null,c.createElement(t1,null),c.createElement(a1,{closeTimeoutMS:200,shouldCloseOnOverlayClick:_,onRequestClose:_?this.handleModalClose:void 0,shouldCloseOnEsc:_,style:C,isOpen:null==l||l,isFullscreen:a,isSmall:v,contentRef:this.contentRefCallback,ariaHideApp:!1,portalClassName:u},c.createElement(c.Fragment,null,w&&c.createElement(g1,{id:"top-attachment",height:this.state.topAttachmentHeight},w()),c.createElement(l1,{className:t,isFullscreen:a,isSmall:v,fullScreenHeight:k},o&&c.createElement(p1,null,o(),$),!o&&(r||d)&&c.createElement(f1,null,r?r():c.createElement("h3",null,d),$),c.createElement(s1,{height:b,minHeight:x,isFullscreen:a,header:r,title:m?void 0:d,footer:this.props.footer},this.props.children,f&&c.createElement(h1,null,f())),!f&&this.hasFooter()&&c.createElement(m1,null,this.renderFooter())),y&&c.createElement(y1,null,y()))))},n}(d),x1=function(e){var n=e.children,t=e.className,r=e.handleChangeValue,o=e.placeholder,i=e.value,a=c.createElement(k1,null,c.createElement(b1,{icon:Fe,color:"black"}),c.createElement("input",{autoFocus:!0,className:"inputSearchable",type:"text",onChange:function(e){r(e.currentTarget.value)},value:i,placeholder:o}),c.createElement(w1,{visible:!!i,onClick:function(){r("")}},"Cancella"));return c.createElement(v1,cn({className:t,header:function(){return a}},e),n)},w1=T.div(f0||(f0=mn(["\n white-space: nowrap;\n cursor: pointer;\n padding-right: 10px;\n border-right: 1px solid ",";\n color: ",";\n &:hover {\n color: ",";\n }\n display: ",";\n"],["\n white-space: nowrap;\n cursor: pointer;\n padding-right: 10px;\n border-right: 1px solid ",";\n color: ",";\n &:hover {\n color: ",";\n }\n display: ",";\n"])),(function(e){return e.theme.palette.grey[200]}),(function(e){return e.theme.palette.grey[500]}),(function(e){return e.theme.palette.grey[700]}),(function(e){return e.visible?"inherit":"none"})),k1=T.div(p0||(p0=mn(["\n width: 100%;\n display: flex;\n align-items: center;\n caret-color: ",";\n input[type='text'].inputSearchable:focus {\n outline: none !important;\n box-shadow: none !important;\n }\n\n > input {\n width: 100%;\n margin-left: 4px;\n background-color: "," !important;\n border: none;\n font-size: 20px !important;\n top: 6px;\n outline: none;\n box-shadow: none;\n }\n\n > input,\n input::-webkit-input-placeholder {\n font-size: 20px;\n }\n"],["\n width: 100%;\n display: flex;\n align-items: center;\n caret-color: ",";\n input[type='text'].inputSearchable:focus {\n outline: none !important;\n box-shadow: none !important;\n }\n\n > input {\n width: 100%;\n margin-left: 4px;\n background-color: "," !important;\n border: none;\n font-size: 20px !important;\n top: 6px;\n outline: none;\n box-shadow: none;\n }\n\n > input,\n input::-webkit-input-placeholder {\n font-size: 20px;\n }\n"])),(function(e){return e.theme.palette.blue[300]}),(function(e){return e.theme.palette.grey[50]})),_1=T.div(h0||(h0=mn(["\n overflow: hidden;\n align-self: stretch;\n width: ","vw;\n min-width: ","vw;\n\n @media screen and (min-width: 992px) {\n width: ",";\n min-width: ",";\n }\n"],["\n overflow: hidden;\n align-self: stretch;\n width: ","vw;\n min-width: ","vw;\n\n @media screen and (min-width: 992px) {\n width: ",";\n min-width: ",";\n }\n"])),(function(e){return e.isFullscreen?100:96}),(function(e){return e.isFullscreen?100:96}),(function(e){var n=e.isFullscreen,t=e.isSmall;return r1(t,n)}),(function(e){var n=e.isFullscreen,t=e.isSmall;return r1(t,n)})),C1=T(v1)(b0||(b0=mn(["\n & > div {\n overflow: hidden;\n padding: 0px;\n border-radius: 8px;\n max-height: calc(100vh - ("," * 2));\n min-height: 200px;\n display: flex;\n flex-direction: row;\n ","\n\n ","\n\n ","\n }\n\n // Right to left\n .step-modal-next-enter {\n transform: translateX(0%);\n }\n .step-modal-next-enter-active {\n transform: translateX(-100%);\n transition: transform ","ms;\n }\n .step-modal-next-exit {\n transform: translateX(0%);\n }\n .step-modal-next-exit-active {\n transform: translateX(-100%);\n transition: transform ","ms;\n }\n\n // Left to right\n .step-modal-prev-enter {\n transform: translateX(-100%);\n }\n .step-modal-prev-enter-active {\n transform: translateX(0%);\n transition: transform ","ms;\n }\n .step-modal-prev-exit {\n transform: translateX(-100%);\n }\n .step-modal-prev-exit-active {\n transform: translateX(0%);\n transition: transform ","ms;\n }\n"],["\n & > div {\n overflow: hidden;\n padding: 0px;\n border-radius: 8px;\n max-height: calc(100vh - ("," * 2));\n min-height: 200px;\n display: flex;\n flex-direction: row;\n ","\n\n ","\n\n ","\n }\n\n // Right to left\n .step-modal-next-enter {\n transform: translateX(0%);\n }\n .step-modal-next-enter-active {\n transform: translateX(-100%);\n transition: transform ","ms;\n }\n .step-modal-next-exit {\n transform: translateX(0%);\n }\n .step-modal-next-exit-active {\n transform: translateX(-100%);\n transition: transform ","ms;\n }\n\n // Left to right\n .step-modal-prev-enter {\n transform: translateX(-100%);\n }\n .step-modal-prev-enter-active {\n transform: translateX(0%);\n transition: transform ","ms;\n }\n .step-modal-prev-exit {\n transform: translateX(-100%);\n }\n .step-modal-prev-exit-active {\n transform: translateX(0%);\n transition: transform ","ms;\n }\n"])),o1,(function(e){var n=e.height;return n&&D(m0||(m0=mn(["\n height: ","px;\n max-height: ","px;\n "],["\n height: ","px;\n max-height: ","px;\n "])),n,n)}),(function(e){var n=e.minHeight;return n&&D(g0||(g0=mn(["\n min-height: ","px;\n "],["\n min-height: ","px;\n "])),n)}),(function(e){return e.isFullscreen&&D(y0||(y0=mn(["\n height: 100%;\n max-height: 100%;\n "],["\n height: 100%;\n max-height: 100%;\n "])))}),i1,i1,i1,i1),$1=function(e){var n=e.Component,t=e.currentStep,r=e.customProps,o=e.direction,i=e.isFullscreen,a=e.isSmall,l=e.thisStep,s=un(e,["Component","currentStep","customProps","direction","isFullscreen","isSmall","thisStep"]),u=f(null);return c.createElement(ye,{nodeRef:u,classNames:"step-modal-"+o,timeout:200,in:t===l,mountOnEnter:!0,unmountOnExit:!0},c.createElement(_1,{isFullscreen:i,isSmall:a,ref:u},c.createElement(n,cn({currentStep:t},s,r))))},S1=function(e){var n=e.allowBackdropClose,t=e.className,r=e.steps,o=un(e,["allowBackdropClose","className","steps"]),i=f(o.currentStep);return m((function(){i.current=o.currentStep}),[o.currentStep]),o.currentStep<0||o.currentStep>r.length-1?null:c.createElement(C1,{onActionClose:function(){var e;null===(e=o.onActionClose)||void 0===e||e.call(o),o.setIsOpen(!1)},isOpen:o.isOpen,className:t,allowClose:n,isFullscreen:o.isFullscreen,isSmall:o.isSmall,height:o.height,minHeight:o.minHeight},r.map((function(e,n){return c.createElement($1,cn({key:n},o,{Component:e,thisStep:n,direction:o.currentStep>=i.current?"next":"prev"}))})))},E1=T(f1)(v0||(v0=mn(["\n flex-direction: row;\n flex-wrap: nowrap;\n gap: 16px;\n height: ",";\n min-height: ",";\n max-height: ",";\n"],["\n flex-direction: row;\n flex-wrap: nowrap;\n gap: 16px;\n height: ",";\n min-height: ",";\n max-height: ",";\n"])),o1,o1,o1),T1=T.div(x0||(x0=mn(["\n flex: 1;\n"],["\n flex: 1;\n"]))),D1=T(m1)(w0||(w0=mn(["\n height: ",";\n min-height: ",";\n max-height: ",";\n"],["\n height: ",";\n min-height: ",";\n max-height: ",";\n"])),o1,o1,o1),M1=T(s1).attrs((function(e){var n=e.height,t=e.minHeight,r=e.withoutFooter,o=e.withoutHeader;n&&!t&&(t=n);var i=On(o1)+2,a=(r?0:i)+(o?0:i);return{calcHeight:n?n-a:2*i+a,calcMinHeight:t?t-a:2*i+a,height:n,minHeight:t}}))(C0||(C0=mn(["\n padding: 0;\n\n ","\n\n ","\n"],["\n padding: 0;\n\n ","\n\n ","\n"])),(function(e){var n=e.height,t=e.minHeight,r=e.calcHeight,o=e.calcMinHeight;return D(k0||(k0=mn(["\n height: ",";\n max-height: ",";\n min-height: ",";\n "],["\n height: ",";\n max-height: ",";\n min-height: ",";\n "])),n?r+"px":"calc(100vh - "+r+"px)",n?r+"px":"calc(100vh - "+r+"px)",t?o+"px":"calc(100vh - "+o+"px)")}),(function(e){return e.isFullscreen&&D(_0||(_0=mn(["\n height: 100%;\n max-height: 100%;\n "],["\n height: 100%;\n max-height: 100%;\n "])))})),O1=function(e){var n=e.children,t=un(e,["children"]);return c.createElement(M1,cn({},t),n)},P1=function(e){var n=e.buttons,t=e.children,r=e.className;return c.createElement(D1,{className:r},t||(n?n.map((function(e,n){return c.createElement(hl,cn({key:n},e))})):null))},R1=function(e){var n=e.children,t=e.className,r=e.currentStep,o=e.setIsOpen,i=e.setStep,a=e.subtitle,l=e.title;return c.createElement(E1,{className:t},null!=n?n:c.createElement(c.Fragment,null,void 0!==r&&r>0&&i&&c.createElement(c1,null,c.createElement(Ln,{icon:Le,fixedWidth:!0,onClick:function(){return i(r-1)}})),c.createElement(T1,null,a?c.createElement(c.Fragment,null,c.createElement(fa,null,l),c.createElement(ha,null,a)):c.createElement(ua,null,l)),o&&c.createElement(c1,null,c.createElement(Ln,{icon:De,fixedWidth:!0,onClick:function(){return o(!1)}}))))},N1=T(v1)($0||($0=mn(["\n width: 432px;\n max-width: 90vw;\n display: flex;\n flex-direction: column;\n & > div {\n height: 100%;\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n"],["\n width: 432px;\n max-width: 90vw;\n display: flex;\n flex-direction: column;\n & > div {\n height: 100%;\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n"]))),A1=T.div(S0||(S0=mn(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n margin-top: 8px;\n margin-bottom: 8px;\n line-height: 24px;\n font-weight: 500;\n font-size: 16px;\n font-style: normal;\n color: #000000;\n"],["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n margin-top: 8px;\n margin-bottom: 8px;\n line-height: 24px;\n font-weight: 500;\n font-size: 16px;\n font-style: normal;\n color: #000000;\n"]))),I1=T.div(E0||(E0=mn(["\n margin-top: 8px;\n margin-bottom: 8px;\n font-size: 14px;\n font-weight: normal;\n font-style: normal;\n line-height: 21px;\n color: #5e6c84;\n"],["\n margin-top: 8px;\n margin-bottom: 8px;\n font-size: 14px;\n font-weight: normal;\n font-style: normal;\n line-height: 21px;\n color: #5e6c84;\n"]))),F1=T.div(T0||(T0=mn(["\n font-size: 14px;\n font-style: normal;\n line-height: 21px;\n font-weight: 500;\n color: #091e42;\n margin-top: 8px;\n"],["\n font-size: 14px;\n font-style: normal;\n line-height: 21px;\n font-weight: 500;\n color: #091e42;\n margin-top: 8px;\n"]))),L1=T.div(D0||(D0=mn(["\n margin-top: 24px;\n margin-bottom: 8px;\n display: flex;\n flex-direction: row;\n line-height: 21px;\n justify-content: flex-end;\n"],["\n margin-top: 24px;\n margin-bottom: 8px;\n display: flex;\n flex-direction: row;\n line-height: 21px;\n justify-content: flex-end;\n"]))),j1={error:"error",info:"info",warning:"warning",success:"success"},z1={error:L,info:j,warning:L,success:z},B1={error:"red",info:"blue",warning:"yellow",success:"green"},H1=function(e){var n,t,r,o=j1[e.type],i=z1[o],a=B1[o],l=null!==(n=e.cancelText)&&void 0!==n?n:"Annulla",s=e.description instanceof String?c.createElement(I1,null,e.description):e.description;return c.createElement(N1,{isOpen:e.isOpen,onActionClose:function(){return e.setIsOpen(!1)},isSmall:e.isSmall,isConfirmModal:!0},c.createElement("div",null,e.customHeader?c.createElement(A1,null,e.customHeader):c.createElement(A1,null,c.createElement(Ln,{icon:i,size:"1x",color:a}),c.createElement("span",{style:{marginLeft:"10px"}},null!==(t=e.title)&&void 0!==t?t:"")),s,e.question&&c.createElement(F1,null,e.question)),c.createElement(L1,null,c.createElement(hl,{text:l,color:null!==(r=e.cancelColor)&&void 0!==r?r:"grey",onClick:function(){var n;e.setIsOpen(!1),null===(n=e.onCancel)||void 0===n||n.call(e)}}),c.createElement(U1,{text:e.actionText,color:a,onClick:function(){e.setIsOpen(!1),e.onAction()}})))},U1=T(hl)(M0||(M0=mn(["\n margin-left: 16px;\n"],["\n margin-left: 16px;\n"])));
41
41
  /**
42
42
  * table-core
43
43
  *
@@ -59,5 +59,5 @@ function W1(e,n){return"function"==typeof e?e(n):e}function V1(e,n){return t=>{n
59
59
  *
60
60
  * @license MIT
61
61
  */
62
- function A2(e,n){return e?function(e){return"function"==typeof e&&(()=>{const n=Object.getPrototypeOf(e);return n.prototype&&n.prototype.isReactComponent})()}(t=e)||"function"==typeof t||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(t)?s.createElement(e,n):e:null;var t}var I2,F2,L2;!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SMALL=42]="SMALL",e[e.LARGE=56]="LARGE"}(I2||(I2={})),function(e){e.ACCESSOR="accessor",e.DISPLAY="display",e.GROUP="group",e.ACTION="action"}(F2||(F2={})),function(e){e.CHECKBOX="checkbox",e.TOGGLE="toggle",e.ROW_ACTIONS="row_actions",e.SETTINGS="settings"}(L2||(L2={}));var j2,z2,B2,H2,U2,W2,V2,Y2,q2,G2,K2,X2,Q2,Z2,J2,e3,n3,t3,r3,o3,i3,a3,l3,s3,c3,u3,d3,f3,p3,h3,m3,g3,y3,b3=v({}),v3=function(e){var n=e.children,t=e.defaultRowSize,r=c.useState(t||I2.UNSPECIFIED),o={rowSize:r[0],setRowSize:r[1]};return c.createElement(b3.Provider,{value:o},n)},x3=T.div(j2||(j2=mn(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),w3=T.span(z2||(z2=mn(["\n position: absolute;\n width: 24px;\n height: 16px;\n border-radius: 15px;\n opacity: ",";\n background-color: ",";\n cursor: ",";\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin: ","px;\n transition: 0.2s;\n background-color: ",";\n }\n"],["\n position: absolute;\n width: 24px;\n height: 16px;\n border-radius: 15px;\n opacity: ",";\n background-color: ",";\n cursor: ",";\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin: ","px;\n transition: 0.2s;\n background-color: ",";\n }\n"])),(function(e){return e.disabled?.3:1}),(function(e){return e.theme.palette.grey[300]}),(function(e){return e.disabled?"not-allowed":"pointer"}),12,12,2,(function(e){return e.theme.palette.white[100]})),k3=T.input(B2||(B2=mn(["\n opacity: 0;\n z-index: 1;\n border-radius: 15px;\n width: 24px;\n &:checked + "," {\n background-color: ",";\n\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin-left: 11px;\n transition: 0.2s;\n }\n }\n"],["\n opacity: 0;\n z-index: 1;\n border-radius: 15px;\n width: 24px;\n &:checked + "," {\n background-color: ",";\n\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin-left: 11px;\n transition: 0.2s;\n }\n }\n"])),w3,(function(e){var n=e.theme.palette;return e.disabled?n.grey[300]:n.blue[500]}),12,12),_3=function(e){var n=e.checked,t=void 0!==n&&n,r=e.disabled,o=void 0!==r&&r,i=e.onChange;return c.createElement(x3,null,c.createElement(k3,{type:"checkbox",checked:t,disabled:o,onChange:function(){return null==i?void 0:i(t)}}),c.createElement(w3,{disabled:o}))},C3=function(e){var n=e.theme,t=e.isHeader,r=e.isPopoverActive,o=e.isPinned,i=t?n.palette.grey[50]:n.palette.white[100];return{position:o?"sticky":void 0,backgroundColor:o?i:void 0,left:"left"===o?"0px":void 0,right:"right"===o?"0px":void 0,boxShadow:o?"-5px 0 5px -5px rgba(51, 51, 51, 0.15)":void 0,zIndex:r?2:1}},$3=T.div(H2||(H2=mn(["\n display: flex;\n align-items: center;\n padding: 8px;\n"],["\n display: flex;\n align-items: center;\n padding: 8px;\n"]))),S3=T(hl)(U2||(U2=mn(["\n font-size: 14px;\n &:hover {\n background-color: transparent;\n color: ",";\n }\n"],["\n font-size: 14px;\n &:hover {\n background-color: transparent;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.blue[500]})),E3=T(ml)(W2||(W2=mn(["\n font-size: 14px;\n color: ",";\n border-radius: 6px;\n &:hover {\n background-color: ",";\n color: ",";\n }\n &:active {\n background-color: ",";\n }\n"],["\n font-size: 14px;\n color: ",";\n border-radius: 6px;\n &:hover {\n background-color: ",";\n color: ",";\n }\n &:active {\n background-color: ",";\n }\n"])),(function(e){return e.theme.palette.grey[500]}),(function(e){return e.theme.palette.blue[100]}),(function(e){return e.theme.palette.blue[700]}),(function(e){return e.theme.palette.blue[200]})),T3=function(e){var n=e.dropdown,r=e.row,o=e.onOpen,i=e.onClose,a=p((function(){return c.createElement(E3,{icon:{icon:t,fixedWidth:!0}})}),[]),l=u((function(){return n.map((function(e){var n=e.onClick,t=un(e,["onClick"]);return cn({onClick:function(){return n(r)}},t)}))}),[n,r]);return c.createElement(bA,{placement:"right-start",renderTrigger:a,content:l,onOpen:o,onClose:function(){return null==i?void 0:i(!1)}})},D3=function(e){var n,t,r=e.actionType,o=e.row,i=e.isToggled,a=e.onActionChange,l=e.rowActions,s=e.column,d=e.maxWidth,f=e.minWidth,p=e.actionColumnWidth,h=M(),m=g(!1),y=m[0],b=m[1],v=function(e){b(e)},x=u((function(){return"function"==typeof l?l(o):l}),[o,l]),w=null===(n=null==x?void 0:x.dropdown)||void 0===n?void 0:n.tooltip,k=null===(t=null==x?void 0:x.dropdown)||void 0===t?void 0:t.items,_={width:p};switch(r){case L2.CHECKBOX:return c.createElement("div",{className:"DS-rt-td DS-tour-checkbox",style:{maxWidth:d,minWidth:f}},c.createElement($3,{style:cn(cn({},_),{paddingLeft:8})},c.createElement(M3,{value:o.getIsSelected(),onChange:function(){return o.toggleSelected()}})));case L2.TOGGLE:return c.createElement("div",{style:{maxWidth:d,minWidth:f}},c.createElement($3,{style:_},c.createElement(_3,{checked:i,onChange:function(){return null==a?void 0:a(o.id)}})));case L2.ROW_ACTIONS:return c.createElement("div",{style:cn({maxWidth:(null!=d?d:80)+16,minWidth:(null!=f?f:80)+16},C3({isHeader:!1,isPopoverActive:y,theme:h,isPinned:s.getIsPinned()}))},c.createElement($3,{style:_},(null==x?void 0:x.primary)&&(null==x?void 0:x.primary.map((function(e,n){var t;return c.createElement(BA,cn({key:n},null!==(t=e.tooltip)&&void 0!==t?t:zA,{showAfterSeconds:.5}),c.createElement(O3,{primary:e,row:o}))}))),c.createElement(BA,cn({},null!=w?w:zA,{showAfterSeconds:.5}),k&&c.createElement(T3,{dropdown:k,row:o,onOpen:v,onClose:v}))));default:return c.createElement(c.Fragment,null)}},M3=T(hH)(Y2||(Y2=mn(["\n ",";\n"],["\n ",";\n"])),(function(e){var n=e.value,t=e.theme;return!n&&D(V2||(V2=mn(["\n span {\n background-color: ",";\n }\n "],["\n span {\n background-color: ",";\n }\n "])),t.palette.white[100])})),O3=function(e){var n=e.primary,t=e.row,r=n.text,o=n.icon,i=n.onClick,a=n.color,l=n.className;return c.createElement(c.Fragment,null,r&&c.createElement(S3,{type:"text",text:r,color:a,className:l,onClick:function(){return i(t)}}),o&&c.createElement(E3,{icon:o,onClick:function(){return i(t)}}))},P3=T.div(q2||(q2=mn(["\n position: relative;\n"],["\n position: relative;\n"]))),R3=T.div(G2||(G2=mn(["\n position: absolute;\n z-index: 10;\n top: -16px;\n width: 100%;\n textarea {\n color: "," !important;\n width: 100%;\n min-width: 80px;\n }\n"],["\n position: absolute;\n z-index: 10;\n top: -16px;\n width: 100%;\n textarea {\n color: "," !important;\n width: 100%;\n min-width: 80px;\n }\n"])),(function(e){return e.theme.palette.black[80]})),N3=T.div(K2||(K2=mn(["\n position: absolute;\n z-index: 2;\n bottom: 2px;\n right: 6px;\n"],["\n position: absolute;\n z-index: 2;\n bottom: 2px;\n right: 6px;\n"]))),A3=T(Ln)(X2||(X2=mn(["\n cursor: pointer;\n font-size: 12px;\n margin: 2px;\n color: ",";\n"],["\n cursor: pointer;\n font-size: 12px;\n margin: 2px;\n color: ",";\n"])),(function(e){var n=e.theme;return e.confirm?n.palette.green[900]:n.palette.red[900]})),I3=function(e){var n=e.onChange,t=e.row,r=e.content,o=e.onBlur,i=g(null==r?void 0:r.toString()),a=i[0],l=i[1],s=Ce(p((function(e){e&&(null==n||n(a||"",t)),o()}),[n,t,a,o]),200);return c.createElement(R3,null,c.createElement(N3,null,c.createElement(A3,{icon:U,onClick:function(){return s(!0)},confirm:!0}),c.createElement(A3,{icon:I})),c.createElement(TB,{value:a,onChange:function(e){return l(e.target.value)},autoFocus:!0,initialHeight:"100px",onBlur:function(){return s()},onFocus:function(e){var n=e.target.value;e.target.value="",e.target.value=n}}))},F3=function(e){var n=e.hover,t=e.onChange,r=e.row,o=e.unitSymbol,i=e.content,a=g(!1),l=a[0],s=a[1];return c.createElement(P3,null,l?c.createElement(I3,{row:r,onChange:t,onBlur:function(){return s(!1)},content:i}):c.createElement(vB,{hasMeasureUnit:!!o},c.createElement(uB,{value:null==i?void 0:i.toString(),isTransparent:!n,actionIcon:cn({icon:W},n?{}:{visibility:"hidden"}),onFocus:function(){return s(!0)}})))},L3=function(e){var n=e.content,t=e.isEditable,r=e.tag,o=e.unitSymbol,i=e.headline,a=e.leadingIcon,l=e.avatar,s=e.actionType,u=e.row,d=e.rowSize,f=e.onActionChange,h=e.isToggled,m=e.hover,g=e.onChange,y=e.trailingMicroTag,b=e.minWidth,v=e.rowActions,x=e.context,w=e.onRowClick,k=e.maxWidth,_=e.align,C=e.disableClick,$=e.actionColumnWidth,S=x.column,E=!t&&"function"==typeof w&&!C,T=p((function(e){return E&&w(e)}),[E,w]);if(s){var D=b?b+1:void 0,M=k?k+1:void 0;return c.createElement(D3,{row:u,actionType:s,isToggled:h,onActionChange:f,rowActions:v,column:S,maxWidth:M,minWidth:D,actionColumnWidth:$})}return c.createElement(dB,{className:"DS-rt-td",role:"gridcell",minWidth:b,maxWidth:k,onClick:function(){return T(u)},cellHasOnClick:E,style:{overflow:t?"visible":void 0,zIndex:t?"auto":void 0},align:_},c.createElement(fB,null,a&&c.createElement(pB,null,c.createElement(Ln,cn({},a))),l&&c.createElement(hB,null,c.createElement(Oa,cn({},l))),c.createElement(mB,{hasMeasureUnit:!!o},t?c.createElement(F3,{hover:m,onChange:g,row:u,unitSymbol:o,content:n}):c.createElement(c.Fragment,null,c.createElement(xB,{unitSymbol:o},c.createElement(gB,{truncate:!!d,headline:i},n),o&&c.createElement(yB,{headline:i},o)),r&&c.createElement(oX,cn({},r)))),y&&c.createElement(bB,null,c.createElement(xX,{type:y.type,text:y.text}))))},j3=function(e){var n,t=e.isActionCell,r=e.minWidth,o=e.maxWidth,i=e.align,a=null!==(n=t?32:null!=r?r:o)&&void 0!==n?n:50;return c.createElement("div",{className:"DS-rt-tr",style:{maxWidth:o,minWidth:r}},c.createElement(B3,{className:"DS-rt-td",align:i},c.createElement(z3,{speed:2,height:26,viewBox:"0 0 "+a+" 36",animate:!0},c.createElement("rect",{x:"0",y:"0",rx:"5",height:"36",width:a}))))},z3=T(tZ)(Q2||(Q2=mn(["\n width: auto;\n align-items: center;\n"],["\n width: auto;\n align-items: center;\n"]))),B3=T.div(J2||(J2=mn(["\n display: flex;\n align-items: center;\n flex: 1;\n\n margin-inline: 8px;\n\n ",";\n"],["\n display: flex;\n align-items: center;\n flex: 1;\n\n margin-inline: 8px;\n\n ",";\n"])),(function(e){var n=e.align;return D(Z2||(Z2=mn(["\n justify-content: ",";\n "],["\n justify-content: ",";\n "])),"center"===n?"center":"left"===n?"flex-start":"flex-end")})),H3=function(e){var n=e.cell,t=e.row,r=e.hover,o=e.rowSize,i=e.isLoading,a=e.onRowClick,l=e.actionColumnWidth,s=function(e,n){return u((function(){var t,r=e.getValue(),o=!("string"==typeof r||"number"==typeof r),i=e.column.columnDef,a=i.actionType,l=i.rowActions,s=i.onActionChange,c=i.toggles,u=a&&(null==c?void 0:c.some((function(e){return e===n.id}))),d=e.column.columnDef.unitSymbol,f="function"==typeof l?l(n):l;return{isEditable:!!e.column.columnDef.isEditable,isToggled:!!u,actionType:a,onActionChange:s,content:o?null===(t=r)||void 0===t?void 0:t.content:r,unitSymbol:o&&r&&r.unitSymbol||d,values:r,minWidth:e.column.columnDef.minWidth,maxWidth:e.column.columnDef.maxWidth,rowActions:f,align:e.column.columnDef.align||"left"}}),[e,n])}(n,t),d=s.values,f=un(s,["values"]);if(i)return c.createElement(j3,{isActionCell:!!f.actionType,minWidth:f.minWidth,maxWidth:f.maxWidth,align:f.align});var p=n.column.columnDef.customCell,h=n.column.columnDef.disableClick;if(p){var m=f.maxWidth,g=f.minWidth,y=f.align;return c.createElement(U3,{className:"DS-rt-td",style:{maxWidth:m,minWidth:g},align:y,onClick:function(){return!h&&(null==a?void 0:a(t))}},A2(p(t,!!r),n.getContext()))}return c.createElement(L3,cn({context:n.getContext(),key:n.id,row:t,hover:r,rowSize:o,onRowClick:a},d,f,{onChange:n.column.columnDef.onChange,disableClick:h,actionColumnWidth:l}))},U3=T.div(n3||(n3=mn(["\n height: 100%;\n display: flex;\n align-items: center;\n width: 100%;\n ",";\n /* margin-inline: 8px; */\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n width: 100%;\n ",";\n /* margin-inline: 8px; */\n"])),(function(e){var n=e.align;return D(e3||(e3=mn(["\n justify-content: ",";\n "],["\n justify-content: ",";\n "])),"center"===n?"center":"left"===n?"flex-start":"flex-end")})),W3=T.div(o3||(o3=mn(["\n box-shadow: ",";\n transition: box-shadow 200ms ease;\n ","\n ","\n"],["\n box-shadow: ",";\n transition: box-shadow 200ms ease;\n ","\n ","\n"])),(function(e){var n=e.mouseHover,t=e.theme;return n?"0px 3px 6px rgba(51, 51, 51, 0.15), 0px 2px 4px rgba(51, 51, 51, 0.12)":"0px 1px "+t.palette.grey[100]}),(function(e){var n=e.size;return n&&D(t3||(t3=mn(["\n height: ","px;\n "],["\n height: ","px;\n "])),n)}),(function(e){var n=e.selected,t=e.theme;return n&&D(r3||(r3=mn(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),t.palette.blue[50])})),V3=function(e){var n=e.row,t=e.isLoading,r=e.onRowClick,o=e.isRowHighlighted,i=e.rowHighlightColor,a=e.defaultRowSize,l=e.actionColumnWidth,s=y(b3).rowSize,u=g(),d=u[0],f=u[1];return c.createElement(W3,{className:"DS-rt-tr-group",role:"rowgroup",mouseHover:!t&&d,onMouseEnter:function(){return f(!0)},onMouseLeave:function(){return f(!1)},size:s||a,selected:!t&&n.getIsSelected(),style:{cursor:r?"pointer":"auto"}},c.createElement(Y3,{className:"DS-rt-tr",role:"row",style:{height:s||a},isRowHighlighted:o,rowHighlightColor:i},n.getVisibleCells().map((function(e,o){return c.createElement(H3,{key:o,cell:e,row:n,hover:d,rowSize:s,isLoading:t,onRowClick:r,actionColumnWidth:l})}))))},Y3=T.div(a3||(a3=mn(["\n ",";\n font-size: 14px;\n color: ",";\n"],["\n ",";\n font-size: 14px;\n color: ",";\n"])),(function(e){var n=e.isRowHighlighted,t=e.rowHighlightColor,r=e.theme;return n&&D(i3||(i3=mn(["\n background-color: ",";\n border-bottom: 1px solid #b0b9bd; // Grey 3\n "],["\n background-color: ",";\n border-bottom: 1px solid #b0b9bd; // Grey 3\n "])),t||r.palette.primary[100])}),(function(e){return e.theme.palette.black[80]})),q3=function(e){var n=e.rows,t=e.rowSize,r=e.isLoading,o=e.onRowClick,i=e.bodyHeight,a=e.rowIdHighlight,l=e.rowHighlightColor,s=e.pageIndex,u=e.actionColumnWidth,d=e.disableScrollX,p=f(null);return m((function(){p.current&&p.current.scrollTo({top:0})}),[s]),c.createElement("div",{ref:p,className:"DS-rt-tbody",style:{height:i,overflowX:d?"hidden":"auto"}},n.map((function(e){return c.createElement(V3,{key:e.id,row:e,defaultRowSize:t,isLoading:r,onRowClick:o,isRowHighlighted:a===+e.id,rowHighlightColor:l,actionColumnWidth:u})})))},G3=T.div(l3||(l3=mn(["\n max-height: ","px;\n visibility: ",";\n transition: max-height 400ms ease;\n padding-bottom: ",";\n background-color: ",";\n position: relative;\n z-index: 11;\n"],["\n max-height: ","px;\n visibility: ",";\n transition: max-height 400ms ease;\n padding-bottom: ",";\n background-color: ",";\n position: relative;\n z-index: 11;\n"])),(function(e){var n=e.shown,t=e.allSelectedShown;return n?t?94:48:0}),(function(e){return e.shown?"unset":"hidden"}),(function(e){return e.shown?"16px":"0"}),(function(e){return e.theme.palette.white[100]})),K3=T.div(s3||(s3=mn(["\n //non è in palette\n background-color: #e8f7fe;\n color: ",";\n display: flex;\n // width: 100%;\n align-items: center;\n justify-content: space-between;\n padding: 8px 8px;\n font-size: 14px;\n line-height: 21px;\n"],["\n //non è in palette\n background-color: #e8f7fe;\n color: ",";\n display: flex;\n // width: 100%;\n align-items: center;\n justify-content: space-between;\n padding: 8px 8px;\n font-size: 14px;\n line-height: 21px;\n"])),(function(e){return e.theme.palette.black[80]})),X3=T.div(c3||(c3=mn(["\n //non è in palette\n background-color: #e8f7fe;\n color: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px;\n font-size: 14px;\n line-height: 21px;\n gap: 8px;\n"],["\n //non è in palette\n background-color: #e8f7fe;\n color: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px;\n font-size: 14px;\n line-height: 21px;\n gap: 8px;\n"])),(function(e){return e.theme.palette.black[80]})),Q3=T.div(u3||(u3=mn(["\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n"],["\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n"]))),Z3=T.span(d3||(d3=mn([""],[""]))),J3=function(e){var n=e.selectedRowData,r=e.bulkBarActions,o=e.allSelectedCTA,i=e.renderBulkActions,a=n.length,l=f(null),s=f(null),d=g(),h=d[0],y=d[1],b=g(),v=b[0],x=b[1],w=g(!1),k=w[0],_=w[1];E((function(){var e,n,t,r;y(null===(n=null===(e=null==l?void 0:l.current)||void 0===e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.width),x(null===(r=null===(t=null==s?void 0:s.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===r?void 0:r.width)}),[]),m((function(){var e=Ce((function(){var e,n;y(null===(n=null===(e=null==l?void 0:l.current)||void 0===e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.width),x((function(e){var n,t,r,o,i,a;return(null===(t=null===(n=null==s?void 0:s.current)||void 0===n?void 0:n.getBoundingClientRect())||void 0===t?void 0:t.width)&&(null===(o=null===(r=null==s?void 0:s.current)||void 0===r?void 0:r.getBoundingClientRect())||void 0===o?void 0:o.width)>(e||0)?null===(a=null===(i=null==s?void 0:s.current)||void 0===i?void 0:i.getBoundingClientRect())||void 0===a?void 0:a.width:e}))}),200);return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),m((function(){_((h||0)-(v||0)<200)}),[h,v]);var C=p((function(){return c.createElement(E3,{icon:{icon:t,fixedWidth:!0}})}),[]),$=u((function(){return(null==r?void 0:r.slice(1,-1).map((function(e){var t=e.onClick,r=e.color;return{onClick:function(){return t(n)},text:e.text,color:r,icon:e.iconLeft}})))||[]}),[r,n]);return c.createElement(G3,{ref:l,shown:!!a&&a>0,allSelectedShown:!!o,id:"DS-bulk-bar-wrapper"},c.createElement(K3,{id:"DS-checkbox-table-bulk-bar"},c.createElement(Z3,null,a+" "+(1===a?"selezionato":"selezionati")),r&&r.length>0?c.createElement(Q3,{ref:s},!k||r.length<3?r.map((function(e,t){return c.createElement(hl,cn({key:t},e,{onClick:function(){return e.onClick(n)}}))})):c.createElement(c.Fragment,null,c.createElement(hl,cn({},r[0],{onClick:function(){return r[0].onClick(n)}})),c.createElement(bA,{placement:"bottom-end",renderTrigger:C,content:$}),c.createElement(hl,cn({},r[r.length-1],{onClick:function(){return r[r.length-1].onClick(n)}})))):c.createElement(Q3,{ref:s},null==i?void 0:i(n))),!!o&&c.createElement(X3,null,null==o?void 0:o.description,c.createElement(hl,{text:null==o?void 0:o.text,onClick:null==o?void 0:o.onClick,type:"text"})))},e4=function(e){var n=e.footerGroup;return c.createElement("div",null,n.map((function(e){return c.createElement("div",{key:e.id},e.headers.map((function(e){return c.createElement("div",{key:e.id},e.isPlaceholder?null:A2(e.column.columnDef.footer,e.getContext()))})))})))},n4=T.div(f3||(f3=mn(["\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n"],["\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n"]))),t4=T.div(p3||(p3=mn(["\n overflow-y: auto;\n overflow-x: hidden;\n height: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n max-height: 100%;\n\n /* CSS relativo al body scrollable */\n .DS-ReactTable-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n max-height: 100%;\n }\n\n .DS-ReactTable {\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n overflow: hidden;\n }\n\n .DS-ReactTable .DS-rt-table {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n width: 100%;\n border-collapse: collapse;\n overflow-x: auto;\n overflow-y: hidden;\n }\n\n .DS-ReactTable .DS-rt-thead {\n -webkit-box-flex: 1;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: default;\n }\n\n .DS-ReactTable .DS-rt-thead .DS-rt-th {\n position: relative;\n }\n .DS-ReactTable .DS-rt-thead .DS-rt-td {\n line-height: normal;\n position: relative;\n }\n\n .DS-ReactTable .DS-rt-thead .DS-rt-resizable-header:last-child {\n overflow: hidden;\n }\n .DS-ReactTable .DS-rt-thead .DS-rt-resizable-header-content {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .DS-ReactTable .DS-rt-thead.DS-header .DS-rt-th:after {\n content: '';\n display: block;\n position: absolute;\n }\n\n .DS-ReactTable .DS-rt-tbody {\n padding-bottom: 5px;\n display: flex;\n flex-direction: column;\n overflow: auto;\n }\n\n .DS-ReactTable .DS-rt-tbody .DS-rt-tr-group {\n flex: none;\n }\n\n .DS-ReactTable .DS-rt-tr-group {\n -webkit-box-flex: 1;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n cursor: pointer;\n }\n\n .DS-ReactTable .DS-rt-tr {\n flex: 1 0;\n display: inline-flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-content: center;\n justify-content: center;\n align-items: center;\n }\n\n .DS-ReactTable .DS-rt-th {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n white-space: nowrap;\n vertical-align: middle;\n align-self: center;\n overflow: hidden;\n }\n\n .DS-ReactTable .DS-rt-td {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n white-space: break-spaces;\n text-overflow: ellipsis;\n align-self: center;\n /* overflow: hidden; */\n }\n"],["\n overflow-y: auto;\n overflow-x: hidden;\n height: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n max-height: 100%;\n\n /* CSS relativo al body scrollable */\n .DS-ReactTable-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n max-height: 100%;\n }\n\n .DS-ReactTable {\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n overflow: hidden;\n }\n\n .DS-ReactTable .DS-rt-table {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n width: 100%;\n border-collapse: collapse;\n overflow-x: auto;\n overflow-y: hidden;\n }\n\n .DS-ReactTable .DS-rt-thead {\n -webkit-box-flex: 1;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: default;\n }\n\n .DS-ReactTable .DS-rt-thead .DS-rt-th {\n position: relative;\n }\n .DS-ReactTable .DS-rt-thead .DS-rt-td {\n line-height: normal;\n position: relative;\n }\n\n .DS-ReactTable .DS-rt-thead .DS-rt-resizable-header:last-child {\n overflow: hidden;\n }\n .DS-ReactTable .DS-rt-thead .DS-rt-resizable-header-content {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .DS-ReactTable .DS-rt-thead.DS-header .DS-rt-th:after {\n content: '';\n display: block;\n position: absolute;\n }\n\n .DS-ReactTable .DS-rt-tbody {\n padding-bottom: 5px;\n display: flex;\n flex-direction: column;\n overflow: auto;\n }\n\n .DS-ReactTable .DS-rt-tbody .DS-rt-tr-group {\n flex: none;\n }\n\n .DS-ReactTable .DS-rt-tr-group {\n -webkit-box-flex: 1;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n cursor: pointer;\n }\n\n .DS-ReactTable .DS-rt-tr {\n flex: 1 0;\n display: inline-flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-content: center;\n justify-content: center;\n align-items: center;\n }\n\n .DS-ReactTable .DS-rt-th {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n white-space: nowrap;\n vertical-align: middle;\n align-self: center;\n overflow: hidden;\n }\n\n .DS-ReactTable .DS-rt-td {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n white-space: break-spaces;\n text-overflow: ellipsis;\n align-self: center;\n /* overflow: hidden; */\n }\n"]))),r4=T.div(h3||(h3=mn(["\n height: 100%;\n position: relative;\n border-spacing: 0 2px;\n border: 0;\n td,\n th {\n padding: 0;\n }\n"],["\n height: 100%;\n position: relative;\n border-spacing: 0 2px;\n border: 0;\n td,\n th {\n padding: 0;\n }\n"]))),o4=T(Ln)(m3||(m3=mn(["\n height: 16px;\n width: 16px !important;\n padding: 2px;\n &:hover {\n color: ",";\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n }\n"],["\n height: 16px;\n width: 16px !important;\n padding: 2px;\n &:hover {\n color: ",";\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n }\n"])),(function(e){return e.theme.palette.grey[900]}),(function(e){return e.theme.palette.grey[100]})),i4=T.div(g3||(g3=mn(["\n display: flex;\n justify-content: center;\n text-align: center;\n width: 100%;\n margin-bottom: 18px;\n"],["\n display: flex;\n justify-content: center;\n text-align: center;\n width: 100%;\n margin-bottom: 18px;\n"]))),a4=function(e){var n,t=e.columns,r=e.isSelectable,o=e.toggles,i=e.isTogglesSortable,a=e.onTogglesChange,l=e.rowActions,s=e.enableSettings,c=e.settingsDropdownConfig,u=e.preSettedTableSettings,d=e.actionColumnWidth,f={accessor:(e,n)=>"function"==typeof e?{...n,accessorFn:e}:{...n,accessorKey:e},display:e=>e,group:e=>e},p=(null==u?void 0:u.orderColumns)?hn([],t,!0).sort((function(e,n){var t,r,o=null===(t=u.orderColumns)||void 0===t?void 0:t.indexOf(String(e.key)),i=null===(r=u.orderColumns)||void 0===r?void 0:r.indexOf(String(n.key));return void 0!==o&&void 0!==i?o-i:0})):t,h=hn(hn(hn(hn([],r?[{columnDefType:F2.ACTION,key:L2.CHECKBOX,columnDef:{actionType:L2.CHECKBOX,enableSorting:!1,maxWidth:32}}]:[],!0),o?[{columnDefType:F2.ACTION,key:L2.TOGGLE,columnDef:{actionType:L2.TOGGLE,enableSorting:i,toggles:o,sortingFn:function(e,n){return function(e,n,t){var r=Te(t,e.id),o=Te(t,n.id);return r?1:o?-1:0}(e,n,o)},onActionChange:function(e){return null==a?void 0:a(m(e,o))},maxWidth:32}}]:[],!0),p,!0),l||s?[{ColumnDefType:F2.ACTION,key:L2.ROW_ACTIONS,columnDef:{actionType:L2.ROW_ACTIONS,enableSorting:!1,rowActions:l,enableSettings:s,settingsDropdownConfig:c,headerTooltip:null!==(n=null==c?void 0:c.settingsTooltip)&&void 0!==n?n:{},enablePinning:!0,maxWidth:d,minWidth:80,align:"center"}}]:[],!0),m=function(e,n){return Se(n,(function(n){return n===e}))?Ee(n,(function(n){return n!==e})):hn(hn([],n,!0),[e],!1)};return h.map((function(e){switch(e.columnDefType){default:case F2.DISPLAY:return f.display(cn({id:String(e.key)},e.columnDef));case F2.ACCESSOR:return f.accessor(e.key,e.columnDef);case F2.GROUP:return f.group(cn({},e.columnDef));case F2.ACTION:return f.accessor(e.key,e.columnDef)}}))},l4=function(e){switch(e){default:case!1:return"asc";case"asc":return"desc";case"desc":return!1}};!function(e){e[e.FIRST=0]="FIRST",e[e.SECOND=1]="SECOND",e[e.THIRD=2]="THIRD"}(y3||(y3={}));var s4,c4,u4,d4,f4,p4,h4,m4,g4,y4=T(Ea)(s4||(s4=mn(["\n margin-top: 16px;\n margin-left: 8px;\n .body {\n padding: 0 0;\n }\n .header {\n height: ",";\n }\n"],["\n margin-top: 16px;\n margin-left: 8px;\n .body {\n padding: 0 0;\n }\n .header {\n height: ",";\n }\n"])),Ca.m),b4=T.h6(c4||(c4=mn(["\n font-size: 12px;\n color: ",";\n font-weight: 500;\n line-height: 18px;\n padding: 0;\n margin: 0;\n"],["\n font-size: 12px;\n color: ",";\n font-weight: 500;\n line-height: 18px;\n padding: 0;\n margin: 0;\n"])),(function(e){return e.theme.palette.black})),v4=T.div(u4||(u4=mn(["\n margin-top: 12px;\n margin-left: 0;\n margin-right: 0;\n"],["\n margin-top: 12px;\n margin-left: 0;\n margin-right: 0;\n"]))),x4=T.div(d4||(d4=mn(["\n height: 1px;\n background-color: ",";\n margin-left: 24px;\n margin-right: 24px;\n"],["\n height: 1px;\n background-color: ",";\n margin-left: 24px;\n margin-right: 24px;\n"])),(function(e){return e.theme.palette.grey[300]})),w4=function(e){var n=e.table,t=e.notRemovableColumns,r=e.onChangeTableSettings,o=f(null),i=f(null),a=function(e){var n=[],t=[],r=[];return e.forEach((function(e){var o=!!e.columnDef.actionType;switch(e.id){case L2.TOGGLE:t[y3.FIRST]=e;break;case L2.CHECKBOX:t[y3.THIRD]=e;break;case L2.ROW_ACTIONS:n[y3.FIRST]=e}o||r.push(e)})),{rightActions:n,leftActions:t,accessorColumns:r}}(n.getAllColumns()),l=a.accessorColumns,s=a.rightActions,u=a.leftActions,d=g(l),h=d[0],m=d[1],y=g(!1),b=y[0],v=y[1],x=function(e){var t=u.map((function(e){return String(e.id)})),r=s.map((function(e){return String(e.id)}));n.setColumnOrder(hn(hn(hn([],t,!0),e,!0),r,!0))},w=p((function(){return h.filter((function(e){return e.getIsVisible()})).length>1}),[h]),k=p((function(e,n){var t=h.filter((function(e){return!e.getIsVisible()})).map((function(e){return e.id}));n&&t.push(e),null==r||r("notVisibleColumns",{notVisibleColumns:n?t:t.filter((function(n){return n!==e}))})}),[h,r]),_=h.map((function(e,n){return c.createElement("div",{key:n,id:e.id,onDragEnter:function(){return function(e){if(i.current=e,null!==i.current&&null!==o.current){var n=hn([],h,!0),t=n[o.current];n.splice(o.current,1),n.splice(i.current,0,t),o.current=i.current,i.current=null,m(n),x(n.map((function(e){return String(e.id)})))}}(n)}},c.createElement(S4,{isRemovable:w()&&!(null==t?void 0:t.includes(String(e.id))),draggable:!0,onDragStart:function(e,t){return function(e,n,t){v(!0),o.current=n,e.dataTransfer.setDragImage(t,0,0)}(e,n,t)},onDragOver:function(e){return e.preventDefault()},onDragEnd:function(){v(!1),null==r||r("orderColumns",{orderColumns:h.map((function(e){return String(e.id)}))})},column:e,onChangeTableSettings:k}),b&&o.current===n&&c.createElement(x4,null))}));return c.createElement(v4,null,_)},k4=function(e){var n=e.table,t=e.visibleColumnsLabel,r=e.notRemovableColumns,o=e.onChangeTableSettings;return c.createElement(y4,{renderTitle:function(){return c.createElement(b4,null,t)},renderBody:function(){return c.createElement(w4,{table:n,preSettedColumns:["subject","category"],notRemovableColumns:r,onChangeTableSettings:o})}})},_4=T.div(f4||(f4=mn(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n"]))),C4=T.div(p4||(p4=mn(["\n margin-right: 4px;\n"],["\n margin-right: 4px;\n"]))),$4=T(ml)(h4||(h4=mn(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.palette.grey[300]})),S4=function(e){var n,t=e.column,r=e.draggable,o=e.onDragStart,i=e.onDragOver,a=e.onDragEnd,l=e.isRemovable,s=e.onChangeTableSettings,u=f(null);return c.createElement(_4,{ref:u,onDragOver:i},c.createElement(C4,{draggable:r,onDragStart:function(e){u.current&&o(e,u.current)},onDragEnd:a},c.createElement($4,{icon:{icon:je}})),c.createElement(hH,{value:t.getIsVisible(),text:null!==(n=t.columnDef.headerTitle)&&void 0!==n?n:String(t.columnDef.header),onClick:function(){t.toggleVisibility(),null==s||s(String(t.id),t.getIsVisible())},disabled:!l&&t.getIsVisible()}))},E4=T(FY)(m4||(m4=mn(["\n margin-top: 12px;\n"],["\n margin-top: 12px;\n"])));!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SMALL=1]="SMALL",e[e.LARGE=2]="LARGE"}(g4||(g4={}));var T4,D4,M4,O4,P4,R4,N4,A4,I4,F4,L4,j4,z4,B4,H4,U4,W4,V4,Y4,q4,G4,K4,X4,Q4,Z4,J4,e5,n5,t5,r5,o5,i5,a5,l5,s5,c5,u5,d5,f5,p5,h5,m5,g5,y5,b5,v5,x5,w5=function(e){var n=e.rowHeightLabel,t=e.unspecifiedRowsLabel,r=e.smallRowsLabel,o=e.largeRowsLabel,i=e.isDisabled,a=e.dimensionRow,l=e.onChangeTableSettings,s=y(b3).setRowSize,u=function(e){switch(e){default:case g4.UNSPECIFIED:return s(I2.UNSPECIFIED),I2.UNSPECIFIED;case g4.SMALL:return s(I2.SMALL),I2.SMALL;case g4.LARGE:return s(I2.LARGE),I2.LARGE}},d=function(){switch(a){default:case I2.UNSPECIFIED:return g4.UNSPECIFIED;case I2.SMALL:return g4.SMALL;case I2.LARGE:return g4.LARGE}},f=[{text:t,large:!1,disabled:i||!1},{text:r,large:!1,disabled:i||!1},{text:o,large:!1,disabled:i||!1}];return c.createElement(y4,{renderTitle:function(){return c.createElement(b4,null,n)},renderBody:function(){return c.createElement(E4,{spacing:"xs",initialSelection:d(),options:f,onChange:function(e){null==l||l("dimensionRow",{dimensionRow:u(e)})}})}})},k5=T(ml)(T4||(T4=mn(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.palette.blue[700]})),_5=T.div(D4||(D4=mn(["\n padding: 16px 24px;\n margin: 0;\n max-height: 220px;\n overflow: auto;\n"],["\n padding: 16px 24px;\n margin: 0;\n max-height: 220px;\n overflow: auto;\n"]))),C5=T.div(M4||(M4=mn(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),$5=T.div(O4||(O4=mn(["\n font-size: 14px;\n line-height: 21px;\n font-weight: 500;\n font-style: normal;\n"],["\n font-size: 14px;\n line-height: 21px;\n font-weight: 500;\n font-style: normal;\n"]))),S5=T.div(P4||(P4=mn(["\n background-color: ",";\n height: 24px;\n width: 24px;\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n"],["\n background-color: ",";\n height: 24px;\n width: 24px;\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n"])),(function(e){return e.theme.palette.grey[50]})),E5=function(e){var n=e.header,t=e.notRemovableColumns,r=e.dimensionRow,o=e.onChangeTableSettings,i=function(e){var n,t,r,o,i,a,l,s,c,u,d,f,p=e.column,h=(0,e.getContext)().table,m=0===(0,h.getRowModel)().rows.length,g=p.columnDef;return{table:h,isTableEmpty:m,displaySettingsLabel:null!==(t=null===(n=g.settingsDropdownConfig)||void 0===n?void 0:n.displaySettingsLabel)&&void 0!==t?t:"Impostazioni visualizzazione",visibleColumnsLabel:null!==(o=null===(r=g.settingsDropdownConfig)||void 0===r?void 0:r.visibleColumnsLabel)&&void 0!==o?o:"Colonne visibili",rowHeightLabel:null!==(a=null===(i=g.settingsDropdownConfig)||void 0===i?void 0:i.rowHeightLabel)&&void 0!==a?a:"Densità righe",unspecifiedRowsLabel:null!==(s=null===(l=g.settingsDropdownConfig)||void 0===l?void 0:l.unspecifiedRowsLabel)&&void 0!==s?s:"Standard",smallRowsLabel:null!==(u=null===(c=g.settingsDropdownConfig)||void 0===c?void 0:c.smallRowsLabel)&&void 0!==u?u:"Righe strette",largeRowsLabel:null!==(f=null===(d=g.settingsDropdownConfig)||void 0===d?void 0:d.largeRowsLabel)&&void 0!==f?f:"Righe larghe"}}(n),a=i.displaySettingsLabel,l=i.isTableEmpty,s=i.largeRowsLabel,u=i.rowHeightLabel,d=i.smallRowsLabel,f=i.table,p=i.unspecifiedRowsLabel,h=i.visibleColumnsLabel;return c.createElement(_5,null,c.createElement(C5,null,c.createElement(S5,null,c.createElement(k5,{icon:{icon:fe,color:"grey",size:"sm"}})),c.createElement($5,null,a)),c.createElement(k4,{table:f,visibleColumnsLabel:h,notRemovableColumns:t,onChangeTableSettings:o}),c.createElement(w5,{rowHeightLabel:u,unspecifiedRowsLabel:p,smallRowsLabel:d,largeRowsLabel:s,isDisabled:l,dimensionRow:r,onChangeTableSettings:o}))},T5=function(e){var n=e.header,t=e.onOpen,r=e.onClose,o=e.notRemovableColumns,i=e.dimensionRow,a=e.onChangeTableSettings,l=p((function(){return c.createElement(k5,{icon:{icon:ze,size:"sm"}})}),[]);return c.createElement(bA,{placement:"left-start",renderTrigger:l,onOpen:t,onClose:function(){return null==r?void 0:r(!1)},renderContent:function(){return c.createElement(E5,{header:n,notRemovableColumns:o,dimensionRow:i,onChangeTableSettings:a})}})},D5=T.span(R4||(R4=mn(["\n font-size: 12px;\n line-height: 18px;\n color: ",";\n"],["\n font-size: 12px;\n line-height: 18px;\n color: ",";\n"])),(function(e){return e.theme.palette.grey[500]})),M5=T.div(F4||(F4=mn(["\n border-width: 0px 1px 1px 0px;\n border-style: solid;\n border-color: ",";\n background-color: ",";\n height: ","px;\n ","\n ",";\n ",";\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n"],["\n border-width: 0px 1px 1px 0px;\n border-style: solid;\n border-color: ",";\n background-color: ",";\n height: ","px;\n ","\n ",";\n ",";\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n"])),(function(e){return e.theme.palette.grey[100]}),(function(e){return e.theme.palette.grey[50]}),(function(e){return e.size||I2.SMALL}),(function(e){return e.sortable&&D(N4||(N4=mn(["\n cursor: pointer;\n user-select: none;\n "],["\n cursor: pointer;\n user-select: none;\n "])))}),(function(e){var n=e.isActionColumn,t=e.minWidth;return t&&D(A4||(A4=mn(["\n min-width: ","px;\n "],["\n min-width: ","px;\n "])),t+(n?16:0))}),(function(e){var n=e.isActionColumn,t=e.maxWidth;return t&&D(I4||(I4=mn(["\n max-width: ","px;\n "],["\n max-width: ","px;\n "])),t+(n?16:0))})),O5=T.span(L4||(L4=mn(["\n margin: 8px;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n"],["\n margin: 8px;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n"]))),P5=T.div(j4||(j4=mn(["\n display: flex;\n align-items: center;\n padding: 8px;\n"],["\n display: flex;\n align-items: center;\n padding: 8px;\n"]))),R5=function(e){var n=e.header,t=e.onOpen,r=e.onClose,o=e.forceHideSettings,i=e.rowSelection,a=e.setRowSelection,l=e.notRemovableColumns,s=e.dimensionRow,d=e.onChangeTableSettings,f=e.isLoading,p=e.actionColumnWidth,h=M(),m=function(e){return u((function(){var n=e.column,t=(0,e.getContext)().table,r=n.columnDef,o=r.actionType,i=r.rowActions,a=r.enableSettings,l="function"==typeof i?i().headerTitle:null==i?void 0:i.headerTitle,s=!!a,c=n.getCanSort(),u=!!n.getIsSorted();return{actionType:o,isSortedDesc:!1===n.getIsSorted()?null:n.getIsSorted(),isSorted:u,toggleSortable:L2.TOGGLE&&c,table:t,canSort:c,headerTitle:l,allColumns:e.getContext().table.getAllColumns(),isSettingsEnabled:s}}),[e])}(n),g=m.actionType,y=m.isSorted,b=m.isSortedDesc,v=m.toggleSortable,x=m.table,w=m.headerTitle,k=m.isSettingsEnabled,_={width:p},C="desc"===b;switch(g){case L2.TOGGLE:return c.createElement(P5,{style:_},c.createElement(_3,{checked:y}),v&&c.createElement(o4,{color:y?h.palette.grey[900]:h.palette.grey[200],rotation:C?180:void 0,icon:Z}));case L2.CHECKBOX:return c.createElement(P5,{style:cn(cn({},_),{paddingLeft:8}),id:"DS-checkbox-table-header"},c.createElement(hH,{value:x.getIsAllPageRowsSelected()||(i&&i.length>0?QB.INDETERMINATE:QB.UNCHECKED),onChange:function(){a&&!x.getIsAllPageRowsSelected()&&a([]),(x.getIsAllPageRowsSelected()||i&&0===i.length)&&x.toggleAllPageRowsSelected()},disabled:f}));case L2.ROW_ACTIONS:return c.createElement(P5,{style:_},w&&c.createElement(D5,null,w),k&&!o&&c.createElement(T5,{onClose:r,header:n,onOpen:t,notRemovableColumns:l,dimensionRow:s,onChangeTableSettings:d}));default:return c.createElement(c.Fragment,null)}},N5=function(e){var n=e.header,t=e.headerSize,r=e.onSort,o=e.customSorted,i=e.setCustomSorted,a=e.forceHideSettings,l=e.rowSelection,s=e.setRowSelection,u=e.notRemovableColumns,d=e.dimensionRow,f=e.onChangeTableSettings,h=e.isLoading,m=e.actionColumnWidth,y=function(e,n){var t=e.column,r=t.columnDef.actionType,o=t.getCanSort(),i=!!t.getIsSorted(),a=!1===t.getIsSorted()?null:t.getIsSorted();return{column:t,actionType:r,canSort:o,isSorted:i,isSortedDesc:a,minWidth:r===L2.ROW_ACTIONS?n:t.columnDef.minWidth,maxWidth:t.columnDef.maxWidth,tooltip:t.columnDef.headerTooltip}}(n,m),b=y.column,v=y.actionType,x=y.canSort,w=y.isSorted,k=y.isSortedDesc,_=y.minWidth,C=y.tooltip,$=y.maxWidth,S=M(),E="desc"===k||"desc"===o,T=w||!!o,D=g(!1),O=D[0],P=D[1],R=function(e){P(e)},N=p((function(e){var t,a;r?x&&(null==i||i(((t={})[n.id]=l4(o),t)),r({sortBy:n.id,direction:l4(o)}),n.getContext().table.setPageIndex(1)):null===(a=b.getToggleSortingHandler())||void 0===a||a(e)}),[r,b,n,i,o,x]);return c.createElement(M5,{className:"DS-rt-th",size:t,minWidth:_,maxWidth:$,sortable:x,onClick:N,isActionColumn:v===L2.ROW_ACTIONS,style:cn({},C3({isHeader:!0,theme:S,isPinned:b.getIsPinned(),isPopoverActive:O}))},c.createElement(A5,cn({},null!=C?C:zA,{showAfterSeconds:.5}),v?c.createElement(R5,{header:n,onOpen:R,onClose:R,forceHideSettings:a,rowSelection:l,setRowSelection:s,notRemovableColumns:u,dimensionRow:d,onChangeTableSettings:f,isLoading:h,actionColumnWidth:m}):c.createElement(O5,null,c.createElement(D5,null,n.isPlaceholder?null:A2(n.column.columnDef.header,n.getContext())),x&&c.createElement(o4,{rotation:E?180:void 0,icon:Z,color:T?S.palette.grey[900]:S.palette.grey[200]}))))},A5=T(BA)(z4||(z4=mn(["\n width: 100%;\n"],["\n width: 100%;\n"]))),I5=function(e){var n=e.headerGroup,t=e.headerSize,r=e.onSort,o=e.forceHideSettings,i=e.rowSelection,a=e.setRowSelection,l=e.preSettedTableSettings,s=e.onChangeTableSettings,u=e.notRemovableColumns,d=e.isLoading,f=e.actionColumnWidth,p=g(),h=p[0],m=p[1];return c.createElement(F5,{className:"DS-rt-thead DS-header"},n.map((function(e){return c.createElement("div",{key:e.id,className:"DS-rt-tr"},e.headers.map((function(e){var n=null==h?void 0:h[e.id];return c.createElement(N5,{key:e.id,header:e,headerSize:t,onSort:r,customSorted:n,setCustomSorted:m,forceHideSettings:o,rowSelection:i,setRowSelection:a,notRemovableColumns:u,dimensionRow:null==l?void 0:l.dimensionRow,onChangeTableSettings:s,isLoading:d,actionColumnWidth:f})})))})))},F5=T.div(B4||(B4=mn([""],[""]))),L5=function(e){var n,t,r=e.data,o=e.columns,i=e.isSelectable,a=e.toggles,l=e.onTogglesChange,u=e.headerSize,d=e.isTogglesSortable,f=void 0!==d&&d,h=e.sortable,y=void 0===h||h,b=e.sortDescFirst,v=void 0===b||b,x=e.enableSettings,w=void 0===x||x,k=e.settingsDropdownConfig,_=e.rowActions,C=e.bulkActions,$=e.isLoading,S=e.allSelectedCTA,E=e.noPagination,T=void 0===E||E,D=e.pageSize,M=void 0===D?10:D,O=e.listSize,P=e.paginationPreviousText,R=void 0===P?"Indietro":P,N=e.paginationNextText,A=void 0===N?"Avanti":N,I=e.onPaginationChange,F=e.uniqueId,L=e.onSort,j=e.renderEmptyState,z=e.onRowClick,B=e.bodyHeight,H=e.totalPages,U=e.rowIdHighlight,W=e.rowHighlightColor,V=e.rowSelection,Y=e.onRowSelection,q=e.forceHideSettings,G=void 0!==q&&q,K=e.renderBulkActions,X=e.preSettedTableSettings,Q=e.onChangeTableSettings,Z=e.notRemovableColumns,J=e.rowSize,ee=e.actionColumnWidth,ne=void 0===ee?80:ee,te=e.disableScrollX,re=e.resetPageIndex,oe=a4({columns:o,isSelectable:i,toggles:a,isTogglesSortable:f,onTogglesChange:l,rowActions:_,enableSettings:w,settingsDropdownConfig:k,preSettedTableSettings:X,actionColumnWidth:ne}),ie=function(e){var n=g(e||{left:[],right:[]});return{columnPinning:n[0],setColumnPinning:n[1]}}({right:[L2.ROW_ACTIONS]}),ae=ie.columnPinning,le=ie.setColumnPinning,se=function(e){var n=g({pageIndex:1,pageSize:e}),t=n[0];return{pageIndex:t.pageIndex,pageSize:t.pageSize,setPagination:n[1]}}(M),ce=se.pageSize,ue=se.pageIndex,de=se.setPagination,fe=c.useMemo((function(){return{pageIndex:ue,pageSize:ce}}),[ue,ce]),pe=xe(I);m((function(){var e;null===(e=pe.current)||void 0===e||e.call(pe,fe)}),[fe,pe]);var he=p((function(){return null==V?void 0:V.reduce((function(e,n){var t;return cn(cn({},e),((t={})[n]=!0,t))}),{})}),[V]),me={columnVisibility:c.useMemo((function(){return(null==X?void 0:X.notVisibleColumns)?null==X?void 0:X.notVisibleColumns.reduce((function(e,n){return n&&(e[n]=!1),e}),{}):{}}),[null==X?void 0:X.notVisibleColumns])},ge=function(e){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=s.useState((()=>({current:R2(n)}))),[r,o]=s.useState((()=>t.current.initialState));return t.current.setOptions((n=>({...n,...e,state:{...r,...e.state},onStateChange:n=>{o(n),null==e.onStateChange||e.onStateChange(n)}}))),t.current}(cn(cn({data:r,columns:oe,enableSorting:y,sortDescFirst:v,getCoreRowModel:e=>q1((()=>[e.options.data]),(n=>{const t={rows:[],flatRows:[],rowsById:{}},r=function(n,o,i){void 0===o&&(o=0);const a=[];for(let s=0;s<n.length;s++){const c=N2(e,e._getRowId(n[s],s,i),n[s],s,o,void 0,null==i?void 0:i.id);var l;t.flatRows.push(c),t.rowsById[c.id]=c,a.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(n[s],s),null!=(l=c.originalSubRows)&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return a};return t.rows=r(n),t}),{key:"development"===process.env.NODE_ENV&&"getRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>q1((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((n,t)=>{if(!t.rows.length||null==n||!n.length)return t;const r=e.getState().sorting,o=[],i=r.filter((n=>{var t;return null==(t=e.getColumn(n.id))?void 0:t.getCanSort()})),a={};i.forEach((n=>{const t=e.getColumn(n.id);t&&(a[n.id]={sortUndefined:t.columnDef.sortUndefined,invertSorting:t.columnDef.invertSorting,sortingFn:t.getSortingFn()})}));const l=e=>{const n=[...e];return n.sort(((e,n)=>{for(let r=0;r<i.length;r+=1){var t;const o=i[r],l=a[o.id],s=null!=(t=null==o?void 0:o.desc)&&t;if(l.sortUndefined){const t=void 0===e.getValue(o.id),r=void 0===n.getValue(o.id);if(t||r)return t&&r?0:t?l.sortUndefined:-l.sortUndefined}let c=l.sortingFn(e,n,o.id);if(0!==c)return s&&(c*=-1),l.invertSorting&&(c*=-1),c}return e.index-n.index})),n.forEach((e=>{var n;o.push(e),null!=(n=e.subRows)&&n.length&&(e.subRows=l(e.subRows))})),n};return{rows:l(t.rows),flatRows:o,rowsById:t.rowsById}}),{key:"development"===process.env.NODE_ENV&&"getSortedRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getPaginationRowModel:e=>q1((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((n,t)=>{if(!t.rows.length)return t;const{pageSize:r,pageIndex:o}=n;let{rows:i,flatRows:a,rowsById:l}=t;const s=r*o,c=s+r;let u;i=i.slice(s,c),u=e.options.paginateExpandedRows?{rows:i,flatRows:a,rowsById:l}:function(e){const n=[],t=e=>{var r;n.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(t)};return e.rows.forEach(t),{rows:n,flatRows:e.flatRows,rowsById:e.rowsById}}({rows:i,flatRows:a,rowsById:l}),u.flatRows=[];const d=e=>{u.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return u.rows.forEach(d),u}),{key:"development"===process.env.NODE_ENV&&"getPaginationRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable}}),pageCount:O,state:cn({pagination:fe,columnPinning:ae},V&&{rowSelection:he()}),onColumnPinningChange:le,onPaginationChange:de,manualPagination:!0,getRowId:function(e){return String(e[F])},manualSorting:!!L},Y&&{onRowSelectionChange:function(e){var n;"function"==typeof e&&Y(Object.keys(e(null!==(n=he())&&void 0!==n?n:{})))}}),{initialState:me})),ye=ge.getHeaderGroups,be=ge.getRowModel,ve=ge.getFooterGroups,we=ge.previousPage,ke=ge.nextPage,_e=ge.setPageIndex,Ce=ge.getIsAllRowsSelected;m((function(){de((function(e){return cn(cn({},e),{pageIndex:1})}))}),[re,de]);var $e=Ce(),Se=!$&&j&&0===r.length;return c.createElement(n4,null,c.createElement(v3,{defaultRowSize:(null===(n=X)||void 0===n?void 0:n.dimensionRow)||J},c.createElement(t4,null,c.createElement(J3,{renderBulkActions:K,bulkBarActions:C,selectedRowData:null!=V?V:[],allSelectedCTA:$e?S:void 0}),c.createElement(r4,{className:"DS-ReactTable DS-rt-table"},c.createElement(I5,{headerGroup:ye(),headerSize:u,onSort:L,forceHideSettings:G,rowSelection:V,setRowSelection:Y,preSettedTableSettings:X,onChangeTableSettings:Q,notRemovableColumns:Z,isLoading:!!$,actionColumnWidth:ne}),Se?c.createElement(c.Fragment,null,j()):c.createElement(q3,{pageIndex:ue,rows:be().rows,rowSize:(null===(t=X)||void 0===t?void 0:t.dimensionRow)||J,isLoading:$,onRowClick:z,bodyHeight:B,rowIdHighlight:U,rowHighlightColor:W,actionColumnWidth:ne,disableScrollX:te}),c.createElement(e4,{footerGroup:ve()}),!T&&!Se&&c.createElement(i4,null,c.createElement(IZ,{changePageAction:function(e){return _e(e)},nextPageAction:ke,prevPageAction:we,nextText:A,prevText:R,listSize:O||r.length,totalPages:H,pageSize:ce,currentPage:ue}))))))},j5=T.div(H4||(H4=mn(["\n width: 90vw;\n margin: 0 auto;\n text-align: center;\n @media screen and (min-width: 768px) {\n width: 376px;\n }\n .icon {\n background-color: ",";\n width: 176px;\n height: 176px;\n border-radius: 50%;\n color: ",";\n margin: 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 76px;\n }\n h5 {\n margin-top: 2rem;\n margin-bottom: 0;\n font-weight: 500;\n font-size: 20px;\n line-height: 30px;\n color: ",";\n }\n p {\n margin-top: 0.5rem;\n margin-bottom: 1.5rem;\n font-weight: 400;\n font-size: 14px;\n line-height: 21px;\n color: ",";\n }\n"],["\n width: 90vw;\n margin: 0 auto;\n text-align: center;\n @media screen and (min-width: 768px) {\n width: 376px;\n }\n .icon {\n background-color: ",";\n width: 176px;\n height: 176px;\n border-radius: 50%;\n color: ",";\n margin: 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 76px;\n }\n h5 {\n margin-top: 2rem;\n margin-bottom: 0;\n font-weight: 500;\n font-size: 20px;\n line-height: 30px;\n color: ",";\n }\n p {\n margin-top: 0.5rem;\n margin-bottom: 1.5rem;\n font-weight: 400;\n font-size: 14px;\n line-height: 21px;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.red[50]}),(function(e){return e.theme.palette.red[500]}),(function(e){return e.theme.palette.black[100]}),(function(e){return e.theme.palette.black[80]})),z5=function(e){var n=e.action,t=e.icon,r=e.text,o=e.title,i=u((function(){return n?c.createElement(hl,{onClick:function(){return n.action()},iconLeft:n.icon?n.icon:void 0,text:n.text,color:"green"}):null}),[n]);return c.createElement(j5,null,t&&c.createElement("div",{className:"icon"},c.createElement(Ln,cn({},t))),o&&c.createElement("h5",null,o),r&&c.createElement("p",null,r),i)},B5=T.div(U4||(U4=mn(["\n cursor: pointer;\n position: relative;\n width: 24px;\n height: 12px;\n background: #b0b9bd; // TODO: New palette -> grey 300\n border-radius: 10px;\n padding: 2px;\n transition: 300ms all;\n\n &:before {\n transition: 300ms all;\n content: '';\n position: absolute;\n width: 12px;\n height: 12px;\n border-radius: 35px;\n top: 50%;\n left: 2px;\n background: white;\n transform: translate(0, -50%);\n }\n"],["\n cursor: pointer;\n position: relative;\n width: 24px;\n height: 12px;\n background: #b0b9bd; // TODO: New palette -> grey 300\n border-radius: 10px;\n padding: 2px;\n transition: 300ms all;\n\n &:before {\n transition: 300ms all;\n content: '';\n position: absolute;\n width: 12px;\n height: 12px;\n border-radius: 35px;\n top: 50%;\n left: 2px;\n background: white;\n transform: translate(0, -50%);\n }\n"]))),H5=T.input(W4||(W4=mn(["\n opacity: 0;\n position: absolute;\n &:checked + "," {\n background: ",";\n\n &:before {\n transform: translate(12px, -50%);\n }\n }\n"],["\n opacity: 0;\n position: absolute;\n &:checked + "," {\n background: ",";\n\n &:before {\n transform: translate(12px, -50%);\n }\n }\n"])),B5,(function(e){var n=e.theme,t=e.color;return n.palette[t][500]})),U5=function(e){var n=e.checked,t=e.color,r=void 0===t?"blue":t,o=e.onChange;return c.createElement(c.Fragment,null,c.createElement(H5,{type:"checkbox",checked:n,color:r}),c.createElement(B5,{onClick:function(){return o(!n)}}))},W5=T.span(V4||(V4=mn(["\n background: ",";\n width: 100%;\n height: 4px;\n margin-top: 6px;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"],["\n background: ",";\n width: 100%;\n height: 4px;\n margin-top: 6px;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"])),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:"transparent"}),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[500]}),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[900]})),V5=T.span(Y4||(Y4=mn(["\n font-family: 'Inter UI', sans-serif;\n font-style: normal;\n font-size: 14px;\n font-weight: 500;\n line-height: 21px;\n\n align-items: center;\n display: flex;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"],["\n font-family: 'Inter UI', sans-serif;\n font-style: normal;\n font-size: 14px;\n font-weight: 500;\n line-height: 21px;\n\n align-items: center;\n display: flex;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"])),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[500]}),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[900]})),Y5=function(e){var n=e.active,t=e.handleClick,r=e.tabRef,o=e.text,i=e.tooltip,a=e.badge,l=e.customBadge,s=c.createElement(q5,{ref:null==r?void 0:r(),onClick:t},c.createElement(G5,null,c.createElement(K5,cn({className:"item-badge",isDisabled:!0},a),c.createElement(V5,{active:n},o)),null!=l?l:null),c.createElement(W5,{active:n}));return i?c.createElement(BA,cn({},i),s):s},q5=T.div(q4||(q4=mn(["\n cursor: pointer;\n flex-shrink: 0;\n position: relative;\n padding: 0;\n display: flex;\n flex-direction: column;\n"],["\n cursor: pointer;\n flex-shrink: 0;\n position: relative;\n padding: 0;\n display: flex;\n flex-direction: column;\n"]))),G5=T.div(G4||(G4=mn(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),K5=T(tH)(K4||(K4=mn(["\n height: 8px;\n min-width: 8px;\n"],["\n height: 8px;\n min-width: 8px;\n"]))),X5=T.div(Q4||(Q4=mn(["\n box-sizing: border-box;\n height: 31px;\n alignment-baseline: baseline;\n display: flex;\n white-space: nowrap;\n margin-top: 3px;\n width: 100%;\n\n ",";\n\n & > *:first-child {\n padding-left: ","px;\n }\n\n & > *:last-child {\n padding-right: ","px;\n }\n\n & > * + * {\n margin-left: ","px;\n }\n"],["\n box-sizing: border-box;\n height: 31px;\n alignment-baseline: baseline;\n display: flex;\n white-space: nowrap;\n margin-top: 3px;\n width: 100%;\n\n ",";\n\n & > *:first-child {\n padding-left: ","px;\n }\n\n & > *:last-child {\n padding-right: ","px;\n }\n\n & > * + * {\n margin-left: ","px;\n }\n"])),(function(e){return e.hidden&&D(X4||(X4=mn(["\n visibility: hidden;\n position: absolute;\n "],["\n visibility: hidden;\n position: absolute;\n "])))}),(function(e){return e.lateralPadding}),(function(e){return e.lateralPadding}),(function(e){return e.distance})),Q5=T(X5)(Z4||(Z4=mn(["\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n"],["\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n"]))),Z5=function(e){var n=e.active;return c.createElement(Y5,{active:n,text:c.createElement(J5,{icon:Be,fixedWidth:!0})})},J5=T(Ln)(J4||(J4=mn(["\n height: 21px;\n"],["\n height: 21px;\n"]))),e8=function(e){var n=e.active,t=e.tabs,r=p((function(){return c.createElement(Z5,{active:n})}),[n]),o=p((function(e){return c.createElement(c.Fragment,null,t.map((function(n,t){var r=n.active,o=n.handleClick,i=n.text;return c.createElement(bA.Item,{key:t,text:i,active:r,onClick:function(){o&&o(),e()}})})))}),[t]);return c.createElement(n8,{placement:"bottom-end",fullWidth:!0,renderTrigger:r,renderContent:o})},n8=T(bA)(e5||(e5=mn(["\n display: block;\n"],["\n display: block;\n"]))),t8=function(e){var n=e.className,t=e.distance,r=void 0===t?15:t,o=e.lateralPadding,i=void 0===o?23:o,a=e.tabs,l=function(){var e=we(),n=e[0],t=e[1].width,r=g(0),o=r[0],i=r[1];return ke((function(){return i(t)}),250,[t]),{elementsWrapperRef:n,wrapperWidth:o}}(),s=l.elementsWrapperRef,d=l.wrapperWidth,f=g(0)[1],p=a.length,h=u((function(){return Array.from(Array(p),(function(){return c.createRef()}))}),[p]),m=u((function(){return h.map((function(e){return function(){return f((function(e){return e+1})),e}}))}),[h]),y=function(e){var n=e.distance,t=e.lateralPadding,r=e.tabsLength,o=e.tabsRefs,i=e.wrapperWidth;return u((function(){for(var e,a=0,l=i-2*t;a!==r&&l>0;){var s=null===(e=o[a].current)||void 0===e?void 0:e.offsetWidth;s&&l-(s+n)>0?(a++,l-=s+n):l=-1}return{visibleCount:a}}),[n,t,r,o,i])}({distance:r,tabsLength:p,wrapperWidth:d,tabsRefs:h,lateralPadding:i}).visibleCount,b=u((function(){return a.map((function(e,n){return c.createElement(Y5,cn({key:n,tabRef:m[n]},e))}))}),[m,a]),v=u((function(){return a.slice(0,y).map((function(e,n){return c.createElement(Y5,cn({key:n},e))}))}),[a,y]),x=u((function(){return a.slice(y)}),[a,y]),w=0!==x.length,k=x.some((function(e){return e.active})),_=0===d;return c.createElement(c.Fragment,null,c.createElement(r8,{className:n,distance:r,lateralPadding:i,hidden:!_},b),c.createElement(X5,{className:n,distance:r,lateralPadding:i,hidden:_,ref:s},v,w&&c.createElement(e8,{active:k,tabs:x})))},r8=T(Q5)(n5||(n5=mn(["\n overflow-x: hidden;\n"],["\n overflow-x: hidden;\n"]))),o8=function(e){var n=e.className,t=e.distance,r=void 0===t?15:t,o=e.lateralPadding,i=void 0===o?23:o,a=e.tabs,l=u((function(){return a.map((function(e,n){return c.createElement(Y5,cn({key:n},e))}))}),[a]);return c.createElement(Q5,{className:n,distance:r,lateralPadding:i},l)},i8=function(e){var n=e.children,t=e.theme;return c.createElement(R,{theme:t},c.createElement(c.Fragment,null,n))},a8=new Map([["jpg","img"],["jpeg","img"],["png","img"],["gif","img"],["mp4","video"],["webm","video"],["ogg","video"],["3gp","video"]]),l8=function(e){var n=e.src,t=e.className,r=e.showVideoControls,o=void 0===r||r;return function(e){var n=new URL(e).pathname.split(".")[1];return"video"===a8.get(n)}(n)?c.createElement("video",{controls:o,controlsList:"nodownload",src:n,className:t}):c.createElement("img",{src:n,className:t})},s8=T.div(t5||(t5=mn(["\n display: flex;\n flex-direction: row;\n align-items: center;\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n"]))),c8=T.div(r5||(r5=mn(["\n display: flex;\n flex-direction: column;\n"],["\n display: flex;\n flex-direction: column;\n"]))),u8=T(l8)(o5||(o5=mn(["\n border-radius: 10px;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n"],["\n border-radius: 10px;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n"]))),d8=T(ml)(i5||(i5=mn(["\n position: absolute;\n color: ",";\n top: 2%;\n right: 2%;\n font-size: 24px;\n user-select: none;\n text-shadow: 0 0 3px ",";\n :active {\n filter: brightness(65%);\n }\n > svg > path {\n stroke: ",";\n stroke-width: 15;\n }\n"],["\n position: absolute;\n color: ",";\n top: 2%;\n right: 2%;\n font-size: 24px;\n user-select: none;\n text-shadow: 0 0 3px ",";\n :active {\n filter: brightness(65%);\n }\n > svg > path {\n stroke: ",";\n stroke-width: 15;\n }\n"])),(function(e){return e.theme.palette.grey[800]}),(function(e){return e.theme.palette.white[100]}),(function(e){return e.theme.palette.white[100]})),f8=T(s8)(a5||(a5=mn(["\n width: 100%;\n"],["\n width: 100%;\n"]))),p8=function(e){var n=e.src,t=e.openFullscreen;return c.createElement(f8,null,c.createElement(u8,{src:n}),c.createElement(d8,{icon:{icon:o},onClick:t}))},h8=T.li(l5||(l5=mn(["\n display: flex;\n cursor: pointer;\n min-width: calc(25% - 8px);\n max-width: 33%;\n"],["\n display: flex;\n cursor: pointer;\n min-width: calc(25% - 8px);\n max-width: 33%;\n"]))),m8=T(l8)(c5||(c5=mn(["\n border-radius: 10%;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n ","\n"],["\n border-radius: 10%;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n ","\n"])),(function(e){return e.isSelected&&D(s5||(s5=mn(["\n filter: brightness(65%);\n "],["\n filter: brightness(65%);\n "])))})),g8=c.forwardRef((function(e,n){var t=e.src,r=e.isSelected,o=e.onClick;return c.createElement(h8,{onClick:o,ref:n},c.createElement(m8,{isSelected:r,src:t,showVideoControls:!1}))})),y8=T(s8)(u5||(u5=mn(["\n position: relative;\n display: flex;\n width: 70%;\n align-items: center;\n"],["\n position: relative;\n display: flex;\n width: 70%;\n align-items: center;\n"]))),b8=T.ul(f5||(f5=mn(["\n overflow-x: scroll;\n scroll-snap-type: x;\n display: flex;\n gap: 10px;\n height: fit-content;\n padding: 0;\n margin: 0;\n\n /* remove scrollbar */\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n background: transparent;\n width: 0;\n height: 0;\n }\n\n ","\n"],["\n overflow-x: scroll;\n scroll-snap-type: x;\n display: flex;\n gap: 10px;\n height: fit-content;\n padding: 0;\n margin: 0;\n\n /* remove scrollbar */\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n background: transparent;\n width: 0;\n height: 0;\n }\n\n ","\n"])),(function(e){return e.mediaCount<3&&D(d5||(d5=mn(["\n justify-content: center;\n "],["\n justify-content: center;\n "])))})),v8=T(ml)(p5||(p5=mn(["\n user-select: none;\n position: absolute;\n color: ",";\n font-size: 24px;\n :active {\n filter: brightness(65%);\n }\n"],["\n user-select: none;\n position: absolute;\n color: ",";\n font-size: 24px;\n :active {\n filter: brightness(65%);\n }\n"])),(function(e){return e.theme.palette.grey[800]})),x8=T(v8)(h5||(h5=mn(["\n right: -32px;\n"],["\n right: -32px;\n"]))),w8=T(v8)(m5||(m5=mn(["\n left: -32px;\n"],["\n left: -32px;\n"]))),k8=function(e){var n=e.media,t=e.selectedMedia,r=e.setSelectedMedia,o=f([]),l=p((function(e){r(e),function(e,n){var t;null===(t=n.current[e])||void 0===t||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}(e,o)}),[r]),s=p((function(e){l(function(e,n,t){return(n+e+("back"===t?-1:1))%n}(t,n.length,e))}),[t,n.length,l]);return c.createElement(y8,null,c.createElement(b8,{mediaCount:n.length},n.map((function(e,n){return c.createElement(g8,{key:n,src:e,isSelected:t===n,onClick:function(){return l(n)},ref:function(e){return o.current[n]=e}})}))),c.createElement(x8,{onClick:function(){return s("forward")},icon:{icon:i}}),c.createElement(w8,{onClick:function(){return s("back")},icon:{icon:a}}))},_8=T(v1)(g5||(g5=mn(["\n width: fit-content;\n > div {\n padding: 20px;\n }\n"],["\n width: fit-content;\n > div {\n padding: 20px;\n }\n"]))),C8=T(ml)(y5||(y5=mn(["\n position: absolute;\n color: ",";\n top: 5px;\n right: 5px;\n font-size: 24px;\n user-select: none;\n background-color: ",";\n border-radius: 5px;\n"],["\n position: absolute;\n color: ",";\n top: 5px;\n right: 5px;\n font-size: 24px;\n user-select: none;\n background-color: ",";\n border-radius: 5px;\n"])),(function(e){return e.theme.palette.grey[800]}),(function(e){return e.theme.palette.white[100]})),$8=T.div(b5||(b5=mn(["\n margin-right: auto;\n margin-left: auto;\n width: fit-content;\n"],["\n margin-right: auto;\n margin-left: auto;\n width: fit-content;\n"]))),S8=T(l8)(v5||(v5=mn(["\n max-width: 90vw;\n max-height: 90vh;\n min-width: 50vw;\n min-height: 50vh;\n object-fit: contain;\n"],["\n max-width: 90vw;\n max-height: 90vh;\n min-width: 50vw;\n min-height: 50vh;\n object-fit: contain;\n"]))),E8=function(e){var n=e.src,t=e.isOpen,r=e.close;return c.createElement(c.Fragment,null,c.createElement(_8,{allowClose:!0,isOpen:t,onActionClose:function(){return r()}},c.createElement($8,null,c.createElement(S8,{src:n})),c.createElement(C8,{icon:{icon:l},onClick:function(){return r()}})))},T8=T(c8)(x5||(x5=mn(["\n width: 100%;\n display: flex;\n align-items: center;\n position: relative;\n gap: 10px;\n"],["\n width: 100%;\n display: flex;\n align-items: center;\n position: relative;\n gap: 10px;\n"]))),D8=function(e){var n=e.media,t=g(0),r=t[0],o=t[1],i=g(!1),a=i[0],l=i[1];return n.length>0?c.createElement(T8,null,c.createElement(E8,{src:n[r],isOpen:a,close:function(){return l(!1)}}),c.createElement(p8,{src:n[r],openFullscreen:function(){l(!0)}}),c.createElement(k8,{media:n,selectedMedia:r,setSelectedMedia:o})):c.createElement(c.Fragment,null)};export{Ea as Accordion,aB as AsyncCreatableSelect,iB as AsyncSelect,Oa as Avatar,Ia as Badge,Ez as BadgeSize,_a as BadgeType,nl as Banner,Na as BannerType,aa as Body,hl as Button,ma as Caption,wl as Card,Qa as CardColor,Za as CardElevation,Xa as CardType,D8 as Carousel,VA as Chart,hH as Checkbox,QB as CheckboxStatus,cI as Chip,VN as ChipType,bI as CircularProgressBar,oI as CircularProgressBarType,FI as ClosableCard,F2 as ColumnDefType,bn as ComponentType,H1 as ConfirmationModal,oB as CreatableSelect,XW as DatePicker,BI as Drawer,bA as Dropdown,t8 as DropdownTabs,IB as EditableInput,dY as FileUploader,Tz as FloatingBadgeType,GY as GroupedList,ha as Headline,Ln as Icon,xn as IconBackground,ml as IconButton,bq as InlineMessage,TY as InlineMessageType,HF as InputCode,UI as InputHelper,cB as InputTelephone,uB as InputText,xX as MicroTag,v1 as Modal,s1 as ModalBody,x1 as ModalSearchable,cQ as MonthlyTab,L5 as NewTable,eH as NotificationBadge,z5 as PageEmptySet,IZ as Pagination,QQ as PaginationType,aJ as ProgressBar,ZQ as ProgressBarType,RY as Radio,FY as RadioGroup,nY as RadioStatus,o8 as ScrollableTabs,fJ as SegmentButton,rB as Select,MJ as ShortcutTip,XK as SidebarBadgeConfigType,bX as SidebarItem,Bn as Spinner,S1 as StepModal,O1 as StepModalBody,P1 as StepModalFooter,R1 as StepModalHeader,xJ as Stepper,U5 as Switch,OZ as Table,oX as Tag,TB as TextArea,i8 as ThemeProvider,TJ as Tip,rJ as TipType,sa as Title1,ca as Title2,ua as Title3,da as Title4,fa as Title5,pa as Title6,V0 as Toast,SJ as ToastType,BA as Tooltip,J0 as VerticalTabs,tH as WithBadge,vF as autocompleteYellow,PI as circularProgressBarPalette,In as isBWColor,Fn as isColor,Dn as isHexColor,An as isPaletteColor,Qz as isSimpleValue,Mn as parseDimension,On as pixelToNumber,aX as sidebarItemHeight,QW as timeConversionOptions,Y0 as toastPalette,yH as useCheckboxValue,JW as useFormattedDate,MY as useRadioValue,Oz as useSelectMultiValues,Dz as useSelectSimpleValue,Mz as useSelectValue,uQ as useTableValues,e1 as verticalTabsPalette};
62
+ function A2(e,n){return e?function(e){return"function"==typeof e&&(()=>{const n=Object.getPrototypeOf(e);return n.prototype&&n.prototype.isReactComponent})()}(t=e)||"function"==typeof t||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(t)?s.createElement(e,n):e:null;var t}var I2,F2,L2;!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SMALL=42]="SMALL",e[e.LARGE=56]="LARGE"}(I2||(I2={})),function(e){e.ACCESSOR="accessor",e.DISPLAY="display",e.GROUP="group",e.ACTION="action"}(F2||(F2={})),function(e){e.CHECKBOX="checkbox",e.TOGGLE="toggle",e.ROW_ACTIONS="row_actions",e.SETTINGS="settings"}(L2||(L2={}));var j2,z2,B2,H2,U2,W2,V2,Y2,q2,G2,K2,X2,Q2,Z2,J2,e3,n3,t3,r3,o3,i3,a3,l3,s3,c3,u3,d3,f3,p3,h3,m3,g3,y3,b3=v({}),v3=function(e){var n=e.children,t=e.defaultRowSize,r=c.useState(t||I2.UNSPECIFIED),o={rowSize:r[0],setRowSize:r[1]};return c.createElement(b3.Provider,{value:o},n)},x3=T.div(j2||(j2=mn(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),w3=T.span(z2||(z2=mn(["\n position: absolute;\n width: 24px;\n height: 16px;\n border-radius: 15px;\n opacity: ",";\n background-color: ",";\n cursor: ",";\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin: ","px;\n transition: 0.2s;\n background-color: ",";\n }\n"],["\n position: absolute;\n width: 24px;\n height: 16px;\n border-radius: 15px;\n opacity: ",";\n background-color: ",";\n cursor: ",";\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin: ","px;\n transition: 0.2s;\n background-color: ",";\n }\n"])),(function(e){return e.disabled?.3:1}),(function(e){return e.theme.palette.grey[300]}),(function(e){return e.disabled?"not-allowed":"pointer"}),12,12,2,(function(e){return e.theme.palette.white[100]})),k3=T.input(B2||(B2=mn(["\n opacity: 0;\n z-index: 1;\n border-radius: 15px;\n width: 24px;\n &:checked + "," {\n background-color: ",";\n\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin-left: 11px;\n transition: 0.2s;\n }\n }\n"],["\n opacity: 0;\n z-index: 1;\n border-radius: 15px;\n width: 24px;\n &:checked + "," {\n background-color: ",";\n\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin-left: 11px;\n transition: 0.2s;\n }\n }\n"])),w3,(function(e){var n=e.theme.palette;return e.disabled?n.grey[300]:n.blue[500]}),12,12),_3=function(e){var n=e.checked,t=void 0!==n&&n,r=e.disabled,o=void 0!==r&&r,i=e.onChange;return c.createElement(x3,null,c.createElement(k3,{type:"checkbox",checked:t,disabled:o,onChange:function(){return null==i?void 0:i(t)}}),c.createElement(w3,{disabled:o}))},C3=function(e){var n=e.theme,t=e.isHeader,r=e.isPopoverActive,o=e.isPinned,i=t?n.palette.grey[50]:n.palette.white[100];return{position:o?"sticky":void 0,backgroundColor:o?i:void 0,left:"left"===o?"0px":void 0,right:"right"===o?"0px":void 0,boxShadow:o?"-5px 0 5px -5px rgba(51, 51, 51, 0.15)":void 0,zIndex:r?2:1}},$3=T.div(H2||(H2=mn(["\n display: flex;\n align-items: center;\n padding: 8px;\n"],["\n display: flex;\n align-items: center;\n padding: 8px;\n"]))),S3=T(hl)(U2||(U2=mn(["\n font-size: 14px;\n &:hover {\n background-color: transparent;\n color: ",";\n }\n"],["\n font-size: 14px;\n &:hover {\n background-color: transparent;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.blue[500]})),E3=T(ml)(W2||(W2=mn(["\n font-size: 14px;\n color: ",";\n border-radius: 6px;\n &:hover {\n background-color: ",";\n color: ",";\n }\n &:active {\n background-color: ",";\n }\n"],["\n font-size: 14px;\n color: ",";\n border-radius: 6px;\n &:hover {\n background-color: ",";\n color: ",";\n }\n &:active {\n background-color: ",";\n }\n"])),(function(e){return e.theme.palette.grey[500]}),(function(e){return e.theme.palette.blue[100]}),(function(e){return e.theme.palette.blue[700]}),(function(e){return e.theme.palette.blue[200]})),T3=function(e){var n=e.dropdown,r=e.row,o=e.onOpen,i=e.onClose,a=p((function(){return c.createElement(E3,{icon:{icon:t,fixedWidth:!0}})}),[]),l=u((function(){return n.map((function(e){var n=e.onClick,t=un(e,["onClick"]);return cn({onClick:function(){return n(r)}},t)}))}),[n,r]);return c.createElement(bA,{placement:"right-start",renderTrigger:a,content:l,onOpen:o,onClose:function(){return null==i?void 0:i(!1)}})},D3=function(e){var n,t,r=e.actionType,o=e.row,i=e.isToggled,a=e.onActionChange,l=e.rowActions,s=e.column,d=e.maxWidth,f=e.minWidth,p=e.actionColumnWidth,h=M(),m=g(!1),y=m[0],b=m[1],v=function(e){b(e)},x=u((function(){return"function"==typeof l?l(o):l}),[o,l]),w=null===(n=null==x?void 0:x.dropdown)||void 0===n?void 0:n.tooltip,k=null===(t=null==x?void 0:x.dropdown)||void 0===t?void 0:t.items,_={width:p};switch(r){case L2.CHECKBOX:return c.createElement("div",{className:"DS-rt-td DS-tour-checkbox",style:{maxWidth:d,minWidth:f}},c.createElement($3,{style:cn(cn({},_),{paddingLeft:8})},c.createElement(M3,{value:o.getIsSelected(),onChange:function(){return o.toggleSelected()}})));case L2.TOGGLE:return c.createElement("div",{style:{maxWidth:d,minWidth:f}},c.createElement($3,{style:_},c.createElement(_3,{checked:i,onChange:function(){return null==a?void 0:a(o.id)}})));case L2.ROW_ACTIONS:return c.createElement("div",{style:cn({maxWidth:(null!=d?d:80)+16,minWidth:(null!=f?f:80)+16},C3({isHeader:!1,isPopoverActive:y,theme:h,isPinned:s.getIsPinned()}))},c.createElement($3,{style:_},(null==x?void 0:x.primary)&&(null==x?void 0:x.primary.map((function(e,n){var t;return c.createElement(BA,cn({key:n},null!==(t=e.tooltip)&&void 0!==t?t:zA,{showAfterSeconds:.5}),c.createElement(O3,{primary:e,row:o}))}))),c.createElement(BA,cn({},null!=w?w:zA,{showAfterSeconds:.5}),k&&c.createElement(T3,{dropdown:k,row:o,onOpen:v,onClose:v}))));default:return c.createElement(c.Fragment,null)}},M3=T(hH)(Y2||(Y2=mn(["\n ",";\n"],["\n ",";\n"])),(function(e){var n=e.value,t=e.theme;return!n&&D(V2||(V2=mn(["\n span {\n background-color: ",";\n }\n "],["\n span {\n background-color: ",";\n }\n "])),t.palette.white[100])})),O3=function(e){var n=e.primary,t=e.row,r=n.text,o=n.icon,i=n.onClick,a=n.color,l=n.className;return c.createElement(c.Fragment,null,r&&c.createElement(S3,{type:"text",text:r,color:a,className:l,onClick:function(){return i(t)}}),o&&c.createElement(E3,{icon:o,onClick:function(){return i(t)}}))},P3=T.div(q2||(q2=mn(["\n position: relative;\n"],["\n position: relative;\n"]))),R3=T.div(G2||(G2=mn(["\n position: absolute;\n z-index: 10;\n top: -16px;\n width: 100%;\n textarea {\n color: "," !important;\n width: 100%;\n min-width: 80px;\n }\n"],["\n position: absolute;\n z-index: 10;\n top: -16px;\n width: 100%;\n textarea {\n color: "," !important;\n width: 100%;\n min-width: 80px;\n }\n"])),(function(e){return e.theme.palette.black[80]})),N3=T.div(K2||(K2=mn(["\n position: absolute;\n z-index: 2;\n bottom: 2px;\n right: 6px;\n"],["\n position: absolute;\n z-index: 2;\n bottom: 2px;\n right: 6px;\n"]))),A3=T(Ln)(X2||(X2=mn(["\n cursor: pointer;\n font-size: 12px;\n margin: 2px;\n color: ",";\n"],["\n cursor: pointer;\n font-size: 12px;\n margin: 2px;\n color: ",";\n"])),(function(e){var n=e.theme;return e.confirm?n.palette.green[900]:n.palette.red[900]})),I3=function(e){var n=e.onChange,t=e.row,r=e.content,o=e.onBlur,i=g(null==r?void 0:r.toString()),a=i[0],l=i[1],s=Ce(p((function(e){e&&(null==n||n(a||"",t)),o()}),[n,t,a,o]),200);return c.createElement(R3,null,c.createElement(N3,null,c.createElement(A3,{icon:U,onClick:function(){return s(!0)},confirm:!0}),c.createElement(A3,{icon:I})),c.createElement(TB,{value:a,onChange:function(e){return l(e.target.value)},autoFocus:!0,initialHeight:"100px",onBlur:function(){return s()},onFocus:function(e){var n=e.target.value;e.target.value="",e.target.value=n}}))},F3=function(e){var n=e.hover,t=e.onChange,r=e.row,o=e.unitSymbol,i=e.content,a=g(!1),l=a[0],s=a[1];return c.createElement(P3,null,l?c.createElement(I3,{row:r,onChange:t,onBlur:function(){return s(!1)},content:i}):c.createElement(vB,{hasMeasureUnit:!!o},c.createElement(uB,{value:null==i?void 0:i.toString(),isTransparent:!n,actionIcon:cn({icon:W},n?{}:{visibility:"hidden"}),onFocus:function(){return s(!0)}})))},L3=function(e){var n=e.content,t=e.isEditable,r=e.tag,o=e.unitSymbol,i=e.headline,a=e.leadingIcon,l=e.avatar,s=e.actionType,u=e.row,d=e.rowSize,f=e.onActionChange,h=e.isToggled,m=e.hover,g=e.onChange,y=e.trailingMicroTag,b=e.minWidth,v=e.rowActions,x=e.context,w=e.onRowClick,k=e.maxWidth,_=e.align,C=e.disableClick,$=e.actionColumnWidth,S=x.column,E=!t&&"function"==typeof w&&!C,T=p((function(e){return E&&w(e)}),[E,w]);if(s){var D=b?b+1:void 0,M=k?k+1:void 0;return c.createElement(D3,{row:u,actionType:s,isToggled:h,onActionChange:f,rowActions:v,column:S,maxWidth:M,minWidth:D,actionColumnWidth:$})}return c.createElement(dB,{className:"DS-rt-td",role:"gridcell",minWidth:b,maxWidth:k,onClick:function(){return T(u)},cellHasOnClick:E,style:{overflow:t?"visible":void 0,zIndex:t?"auto":void 0},align:_},c.createElement(fB,null,a&&c.createElement(pB,null,c.createElement(Ln,cn({},a))),l&&c.createElement(hB,null,c.createElement(Oa,cn({},l))),c.createElement(mB,{hasMeasureUnit:!!o},t?c.createElement(F3,{hover:m,onChange:g,row:u,unitSymbol:o,content:n}):c.createElement(c.Fragment,null,c.createElement(xB,{unitSymbol:o},c.createElement(gB,{truncate:!!d,headline:i},n),o&&c.createElement(yB,{headline:i},o)),r&&c.createElement(oX,cn({},r)))),y&&c.createElement(bB,null,c.createElement(xX,{type:y.type,text:y.text}))))},j3=function(e){var n,t=e.isActionCell,r=e.minWidth,o=e.maxWidth,i=e.align,a=null!==(n=t?32:null!=r?r:o)&&void 0!==n?n:50;return c.createElement("div",{className:"DS-rt-tr",style:{maxWidth:o,minWidth:r}},c.createElement(B3,{className:"DS-rt-td",align:i},c.createElement(z3,{speed:2,height:26,viewBox:"0 0 "+a+" 36",animate:!0},c.createElement("rect",{x:"0",y:"0",rx:"5",height:"36",width:a}))))},z3=T(tZ)(Q2||(Q2=mn(["\n width: auto;\n align-items: center;\n"],["\n width: auto;\n align-items: center;\n"]))),B3=T.div(J2||(J2=mn(["\n display: flex;\n align-items: center;\n flex: 1;\n\n margin-inline: 8px;\n\n ",";\n"],["\n display: flex;\n align-items: center;\n flex: 1;\n\n margin-inline: 8px;\n\n ",";\n"])),(function(e){var n=e.align;return D(Z2||(Z2=mn(["\n justify-content: ",";\n "],["\n justify-content: ",";\n "])),"center"===n?"center":"left"===n?"flex-start":"flex-end")})),H3=function(e){var n=e.cell,t=e.row,r=e.hover,o=e.rowSize,i=e.isLoading,a=e.onRowClick,l=e.actionColumnWidth,s=function(e,n){return u((function(){var t,r=e.getValue(),o=!("string"==typeof r||"number"==typeof r),i=e.column.columnDef,a=i.actionType,l=i.rowActions,s=i.onActionChange,c=i.toggles,u=a&&(null==c?void 0:c.some((function(e){return e===n.id}))),d=e.column.columnDef.unitSymbol,f="function"==typeof l?l(n):l;return{isEditable:!!e.column.columnDef.isEditable,isToggled:!!u,actionType:a,onActionChange:s,content:o?null===(t=r)||void 0===t?void 0:t.content:r,unitSymbol:o&&r&&r.unitSymbol||d,values:r,minWidth:e.column.columnDef.minWidth,maxWidth:e.column.columnDef.maxWidth,rowActions:f,align:e.column.columnDef.align||"left"}}),[e,n])}(n,t),d=s.values,f=un(s,["values"]);if(i)return c.createElement(j3,{isActionCell:!!f.actionType,minWidth:f.minWidth,maxWidth:f.maxWidth,align:f.align});var p=n.column.columnDef.customCell,h=n.column.columnDef.disableClick;if(p){var m=f.maxWidth,g=f.minWidth,y=f.align;return c.createElement(U3,{className:"DS-rt-td",style:{maxWidth:m,minWidth:g},align:y,onClick:function(){return!h&&(null==a?void 0:a(t))}},A2(p(t,!!r),n.getContext()))}return c.createElement(L3,cn({context:n.getContext(),key:n.id,row:t,hover:r,rowSize:o,onRowClick:a},d,f,{onChange:n.column.columnDef.onChange,disableClick:h,actionColumnWidth:l}))},U3=T.div(n3||(n3=mn(["\n height: 100%;\n display: flex;\n align-items: center;\n width: 100%;\n ",";\n /* margin-inline: 8px; */\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n width: 100%;\n ",";\n /* margin-inline: 8px; */\n"])),(function(e){var n=e.align;return D(e3||(e3=mn(["\n justify-content: ",";\n "],["\n justify-content: ",";\n "])),"center"===n?"center":"left"===n?"flex-start":"flex-end")})),W3=T.div(o3||(o3=mn(["\n box-shadow: ",";\n transition: box-shadow 200ms ease;\n ","\n ","\n"],["\n box-shadow: ",";\n transition: box-shadow 200ms ease;\n ","\n ","\n"])),(function(e){var n=e.mouseHover,t=e.theme;return n?"0px 3px 6px rgba(51, 51, 51, 0.15), 0px 2px 4px rgba(51, 51, 51, 0.12)":"0px 1px "+t.palette.grey[100]}),(function(e){var n=e.size;return n&&D(t3||(t3=mn(["\n height: ","px;\n "],["\n height: ","px;\n "])),n)}),(function(e){var n=e.selected,t=e.theme;return n&&D(r3||(r3=mn(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),t.palette.blue[50])})),V3=function(e){var n=e.row,t=e.isLoading,r=e.onRowClick,o=e.rowHighlightColor,i=e.defaultRowSize,a=e.actionColumnWidth,l=e.isRowHighlighted,s=y(b3).rowSize,u=g(),d=u[0],f=u[1];return c.createElement(W3,{className:"DS-rt-tr-group",role:"rowgroup",mouseHover:!t&&d,onMouseEnter:function(){return f(!0)},onMouseLeave:function(){return f(!1)},size:s||i,selected:!t&&n.getIsSelected(),style:{cursor:r?"pointer":"auto"}},c.createElement(Y3,{className:"DS-rt-tr",role:"row",style:{height:s||i},isRowHighlighted:!!l&&l(n),rowHighlightColor:o},n.getVisibleCells().map((function(e,o){return c.createElement(H3,{key:o,cell:e,row:n,hover:d,rowSize:s,isLoading:t,onRowClick:r,actionColumnWidth:a})}))))},Y3=T.div(a3||(a3=mn(["\n ",";\n font-size: 14px;\n color: ",";\n"],["\n ",";\n font-size: 14px;\n color: ",";\n"])),(function(e){var n=e.isRowHighlighted,t=e.rowHighlightColor,r=e.theme;return n&&D(i3||(i3=mn(["\n background-color: ",";\n border-bottom: 1px solid #b0b9bd; // Grey 3\n "],["\n background-color: ",";\n border-bottom: 1px solid #b0b9bd; // Grey 3\n "])),t||r.palette.primary[100])}),(function(e){return e.theme.palette.black[80]})),q3=function(e){var n=e.rows,t=e.rowSize,r=e.isLoading,o=e.onRowClick,i=e.bodyHeight,a=e.rowHighlightColor,l=e.pageIndex,s=e.actionColumnWidth,u=e.disableScrollX,d=e.isRowHighlighted,p=f(null);return m((function(){p.current&&p.current.scrollTo({top:0})}),[l]),c.createElement("div",{ref:p,className:"DS-rt-tbody",style:{height:i,overflowX:u?"hidden":"auto"}},n.map((function(e){return c.createElement(V3,{key:e.id,row:e,defaultRowSize:t,isLoading:r,onRowClick:o,rowHighlightColor:a,actionColumnWidth:s,isRowHighlighted:d})})))},G3=T.div(l3||(l3=mn(["\n max-height: ","px;\n visibility: ",";\n transition: max-height 400ms ease;\n padding-bottom: ",";\n background-color: ",";\n position: relative;\n z-index: 11;\n"],["\n max-height: ","px;\n visibility: ",";\n transition: max-height 400ms ease;\n padding-bottom: ",";\n background-color: ",";\n position: relative;\n z-index: 11;\n"])),(function(e){var n=e.shown,t=e.allSelectedShown;return n?t?94:48:0}),(function(e){return e.shown?"unset":"hidden"}),(function(e){return e.shown?"16px":"0"}),(function(e){return e.theme.palette.white[100]})),K3=T.div(s3||(s3=mn(["\n //non è in palette\n background-color: #e8f7fe;\n color: ",";\n display: flex;\n // width: 100%;\n align-items: center;\n justify-content: space-between;\n padding: 8px 8px;\n font-size: 14px;\n line-height: 21px;\n"],["\n //non è in palette\n background-color: #e8f7fe;\n color: ",";\n display: flex;\n // width: 100%;\n align-items: center;\n justify-content: space-between;\n padding: 8px 8px;\n font-size: 14px;\n line-height: 21px;\n"])),(function(e){return e.theme.palette.black[80]})),X3=T.div(c3||(c3=mn(["\n //non è in palette\n background-color: #e8f7fe;\n color: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px;\n font-size: 14px;\n line-height: 21px;\n gap: 8px;\n"],["\n //non è in palette\n background-color: #e8f7fe;\n color: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px;\n font-size: 14px;\n line-height: 21px;\n gap: 8px;\n"])),(function(e){return e.theme.palette.black[80]})),Q3=T.div(u3||(u3=mn(["\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n"],["\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n"]))),Z3=T.span(d3||(d3=mn([""],[""]))),J3=function(e){var n=e.selectedRowData,r=e.bulkBarActions,o=e.allSelectedCTA,i=e.renderBulkActions,a=n.length,l=f(null),s=f(null),d=g(),h=d[0],y=d[1],b=g(),v=b[0],x=b[1],w=g(!1),k=w[0],_=w[1];E((function(){var e,n,t,r;y(null===(n=null===(e=null==l?void 0:l.current)||void 0===e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.width),x(null===(r=null===(t=null==s?void 0:s.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===r?void 0:r.width)}),[]),m((function(){var e=Ce((function(){var e,n;y(null===(n=null===(e=null==l?void 0:l.current)||void 0===e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.width),x((function(e){var n,t,r,o,i,a;return(null===(t=null===(n=null==s?void 0:s.current)||void 0===n?void 0:n.getBoundingClientRect())||void 0===t?void 0:t.width)&&(null===(o=null===(r=null==s?void 0:s.current)||void 0===r?void 0:r.getBoundingClientRect())||void 0===o?void 0:o.width)>(e||0)?null===(a=null===(i=null==s?void 0:s.current)||void 0===i?void 0:i.getBoundingClientRect())||void 0===a?void 0:a.width:e}))}),200);return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),m((function(){_((h||0)-(v||0)<200)}),[h,v]);var C=p((function(){return c.createElement(E3,{icon:{icon:t,fixedWidth:!0}})}),[]),$=u((function(){return(null==r?void 0:r.slice(1,-1).map((function(e){var t=e.onClick,r=e.color;return{onClick:function(){return t(n)},text:e.text,color:r,icon:e.iconLeft}})))||[]}),[r,n]);return c.createElement(G3,{ref:l,shown:!!a&&a>0,allSelectedShown:!!o,id:"DS-bulk-bar-wrapper"},c.createElement(K3,{id:"DS-checkbox-table-bulk-bar"},c.createElement(Z3,null,a+" "+(1===a?"selezionato":"selezionati")),r&&r.length>0?c.createElement(Q3,{ref:s},!k||r.length<3?r.map((function(e,t){return c.createElement(hl,cn({key:t},e,{onClick:function(){return e.onClick(n)}}))})):c.createElement(c.Fragment,null,c.createElement(hl,cn({},r[0],{onClick:function(){return r[0].onClick(n)}})),c.createElement(bA,{placement:"bottom-end",renderTrigger:C,content:$}),c.createElement(hl,cn({},r[r.length-1],{onClick:function(){return r[r.length-1].onClick(n)}})))):c.createElement(Q3,{ref:s},null==i?void 0:i(n))),!!o&&c.createElement(X3,null,null==o?void 0:o.description,c.createElement(hl,{text:null==o?void 0:o.text,onClick:null==o?void 0:o.onClick,type:"text"})))},e4=function(e){var n=e.footerGroup;return c.createElement("div",null,n.map((function(e){return c.createElement("div",{key:e.id},e.headers.map((function(e){return c.createElement("div",{key:e.id},e.isPlaceholder?null:A2(e.column.columnDef.footer,e.getContext()))})))})))},n4=T.div(f3||(f3=mn(["\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n"],["\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n"]))),t4=T.div(p3||(p3=mn(["\n overflow-y: auto;\n overflow-x: hidden;\n height: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n max-height: 100%;\n\n /* CSS relativo al body scrollable */\n .DS-ReactTable-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n max-height: 100%;\n }\n\n .DS-ReactTable {\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n overflow: hidden;\n }\n\n .DS-ReactTable .DS-rt-table {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n width: 100%;\n border-collapse: collapse;\n overflow-x: auto;\n overflow-y: hidden;\n }\n\n .DS-ReactTable .DS-rt-thead {\n -webkit-box-flex: 1;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: default;\n }\n\n .DS-ReactTable .DS-rt-thead .DS-rt-th {\n position: relative;\n }\n .DS-ReactTable .DS-rt-thead .DS-rt-td {\n line-height: normal;\n position: relative;\n }\n\n .DS-ReactTable .DS-rt-thead .DS-rt-resizable-header:last-child {\n overflow: hidden;\n }\n .DS-ReactTable .DS-rt-thead .DS-rt-resizable-header-content {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .DS-ReactTable .DS-rt-thead.DS-header .DS-rt-th:after {\n content: '';\n display: block;\n position: absolute;\n }\n\n .DS-ReactTable .DS-rt-tbody {\n padding-bottom: 5px;\n display: flex;\n flex-direction: column;\n overflow: auto;\n }\n\n .DS-ReactTable .DS-rt-tbody .DS-rt-tr-group {\n flex: none;\n }\n\n .DS-ReactTable .DS-rt-tr-group {\n -webkit-box-flex: 1;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n cursor: pointer;\n }\n\n .DS-ReactTable .DS-rt-tr {\n flex: 1 0;\n display: inline-flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-content: center;\n justify-content: center;\n align-items: center;\n }\n\n .DS-ReactTable .DS-rt-th {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n white-space: nowrap;\n vertical-align: middle;\n align-self: center;\n overflow: hidden;\n }\n\n .DS-ReactTable .DS-rt-td {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n white-space: break-spaces;\n text-overflow: ellipsis;\n align-self: center;\n /* overflow: hidden; */\n }\n"],["\n overflow-y: auto;\n overflow-x: hidden;\n height: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n max-height: 100%;\n\n /* CSS relativo al body scrollable */\n .DS-ReactTable-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n max-height: 100%;\n }\n\n .DS-ReactTable {\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n overflow: hidden;\n }\n\n .DS-ReactTable .DS-rt-table {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n width: 100%;\n border-collapse: collapse;\n overflow-x: auto;\n overflow-y: hidden;\n }\n\n .DS-ReactTable .DS-rt-thead {\n -webkit-box-flex: 1;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: default;\n }\n\n .DS-ReactTable .DS-rt-thead .DS-rt-th {\n position: relative;\n }\n .DS-ReactTable .DS-rt-thead .DS-rt-td {\n line-height: normal;\n position: relative;\n }\n\n .DS-ReactTable .DS-rt-thead .DS-rt-resizable-header:last-child {\n overflow: hidden;\n }\n .DS-ReactTable .DS-rt-thead .DS-rt-resizable-header-content {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .DS-ReactTable .DS-rt-thead.DS-header .DS-rt-th:after {\n content: '';\n display: block;\n position: absolute;\n }\n\n .DS-ReactTable .DS-rt-tbody {\n padding-bottom: 5px;\n display: flex;\n flex-direction: column;\n overflow: auto;\n }\n\n .DS-ReactTable .DS-rt-tbody .DS-rt-tr-group {\n flex: none;\n }\n\n .DS-ReactTable .DS-rt-tr-group {\n -webkit-box-flex: 1;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n cursor: pointer;\n }\n\n .DS-ReactTable .DS-rt-tr {\n flex: 1 0;\n display: inline-flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-content: center;\n justify-content: center;\n align-items: center;\n }\n\n .DS-ReactTable .DS-rt-th {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n white-space: nowrap;\n vertical-align: middle;\n align-self: center;\n overflow: hidden;\n }\n\n .DS-ReactTable .DS-rt-td {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n white-space: break-spaces;\n text-overflow: ellipsis;\n align-self: center;\n /* overflow: hidden; */\n }\n"]))),r4=T.div(h3||(h3=mn(["\n height: 100%;\n position: relative;\n border-spacing: 0 2px;\n border: 0;\n td,\n th {\n padding: 0;\n }\n"],["\n height: 100%;\n position: relative;\n border-spacing: 0 2px;\n border: 0;\n td,\n th {\n padding: 0;\n }\n"]))),o4=T(Ln)(m3||(m3=mn(["\n height: 16px;\n width: 16px !important;\n padding: 2px;\n &:hover {\n color: ",";\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n }\n"],["\n height: 16px;\n width: 16px !important;\n padding: 2px;\n &:hover {\n color: ",";\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n }\n"])),(function(e){return e.theme.palette.grey[900]}),(function(e){return e.theme.palette.grey[100]})),i4=T.div(g3||(g3=mn(["\n display: flex;\n justify-content: center;\n text-align: center;\n width: 100%;\n margin-bottom: 18px;\n"],["\n display: flex;\n justify-content: center;\n text-align: center;\n width: 100%;\n margin-bottom: 18px;\n"]))),a4=function(e){var n,t=e.columns,r=e.isSelectable,o=e.toggles,i=e.isTogglesSortable,a=e.onTogglesChange,l=e.rowActions,s=e.enableSettings,c=e.settingsDropdownConfig,u=e.preSettedTableSettings,d=e.actionColumnWidth,f={accessor:(e,n)=>"function"==typeof e?{...n,accessorFn:e}:{...n,accessorKey:e},display:e=>e,group:e=>e},p=(null==u?void 0:u.orderColumns)?hn([],t,!0).sort((function(e,n){var t,r,o=null===(t=u.orderColumns)||void 0===t?void 0:t.indexOf(String(e.key)),i=null===(r=u.orderColumns)||void 0===r?void 0:r.indexOf(String(n.key));return void 0!==o&&void 0!==i?o-i:0})):t,h=hn(hn(hn(hn([],r?[{columnDefType:F2.ACTION,key:L2.CHECKBOX,columnDef:{actionType:L2.CHECKBOX,enableSorting:!1,maxWidth:32}}]:[],!0),o?[{columnDefType:F2.ACTION,key:L2.TOGGLE,columnDef:{actionType:L2.TOGGLE,enableSorting:i,toggles:o,sortingFn:function(e,n){return function(e,n,t){var r=Te(t,e.id),o=Te(t,n.id);return r?1:o?-1:0}(e,n,o)},onActionChange:function(e){return null==a?void 0:a(m(e,o))},maxWidth:32}}]:[],!0),p,!0),l||s?[{ColumnDefType:F2.ACTION,key:L2.ROW_ACTIONS,columnDef:{actionType:L2.ROW_ACTIONS,enableSorting:!1,rowActions:l,enableSettings:s,settingsDropdownConfig:c,headerTooltip:null!==(n=null==c?void 0:c.settingsTooltip)&&void 0!==n?n:{},enablePinning:!0,maxWidth:d,minWidth:80,align:"center"}}]:[],!0),m=function(e,n){return Se(n,(function(n){return n===e}))?Ee(n,(function(n){return n!==e})):hn(hn([],n,!0),[e],!1)};return h.map((function(e){switch(e.columnDefType){default:case F2.DISPLAY:return f.display(cn({id:String(e.key)},e.columnDef));case F2.ACCESSOR:return f.accessor(e.key,e.columnDef);case F2.GROUP:return f.group(cn({},e.columnDef));case F2.ACTION:return f.accessor(e.key,e.columnDef)}}))},l4=function(e){switch(e){default:case!1:return"asc";case"asc":return"desc";case"desc":return!1}};!function(e){e[e.FIRST=0]="FIRST",e[e.SECOND=1]="SECOND",e[e.THIRD=2]="THIRD"}(y3||(y3={}));var s4,c4,u4,d4,f4,p4,h4,m4,g4,y4=T(Ea)(s4||(s4=mn(["\n margin-top: 16px;\n margin-left: 8px;\n .body {\n padding: 0 0;\n }\n .header {\n height: ",";\n }\n"],["\n margin-top: 16px;\n margin-left: 8px;\n .body {\n padding: 0 0;\n }\n .header {\n height: ",";\n }\n"])),Ca.m),b4=T.h6(c4||(c4=mn(["\n font-size: 12px;\n color: ",";\n font-weight: 500;\n line-height: 18px;\n padding: 0;\n margin: 0;\n"],["\n font-size: 12px;\n color: ",";\n font-weight: 500;\n line-height: 18px;\n padding: 0;\n margin: 0;\n"])),(function(e){return e.theme.palette.black})),v4=T.div(u4||(u4=mn(["\n margin-top: 12px;\n margin-left: 0;\n margin-right: 0;\n"],["\n margin-top: 12px;\n margin-left: 0;\n margin-right: 0;\n"]))),x4=T.div(d4||(d4=mn(["\n height: 1px;\n background-color: ",";\n margin-left: 24px;\n margin-right: 24px;\n"],["\n height: 1px;\n background-color: ",";\n margin-left: 24px;\n margin-right: 24px;\n"])),(function(e){return e.theme.palette.grey[300]})),w4=function(e){var n=e.table,t=e.notRemovableColumns,r=e.onChangeTableSettings,o=f(null),i=f(null),a=function(e){var n=[],t=[],r=[];return e.forEach((function(e){var o=!!e.columnDef.actionType;switch(e.id){case L2.TOGGLE:t[y3.FIRST]=e;break;case L2.CHECKBOX:t[y3.THIRD]=e;break;case L2.ROW_ACTIONS:n[y3.FIRST]=e}o||r.push(e)})),{rightActions:n,leftActions:t,accessorColumns:r}}(n.getAllColumns()),l=a.accessorColumns,s=a.rightActions,u=a.leftActions,d=g(l),h=d[0],m=d[1],y=g(!1),b=y[0],v=y[1],x=function(e){var t=u.map((function(e){return String(e.id)})),r=s.map((function(e){return String(e.id)}));n.setColumnOrder(hn(hn(hn([],t,!0),e,!0),r,!0))},w=p((function(){return h.filter((function(e){return e.getIsVisible()})).length>1}),[h]),k=p((function(e,n){var t=h.filter((function(e){return!e.getIsVisible()})).map((function(e){return e.id}));n&&t.push(e),null==r||r("notVisibleColumns",{notVisibleColumns:n?t:t.filter((function(n){return n!==e}))})}),[h,r]),_=h.map((function(e,n){return c.createElement("div",{key:n,id:e.id,onDragEnter:function(){return function(e){if(i.current=e,null!==i.current&&null!==o.current){var n=hn([],h,!0),t=n[o.current];n.splice(o.current,1),n.splice(i.current,0,t),o.current=i.current,i.current=null,m(n),x(n.map((function(e){return String(e.id)})))}}(n)}},c.createElement(S4,{isRemovable:w()&&!(null==t?void 0:t.includes(String(e.id))),draggable:!0,onDragStart:function(e,t){return function(e,n,t){v(!0),o.current=n,e.dataTransfer.setDragImage(t,0,0)}(e,n,t)},onDragOver:function(e){return e.preventDefault()},onDragEnd:function(){v(!1),null==r||r("orderColumns",{orderColumns:h.map((function(e){return String(e.id)}))})},column:e,onChangeTableSettings:k}),b&&o.current===n&&c.createElement(x4,null))}));return c.createElement(v4,null,_)},k4=function(e){var n=e.table,t=e.visibleColumnsLabel,r=e.notRemovableColumns,o=e.onChangeTableSettings;return c.createElement(y4,{renderTitle:function(){return c.createElement(b4,null,t)},renderBody:function(){return c.createElement(w4,{table:n,preSettedColumns:["subject","category"],notRemovableColumns:r,onChangeTableSettings:o})}})},_4=T.div(f4||(f4=mn(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n"]))),C4=T.div(p4||(p4=mn(["\n margin-right: 4px;\n"],["\n margin-right: 4px;\n"]))),$4=T(ml)(h4||(h4=mn(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.palette.grey[300]})),S4=function(e){var n,t=e.column,r=e.draggable,o=e.onDragStart,i=e.onDragOver,a=e.onDragEnd,l=e.isRemovable,s=e.onChangeTableSettings,u=f(null);return c.createElement(_4,{ref:u,onDragOver:i},c.createElement(C4,{draggable:r,onDragStart:function(e){u.current&&o(e,u.current)},onDragEnd:a},c.createElement($4,{icon:{icon:je}})),c.createElement(hH,{value:t.getIsVisible(),text:null!==(n=t.columnDef.headerTitle)&&void 0!==n?n:String(t.columnDef.header),onClick:function(){t.toggleVisibility(),null==s||s(String(t.id),t.getIsVisible())},disabled:!l&&t.getIsVisible()}))},E4=T(FY)(m4||(m4=mn(["\n margin-top: 12px;\n"],["\n margin-top: 12px;\n"])));!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SMALL=1]="SMALL",e[e.LARGE=2]="LARGE"}(g4||(g4={}));var T4,D4,M4,O4,P4,R4,N4,A4,I4,F4,L4,j4,z4,B4,H4,U4,W4,V4,Y4,q4,G4,K4,X4,Q4,Z4,J4,e5,n5,t5,r5,o5,i5,a5,l5,s5,c5,u5,d5,f5,p5,h5,m5,g5,y5,b5,v5,x5,w5=function(e){var n=e.rowHeightLabel,t=e.unspecifiedRowsLabel,r=e.smallRowsLabel,o=e.largeRowsLabel,i=e.isDisabled,a=e.dimensionRow,l=e.onChangeTableSettings,s=y(b3).setRowSize,u=function(e){switch(e){default:case g4.UNSPECIFIED:return s(I2.UNSPECIFIED),I2.UNSPECIFIED;case g4.SMALL:return s(I2.SMALL),I2.SMALL;case g4.LARGE:return s(I2.LARGE),I2.LARGE}},d=function(){switch(a){default:case I2.UNSPECIFIED:return g4.UNSPECIFIED;case I2.SMALL:return g4.SMALL;case I2.LARGE:return g4.LARGE}},f=[{text:t,large:!1,disabled:i||!1},{text:r,large:!1,disabled:i||!1},{text:o,large:!1,disabled:i||!1}];return c.createElement(y4,{renderTitle:function(){return c.createElement(b4,null,n)},renderBody:function(){return c.createElement(E4,{spacing:"xs",initialSelection:d(),options:f,onChange:function(e){null==l||l("dimensionRow",{dimensionRow:u(e)})}})}})},k5=T(ml)(T4||(T4=mn(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.palette.blue[700]})),_5=T.div(D4||(D4=mn(["\n padding: 16px 24px;\n margin: 0;\n max-height: 220px;\n overflow: auto;\n"],["\n padding: 16px 24px;\n margin: 0;\n max-height: 220px;\n overflow: auto;\n"]))),C5=T.div(M4||(M4=mn(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),$5=T.div(O4||(O4=mn(["\n font-size: 14px;\n line-height: 21px;\n font-weight: 500;\n font-style: normal;\n"],["\n font-size: 14px;\n line-height: 21px;\n font-weight: 500;\n font-style: normal;\n"]))),S5=T.div(P4||(P4=mn(["\n background-color: ",";\n height: 24px;\n width: 24px;\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n"],["\n background-color: ",";\n height: 24px;\n width: 24px;\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n"])),(function(e){return e.theme.palette.grey[50]})),E5=function(e){var n=e.header,t=e.notRemovableColumns,r=e.dimensionRow,o=e.onChangeTableSettings,i=function(e){var n,t,r,o,i,a,l,s,c,u,d,f,p=e.column,h=(0,e.getContext)().table,m=0===(0,h.getRowModel)().rows.length,g=p.columnDef;return{table:h,isTableEmpty:m,displaySettingsLabel:null!==(t=null===(n=g.settingsDropdownConfig)||void 0===n?void 0:n.displaySettingsLabel)&&void 0!==t?t:"Impostazioni visualizzazione",visibleColumnsLabel:null!==(o=null===(r=g.settingsDropdownConfig)||void 0===r?void 0:r.visibleColumnsLabel)&&void 0!==o?o:"Colonne visibili",rowHeightLabel:null!==(a=null===(i=g.settingsDropdownConfig)||void 0===i?void 0:i.rowHeightLabel)&&void 0!==a?a:"Densità righe",unspecifiedRowsLabel:null!==(s=null===(l=g.settingsDropdownConfig)||void 0===l?void 0:l.unspecifiedRowsLabel)&&void 0!==s?s:"Standard",smallRowsLabel:null!==(u=null===(c=g.settingsDropdownConfig)||void 0===c?void 0:c.smallRowsLabel)&&void 0!==u?u:"Righe strette",largeRowsLabel:null!==(f=null===(d=g.settingsDropdownConfig)||void 0===d?void 0:d.largeRowsLabel)&&void 0!==f?f:"Righe larghe"}}(n),a=i.displaySettingsLabel,l=i.isTableEmpty,s=i.largeRowsLabel,u=i.rowHeightLabel,d=i.smallRowsLabel,f=i.table,p=i.unspecifiedRowsLabel,h=i.visibleColumnsLabel;return c.createElement(_5,null,c.createElement(C5,null,c.createElement(S5,null,c.createElement(k5,{icon:{icon:fe,color:"grey",size:"sm"}})),c.createElement($5,null,a)),c.createElement(k4,{table:f,visibleColumnsLabel:h,notRemovableColumns:t,onChangeTableSettings:o}),c.createElement(w5,{rowHeightLabel:u,unspecifiedRowsLabel:p,smallRowsLabel:d,largeRowsLabel:s,isDisabled:l,dimensionRow:r,onChangeTableSettings:o}))},T5=function(e){var n=e.header,t=e.onOpen,r=e.onClose,o=e.notRemovableColumns,i=e.dimensionRow,a=e.onChangeTableSettings,l=p((function(){return c.createElement(k5,{icon:{icon:ze,size:"sm"}})}),[]);return c.createElement(bA,{placement:"left-start",renderTrigger:l,onOpen:t,onClose:function(){return null==r?void 0:r(!1)},renderContent:function(){return c.createElement(E5,{header:n,notRemovableColumns:o,dimensionRow:i,onChangeTableSettings:a})}})},D5=T.span(R4||(R4=mn(["\n font-size: 12px;\n line-height: 18px;\n color: ",";\n"],["\n font-size: 12px;\n line-height: 18px;\n color: ",";\n"])),(function(e){return e.theme.palette.grey[500]})),M5=T.div(F4||(F4=mn(["\n border-width: 0px 1px 1px 0px;\n border-style: solid;\n border-color: ",";\n background-color: ",";\n height: ","px;\n ","\n ",";\n ",";\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n"],["\n border-width: 0px 1px 1px 0px;\n border-style: solid;\n border-color: ",";\n background-color: ",";\n height: ","px;\n ","\n ",";\n ",";\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n"])),(function(e){return e.theme.palette.grey[100]}),(function(e){return e.theme.palette.grey[50]}),(function(e){return e.size||I2.SMALL}),(function(e){return e.sortable&&D(N4||(N4=mn(["\n cursor: pointer;\n user-select: none;\n "],["\n cursor: pointer;\n user-select: none;\n "])))}),(function(e){var n=e.isActionColumn,t=e.minWidth;return t&&D(A4||(A4=mn(["\n min-width: ","px;\n "],["\n min-width: ","px;\n "])),t+(n?16:0))}),(function(e){var n=e.isActionColumn,t=e.maxWidth;return t&&D(I4||(I4=mn(["\n max-width: ","px;\n "],["\n max-width: ","px;\n "])),t+(n?16:0))})),O5=T.span(L4||(L4=mn(["\n margin: 8px;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n"],["\n margin: 8px;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n"]))),P5=T.div(j4||(j4=mn(["\n display: flex;\n align-items: center;\n padding: 8px;\n"],["\n display: flex;\n align-items: center;\n padding: 8px;\n"]))),R5=function(e){var n=e.header,t=e.onOpen,r=e.onClose,o=e.forceHideSettings,i=e.rowSelection,a=e.setRowSelection,l=e.notRemovableColumns,s=e.dimensionRow,d=e.onChangeTableSettings,f=e.isLoading,p=e.actionColumnWidth,h=M(),m=function(e){return u((function(){var n=e.column,t=(0,e.getContext)().table,r=n.columnDef,o=r.actionType,i=r.rowActions,a=r.enableSettings,l="function"==typeof i?i().headerTitle:null==i?void 0:i.headerTitle,s=!!a,c=n.getCanSort(),u=!!n.getIsSorted();return{actionType:o,isSortedDesc:!1===n.getIsSorted()?null:n.getIsSorted(),isSorted:u,toggleSortable:L2.TOGGLE&&c,table:t,canSort:c,headerTitle:l,allColumns:e.getContext().table.getAllColumns(),isSettingsEnabled:s}}),[e])}(n),g=m.actionType,y=m.isSorted,b=m.isSortedDesc,v=m.toggleSortable,x=m.table,w=m.headerTitle,k=m.isSettingsEnabled,_={width:p},C="desc"===b;switch(g){case L2.TOGGLE:return c.createElement(P5,{style:_},c.createElement(_3,{checked:y}),v&&c.createElement(o4,{color:y?h.palette.grey[900]:h.palette.grey[200],rotation:C?180:void 0,icon:Z}));case L2.CHECKBOX:return c.createElement(P5,{style:cn(cn({},_),{paddingLeft:8}),id:"DS-checkbox-table-header"},c.createElement(hH,{value:x.getIsAllPageRowsSelected()||(i&&i.length>0?QB.INDETERMINATE:QB.UNCHECKED),onChange:function(){a&&!x.getIsAllPageRowsSelected()&&a([]),(x.getIsAllPageRowsSelected()||i&&0===i.length)&&x.toggleAllPageRowsSelected()},disabled:f}));case L2.ROW_ACTIONS:return c.createElement(P5,{style:_},w&&c.createElement(D5,null,w),k&&!o&&c.createElement(T5,{onClose:r,header:n,onOpen:t,notRemovableColumns:l,dimensionRow:s,onChangeTableSettings:d}));default:return c.createElement(c.Fragment,null)}},N5=function(e){var n=e.header,t=e.headerSize,r=e.onSort,o=e.customSorted,i=e.setCustomSorted,a=e.forceHideSettings,l=e.rowSelection,s=e.setRowSelection,u=e.notRemovableColumns,d=e.dimensionRow,f=e.onChangeTableSettings,h=e.isLoading,m=e.actionColumnWidth,y=function(e,n){var t=e.column,r=t.columnDef.actionType,o=t.getCanSort(),i=!!t.getIsSorted(),a=!1===t.getIsSorted()?null:t.getIsSorted();return{column:t,actionType:r,canSort:o,isSorted:i,isSortedDesc:a,minWidth:r===L2.ROW_ACTIONS?n:t.columnDef.minWidth,maxWidth:t.columnDef.maxWidth,tooltip:t.columnDef.headerTooltip}}(n,m),b=y.column,v=y.actionType,x=y.canSort,w=y.isSorted,k=y.isSortedDesc,_=y.minWidth,C=y.tooltip,$=y.maxWidth,S=M(),E="desc"===k||"desc"===o,T=w||!!o,D=g(!1),O=D[0],P=D[1],R=function(e){P(e)},N=p((function(e){var t,a;r?x&&(null==i||i(((t={})[n.id]=l4(o),t)),r({sortBy:n.id,direction:l4(o)}),n.getContext().table.setPageIndex(1)):null===(a=b.getToggleSortingHandler())||void 0===a||a(e)}),[r,b,n,i,o,x]);return c.createElement(M5,{className:"DS-rt-th",size:t,minWidth:_,maxWidth:$,sortable:x,onClick:N,isActionColumn:v===L2.ROW_ACTIONS,style:cn({},C3({isHeader:!0,theme:S,isPinned:b.getIsPinned(),isPopoverActive:O}))},c.createElement(A5,cn({},null!=C?C:zA,{showAfterSeconds:.5}),v?c.createElement(R5,{header:n,onOpen:R,onClose:R,forceHideSettings:a,rowSelection:l,setRowSelection:s,notRemovableColumns:u,dimensionRow:d,onChangeTableSettings:f,isLoading:h,actionColumnWidth:m}):c.createElement(O5,null,c.createElement(D5,null,n.isPlaceholder?null:A2(n.column.columnDef.header,n.getContext())),x&&c.createElement(o4,{rotation:E?180:void 0,icon:Z,color:T?S.palette.grey[900]:S.palette.grey[200]}))))},A5=T(BA)(z4||(z4=mn(["\n width: 100%;\n"],["\n width: 100%;\n"]))),I5=function(e){var n=e.headerGroup,t=e.headerSize,r=e.onSort,o=e.forceHideSettings,i=e.rowSelection,a=e.setRowSelection,l=e.preSettedTableSettings,s=e.onChangeTableSettings,u=e.notRemovableColumns,d=e.isLoading,f=e.actionColumnWidth,p=g(),h=p[0],m=p[1];return c.createElement(F5,{className:"DS-rt-thead DS-header"},n.map((function(e){return c.createElement("div",{key:e.id,className:"DS-rt-tr"},e.headers.map((function(e){var n=null==h?void 0:h[e.id];return c.createElement(N5,{key:e.id,header:e,headerSize:t,onSort:r,customSorted:n,setCustomSorted:m,forceHideSettings:o,rowSelection:i,setRowSelection:a,notRemovableColumns:u,dimensionRow:null==l?void 0:l.dimensionRow,onChangeTableSettings:s,isLoading:d,actionColumnWidth:f})})))})))},F5=T.div(B4||(B4=mn([""],[""]))),L5=function(e){var n,t,r=e.data,o=e.columns,i=e.isSelectable,a=e.toggles,l=e.onTogglesChange,u=e.headerSize,d=e.isTogglesSortable,f=void 0!==d&&d,h=e.sortable,y=void 0===h||h,b=e.sortDescFirst,v=void 0===b||b,x=e.enableSettings,w=void 0===x||x,k=e.settingsDropdownConfig,_=e.rowActions,C=e.bulkActions,$=e.isLoading,S=e.allSelectedCTA,E=e.noPagination,T=void 0===E||E,D=e.pageSize,M=void 0===D?10:D,O=e.listSize,P=e.paginationPreviousText,R=void 0===P?"Indietro":P,N=e.paginationNextText,A=void 0===N?"Avanti":N,I=e.onPaginationChange,F=e.uniqueId,L=e.onSort,j=e.renderEmptyState,z=e.onRowClick,B=e.bodyHeight,H=e.totalPages,U=e.rowHighlightColor,W=e.rowSelection,V=e.onRowSelection,Y=e.forceHideSettings,q=void 0!==Y&&Y,G=e.renderBulkActions,K=e.preSettedTableSettings,X=e.onChangeTableSettings,Q=e.notRemovableColumns,Z=e.rowSize,J=e.actionColumnWidth,ee=void 0===J?80:J,ne=e.disableScrollX,te=e.resetPageIndex,re=e.isRowHighlighted,oe=a4({columns:o,isSelectable:i,toggles:a,isTogglesSortable:f,onTogglesChange:l,rowActions:_,enableSettings:w,settingsDropdownConfig:k,preSettedTableSettings:K,actionColumnWidth:ee}),ie=function(e){var n=g(e||{left:[],right:[]});return{columnPinning:n[0],setColumnPinning:n[1]}}({right:[L2.ROW_ACTIONS]}),ae=ie.columnPinning,le=ie.setColumnPinning,se=function(e){var n=g({pageIndex:1,pageSize:e}),t=n[0];return{pageIndex:t.pageIndex,pageSize:t.pageSize,setPagination:n[1]}}(M),ce=se.pageSize,ue=se.pageIndex,de=se.setPagination,fe=c.useMemo((function(){return{pageIndex:ue,pageSize:ce}}),[ue,ce]),pe=xe(I);m((function(){var e;null===(e=pe.current)||void 0===e||e.call(pe,fe)}),[fe,pe]);var he=p((function(){return null==W?void 0:W.reduce((function(e,n){var t;return cn(cn({},e),((t={})[n]=!0,t))}),{})}),[W]),me={columnVisibility:c.useMemo((function(){return(null==K?void 0:K.notVisibleColumns)?null==K?void 0:K.notVisibleColumns.reduce((function(e,n){return n&&(e[n]=!1),e}),{}):{}}),[null==K?void 0:K.notVisibleColumns])},ge=function(e){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=s.useState((()=>({current:R2(n)}))),[r,o]=s.useState((()=>t.current.initialState));return t.current.setOptions((n=>({...n,...e,state:{...r,...e.state},onStateChange:n=>{o(n),null==e.onStateChange||e.onStateChange(n)}}))),t.current}(cn(cn({data:r,columns:oe,enableSorting:y,sortDescFirst:v,getCoreRowModel:e=>q1((()=>[e.options.data]),(n=>{const t={rows:[],flatRows:[],rowsById:{}},r=function(n,o,i){void 0===o&&(o=0);const a=[];for(let s=0;s<n.length;s++){const c=N2(e,e._getRowId(n[s],s,i),n[s],s,o,void 0,null==i?void 0:i.id);var l;t.flatRows.push(c),t.rowsById[c.id]=c,a.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(n[s],s),null!=(l=c.originalSubRows)&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return a};return t.rows=r(n),t}),{key:"development"===process.env.NODE_ENV&&"getRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>q1((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((n,t)=>{if(!t.rows.length||null==n||!n.length)return t;const r=e.getState().sorting,o=[],i=r.filter((n=>{var t;return null==(t=e.getColumn(n.id))?void 0:t.getCanSort()})),a={};i.forEach((n=>{const t=e.getColumn(n.id);t&&(a[n.id]={sortUndefined:t.columnDef.sortUndefined,invertSorting:t.columnDef.invertSorting,sortingFn:t.getSortingFn()})}));const l=e=>{const n=[...e];return n.sort(((e,n)=>{for(let r=0;r<i.length;r+=1){var t;const o=i[r],l=a[o.id],s=null!=(t=null==o?void 0:o.desc)&&t;if(l.sortUndefined){const t=void 0===e.getValue(o.id),r=void 0===n.getValue(o.id);if(t||r)return t&&r?0:t?l.sortUndefined:-l.sortUndefined}let c=l.sortingFn(e,n,o.id);if(0!==c)return s&&(c*=-1),l.invertSorting&&(c*=-1),c}return e.index-n.index})),n.forEach((e=>{var n;o.push(e),null!=(n=e.subRows)&&n.length&&(e.subRows=l(e.subRows))})),n};return{rows:l(t.rows),flatRows:o,rowsById:t.rowsById}}),{key:"development"===process.env.NODE_ENV&&"getSortedRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getPaginationRowModel:e=>q1((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((n,t)=>{if(!t.rows.length)return t;const{pageSize:r,pageIndex:o}=n;let{rows:i,flatRows:a,rowsById:l}=t;const s=r*o,c=s+r;let u;i=i.slice(s,c),u=e.options.paginateExpandedRows?{rows:i,flatRows:a,rowsById:l}:function(e){const n=[],t=e=>{var r;n.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(t)};return e.rows.forEach(t),{rows:n,flatRows:e.flatRows,rowsById:e.rowsById}}({rows:i,flatRows:a,rowsById:l}),u.flatRows=[];const d=e=>{u.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return u.rows.forEach(d),u}),{key:"development"===process.env.NODE_ENV&&"getPaginationRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable}}),pageCount:O,state:cn({pagination:fe,columnPinning:ae},W&&{rowSelection:he()}),onColumnPinningChange:le,onPaginationChange:de,manualPagination:!0,getRowId:function(e){return String(e[F])},manualSorting:!!L},V&&{onRowSelectionChange:function(e){var n;"function"==typeof e&&V(Object.keys(e(null!==(n=he())&&void 0!==n?n:{})))}}),{initialState:me})),ye=ge.getHeaderGroups,be=ge.getRowModel,ve=ge.getFooterGroups,we=ge.previousPage,ke=ge.nextPage,_e=ge.setPageIndex,Ce=ge.getIsAllRowsSelected;m((function(){de((function(e){return cn(cn({},e),{pageIndex:1})}))}),[te,de]);var $e=Ce(),Se=!$&&j&&0===r.length;return c.createElement(n4,null,c.createElement(v3,{defaultRowSize:(null===(n=K)||void 0===n?void 0:n.dimensionRow)||Z},c.createElement(t4,null,c.createElement(J3,{renderBulkActions:G,bulkBarActions:C,selectedRowData:null!=W?W:[],allSelectedCTA:$e?S:void 0}),c.createElement(r4,{className:"DS-ReactTable DS-rt-table"},c.createElement(I5,{headerGroup:ye(),headerSize:u,onSort:L,forceHideSettings:q,rowSelection:W,setRowSelection:V,preSettedTableSettings:K,onChangeTableSettings:X,notRemovableColumns:Q,isLoading:!!$,actionColumnWidth:ee}),Se?c.createElement(c.Fragment,null,j()):c.createElement(q3,{pageIndex:ue,rows:be().rows,rowSize:(null===(t=K)||void 0===t?void 0:t.dimensionRow)||Z,isLoading:$,onRowClick:z,bodyHeight:B,rowHighlightColor:U,actionColumnWidth:ee,disableScrollX:ne,isRowHighlighted:re}),c.createElement(e4,{footerGroup:ve()}),!T&&!Se&&c.createElement(i4,null,c.createElement(IZ,{changePageAction:function(e){return _e(e)},nextPageAction:ke,prevPageAction:we,nextText:A,prevText:R,listSize:O||r.length,totalPages:H,pageSize:ce,currentPage:ue}))))))},j5=T.div(H4||(H4=mn(["\n width: 90vw;\n margin: 0 auto;\n text-align: center;\n @media screen and (min-width: 768px) {\n width: 376px;\n }\n .icon {\n background-color: ",";\n width: 176px;\n height: 176px;\n border-radius: 50%;\n color: ",";\n margin: 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 76px;\n }\n h5 {\n margin-top: 2rem;\n margin-bottom: 0;\n font-weight: 500;\n font-size: 20px;\n line-height: 30px;\n color: ",";\n }\n p {\n margin-top: 0.5rem;\n margin-bottom: 1.5rem;\n font-weight: 400;\n font-size: 14px;\n line-height: 21px;\n color: ",";\n }\n"],["\n width: 90vw;\n margin: 0 auto;\n text-align: center;\n @media screen and (min-width: 768px) {\n width: 376px;\n }\n .icon {\n background-color: ",";\n width: 176px;\n height: 176px;\n border-radius: 50%;\n color: ",";\n margin: 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 76px;\n }\n h5 {\n margin-top: 2rem;\n margin-bottom: 0;\n font-weight: 500;\n font-size: 20px;\n line-height: 30px;\n color: ",";\n }\n p {\n margin-top: 0.5rem;\n margin-bottom: 1.5rem;\n font-weight: 400;\n font-size: 14px;\n line-height: 21px;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.red[50]}),(function(e){return e.theme.palette.red[500]}),(function(e){return e.theme.palette.black[100]}),(function(e){return e.theme.palette.black[80]})),z5=function(e){var n=e.action,t=e.icon,r=e.text,o=e.title,i=u((function(){return n?c.createElement(hl,{onClick:function(){return n.action()},iconLeft:n.icon?n.icon:void 0,text:n.text,color:"green"}):null}),[n]);return c.createElement(j5,null,t&&c.createElement("div",{className:"icon"},c.createElement(Ln,cn({},t))),o&&c.createElement("h5",null,o),r&&c.createElement("p",null,r),i)},B5=T.div(U4||(U4=mn(["\n cursor: pointer;\n position: relative;\n width: 24px;\n height: 12px;\n background: #b0b9bd; // TODO: New palette -> grey 300\n border-radius: 10px;\n padding: 2px;\n transition: 300ms all;\n\n &:before {\n transition: 300ms all;\n content: '';\n position: absolute;\n width: 12px;\n height: 12px;\n border-radius: 35px;\n top: 50%;\n left: 2px;\n background: white;\n transform: translate(0, -50%);\n }\n"],["\n cursor: pointer;\n position: relative;\n width: 24px;\n height: 12px;\n background: #b0b9bd; // TODO: New palette -> grey 300\n border-radius: 10px;\n padding: 2px;\n transition: 300ms all;\n\n &:before {\n transition: 300ms all;\n content: '';\n position: absolute;\n width: 12px;\n height: 12px;\n border-radius: 35px;\n top: 50%;\n left: 2px;\n background: white;\n transform: translate(0, -50%);\n }\n"]))),H5=T.input(W4||(W4=mn(["\n opacity: 0;\n position: absolute;\n &:checked + "," {\n background: ",";\n\n &:before {\n transform: translate(12px, -50%);\n }\n }\n"],["\n opacity: 0;\n position: absolute;\n &:checked + "," {\n background: ",";\n\n &:before {\n transform: translate(12px, -50%);\n }\n }\n"])),B5,(function(e){var n=e.theme,t=e.color;return n.palette[t][500]})),U5=function(e){var n=e.checked,t=e.color,r=void 0===t?"blue":t,o=e.onChange;return c.createElement(c.Fragment,null,c.createElement(H5,{type:"checkbox",checked:n,color:r}),c.createElement(B5,{onClick:function(){return o(!n)}}))},W5=T.span(V4||(V4=mn(["\n background: ",";\n width: 100%;\n height: 4px;\n margin-top: 6px;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"],["\n background: ",";\n width: 100%;\n height: 4px;\n margin-top: 6px;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"])),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:"transparent"}),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[500]}),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[900]})),V5=T.span(Y4||(Y4=mn(["\n font-family: 'Inter UI', sans-serif;\n font-style: normal;\n font-size: 14px;\n font-weight: 500;\n line-height: 21px;\n\n align-items: center;\n display: flex;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"],["\n font-family: 'Inter UI', sans-serif;\n font-style: normal;\n font-size: 14px;\n font-weight: 500;\n line-height: 21px;\n\n align-items: center;\n display: flex;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"])),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[500]}),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[900]})),Y5=function(e){var n=e.active,t=e.handleClick,r=e.tabRef,o=e.text,i=e.tooltip,a=e.badge,l=e.customBadge,s=c.createElement(q5,{ref:null==r?void 0:r(),onClick:t},c.createElement(G5,null,c.createElement(K5,cn({className:"item-badge",isDisabled:!0},a),c.createElement(V5,{active:n},o)),null!=l?l:null),c.createElement(W5,{active:n}));return i?c.createElement(BA,cn({},i),s):s},q5=T.div(q4||(q4=mn(["\n cursor: pointer;\n flex-shrink: 0;\n position: relative;\n padding: 0;\n display: flex;\n flex-direction: column;\n"],["\n cursor: pointer;\n flex-shrink: 0;\n position: relative;\n padding: 0;\n display: flex;\n flex-direction: column;\n"]))),G5=T.div(G4||(G4=mn(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),K5=T(tH)(K4||(K4=mn(["\n height: 8px;\n min-width: 8px;\n"],["\n height: 8px;\n min-width: 8px;\n"]))),X5=T.div(Q4||(Q4=mn(["\n box-sizing: border-box;\n height: 31px;\n alignment-baseline: baseline;\n display: flex;\n white-space: nowrap;\n margin-top: 3px;\n width: 100%;\n\n ",";\n\n & > *:first-child {\n padding-left: ","px;\n }\n\n & > *:last-child {\n padding-right: ","px;\n }\n\n & > * + * {\n margin-left: ","px;\n }\n"],["\n box-sizing: border-box;\n height: 31px;\n alignment-baseline: baseline;\n display: flex;\n white-space: nowrap;\n margin-top: 3px;\n width: 100%;\n\n ",";\n\n & > *:first-child {\n padding-left: ","px;\n }\n\n & > *:last-child {\n padding-right: ","px;\n }\n\n & > * + * {\n margin-left: ","px;\n }\n"])),(function(e){return e.hidden&&D(X4||(X4=mn(["\n visibility: hidden;\n position: absolute;\n "],["\n visibility: hidden;\n position: absolute;\n "])))}),(function(e){return e.lateralPadding}),(function(e){return e.lateralPadding}),(function(e){return e.distance})),Q5=T(X5)(Z4||(Z4=mn(["\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n"],["\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n"]))),Z5=function(e){var n=e.active;return c.createElement(Y5,{active:n,text:c.createElement(J5,{icon:Be,fixedWidth:!0})})},J5=T(Ln)(J4||(J4=mn(["\n height: 21px;\n"],["\n height: 21px;\n"]))),e8=function(e){var n=e.active,t=e.tabs,r=p((function(){return c.createElement(Z5,{active:n})}),[n]),o=p((function(e){return c.createElement(c.Fragment,null,t.map((function(n,t){var r=n.active,o=n.handleClick,i=n.text;return c.createElement(bA.Item,{key:t,text:i,active:r,onClick:function(){o&&o(),e()}})})))}),[t]);return c.createElement(n8,{placement:"bottom-end",fullWidth:!0,renderTrigger:r,renderContent:o})},n8=T(bA)(e5||(e5=mn(["\n display: block;\n"],["\n display: block;\n"]))),t8=function(e){var n=e.className,t=e.distance,r=void 0===t?15:t,o=e.lateralPadding,i=void 0===o?23:o,a=e.tabs,l=function(){var e=we(),n=e[0],t=e[1].width,r=g(0),o=r[0],i=r[1];return ke((function(){return i(t)}),250,[t]),{elementsWrapperRef:n,wrapperWidth:o}}(),s=l.elementsWrapperRef,d=l.wrapperWidth,f=g(0)[1],p=a.length,h=u((function(){return Array.from(Array(p),(function(){return c.createRef()}))}),[p]),m=u((function(){return h.map((function(e){return function(){return f((function(e){return e+1})),e}}))}),[h]),y=function(e){var n=e.distance,t=e.lateralPadding,r=e.tabsLength,o=e.tabsRefs,i=e.wrapperWidth;return u((function(){for(var e,a=0,l=i-2*t;a!==r&&l>0;){var s=null===(e=o[a].current)||void 0===e?void 0:e.offsetWidth;s&&l-(s+n)>0?(a++,l-=s+n):l=-1}return{visibleCount:a}}),[n,t,r,o,i])}({distance:r,tabsLength:p,wrapperWidth:d,tabsRefs:h,lateralPadding:i}).visibleCount,b=u((function(){return a.map((function(e,n){return c.createElement(Y5,cn({key:n,tabRef:m[n]},e))}))}),[m,a]),v=u((function(){return a.slice(0,y).map((function(e,n){return c.createElement(Y5,cn({key:n},e))}))}),[a,y]),x=u((function(){return a.slice(y)}),[a,y]),w=0!==x.length,k=x.some((function(e){return e.active})),_=0===d;return c.createElement(c.Fragment,null,c.createElement(r8,{className:n,distance:r,lateralPadding:i,hidden:!_},b),c.createElement(X5,{className:n,distance:r,lateralPadding:i,hidden:_,ref:s},v,w&&c.createElement(e8,{active:k,tabs:x})))},r8=T(Q5)(n5||(n5=mn(["\n overflow-x: hidden;\n"],["\n overflow-x: hidden;\n"]))),o8=function(e){var n=e.className,t=e.distance,r=void 0===t?15:t,o=e.lateralPadding,i=void 0===o?23:o,a=e.tabs,l=u((function(){return a.map((function(e,n){return c.createElement(Y5,cn({key:n},e))}))}),[a]);return c.createElement(Q5,{className:n,distance:r,lateralPadding:i},l)},i8=function(e){var n=e.children,t=e.theme;return c.createElement(R,{theme:t},c.createElement(c.Fragment,null,n))},a8=new Map([["jpg","img"],["jpeg","img"],["png","img"],["gif","img"],["mp4","video"],["webm","video"],["ogg","video"],["3gp","video"]]),l8=function(e){var n=e.src,t=e.className,r=e.showVideoControls,o=void 0===r||r;return function(e){var n=new URL(e).pathname.split(".")[1];return"video"===a8.get(n)}(n)?c.createElement("video",{controls:o,controlsList:"nodownload",src:n,className:t}):c.createElement("img",{src:n,className:t})},s8=T.div(t5||(t5=mn(["\n display: flex;\n flex-direction: row;\n align-items: center;\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n"]))),c8=T.div(r5||(r5=mn(["\n display: flex;\n flex-direction: column;\n"],["\n display: flex;\n flex-direction: column;\n"]))),u8=T(l8)(o5||(o5=mn(["\n border-radius: 10px;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n"],["\n border-radius: 10px;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n"]))),d8=T(ml)(i5||(i5=mn(["\n position: absolute;\n color: ",";\n top: 2%;\n right: 2%;\n font-size: 24px;\n user-select: none;\n text-shadow: 0 0 3px ",";\n :active {\n filter: brightness(65%);\n }\n > svg > path {\n stroke: ",";\n stroke-width: 15;\n }\n"],["\n position: absolute;\n color: ",";\n top: 2%;\n right: 2%;\n font-size: 24px;\n user-select: none;\n text-shadow: 0 0 3px ",";\n :active {\n filter: brightness(65%);\n }\n > svg > path {\n stroke: ",";\n stroke-width: 15;\n }\n"])),(function(e){return e.theme.palette.grey[800]}),(function(e){return e.theme.palette.white[100]}),(function(e){return e.theme.palette.white[100]})),f8=T(s8)(a5||(a5=mn(["\n width: 100%;\n"],["\n width: 100%;\n"]))),p8=function(e){var n=e.src,t=e.openFullscreen;return c.createElement(f8,null,c.createElement(u8,{src:n}),c.createElement(d8,{icon:{icon:o},onClick:t}))},h8=T.li(l5||(l5=mn(["\n display: flex;\n cursor: pointer;\n min-width: calc(25% - 8px);\n max-width: 33%;\n"],["\n display: flex;\n cursor: pointer;\n min-width: calc(25% - 8px);\n max-width: 33%;\n"]))),m8=T(l8)(c5||(c5=mn(["\n border-radius: 10%;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n ","\n"],["\n border-radius: 10%;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n ","\n"])),(function(e){return e.isSelected&&D(s5||(s5=mn(["\n filter: brightness(65%);\n "],["\n filter: brightness(65%);\n "])))})),g8=c.forwardRef((function(e,n){var t=e.src,r=e.isSelected,o=e.onClick;return c.createElement(h8,{onClick:o,ref:n},c.createElement(m8,{isSelected:r,src:t,showVideoControls:!1}))})),y8=T(s8)(u5||(u5=mn(["\n position: relative;\n display: flex;\n width: 70%;\n align-items: center;\n"],["\n position: relative;\n display: flex;\n width: 70%;\n align-items: center;\n"]))),b8=T.ul(f5||(f5=mn(["\n overflow-x: scroll;\n scroll-snap-type: x;\n display: flex;\n gap: 10px;\n height: fit-content;\n padding: 0;\n margin: 0;\n\n /* remove scrollbar */\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n background: transparent;\n width: 0;\n height: 0;\n }\n\n ","\n"],["\n overflow-x: scroll;\n scroll-snap-type: x;\n display: flex;\n gap: 10px;\n height: fit-content;\n padding: 0;\n margin: 0;\n\n /* remove scrollbar */\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n background: transparent;\n width: 0;\n height: 0;\n }\n\n ","\n"])),(function(e){return e.mediaCount<3&&D(d5||(d5=mn(["\n justify-content: center;\n "],["\n justify-content: center;\n "])))})),v8=T(ml)(p5||(p5=mn(["\n user-select: none;\n position: absolute;\n color: ",";\n font-size: 24px;\n :active {\n filter: brightness(65%);\n }\n"],["\n user-select: none;\n position: absolute;\n color: ",";\n font-size: 24px;\n :active {\n filter: brightness(65%);\n }\n"])),(function(e){return e.theme.palette.grey[800]})),x8=T(v8)(h5||(h5=mn(["\n right: -32px;\n"],["\n right: -32px;\n"]))),w8=T(v8)(m5||(m5=mn(["\n left: -32px;\n"],["\n left: -32px;\n"]))),k8=function(e){var n=e.media,t=e.selectedMedia,r=e.setSelectedMedia,o=f([]),l=p((function(e){r(e),function(e,n){var t;null===(t=n.current[e])||void 0===t||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}(e,o)}),[r]),s=p((function(e){l(function(e,n,t){return(n+e+("back"===t?-1:1))%n}(t,n.length,e))}),[t,n.length,l]);return c.createElement(y8,null,c.createElement(b8,{mediaCount:n.length},n.map((function(e,n){return c.createElement(g8,{key:n,src:e,isSelected:t===n,onClick:function(){return l(n)},ref:function(e){return o.current[n]=e}})}))),c.createElement(x8,{onClick:function(){return s("forward")},icon:{icon:i}}),c.createElement(w8,{onClick:function(){return s("back")},icon:{icon:a}}))},_8=T(v1)(g5||(g5=mn(["\n width: fit-content;\n > div {\n padding: 20px;\n }\n"],["\n width: fit-content;\n > div {\n padding: 20px;\n }\n"]))),C8=T(ml)(y5||(y5=mn(["\n position: absolute;\n color: ",";\n top: 5px;\n right: 5px;\n font-size: 24px;\n user-select: none;\n background-color: ",";\n border-radius: 5px;\n"],["\n position: absolute;\n color: ",";\n top: 5px;\n right: 5px;\n font-size: 24px;\n user-select: none;\n background-color: ",";\n border-radius: 5px;\n"])),(function(e){return e.theme.palette.grey[800]}),(function(e){return e.theme.palette.white[100]})),$8=T.div(b5||(b5=mn(["\n margin-right: auto;\n margin-left: auto;\n width: fit-content;\n"],["\n margin-right: auto;\n margin-left: auto;\n width: fit-content;\n"]))),S8=T(l8)(v5||(v5=mn(["\n max-width: 90vw;\n max-height: 90vh;\n min-width: 50vw;\n min-height: 50vh;\n object-fit: contain;\n"],["\n max-width: 90vw;\n max-height: 90vh;\n min-width: 50vw;\n min-height: 50vh;\n object-fit: contain;\n"]))),E8=function(e){var n=e.src,t=e.isOpen,r=e.close;return c.createElement(c.Fragment,null,c.createElement(_8,{allowClose:!0,isOpen:t,onActionClose:function(){return r()}},c.createElement($8,null,c.createElement(S8,{src:n})),c.createElement(C8,{icon:{icon:l},onClick:function(){return r()}})))},T8=T(c8)(x5||(x5=mn(["\n width: 100%;\n display: flex;\n align-items: center;\n position: relative;\n gap: 10px;\n"],["\n width: 100%;\n display: flex;\n align-items: center;\n position: relative;\n gap: 10px;\n"]))),D8=function(e){var n=e.media,t=g(0),r=t[0],o=t[1],i=g(!1),a=i[0],l=i[1];return n.length>0?c.createElement(T8,null,c.createElement(E8,{src:n[r],isOpen:a,close:function(){return l(!1)}}),c.createElement(p8,{src:n[r],openFullscreen:function(){l(!0)}}),c.createElement(k8,{media:n,selectedMedia:r,setSelectedMedia:o})):c.createElement(c.Fragment,null)};export{Ea as Accordion,aB as AsyncCreatableSelect,iB as AsyncSelect,Oa as Avatar,Ia as Badge,Ez as BadgeSize,_a as BadgeType,nl as Banner,Na as BannerType,aa as Body,hl as Button,ma as Caption,wl as Card,Qa as CardColor,Za as CardElevation,Xa as CardType,D8 as Carousel,VA as Chart,hH as Checkbox,QB as CheckboxStatus,cI as Chip,VN as ChipType,bI as CircularProgressBar,oI as CircularProgressBarType,FI as ClosableCard,F2 as ColumnDefType,bn as ComponentType,H1 as ConfirmationModal,oB as CreatableSelect,XW as DatePicker,BI as Drawer,bA as Dropdown,t8 as DropdownTabs,IB as EditableInput,dY as FileUploader,Tz as FloatingBadgeType,GY as GroupedList,ha as Headline,Ln as Icon,xn as IconBackground,ml as IconButton,bq as InlineMessage,TY as InlineMessageType,HF as InputCode,UI as InputHelper,cB as InputTelephone,uB as InputText,xX as MicroTag,v1 as Modal,s1 as ModalBody,x1 as ModalSearchable,cQ as MonthlyTab,L5 as NewTable,eH as NotificationBadge,z5 as PageEmptySet,IZ as Pagination,QQ as PaginationType,aJ as ProgressBar,ZQ as ProgressBarType,RY as Radio,FY as RadioGroup,nY as RadioStatus,o8 as ScrollableTabs,fJ as SegmentButton,rB as Select,MJ as ShortcutTip,XK as SidebarBadgeConfigType,bX as SidebarItem,Bn as Spinner,S1 as StepModal,O1 as StepModalBody,P1 as StepModalFooter,R1 as StepModalHeader,xJ as Stepper,U5 as Switch,OZ as Table,oX as Tag,TB as TextArea,i8 as ThemeProvider,TJ as Tip,rJ as TipType,sa as Title1,ca as Title2,ua as Title3,da as Title4,fa as Title5,pa as Title6,V0 as Toast,SJ as ToastType,BA as Tooltip,J0 as VerticalTabs,tH as WithBadge,vF as autocompleteYellow,PI as circularProgressBarPalette,In as isBWColor,Fn as isColor,Dn as isHexColor,An as isPaletteColor,Qz as isSimpleValue,Mn as parseDimension,On as pixelToNumber,aX as sidebarItemHeight,QW as timeConversionOptions,Y0 as toastPalette,yH as useCheckboxValue,JW as useFormattedDate,MY as useRadioValue,Oz as useSelectMultiValues,Dz as useSelectSimpleValue,Mz as useSelectValue,uQ as useTableValues,e1 as verticalTabsPalette};
63
63
  //# sourceMappingURL=index.esm.js.map