asma-core-ui 3.1.40 → 3.1.42

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 @@ var e=Object.defineProperty,t=(t,n,r)=>(((t,n,r)=>{n in t?e(t,n,{enumerable:!0,c
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?Fa.exports=function(){if(La)return Ba;La=1;var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=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,n,r){var s,l={},c=null,u=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)o.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}return Ba.Fragment=n,Ba.jsx=s,Ba.jsxs=s,Ba}():Fa.exports=($a||($a=1,"production"!==process.env.NODE_ENV&&function(){var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=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"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator",y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,o)}(0,e,n)}var v;function x(e){return e.displayName||"Context"}function w(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 o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return x(e)+".Consumer";case s:return x(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:w(e.type)||"Memo";case f:var r=e,h=r._payload,m=r._init;try{return w(m(h))}catch{return null}}return null}v=Symbol.for("react.module.reference");var k,C,j,N,_,S,E,O=Object.assign,T=0;function I(){}I.__reactDisabledLog=!0;var M,R=y.ReactCurrentDispatcher;function D(e,t,n){if(void 0===M)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);M=r&&r[1]||""}return"\n"+M+e}var P,z=!1,A="function"==typeof WeakMap?WeakMap:Map;function L(e,t){if(!e||z)return"";var n,r=P.get(e);if(void 0!==r)return r;z=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=R.current,R.current=null,function(){if(0===T){k=console.log,C=console.info,j=console.warn,N=console.error,_=console.group,S=console.groupCollapsed,E=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})}T++}();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){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&P.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{z=!1,R.current=o,function(){if(0==--T){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:k}),info:O({},e,{value:C}),warn:O({},e,{value:j}),error:O({},e,{value:N}),group:O({},e,{value:_}),groupCollapsed:O({},e,{value:S}),groupEnd:O({},e,{value:E})})}T<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?D(p):"";return"function"==typeof e&&P.set(e,f),f}function $(e,t,n){if(null==e)return"";if("function"==typeof e)return L(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return D(e);switch(e){case u:return D("Suspense");case d:return D("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,n){return L(e,!1)}(e.render);case p:return $(e.type,t,n);case f:var o=e,i=o._payload,a=o._init;try{return $(a(i),t,n)}catch{}}return""}P=new A;var F=Object.prototype.hasOwnProperty,B={},V=y.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=$(e.type,e._source,t?t.type:null);V.setExtraStackFrame(n)}else V.setExtraStackFrame(null)}var H=Array.isArray;function U(e){return H(e)}function W(e){return""+e}function K(e){if(function(e){try{return W(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.",(t=e,"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object")),W(e);var t}var G,Y,X,J=y.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};X={};var Q=function(e,n,r,o,i,a,s){var l={$$typeof:t,type:e,key:n,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:o}),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,ne=y.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,n=$(e.type,e._source,t?t.type:null);ne.setExtraStackFrame(n)}else ne.setExtraStackFrame(null)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}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 n=function(e){var t=ie();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!ae[n]){ae[n]=!0;var r="";e&&e._owner&&e._owner!==te.current&&(r=" It was passed a child from "+w(e._owner.type)+"."),re(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.',n,r),re(null)}}}function le(e,t){if("object"==typeof e)if(U(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&se(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var o=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 o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)oe(i.value)&&se(i.value,t)}}function ce(e,n,r,m,g,y){var x,k=!("string"!=typeof(x=e)&&"function"!=typeof x&&x!==o&&x!==a&&x!==i&&x!==u&&x!==d&&x!==h&&("object"!=typeof x||null===x||x.$$typeof!==f&&x.$$typeof!==p&&x.$$typeof!==s&&x.$$typeof!==l&&x.$$typeof!==c&&x.$$typeof!==v&&void 0===x.getModuleId));if(!k){var C="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(C+=" 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 j,N=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);C+=N||ie(),null===e?j="null":U(e)?j="array":void 0!==e&&e.$$typeof===t?(j="<"+(w(e.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):j=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",j,C)}var _=function(e,t,n,r,o){var i,a,s,l,c={},u=null,d=null;for(i in void 0!==n&&(K(n),u=""+n),function(e){if(F.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),u=""+t.key),function(e){if(F.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(d=t.ref,function(e,t){if("string"==typeof e.ref&&J.current&&t&&J.current.stateNode!==t){var n=w(J.current.type);X[n]||(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',w(J.current.type),e.ref),X[n]=!0)}}(t,o)),t)F.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(u||d){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;u&&(a=c,s=f,(l=function(){G||(G=!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)",s))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:l,configurable:!0})),d&&function(e,t){var n=function(){Y||(Y=!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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(c,f)}return Q(e,u,d,o,r,J.current,c)}(e,n,r,g,y);if(null==_)return _;if(k){var S=n.children;if(void 0!==S)if(m)if(U(S)){for(var E=0;E<S.length;E++)le(S[E],e);Object.freeze&&Object.freeze(S)}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 le(S,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){re(e),b("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),b("Invalid attribute `ref` supplied to `React.Fragment`."),re(null))}(_):function(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=w(n);!function(e,t,n,r,o){var i=Function.call.bind(F);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")+": "+n+" 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,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(q(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",n,a,typeof s),q(null)),s instanceof Error&&!(s.message in B)&&(B[s.message]=!0,q(o),b("Failed %s type: %s",n,s.message),q(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ee||(ee=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(_),_}Va.Fragment=o,Va.jsx=function(e,t,n){return ce(e,t,n,!1)},Va.jsxs=function(e,t,n){return ce(e,t,n,!0)}}()),Va);var qa=Fa.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 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:"M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41z"})})}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:"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,...n})=>ge.jsx(_,{...n,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(Ua,{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(S,{...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(E,{"data-test":e,...t}),Ja=({children:e,onClick:t,className:n,dataTest:r,style:o})=>ge.jsx("div",{className:si("_styled-label_1fp95_1",n),style:o,onClick:t,"data-test":r,children:e}),Za=e=>ge.jsx(O,{...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(I,{...e}),ts=e=>ge.jsx(M,{...e}),ns=e=>ge.jsx(R,{...e}),rs=e=>ge.jsx(D,{...e}),os=e=>{var t,n;return ge.jsx(P,{...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==(n=e.classes)?void 0:n.list),...e.classes}})},is=e=>{var t;return ge.jsx(k,{...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",us="_styled-link-small_hyb3l_37",ds="_styled-link-large_hyb3l_42",ps=({href:e,disabled:t,size:n="large",dataTest:r,reflink:o,className:i,content:a,contentNode:s,...l})=>{let c=ds;switch(n){case"small":c=us;break;case"xs":c=cs;break;default:c=ds}return t?ge.jsxs("span",{className:si(ss,ls,c,i),children:[a,s]}):ge.jsxs("a",{...l,"data-test":r,ref:o,href:e,className:si(ss,c,i),children:[a,s]})},fs=e=>ge.jsx(A,{...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)"}}}),hs=e=>ge.jsx(L,{...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)"}}});function ms(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}function gs({controlled:e,default:t,name:r,state:o="value"}){const{current:i}=n.useRef(void 0!==e),[a,s]=n.useState(t),l=i?e:a;if("production"!==process.env.NODE_ENV){n.useEffect((()=>{i!==(void 0!==e)&&console.error([`Base UI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[o,r,e]);const{current:a}=n.useRef(t);n.useEffect((()=>{!i&&!Object.is(a,t)&&console.error([`Base UI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"))}),[JSON.stringify(t)])}return[l,n.useCallback((e=>{i||s(e)}),[])]}const ys={};function bs(e,t){const r=n.useRef(ys);return r.current===ys&&(r.current=e(t)),r}const vs=n[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],xs=vs&&vs!==n.useLayoutEffect?vs:e=>e();function ws(e){const t=bs(ks).current;return t.next=e,xs(t.effect),t.trampoline}function ks(){const e={next:void 0,callback:Cs,trampoline:(...t)=>{var n;return null==(n=e.callback)?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function Cs(){if("production"!==process.env.NODE_ENV)throw new Error("Base UI: Cannot call an event handler while rendering.")}const js=typeof document<"u"?n.useLayoutEffect:()=>{};function Ns(e,t,n,r){const o=bs(_s).current;return function(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}(o,e,t,n,r)&&Ss(o,[e,t,n,r]),o.callback}function _s(){return{callback:null,cleanup:null,refs:[]}}function Ss(e,t){e.refs=t,t.every((e=>null==e))?e.callback=null:e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){const r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const o=t[e];if(null!=o)switch(typeof o){case"function":{const t=o(n);"function"==typeof t&&(r[e]=t);break}case"object":o.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const n=t[e];if(null!=n)switch(typeof n){case"function":{const t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}const Es=parseInt(n.version,10);function Os(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}const Ts={};function Is(e,t,n,r,o){let i={...Ps(e,Ts)};return t&&(i=Ms(i,t)),n&&(i=Ms(i,n)),r&&(i=Ms(i,r)),o&&(i=Ms(i,o)),i}function Ms(e,t){return Ds(t)?t(e):function(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":e[n]=Os(e.style,r);break;case"className":e[n]=Ls(e.className,r);break;default:Rs(n,r)?e[n]=zs(e[n],r):e[n]=r}}return e}(e,t)}function Rs(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||typeof t>"u")}function Ds(e){return"function"==typeof e}function Ps(e,t){return Ds(e)?e(t):e??Ts}function zs(e,t){return t?e?n=>{if(function(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}(n)){const r=n;As(r);const o=t(r);return r.baseUIHandlerPrevented||null==e||e(r),o}const r=t(n);return null==e||e(n),r}:t:e}function As(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Ls(e,t){return t?e?t+" "+e:t:e}const $s={};function Fs(e,t,r={}){const o=t.render,i=function(e,t={}){const{className:r,render:o}=e,{state:i=$s,ref:a,props:s,disableStyleHooks:l,customStyleHookMapping:c,enabled:u=!0}=t,d=u?function(e,t){return"function"==typeof e?e(t):e}(r,i):void 0;let p;!0!==l&&(p=n.useMemo((()=>u?function(e,t){const n={};for(const r in e){const o=e[r];if(null!=t&&t.hasOwnProperty(r)){const e=t[r](o);null!=e&&Object.assign(n,e)}else!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}(i,c):$s),[i,c,u]));const f=u?Os(p,Array.isArray(s)?function(e){if(0===e.length)return Ts;if(1===e.length)return Ps(e[0],Ts);let t={...Ps(e[0],Ts)};for(let n=1;n<e.length;n+=1)t=Ms(t,e[n]);return t}(s):s)??$s:$s;return typeof document<"u"&&(u?Array.isArray(a)?f.ref=function(e){const t=bs(_s).current;return function(e,t){return e.refs.length!==t.length||e.refs.some(((e,n)=>e!==t[n]))}(t,e)&&Ss(t,e),t.callback}([f.ref,Bs(o),...a]):f.ref=Ns(f.ref,Bs(o),a):Ns(null,null)),u?(void 0!==d&&(f.className=Ls(f.className,d)),f):$s}(t,r);if(!1===r.enabled)return null;return function(e,t,r,o){if(t){if("function"==typeof t)return t(r,o);const e=Is(r,t.props);return e.ref=r.ref,n.cloneElement(t,e)}if(e&&"string"==typeof e)return function(e,t){return"button"===e?ge.jsx("button",{type:"button",...t}):"img"===e?ge.jsx("img",{alt:"",...t}):n.createElement(e,t)}(e,r);throw new Error("Base UI: Render element or function are not defined.")}(e,o,i,r.state??$s)}function Bs(e){return e&&"function"!=typeof e?function(e){return Es>=e}(19)?e.props.ref:e.ref:null}let Vs;function qs(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");Vs.has(t)||(Vs.add(t),console.warn(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(Vs=new Set);const Hs="ArrowUp",Us="ArrowDown",Ws="ArrowLeft",Ks="ArrowRight",Gs=n.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Ys(e){const{children:t,elementsRef:r,labelsRef:o,onMapChange:i}=e,a=n.useRef(0),s=bs(Js).current,l=bs(Xs).current,[c,u]=n.useState(0),d=n.useRef(c),p=ws(((e,t)=>{l.set(e,t??null),d.current+=1,u(d.current)})),f=ws((e=>{l.delete(e),d.current+=1,u(d.current)})),h=n.useMemo((()=>{const e=new Map;return Array.from(l.keys()).sort(Zs).forEach(((t,n)=>{const r=l.get(t)??{};e.set(t,{...r,index:n})})),e}),[l,c]);js((()=>{d.current===c&&(r.current.length!==h.size&&(r.current.length=h.size),o&&o.current.length!==h.size&&(o.current.length=h.size)),null==i||i(h)}),[i,h,r,o,c,d]);const m=ws((e=>(s.add(e),()=>{s.delete(e)})));js((()=>{s.forEach((e=>e(h)))}),[s,h]);const g=n.useMemo((()=>({register:p,unregister:f,subscribeMapChange:m,elementsRef:r,labelsRef:o,nextIndexRef:a})),[p,f,m,r,o,a]);return ge.jsx(Gs.Provider,{value:g,children:t})}function Xs(){return new Map}function Js(){return new Set}function Zs(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}"production"!==process.env.NODE_ENV&&(Gs.displayName="CompositeListContext");const Qs=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Qs.displayName="DirectionContext");const el=n.createContext(void 0);function tl(){const e=n.useContext(el);if(void 0===e)throw new Error("Base UI: AccordionRootContext is missing. Accordion parts must be placed within <Accordion.Root>.");return e}"production"!==process.env.NODE_ENV&&(el.displayName="AccordionRootContext");const nl=new Set([Us,Hs,Ks,Ws,"Home","End"]),rl={value:()=>null};const ol=n.forwardRef((function(e,t){const{className:r,disabled:o=!1,hiddenUntilFound:i,keepMounted:a,loop:s=!0,onValueChange:l,openMultiple:c=!0,orientation:u="vertical",value:d,defaultValue:p,...f}=e,h=function(e=!0){const t=n.useContext(Qs);if(void 0===t&&!e)throw new Error("Base UI: DirectionContext is missing.");return(null==t?void 0:t.direction)??"ltr"}();"production"!==process.env.NODE_ENV&&js((()=>{i&&!1===a&&qs("The `keepMounted={false}` prop on a Accordion.Root will be ignored when using `hiddenUntilFound` since it requires Panels to remain mounted when closed.")}),[i,a]);const m=n.useMemo((()=>{if(void 0===d)return p??[]}),[d,p]),g=ws(l),y=n.useRef([]),[b,v]=gs({controlled:d,default:m,name:"Accordion",state:"value"}),x=n.useCallback(((e,t)=>{if(c)if(t){const t=b.slice();t.push(e),v(t),g(t)}else{const t=b.filter((t=>t!==e));v(t),g(t)}else{const t=b[0]===e?[]:[e];v(t),g(t)}}),[g,c,v,b]),w="rtl"===h,k="horizontal"===u,C=n.useMemo((()=>({value:b,disabled:o,orientation:u})),[b,o,u]),j=n.useMemo((()=>({accordionItemRefs:y,direction:h,disabled:o,handleValueChange:x,hiddenUntilFound:i??!1,keepMounted:a??!1,orientation:u,state:C,value:b})),[h,o,x,i,a,u,C,b]),N=Fs("div",e,{state:C,ref:t,props:[{dir:h,role:"region",onKeyDown(e){if(!nl.has(e.key))return;!function(e){e.preventDefault(),e.stopPropagation()}(e);const t=function(e){const{current:t}=e,n=[];for(let e=0;e<t.length;e+=1){const r=t[e];if(!ms(r)){const e=null==r?void 0:r.querySelector('[type="button"]');ms(e)||n.push(e)}}return n}(y),n=t.length-1;let r=-1;const o=t.indexOf(e.target);function i(){r=s?o+1>n?0:o+1:Math.min(o+1,n)}function a(){r=s&&0===o?n:o-1}switch(e.key){case Us:k||i();break;case Hs:k||a();break;case Ks:k&&(w?a():i());break;case Ws:k&&(w?i():a());break;case"Home":r=0;break;case"End":r=n}r>-1&&t[r].focus()}},f],customStyleHookMapping:rl});return ge.jsx(el.Provider,{value:j,children:ge.jsx(Ys,{elementsRef:y,children:N})})}));"production"!==process.env.NODE_ENV&&(ol.displayName="AccordionRoot");const il={...n};let al=0;const sl=il.useId;function ll(e,t){if(void 0!==sl){const n=sl();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){const[r,o]=n.useState(e),i=e||r;return n.useEffect((()=>{null==r&&(al+=1,o(`${t}-${al}`))}),[r,t]),i}(e,t)}function cl(e){return ll(e,"base-ui")}const ul=[];function dl(e){n.useEffect(e,ul)}class pl{constructor(){t(this,"currentId",0),t(this,"clear",(()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)})),t(this,"disposeEffect",(()=>this.clear))}static create(){return new pl}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}isStarted(){return 0!==this.currentId}}const fl=null;let hl=globalThis.requestAnimationFrame;const ml=new class{constructor(){t(this,"callbacks",[]),t(this,"callbacksCount",0),t(this,"nextId",1),t(this,"startId",1),t(this,"isScheduled",!1),t(this,"tick",(e=>{var t;this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<n.length;r+=1)null==(t=n[r])||t.call(n,e)}))}request(e){const t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;const n="test"===process.env.NODE_ENV&&hl!==requestAnimationFrame&&(hl=requestAnimationFrame,!0);return(!this.isScheduled||n)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){const t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class gl{constructor(){t(this,"currentId",fl),t(this,"cancel",(()=>{this.currentId!==fl&&(ml.cancel(this.currentId),this.currentId=fl)})),t(this,"disposeEffect",(()=>this.cancel))}static create(){return new gl}static request(e){return ml.request(e)}static cancel(e){return ml.cancel(e)}request(e){this.cancel(),this.currentId=ml.request((()=>{this.currentId=fl,e()}))}}function yl(e,t=!1){const n=function(){const e=bs(gl.create).current;return dl(e.disposeEffect),e}(),r=function(){const e=bs(pl.create).current;return dl(e.disposeEffect),e}();return ws(((o,i=null)=>{n.cancel(),r.clear();const a=e.current;a&&("function"!=typeof a.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED?o():n.request((()=>{function e(){a&&Promise.allSettled(a.getAnimations().map((e=>e.finished))).then((()=>{null!=i&&i.aborted||Z.flushSync(o)}))}t?r.start(0,e):e()})))}))}function bl(e){const{open:t,defaultOpen:r,onOpenChange:o,disabled:i}=e,a=void 0!==t,[s,l]=gs({controlled:t,default:r,name:"Collapsible",state:"open"}),{mounted:c,setMounted:u,transitionStatus:d}=function(e,t=!1,r=!1){const[o,i]=n.useState(e&&t?"idle":void 0),[a,s]=n.useState(e);return e&&!a&&(s(!0),i("starting")),!e&&a&&"ending"!==o&&!r&&i("ending"),!e&&!a&&"ending"===o&&i(void 0),js((()=>{if(!e&&a&&"ending"!==o&&r){const e=gl.request((()=>{i("ending")}));return()=>{gl.cancel(e)}}}),[e,a,o,r]),js((()=>{if(!e||t)return;const n=gl.request((()=>{Z.flushSync((()=>{i(void 0)}))}));return()=>{gl.cancel(n)}}),[t,e]),js((()=>{if(!e||!t)return;e&&a&&"idle"!==o&&i("starting");const n=gl.request((()=>{i("idle")}));return()=>{gl.cancel(n)}}),[t,e,a,i,o]),n.useMemo((()=>({mounted:a,setMounted:s,transitionStatus:o})),[a,o])}(s,!0,!0),[p,f]=n.useState(s),[{height:h,width:m},g]=n.useState({height:void 0,width:void 0}),y=cl(),[b,v]=n.useState(),x=b??y,[w,k]=n.useState(!1),[C,j]=n.useState(!1),N=n.useRef(null),_=n.useRef(null),S=n.useRef(null),E=n.useRef(null),O=yl(E,!1),T=ws((()=>{const e=!s,t=E.current;"css-animation"===_.current&&null!=t&&t.style.removeProperty("animation-name"),!w&&!C&&(null!=_.current&&"css-animation"!==_.current&&!c&&e&&u(!0),"css-animation"===_.current&&(!p&&e&&f(!0),!c&&e&&u(!0))),l(e),o(e),"none"===_.current&&c&&!e&&u(!1)}));return js((()=>{a&&"none"===_.current&&!C&&!s&&u(!1)}),[a,C,s,t,u]),n.useMemo((()=>({abortControllerRef:N,animationTypeRef:_,disabled:i,handleTrigger:T,height:h,mounted:c,open:s,panelId:x,panelRef:E,runOnceAnimationsFinish:O,setDimensions:g,setHiddenUntilFound:k,setKeepMounted:j,setMounted:u,setOpen:l,setPanelIdState:v,setVisible:f,transitionDimensionRef:S,transitionStatus:d,visible:p,width:m})),[N,_,i,T,h,c,s,x,E,O,g,k,j,u,l,f,S,d,p,m])}const vl=n.createContext(void 0);function xl(){const e=n.useContext(vl);if(void 0===e)throw new Error("Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>.");return e}"production"!==process.env.NODE_ENV&&(vl.displayName="CollapsibleRootContext");let wl=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function kl(e={}){const{label:t,metadata:r,textRef:o,indexGuessBehavior:i}=e,{register:a,unregister:s,subscribeMapChange:l,elementsRef:c,labelsRef:u,nextIndexRef:d}=n.useContext(Gs),p=n.useRef(-1),[f,h]=n.useState(i===wl.GuessFromOrder?()=>{if(-1===p.current){const e=d.current;d.current+=1,p.current=e}return p.current}:-1),m=n.useRef(null),g=n.useCallback((e=>{var n;if(m.current=e,-1!==f&&null!==e&&(c.current[f]=e,u)){const r=void 0!==t;u.current[f]=r?t:(null==(n=null==o?void 0:o.current)?void 0:n.textContent)??e.textContent}}),[f,c,u,t,o]);return js((()=>{const e=m.current;if(e)return a(e,r),()=>{s(e)}}),[a,s,r]),js((()=>l((e=>{var t;const n=m.current?null==(t=e.get(m.current))?void 0:t.index:null;null!=n&&h(n)}))),[l,h]),n.useMemo((()=>({ref:g,index:f})),[f,g])}const Cl=n.createContext(void 0);function jl(){const e=n.useContext(Cl);if(void 0===e)throw new Error("Base UI: AccordionItemContext is missing. Accordion parts must be placed within <Accordion.Item>.");return e}"production"!==process.env.NODE_ENV&&(Cl.displayName="AccordionItemContext");let Nl=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const _l={[Nl.startingStyle]:""},Sl={[Nl.endingStyle]:""},El={transitionStatus:e=>"starting"===e?_l:"ending"===e?Sl:null};let Ol=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Nl.startingStyle]="startingStyle",e[e.endingStyle=Nl.endingStyle]="endingStyle",e}({}),Tl=function(e){return e.panelOpen="data-panel-open",e}({});const Il={[Ol.open]:""},Ml={[Ol.closed]:""},Rl={open:e=>e?{[Tl.panelOpen]:""}:null},Dl={open:e=>e?Il:Ml};let Pl=function(e){return e.index="data-index",e.disabled="data-disabled",e.open="data-open",e}({});const zl={...Dl,index:e=>Number.isInteger(e)?{[Pl.index]:String(e)}:null,...El,value:()=>null},Al=n.forwardRef((function(e,t){const{className:r,disabled:o=!1,onOpenChange:i,render:a,value:s,...l}=e,{ref:c,index:u}=kl(),d=Ns(t,c),{disabled:p,handleValueChange:f,state:h,value:m}=tl(),g=s??u,y=o||p,b=n.useMemo((()=>{if(!m)return!1;for(let e=0;e<m.length;e+=1)if(m[e]===g)return!0;return!1}),[m,g]),v=ws((e=>{f(g,e),null==i||i(e)})),x=bl({open:b,onOpenChange:v,disabled:y}),w=n.useMemo((()=>({open:x.open,disabled:x.disabled,hidden:!x.mounted})),[x.open,x.disabled,x.mounted]),k=n.useMemo((()=>({...x,onOpenChange:v,state:w,transitionStatus:x.transitionStatus})),[x,w,v]),C=n.useMemo((()=>({...h,index:u,disabled:y,open:b})),[y,u,b,h]),[j,N]=n.useState(cl()),_=n.useMemo((()=>({open:b,state:C,setTriggerId:N,triggerId:j})),[b,C,N,j]),S=Fs("div",e,{state:C,ref:d,props:l,customStyleHookMapping:zl});return ge.jsx(vl.Provider,{value:k,children:ge.jsx(Cl.Provider,{value:_,children:S})})}));"production"!==process.env.NODE_ENV&&(Al.displayName="AccordionItem");const Ll=n.forwardRef((function(e,t){const{render:n,className:r,...o}=e,{state:i}=jl();return Fs("h3",e,{state:i,ref:t,props:o,customStyleHookMapping:zl})}));"production"!==process.env.NODE_ENV&&(Ll.displayName="AccordionHeader");const $l=n.createContext(void 0);function Fl(e={}){const{disabled:t=!1,focusableWhenDisabled:r,tabIndex:o=0,native:i=!0}=e,a=n.useRef(null),s=void 0!==function(e=!1){const t=n.useContext($l);if(void 0===t&&!e)throw new Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return t}(!0),l=ws((()=>{const e=a.current;return!("A"!==(null==e?void 0:e.tagName)||null==e||!e.href)})),{props:c}=function(e){const{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:i=0,isNativeButton:a}=e,s=o&&!1!==t,l=o&&!1===t;return{props:n.useMemo((()=>{const e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return o||(e.tabIndex=i,!a&&r&&(e.tabIndex=t?i:-1)),(a&&(t||s)||!a&&r)&&(e["aria-disabled"]=r),a&&(!t||l)&&(e.disabled=r),e}),[o,r,t,s,l,a,i])}}({focusableWhenDisabled:r,disabled:t,composite:s,tabIndex:o,isNativeButton:i});return js((()=>{const e=a.current;e instanceof HTMLButtonElement&&s&&t&&void 0===c.disabled&&e.disabled&&(e.disabled=!1)}),[t,c.disabled,s]),{getButtonProps:n.useCallback(((e={})=>{const{onClick:n,onMouseDown:r,onKeyUp:o,onKeyDown:a,onPointerDown:s,...u}=e;return Is({type:i?"button":void 0,onClick(e){t?e.preventDefault():null==n||n(e)},onMouseDown(e){t||null==r||r(e)},onKeyDown(e){t||(As(e),null==a||a(e)),!e.baseUIHandlerPrevented&&e.target===e.currentTarget&&!i&&!l()&&"Enter"===e.key&&!t&&(null==n||n(e),e.preventDefault())},onKeyUp(e){t||(As(e),null==o||o(e)),!e.baseUIHandlerPrevented&&e.target===e.currentTarget&&!i&&!t&&" "===e.key&&(null==n||n(e))},onPointerDown(e){t?e.preventDefault():null==s||s(e)}},i?void 0:{role:"button"},c,u)}),[t,c,i,l]),buttonRef:a}}"production"!==process.env.NODE_ENV&&($l.displayName="CompositeRootContext");const Bl=n.forwardRef((function(e,t){const{disabled:r,className:o,id:i,render:a,nativeButton:s=!0,...l}=e,{panelId:c,open:u,handleTrigger:d,disabled:p}=xl(),f=r??p,{getButtonProps:h,buttonRef:m}=Fl({disabled:f,focusableWhenDisabled:!0,native:s}),{state:g,setTriggerId:y,triggerId:b}=jl();js((()=>(i&&y(i),()=>{y(void 0)})),[i,y]);return Fs("button",e,{state:g,ref:[t,m],props:[n.useMemo((()=>({"aria-controls":u?c:void 0,"aria-expanded":u,disabled:f,id:b,onClick:d})),[c,f,b,u,d]),l,h],customStyleHookMapping:Rl})}));"production"!==process.env.NODE_ENV&&(Bl.displayName="AccordionTrigger");let Vl=function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e}({});let ql=function(e){return e.accordionPanelHeight="--accordion-panel-height",e.accordionPanelWidth="--accordion-panel-width",e}({});function Hl(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Ul(e){const{enabled:t=!0,open:r,ref:o,onComplete:i}=e,a=function(e){const t=bs(Hl,e).current;return t.next=e,js(t.effect),t}(r),s=ws(i),l=yl(o,r);n.useEffect((()=>{t&&l((()=>{r===a.current&&s()}))}),[t,r,s,l,a])}const Wl=n.forwardRef((function(e,t){const{className:r,hiddenUntilFound:o,keepMounted:i,id:a,render:s,...l}=e,{hiddenUntilFound:c,keepMounted:u}=tl(),{abortControllerRef:d,animationTypeRef:p,height:f,mounted:h,onOpenChange:m,open:g,panelId:y,panelRef:b,runOnceAnimationsFinish:v,setDimensions:x,setHiddenUntilFound:w,setKeepMounted:k,setMounted:C,setOpen:j,setVisible:N,transitionDimensionRef:_,visible:S,width:E,setPanelIdState:O,transitionStatus:T}=xl(),I=o??c,M=i??u;"production"!==process.env.NODE_ENV&&js((()=>{!1===i&&I&&qs("The `keepMounted={false}` prop on a Accordion.Panel will be ignored when using `contextHiddenUntilFound` on the Panel or the Root since it requires the panel to remain mounted when closed.")}),[I,i]),js((()=>{if(a)return O(a),()=>{O(void 0)}}),[a,O]),js((()=>{w(I)}),[w,I]),js((()=>{k(M)}),[k,M]),Ul({open:g,ref:b,onComplete(){g&&x({width:void 0,height:void 0})}});const{props:R}=function(e){const{abortControllerRef:t,animationTypeRef:r,externalRef:o,height:i,hiddenUntilFound:a,keepMounted:s,id:l,mounted:c,onOpenChange:u,open:d,panelRef:p,runOnceAnimationsFinish:f,setDimensions:h,setMounted:m,setOpen:g,setVisible:y,transitionDimensionRef:b,visible:v,width:x}=e,w=n.useRef(!1),k=n.useRef(null),C=n.useRef(d),j=n.useRef(d),N=n.useMemo((()=>"css-animation"===r.current?!v:!d&&!c),[d,c,v,r]),_=ws((e=>{if(!e)return;if(null==r.current||null==b.current){const t=getComputedStyle(e),n="none"!==t.animationName&&""!==t.animationName,o="0s"!==t.transitionDuration&&""!==t.transitionDuration;n&&o?"production"!==process.env.NODE_ENV&&qs("CSS transitions and CSS animations both detected on Collapsible or Accordion panel.","Only one of either animation type should be used."):"none"===t.animationName&&"0s"!==t.transitionDuration?r.current="css-transition":"none"!==t.animationName&&"0s"===t.transitionDuration?r.current="css-animation":r.current="none","horizontal"===e.getAttribute(Vl.orientation)||t.transitionProperty.indexOf("width")>-1?b.current="width":b.current="height"}if("css-transition"!==r.current)return;e.style.setProperty("display","block","important"),(void 0===i||void 0===x)&&(h({height:e.scrollHeight,width:e.scrollWidth}),e.style.removeProperty("display"),j.current&&e.style.setProperty("transition-duration","0s"));let t=-1,n=-1;return t=gl.request((()=>{j.current=!1,n=gl.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))})),()=>{gl.cancel(t),gl.cancel(n)}})),S=Ns(o,p,_);return js((()=>{if("css-transition"!==r.current)return;const e=p.current;if(!e)return;let n=-1;if(null!=t.current&&(t.current.abort(),t.current=null),!d){h({height:e.scrollHeight,width:e.scrollWidth}),t.current=new AbortController;const n=t.current.signal;let r=-1;const o=gl.request((()=>{r=gl.request((()=>{f((()=>{h({height:0,width:0}),e.style.removeProperty("content-visibility"),e.style.removeProperty("display"),m(!1),t.current=null}),n)}))}));return()=>{gl.cancel(o),gl.cancel(r)}}return e.style.setProperty("display","block","important"),!j.current&&!s&&e.setAttribute(Ol.startingStyle,""),h({height:e.scrollHeight,width:e.scrollWidth}),n=gl.request((()=>{e.style.removeProperty("display")})),()=>{gl.cancel(n)}}),[t,r,a,s,c,d,p,f,h,m,b]),js((()=>{if("css-animation"!==r.current)return;const e=p.current;e&&(k.current=e.style.animationName||k.current,e.style.setProperty("animation-name","none"),h({height:e.scrollHeight,width:e.scrollWidth}),!C.current&&!w.current&&e.style.removeProperty("animation-name"),d?(null!=t.current&&(t.current.abort(),t.current=null),m(!0),y(!0)):(t.current=new AbortController,f((()=>{m(!1),y(!1),t.current=null}),t.current.signal)))}),[t,r,d,p,f,h,m,y,v]),dl((()=>{const e=gl.request((()=>{C.current=!1}));return()=>gl.cancel(e)})),js((()=>{if(!a)return;const e=p.current;if(!e)return;let t=-1,n=-1;return d&&w.current&&(e.style.transitionDuration="0s",h({height:e.scrollHeight,width:e.scrollWidth}),t=gl.request((()=>{w.current=!1,n=gl.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))}))),()=>{gl.cancel(t),gl.cancel(n)}}),[a,d,p,h]),js((()=>{const e=p.current;e&&a&&N&&(e.setAttribute("hidden","until-found"),"css-transition"===r.current&&e.setAttribute(Ol.startingStyle,""))}),[a,N,r,p]),n.useEffect((function(){const e=p.current;if(e)return e.addEventListener("beforematch",t),()=>{e.removeEventListener("beforematch",t)};function t(){w.current=!0,g(!0),u(!0)}}),[u,p,g]),n.useMemo((()=>({props:{hidden:N,id:l,ref:S}})),[N,l,S])}({abortControllerRef:d,animationTypeRef:p,externalRef:t,height:f,hiddenUntilFound:I,id:a??y,keepMounted:M,mounted:h,onOpenChange:m,open:g,panelRef:b,runOnceAnimationsFinish:v,setDimensions:x,setMounted:C,setOpen:j,setVisible:N,transitionDimensionRef:_,visible:S,width:E}),{state:D,triggerId:P}=jl(),z=Fs("div",e,{state:n.useMemo((()=>({...D,transitionStatus:T})),[D,T]),ref:[t,b],props:[R,{"aria-labelledby":P,role:"region",style:{[ql.accordionPanelHeight]:void 0===f?"auto":`${f}px`,[ql.accordionPanelWidth]:void 0===E?"auto":`${E}px`}},l],customStyleHookMapping:zl});return M||I||!M&&h?z:null}));"production"!==process.env.NODE_ENV&&(Wl.displayName="AccordionPanel");const Kl={AccordionRoot:"_AccordionRoot_vu2vb_1",Header:"_Header_vu2vb_7",Trigger:"_Trigger_vu2vb_11",TriggerIcon:"_TriggerIcon_vu2vb_26",Panel:"_Panel_vu2vb_37",Content:"_Content_vu2vb_48"},Gl=({className:e,children:t,expanded:n,defaultExpanded:r,onChange:o,...i})=>{const a="item",s={...i,type:"single",className:ya(Kl.AccordionRoot,e),onValueChange:e=>{null==o||o(e.includes(a))},...void 0!==n?{value:n?[a]:[]}:{defaultValue:r?[a]:[]}};return ge.jsx(ol,{...s,children:ge.jsx(Al,{value:a,className:Kl.Item,children:t})})},Yl=({size:e="large",className:t,sx:n,children:r,...o})=>{const i="small"===e,a={"--trigger-height":i?"48px":"72px","--trigger-padding-x":i?"8px":"16px","--trigger-font-size":i?"14px":"18px","--chevron-size":i?"20px":"24px",...n};return ge.jsx(Ll,{className:Kl.Header,children:ge.jsxs(Bl,{...o,className:si(Kl.Trigger,t),style:a,children:[r,ge.jsx(Fn,{className:Kl.TriggerIcon,"data-state-icon":!0})]})})},Xl=({children:e,...t})=>ge.jsx(Wl,{...t,className:Kl.Panel,children:ge.jsx("div",{className:Kl.Content,children:e})}),Jl=e=>ge.jsx($,{...e}),Zl=({filterIsActive:e,label:t,size:n="large",variant:r="outlined",...o})=>ge.jsx(ge.Fragment,{children:ge.jsxs("div",{className:"w-fit h-fit relative",children:[ge.jsx(ia,{...o,type:"button",startIcon:ge.jsx(Zn,{width:"large"===n?24:20,height:"large"===n?24:20}),variant:r,size:n,children:t||"Filter"}),e&&ge.jsx("div",{className:si("h-2 w-2 bg-gama-400 rounded-full absolute","large"===n?"top-2 right-2":"top-1 right-1")})]})}),Ql=()=>{const[e,t]=a(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:r=>{e?n():(e=>{t((()=>e.currentTarget))})(r)}}},ec=e=>r.isValidElement(e)||"string"==typeof e||"number"==typeof e||null===e||Array.isArray(e),tc=({filterIsActive:e,popoverContent:t,dataTest:n,disabled:o,size:i="large",variant:a="outlined",popoverProps:s,anchorNode:l,label:c})=>{const{onAnchorClick:u,onClose:d,anchorEl:p}=Ql();return ge.jsxs(ge.Fragment,{children:[ge.jsxs("div",{className:"w-fit h-fit relative",children:[l?r.cloneElement(l({isOpen:!!p,onClose:d}),{onClick:u}):ge.jsx(ia,{type:"button",disabled:o,variant:a,startIcon:ge.jsx(Zn,{width:"large"===i?24:20,height:"large"===i?24:20}),onClick:u,size:i,dataTest:n,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(Jl,{...s,open:!!p,anchorEl:p,onClose:d,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:ec(t)?t:t({isOpen:!!p,onClose:d})})]})},nc=({className:e,contentToCopy:t,locale:n,messageInfo:r,text:o})=>{const i="en"===n?"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(Wa,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},children:!a&&(o||i)})})})},rc="_copy-wrapper_1gjzc_1",oc="_hidden-copy_1gjzc_1",ic=({className:e,contentToCopy:t,locale:n,messageInfo:r,children:o})=>ge.jsxs("div",{className:ya("flex items-center hover:text-gama-500",rc,e),children:[o,ge.jsx(Xi,{title:"no"===n?"Kopier":"Copy",className:oc,children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"copy-button",size:"small",variant:"text",className:"cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},startIcon:ge.jsx(Wa,{width:20,height:20})})})})]}),ac="_styled-widget-title_1gze6_1",sc=function(e){return ge.jsx("div",{className:ac,children:e.children})},lc="_styled-widget-header_1qk88_1",cc=({actions:e,title:t,containerClassname:n,actionsClassname:r})=>ge.jsxs("div",{className:ya(lc,n),children:[ge.jsx(sc,{children:t}),ge.jsx("div",{className:r,children:e})]}),uc="_asma-core-ui-styled-widget_cb7kt_1",dc="_widget-header_cb7kt_13",pc="_widget-content_cb7kt_19",fc="_widget-footer_cb7kt_29",hc="_widget-link_cb7kt_34";function mc(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 gc(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 yc=({children:e,title:t,icon:n,link:r,viewMore:o,persistKey:i,isLoading:l,isEmpty:c,emptyText:u})=>{const[d,p]=a(!1);return s((()=>{if(i){const e=localStorage.getItem(i);p("true"===e)}}),[i]),s((()=>{i&&localStorage.setItem(i,String(d))}),[d,i]),ge.jsxs("div",{className:uc,children:[ge.jsxs("div",{className:dc,children:[n,ge.jsx(sc,{children:t})]}),ge.jsx("div",{className:pc,children:ge.jsxs(ge.Fragment,{children:[e,ge.jsx(_a,{isLoading:l}),ge.jsx(ja,{isEmpty:c,emptyText:u})]})}),ge.jsxs("div",{className:fc,children:[!o||null!=o&&o.hide?ge.jsx("div",{}):ge.jsx(ia,{disabled:o.disabled,dataTest:"view-more",variant:"text",endIcon:d?ge.jsx(mc,{width:20,height:20}):ge.jsx(gc,{width:20,height:20}),onClick:()=>{var e;p(!d),null==(e=null==o?void 0:o.onClick)||e.call(o)},children:d?o.viewLessText:o.viewMoreText}),r&&!r.hide?ge.jsx(ps,{dataTest:"go-to-button",className:hc,size:"small",href:r.href,onClick:r.onClick,content:r.content}):ge.jsx("div",{})]})]})},bc="_styled-module-title_174mo_1",vc=function(e){return ge.jsx("h1",{"data-test":e.dataTest,className:bc,children:e.children})},xc="_dialog_erjok_1",wc="_hidden_erjok_9";function kc(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 Cc(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 jc="object"==typeof global&&global&&global.Object===Object&&global;var Nc="object"==typeof self&&self&&self.Object===Object&&self;const _c=(jc||Nc||Function("return this")()).Symbol;var Sc=Object.prototype,Ec=Sc.hasOwnProperty,Oc=Sc.toString,Tc=_c?_c.toStringTag:void 0;var Ic=Object.prototype.toString;var Mc="[object Null]",Rc="[object Undefined]",Dc=_c?_c.toStringTag:void 0;function Pc(e){return null==e?void 0===e?Rc:Mc:Dc&&Dc in Object(e)?function(e){var t=Ec.call(e,Tc),n=e[Tc];try{e[Tc]=void 0;var r=!0}catch{}var o=Oc.call(e);return r&&(t?e[Tc]=n:delete e[Tc]),o}(e):function(e){return Ic.call(e)}(e)}const zc=Array.isArray;function Ac(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=Pc(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const Lc=({onCloseText:e="",onMinimizeText:t="",onExpandText:n="",onFullScreenText:r="",showCloseIcon:o=!0,showMinimizeIcon:i=!0,showExpandIcon:s=!0,showFullScreenIcon:l=!0,title:c,label:d,children:p,open:f,onClose:h,className:m="",primaryButtonText:g,primaryButtonLoading:y=!1,secondaryButtonText:b,onPrimaryButtonClick:v,onSecondaryButtonClick:x,dataTest:w,actionNode:k,extraActions:C,extraActionsText:j,btnContainerClassName:N,footerClassName:_,footerInfo:S,locale:E="en",enableFullscreen:O=!0,fullScreenState:T,handleFullScreenState:I})=>{const[M,R]=a(!1),[D,P]=a(!1),{open:z,anchorEl:A,handleOpen:L,handleClose:$}=(()=>{const[e,t]=a(null),n=!!e,r=u((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:u((()=>{t(null)}),[]),handleOpen:r,anchorEl:e}})();if(!f)return null;const F=void 0!==T?T:D,B=g||y,V=B||b,q=()=>{R(!M)};return ge.jsxs(ge.Fragment,{children:[F&&!M&&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(xc,!M&&wc),children:ge.jsxs("div",{className:si("flex items-center justify-between",!M&&"hidden"),"data-test":w,children:[ge.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[s&&ge.jsx(Xi,{title:"en"===E?"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:n})})}),o&&ge.jsx(Xi,{title:"en"===E?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:o&&ge.jsx(Vn,{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&&!M?m:"",M&&"!h-0 !w-0 opacity-0 duration-0",F&&!M&&"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:[d?ge.jsx("div",{className:"text-sm text-delta-700",children:d}):ge.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[k,i&&ge.jsx(Xi,{title:"en"===E?"Minimize":"Minimer",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:q,endIcon:i&&ge.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:t})})}),O&&l&&ge.jsx(Xi,{title:F?"en"===E?"Exit full screen":"Avslutt fullskjerm":"en"===E?"Full screen":"Fullskjerm",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==T&&I?I():P(!D)},endIcon:F?ge.jsx(Cc,{width:20,height:20,color:"text-delta-700"}):ge.jsx(kc,{width:20,height:20,color:"text-delta-700"}),children:r})})}),o&&ge.jsx(Xi,{title:"en"===E?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:ge.jsx(Vn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]}),d&&ge.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:c})]}),ge.jsxs("div",{className:si("flex flex-col",F&&!M&&"h-[87dvh]"),children:[ge.jsx("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof p?p({fullScreen:F}):p}),(zc(C)&&null!=C&&C.length||Ac(C))&&j||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:[zc(C)&&null!=C&&C.length&&j?ge.jsxs(ge.Fragment,{children:[ge.jsx(ia,{dataTest:"extra-actions-button",variant:"textGray",startIcon:ge.jsx(Mn,{width:24,height:24}),onClick:L,children:j}),ge.jsx(os,{open:z,anchorEl:A,onClose:$,children:C.map((e=>ge.jsx(is,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):j&&Ac(C)&&ge.jsx(ia,{dataTest:"extra-action-button",variant:"text",onClick:C,children:j})," ",S,V?ge.jsxs("div",{className:ya("flex justify-end gap-x-4",N),children:[b&&x&&ge.jsx(ia,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:b}),B&&v&&ge.jsx(ia,{dataTest:"save-button",startIcon:y&&ge.jsx(Ha,{width:24,height:24}),onClick:v,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:[b&&x&&ge.jsx(ia,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:b}),B&&v&&ge.jsx(ia,{dataTest:"save-button",startIcon:y&&ge.jsx(Ha,{width:24,height:24}),onClick:v,children:g})]}):null})]})]})]})},$c=({showCloseIcon:e,tooltipTitle:t,onClick:n,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:n,endIcon:ge.jsx(Vn,{height:20,width:20,color:"text-delta-700"}),children:r})})})}):null,Fc=({visibility:e,tooltipTitle:t,onClick:n,title:r,type:o})=>{if(!e)return null;const i="minimize"===o;return"expand"===o?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:n,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:n,endIcon:ge.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:r})})})}):null},Bc="_minimized-dialog_1tnc1_5",Vc="_dialog_1tnc1_1",qc="_hidden_1tnc1_25",Hc=({fullScreen:e,showFullScreenIcon:t,title:n,tooltipTitle:r,onClick:o})=>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:o,endIcon:e?ge.jsx(Cc,{width:20,height:20,color:"text-delta-700"}):ge.jsx(kc,{width:20,height:20,color:"text-delta-700"}),children:n})})})}):null,Uc=({onCloseText:e="",onMinimizeText:t="",onExpandText:n="",onFullScreenText:r="",showCloseIcon:o=!0,showMinimizeIcon:i=!0,showExpandIcon:l=!0,enableFullscreen:u=!0,fullScreenState:d,handleFullScreenState:p,title:f,label:h,children:m,open:g,onClose:y,classNameOverrides:b={maximized:"",minimized:"",fullscreen:""},dataTest:v,actionNode:x,tooltipOverrides:w={maximized:"",minimized:"",close:"",enterFullScreen:"",exitFullScreen:""}})=>{const[k,C]=a(!1),[j,N]=a(!1),_=c(null),S=void 0!==d?d:j;if(s((()=>{if(!S)return;const e=e=>_.current&&!_.current.contains(e.target)&&(void 0!==d&&p?p():N(!1));return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[S,p,d]),!g)return null;const E=()=>{C(!k)};return ge.jsxs(ge.Fragment,{children:[ge.jsx("div",{style:{zIndex:51},className:ya(Bc,!k&&qc,b.minimized),children:ge.jsxs("div",{className:si("flex items-center justify-between",!k&&"hidden"),"data-test":v,children:[ge.jsx("div",{className:"truncate max-w-[303px] text-lg font-semibold text-delta-800 pr-1",children:ge.jsx(Xi,{title:f,placement:"top",children:ge.jsx("div",{className:"truncate",children:f})})}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[ge.jsx(Fc,{type:"expand",visibility:l,onClick:E,title:n,tooltipTitle:w.maximized||"Expand"}),ge.jsx($c,{showCloseIcon:o,onClick:y,title:e,tooltipTitle:w.close||"Close"})]})]})}),S&&!k&&ge.jsx("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),ge.jsxs("div",{ref:_,style:{zIndex:51},className:ya(Vc,k&&qc,b.maximized,S&&!k&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0",S&&b.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:[h?ge.jsx("div",{className:"text-sm text-delta-700",children:h}):ge.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:f}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[x,ge.jsx(Fc,{visibility:i,type:"minimize",onClick:E,title:t,tooltipTitle:w.minimized||"Minimize"}),ge.jsx(Hc,{showFullScreenIcon:u,fullScreen:S,onClick:()=>{var e;null==(e=document.activeElement)||e.blur(),void 0!==d&&p?p():N(!j)},title:r,tooltipTitle:S?w.exitFullScreen||"Exit full screen":w.enterFullScreen||"Full screen"}),ge.jsx($c,{showCloseIcon:o,onClick:y,title:e,tooltipTitle:w.close||"Close"})]})]}),h&&ge.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:f})]}),ge.jsx("div",{className:ya(k&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:m})]})]})};export{An as ArchiveIcon,vn as AssignmentIcon,xn as AssignmentOutlineIcon,F as Avatar,vr as BadgeIcon,en as BellIcon,Qt as BellOutlineIcon,rr as CalendarBlankOutlineIcon,gn as CalendarIcon,bn as CalendarRangeIcon,$n as CheckBoxCheckedIcon,mn as CheckFactIcon,hn as CheckFactOutlineIcon,qn as CheckIcon,fn as CheckOutlineIcon,on as ChevronDoubleLeftIcon,an as ChevronDoubleRightIcon,Fn as ChevronDownIcon,rn as ChevronLeftIcon,nn as ChevronRightIcon,Bn as ChevronUpIcon,B as ClickAwayListener,Vn as CloseIcon,mr as ConsentsIcon,V as Container,nc as CopyButton,ic as CopyWrapper,cn as DashboardViewIcon,un as DashboardViewOutlineIcon,Jn as DeleteOutlineIcon,Mn as DotsVerticalIcon,Ln as DownloadIcon,Yn as DragHorizontalIcon,zn as DropDownIcon,Pn as DropUpIcon,er as DvrIcon,ur as EarthIcon,xr as EditSquareIcon,tr as ErrorOutlineIcon,q as Fade,ir as FastCheckOutlineIcon,Xn as FilePdfIcon,Zn as FilterIcon,En as FindReplaceIcon,On as FindReplacePeopleIcon,H as FormLabel,tn as HamburgerIcon,jr as HandymanIcon,Cr as HandymanOutlineIcon,Wn as InboxOutboxIcon,Kn as InboxOutboxOutlineIcon,yr as KeyboardCapslockIcon,or as LinkOutlineIcon,wn as ListNumberedIcon,cr as ListSettingsLineIcon,sr as ListStatusIcon,Dn as LoadingIcon,Qn as LockIcon,kn as MessageProcessingIcon,Cn as MessageProcessingOutlineIcon,br as MessageReplyIcon,Lc as MinimizableDialog,Uc as MinimizableDialogV2,gr as MinimizeIcon,yn as NewCalendarIcon,hr as OutlineCalendarMonth,U as Paper,ln as PdfIcon,pr as PencilOutlineIcon,pn as PeopleIcon,dn as PeopleOutlineIcon,Hn as PermMediaIcon,Un as PermMediaOutline,Tn as PersonIcon,In as PersonOutlineIcon,Nr as PinIcon,wr as PlusIcon,kr as PlusIconCircle,W as Popper,sn as QnrIcon,nr as ReplayIcon,jn as ReportBoxIcon,Nn as ReportBoxOutlineIcon,Rn as SearchIcon,_n as SettingsIcon,dr as SettingsMenuHorizontalIcon,Sn as SettingsOutlineIcon,K as Skeleton,G as Stack,Gl as StyledAccordion,Xl as StyledAccordionDetails,Yl as StyledAccordionSummary,ye as StyledBadge,ia as StyledButton,Sa as StyledCheckbox,Sr as StyledChip,fa as StyledDialog,ba as StyledDialogActions,xa as StyledDialogContent,ka as StyledDialogTitle,rs as StyledDrawer,ja as StyledEmptyPage,Zl as StyledFilterButton,tc as StyledFilterMenu,Za as StyledFormControl,Qa as StyledFormControlLabel,ns as StyledFormGroup,es as StyledFormHelperText,na as StyledFormLabel,Ea as StyledInputField,ts as StyledInputLabel,Er as StyledInteractiveChip,Ja as StyledLabel,ps as StyledLink,_a as StyledLoading,os as StyledMenu,is as StyledMenuItem,as as StyledMenuList,vc as StyledModuleTitle,Jl as StyledPopover,Ya as StyledRadio,Xa as StyledRadioGroup,Oa as StyledSearchField,Ma as StyledSelect,za as StyledSelectAutocomplete,Ra as StyledSelectItem,Aa as StyledSlider,Ga as StyledSwitch,fs as StyledTab,hs as StyledTabs,Ia as StyledTextarea,Xi as StyledTooltip,Ji as StyledTypography,yc as StyledWidget,cc as StyledWidgetHeader,sc as StyledWidgetTitle,lr as TextBoxCheckOutlineIcon,Gn as TopicIcon,ar as UnknownDocumentOutlineRoundedIcon,fr as WarningAmberOutlineIcon,_r as WorkIcon,ee as omit,ue as prepareForSlot,le as setMidnightTime,ce as setZeroTime};
38
+ "production"===process.env.NODE_ENV?Fa.exports=function(){if(La)return Ba;La=1;var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=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,n,r){var s,l={},c=null,u=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)o.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}return Ba.Fragment=n,Ba.jsx=s,Ba.jsxs=s,Ba}():Fa.exports=($a||($a=1,"production"!==process.env.NODE_ENV&&function(){var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=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"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator",y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,o)}(0,e,n)}var v;function x(e){return e.displayName||"Context"}function w(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 o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return x(e)+".Consumer";case s:return x(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:w(e.type)||"Memo";case f:var r=e,h=r._payload,m=r._init;try{return w(m(h))}catch{return null}}return null}v=Symbol.for("react.module.reference");var k,C,j,N,_,S,E,O=Object.assign,T=0;function I(){}I.__reactDisabledLog=!0;var M,R=y.ReactCurrentDispatcher;function D(e,t,n){if(void 0===M)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);M=r&&r[1]||""}return"\n"+M+e}var P,z=!1,A="function"==typeof WeakMap?WeakMap:Map;function L(e,t){if(!e||z)return"";var n,r=P.get(e);if(void 0!==r)return r;z=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=R.current,R.current=null,function(){if(0===T){k=console.log,C=console.info,j=console.warn,N=console.error,_=console.group,S=console.groupCollapsed,E=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})}T++}();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){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&P.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{z=!1,R.current=o,function(){if(0==--T){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:k}),info:O({},e,{value:C}),warn:O({},e,{value:j}),error:O({},e,{value:N}),group:O({},e,{value:_}),groupCollapsed:O({},e,{value:S}),groupEnd:O({},e,{value:E})})}T<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?D(p):"";return"function"==typeof e&&P.set(e,f),f}function $(e,t,n){if(null==e)return"";if("function"==typeof e)return L(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return D(e);switch(e){case u:return D("Suspense");case d:return D("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,n){return L(e,!1)}(e.render);case p:return $(e.type,t,n);case f:var o=e,i=o._payload,a=o._init;try{return $(a(i),t,n)}catch{}}return""}P=new A;var F=Object.prototype.hasOwnProperty,B={},V=y.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=$(e.type,e._source,t?t.type:null);V.setExtraStackFrame(n)}else V.setExtraStackFrame(null)}var H=Array.isArray;function U(e){return H(e)}function W(e){return""+e}function K(e){if(function(e){try{return W(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.",(t=e,"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object")),W(e);var t}var G,Y,X,J=y.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};X={};var Q=function(e,n,r,o,i,a,s){var l={$$typeof:t,type:e,key:n,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:o}),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,ne=y.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,n=$(e.type,e._source,t?t.type:null);ne.setExtraStackFrame(n)}else ne.setExtraStackFrame(null)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}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 n=function(e){var t=ie();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!ae[n]){ae[n]=!0;var r="";e&&e._owner&&e._owner!==te.current&&(r=" It was passed a child from "+w(e._owner.type)+"."),re(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.',n,r),re(null)}}}function le(e,t){if("object"==typeof e)if(U(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&se(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var o=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 o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)oe(i.value)&&se(i.value,t)}}function ce(e,n,r,m,g,y){var x,k=!("string"!=typeof(x=e)&&"function"!=typeof x&&x!==o&&x!==a&&x!==i&&x!==u&&x!==d&&x!==h&&("object"!=typeof x||null===x||x.$$typeof!==f&&x.$$typeof!==p&&x.$$typeof!==s&&x.$$typeof!==l&&x.$$typeof!==c&&x.$$typeof!==v&&void 0===x.getModuleId));if(!k){var C="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(C+=" 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 j,N=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);C+=N||ie(),null===e?j="null":U(e)?j="array":void 0!==e&&e.$$typeof===t?(j="<"+(w(e.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):j=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",j,C)}var _=function(e,t,n,r,o){var i,a,s,l,c={},u=null,d=null;for(i in void 0!==n&&(K(n),u=""+n),function(e){if(F.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),u=""+t.key),function(e){if(F.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(d=t.ref,function(e,t){if("string"==typeof e.ref&&J.current&&t&&J.current.stateNode!==t){var n=w(J.current.type);X[n]||(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',w(J.current.type),e.ref),X[n]=!0)}}(t,o)),t)F.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(u||d){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;u&&(a=c,s=f,(l=function(){G||(G=!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)",s))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:l,configurable:!0})),d&&function(e,t){var n=function(){Y||(Y=!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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(c,f)}return Q(e,u,d,o,r,J.current,c)}(e,n,r,g,y);if(null==_)return _;if(k){var S=n.children;if(void 0!==S)if(m)if(U(S)){for(var E=0;E<S.length;E++)le(S[E],e);Object.freeze&&Object.freeze(S)}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 le(S,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){re(e),b("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),b("Invalid attribute `ref` supplied to `React.Fragment`."),re(null))}(_):function(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=w(n);!function(e,t,n,r,o){var i=Function.call.bind(F);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")+": "+n+" 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,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(q(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",n,a,typeof s),q(null)),s instanceof Error&&!(s.message in B)&&(B[s.message]=!0,q(o),b("Failed %s type: %s",n,s.message),q(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ee||(ee=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(_),_}Va.Fragment=o,Va.jsx=function(e,t,n){return ce(e,t,n,!1)},Va.jsxs=function(e,t,n){return ce(e,t,n,!0)}}()),Va);var qa=Fa.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 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:"M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41z"})})}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:"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,...n})=>ge.jsx(_,{...n,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(Ua,{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(S,{...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(E,{"data-test":e,...t}),Ja=({children:e,onClick:t,className:n,dataTest:r,style:o})=>ge.jsx("div",{className:si("_styled-label_1fp95_1",n),style:o,onClick:t,"data-test":r,children:e}),Za=e=>ge.jsx(O,{...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(I,{...e}),ts=e=>ge.jsx(M,{...e}),ns=e=>ge.jsx(R,{...e}),rs=e=>ge.jsx(D,{...e}),os=e=>{var t,n;return ge.jsx(P,{...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==(n=e.classes)?void 0:n.list),...e.classes}})},is=e=>{var t;return ge.jsx(k,{...e,classes:{selected:"bg-gama-50",root:si("px-3 py-2.5 not-selected-hover:bg-delta-50",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",us="_styled-link-small_hyb3l_37",ds="_styled-link-large_hyb3l_42",ps=({href:e,disabled:t,size:n="large",dataTest:r,reflink:o,className:i,content:a,contentNode:s,...l})=>{let c=ds;switch(n){case"small":c=us;break;case"xs":c=cs;break;default:c=ds}return t?ge.jsxs("span",{className:si(ss,ls,c,i),children:[a,s]}):ge.jsxs("a",{...l,"data-test":r,ref:o,href:e,className:si(ss,c,i),children:[a,s]})},fs=e=>ge.jsx(A,{...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)"}}}),hs=e=>ge.jsx(L,{...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)"}}});function ms(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}function gs({controlled:e,default:t,name:r,state:o="value"}){const{current:i}=n.useRef(void 0!==e),[a,s]=n.useState(t),l=i?e:a;if("production"!==process.env.NODE_ENV){n.useEffect((()=>{i!==(void 0!==e)&&console.error([`Base UI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[o,r,e]);const{current:a}=n.useRef(t);n.useEffect((()=>{!i&&!Object.is(a,t)&&console.error([`Base UI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"))}),[JSON.stringify(t)])}return[l,n.useCallback((e=>{i||s(e)}),[])]}const ys={};function bs(e,t){const r=n.useRef(ys);return r.current===ys&&(r.current=e(t)),r}const vs=n[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],xs=vs&&vs!==n.useLayoutEffect?vs:e=>e();function ws(e){const t=bs(ks).current;return t.next=e,xs(t.effect),t.trampoline}function ks(){const e={next:void 0,callback:Cs,trampoline:(...t)=>{var n;return null==(n=e.callback)?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function Cs(){if("production"!==process.env.NODE_ENV)throw new Error("Base UI: Cannot call an event handler while rendering.")}const js=typeof document<"u"?n.useLayoutEffect:()=>{};function Ns(e,t,n,r){const o=bs(_s).current;return function(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}(o,e,t,n,r)&&Ss(o,[e,t,n,r]),o.callback}function _s(){return{callback:null,cleanup:null,refs:[]}}function Ss(e,t){e.refs=t,t.every((e=>null==e))?e.callback=null:e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){const r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const o=t[e];if(null!=o)switch(typeof o){case"function":{const t=o(n);"function"==typeof t&&(r[e]=t);break}case"object":o.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const n=t[e];if(null!=n)switch(typeof n){case"function":{const t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}const Es=parseInt(n.version,10);function Os(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}const Ts={};function Is(e,t,n,r,o){let i={...Ps(e,Ts)};return t&&(i=Ms(i,t)),n&&(i=Ms(i,n)),r&&(i=Ms(i,r)),o&&(i=Ms(i,o)),i}function Ms(e,t){return Ds(t)?t(e):function(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":e[n]=Os(e.style,r);break;case"className":e[n]=Ls(e.className,r);break;default:Rs(n,r)?e[n]=zs(e[n],r):e[n]=r}}return e}(e,t)}function Rs(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||typeof t>"u")}function Ds(e){return"function"==typeof e}function Ps(e,t){return Ds(e)?e(t):e??Ts}function zs(e,t){return t?e?n=>{if(function(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}(n)){const r=n;As(r);const o=t(r);return r.baseUIHandlerPrevented||null==e||e(r),o}const r=t(n);return null==e||e(n),r}:t:e}function As(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Ls(e,t){return t?e?t+" "+e:t:e}const $s={};function Fs(e,t,r={}){const o=t.render,i=function(e,t={}){const{className:r,render:o}=e,{state:i=$s,ref:a,props:s,disableStyleHooks:l,customStyleHookMapping:c,enabled:u=!0}=t,d=u?function(e,t){return"function"==typeof e?e(t):e}(r,i):void 0;let p;!0!==l&&(p=n.useMemo((()=>u?function(e,t){const n={};for(const r in e){const o=e[r];if(null!=t&&t.hasOwnProperty(r)){const e=t[r](o);null!=e&&Object.assign(n,e)}else!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}(i,c):$s),[i,c,u]));const f=u?Os(p,Array.isArray(s)?function(e){if(0===e.length)return Ts;if(1===e.length)return Ps(e[0],Ts);let t={...Ps(e[0],Ts)};for(let n=1;n<e.length;n+=1)t=Ms(t,e[n]);return t}(s):s)??$s:$s;return typeof document<"u"&&(u?Array.isArray(a)?f.ref=function(e){const t=bs(_s).current;return function(e,t){return e.refs.length!==t.length||e.refs.some(((e,n)=>e!==t[n]))}(t,e)&&Ss(t,e),t.callback}([f.ref,Bs(o),...a]):f.ref=Ns(f.ref,Bs(o),a):Ns(null,null)),u?(void 0!==d&&(f.className=Ls(f.className,d)),f):$s}(t,r);if(!1===r.enabled)return null;return function(e,t,r,o){if(t){if("function"==typeof t)return t(r,o);const e=Is(r,t.props);return e.ref=r.ref,n.cloneElement(t,e)}if(e&&"string"==typeof e)return function(e,t){return"button"===e?ge.jsx("button",{type:"button",...t}):"img"===e?ge.jsx("img",{alt:"",...t}):n.createElement(e,t)}(e,r);throw new Error("Base UI: Render element or function are not defined.")}(e,o,i,r.state??$s)}function Bs(e){return e&&"function"!=typeof e?function(e){return Es>=e}(19)?e.props.ref:e.ref:null}let Vs;function qs(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");Vs.has(t)||(Vs.add(t),console.warn(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(Vs=new Set);const Hs="ArrowUp",Us="ArrowDown",Ws="ArrowLeft",Ks="ArrowRight",Gs=n.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Ys(e){const{children:t,elementsRef:r,labelsRef:o,onMapChange:i}=e,a=n.useRef(0),s=bs(Js).current,l=bs(Xs).current,[c,u]=n.useState(0),d=n.useRef(c),p=ws(((e,t)=>{l.set(e,t??null),d.current+=1,u(d.current)})),f=ws((e=>{l.delete(e),d.current+=1,u(d.current)})),h=n.useMemo((()=>{const e=new Map;return Array.from(l.keys()).sort(Zs).forEach(((t,n)=>{const r=l.get(t)??{};e.set(t,{...r,index:n})})),e}),[l,c]);js((()=>{d.current===c&&(r.current.length!==h.size&&(r.current.length=h.size),o&&o.current.length!==h.size&&(o.current.length=h.size)),null==i||i(h)}),[i,h,r,o,c,d]);const m=ws((e=>(s.add(e),()=>{s.delete(e)})));js((()=>{s.forEach((e=>e(h)))}),[s,h]);const g=n.useMemo((()=>({register:p,unregister:f,subscribeMapChange:m,elementsRef:r,labelsRef:o,nextIndexRef:a})),[p,f,m,r,o,a]);return ge.jsx(Gs.Provider,{value:g,children:t})}function Xs(){return new Map}function Js(){return new Set}function Zs(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}"production"!==process.env.NODE_ENV&&(Gs.displayName="CompositeListContext");const Qs=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Qs.displayName="DirectionContext");const el=n.createContext(void 0);function tl(){const e=n.useContext(el);if(void 0===e)throw new Error("Base UI: AccordionRootContext is missing. Accordion parts must be placed within <Accordion.Root>.");return e}"production"!==process.env.NODE_ENV&&(el.displayName="AccordionRootContext");const nl=new Set([Us,Hs,Ks,Ws,"Home","End"]),rl={value:()=>null};const ol=n.forwardRef((function(e,t){const{className:r,disabled:o=!1,hiddenUntilFound:i,keepMounted:a,loop:s=!0,onValueChange:l,openMultiple:c=!0,orientation:u="vertical",value:d,defaultValue:p,...f}=e,h=function(e=!0){const t=n.useContext(Qs);if(void 0===t&&!e)throw new Error("Base UI: DirectionContext is missing.");return(null==t?void 0:t.direction)??"ltr"}();"production"!==process.env.NODE_ENV&&js((()=>{i&&!1===a&&qs("The `keepMounted={false}` prop on a Accordion.Root will be ignored when using `hiddenUntilFound` since it requires Panels to remain mounted when closed.")}),[i,a]);const m=n.useMemo((()=>{if(void 0===d)return p??[]}),[d,p]),g=ws(l),y=n.useRef([]),[b,v]=gs({controlled:d,default:m,name:"Accordion",state:"value"}),x=n.useCallback(((e,t)=>{if(c)if(t){const t=b.slice();t.push(e),v(t),g(t)}else{const t=b.filter((t=>t!==e));v(t),g(t)}else{const t=b[0]===e?[]:[e];v(t),g(t)}}),[g,c,v,b]),w="rtl"===h,k="horizontal"===u,C=n.useMemo((()=>({value:b,disabled:o,orientation:u})),[b,o,u]),j=n.useMemo((()=>({accordionItemRefs:y,direction:h,disabled:o,handleValueChange:x,hiddenUntilFound:i??!1,keepMounted:a??!1,orientation:u,state:C,value:b})),[h,o,x,i,a,u,C,b]),N=Fs("div",e,{state:C,ref:t,props:[{dir:h,role:"region",onKeyDown(e){if(!nl.has(e.key))return;!function(e){e.preventDefault(),e.stopPropagation()}(e);const t=function(e){const{current:t}=e,n=[];for(let e=0;e<t.length;e+=1){const r=t[e];if(!ms(r)){const e=null==r?void 0:r.querySelector('[type="button"]');ms(e)||n.push(e)}}return n}(y),n=t.length-1;let r=-1;const o=t.indexOf(e.target);function i(){r=s?o+1>n?0:o+1:Math.min(o+1,n)}function a(){r=s&&0===o?n:o-1}switch(e.key){case Us:k||i();break;case Hs:k||a();break;case Ks:k&&(w?a():i());break;case Ws:k&&(w?i():a());break;case"Home":r=0;break;case"End":r=n}r>-1&&t[r].focus()}},f],customStyleHookMapping:rl});return ge.jsx(el.Provider,{value:j,children:ge.jsx(Ys,{elementsRef:y,children:N})})}));"production"!==process.env.NODE_ENV&&(ol.displayName="AccordionRoot");const il={...n};let al=0;const sl=il.useId;function ll(e,t){if(void 0!==sl){const n=sl();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){const[r,o]=n.useState(e),i=e||r;return n.useEffect((()=>{null==r&&(al+=1,o(`${t}-${al}`))}),[r,t]),i}(e,t)}function cl(e){return ll(e,"base-ui")}const ul=[];function dl(e){n.useEffect(e,ul)}class pl{constructor(){t(this,"currentId",0),t(this,"clear",(()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)})),t(this,"disposeEffect",(()=>this.clear))}static create(){return new pl}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}isStarted(){return 0!==this.currentId}}const fl=null;let hl=globalThis.requestAnimationFrame;const ml=new class{constructor(){t(this,"callbacks",[]),t(this,"callbacksCount",0),t(this,"nextId",1),t(this,"startId",1),t(this,"isScheduled",!1),t(this,"tick",(e=>{var t;this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<n.length;r+=1)null==(t=n[r])||t.call(n,e)}))}request(e){const t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;const n="test"===process.env.NODE_ENV&&hl!==requestAnimationFrame&&(hl=requestAnimationFrame,!0);return(!this.isScheduled||n)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){const t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class gl{constructor(){t(this,"currentId",fl),t(this,"cancel",(()=>{this.currentId!==fl&&(ml.cancel(this.currentId),this.currentId=fl)})),t(this,"disposeEffect",(()=>this.cancel))}static create(){return new gl}static request(e){return ml.request(e)}static cancel(e){return ml.cancel(e)}request(e){this.cancel(),this.currentId=ml.request((()=>{this.currentId=fl,e()}))}}function yl(e,t=!1){const n=function(){const e=bs(gl.create).current;return dl(e.disposeEffect),e}(),r=function(){const e=bs(pl.create).current;return dl(e.disposeEffect),e}();return ws(((o,i=null)=>{n.cancel(),r.clear();const a=e.current;a&&("function"!=typeof a.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED?o():n.request((()=>{function e(){a&&Promise.allSettled(a.getAnimations().map((e=>e.finished))).then((()=>{null!=i&&i.aborted||Z.flushSync(o)}))}t?r.start(0,e):e()})))}))}function bl(e){const{open:t,defaultOpen:r,onOpenChange:o,disabled:i}=e,a=void 0!==t,[s,l]=gs({controlled:t,default:r,name:"Collapsible",state:"open"}),{mounted:c,setMounted:u,transitionStatus:d}=function(e,t=!1,r=!1){const[o,i]=n.useState(e&&t?"idle":void 0),[a,s]=n.useState(e);return e&&!a&&(s(!0),i("starting")),!e&&a&&"ending"!==o&&!r&&i("ending"),!e&&!a&&"ending"===o&&i(void 0),js((()=>{if(!e&&a&&"ending"!==o&&r){const e=gl.request((()=>{i("ending")}));return()=>{gl.cancel(e)}}}),[e,a,o,r]),js((()=>{if(!e||t)return;const n=gl.request((()=>{Z.flushSync((()=>{i(void 0)}))}));return()=>{gl.cancel(n)}}),[t,e]),js((()=>{if(!e||!t)return;e&&a&&"idle"!==o&&i("starting");const n=gl.request((()=>{i("idle")}));return()=>{gl.cancel(n)}}),[t,e,a,i,o]),n.useMemo((()=>({mounted:a,setMounted:s,transitionStatus:o})),[a,o])}(s,!0,!0),[p,f]=n.useState(s),[{height:h,width:m},g]=n.useState({height:void 0,width:void 0}),y=cl(),[b,v]=n.useState(),x=b??y,[w,k]=n.useState(!1),[C,j]=n.useState(!1),N=n.useRef(null),_=n.useRef(null),S=n.useRef(null),E=n.useRef(null),O=yl(E,!1),T=ws((()=>{const e=!s,t=E.current;"css-animation"===_.current&&null!=t&&t.style.removeProperty("animation-name"),!w&&!C&&(null!=_.current&&"css-animation"!==_.current&&!c&&e&&u(!0),"css-animation"===_.current&&(!p&&e&&f(!0),!c&&e&&u(!0))),l(e),o(e),"none"===_.current&&c&&!e&&u(!1)}));return js((()=>{a&&"none"===_.current&&!C&&!s&&u(!1)}),[a,C,s,t,u]),n.useMemo((()=>({abortControllerRef:N,animationTypeRef:_,disabled:i,handleTrigger:T,height:h,mounted:c,open:s,panelId:x,panelRef:E,runOnceAnimationsFinish:O,setDimensions:g,setHiddenUntilFound:k,setKeepMounted:j,setMounted:u,setOpen:l,setPanelIdState:v,setVisible:f,transitionDimensionRef:S,transitionStatus:d,visible:p,width:m})),[N,_,i,T,h,c,s,x,E,O,g,k,j,u,l,f,S,d,p,m])}const vl=n.createContext(void 0);function xl(){const e=n.useContext(vl);if(void 0===e)throw new Error("Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>.");return e}"production"!==process.env.NODE_ENV&&(vl.displayName="CollapsibleRootContext");let wl=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function kl(e={}){const{label:t,metadata:r,textRef:o,indexGuessBehavior:i}=e,{register:a,unregister:s,subscribeMapChange:l,elementsRef:c,labelsRef:u,nextIndexRef:d}=n.useContext(Gs),p=n.useRef(-1),[f,h]=n.useState(i===wl.GuessFromOrder?()=>{if(-1===p.current){const e=d.current;d.current+=1,p.current=e}return p.current}:-1),m=n.useRef(null),g=n.useCallback((e=>{var n;if(m.current=e,-1!==f&&null!==e&&(c.current[f]=e,u)){const r=void 0!==t;u.current[f]=r?t:(null==(n=null==o?void 0:o.current)?void 0:n.textContent)??e.textContent}}),[f,c,u,t,o]);return js((()=>{const e=m.current;if(e)return a(e,r),()=>{s(e)}}),[a,s,r]),js((()=>l((e=>{var t;const n=m.current?null==(t=e.get(m.current))?void 0:t.index:null;null!=n&&h(n)}))),[l,h]),n.useMemo((()=>({ref:g,index:f})),[f,g])}const Cl=n.createContext(void 0);function jl(){const e=n.useContext(Cl);if(void 0===e)throw new Error("Base UI: AccordionItemContext is missing. Accordion parts must be placed within <Accordion.Item>.");return e}"production"!==process.env.NODE_ENV&&(Cl.displayName="AccordionItemContext");let Nl=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const _l={[Nl.startingStyle]:""},Sl={[Nl.endingStyle]:""},El={transitionStatus:e=>"starting"===e?_l:"ending"===e?Sl:null};let Ol=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Nl.startingStyle]="startingStyle",e[e.endingStyle=Nl.endingStyle]="endingStyle",e}({}),Tl=function(e){return e.panelOpen="data-panel-open",e}({});const Il={[Ol.open]:""},Ml={[Ol.closed]:""},Rl={open:e=>e?{[Tl.panelOpen]:""}:null},Dl={open:e=>e?Il:Ml};let Pl=function(e){return e.index="data-index",e.disabled="data-disabled",e.open="data-open",e}({});const zl={...Dl,index:e=>Number.isInteger(e)?{[Pl.index]:String(e)}:null,...El,value:()=>null},Al=n.forwardRef((function(e,t){const{className:r,disabled:o=!1,onOpenChange:i,render:a,value:s,...l}=e,{ref:c,index:u}=kl(),d=Ns(t,c),{disabled:p,handleValueChange:f,state:h,value:m}=tl(),g=s??u,y=o||p,b=n.useMemo((()=>{if(!m)return!1;for(let e=0;e<m.length;e+=1)if(m[e]===g)return!0;return!1}),[m,g]),v=ws((e=>{f(g,e),null==i||i(e)})),x=bl({open:b,onOpenChange:v,disabled:y}),w=n.useMemo((()=>({open:x.open,disabled:x.disabled,hidden:!x.mounted})),[x.open,x.disabled,x.mounted]),k=n.useMemo((()=>({...x,onOpenChange:v,state:w,transitionStatus:x.transitionStatus})),[x,w,v]),C=n.useMemo((()=>({...h,index:u,disabled:y,open:b})),[y,u,b,h]),[j,N]=n.useState(cl()),_=n.useMemo((()=>({open:b,state:C,setTriggerId:N,triggerId:j})),[b,C,N,j]),S=Fs("div",e,{state:C,ref:d,props:l,customStyleHookMapping:zl});return ge.jsx(vl.Provider,{value:k,children:ge.jsx(Cl.Provider,{value:_,children:S})})}));"production"!==process.env.NODE_ENV&&(Al.displayName="AccordionItem");const Ll=n.forwardRef((function(e,t){const{render:n,className:r,...o}=e,{state:i}=jl();return Fs("h3",e,{state:i,ref:t,props:o,customStyleHookMapping:zl})}));"production"!==process.env.NODE_ENV&&(Ll.displayName="AccordionHeader");const $l=n.createContext(void 0);function Fl(e={}){const{disabled:t=!1,focusableWhenDisabled:r,tabIndex:o=0,native:i=!0}=e,a=n.useRef(null),s=void 0!==function(e=!1){const t=n.useContext($l);if(void 0===t&&!e)throw new Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return t}(!0),l=ws((()=>{const e=a.current;return!("A"!==(null==e?void 0:e.tagName)||null==e||!e.href)})),{props:c}=function(e){const{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:i=0,isNativeButton:a}=e,s=o&&!1!==t,l=o&&!1===t;return{props:n.useMemo((()=>{const e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return o||(e.tabIndex=i,!a&&r&&(e.tabIndex=t?i:-1)),(a&&(t||s)||!a&&r)&&(e["aria-disabled"]=r),a&&(!t||l)&&(e.disabled=r),e}),[o,r,t,s,l,a,i])}}({focusableWhenDisabled:r,disabled:t,composite:s,tabIndex:o,isNativeButton:i});return js((()=>{const e=a.current;e instanceof HTMLButtonElement&&s&&t&&void 0===c.disabled&&e.disabled&&(e.disabled=!1)}),[t,c.disabled,s]),{getButtonProps:n.useCallback(((e={})=>{const{onClick:n,onMouseDown:r,onKeyUp:o,onKeyDown:a,onPointerDown:s,...u}=e;return Is({type:i?"button":void 0,onClick(e){t?e.preventDefault():null==n||n(e)},onMouseDown(e){t||null==r||r(e)},onKeyDown(e){t||(As(e),null==a||a(e)),!e.baseUIHandlerPrevented&&e.target===e.currentTarget&&!i&&!l()&&"Enter"===e.key&&!t&&(null==n||n(e),e.preventDefault())},onKeyUp(e){t||(As(e),null==o||o(e)),!e.baseUIHandlerPrevented&&e.target===e.currentTarget&&!i&&!t&&" "===e.key&&(null==n||n(e))},onPointerDown(e){t?e.preventDefault():null==s||s(e)}},i?void 0:{role:"button"},c,u)}),[t,c,i,l]),buttonRef:a}}"production"!==process.env.NODE_ENV&&($l.displayName="CompositeRootContext");const Bl=n.forwardRef((function(e,t){const{disabled:r,className:o,id:i,render:a,nativeButton:s=!0,...l}=e,{panelId:c,open:u,handleTrigger:d,disabled:p}=xl(),f=r??p,{getButtonProps:h,buttonRef:m}=Fl({disabled:f,focusableWhenDisabled:!0,native:s}),{state:g,setTriggerId:y,triggerId:b}=jl();js((()=>(i&&y(i),()=>{y(void 0)})),[i,y]);return Fs("button",e,{state:g,ref:[t,m],props:[n.useMemo((()=>({"aria-controls":u?c:void 0,"aria-expanded":u,disabled:f,id:b,onClick:d})),[c,f,b,u,d]),l,h],customStyleHookMapping:Rl})}));"production"!==process.env.NODE_ENV&&(Bl.displayName="AccordionTrigger");let Vl=function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e}({});let ql=function(e){return e.accordionPanelHeight="--accordion-panel-height",e.accordionPanelWidth="--accordion-panel-width",e}({});function Hl(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Ul(e){const{enabled:t=!0,open:r,ref:o,onComplete:i}=e,a=function(e){const t=bs(Hl,e).current;return t.next=e,js(t.effect),t}(r),s=ws(i),l=yl(o,r);n.useEffect((()=>{t&&l((()=>{r===a.current&&s()}))}),[t,r,s,l,a])}const Wl=n.forwardRef((function(e,t){const{className:r,hiddenUntilFound:o,keepMounted:i,id:a,render:s,...l}=e,{hiddenUntilFound:c,keepMounted:u}=tl(),{abortControllerRef:d,animationTypeRef:p,height:f,mounted:h,onOpenChange:m,open:g,panelId:y,panelRef:b,runOnceAnimationsFinish:v,setDimensions:x,setHiddenUntilFound:w,setKeepMounted:k,setMounted:C,setOpen:j,setVisible:N,transitionDimensionRef:_,visible:S,width:E,setPanelIdState:O,transitionStatus:T}=xl(),I=o??c,M=i??u;"production"!==process.env.NODE_ENV&&js((()=>{!1===i&&I&&qs("The `keepMounted={false}` prop on a Accordion.Panel will be ignored when using `contextHiddenUntilFound` on the Panel or the Root since it requires the panel to remain mounted when closed.")}),[I,i]),js((()=>{if(a)return O(a),()=>{O(void 0)}}),[a,O]),js((()=>{w(I)}),[w,I]),js((()=>{k(M)}),[k,M]),Ul({open:g,ref:b,onComplete(){g&&x({width:void 0,height:void 0})}});const{props:R}=function(e){const{abortControllerRef:t,animationTypeRef:r,externalRef:o,height:i,hiddenUntilFound:a,keepMounted:s,id:l,mounted:c,onOpenChange:u,open:d,panelRef:p,runOnceAnimationsFinish:f,setDimensions:h,setMounted:m,setOpen:g,setVisible:y,transitionDimensionRef:b,visible:v,width:x}=e,w=n.useRef(!1),k=n.useRef(null),C=n.useRef(d),j=n.useRef(d),N=n.useMemo((()=>"css-animation"===r.current?!v:!d&&!c),[d,c,v,r]),_=ws((e=>{if(!e)return;if(null==r.current||null==b.current){const t=getComputedStyle(e),n="none"!==t.animationName&&""!==t.animationName,o="0s"!==t.transitionDuration&&""!==t.transitionDuration;n&&o?"production"!==process.env.NODE_ENV&&qs("CSS transitions and CSS animations both detected on Collapsible or Accordion panel.","Only one of either animation type should be used."):"none"===t.animationName&&"0s"!==t.transitionDuration?r.current="css-transition":"none"!==t.animationName&&"0s"===t.transitionDuration?r.current="css-animation":r.current="none","horizontal"===e.getAttribute(Vl.orientation)||t.transitionProperty.indexOf("width")>-1?b.current="width":b.current="height"}if("css-transition"!==r.current)return;e.style.setProperty("display","block","important"),(void 0===i||void 0===x)&&(h({height:e.scrollHeight,width:e.scrollWidth}),e.style.removeProperty("display"),j.current&&e.style.setProperty("transition-duration","0s"));let t=-1,n=-1;return t=gl.request((()=>{j.current=!1,n=gl.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))})),()=>{gl.cancel(t),gl.cancel(n)}})),S=Ns(o,p,_);return js((()=>{if("css-transition"!==r.current)return;const e=p.current;if(!e)return;let n=-1;if(null!=t.current&&(t.current.abort(),t.current=null),!d){h({height:e.scrollHeight,width:e.scrollWidth}),t.current=new AbortController;const n=t.current.signal;let r=-1;const o=gl.request((()=>{r=gl.request((()=>{f((()=>{h({height:0,width:0}),e.style.removeProperty("content-visibility"),e.style.removeProperty("display"),m(!1),t.current=null}),n)}))}));return()=>{gl.cancel(o),gl.cancel(r)}}return e.style.setProperty("display","block","important"),!j.current&&!s&&e.setAttribute(Ol.startingStyle,""),h({height:e.scrollHeight,width:e.scrollWidth}),n=gl.request((()=>{e.style.removeProperty("display")})),()=>{gl.cancel(n)}}),[t,r,a,s,c,d,p,f,h,m,b]),js((()=>{if("css-animation"!==r.current)return;const e=p.current;e&&(k.current=e.style.animationName||k.current,e.style.setProperty("animation-name","none"),h({height:e.scrollHeight,width:e.scrollWidth}),!C.current&&!w.current&&e.style.removeProperty("animation-name"),d?(null!=t.current&&(t.current.abort(),t.current=null),m(!0),y(!0)):(t.current=new AbortController,f((()=>{m(!1),y(!1),t.current=null}),t.current.signal)))}),[t,r,d,p,f,h,m,y,v]),dl((()=>{const e=gl.request((()=>{C.current=!1}));return()=>gl.cancel(e)})),js((()=>{if(!a)return;const e=p.current;if(!e)return;let t=-1,n=-1;return d&&w.current&&(e.style.transitionDuration="0s",h({height:e.scrollHeight,width:e.scrollWidth}),t=gl.request((()=>{w.current=!1,n=gl.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))}))),()=>{gl.cancel(t),gl.cancel(n)}}),[a,d,p,h]),js((()=>{const e=p.current;e&&a&&N&&(e.setAttribute("hidden","until-found"),"css-transition"===r.current&&e.setAttribute(Ol.startingStyle,""))}),[a,N,r,p]),n.useEffect((function(){const e=p.current;if(e)return e.addEventListener("beforematch",t),()=>{e.removeEventListener("beforematch",t)};function t(){w.current=!0,g(!0),u(!0)}}),[u,p,g]),n.useMemo((()=>({props:{hidden:N,id:l,ref:S}})),[N,l,S])}({abortControllerRef:d,animationTypeRef:p,externalRef:t,height:f,hiddenUntilFound:I,id:a??y,keepMounted:M,mounted:h,onOpenChange:m,open:g,panelRef:b,runOnceAnimationsFinish:v,setDimensions:x,setMounted:C,setOpen:j,setVisible:N,transitionDimensionRef:_,visible:S,width:E}),{state:D,triggerId:P}=jl(),z=Fs("div",e,{state:n.useMemo((()=>({...D,transitionStatus:T})),[D,T]),ref:[t,b],props:[R,{"aria-labelledby":P,role:"region",style:{[ql.accordionPanelHeight]:void 0===f?"auto":`${f}px`,[ql.accordionPanelWidth]:void 0===E?"auto":`${E}px`}},l],customStyleHookMapping:zl});return M||I||!M&&h?z:null}));"production"!==process.env.NODE_ENV&&(Wl.displayName="AccordionPanel");const Kl={AccordionRoot:"_AccordionRoot_vu2vb_1",Header:"_Header_vu2vb_7",Trigger:"_Trigger_vu2vb_11",TriggerIcon:"_TriggerIcon_vu2vb_26",Panel:"_Panel_vu2vb_37",Content:"_Content_vu2vb_48"},Gl=({className:e,children:t,expanded:n,defaultExpanded:r,onChange:o,...i})=>{const a="item",s={...i,type:"single",className:ya(Kl.AccordionRoot,e),onValueChange:e=>{null==o||o(e.includes(a))},...void 0!==n?{value:n?[a]:[]}:{defaultValue:r?[a]:[]}};return ge.jsx(ol,{...s,children:ge.jsx(Al,{value:a,className:Kl.Item,children:t})})},Yl=({size:e="large",className:t,sx:n,children:r,...o})=>{const i="small"===e,a={"--trigger-height":i?"48px":"72px","--trigger-padding-x":i?"8px":"16px","--trigger-font-size":i?"14px":"18px","--chevron-size":i?"20px":"24px",...n};return ge.jsx(Ll,{className:Kl.Header,children:ge.jsxs(Bl,{...o,className:si(Kl.Trigger,t),style:a,children:[r,ge.jsx(Fn,{className:Kl.TriggerIcon,"data-state-icon":!0})]})})},Xl=({children:e,...t})=>ge.jsx(Wl,{...t,className:Kl.Panel,children:ge.jsx("div",{className:Kl.Content,children:e})}),Jl=e=>ge.jsx($,{...e}),Zl=({filterIsActive:e,label:t,size:n="large",variant:r="outlined",...o})=>ge.jsx(ge.Fragment,{children:ge.jsxs("div",{className:"w-fit h-fit relative",children:[ge.jsx(ia,{...o,type:"button",startIcon:ge.jsx(Zn,{width:"large"===n?24:20,height:"large"===n?24:20}),variant:r,size:n,children:t||"Filter"}),e&&ge.jsx("div",{className:si("h-2 w-2 bg-gama-400 rounded-full absolute","large"===n?"top-2 right-2":"top-1 right-1")})]})}),Ql=()=>{const[e,t]=a(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:r=>{e?n():(e=>{t((()=>e.currentTarget))})(r)}}},ec=e=>r.isValidElement(e)||"string"==typeof e||"number"==typeof e||null===e||Array.isArray(e),tc=({filterIsActive:e,popoverContent:t,dataTest:n,disabled:o,size:i="large",variant:a="outlined",popoverProps:s,anchorNode:l,label:c})=>{const{onAnchorClick:u,onClose:d,anchorEl:p}=Ql();return ge.jsxs(ge.Fragment,{children:[ge.jsxs("div",{className:"w-fit h-fit relative",children:[l?r.cloneElement(l({isOpen:!!p,onClose:d}),{onClick:u}):ge.jsx(ia,{type:"button",disabled:o,variant:a,startIcon:ge.jsx(Zn,{width:"large"===i?24:20,height:"large"===i?24:20}),onClick:u,size:i,dataTest:n,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(Jl,{...s,open:!!p,anchorEl:p,onClose:d,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:ec(t)?t:t({isOpen:!!p,onClose:d})})]})},nc=({className:e,contentToCopy:t,locale:n,messageInfo:r,text:o})=>{const i="en"===n?"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(Wa,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},children:!a&&(o||i)})})})},rc="_copy-wrapper_1gjzc_1",oc="_hidden-copy_1gjzc_1",ic=({className:e,contentToCopy:t,locale:n,messageInfo:r,children:o})=>ge.jsxs("div",{className:ya("flex items-center hover:text-gama-500",rc,e),children:[o,ge.jsx(Xi,{title:"no"===n?"Kopier":"Copy",className:oc,children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"copy-button",size:"small",variant:"text",className:"cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},startIcon:ge.jsx(Wa,{width:20,height:20})})})})]}),ac="_styled-widget-title_1gze6_1",sc=function(e){return ge.jsx("div",{className:ac,children:e.children})},lc="_styled-widget-header_1qk88_1",cc=({actions:e,title:t,containerClassname:n,actionsClassname:r})=>ge.jsxs("div",{className:ya(lc,n),children:[ge.jsx(sc,{children:t}),ge.jsx("div",{className:r,children:e})]}),uc="_asma-core-ui-styled-widget_cb7kt_1",dc="_widget-header_cb7kt_13",pc="_widget-content_cb7kt_19",fc="_widget-footer_cb7kt_29",hc="_widget-link_cb7kt_34";function mc(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 gc(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 yc=({children:e,title:t,icon:n,link:r,viewMore:o,persistKey:i,isLoading:l,isEmpty:c,emptyText:u})=>{const[d,p]=a(!1);return s((()=>{if(i){const e=localStorage.getItem(i);p("true"===e)}}),[i]),s((()=>{i&&localStorage.setItem(i,String(d))}),[d,i]),ge.jsxs("div",{className:uc,children:[ge.jsxs("div",{className:dc,children:[n,ge.jsx(sc,{children:t})]}),ge.jsx("div",{className:pc,children:ge.jsxs(ge.Fragment,{children:[e,ge.jsx(_a,{isLoading:l}),ge.jsx(ja,{isEmpty:c,emptyText:u})]})}),ge.jsxs("div",{className:fc,children:[!o||null!=o&&o.hide?ge.jsx("div",{}):ge.jsx(ia,{disabled:o.disabled,dataTest:"view-more",variant:"text",endIcon:d?ge.jsx(mc,{width:20,height:20}):ge.jsx(gc,{width:20,height:20}),onClick:()=>{var e;p(!d),null==(e=null==o?void 0:o.onClick)||e.call(o)},children:d?o.viewLessText:o.viewMoreText}),r&&!r.hide?ge.jsx(ps,{dataTest:"go-to-button",className:hc,size:"small",href:r.href,onClick:r.onClick,content:r.content}):ge.jsx("div",{})]})]})},bc="_styled-module-title_174mo_1",vc=function(e){return ge.jsx("h1",{"data-test":e.dataTest,className:bc,children:e.children})},xc="_dialog_erjok_1",wc="_hidden_erjok_9";function kc(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 Cc(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 jc="object"==typeof global&&global&&global.Object===Object&&global;var Nc="object"==typeof self&&self&&self.Object===Object&&self;const _c=(jc||Nc||Function("return this")()).Symbol;var Sc=Object.prototype,Ec=Sc.hasOwnProperty,Oc=Sc.toString,Tc=_c?_c.toStringTag:void 0;var Ic=Object.prototype.toString;var Mc="[object Null]",Rc="[object Undefined]",Dc=_c?_c.toStringTag:void 0;function Pc(e){return null==e?void 0===e?Rc:Mc:Dc&&Dc in Object(e)?function(e){var t=Ec.call(e,Tc),n=e[Tc];try{e[Tc]=void 0;var r=!0}catch{}var o=Oc.call(e);return r&&(t?e[Tc]=n:delete e[Tc]),o}(e):function(e){return Ic.call(e)}(e)}const zc=Array.isArray;function Ac(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=Pc(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const Lc=({onCloseText:e="",onMinimizeText:t="",onExpandText:n="",onFullScreenText:r="",showCloseIcon:o=!0,showMinimizeIcon:i=!0,showExpandIcon:s=!0,showFullScreenIcon:l=!0,title:c,label:d,children:p,open:f,onClose:h,className:m="",primaryButtonText:g,primaryButtonLoading:y=!1,secondaryButtonText:b,onPrimaryButtonClick:v,onSecondaryButtonClick:x,dataTest:w,actionNode:k,extraActions:C,extraActionsText:j,btnContainerClassName:N,footerClassName:_,footerInfo:S,locale:E="en",enableFullscreen:O=!0,fullScreenState:T,handleFullScreenState:I})=>{const[M,R]=a(!1),[D,P]=a(!1),{open:z,anchorEl:A,handleOpen:L,handleClose:$}=(()=>{const[e,t]=a(null),n=!!e,r=u((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:u((()=>{t(null)}),[]),handleOpen:r,anchorEl:e}})();if(!f)return null;const F=void 0!==T?T:D,B=g||y,V=B||b,q=()=>{R(!M)};return ge.jsxs(ge.Fragment,{children:[F&&!M&&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(xc,!M&&wc),children:ge.jsxs("div",{className:si("flex items-center justify-between",!M&&"hidden"),"data-test":w,children:[ge.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[s&&ge.jsx(Xi,{title:"en"===E?"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:n})})}),o&&ge.jsx(Xi,{title:"en"===E?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:o&&ge.jsx(Vn,{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&&!M?m:"",M&&"!h-0 !w-0 opacity-0 duration-0",F&&!M&&"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:[d?ge.jsx("div",{className:"text-sm text-delta-700",children:d}):ge.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[k,i&&ge.jsx(Xi,{title:"en"===E?"Minimize":"Minimer",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:q,endIcon:i&&ge.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:t})})}),O&&l&&ge.jsx(Xi,{title:F?"en"===E?"Exit full screen":"Avslutt fullskjerm":"en"===E?"Full screen":"Fullskjerm",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==T&&I?I():P(!D)},endIcon:F?ge.jsx(Cc,{width:20,height:20,color:"text-delta-700"}):ge.jsx(kc,{width:20,height:20,color:"text-delta-700"}),children:r})})}),o&&ge.jsx(Xi,{title:"en"===E?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(ia,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:ge.jsx(Vn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]}),d&&ge.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:c})]}),ge.jsxs("div",{className:si("flex flex-col",F&&!M&&"h-[87dvh]"),children:[ge.jsx("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof p?p({fullScreen:F}):p}),(zc(C)&&null!=C&&C.length||Ac(C))&&j||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:[zc(C)&&null!=C&&C.length&&j?ge.jsxs(ge.Fragment,{children:[ge.jsx(ia,{dataTest:"extra-actions-button",variant:"textGray",startIcon:ge.jsx(Mn,{width:24,height:24}),onClick:L,children:j}),ge.jsx(os,{open:z,anchorEl:A,onClose:$,children:C.map((e=>ge.jsx(is,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):j&&Ac(C)&&ge.jsx(ia,{dataTest:"extra-action-button",variant:"text",onClick:C,children:j})," ",S,V?ge.jsxs("div",{className:ya("flex justify-end gap-x-4",N),children:[b&&x&&ge.jsx(ia,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:b}),B&&v&&ge.jsx(ia,{dataTest:"save-button",startIcon:y&&ge.jsx(Ha,{width:24,height:24}),onClick:v,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:[b&&x&&ge.jsx(ia,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:b}),B&&v&&ge.jsx(ia,{dataTest:"save-button",startIcon:y&&ge.jsx(Ha,{width:24,height:24}),onClick:v,children:g})]}):null})]})]})]})},$c=({showCloseIcon:e,tooltipTitle:t,onClick:n,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:n,endIcon:ge.jsx(Vn,{height:20,width:20,color:"text-delta-700"}),children:r})})})}):null,Fc=({visibility:e,tooltipTitle:t,onClick:n,title:r,type:o})=>{if(!e)return null;const i="minimize"===o;return"expand"===o?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:n,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:n,endIcon:ge.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:r})})})}):null},Bc="_minimized-dialog_1tnc1_5",Vc="_dialog_1tnc1_1",qc="_hidden_1tnc1_25",Hc=({fullScreen:e,showFullScreenIcon:t,title:n,tooltipTitle:r,onClick:o})=>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:o,endIcon:e?ge.jsx(Cc,{width:20,height:20,color:"text-delta-700"}):ge.jsx(kc,{width:20,height:20,color:"text-delta-700"}),children:n})})})}):null,Uc=({onCloseText:e="",onMinimizeText:t="",onExpandText:n="",onFullScreenText:r="",showCloseIcon:o=!0,showMinimizeIcon:i=!0,showExpandIcon:l=!0,enableFullscreen:u=!0,fullScreenState:d,handleFullScreenState:p,title:f,label:h,children:m,open:g,onClose:y,classNameOverrides:b={maximized:"",minimized:"",fullscreen:""},dataTest:v,actionNode:x,tooltipOverrides:w={maximized:"",minimized:"",close:"",enterFullScreen:"",exitFullScreen:""}})=>{const[k,C]=a(!1),[j,N]=a(!1),_=c(null),S=void 0!==d?d:j;if(s((()=>{if(!S)return;const e=e=>_.current&&!_.current.contains(e.target)&&(void 0!==d&&p?p():N(!1));return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[S,p,d]),!g)return null;const E=()=>{C(!k)};return ge.jsxs(ge.Fragment,{children:[ge.jsx("div",{style:{zIndex:51},className:ya(Bc,!k&&qc,b.minimized),children:ge.jsxs("div",{className:si("flex items-center justify-between",!k&&"hidden"),"data-test":v,children:[ge.jsx("div",{className:"truncate max-w-[303px] text-lg font-semibold text-delta-800 pr-1",children:ge.jsx(Xi,{title:f,placement:"top",children:ge.jsx("div",{className:"truncate",children:f})})}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[ge.jsx(Fc,{type:"expand",visibility:l,onClick:E,title:n,tooltipTitle:w.maximized||"Expand"}),ge.jsx($c,{showCloseIcon:o,onClick:y,title:e,tooltipTitle:w.close||"Close"})]})]})}),S&&!k&&ge.jsx("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),ge.jsxs("div",{ref:_,style:{zIndex:51},className:ya(Vc,k&&qc,b.maximized,S&&!k&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0",S&&b.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:[h?ge.jsx("div",{className:"text-sm text-delta-700",children:h}):ge.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:f}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[x,ge.jsx(Fc,{visibility:i,type:"minimize",onClick:E,title:t,tooltipTitle:w.minimized||"Minimize"}),ge.jsx(Hc,{showFullScreenIcon:u,fullScreen:S,onClick:()=>{var e;null==(e=document.activeElement)||e.blur(),void 0!==d&&p?p():N(!j)},title:r,tooltipTitle:S?w.exitFullScreen||"Exit full screen":w.enterFullScreen||"Full screen"}),ge.jsx($c,{showCloseIcon:o,onClick:y,title:e,tooltipTitle:w.close||"Close"})]})]}),h&&ge.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:f})]}),ge.jsx("div",{className:ya(k&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:m})]})]})};export{An as ArchiveIcon,vn as AssignmentIcon,xn as AssignmentOutlineIcon,F as Avatar,vr as BadgeIcon,en as BellIcon,Qt as BellOutlineIcon,rr as CalendarBlankOutlineIcon,gn as CalendarIcon,bn as CalendarRangeIcon,$n as CheckBoxCheckedIcon,mn as CheckFactIcon,hn as CheckFactOutlineIcon,qn as CheckIcon,fn as CheckOutlineIcon,on as ChevronDoubleLeftIcon,an as ChevronDoubleRightIcon,Fn as ChevronDownIcon,rn as ChevronLeftIcon,nn as ChevronRightIcon,Bn as ChevronUpIcon,B as ClickAwayListener,Vn as CloseIcon,mr as ConsentsIcon,V as Container,nc as CopyButton,ic as CopyWrapper,cn as DashboardViewIcon,un as DashboardViewOutlineIcon,Jn as DeleteOutlineIcon,Mn as DotsVerticalIcon,Ln as DownloadIcon,Yn as DragHorizontalIcon,zn as DropDownIcon,Pn as DropUpIcon,er as DvrIcon,ur as EarthIcon,xr as EditSquareIcon,tr as ErrorOutlineIcon,q as Fade,ir as FastCheckOutlineIcon,Xn as FilePdfIcon,Zn as FilterIcon,En as FindReplaceIcon,On as FindReplacePeopleIcon,H as FormLabel,tn as HamburgerIcon,jr as HandymanIcon,Cr as HandymanOutlineIcon,Wn as InboxOutboxIcon,Kn as InboxOutboxOutlineIcon,yr as KeyboardCapslockIcon,or as LinkOutlineIcon,wn as ListNumberedIcon,cr as ListSettingsLineIcon,sr as ListStatusIcon,Dn as LoadingIcon,Qn as LockIcon,kn as MessageProcessingIcon,Cn as MessageProcessingOutlineIcon,br as MessageReplyIcon,Lc as MinimizableDialog,Uc as MinimizableDialogV2,gr as MinimizeIcon,yn as NewCalendarIcon,hr as OutlineCalendarMonth,U as Paper,ln as PdfIcon,pr as PencilOutlineIcon,pn as PeopleIcon,dn as PeopleOutlineIcon,Hn as PermMediaIcon,Un as PermMediaOutline,Tn as PersonIcon,In as PersonOutlineIcon,Nr as PinIcon,wr as PlusIcon,kr as PlusIconCircle,W as Popper,sn as QnrIcon,nr as ReplayIcon,jn as ReportBoxIcon,Nn as ReportBoxOutlineIcon,Rn as SearchIcon,_n as SettingsIcon,dr as SettingsMenuHorizontalIcon,Sn as SettingsOutlineIcon,K as Skeleton,G as Stack,Gl as StyledAccordion,Xl as StyledAccordionDetails,Yl as StyledAccordionSummary,ye as StyledBadge,ia as StyledButton,Sa as StyledCheckbox,Sr as StyledChip,fa as StyledDialog,ba as StyledDialogActions,xa as StyledDialogContent,ka as StyledDialogTitle,rs as StyledDrawer,ja as StyledEmptyPage,Zl as StyledFilterButton,tc as StyledFilterMenu,Za as StyledFormControl,Qa as StyledFormControlLabel,ns as StyledFormGroup,es as StyledFormHelperText,na as StyledFormLabel,Ea as StyledInputField,ts as StyledInputLabel,Er as StyledInteractiveChip,Ja as StyledLabel,ps as StyledLink,_a as StyledLoading,os as StyledMenu,is as StyledMenuItem,as as StyledMenuList,vc as StyledModuleTitle,Jl as StyledPopover,Ya as StyledRadio,Xa as StyledRadioGroup,Oa as StyledSearchField,Ma as StyledSelect,za as StyledSelectAutocomplete,Ra as StyledSelectItem,Aa as StyledSlider,Ga as StyledSwitch,fs as StyledTab,hs as StyledTabs,Ia as StyledTextarea,Xi as StyledTooltip,Ji as StyledTypography,yc as StyledWidget,cc as StyledWidgetHeader,sc as StyledWidgetTitle,lr as TextBoxCheckOutlineIcon,Gn as TopicIcon,ar as UnknownDocumentOutlineRoundedIcon,fr as WarningAmberOutlineIcon,_r as WorkIcon,ee as omit,ue 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.40",
6
+ "version": "3.1.42",
7
7
  "type": "module",
8
8
  "files": [
9
9
  "dist/**/*",