asma-core-ui 3.1.25 → 3.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,4 +35,4 @@ import*as e from"react";import t,{forwardRef as o,createElement as r,useState as
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
37
  */
38
- "production"===process.env.NODE_ENV?Aa.exports=function(){if(Da)return Ba;Da=1;var e=t,o=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,l={},c=null,d=null;for(s in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)n.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:o,type:e,key:c,ref:d,props:l,_owner:i.current}}return Ba.Fragment=r,Ba.jsx=s,Ba.jsxs=s,Ba}():Aa.exports=(Fa||(Fa=1,"production"!==process.env.NODE_ENV&&function(){var e=t,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator",y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];!function(e,t,o){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",o=o.concat([r]));var n=o.map((function(e){return String(e)}));n.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,n)}(0,e,o)}var b;function v(e){return e.displayName||"Context"}function w(e){if(null==e)return null;if("number"==typeof e.tag&&x("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 n:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return v(e)+".Consumer";case s:return v(e._context)+".Provider";case c:return function(e,t,o){var r=e.displayName;if(r)return r;var n=t.displayName||t.name||"";return""!==n?o+"("+n+")":o}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:w(e.type)||"Memo";case h:var o=e,f=o._payload,m=o._init;try{return w(m(f))}catch{return null}}return null}b=Symbol.for("react.module.reference");var j,k,C,N,_,S,T,E=Object.assign,O=0;function M(){}M.__reactDisabledLog=!0;var I,R=y.ReactCurrentDispatcher;function z(e,t,o){if(void 0===I)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);I=r&&r[1]||""}return"\n"+I+e}var L,$=!1,P="function"==typeof WeakMap?WeakMap:Map;function D(e,t){if(!e||$)return"";var o,r=L.get(e);if(void 0!==r)return r;$=!0;var n,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,n=R.current,R.current=null,function(){if(0===O){j=console.log,k=console.info,C=console.warn,N=console.error,_=console.group,S=console.groupCollapsed,T=console.groupEnd;var e={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}O++}();try{if(t){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){o=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){o=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){o=e}e()}}catch(t){if(t&&o&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=o.stack.split("\n"),c=s.length-1,d=l.length-1;c>=1&&d>=0&&s[c]!==l[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==l[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==l[d]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&L.set(e,u),u}}while(c>=1&&d>=0);break}}}finally{$=!1,R.current=n,function(){if(0==--O){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:E({},e,{value:j}),info:E({},e,{value:k}),warn:E({},e,{value:C}),error:E({},e,{value:N}),group:E({},e,{value:_}),groupCollapsed:E({},e,{value:S}),groupEnd:E({},e,{value:T})})}O<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",h=p?z(p):"";return"function"==typeof e&&L.set(e,h),h}function F(e,t,o){if(null==e)return"";if("function"==typeof e)return D(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return z(e);switch(e){case d:return z("Suspense");case u:return z("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,o){return D(e,!1)}(e.render);case p:return F(e.type,t,o);case h:var n=e,i=n._payload,a=n._init;try{return F(a(i),t,o)}catch{}}return""}L=new P;var A=Object.prototype.hasOwnProperty,B={},V=y.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,o=F(e.type,e._source,t?t.type:null);V.setExtraStackFrame(o)}else V.setExtraStackFrame(null)}var H=Array.isArray;function W(e){return H(e)}function U(e){return""+e}function K(e){if(function(e){try{return U(e),!1}catch{return!0}}(e))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",(t=e,"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object")),U(e);var t}var G,Y,X,J=y.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};X={};var Q=function(e,t,r,n,i,a,s){var l={$$typeof:o,type:e,key:t,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};var ee,te=y.ReactCurrentOwner,oe=y.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,o=F(e.type,e._source,t?t.type:null);oe.setExtraStackFrame(o)}else oe.setExtraStackFrame(null)}function ne(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}function ie(){if(te.current){var e=w(te.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ee=!1;var ae={};function se(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var o=function(e){var t=ie();if(!t){var o="string"==typeof e?e:e.displayName||e.name;o&&(t="\n\nCheck the top-level render call using <"+o+">.")}return t}(t);if(!ae[o]){ae[o]=!0;var r="";e&&e._owner&&e._owner!==te.current&&(r=" It was passed a child from "+w(e._owner.type)+"."),re(e),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,r),re(null)}}}function le(e,t){if("object"==typeof e)if(W(e))for(var o=0;o<e.length;o++){var r=e[o];ne(r)&&se(r,t)}else if(ne(e))e._store&&(e._store.validated=!0);else if(e){var n=function(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof n&&n!==e.entries)for(var i,a=n.call(e);!(i=a.next()).done;)ne(i.value)&&se(i.value,t)}}function ce(e,t,r,m,g,y){var v,j=!("string"!=typeof(v=e)&&"function"!=typeof v&&v!==n&&v!==a&&v!==i&&v!==d&&v!==u&&v!==f&&("object"!=typeof v||null===v||v.$$typeof!==h&&v.$$typeof!==p&&v.$$typeof!==s&&v.$$typeof!==l&&v.$$typeof!==c&&v.$$typeof!==b&&void 0===v.getModuleId));if(!j){var k="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(k+=" 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 C,N=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);k+=N||ie(),null===e?C="null":W(e)?C="array":void 0!==e&&e.$$typeof===o?(C="<"+(w(e.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):C=typeof e,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,k)}var _=function(e,t,o,r,n){var i,a,s,l,c={},d=null,u=null;for(i in void 0!==o&&(K(o),d=""+o),function(e){if(A.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(K(t.key),d=""+t.key),function(e){if(A.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(u=t.ref,function(e,t){if("string"==typeof e.ref&&J.current&&t&&J.current.stateNode!==t){var o=w(J.current.type);X[o]||(x('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',w(J.current.type),e.ref),X[o]=!0)}}(t,n)),t)A.call(t,i)&&!Z.hasOwnProperty(i)&&(c[i]=t[i]);if(e&&e.defaultProps){var p=e.defaultProps;for(i in p)void 0===c[i]&&(c[i]=p[i])}if(d||u){var h="function"==typeof e?e.displayName||e.name||"Unknown":e;d&&(a=c,s=h,(l=function(){G||(G=!0,x("%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)",s))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:l,configurable:!0})),u&&function(e,t){var o=function(){Y||(Y=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}(c,h)}return Q(e,d,u,n,r,J.current,c)}(e,t,r,g,y);if(null==_)return _;if(j){var S=t.children;if(void 0!==S)if(m)if(W(S)){for(var T=0;T<S.length;T++)le(S[T],e);Object.freeze&&Object.freeze(S)}else x("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 le(S,e)}return e===n?function(e){for(var t=Object.keys(e.props),o=0;o<t.length;o++){var r=t[o];if("children"!==r&&"key"!==r){re(e),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),re(null);break}}null!==e.ref&&(re(e),x("Invalid attribute `ref` supplied to `React.Fragment`."),re(null))}(_):function(e){var t,o=e.type;if(null!=o&&"string"!=typeof o){if("function"==typeof o)t=o.propTypes;else{if("object"!=typeof o||o.$$typeof!==c&&o.$$typeof!==p)return;t=o.propTypes}if(t){var r=w(o);!function(e,t,o,r,n){var i=Function.call.bind(A);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+o+" 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 l.name="Invariant Violation",l}s=e[a](t,a,r,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(q(n),x("%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",o,a,typeof s),q(null)),s instanceof Error&&!(s.message in B)&&(B[s.message]=!0,q(n),x("Failed %s type: %s",o,s.message),q(null))}}(t,e.props,"prop",r,e)}else void 0===o.PropTypes||ee||(ee=!0,x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(o)||"Unknown"));"function"==typeof o.getDefaultProps&&!o.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(_),_}Va.Fragment=n,Va.jsx=function(e,t,o){return ce(e,t,o,!1)},Va.jsxs=function(e,t,o){return ce(e,t,o,!0)}}()),Va);var qa=Aa.exports;function Ha(e){return qa.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:qa.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,children:[qa.jsx("path",{strokeDasharray:60,strokeDashoffset:60,strokeOpacity:.3,d:"M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z",children:qa.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),qa.jsxs("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3C16.9706 3 21 7.02944 21 12",children:[qa.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),qa.jsx("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})]})})}function Wa(e){return qa.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:qa.jsx("path",{fill:"currentColor",d:"M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41z"})})}function Ua(e){return qa.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:qa.jsx("path",{fill:"currentColor",d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})})}function Ka(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",...e,children:ge.jsx("path",{d:"M5.83398 10.8332V9.1665H14.1673V10.8332H5.83398Z",fill:"currentColor"})})}const Ga=({dataTest:e,disabled:t,...o})=>ge.jsx(C,{...o,disabled:t,"data-test":e,checkedIcon:ge.jsx("div",{className:(t?"bg-gama-300":"bg-gama-500")+" rounded-full flex items-center justify-center w-5 h-5",children:ge.jsx(Wa,{color:"white",height:14,width:14,className:"rounded-full"})}),icon:ge.jsx("div",{className:(t?"bg-delta-50":"bg-delta-10")+" rounded-full outline outline-1 outline-delta-200 flex items-center justify-center w-5 h-5",children:ge.jsx(Ka,{color:"var(--colors-delta-600)",height:20,width:20,className:"rounded-full"})}),sx:{"& .MuiButtonBase-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"& .MuiSwitch-track":{backgroundColor:"var(--colors-delta-400) !important",opacity:"1 !important"},"& .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-500) !important"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"var(--colors-gama-200) !important"},"& .PrivateSwitchBase-input.MuiSwitch-input":{height:"100% !important"},"& .MuiSwitch-input:not(:checked) ~ .MuiSwitch-thumb":{backgroundColor:"var(--colors-gray-10) !important",outline:"1px solid var(--colors-delta-200) !important",outlineOffset:"0px !important"},"& .MuiSwitch-switchBase.Mui-disabled + .MuiSwitch-track":{backgroundColor:"var(--colors-delta-200) !important",opacity:"1 !important"},"& .MuiSwitch-switchBase.Mui-disabled .MuiSwitch-thumb":{backgroundColor:"var(--colors-delta-50) !important",opacity:"1 !important"},"& .MuiSwitch-switchBase.Mui-checked.Mui-disabled + .MuiSwitch-track":{backgroundColor:"var(--colors-gama-100) !important",opacity:"1 !important"},"& .MuiSwitch-switchBase.Mui-checked.Mui-disabled .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-300) !important",opacity:"1 !important"}}}),Ya=({dataTest:e,...t})=>ge.jsx(N,{...t,"data-test":e,sx:{"&":{color:"var(--colors-delta-500)"},"& input":{height:"100% !important",width:"100% !important"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),Xa=({dataTest:e,...t})=>ge.jsx(_,{"data-test":e,...t}),Ja=({children:e,onClick:t,className:o,dataTest:r,style:n})=>ge.jsx("div",{className:si("_styled-label_1fp95_1",o),style:n,onClick:t,"data-test":r,children:e}),Za=e=>ge.jsx(S,{...e,sx:{...e.sx,"& label.MuiInputLabel-shrink":{background:"white !important",color:"var(--colors-delta-500) !important"},"& label.MuiInputLabel-shrink.Mui-focused":{background:"white !important",color:"var(--colors-gama-500) !important"},"& label.MuiInputLabel-shrink.Mui-error.Mui-focused":{background:"white !important",color:"var(--colors-red-500) !important"}}}),Qa=({sx:e,...t})=>ge.jsx(T,{...t,sx:{color:"var(--colors-delta-800)",margin:0,"& .MuiFormControlLabel-label":{fontSize:"14px",lineHeight:"20px"},"&.Mui-disabled .MuiFormControlLabel-label":{color:"var(--colors-delta-300)"},...e}}),es=e=>ge.jsx(E,{...e}),ts=e=>ge.jsx(O,{...e}),os=e=>ge.jsx(M,{...e}),rs=e=>ge.jsx(I,{...e}),ns=e=>{var t,o;return ge.jsx(R,{...e,classes:{paper:si("border border-solid border-delta-300 shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(t=e.classes)?void 0:t.paper),list:si("py-1",null==(o=e.classes)?void 0:o.list),...e.classes}})},is=e=>{var t;return ge.jsx(v,{...e,classes:{root:si("px-3 py-2.5",null==(t=e.classes)?void 0:t.root),...e.classes}})},as=e=>ge.jsx(z,{...e}),ss="_styled-link_hyb3l_1",ls="_styled-link-disabled_hyb3l_16",cs="_styled-link-xs_hyb3l_32",ds="_styled-link-small_hyb3l_37",us="_styled-link-large_hyb3l_42",ps=({href:e,disabled:t,size:o="large",dataTest:r,reflink:n,className:i,content:a,contentNode:s,...l})=>{let c=us;switch(o){case"small":c=ds;break;case"xs":c=cs;break;default:c=us}return t?ge.jsxs("span",{className:si(ss,ls,c,i),children:[a,s]}):ge.jsxs("a",{...l,"data-test":r,ref:n,href:e,className:si(ss,c,i),children:[a,s]})},hs=e=>ge.jsx(L,{...e,sx:{letterSpacing:"normal","&.MuiTab-textColorPrimary.Mui-selected":{color:"var(--colors-gama-500)"},"&.MuiTab-textColorPrimary":{color:"var(--colors-gray-500)"},"&.MuiTab-textColorPrimary.Mui-disabled":{color:"var(--colors-gray-300)"}}}),fs=e=>ge.jsx($,{...e,TabIndicatorProps:{style:{background:"var(--colors-gama-500)",color:"var(--colors-gama-500)"}},sx:{"& .MuiTabs-scrollButtons":{border:"1px solid var(--colors-delta-500)",width:40,height:40,borderRadius:"10%",display:"none",justifyContent:"center",alignItems:"center",position:"relative",top:2,"& svg":{fontSize:24,color:"var(--colors-delta-700)"},"&:hover":{backgroundColor:"var(--colors-gama-50)"},"&:first-of-type":{marginRight:"8px"},"&:last-of-type":{marginLeft:"8px"},transition:"opacity 0.3s ease, transform 0.3s ease",opacity:0,transform:"scale(0)"},"& .MuiTabs-scrollButtons.Mui-disabled":{display:"none"},"& .MuiTabs-scrollButtons:not(.Mui-disabled)":{display:"flex",opacity:1,transform:"scale(1)"}}}),ms=e=>ge.jsx(P,{...e}),gs=e=>ge.jsx(D,{...e,className:si("flex-row-reverse gap-2.5",e.className),expandIcon:ge.jsx(Ao,{width:24,height:24}),sx:{...e.sx,backgroundColor:"transparent !important","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(180deg)"},"& .MuiAccordionSummary-expandIconWrapper:not(.Mui-expanded)":{transform:"rotate(0deg)"}}}),ys=e=>ge.jsx(F,{...e}),xs=e=>ge.jsx(A,{...e}),bs=({filterIsActive:e,label:t,size:o="large",variant:r="outlined",...n})=>ge.jsx(ge.Fragment,{children:ge.jsxs("div",{className:"w-fit h-fit relative",children:[ge.jsx(ia,{...n,type:"button",startIcon:ge.jsx(Zo,{width:"large"===o?24:20,height:"large"===o?24:20}),variant:r,size:o,children:t||"Filter"}),e&&ge.jsx("div",{className:si("h-2 w-2 bg-gama-400 rounded-full absolute","large"===o?"top-2 right-2":"top-1 right-1")})]})}),vs=()=>{const[e,t]=n(null),o=()=>{t((()=>null))};return{anchorEl:e,onClose:o,onAnchorClick:r=>{e?o():(e=>{t((()=>e.currentTarget))})(r)}}},ws=e=>t.isValidElement(e)||"string"==typeof e||"number"==typeof e||null===e||Array.isArray(e),js=({filterIsActive:e,popoverContent:o,dataTest:r,disabled:n,size:i="large",variant:a="outlined",popoverProps:s,anchorNode:l,label:c})=>{const{onAnchorClick:d,onClose:u,anchorEl:p}=vs();return ge.jsxs(ge.Fragment,{children:[ge.jsxs("div",{className:"w-fit h-fit relative",children:[l?t.cloneElement(l({isOpen:!!p,onClose:u}),{onClick:d}):ge.jsx(ia,{type:"button",disabled:n,variant:a,startIcon:ge.jsx(Zo,{width:"large"===i?24:20,height:"large"===i?24:20}),onClick:d,size:i,dataTest:r,children:c||"Filter"}),e&&ge.jsx("div",{className:si("h-2 w-2 bg-gama-400 rounded-full absolute","large"===i?"top-2 right-2":"top-1 right-1")})]}),ge.jsx(xs,{...s,open:!!p,anchorEl:p,onClose:u,anchorOrigin:(null==s?void 0:s.anchorOrigin)||{vertical:"bottom",horizontal:"right"},transformOrigin:(null==s?void 0:s.transformOrigin)||{vertical:"top",horizontal:"right"},className:(null==s?void 0:s.className)||"my-1",children:ws(o)?o:o({isOpen:!!p,onClose:u})})]})},ks=({className:e,contentToCopy:t,locale:o,messageInfo:r,text:n})=>{const i="en"===o?"Copy":"Kopier",a=pa();return ge.jsx(Xi,{title:i,children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"copy-button",className:e,size:"small",variant:"text",startIcon:ge.jsx(Ua,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{r("no"===o?"Kopieres til utklippstavlen":"Copied to clipboard")}))},children:!a&&(n||i)})})})},Cs="_copy-wrapper_1gjzc_1",Ns="_hidden-copy_1gjzc_1",_s=({className:e,contentToCopy:t,locale:o,messageInfo:r,children:n})=>ge.jsxs("div",{className:ya("flex items-center gap-2 hover:text-gama-500",Cs,e),children:[n,ge.jsx(Xi,{title:"no"===o?"Kopier":"Copy",className:Ns,children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"copy-button",size:"small",variant:"text",className:"cursor-pointer",children:ge.jsx(Ua,{width:20,height:20,className:"text-gama-500 hover:text-delta-700",onClick:()=>{navigator.clipboard.writeText(t).then((()=>{r("no"===o?"Kopieres til utklippstavlen":"Copied to clipboard")}))}})})})})]}),Ss="_styled-widget-title_1gze6_1",Ts=function(e){return ge.jsx("div",{className:Ss,children:e.children})},Es="_styled-widget-header_1qk88_1",Os=({actions:e,title:t,containerClassname:o,actionsClassname:r})=>ge.jsxs("div",{className:ya(Es,o),children:[ge.jsx(Ts,{children:t}),ge.jsx("div",{className:r,children:e})]}),Ms="_asma-core-ui-styled-widget_cb7kt_1",Is="_widget-header_cb7kt_13",Rs="_widget-content_cb7kt_19",zs="_widget-footer_cb7kt_29",Ls="_widget-link_cb7kt_34";function $s(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})})}function Ps(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})})}const Ds=({children:e,title:t,icon:o,link:r,viewMore:a,persistKey:s,isLoading:l,isEmpty:c,emptyText:d})=>{const[u,p]=n(!1);return i((()=>{if(s){const e=localStorage.getItem(s);p("true"===e)}}),[s]),i((()=>{s&&localStorage.setItem(s,String(u))}),[u,s]),ge.jsxs("div",{className:Ms,children:[ge.jsxs("div",{className:Is,children:[o,ge.jsx(Ts,{children:t})]}),ge.jsx("div",{className:Rs,children:ge.jsxs(ge.Fragment,{children:[e,ge.jsx(_a,{isLoading:l}),ge.jsx(Ca,{isEmpty:c,emptyText:d})]})}),ge.jsxs("div",{className:zs,children:[!a||null!=a&&a.hide?ge.jsx("div",{}):ge.jsx(ia,{disabled:a.disabled,dataTest:"view-more",variant:"text",endIcon:u?ge.jsx($s,{width:20,height:20}):ge.jsx(Ps,{width:20,height:20}),onClick:()=>{var e;p(!u),null==(e=null==a?void 0:a.onClick)||e.call(a)},children:u?a.viewLessText:a.viewMoreText}),r&&!r.hide?ge.jsx(ps,{dataTest:"go-to-button",className:Ls,size:"small",href:r.href,onClick:r.onClick,content:r.content}):ge.jsx("div",{})]})]})},Fs="_styled-module-title_174mo_1",As=function(e){return ge.jsx("h1",{"data-test":e.dataTest,className:Fs,children:e.children})},Bs="_dialog_erjok_1",Vs="_hidden_erjok_9";function qs(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M10 21v-2H6.41l4.5-4.5l-1.41-1.41l-4.5 4.5V14H3v7zm4.5-10.09l4.5-4.5V10h2V3h-7v2h3.59l-4.5 4.5z"})})}function Hs(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M19.5 3.09L15 7.59V4h-2v7h7V9h-3.59l4.5-4.5zM4 13v2h3.59l-4.5 4.5l1.41 1.41l4.5-4.5V20h2v-7z"})})}const Ws="object"==typeof global&&global&&global.Object===Object&&global;var Us="object"==typeof self&&self&&self.Object===Object&&self;const Ks=(Ws||Us||Function("return this")()).Symbol;var Gs=Object.prototype,Ys=Gs.hasOwnProperty,Xs=Gs.toString,Js=Ks?Ks.toStringTag:void 0;var Zs=Object.prototype.toString;var Qs="[object Null]",el="[object Undefined]",tl=Ks?Ks.toStringTag:void 0;function ol(e){return null==e?void 0===e?el:Qs:tl&&tl in Object(e)?function(e){var t=Ys.call(e,Js),o=e[Js];try{e[Js]=void 0;var r=!0}catch{}var n=Xs.call(e);return r&&(t?e[Js]=o:delete e[Js]),n}(e):function(e){return Zs.call(e)}(e)}const rl=Array.isArray;function nl(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=ol(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const il=({onCloseText:e="",onMinimizeText:t="",onExpandText:o="",onFullScreenText:r="",showCloseIcon:i=!0,showMinimizeIcon:a=!0,showExpandIcon:s=!0,showFullScreenIcon:c=!0,title:d,label:u,children:p,open:h,onClose:f,className:m="",primaryButtonText:g,primaryButtonLoading:y=!1,secondaryButtonText:x,onPrimaryButtonClick:b,onSecondaryButtonClick:v,dataTest:w,actionNode:j,extraActions:k,extraActionsText:C,btnContainerClassName:N,footerClassName:_,footerInfo:S,locale:T="en",enableFullscreen:E=!0,fullScreenState:O,handleFullScreenState:M})=>{const[I,R]=n(!1),[z,L]=n(!1),{open:$,anchorEl:P,handleOpen:D,handleClose:F}=(()=>{const[e,t]=n(null),o=!!e,r=l((e=>{t(e.currentTarget)}),[]);return{open:o,handleClose:l((()=>{t(null)}),[]),handleOpen:r,anchorEl:e}})();if(!h)return null;const A=void 0!==O?O:z,B=g||y,V=B||x,q=()=>{R(!I)};return ge.jsxs(ge.Fragment,{children:[A&&!I&&ge.jsx("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),ge.jsx("div",{style:{zIndex:51},className:ya(Bs,!I&&Vs),children:ge.jsxs("div",{className:si("flex items-center justify-between",!I&&"hidden"),"data-test":w,children:[ge.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:d}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[s&&ge.jsx(Xi,{title:"en"===T?"Expand":"Utvid",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"minimize-button",variant:"text",size:"small",onClick:q,endIcon:s&&ge.jsx(yr,{height:20,width:20,color:"text-gama-500"}),children:o})})}),i&&ge.jsx(Xi,{title:"en"===T?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"close-button",variant:"textGray",size:"small",onClick:f,endIcon:i&&ge.jsx(Vo,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]})}),ge.jsxs("div",{className:ya("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",m&&!I?m:"",I&&"!h-0 !w-0 opacity-0 duration-0",A&&!I&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0"),"data-test":w,children:[ge.jsxs("div",{className:"flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[u?ge.jsx("div",{className:"text-sm text-delta-700",children:u}):ge.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:d}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[j,a&&ge.jsx(Xi,{title:"en"===T?"Minimize":"Minimer",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:q,endIcon:a&&ge.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:t})})}),E&&c&&ge.jsx(Xi,{title:A?"en"===T?"Exit full screen":"Avslutt fullskjerm":"en"===T?"Full screen":"Fullskjerm",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==O&&M?M():L(!z)},endIcon:A?ge.jsx(Hs,{width:20,height:20,color:"text-delta-700"}):ge.jsx(qs,{width:20,height:20,color:"text-delta-700"}),children:r})})}),i&&ge.jsx(Xi,{title:"en"===T?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"close-button",variant:"textGray",size:"small",onClick:f,endIcon:ge.jsx(Vo,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]}),u&&ge.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:d})]}),ge.jsxs("div",{className:si("flex flex-col",A&&!I&&"h-[87dvh]"),children:[ge.jsx("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof p?p({fullScreen:A}):p}),(rl(k)&&null!=k&&k.length||nl(k))&&C||S?ge.jsxs("div",{className:ya("flex items-center justify-between p-4 border-0 border-t-[1px] border-solid border-delta-200 bg-white",_),children:[rl(k)&&null!=k&&k.length&&C?ge.jsxs(ge.Fragment,{children:[ge.jsx(ia,{dataTest:"extra-actions-button",variant:"textGray",startIcon:ge.jsx(Io,{width:24,height:24}),onClick:D,children:C}),ge.jsx(ns,{open:$,anchorEl:P,onClose:F,children:k.map((e=>ge.jsx(is,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):C&&nl(k)&&ge.jsx(ia,{dataTest:"extra-action-button",variant:"text",onClick:k,children:C})," ",S,V?ge.jsxs("div",{className:ya("flex justify-end gap-x-4",N),children:[x&&v&&ge.jsx(ia,{dataTest:"cancel-button",variant:"outlined",onClick:v,children:x}),B&&b&&ge.jsx(ia,{dataTest:"save-button",startIcon:y&&ge.jsx(Ha,{width:24,height:24}),onClick:b,children:g})]}):null]}):ge.jsx(ge.Fragment,{children:V?ge.jsxs("div",{className:ya("flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",N),children:[x&&v&&ge.jsx(ia,{dataTest:"cancel-button",variant:"outlined",onClick:v,children:x}),B&&b&&ge.jsx(ia,{dataTest:"save-button",startIcon:y&&ge.jsx(Ha,{width:24,height:24}),onClick:b,children:g})]}):null})]})]})]})},al=({showCloseIcon:e,tooltipTitle:t,onClick:o,title:r})=>e?ge.jsx("div",{children:ge.jsx(Xi,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"close-button",variant:"textGray",size:"small",onClick:o,endIcon:ge.jsx(Vo,{height:20,width:20,color:"text-delta-700"}),children:r})})})}):null,sl=({visibility:e,tooltipTitle:t,onClick:o,title:r,type:n})=>{if(!e)return null;const i="minimize"===n;return"expand"===n?ge.jsx("div",{children:ge.jsx(Xi,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"toggle-minimize-btn",variant:"text",size:"small",onClick:o,endIcon:ge.jsx(yr,{height:20,width:20,color:"text-gama-500"}),children:r})})})}):i?ge.jsx("div",{children:ge.jsx(Xi,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"toggle-minimize-btn",variant:"textGray",size:"small",onClick:o,endIcon:ge.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:r})})})}):null},ll="_minimized-dialog_1tnc1_5",cl="_dialog_1tnc1_1",dl="_hidden_1tnc1_25",ul=({fullScreen:e,showFullScreenIcon:t,title:o,tooltipTitle:r,onClick:n})=>t?ge.jsx(ge.Fragment,{children:t&&ge.jsx(Xi,{title:r,children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:n,endIcon:e?ge.jsx(Hs,{width:20,height:20,color:"text-delta-700"}):ge.jsx(qs,{width:20,height:20,color:"text-delta-700"}),children:o})})})}):null,pl=({onCloseText:e="",onMinimizeText:t="",onExpandText:o="",onFullScreenText:r="",showCloseIcon:i=!0,showMinimizeIcon:a=!0,showExpandIcon:s=!0,enableFullscreen:l=!0,fullScreenState:c,handleFullScreenState:d,title:u,label:p,children:h,open:f,onClose:m,classNameOverrides:g={maximized:"",minimized:"",fullscreen:""},dataTest:y,actionNode:x,tooltipOverrides:b={maximized:"",minimized:"",close:"",fullscreen:""}})=>{const[v,w]=n(!1),[j,k]=n(!1);if(!f)return null;const C=void 0!==c?c:j,N=()=>{w(!v)};return ge.jsxs(ge.Fragment,{children:[ge.jsx("div",{style:{zIndex:51},className:ya(ll,!v&&dl,g.minimized),children:ge.jsxs("div",{className:si("flex items-center justify-between",!v&&"hidden"),"data-test":y,children:[ge.jsx("div",{className:"truncate max-w-[303px] text-lg font-semibold text-delta-800 pr-1",children:ge.jsx(Xi,{title:u,placement:"top",children:ge.jsx("div",{className:"truncate",children:u})})}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[ge.jsx(sl,{type:"expand",visibility:s,onClick:N,title:o,tooltipTitle:b.maximized||"Expand"}),ge.jsx(al,{showCloseIcon:i,onClick:m,title:e,tooltipTitle:b.close||"Close"})]})]})}),C&&!v&&ge.jsx("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),ge.jsxs("div",{style:{zIndex:51},className:ya(cl,v&&dl,g.maximized,C&&!v&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0",C&&g.fullscreen),children:[ge.jsxs("div",{className:"flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[p?ge.jsx("div",{className:"text-sm text-delta-700",children:p}):ge.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:u}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[x,ge.jsx(sl,{visibility:a,type:"minimize",onClick:N,title:t,tooltipTitle:b.minimized||"Minimize"}),ge.jsx(ul,{showFullScreenIcon:l,fullScreen:C,onClick:()=>{void 0!==c&&d?d():k(!j)},title:r,tooltipTitle:b.fullscreen||(C?"Exit full screen":"Full screen")}),ge.jsx(al,{showCloseIcon:i,onClick:m,title:e,tooltipTitle:b.close||"Close"})]})]}),p&&ge.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:u})]}),ge.jsx("div",{className:ya(v&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:h})]})]})};export{Po as ArchiveIcon,bo as AssignmentIcon,vo as AssignmentOutlineIcon,B as Avatar,br as BadgeIcon,eo as BellIcon,Qt as BellOutlineIcon,rr as CalendarBlankOutlineIcon,go as CalendarIcon,xo as CalendarRangeIcon,Fo as CheckBoxCheckedIcon,mo as CheckFactIcon,fo as CheckFactOutlineIcon,qo as CheckIcon,ho as CheckOutlineIcon,no as ChevronDoubleLeftIcon,io as ChevronDoubleRightIcon,Ao as ChevronDownIcon,ro as ChevronLeftIcon,oo as ChevronRightIcon,Bo as ChevronUpIcon,V as ClickAwayListener,Vo as CloseIcon,mr as ConsentsIcon,q as Container,ks as CopyButton,_s as CopyWrapper,lo as DashboardViewIcon,co as DashboardViewOutlineIcon,Jo as DeleteOutlineIcon,Io as DotsVerticalIcon,Do as DownloadIcon,Yo as DragHorizontalIcon,$o as DropDownIcon,Lo as DropUpIcon,er as DvrIcon,dr as EarthIcon,vr as EditSquareIcon,tr as ErrorOutlineIcon,H as Fade,ir as FastCheckOutlineIcon,Xo as FilePdfIcon,Zo as FilterIcon,To as FindReplaceIcon,Eo as FindReplacePeopleIcon,W as FormLabel,to as HamburgerIcon,Cr as HandymanIcon,kr as HandymanOutlineIcon,Uo as InboxOutboxIcon,Ko as InboxOutboxOutlineIcon,yr as KeyboardCapslockIcon,nr as LinkOutlineIcon,wo as ListNumberedIcon,cr as ListSettingsLineIcon,sr as ListStatusIcon,zo as LoadingIcon,Qo as LockIcon,jo as MessageProcessingIcon,ko as MessageProcessingOutlineIcon,xr as MessageReplyIcon,il as MinimizableDialog,pl as MinimizableDialogV2,gr as MinimizeIcon,yo as NewCalendarIcon,fr as OutlineCalendarMonth,U as Paper,so as PdfIcon,pr as PencilOutlineIcon,po as PeopleIcon,uo as PeopleOutlineIcon,Ho as PermMediaIcon,Wo as PermMediaOutline,Oo as PersonIcon,Mo as PersonOutlineIcon,Nr as PinIcon,wr as PlusIcon,jr as PlusIconCircle,K as Popper,ao as QnrIcon,or as ReplayIcon,Co as ReportBoxIcon,No as ReportBoxOutlineIcon,Ro as SearchIcon,_o as SettingsIcon,ur as SettingsMenuHorizontalIcon,So as SettingsOutlineIcon,G as Skeleton,Y as Stack,ms as StyledAccordion,ys as StyledAccordionDetails,gs as StyledAccordionSummary,ye as StyledBadge,ia as StyledButton,Sa as StyledCheckbox,Sr as StyledChip,ha as StyledDialog,xa as StyledDialogActions,va as StyledDialogContent,ja as StyledDialogTitle,rs as StyledDrawer,Ca as StyledEmptyPage,bs as StyledFilterButton,js as StyledFilterMenu,Za as StyledFormControl,Qa as StyledFormControlLabel,os as StyledFormGroup,es as StyledFormHelperText,oa as StyledFormLabel,Ta as StyledInputField,ts as StyledInputLabel,Tr as StyledInteractiveChip,Ja as StyledLabel,ps as StyledLink,_a as StyledLoading,ns as StyledMenu,is as StyledMenuItem,as as StyledMenuList,As as StyledModuleTitle,xs as StyledPopover,Ya as StyledRadio,Xa as StyledRadioGroup,Ea as StyledSearchField,Ia as StyledSelect,$a as StyledSelectAutocomplete,Ra as StyledSelectItem,Pa as StyledSlider,Ga as StyledSwitch,hs as StyledTab,fs as StyledTabs,Ma as StyledTextarea,Xi as StyledTooltip,Ji as StyledTypography,Ds as StyledWidget,Os as StyledWidgetHeader,Ts as StyledWidgetTitle,lr as TextBoxCheckOutlineIcon,Go as TopicIcon,ar as UnknownDocumentOutlineRoundedIcon,hr as WarningAmberOutlineIcon,_r as WorkIcon,ee as omit,de as prepareForSlot,le as setMidnightTime,ce as setZeroTime};
38
+ "production"===process.env.NODE_ENV?Aa.exports=function(){if(Da)return Ba;Da=1;var e=t,o=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,l={},c=null,d=null;for(s in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)n.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:o,type:e,key:c,ref:d,props:l,_owner:i.current}}return Ba.Fragment=r,Ba.jsx=s,Ba.jsxs=s,Ba}():Aa.exports=(Fa||(Fa=1,"production"!==process.env.NODE_ENV&&function(){var e=t,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator",y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];!function(e,t,o){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",o=o.concat([r]));var n=o.map((function(e){return String(e)}));n.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,n)}(0,e,o)}var b;function v(e){return e.displayName||"Context"}function w(e){if(null==e)return null;if("number"==typeof e.tag&&x("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 n:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return v(e)+".Consumer";case s:return v(e._context)+".Provider";case c:return function(e,t,o){var r=e.displayName;if(r)return r;var n=t.displayName||t.name||"";return""!==n?o+"("+n+")":o}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:w(e.type)||"Memo";case h:var o=e,f=o._payload,m=o._init;try{return w(m(f))}catch{return null}}return null}b=Symbol.for("react.module.reference");var j,k,C,N,_,S,T,E=Object.assign,O=0;function M(){}M.__reactDisabledLog=!0;var I,R=y.ReactCurrentDispatcher;function z(e,t,o){if(void 0===I)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);I=r&&r[1]||""}return"\n"+I+e}var L,$=!1,P="function"==typeof WeakMap?WeakMap:Map;function D(e,t){if(!e||$)return"";var o,r=L.get(e);if(void 0!==r)return r;$=!0;var n,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,n=R.current,R.current=null,function(){if(0===O){j=console.log,k=console.info,C=console.warn,N=console.error,_=console.group,S=console.groupCollapsed,T=console.groupEnd;var e={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}O++}();try{if(t){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){o=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){o=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){o=e}e()}}catch(t){if(t&&o&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=o.stack.split("\n"),c=s.length-1,d=l.length-1;c>=1&&d>=0&&s[c]!==l[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==l[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==l[d]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&L.set(e,u),u}}while(c>=1&&d>=0);break}}}finally{$=!1,R.current=n,function(){if(0==--O){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:E({},e,{value:j}),info:E({},e,{value:k}),warn:E({},e,{value:C}),error:E({},e,{value:N}),group:E({},e,{value:_}),groupCollapsed:E({},e,{value:S}),groupEnd:E({},e,{value:T})})}O<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",h=p?z(p):"";return"function"==typeof e&&L.set(e,h),h}function F(e,t,o){if(null==e)return"";if("function"==typeof e)return D(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return z(e);switch(e){case d:return z("Suspense");case u:return z("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,o){return D(e,!1)}(e.render);case p:return F(e.type,t,o);case h:var n=e,i=n._payload,a=n._init;try{return F(a(i),t,o)}catch{}}return""}L=new P;var A=Object.prototype.hasOwnProperty,B={},V=y.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,o=F(e.type,e._source,t?t.type:null);V.setExtraStackFrame(o)}else V.setExtraStackFrame(null)}var H=Array.isArray;function W(e){return H(e)}function U(e){return""+e}function K(e){if(function(e){try{return U(e),!1}catch{return!0}}(e))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",(t=e,"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object")),U(e);var t}var G,Y,X,J=y.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};X={};var Q=function(e,t,r,n,i,a,s){var l={$$typeof:o,type:e,key:t,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};var ee,te=y.ReactCurrentOwner,oe=y.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,o=F(e.type,e._source,t?t.type:null);oe.setExtraStackFrame(o)}else oe.setExtraStackFrame(null)}function ne(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}function ie(){if(te.current){var e=w(te.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ee=!1;var ae={};function se(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var o=function(e){var t=ie();if(!t){var o="string"==typeof e?e:e.displayName||e.name;o&&(t="\n\nCheck the top-level render call using <"+o+">.")}return t}(t);if(!ae[o]){ae[o]=!0;var r="";e&&e._owner&&e._owner!==te.current&&(r=" It was passed a child from "+w(e._owner.type)+"."),re(e),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,r),re(null)}}}function le(e,t){if("object"==typeof e)if(W(e))for(var o=0;o<e.length;o++){var r=e[o];ne(r)&&se(r,t)}else if(ne(e))e._store&&(e._store.validated=!0);else if(e){var n=function(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof n&&n!==e.entries)for(var i,a=n.call(e);!(i=a.next()).done;)ne(i.value)&&se(i.value,t)}}function ce(e,t,r,m,g,y){var v,j=!("string"!=typeof(v=e)&&"function"!=typeof v&&v!==n&&v!==a&&v!==i&&v!==d&&v!==u&&v!==f&&("object"!=typeof v||null===v||v.$$typeof!==h&&v.$$typeof!==p&&v.$$typeof!==s&&v.$$typeof!==l&&v.$$typeof!==c&&v.$$typeof!==b&&void 0===v.getModuleId));if(!j){var k="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(k+=" 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 C,N=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);k+=N||ie(),null===e?C="null":W(e)?C="array":void 0!==e&&e.$$typeof===o?(C="<"+(w(e.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):C=typeof e,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,k)}var _=function(e,t,o,r,n){var i,a,s,l,c={},d=null,u=null;for(i in void 0!==o&&(K(o),d=""+o),function(e){if(A.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(K(t.key),d=""+t.key),function(e){if(A.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(u=t.ref,function(e,t){if("string"==typeof e.ref&&J.current&&t&&J.current.stateNode!==t){var o=w(J.current.type);X[o]||(x('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',w(J.current.type),e.ref),X[o]=!0)}}(t,n)),t)A.call(t,i)&&!Z.hasOwnProperty(i)&&(c[i]=t[i]);if(e&&e.defaultProps){var p=e.defaultProps;for(i in p)void 0===c[i]&&(c[i]=p[i])}if(d||u){var h="function"==typeof e?e.displayName||e.name||"Unknown":e;d&&(a=c,s=h,(l=function(){G||(G=!0,x("%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)",s))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:l,configurable:!0})),u&&function(e,t){var o=function(){Y||(Y=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}(c,h)}return Q(e,d,u,n,r,J.current,c)}(e,t,r,g,y);if(null==_)return _;if(j){var S=t.children;if(void 0!==S)if(m)if(W(S)){for(var T=0;T<S.length;T++)le(S[T],e);Object.freeze&&Object.freeze(S)}else x("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 le(S,e)}return e===n?function(e){for(var t=Object.keys(e.props),o=0;o<t.length;o++){var r=t[o];if("children"!==r&&"key"!==r){re(e),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),re(null);break}}null!==e.ref&&(re(e),x("Invalid attribute `ref` supplied to `React.Fragment`."),re(null))}(_):function(e){var t,o=e.type;if(null!=o&&"string"!=typeof o){if("function"==typeof o)t=o.propTypes;else{if("object"!=typeof o||o.$$typeof!==c&&o.$$typeof!==p)return;t=o.propTypes}if(t){var r=w(o);!function(e,t,o,r,n){var i=Function.call.bind(A);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+o+" 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 l.name="Invariant Violation",l}s=e[a](t,a,r,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(q(n),x("%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",o,a,typeof s),q(null)),s instanceof Error&&!(s.message in B)&&(B[s.message]=!0,q(n),x("Failed %s type: %s",o,s.message),q(null))}}(t,e.props,"prop",r,e)}else void 0===o.PropTypes||ee||(ee=!0,x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(o)||"Unknown"));"function"==typeof o.getDefaultProps&&!o.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(_),_}Va.Fragment=n,Va.jsx=function(e,t,o){return ce(e,t,o,!1)},Va.jsxs=function(e,t,o){return ce(e,t,o,!0)}}()),Va);var qa=Aa.exports;function Ha(e){return qa.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:qa.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,children:[qa.jsx("path",{strokeDasharray:60,strokeDashoffset:60,strokeOpacity:.3,d:"M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z",children:qa.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),qa.jsxs("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3C16.9706 3 21 7.02944 21 12",children:[qa.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),qa.jsx("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})]})})}function Wa(e){return qa.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:qa.jsx("path",{fill:"currentColor",d:"M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41z"})})}function Ua(e){return qa.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:qa.jsx("path",{fill:"currentColor",d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})})}function Ka(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",...e,children:ge.jsx("path",{d:"M5.83398 10.8332V9.1665H14.1673V10.8332H5.83398Z",fill:"currentColor"})})}const Ga=({dataTest:e,disabled:t,...o})=>ge.jsx(C,{...o,disabled:t,"data-test":e,checkedIcon:ge.jsx("div",{className:(t?"bg-gama-300":"bg-gama-500")+" rounded-full flex items-center justify-center w-5 h-5",children:ge.jsx(Wa,{color:"white",height:14,width:14,className:"rounded-full"})}),icon:ge.jsx("div",{className:(t?"bg-delta-50":"bg-delta-10")+" rounded-full outline outline-1 outline-delta-200 flex items-center justify-center w-5 h-5",children:ge.jsx(Ka,{color:"var(--colors-delta-600)",height:20,width:20,className:"rounded-full"})}),sx:{"& .MuiButtonBase-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"& .MuiSwitch-track":{backgroundColor:"var(--colors-delta-400) !important",opacity:"1 !important"},"& .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-500) !important"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"var(--colors-gama-200) !important"},"& .PrivateSwitchBase-input.MuiSwitch-input":{height:"100% !important"},"& .MuiSwitch-input:not(:checked) ~ .MuiSwitch-thumb":{backgroundColor:"var(--colors-gray-10) !important",outline:"1px solid var(--colors-delta-200) !important",outlineOffset:"0px !important"},"& .MuiSwitch-switchBase.Mui-disabled + .MuiSwitch-track":{backgroundColor:"var(--colors-delta-200) !important",opacity:"1 !important"},"& .MuiSwitch-switchBase.Mui-disabled .MuiSwitch-thumb":{backgroundColor:"var(--colors-delta-50) !important",opacity:"1 !important"},"& .MuiSwitch-switchBase.Mui-checked.Mui-disabled + .MuiSwitch-track":{backgroundColor:"var(--colors-gama-100) !important",opacity:"1 !important"},"& .MuiSwitch-switchBase.Mui-checked.Mui-disabled .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-300) !important",opacity:"1 !important"}}}),Ya=({dataTest:e,...t})=>ge.jsx(N,{...t,"data-test":e,sx:{"&":{color:"var(--colors-delta-500)"},"& input":{height:"100% !important",width:"100% !important"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),Xa=({dataTest:e,...t})=>ge.jsx(_,{"data-test":e,...t}),Ja=({children:e,onClick:t,className:o,dataTest:r,style:n})=>ge.jsx("div",{className:si("_styled-label_1fp95_1",o),style:n,onClick:t,"data-test":r,children:e}),Za=e=>ge.jsx(S,{...e,sx:{...e.sx,"& label.MuiInputLabel-shrink":{background:"white !important",color:"var(--colors-delta-500) !important"},"& label.MuiInputLabel-shrink.Mui-focused":{background:"white !important",color:"var(--colors-gama-500) !important"},"& label.MuiInputLabel-shrink.Mui-error.Mui-focused":{background:"white !important",color:"var(--colors-red-500) !important"}}}),Qa=({sx:e,...t})=>ge.jsx(T,{...t,sx:{color:"var(--colors-delta-800)",margin:0,"& .MuiFormControlLabel-label":{fontSize:"14px",lineHeight:"20px"},"&.Mui-disabled .MuiFormControlLabel-label":{color:"var(--colors-delta-300)"},...e}}),es=e=>ge.jsx(E,{...e}),ts=e=>ge.jsx(O,{...e}),os=e=>ge.jsx(M,{...e}),rs=e=>ge.jsx(I,{...e}),ns=e=>{var t,o;return ge.jsx(R,{...e,classes:{paper:si("border border-solid border-delta-300 shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(t=e.classes)?void 0:t.paper),list:si("py-1",null==(o=e.classes)?void 0:o.list),...e.classes}})},is=e=>{var t;return ge.jsx(v,{...e,classes:{root:si("px-3 py-2.5",null==(t=e.classes)?void 0:t.root),...e.classes}})},as=e=>ge.jsx(z,{...e}),ss="_styled-link_hyb3l_1",ls="_styled-link-disabled_hyb3l_16",cs="_styled-link-xs_hyb3l_32",ds="_styled-link-small_hyb3l_37",us="_styled-link-large_hyb3l_42",ps=({href:e,disabled:t,size:o="large",dataTest:r,reflink:n,className:i,content:a,contentNode:s,...l})=>{let c=us;switch(o){case"small":c=ds;break;case"xs":c=cs;break;default:c=us}return t?ge.jsxs("span",{className:si(ss,ls,c,i),children:[a,s]}):ge.jsxs("a",{...l,"data-test":r,ref:n,href:e,className:si(ss,c,i),children:[a,s]})},hs=e=>ge.jsx(L,{...e,sx:{letterSpacing:"normal","&.MuiTab-textColorPrimary.Mui-selected":{color:"var(--colors-gama-500)"},"&.MuiTab-textColorPrimary":{color:"var(--colors-gray-500)"},"&.MuiTab-textColorPrimary.Mui-disabled":{color:"var(--colors-gray-300)"}}}),fs=e=>ge.jsx($,{...e,TabIndicatorProps:{style:{background:"var(--colors-gama-500)",color:"var(--colors-gama-500)"}},sx:{"& .MuiTabs-scrollButtons":{border:"1px solid var(--colors-delta-500)",width:40,height:40,borderRadius:"10%",display:"none",justifyContent:"center",alignItems:"center",position:"relative",top:2,"& svg":{fontSize:24,color:"var(--colors-delta-700)"},"&:hover":{backgroundColor:"var(--colors-gama-50)"},"&:first-of-type":{marginRight:"8px"},"&:last-of-type":{marginLeft:"8px"},transition:"opacity 0.3s ease, transform 0.3s ease",opacity:0,transform:"scale(0)"},"& .MuiTabs-scrollButtons.Mui-disabled":{display:"none"},"& .MuiTabs-scrollButtons:not(.Mui-disabled)":{display:"flex",opacity:1,transform:"scale(1)"}}}),ms=e=>ge.jsx(P,{...e}),gs=e=>ge.jsx(D,{...e,className:si("flex-row-reverse gap-2.5",e.className),expandIcon:ge.jsx(Ao,{width:24,height:24}),sx:{...e.sx,backgroundColor:"transparent !important","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(180deg)"},"& .MuiAccordionSummary-expandIconWrapper:not(.Mui-expanded)":{transform:"rotate(0deg)"}}}),ys=e=>ge.jsx(F,{...e}),xs=e=>ge.jsx(A,{...e}),bs=({filterIsActive:e,label:t,size:o="large",variant:r="outlined",...n})=>ge.jsx(ge.Fragment,{children:ge.jsxs("div",{className:"w-fit h-fit relative",children:[ge.jsx(ia,{...n,type:"button",startIcon:ge.jsx(Zo,{width:"large"===o?24:20,height:"large"===o?24:20}),variant:r,size:o,children:t||"Filter"}),e&&ge.jsx("div",{className:si("h-2 w-2 bg-gama-400 rounded-full absolute","large"===o?"top-2 right-2":"top-1 right-1")})]})}),vs=()=>{const[e,t]=n(null),o=()=>{t((()=>null))};return{anchorEl:e,onClose:o,onAnchorClick:r=>{e?o():(e=>{t((()=>e.currentTarget))})(r)}}},ws=e=>t.isValidElement(e)||"string"==typeof e||"number"==typeof e||null===e||Array.isArray(e),js=({filterIsActive:e,popoverContent:o,dataTest:r,disabled:n,size:i="large",variant:a="outlined",popoverProps:s,anchorNode:l,label:c})=>{const{onAnchorClick:d,onClose:u,anchorEl:p}=vs();return ge.jsxs(ge.Fragment,{children:[ge.jsxs("div",{className:"w-fit h-fit relative",children:[l?t.cloneElement(l({isOpen:!!p,onClose:u}),{onClick:d}):ge.jsx(ia,{type:"button",disabled:n,variant:a,startIcon:ge.jsx(Zo,{width:"large"===i?24:20,height:"large"===i?24:20}),onClick:d,size:i,dataTest:r,children:c||"Filter"}),e&&ge.jsx("div",{className:si("h-2 w-2 bg-gama-400 rounded-full absolute","large"===i?"top-2 right-2":"top-1 right-1")})]}),ge.jsx(xs,{...s,open:!!p,anchorEl:p,onClose:u,anchorOrigin:(null==s?void 0:s.anchorOrigin)||{vertical:"bottom",horizontal:"right"},transformOrigin:(null==s?void 0:s.transformOrigin)||{vertical:"top",horizontal:"right"},className:(null==s?void 0:s.className)||"my-1",children:ws(o)?o:o({isOpen:!!p,onClose:u})})]})},ks=({className:e,contentToCopy:t,locale:o,messageInfo:r,text:n})=>{const i="en"===o?"Copy":"Kopier",a=pa();return ge.jsx(Xi,{title:i,children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"copy-button",className:e,size:"small",variant:"text",startIcon:ge.jsx(Ua,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{r("no"===o?"Kopieres til utklippstavlen":"Copied to clipboard")}))},children:!a&&(n||i)})})})},Cs="_copy-wrapper_1gjzc_1",Ns="_hidden-copy_1gjzc_1",_s=({className:e,contentToCopy:t,locale:o,messageInfo:r,children:n})=>ge.jsxs("div",{className:ya("flex items-center hover:text-gama-500",Cs,e),children:[n,ge.jsx(Xi,{title:"no"===o?"Kopier":"Copy",className:Ns,children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"copy-button",size:"small",variant:"text",className:"cursor-pointer",startIcon:ge.jsx(Ua,{width:20,height:20,className:"text-gama-500 hover:text-delta-700",onClick:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).then((()=>{r("no"===o?"Kopieres til utklippstavlen":"Copied to clipboard")}))}})})})})]}),Ss="_styled-widget-title_1gze6_1",Ts=function(e){return ge.jsx("div",{className:Ss,children:e.children})},Es="_styled-widget-header_1qk88_1",Os=({actions:e,title:t,containerClassname:o,actionsClassname:r})=>ge.jsxs("div",{className:ya(Es,o),children:[ge.jsx(Ts,{children:t}),ge.jsx("div",{className:r,children:e})]}),Ms="_asma-core-ui-styled-widget_cb7kt_1",Is="_widget-header_cb7kt_13",Rs="_widget-content_cb7kt_19",zs="_widget-footer_cb7kt_29",Ls="_widget-link_cb7kt_34";function $s(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})})}function Ps(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})})}const Ds=({children:e,title:t,icon:o,link:r,viewMore:a,persistKey:s,isLoading:l,isEmpty:c,emptyText:d})=>{const[u,p]=n(!1);return i((()=>{if(s){const e=localStorage.getItem(s);p("true"===e)}}),[s]),i((()=>{s&&localStorage.setItem(s,String(u))}),[u,s]),ge.jsxs("div",{className:Ms,children:[ge.jsxs("div",{className:Is,children:[o,ge.jsx(Ts,{children:t})]}),ge.jsx("div",{className:Rs,children:ge.jsxs(ge.Fragment,{children:[e,ge.jsx(_a,{isLoading:l}),ge.jsx(Ca,{isEmpty:c,emptyText:d})]})}),ge.jsxs("div",{className:zs,children:[!a||null!=a&&a.hide?ge.jsx("div",{}):ge.jsx(ia,{disabled:a.disabled,dataTest:"view-more",variant:"text",endIcon:u?ge.jsx($s,{width:20,height:20}):ge.jsx(Ps,{width:20,height:20}),onClick:()=>{var e;p(!u),null==(e=null==a?void 0:a.onClick)||e.call(a)},children:u?a.viewLessText:a.viewMoreText}),r&&!r.hide?ge.jsx(ps,{dataTest:"go-to-button",className:Ls,size:"small",href:r.href,onClick:r.onClick,content:r.content}):ge.jsx("div",{})]})]})},Fs="_styled-module-title_174mo_1",As=function(e){return ge.jsx("h1",{"data-test":e.dataTest,className:Fs,children:e.children})},Bs="_dialog_erjok_1",Vs="_hidden_erjok_9";function qs(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M10 21v-2H6.41l4.5-4.5l-1.41-1.41l-4.5 4.5V14H3v7zm4.5-10.09l4.5-4.5V10h2V3h-7v2h3.59l-4.5 4.5z"})})}function Hs(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M19.5 3.09L15 7.59V4h-2v7h7V9h-3.59l4.5-4.5zM4 13v2h3.59l-4.5 4.5l1.41 1.41l4.5-4.5V20h2v-7z"})})}const Ws="object"==typeof global&&global&&global.Object===Object&&global;var Us="object"==typeof self&&self&&self.Object===Object&&self;const Ks=(Ws||Us||Function("return this")()).Symbol;var Gs=Object.prototype,Ys=Gs.hasOwnProperty,Xs=Gs.toString,Js=Ks?Ks.toStringTag:void 0;var Zs=Object.prototype.toString;var Qs="[object Null]",el="[object Undefined]",tl=Ks?Ks.toStringTag:void 0;function ol(e){return null==e?void 0===e?el:Qs:tl&&tl in Object(e)?function(e){var t=Ys.call(e,Js),o=e[Js];try{e[Js]=void 0;var r=!0}catch{}var n=Xs.call(e);return r&&(t?e[Js]=o:delete e[Js]),n}(e):function(e){return Zs.call(e)}(e)}const rl=Array.isArray;function nl(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=ol(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const il=({onCloseText:e="",onMinimizeText:t="",onExpandText:o="",onFullScreenText:r="",showCloseIcon:i=!0,showMinimizeIcon:a=!0,showExpandIcon:s=!0,showFullScreenIcon:c=!0,title:d,label:u,children:p,open:h,onClose:f,className:m="",primaryButtonText:g,primaryButtonLoading:y=!1,secondaryButtonText:x,onPrimaryButtonClick:b,onSecondaryButtonClick:v,dataTest:w,actionNode:j,extraActions:k,extraActionsText:C,btnContainerClassName:N,footerClassName:_,footerInfo:S,locale:T="en",enableFullscreen:E=!0,fullScreenState:O,handleFullScreenState:M})=>{const[I,R]=n(!1),[z,L]=n(!1),{open:$,anchorEl:P,handleOpen:D,handleClose:F}=(()=>{const[e,t]=n(null),o=!!e,r=l((e=>{t(e.currentTarget)}),[]);return{open:o,handleClose:l((()=>{t(null)}),[]),handleOpen:r,anchorEl:e}})();if(!h)return null;const A=void 0!==O?O:z,B=g||y,V=B||x,q=()=>{R(!I)};return ge.jsxs(ge.Fragment,{children:[A&&!I&&ge.jsx("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),ge.jsx("div",{style:{zIndex:51},className:ya(Bs,!I&&Vs),children:ge.jsxs("div",{className:si("flex items-center justify-between",!I&&"hidden"),"data-test":w,children:[ge.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:d}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[s&&ge.jsx(Xi,{title:"en"===T?"Expand":"Utvid",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"minimize-button",variant:"text",size:"small",onClick:q,endIcon:s&&ge.jsx(yr,{height:20,width:20,color:"text-gama-500"}),children:o})})}),i&&ge.jsx(Xi,{title:"en"===T?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"close-button",variant:"textGray",size:"small",onClick:f,endIcon:i&&ge.jsx(Vo,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]})}),ge.jsxs("div",{className:ya("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",m&&!I?m:"",I&&"!h-0 !w-0 opacity-0 duration-0",A&&!I&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0"),"data-test":w,children:[ge.jsxs("div",{className:"flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[u?ge.jsx("div",{className:"text-sm text-delta-700",children:u}):ge.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:d}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[j,a&&ge.jsx(Xi,{title:"en"===T?"Minimize":"Minimer",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:q,endIcon:a&&ge.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:t})})}),E&&c&&ge.jsx(Xi,{title:A?"en"===T?"Exit full screen":"Avslutt fullskjerm":"en"===T?"Full screen":"Fullskjerm",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==O&&M?M():L(!z)},endIcon:A?ge.jsx(Hs,{width:20,height:20,color:"text-delta-700"}):ge.jsx(qs,{width:20,height:20,color:"text-delta-700"}),children:r})})}),i&&ge.jsx(Xi,{title:"en"===T?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"close-button",variant:"textGray",size:"small",onClick:f,endIcon:ge.jsx(Vo,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]}),u&&ge.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:d})]}),ge.jsxs("div",{className:si("flex flex-col",A&&!I&&"h-[87dvh]"),children:[ge.jsx("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof p?p({fullScreen:A}):p}),(rl(k)&&null!=k&&k.length||nl(k))&&C||S?ge.jsxs("div",{className:ya("flex items-center justify-between p-4 border-0 border-t-[1px] border-solid border-delta-200 bg-white",_),children:[rl(k)&&null!=k&&k.length&&C?ge.jsxs(ge.Fragment,{children:[ge.jsx(ia,{dataTest:"extra-actions-button",variant:"textGray",startIcon:ge.jsx(Io,{width:24,height:24}),onClick:D,children:C}),ge.jsx(ns,{open:$,anchorEl:P,onClose:F,children:k.map((e=>ge.jsx(is,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):C&&nl(k)&&ge.jsx(ia,{dataTest:"extra-action-button",variant:"text",onClick:k,children:C})," ",S,V?ge.jsxs("div",{className:ya("flex justify-end gap-x-4",N),children:[x&&v&&ge.jsx(ia,{dataTest:"cancel-button",variant:"outlined",onClick:v,children:x}),B&&b&&ge.jsx(ia,{dataTest:"save-button",startIcon:y&&ge.jsx(Ha,{width:24,height:24}),onClick:b,children:g})]}):null]}):ge.jsx(ge.Fragment,{children:V?ge.jsxs("div",{className:ya("flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",N),children:[x&&v&&ge.jsx(ia,{dataTest:"cancel-button",variant:"outlined",onClick:v,children:x}),B&&b&&ge.jsx(ia,{dataTest:"save-button",startIcon:y&&ge.jsx(Ha,{width:24,height:24}),onClick:b,children:g})]}):null})]})]})]})},al=({showCloseIcon:e,tooltipTitle:t,onClick:o,title:r})=>e?ge.jsx("div",{children:ge.jsx(Xi,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"close-button",variant:"textGray",size:"small",onClick:o,endIcon:ge.jsx(Vo,{height:20,width:20,color:"text-delta-700"}),children:r})})})}):null,sl=({visibility:e,tooltipTitle:t,onClick:o,title:r,type:n})=>{if(!e)return null;const i="minimize"===n;return"expand"===n?ge.jsx("div",{children:ge.jsx(Xi,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"toggle-minimize-btn",variant:"text",size:"small",onClick:o,endIcon:ge.jsx(yr,{height:20,width:20,color:"text-gama-500"}),children:r})})})}):i?ge.jsx("div",{children:ge.jsx(Xi,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"toggle-minimize-btn",variant:"textGray",size:"small",onClick:o,endIcon:ge.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:r})})})}):null},ll="_minimized-dialog_1tnc1_5",cl="_dialog_1tnc1_1",dl="_hidden_1tnc1_25",ul=({fullScreen:e,showFullScreenIcon:t,title:o,tooltipTitle:r,onClick:n})=>t?ge.jsx(ge.Fragment,{children:t&&ge.jsx(Xi,{title:r,children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:n,endIcon:e?ge.jsx(Hs,{width:20,height:20,color:"text-delta-700"}):ge.jsx(qs,{width:20,height:20,color:"text-delta-700"}),children:o})})})}):null,pl=({onCloseText:e="",onMinimizeText:t="",onExpandText:o="",onFullScreenText:r="",showCloseIcon:i=!0,showMinimizeIcon:a=!0,showExpandIcon:s=!0,enableFullscreen:l=!0,fullScreenState:c,handleFullScreenState:d,title:u,label:p,children:h,open:f,onClose:m,classNameOverrides:g={maximized:"",minimized:"",fullscreen:""},dataTest:y,actionNode:x,tooltipOverrides:b={maximized:"",minimized:"",close:"",fullscreen:""}})=>{const[v,w]=n(!1),[j,k]=n(!1);if(!f)return null;const C=void 0!==c?c:j,N=()=>{w(!v)};return ge.jsxs(ge.Fragment,{children:[ge.jsx("div",{style:{zIndex:51},className:ya(ll,!v&&dl,g.minimized),children:ge.jsxs("div",{className:si("flex items-center justify-between",!v&&"hidden"),"data-test":y,children:[ge.jsx("div",{className:"truncate max-w-[303px] text-lg font-semibold text-delta-800 pr-1",children:ge.jsx(Xi,{title:u,placement:"top",children:ge.jsx("div",{className:"truncate",children:u})})}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[ge.jsx(sl,{type:"expand",visibility:s,onClick:N,title:o,tooltipTitle:b.maximized||"Expand"}),ge.jsx(al,{showCloseIcon:i,onClick:m,title:e,tooltipTitle:b.close||"Close"})]})]})}),C&&!v&&ge.jsx("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),ge.jsxs("div",{style:{zIndex:51},className:ya(cl,v&&dl,g.maximized,C&&!v&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0",C&&g.fullscreen),children:[ge.jsxs("div",{className:"flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[p?ge.jsx("div",{className:"text-sm text-delta-700",children:p}):ge.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:u}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[x,ge.jsx(sl,{visibility:a,type:"minimize",onClick:N,title:t,tooltipTitle:b.minimized||"Minimize"}),ge.jsx(ul,{showFullScreenIcon:l,fullScreen:C,onClick:()=>{void 0!==c&&d?d():k(!j)},title:r,tooltipTitle:b.fullscreen||(C?"Exit full screen":"Full screen")}),ge.jsx(al,{showCloseIcon:i,onClick:m,title:e,tooltipTitle:b.close||"Close"})]})]}),p&&ge.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:u})]}),ge.jsx("div",{className:ya(v&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:h})]})]})};export{Po as ArchiveIcon,bo as AssignmentIcon,vo as AssignmentOutlineIcon,B as Avatar,br as BadgeIcon,eo as BellIcon,Qt as BellOutlineIcon,rr as CalendarBlankOutlineIcon,go as CalendarIcon,xo as CalendarRangeIcon,Fo as CheckBoxCheckedIcon,mo as CheckFactIcon,fo as CheckFactOutlineIcon,qo as CheckIcon,ho as CheckOutlineIcon,no as ChevronDoubleLeftIcon,io as ChevronDoubleRightIcon,Ao as ChevronDownIcon,ro as ChevronLeftIcon,oo as ChevronRightIcon,Bo as ChevronUpIcon,V as ClickAwayListener,Vo as CloseIcon,mr as ConsentsIcon,q as Container,ks as CopyButton,_s as CopyWrapper,lo as DashboardViewIcon,co as DashboardViewOutlineIcon,Jo as DeleteOutlineIcon,Io as DotsVerticalIcon,Do as DownloadIcon,Yo as DragHorizontalIcon,$o as DropDownIcon,Lo as DropUpIcon,er as DvrIcon,dr as EarthIcon,vr as EditSquareIcon,tr as ErrorOutlineIcon,H as Fade,ir as FastCheckOutlineIcon,Xo as FilePdfIcon,Zo as FilterIcon,To as FindReplaceIcon,Eo as FindReplacePeopleIcon,W as FormLabel,to as HamburgerIcon,Cr as HandymanIcon,kr as HandymanOutlineIcon,Uo as InboxOutboxIcon,Ko as InboxOutboxOutlineIcon,yr as KeyboardCapslockIcon,nr as LinkOutlineIcon,wo as ListNumberedIcon,cr as ListSettingsLineIcon,sr as ListStatusIcon,zo as LoadingIcon,Qo as LockIcon,jo as MessageProcessingIcon,ko as MessageProcessingOutlineIcon,xr as MessageReplyIcon,il as MinimizableDialog,pl as MinimizableDialogV2,gr as MinimizeIcon,yo as NewCalendarIcon,fr as OutlineCalendarMonth,U as Paper,so as PdfIcon,pr as PencilOutlineIcon,po as PeopleIcon,uo as PeopleOutlineIcon,Ho as PermMediaIcon,Wo as PermMediaOutline,Oo as PersonIcon,Mo as PersonOutlineIcon,Nr as PinIcon,wr as PlusIcon,jr as PlusIconCircle,K as Popper,ao as QnrIcon,or as ReplayIcon,Co as ReportBoxIcon,No as ReportBoxOutlineIcon,Ro as SearchIcon,_o as SettingsIcon,ur as SettingsMenuHorizontalIcon,So as SettingsOutlineIcon,G as Skeleton,Y as Stack,ms as StyledAccordion,ys as StyledAccordionDetails,gs as StyledAccordionSummary,ye as StyledBadge,ia as StyledButton,Sa as StyledCheckbox,Sr as StyledChip,ha as StyledDialog,xa as StyledDialogActions,va as StyledDialogContent,ja as StyledDialogTitle,rs as StyledDrawer,Ca as StyledEmptyPage,bs as StyledFilterButton,js as StyledFilterMenu,Za as StyledFormControl,Qa as StyledFormControlLabel,os as StyledFormGroup,es as StyledFormHelperText,oa as StyledFormLabel,Ta as StyledInputField,ts as StyledInputLabel,Tr as StyledInteractiveChip,Ja as StyledLabel,ps as StyledLink,_a as StyledLoading,ns as StyledMenu,is as StyledMenuItem,as as StyledMenuList,As as StyledModuleTitle,xs as StyledPopover,Ya as StyledRadio,Xa as StyledRadioGroup,Ea as StyledSearchField,Ia as StyledSelect,$a as StyledSelectAutocomplete,Ra as StyledSelectItem,Pa as StyledSlider,Ga as StyledSwitch,hs as StyledTab,fs as StyledTabs,Ma as StyledTextarea,Xi as StyledTooltip,Ji as StyledTypography,Ds as StyledWidget,Os as StyledWidgetHeader,Ts as StyledWidgetTitle,lr as TextBoxCheckOutlineIcon,Go as TopicIcon,ar as UnknownDocumentOutlineRoundedIcon,hr as WarningAmberOutlineIcon,_r as WorkIcon,ee as omit,de as prepareForSlot,le as setMidnightTime,ce as setZeroTime};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.1.25",
6
+ "version": "3.1.27",
7
7
  "type": "module",
8
8
  "files": [
9
9
  "dist/**/*",