asma-core-ui 3.2.2 → 3.2.4

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?ol.exports=function(){if(nl)return il;nl=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,d=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=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:d,props:l,_owner:i.current}}return il.Fragment=n,il.jsx=s,il.jsxs=s,il}():ol.exports=(rl||(rl=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"),d=Symbol.for("react.suspense"),u=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",v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(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=v.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 b;function x(e){return e.displayName||"Context"}function w(e){if(null==e)return null;if("number"==typeof e.tag&&y("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 d:return"Suspense";case u: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}b=Symbol.for("react.module.reference");var C,k,j,N,_,E,I,O=Object.assign,S=0;function T(){}T.__reactDisabledLog=!0;var M,R=v.ReactCurrentDispatcher;function P(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 D,z=!1,A="function"==typeof WeakMap?WeakMap:Map;function L(e,t){if(!e||z)return"";var n,r=D.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===S){C=console.log,k=console.info,j=console.warn,N=console.error,_=console.group,E=console.groupCollapsed,I=console.groupEnd;var e={configurable:!0,enumerable:!0,value:T,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}S++}();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,d=l.length-1;c>=1&&d>=0&&s[c]!==l[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==l[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==l[d]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&D.set(e,u),u}}while(c>=1&&d>=0);break}}}finally{z=!1,R.current=o,function(){if(0==--S){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:C}),info:O({},e,{value:k}),warn:O({},e,{value:j}),error:O({},e,{value:N}),group:O({},e,{value:_}),groupCollapsed:O({},e,{value:E}),groupEnd:O({},e,{value:I})})}S<0&&y("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?P(p):"";return"function"==typeof e&&D.set(e,f),f}function V(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 P(e);switch(e){case d:return P("Suspense");case u:return P("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,n){return L(e,!1)}(e.render);case p:return V(e.type,t,n);case f:var o=e,i=o._payload,a=o._init;try{return V(a(i),t,n)}catch{}}return""}D=new A;var F=Object.prototype.hasOwnProperty,$={},q=v.ReactDebugCurrentFrame;function B(e){if(e){var t=e._owner,n=V(e.type,e._source,t?t.type:null);q.setExtraStackFrame(n)}else q.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 y("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,J,X=v.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};J={};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=v.ReactCurrentOwner,ne=v.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,n=V(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),y('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,v){var x,C=!("string"!=typeof(x=e)&&"function"!=typeof x&&x!==o&&x!==a&&x!==i&&x!==d&&x!==u&&x!==h&&("object"!=typeof x||null===x||x.$$typeof!==f&&x.$$typeof!==p&&x.$$typeof!==s&&x.$$typeof!==l&&x.$$typeof!==c&&x.$$typeof!==b&&void 0===x.getModuleId));if(!C){var k="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j,N=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);k+=N||ie(),null===e?j="null":U(e)?j="array":void 0!==e&&e.$$typeof===t?(j="<"+(w(e.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,k)}var _=function(e,t,n,r,o){var i,a,s,l,c={},d=null,u=null;for(i in void 0!==n&&(K(n),d=""+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),d=""+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)&&(u=t.ref,function(e,t){if("string"==typeof e.ref&&X.current&&t&&X.current.stateNode!==t){var n=w(X.current.type);J[n]||(y('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(X.current.type),e.ref),J[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(d||u){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;d&&(a=c,s=f,(l=function(){G||(G=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:l,configurable:!0})),u&&function(e,t){var n=function(){Y||(Y=!0,y("%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,d,u,o,r,X.current,c)}(e,n,r,g,v);if(null==_)return _;if(C){var E=n.children;if(void 0!==E)if(m)if(U(E)){for(var I=0;I<E.length;I++)le(E[I],e);Object.freeze&&Object.freeze(E)}else y("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(E,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),y("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),y("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)&&(B(o),y("%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),B(null)),s instanceof Error&&!(s.message in $)&&($[s.message]=!0,B(o),y("Failed %s type: %s",n,s.message),B(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ee||(ee=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(_),_}al.Fragment=o,al.jsx=function(e,t,n){return ce(e,t,n,!1)},al.jsxs=function(e,t,n){return ce(e,t,n,!0)}}()),al);var sl=ol.exports;function ll(e){return sl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:sl.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,children:[sl.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:sl.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),sl.jsxs("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3C16.9706 3 21 7.02944 21 12",children:[sl.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),sl.jsx("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})]})})}function cl(e){return sl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:sl.jsx("path",{fill:"currentColor",d:"M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41z"})})}function dl(e){return sl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:sl.jsx("path",{fill:"currentColor",d:"M11 15h2v2h-2zm0-8h2v6h-2zm1-5C6.47 2 2 6.5 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 18a8 8 0 0 1-8-8a8 8 0 0 1 8-8a8 8 0 0 1 8 8a8 8 0 0 1-8 8"})})}function ul(e){return sl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:sl.jsx("path",{fill:"currentColor",d:"M11 17h2v-4h4v-2h-4V7h-2v4H7v2h4zm1 5q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"})})}function pl(e){return sl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:sl.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"})})}const fl=({className:e})=>ve.jsx("svg",{viewBox:"0 0 24 24",className:e,fill:"none",children:ve.jsx("rect",{x:"5.5",y:"10.5",width:"13",height:"2.75",fill:"currentColor"})}),hl=({dataTest:e,size:t="medium",disabled:n,readOnly:o,indeterminate:i=!1,checked:a,disableRipple:l,hideWrapper:c,className:d,onChange:u,...p})=>{const f=!!c,h=!(l||f||n||o),m=Ca(tl.CheckboxWrapper,!f&&tl[`size-${t}`],f&&tl.HideWrapper,o&&tl.ReadOnly,h&&tl.CheckboxHover,d),g=Ca("styled-checkbox-inner",tl.Checkbox,tl[`size-${t}`]),v=i?fl:cl,y=r.useRef(null),b=r.useCallback((e=>{var t;if(e.stopPropagation(),!h)return;const n=document.createElement("span");n.className=tl.CheckboxRipple||"",n.addEventListener("animationend",(()=>n.remove()),{once:!0}),null==(t=y.current)||t.appendChild(n)}),[h]);s((()=>()=>{var e;null==(e=y.current)||e.replaceChildren()}),[]);const x=r.useCallback((e=>{if(o)return;const t={target:{name:p.name,value:p.value,checked:e}};null==u||u(t,e)}),[u,p.name,p.value,o]);return ve.jsxs(qs,{className:m,"data-test":e,checked:a,disabled:n,readOnly:o,indeterminate:i,onPointerDown:b,onCheckedChange:x,...p,children:[!f&&h&&ve.jsx("span",{ref:y,className:tl.CheckboxRippleContainer}),ve.jsx("span",{className:g,children:ve.jsx(el,{className:tl.Indicator,children:ve.jsx(v,{})})})]})},ml=({allowClear:e,onClear:t,readOnly:n,disabled:r,error:o,helperText:i,dataTest:a,...s})=>ve.jsx(j,{...s,"data-test":a,disabled:r||n,error:o,helperText:n?null:o?ve.jsxs("div",{className:"flex items-center gap-1",children:[ve.jsx(dl,{width:20,height:20,className:"min-w-5"}),i??"Required"]}):i,type:s.type||"mui-input",InputProps:e&&s.value?{...s.InputProps,endAdornment:ve.jsx("div",{className:"z-40 hover:bg-gama-100 duration-300 absolute right-4 p-[2px] rounded-full flex items-center justify-center",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==t||t()},children:ve.jsx(Bn,{width:18,height:18})})}:s.InputProps,sx:{"& input:-webkit-autofill, & .MuiInputBase-root:has(> input:-webkit-autofill)":{backgroundColor:"#e8f0fe !important"},"& input":{backgroundColor:"transparent"},"& .MuiInputBase-root":{backgroundColor:"transparent"},"& .MuiInputBase-colorPrimary fieldset":{borderColor:"var(--colors-delta-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused fieldset":{borderColor:"var(--colors-gama-400) !important"},"& .MuiInputBase-colorPrimary.Mui-focused::after":{borderColor:"var(--colors-gama-400) !important"},"& .MuiInputBase-colorPrimary.Mui-focused:hover fieldset":{borderColor:"var(--colors-gama-400) !important"},"& .MuiInputBase-colorPrimary:hover fieldset":{borderColor:"var(--colors-gama-300) !important",borderWidth:"2px !important"},"& .MuiInputBase-colorPrimary.Mui-disabled:hover fieldset":{borderWidth:"1px !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error:hover fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiFormHelperText-root":{fontSize:"14px"},"& .MuiFormHelperText-root.Mui-error":{color:"var(--colors-error-500) !important",marginLeft:0},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-300) !important"},"& label.Mui-focused":{color:"var(--colors-gama-500) !important"},"& label":{color:"var(--colors-delta-500) !important"},"& label.Mui-disabled":{color:"var(--colors-gray-300) !important"},"& .MuiOutlinedInput-input::placeholder":{color:"var(--colors-delta-500) !important",opacity:"1 !important"},"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-300) !important"},...n&&{"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-800) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled":{backgroundColor:"var(--colors-delta-10) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-200) !important"},"& label.Mui-disabled":{color:"var(--colors-gray-800) !important"}},...s.sx}}),gl=({value:e,onClear:t,...n})=>{const[r,o]=a(!1),i=r||e;return ve.jsxs("div",{className:"relative w-full",children:[ve.jsx(ml,{size:"small",variant:"outlined",value:e,onFocus:()=>o(!0),onBlur:()=>o(!1),InputProps:{className:Ca("transition-[padding] duration-300",i?"pl-0":"pl-5"),sx:{"& input":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},endAdornment:e?ve.jsx("div",{className:Ca("cursor-pointer bg-delta-50 rounded-full","flex items-center justify-center","transform-gpu transition-all duration-300 ease-in-out",e?"opacity-100 scale-100":"opacity-0 scale-75 pointer-events-none"),style:{width:24,height:24,flexShrink:0},onClick:e=>{e.preventDefault(),e.stopPropagation(),null==t||t()},children:ve.jsx(Bn,{width:20,height:20,color:"var(--colors-delta-700)",className:"pointer-events-none"})}):null},InputLabelProps:{sx:{transform:"translate(34px, 9px) scale(1)",width:i?void 0:"calc(100% - 42px)","&.MuiInputLabel-shrink":{transform:"translate(16px, -9px) scale(0.75)"}}},...n,sx:{...n.fullWidth?{width:"100%"}:{width:160},...n.sx}}),ve.jsx(Pn,{width:24,height:24,className:Ca("absolute left-2 top-1/2 -translate-y-1/2","transform-gpu transition-all duration-300 ease-in-out",i?"opacity-0 scale-75 pointer-events-none":"opacity-100 scale-100"),color:"var(--colors-delta-700)"})]})},vl={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},yl=({id:e,variant:t="active",label:n="",labelClassName:r="",description:o="",value:i="",minRows:d=3,maxRows:u=1/0,disabled:p,error:f,errorMessage:h,containerClassName:m="",className:g="",maxLength:v=1/0,counter:y,refLink:b,dataTest:x,counterLimit:w,...C})=>{const k=c(null),j=b||k,N=!(!y||!w),[_,E]=a(!1);s((()=>{E(!0)}),[]),((e,t,n,r,o,i)=>{l((()=>{if(e){const t=i?32:0;e.style.height="auto";const n=20,o=e.scrollHeight-24;Math.ceil(o/n)>r?e.style.height=`${n*r+24+t}px`:e.style.height=`${e.scrollHeight+t}px`}}),[e,t,n,r,o,i])})(j.current,i,d,u,_,N),u<d&&(d=u);const[I,O]=a(i.length);s((()=>{O(i.length)}),[i]);const S=f?"error":"active",T=f?"error":p?"disabled":"active";return ve.jsxs("div",{className:`flex flex-col gap-1 relative ${m}`,"data-test":x,children:[ve.jsx("label",{htmlFor:e,className:`${vl.label} ${vl[T]} ${r}`,children:n}),ve.jsx("span",{className:`${vl.description} ${vl[T]}`,children:f?h:o}),"view_only"===t?ve.jsx("div",{className:"font-roboto text-sm font-normal pt-3 text-gray-700",children:i}):"not_editable"===t?ve.jsx("div",{className:"font-roboto text-sm font-normal rounded p-3 bg-gray-200 text-gray-700",children:i}):ve.jsx("textarea",{...C,id:e,ref:j,className:`${vl.textarea} ${vl[S]} ${g} ${N?"pb-[32px]":""}`,wrap:"soft",value:i,disabled:p,maxLength:v}),N&&ve.jsxs("div",{className:"flex justify-end absolute bottom-3 right-3 text-[10px] font-roboto h-[15px] pointer-events-none",children:[I,"/",w]})]})},bl=({dataTest:e,allowClear:t,error:n,errorText:r,...o})=>ve.jsxs(ve.Fragment,{children:[ve.jsx(N,{...o,"data-test":e,error:n,value:o.value,IconComponent:e=>ve.jsx(Xt,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:pi(e.className,"select-custom-icon")}),endAdornment:t&&o.value?ve.jsx("div",{className:"hover:bg-gama-100 duration-300 absolute right-8 p-[2px] rounded-full flex items-center justify-center",onClick:()=>{var e;null==(e=o.onChange)||e.call(o,{target:{value:""}},null)},children:ve.jsx(Bn,{width:18,height:18})}):null,sx:{".MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-delta-500) !important"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"&.MuiFormLabel-root-MuiInputLabel-root .Mui-error":{color:"var(--colors-error-500) !important"},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"&.Mui-focused::after":{borderColor:"var(--colors-gama-400) !important"},"&:hover .MuiOutlinedInput-notchedOutline":{border:"2px solid var(--colors-gama-300) !important"},"& .select-custom-icon":{marginTop:"-3.5px !important"},...o.sx}}),n&&ve.jsxs(Jc,{className:"flex items-center gap-1 m-0 pt-1 text-sm text-error-500",children:[ve.jsx(dl,{width:20,height:20}),r??"Required"]})]}),xl=e=>ve.jsxs(_,{...e,sx:{"&.MuiMenuItem-root":{fontSize:"14px !important",gap:"4px",px:1},"&.Mui-selected":{backgroundColor:"var(--colors-gama-50) !important"}},children:[ve.jsx("span",{style:{width:"24px",justifyContent:"center",display:"flex"},children:e.selected&&ve.jsx(Xt,{icon:"mdi:tick",width:22,height:22,style:{color:"var(--colors-gama-500)"}})}),ve.jsx("span",{children:e.children})]}),wl="_styledSelectAutocompleteWrapper_lfbvb_1",Cl="_select-custom-icon_lfbvb_5";function kl({dataTest:e,autoHeight:t,getOptionLabel:n,wrapperClassName:r,...o}){const[i,l]=a("auto"),d=c(null);s((()=>{var e,n;const r=(null==(e=d.current)?void 0:e.getBoundingClientRect().height)??0,o=(null==(n=d.current)?void 0:n.getBoundingClientRect().top)??0,i=window.innerHeight-o-r-40;t&&l(i>0?i:"auto")}),[t]);const u=t?{style:{maxHeight:"auto"===i?"auto":`${i}px`}}:{},p=e=>"object"==typeof e&&null!==e&&"label"in e?e.label:String(e);return ve.jsx("div",{className:Ca(wl,r),ref:d,children:ve.jsx(E,{...o,getOptionLabel:n,ListboxProps:{...u,sx:{"& .MuiAutocomplete-option":{paddingLeft:"6px !important"}}},className:pi("!text-sm",o.className),popupIcon:o.readOnly?null:o.popupIcon||ve.jsx(Xt,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:pi(Cl)}),"data-test":e,PaperComponent:({children:t})=>ve.jsx(I,{"data-test":`paper-${e}`,sx:{padding:"0 !important",marginTop:"0px !important","& .MuiAutocomplete-option.Mui-focused":{background:"var(--colors-delta-50) !important"},"& li[aria-selected=true]":{background:"var(--colors-gama-50) !important"},"& li[aria-selected=true].MuiAutocomplete-option.Mui-focused":{background:"var(--colors-gama-50) !important"}},children:t}),renderOption:(null==o?void 0:o.renderOption)||((e,t,{selected:r})=>ve.jsxs("li",{...e,children:[ve.jsx("span",{style:{width:"24px",height:"22px",paddingRight:"4px",justifyContent:"center",alignContent:"center",display:"flex"},children:r&&ve.jsx(Xt,{icon:"mdi:tick",width:20,height:20,style:{color:"var(--colors-gama-500)"}})}),ve.jsx("span",{className:"flex-1 text-sm truncate",children:(null==n?void 0:n(t))||p(t)})]})),sx:{...o.sx,"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-0.5px !important"},"& .MuiInputBase-inputSizeSmall":{minHeight:"23px !important"}}})})}const jl=({dataTest:e,error:t,errorText:n,helperText:r,...o})=>{var i,a,s;const l=(t??!1)||(r??!1),c=t?n??"Required":r;return ve.jsxs(ve.Fragment,{children:[ve.jsx(O,{...o,"data-test":e,classes:{...o.classes},slotProps:{...o.slotProps,thumb:{className:pi("w-4 h-4","before:shadow-none",'after:content-[""] after:h-8 after:w-8',"vertical"===o.orientation?"ml-0 mb-1":"ml-1",o.disabled?"bg-delta-200":"bg-gama-500"),...null==(i=o.slotProps)?void 0:i.thumb},rail:{className:"bg-delta-200",...null==(a=o.slotProps)?void 0:a.rail},markLabel:{className:pi("text-delta-600 text-sm font-semibold ml-1","vertical"===o.orientation&&"mb-1"),...null==(s=o.slotProps)?void 0:s.markLabel}},sx:{...o.sx,"& .MuiSlider-track":{backgroundColor:o.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",borderColor:o.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)"},"& .MuiSlider-mark":{backgroundColor:"white",border:"1px solid var(--colors-delta-300)",borderRadius:"50%",height:"8px",width:"8px","&.MuiSlider-markActive":{backgroundColor:o.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",border:"1px solid",borderColor:o.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",opacity:1}}}}),l&&ve.jsxs(Jc,{className:pi("flex items-center gap-1 m-0 pt-1 text-sm",t?"text-error-500":"text-delta-600"),children:[t&&ve.jsx(dl,{width:20,height:20}),c]})]})},Nl=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Nl.displayName="SwitchRootContext");let _l=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const El={...Ga,checked:e=>e?{[_l.checked]:""}:{[_l.unchecked]:""}},Il=n.forwardRef((function(e,t){const{checked:r,className:o,defaultChecked:i,id:a,inputRef:s,name:l,nativeButton:c=!0,onCheckedChange:d,readOnly:u=!1,required:p=!1,disabled:f=!1,render:h,...m}=e,{clearErrors:g}=Ts(),{state:v,labelId:y,setControlId:b,setTouched:x,setDirty:w,validityData:C,setFilled:k,setFocused:j,validationMode:N,disabled:_,name:E}=_s(),I=_||f,O=E??l,{getValidationProps:S,getInputValidationProps:T,inputRef:M,commitValidation:R}=Ps(),P=Aa(d),D=n.useRef(null),z=Fa(D,s,M),A=n.useRef(null),L=gs(a);Ba((()=>{const e=A.current;if(e)return null!=e.closest("label")?b(a??null):b(L),()=>{b(void 0)}}),[L,a,b]);const[V,F]=Ma({controlled:r,default:!!i,name:"Switch",state:"checked"});As({id:L,commitValidation:R,value:V,controlRef:A,name:O,getValue:()=>V}),Ba((()=>{D.current&&k(D.current.checked)}),[D,k]);const{getButtonProps:$,buttonRef:q}=js({disabled:I,native:c}),B=n.useMemo((()=>({id:L,role:"switch",disabled:I,"aria-checked":V,"aria-readonly":u||void 0,"aria-labelledby":y,onFocus(){j(!0)},onBlur(){const e=D.current;e&&(x(!0),j(!1),"onBlur"===N&&R(e.checked))},onClick(e){var t;e.defaultPrevented||u||null==(t=null==D?void 0:D.current)||t.click()}})),[L,I,V,u,y,j,x,R,N,D]),H=n.useMemo((()=>Qa({checked:V,disabled:I,id:O?void 0:`${L}-input`,name:O,required:p,style:Ha,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:z,onChange(e){if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked,n=Fs("none",e.nativeEvent);null==P||P(t,n),!n.isCanceled&&(g(O),w(t!==C.initialValue),k(t),F(t),"onChange"===N?R(t):R(t,!0))}},T)),[V,g,R,I,T,z,L,O,P,p,F,w,k,N,C.initialValue]),U=n.useMemo((()=>({...v,checked:V,disabled:I,readOnly:u,required:p})),[v,V,I,u,p]),W=ds("button",e,{state:U,ref:[t,A,q],props:[B,S,m,$],stateAttributesMapping:El});return ve.jsxs(Nl.Provider,{value:U,children:[W,!V&&l&&ve.jsx("input",{type:"hidden",name:l,value:"off"}),ve.jsx("input",{...H})]})}));"production"!==process.env.NODE_ENV&&(Il.displayName="SwitchRoot");const Ol=n.forwardRef((function(e,t){const{render:r,className:o,...i}=e,{state:a}=_s(),s=function(){const e=n.useContext(Nl);if(void 0===e)throw new Error("Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.");return e}();return ds("span",e,{state:{...a,...s},ref:t,stateAttributesMapping:El,props:i})}));"production"!==process.env.NODE_ENV&&(Ol.displayName="SwitchThumb");const Sl={switch:"_switch_1myey_1",iconContent:"_iconContent_1myey_30",thumb:"_thumb_1myey_50",icon:"_icon_1myey_30"},Tl=({className:e})=>ve.jsx("svg",{viewBox:"0 0 24 24",className:e,fill:"none",children:ve.jsx("rect",{x:"6",y:"10.5",width:"11",height:"3",fill:"currentColor",rx:"0.75"})}),Ml=({width:e=11,height:t=11,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"fa-solid:check",width:e,height:t,className:n,onClick:r,color:o}),Rl=o((({checked:e,defaultChecked:t=!1,onChange:n,disabled:r,readOnly:o,required:i,value:s,id:l,dataTest:c,...d},u)=>{const[p,f]=a(t),h=void 0!==e,m=h?e:p,g=h?{checked:m}:{defaultChecked:t},v=Ca(Sl.iconContent,m?Sl.checked:Sl.unchecked);return ve.jsx(Il,{...d,...g,ref:u,className:Sl.switch,onCheckedChange:e=>{h||f(e),null==n||n({target:{checked:e,name:l,value:s}},e)},disabled:r,readOnly:o,required:i,value:s,id:l,name:l,"data-testid":c,children:ve.jsx(Ol,{className:Sl.thumb,children:ve.jsx("span",{className:Sl.icon,children:m?ve.jsx(Ml,{className:v}):ve.jsx(Tl,{className:v})})})})})),Pl="data-composite-item-active",Dl=n.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});"production"!==process.env.NODE_ENV&&(Dl.displayName="CompositeListContext");let zl=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function Al(e={}){const{label:t,metadata:r,textRef:o,indexGuessBehavior:i,index:a}=e,{register:s,unregister:l,subscribeMapChange:c,elementsRef:d,labelsRef:u,nextIndexRef:p}=n.useContext(Dl),f=n.useRef(-1),[h,m]=n.useState(a??(i===zl.GuessFromOrder?()=>{if(-1===f.current){const e=p.current;p.current+=1,f.current=e}return f.current}:-1)),g=n.useRef(null),v=n.useCallback((e=>{var n;if(g.current=e,-1!==h&&null!==e&&(d.current[h]=e,u)){const r=void 0!==t;u.current[h]=r?t:(null==(n=null==o?void 0:o.current)?void 0:n.textContent)??e.textContent}}),[h,d,u,t,o]);return Ba((()=>{if(null!=a)return;const e=g.current;return e?(s(e,r),()=>{l(e)}):void 0}),[a,s,l,r]),Ba((()=>{if(null==a)return c((e=>{var t;const n=g.current?null==(t=e.get(g.current))?void 0:t.index:null;null!=n&&m(n)}))}),[a,c,m]),n.useMemo((()=>({ref:v,index:h})),[h,v])}function Ll(e){const{render:t,className:r,state:o=cs,props:i=ls,refs:a=ls,metadata:s,stateAttributesMapping:l,tag:c="div",...d}=e,{compositeProps:u,compositeRef:p}=function(e={}){const{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:o}=ks(),{ref:i,index:a}=Al(e),s=r===a,l=n.useRef(null),c=Fa(i,l);return{compositeProps:n.useMemo((()=>({tabIndex:s?0:-1,onFocus(){o(a)},onMouseMove(){const e=l.current;if(!t||!e)return;const n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;!s&&!n&&e.focus()}})),[s,o,a,t]),compositeRef:c,index:a}}({metadata:s});return ds(c,e,{state:o,ref:[...a,p],props:[u,...i,d],stateAttributesMapping:l})}let Vl=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const Fl={checked:e=>e?{[Vl.checked]:""}:{[Vl.unchecked]:""},...Qs,...Ga},$l=n.createContext({disabled:void 0,readOnly:void 0,required:void 0,name:void 0,checkedValue:"",setCheckedValue:ss,onValueChange:ss,touched:!1,setTouched:ss,registerControlRef:ss});"production"!==process.env.NODE_ENV&&($l.displayName="RadioGroupContext");const ql=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(ql.displayName="RadioRootContext");const Bl=n.forwardRef((function(e,t){const{render:r,className:o,disabled:i=!1,readOnly:a=!1,required:s=!1,value:l,inputRef:c,nativeButton:d=!0,...u}=e,{disabled:p,readOnly:f,required:h,checkedValue:m,setCheckedValue:g,touched:v,setTouched:y,fieldControlValidation:b,registerControlRef:x}=n.useContext($l),{state:w,disabled:C}=_s(),k=C||p||i,j=f||a,N=h||s,{setDirty:_,validityData:E,setTouched:I,setFilled:O}=_s(),S=m===l,T=n.useRef(null),M=Fa(c,T);Ba((()=>{var e;null!=(e=T.current)&&e.checked&&O(!0)}),[O]);const R=n.useMemo((()=>({role:"radio","aria-checked":S,"aria-required":N||void 0,"aria-disabled":k||void 0,"aria-readonly":j||void 0,[Pl]:S?"":void 0,disabled:k,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){var t;e.defaultPrevented||k||j||(e.preventDefault(),null==(t=T.current)||t.click())},onFocus(e){var t;e.defaultPrevented||k||j||!v||(null==(t=T.current)||t.click(),y(!1))}})),[S,N,k,j,v,y]),{getButtonProps:P,buttonRef:D}=js({disabled:k,native:d}),z=gs(),A=n.useMemo((()=>({type:"radio",ref:M,id:z,tabIndex:-1,style:Ha,"aria-hidden":!0,disabled:k,checked:S,required:N,readOnly:j,onChange(e){if(e.nativeEvent.defaultPrevented||k||j||void 0===l)return;const t=Fs("none",e.nativeEvent);t.isCanceled||(I(!0),_(l!==E.initialValue),O(!0),g(l,t))}})),[S,k,z,j,M,N,g,_,I,O,E.initialValue,l]),L=n.useMemo((()=>({...w,required:N,disabled:k,readOnly:j,checked:S})),[w,k,j,S,N]),V=n.useMemo((()=>L),[L]),F=g!==ss,$=[t,x,D],q=[R,(null==b?void 0:b.getValidationProps)??cs,u,P],B=ds("button",e,{enabled:!F,state:L,ref:$,props:q,stateAttributesMapping:Fl});return ve.jsxs(ql.Provider,{value:V,children:[F?ve.jsx(Ll,{tag:"button",render:r,className:o,state:L,refs:$,props:q,stateAttributesMapping:Fl}):B,ve.jsx("input",{...A})]})}));"production"!==process.env.NODE_ENV&&(Bl.displayName="RadioRoot");const Hl=n.forwardRef((function(e,t){const{render:r,className:o,keepMounted:i=!1,...a}=e,s=function(){const e=n.useContext(ql);if(void 0===e)throw new Error("Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>.");return e}(),l=s.checked,{transitionStatus:c,setMounted:d}=Ys(l),u=n.useMemo((()=>({...s,transitionStatus:c})),[s,c]),p=n.useRef(null),f=i||l,h=ds("span",e,{enabled:f,ref:[t,p],state:u,props:a,stateAttributesMapping:Fl});return Gs({open:l,ref:p,onComplete(){l||d(!1)}}),f?h:null}));"production"!==process.env.NODE_ENV&&(Hl.displayName="RadioIndicator");const Ul="_RadioWrapper_9uzf3_1",Wl="_size-small_9uzf3_14",Kl="_RadioRippleContainer_9uzf3_26",Gl="_RadioRipple_9uzf3_26",Yl="_RadioHover_9uzf3_60",Jl="_Radio_9uzf3_1",Xl="_Indicator_9uzf3_119",Zl="_Error_9uzf3_140",Ql=o((({value:e,dataTest:t,className:n,size:r="medium",error:o,disabled:i,...a},s)=>{const l=Ca(Ul,Yl,"small"===r&&Wl,n,o&&Zl),u=Ca(Jl,"small"===r&&Wl),p=c(null),f=d((e=>{if(e.stopPropagation(),!p.current)return;const t=document.createElement("span");t.className=Gl||"",t.addEventListener("animationend",(()=>t.remove()),{once:!0}),p.current.appendChild(t)}),[]);return ve.jsxs(Bl,{...a,ref:s,value:e,"data-test":t,className:l,disabled:i,onPointerDown:f,children:[ve.jsx("span",{className:Kl,ref:p}),ve.jsx("span",{className:u,children:ve.jsx(Hl,{className:Xl})})]})})),ec="ArrowLeft",tc="ArrowRight",nc="ArrowUp",rc="ArrowDown";function oc(e,t){var n;if(!e||!t)return!1;const r=null==(n=t.getRootNode)?void 0:n.call(t);if(e.contains(t))return!0;if(r&&function(e){return!(!vs()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof ys(e).ShadowRoot)}(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ic(e){e.preventDefault(),e.stopPropagation()}const ac=Math.floor;function sc(e,t,n){return Math.floor(e/t)!==n}function lc(e,t){return t<0||t>=e.current.length}function cc(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:o=1}={}){let i=t;do{i+=n?-o:o}while(i>=0&&i<=e.current.length-1&&pc(e,i,r));return i}function dc(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),a=t[e];switch(o){case"tl":return i;case"tr":return a?i+a.width-1:i;case"bl":return a?i+(a.height-1)*r:i;case"br":return n.lastIndexOf(e);default:return-1}}function uc(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function pc(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);const r=e.current[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}const fc="ArrowUp",hc="ArrowDown",mc="ArrowLeft",gc="ArrowRight",vc="Home",yc="End",bc=new Set([mc,gc]),xc=new Set([mc,gc,vc,yc]),wc=new Set([fc,hc]),Cc=new Set([fc,hc,vc,yc]),kc=new Set([...bc,...wc]),jc=new Set([...kc,vc,yc]),Nc="Shift",_c=new Set([Nc,"Control","Alt","Meta"]);function Ec(e){return!!(function(e){return bs(e)&&"INPUT"===e.tagName}(e)&&null!=e.selectionStart||bs(e)&&"TEXTAREA"===e.tagName)}function Ic(e,t,n,r){if(!e||!t||!t.scrollTo)return;let o=e.scrollLeft,i=e.scrollTop;const a=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(a&&"vertical"!==r){const r=Oc(e,t,"left"),i=Sc(e),a=Sc(t);"ltr"===n&&(r+t.offsetWidth+a.scrollMarginRight>e.scrollLeft+e.clientWidth-i.scrollPaddingRight?o=r+t.offsetWidth+a.scrollMarginRight-e.clientWidth+i.scrollPaddingRight:r-a.scrollMarginLeft<e.scrollLeft+i.scrollPaddingLeft&&(o=r-a.scrollMarginLeft-i.scrollPaddingLeft)),"rtl"===n&&(r-a.scrollMarginRight<e.scrollLeft+i.scrollPaddingLeft?o=r-a.scrollMarginLeft-i.scrollPaddingLeft:r+t.offsetWidth+a.scrollMarginRight>e.scrollLeft+e.clientWidth-i.scrollPaddingRight&&(o=r+t.offsetWidth+a.scrollMarginRight-e.clientWidth+i.scrollPaddingRight))}if(s&&"horizontal"!==r){const n=Oc(e,t,"top"),r=Sc(e),o=Sc(t);n-o.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?i=n-o.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+o.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(i=n+t.offsetHeight+o.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:o,top:i,behavior:"auto"})}function Oc(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);)t=t.offsetParent;return o}function Sc(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function Tc(e){const{children:t,elementsRef:r,labelsRef:o,onMapChange:i}=e,a=n.useRef(0),s=Pa(Rc).current,l=Pa(Mc).current,[c,d]=n.useState(cs),u=n.useRef(c),p=Aa(((e,t)=>{l.set(e,t??null),u.current={},d(u.current)})),f=Aa((e=>{l.delete(e),u.current={},d(u.current)})),h=n.useMemo((()=>{const e=new Map;return Array.from(l.keys()).sort(Pc).forEach(((t,n)=>{const r=l.get(t)??{};e.set(t,{...r,index:n})})),e}),[l,c]);Ba((()=>{if("function"!=typeof MutationObserver||0===h.size)return;const e=new MutationObserver((e=>{const t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach((e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)})),0===t.size&&(u.current={},d(u.current))}));return h.forEach(((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})})),()=>{e.disconnect()}}),[h]),Ba((()=>{u.current===c&&(r.current.length!==h.size&&(r.current.length=h.size),o&&o.current.length!==h.size&&(o.current.length=h.size),a.current=h.size),null==i||i(h)}),[i,h,r,o,c]);const m=Aa((e=>(s.add(e),()=>{s.delete(e)})));Ba((()=>{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 ve.jsx(Dl.Provider,{value:g,children:t})}function Mc(){return new Map}function Rc(){return new Set}function Pc(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}function Dc(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}const zc=[];function Ac(e){const{itemSizes:t,cols:r=1,loop:o=!0,dense:i=!1,orientation:a="both",direction:s,highlightedIndex:l,onHighlightedIndexChange:c,rootRef:d,enableHomeAndEndKeys:u=!1,stopEventPropagation:p=!1,disabledIndices:f,modifierKeys:h=zc}=e,[m,g]=n.useState(0),v=r>1,y=n.useRef(null),b=Fa(y,d),x=n.useRef([]),w=n.useRef(!1),C=l??m,k=Aa(((e,t=!1)=>{if((c??g)(e),t){const t=x.current[e];Ic(y.current,t,s,a)}})),j=Aa((e=>{if(0===e.size||w.current)return;w.current=!0;const t=Array.from(e.keys()),n=t.find((e=>null==e?void 0:e.hasAttribute(Pl)))??null,r=n?t.indexOf(n):-1;-1!==r&&k(r),Ic(y.current,n,s,a)})),N=n.useMemo((()=>({"aria-orientation":"both"===a?void 0:a,ref:b,onFocus(e){!y.current||!Ec(e.target)||e.target.setSelectionRange(0,e.target.value.length??0)},onKeyDown(e){const n=u?jc:kc;if(!n.has(e.key)||function(e,t){for(const n of _c.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,h)||!y.current)return;const l="rtl"===s,c=l?mc:gc,d={horizontal:c,vertical:hc,both:c}[a],m=l?gc:mc,g={horizontal:m,vertical:fc,both:m}[a];if(Ec(e.target)&&!Dc(e.target)){const t=e.target.selectionStart,n=e.target.selectionEnd,r=e.target.value??"";if(null==t||e.shiftKey||t!==n||e.key!==g&&t<r.length||e.key!==d&&t>0)return}let b=C;const w=function(e,t){return cc(e,{disabledIndices:t})}(x,f),j=function(e,t){return cc(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}(x,f);if(v){const n=t||Array.from({length:x.current.length},(()=>({width:1,height:1}))),s=function(e,t,n){const r=[];let o=0;return e.forEach((({width:e,height:i},a)=>{if(e>t&&"production"!==process.env.NODE_ENV)throw new Error(`[Floating UI]: Invalid grid - item width at index ${a} is greater than grid columns`);let s=!1;for(n&&(o=0);!s;){const n=[];for(let r=0;r<e;r+=1)for(let e=0;e<i;e+=1)n.push(o+r+e*t);o%t+e<=t&&n.every((e=>null==r[e]))?(n.forEach((e=>{r[e]=a})),s=!0):o+=1}})),[...r]}(n,r,i),c=s.findIndex((e=>null!=e&&!pc(x,e,f))),d=s.reduce(((e,t,n)=>null==t||pc(x,t,f)?e:n),-1);b=s[function(e,{event:t,orientation:n,loop:r,rtl:o,cols:i,disabledIndices:a,minIndex:s,maxIndex:l,prevIndex:c,stopEvent:d=!1}){let u=c;const p=[],f={};let h=!1;{let t=null,n=-1;e.current.forEach(((e,r)=>{if(null==e)return;const o=e.closest('[role="row"]');o&&(h=!0),(o!==t||-1===n)&&(t=o,n+=1,p[n]=[]),p[n].push(r),f[r]=n}))}const m=h&&p.length>0&&p.some((e=>e.length!==i));function g(t){if(!m||-1===c)return;const n=f[c];if(null==n)return;const o=p[n].indexOf(c);let i="up"===t?n-1:n+1;r&&(i<0?i=p.length-1:i>=p.length&&(i=0));const s=new Set;for(;i>=0&&i<p.length&&!s.has(i);){s.add(i);const n=p[i];if(0!==n.length){for(let t=Math.min(o,n.length-1);t>=0;t-=1){const r=n[t];if(!pc(e,r,a))return r}i="up"===t?i-1:i+1,r&&(i<0?i=p.length-1:i>=p.length&&(i=0))}else i="up"===t?i-1:i+1}}if(t.key===nc){const n=g("up");if(void 0!==n)d&&ic(t),u=n;else{if(d&&ic(t),-1===c)u=l;else if(u=cc(e,{startingIndex:u,amount:i,decrement:!0,disabledIndices:a}),r&&(c-i<s||u<0)){const e=c%i,t=l%i,n=l-(t-e);u=t===e?l:t>e?n:n-i}lc(e,u)&&(u=c)}}if(t.key===rc){const n=g("down");void 0!==n?(d&&ic(t),u=n):(d&&ic(t),-1===c?u=s:(u=cc(e,{startingIndex:c,amount:i,disabledIndices:a}),r&&c+i>l&&(u=cc(e,{startingIndex:c%i-i,amount:i,disabledIndices:a}))),lc(e,u)&&(u=c))}if("both"===n){const n=ac(c/i);t.key===(o?ec:tc)&&(d&&ic(t),c%i!=i-1?(u=cc(e,{startingIndex:c,disabledIndices:a}),r&&sc(u,i,n)&&(u=cc(e,{startingIndex:c-c%i-1,disabledIndices:a}))):r&&(u=cc(e,{startingIndex:c-c%i-1,disabledIndices:a})),sc(u,i,n)&&(u=c)),t.key===(o?tc:ec)&&(d&&ic(t),c%i!=0?(u=cc(e,{startingIndex:c,decrement:!0,disabledIndices:a}),r&&sc(u,i,n)&&(u=cc(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:a}))):r&&(u=cc(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:a})),sc(u,i,n)&&(u=c));const s=ac(l/i)===n;lc(e,u)&&(u=r&&s?t.key===(o?tc:ec)?l:cc(e,{startingIndex:c-c%i-1,disabledIndices:a}):c)}return u}({current:s.map((e=>e?x.current[e]:null))},{event:e,orientation:a,loop:o,cols:r,disabledIndices:uc([...f||x.current.map(((e,t)=>pc(x,t)?t:void 0)),void 0],s),minIndex:c,maxIndex:d,prevIndex:dc(C>j?w:C,n,s,r,e.key===hc?"bl":e.key===gc?"tr":"tl"),rtl:l})]}const N={horizontal:[c],vertical:[hc],both:[c,hc]}[a],_={horizontal:[m],vertical:[fc],both:[m,fc]}[a],E=v?n:{horizontal:u?xc:bc,vertical:u?Cc:wc,both:n}[a];u&&(e.key===vc?b=w:e.key===yc&&(b=j)),b===C&&(N.includes(e.key)||_.includes(e.key))&&(b=o&&b===j&&N.includes(e.key)?w:o&&b===w&&_.includes(e.key)?j:cc(x,{startingIndex:b,decrement:_.includes(e.key),disabledIndices:f})),b!==C&&!lc(x,b)&&(p&&e.stopPropagation(),E.has(e.key)&&e.preventDefault(),k(b,!0),queueMicrotask((()=>{var e;null==(e=x.current[b])||e.focus()})))}})),[r,i,s,f,x,u,C,v,t,o,b,h,k,a,p]);return n.useMemo((()=>({props:N,highlightedIndex:C,onHighlightedIndexChange:k,elementsRef:x,disabledIndices:f,onMapChange:j})),[N,C,k,x,f,j])}const Lc=n.createContext(void 0);function Vc(e=!0){const t=n.useContext(Lc);if(void 0===t&&!e)throw new Error("Base UI: DirectionContext is missing.");return(null==t?void 0:t.direction)??"ltr"}function Fc(e){const{render:t,className:r,refs:o=ls,props:i=ls,state:a=cs,stateAttributesMapping:s,highlightedIndex:l,onHighlightedIndexChange:c,orientation:d,dense:u,itemSizes:p,loop:f,cols:h,enableHomeAndEndKeys:m,onMapChange:g,stopEventPropagation:v=!0,rootRef:y,disabledIndices:b,modifierKeys:x,highlightItemOnHover:w=!1,tag:C="div",...k}=e,j=Vc(),{props:N,highlightedIndex:_,onHighlightedIndexChange:E,elementsRef:I,onMapChange:O}=Ac({itemSizes:p,cols:h,loop:f,dense:u,orientation:d,highlightedIndex:l,onHighlightedIndexChange:c,rootRef:y,stopEventPropagation:v,enableHomeAndEndKeys:m,direction:j,disabledIndices:b,modifierKeys:x}),S=Aa((e=>{null==g||g(e),O(e)})),T=ds(C,e,{state:a,ref:o,props:[N,...i,k],stateAttributesMapping:s}),M=n.useMemo((()=>({highlightedIndex:_,onHighlightedIndexChange:E,highlightItemOnHover:w})),[_,E,w]);return ve.jsx(Cs.Provider,{value:M,children:ve.jsx(Tc,{elementsRef:I,onMapChange:S,children:T})})}"production"!==process.env.NODE_ENV&&(Lc.displayName="DirectionContext");const $c=[Nc],qc=n.forwardRef((function(e,t){const{render:r,className:o,disabled:i,readOnly:a,required:s,onValueChange:l,value:c,defaultValue:d,name:u,inputRef:p,id:f,...h}=e,{labelId:m,setTouched:g,setFocused:v,validationMode:y,name:b,disabled:x,state:w}=_s(),C=Ps(),{clearErrors:k}=Ts(),j=x||i,N=b??u,_=gs(f),[E,I]=Ma({controlled:c,default:d,name:"RadioGroup",state:"value"}),O=Aa(l),S=Aa(((e,t)=>{O(e,t),!t.isCanceled&&I(e)})),T=n.useRef(null),M=Aa((e=>{null==T.current&&null!=e&&(T.current=e)}));As({id:_,commitValidation:C.commitValidation,value:E,controlRef:T,name:N,getValue:()=>E??null});const R=n.useRef(E);Ba((()=>{R.current!==E&&(k(N),"onChange"===y?C.commitValidation(E):C.commitValidation(E,!0))}),[N,k,y,E,C]),Ba((()=>{R.current=E}),[E]);const[P,D]=n.useState(!1),z=Aa((e=>{oc(e.currentTarget,e.relatedTarget)||(g(!0),v(!1),"onBlur"===y&&C.commitValidation(E))})),A=Aa((e=>{e.key.startsWith("Arrow")&&(g(!0),D(!0),v(!0))})),L=n.useMemo((()=>null==E?"":"string"==typeof E?E:JSON.stringify(E)),[E]),V=Qa({value:L,ref:Fa(C.inputRef,p),id:_,name:L?N:void 0,disabled:j,readOnly:a,required:s,"aria-hidden":!0,tabIndex:-1,style:Ha,onFocus(){var e;null==(e=T.current)||e.focus()}},C.getInputValidationProps),F=n.useMemo((()=>({...w,disabled:j??!1,required:s??!1,readOnly:a??!1})),[w,j,a,s]),$=n.useMemo((()=>({...w,checkedValue:E,disabled:j,name:N,onValueChange:O,readOnly:a,registerControlRef:M,required:s,setCheckedValue:S,setTouched:D,touched:P})),[E,j,w,N,O,a,M,s,S,D,P]),q={role:"radiogroup","aria-required":s||void 0,"aria-disabled":j||void 0,"aria-readonly":a||void 0,"aria-labelledby":m,onFocus(){v(!0)},onBlur:z,onKeyDownCapture:A};return ve.jsxs($l.Provider,{value:$,children:[ve.jsx(Fc,{render:r,className:o,state:F,props:[q,C.getValidationProps,h],refs:[t],stateAttributesMapping:Ga,enableHomeAndEndKeys:!1,modifierKeys:$c}),ve.jsx("input",{...V})]})}));"production"!==process.env.NODE_ENV&&(qc.displayName="RadioGroup");const Bc=o((({value:e,defaultValue:t,onValueChange:n,name:r,id:o,dataTest:i,error:a,errorText:s,helperText:l,children:c,...d},u)=>{const p=(a??!1)||(l??!1),f=a?s??"Required":l;return ve.jsxs(qc,{...d,ref:u,value:e,defaultValue:t,"data-test":i,onValueChange:n,children:[c,p&&ve.jsxs(Jc,{className:pi("flex items-center gap-1 m-0 pt-1 text-sm",a?"text-error-500":"text-delta-600"),children:[a&&ve.jsx(dl,{width:20,height:20}),f]})]})})),Hc=({children:e,onClick:t,className:n,dataTest:r,style:o})=>ve.jsx("div",{className:pi("_styled-label_1fp95_1",n),style:o,onClick:t,"data-test":r,children:e}),Uc=o(((e,t)=>{const{options:n,dataTest:r,value:o,readOnly:i,multiple:s,title:d,disabled:u,onChange:p,error:f,helperText:h,valueKey:m="value",labelKey:g="label",renderLabel:v,getOptionTooltip:y,loading:b}=e,{containerRef:x,wrapDisabled:w}=(({dependencyList:e=[]})=>{const t=c(null),[n,r]=a(!1);return l((()=>{const e=t.current;if(!e)return;const n=new ResizeObserver((()=>{const t=Array.from(e.children).some((t=>{const n=t.querySelector(".MuiChip-label");if(!n)return!1;const r=t.querySelector(".MuiButtonBase-root"),o=n.scrollWidth>e.clientWidth,i=!!r&&n.scrollHeight>r.clientHeight;return o||i}));r((e=>e!==t?t:e))}));return n.observe(e),()=>n.disconnect()}),[...e]),{wrapDisabled:n,containerRef:t}})({dependencyList:[n,n.length]}),C=e=>{var t;return"object"==typeof e?(null==(t=null==e?void 0:e[g])?void 0:t.toString())||"":(null==e?void 0:e.toString())||""},k=e=>"object"==typeof e?null==e?void 0:e[m]:e,j=(e,t)=>k(e)===k(t),N=i?n.filter((e=>!!(s?null!=o&&o.find((t=>j(t,e))):j(o,e)))):n,_=N.findIndex((e=>!("object"==typeof e&&(null!=e&&e.disabled)||i)));return ve.jsxs("div",{"data-test":`${r}-dynamic-radio-group`,className:"flex flex-col gap-y-1 relative",children:[d&&ve.jsx("span",{className:"text-delta-800 text-base font-semibold",children:d}),ve.jsx("div",{ref:x,className:"absolute top-0 left-0 opacity-0 pointer-events-none flex flex-wrap gap-2 text-sm",style:{width:"100%"},children:N.map((e=>{const t=k(e);return ve.jsx(Sr,{className:"w-fit",readOnly:i,type:s?"checkbox":"radio",dataTest:`ic-${String(t)}-hidden`,label:v?v(e):C(e)},String(t))}))}),ve.jsx("div",{className:Ca("flex gap-2 flex-wrap",w&&"flex-col gap-1"),children:b?ve.jsxs("div",{className:"flex flex-wrap gap-2",children:[ve.jsx(S,{className:"w-[60px] h-[32px]"}),ve.jsx(S,{className:"w-[60px] h-[32px]"}),ve.jsx(S,{className:"w-[60px] h-[32px]"})]}):null!=N&&N.length?N.map(((e,n)=>{const r=k(e),a=!!(s?null!=o&&o.find((t=>j(t,e))):j(o,e)),l=y?y(e):null;if(i&&!a)return null;const c="object"==typeof e&&!(null==e||!e.disabled),d=c||i||n!==_?void 0:t;return ve.jsx(ta,{title:l,arrow:!0,children:ve.jsx("span",{className:Ca(c&&"cursor-not-allowed"),children:ve.jsx(Sr,{ref:d,disabled:u||c,classes:w?{root:"border-none bg-transparent w-full flex justify-start h-full",label:"block whitespace-normal break-words overflow-visible"}:{root:"min-h-[32px] h-full"},className:"w-fit text-sm",readOnly:i,type:s?"checkbox":"radio",dataTest:`ic-${String(r)}`,checked:a,onClick:()=>(e=>{if(!s){const t=j(e,o)?null:e;return void p(t)}const t=o||[],n=t.find((t=>j(t,e)))?t.filter((t=>!j(t,e))):[...t,e];p(n)})(e),label:v?v(e):C(e)})})},String(r))})):ve.jsx("span",{children:"-"})}),!i&&ve.jsxs("div",{className:Ca("text-sm/5 text-delta-600 flex items-center gap-1",f&&"text-error-500"),children:[f&&ve.jsx(tr,{width:20,height:20,className:"min-w-5"}),ve.jsx("span",{className:"line-clamp-1",children:h||f&&!h&&"Required"})]})]})})),Wc=o(((e,t)=>{const n=e=>{var t;return"object"==typeof e?(null==(t=null==e?void 0:e[x])?void 0:t.toString())||"":(null==e?void 0:e.toString())||""},r=e=>"object"==typeof e?null==e?void 0:e[b]:e,o=(e,t)=>r(e)===r(t),{options:i,dataTest:a,value:s,readOnly:l,multiple:c,disableClearable:d,onChange:u,size:p,title:f,noOptionsText:h,placeholder:m,disabled:g,helperText:v,error:y,valueKey:b="value",labelKey:x="label",renderLabel:w,getOptionTooltip:C,startAdornment:k,autocompleteProps:j,loading:N,maxTags:_}=e,E=i.length<11;return c&&l?ve.jsx(Uc,{...e}):ve.jsxs("div",{className:"flex flex-col gap-y-1 w-full",children:[f&&ve.jsx("span",{className:"text-delta-800 text-base font-semibold",children:f}),ve.jsx(kl,{disableCloseOnSelect:c,dataTest:a,disabled:g||N,noOptionsText:h,loading:N,readOnly:l,value:s,size:p,disableClearable:d,options:i,fullWidth:!0,classes:{listbox:"h-full"},getOptionLabel:n||(null==j?void 0:j.getOptionLabel),onChange:(e,t)=>{u(t)},filterSelectedOptions:!1,isOptionEqualToValue:(e,t)=>o(e,t),autoHeight:!0,multiple:c,renderTags:e=>{const t=_||i.length,a=e.slice(0,t),d=e.length-t;return ve.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.map((e=>{var t;return ve.jsx(Er,{dataTest:`${r(e)}-chip`,readOnly:l,variant:"outlined",label:w?w(e):n(e)||"",classes:{root:"h-fit w-fit min-h-[32px]",label:"block whitespace-normal"},disabled:g||N,onDelete:()=>{if(!c)return void u(null);const t=s.filter((t=>!o(t,e)));u(t)}},null==(t=r(e))?void 0:t.toString())})),d>0&&ve.jsx(Er,{dataTest:"remaining-count-tag-chip",label:`+${d}`,variant:"outlined",readOnly:!0})]})},popupIcon:N?ve.jsx(ll,{height:24,width:24}):c?ve.jsx(ul,{height:24,width:24}):void 0,renderOption:(e,t)=>{const i="object"==typeof t&&!(null==t||!t.disabled),a=C?C(t):null;if(c){const l=!(null==s||!s.find((e=>o(e,t))));return ve.jsx(ta,{arrow:!0,title:a,children:ve.jsxs("li",{...e,onClick:i?void 0:e.onClick,className:Ca("flex h-full gap-x-1 hover:bg-gama-50 cursor-pointer bg-white text-sm/5",i&&"cursor-not-allowed bg-delta-50 hover:bg-delta-50"),"aria-disabled":i,children:[ve.jsx(hl,{disabled:i,dataTest:`${r(t)}-checkbox`,size:"small",className:"min-w-[36px]",checked:l}),w?w(t):ve.jsx("span",{className:"text-sm text-delta-700 h-fit py-[10px]",children:n(t)})]})},e.id)}const l=o(s,t);return ve.jsx(ta,{arrow:!0,title:a,children:ve.jsxs("li",{...e,className:Ca("flex h-full gap-x-1 hover:bg-gama-50 px-2 cursor-pointer text-sm/5",i&&"cursor-not-allowed bg-delta-50 hover:bg-delta-50"),onClick:i?void 0:e.onClick,"aria-disabled":i,children:[ve.jsx("span",{className:"py-[10px] min-w-5 w-5 h-full",children:l&&ve.jsx(cl,{className:"size-5 text-gama-500 min-h-5 min-w-5",height:20,width:20})}),w?w(t):ve.jsx("span",{className:"text-sm text-delta-700 py-[10px]",children:n(t)})]})},e.id)},renderInput:e=>ve.jsx(ml,{dataTest:`${a}-input-field`,...e,inputRef:t,error:y,helperText:v||" ",variant:"outlined",label:"",placeholder:m,readOnly:l,onKeyDown:E?e=>e.preventDefault():void 0,autoComplete:E?"off":"on",InputProps:{...e.InputProps,startAdornment:k||e.InputProps.startAdornment,style:E?{caretColor:"transparent"}:{}},inputProps:{...e.inputProps,style:E?{caretColor:"transparent"}:{}}}),...j})]})})),Kc=o(((e,t)=>{const{options:n}=e;return n.length>0&&n.length<=5?ve.jsx(Uc,{...e,ref:t}):ve.jsx(Wc,{...e,ref:t})})),Gc=e=>ve.jsx(T,{...e,sx:{...e.sx,"& label.MuiInputLabel-shrink":{background:"white !important",color:"var(--colors-delta-800) !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"}}}),Yc=({sx:e,...t})=>ve.jsx(M,{...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}}),Jc=e=>ve.jsx(R,{...e}),Xc=e=>ve.jsx(P,{...e}),Zc=e=>ve.jsx(D,{...e}),Qc=e=>ve.jsx(z,{...e}),ed=e=>{var t,n;return ve.jsx(A,{...e,classes:{paper:pi("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:pi("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},td=e=>{var t;return ve.jsx(_,{...e,classes:{selected:"bg-gama-50",root:pi("px-3 py-2.5 hover:bg-delta-50",null==(t=e.classes)?void 0:t.root),...e.classes}})},nd=e=>ve.jsx(L,{...e}),rd="_styled-link_hyb3l_1",od="_styled-link-disabled_hyb3l_16",id="_styled-link-xs_hyb3l_32",ad="_styled-link-small_hyb3l_37",sd="_styled-link-large_hyb3l_42",ld=({href:e,disabled:t,size:n="large",dataTest:r,reflink:o,className:i,content:a,contentNode:s,...l})=>{let c=sd;switch(n){case"small":c=ad;break;case"xs":c=id;break;default:c=sd}return t?ve.jsxs("span",{className:pi(rd,od,c,i),children:[a,s]}):ve.jsxs("a",{...l,"data-test":r,ref:o,href:e,className:pi(rd,c,i),children:[a,s]})},cd=e=>ve.jsx(V,{...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)"}}}),dd=e=>ve.jsx(F,{...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)"}}});let ud;function pd(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");ud.has(t)||(ud.add(t),console.warn(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(ud=new Set);const fd=n.createContext(void 0);function hd(){const e=n.useContext(fd);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&&(fd.displayName="AccordionRootContext");const md={value:()=>null},gd=n.forwardRef((function(e,t){const{render:r,className:o,disabled:i=!1,hiddenUntilFound:a,keepMounted:s,loop:l=!0,onValueChange:c,multiple:d=!0,orientation:u="vertical",value:p,defaultValue:f,...h}=e,m=Vc();"production"!==process.env.NODE_ENV&&Ba((()=>{a&&!1===s&&pd("The `keepMounted={false}` prop on a Accordion.Root will be ignored when using `hiddenUntilFound` since it requires Panels to remain mounted when closed.")}),[a,s]);const g=n.useMemo((()=>{if(void 0===p)return f??[]}),[p,f]),v=Aa(c),y=n.useRef([]),[b,x]=Ma({controlled:p,default:g,name:"Accordion",state:"value"}),w=n.useCallback(((e,t)=>{const n=Fs("none");if(d)if(t){const t=b.slice();if(t.push(e),v(t,n),n.isCanceled)return;x(t)}else{const t=b.filter((t=>t!==e));if(v(t,n),n.isCanceled)return;x(t)}else{const t=b[0]===e?[]:[e];if(v(t,n),n.isCanceled)return;x(t)}}),[v,d,x,b]),C=n.useMemo((()=>({value:b,disabled:i,orientation:u})),[b,i,u]),k=n.useMemo((()=>({accordionItemRefs:y,direction:m,disabled:i,handleValueChange:w,hiddenUntilFound:a??!1,keepMounted:s??!1,loop:l,orientation:u,state:C,value:b})),[m,i,w,a,s,l,u,C,b]),j=ds("div",e,{state:C,ref:t,props:[{dir:m,role:"region"},h],stateAttributesMapping:md});return ve.jsx(fd.Provider,{value:k,children:ve.jsx(Tc,{elementsRef:y,children:j})})}));"production"!==process.env.NODE_ENV&&(gd.displayName="AccordionRoot");const vd=n.createContext(void 0);function yd(){const e=n.useContext(vd);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&&(vd.displayName="CollapsibleRootContext");const bd=n.createContext(void 0);function xd(){const e=n.useContext(bd);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&&(bd.displayName="AccordionItemContext");let wd=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Js.startingStyle]="startingStyle",e[e.endingStyle=Js.endingStyle]="endingStyle",e}({}),Cd=function(e){return e.panelOpen="data-panel-open",e}({});const kd={[wd.open]:""},jd={[wd.closed]:""},Nd={open:e=>e?{[Cd.panelOpen]:""}:null},_d={open:e=>e?kd:jd};let Ed=function(e){return e.index="data-index",e.disabled="data-disabled",e.open="data-open",e}({});const Id={..._d,index:e=>Number.isInteger(e)?{[Ed.index]:String(e)}:null,...Qs,value:()=>null},Od=n.forwardRef((function(e,t){const{className:r,disabled:o=!1,onOpenChange:i,render:a,value:s,...l}=e,{ref:c,index:d}=Al(),u=Fa(t,c),{disabled:p,handleValueChange:f,state:h,value:m}=hd(),g=gs(),v=s??g,y=o||p,b=n.useMemo((()=>{if(!m)return!1;for(let e=0;e<m.length;e+=1)if(m[e]===v)return!0;return!1}),[m,v]),x=Aa(((e,t)=>{null==i||i(e,t),!t.isCanceled&&f(v,e)})),w=function(e){const{open:t,defaultOpen:r,onOpenChange:o,disabled:i}=e,a=void 0!==t,[s,l]=Ma({controlled:t,default:r,name:"Collapsible",state:"open"}),{mounted:c,setMounted:d,transitionStatus:u}=Ys(s,!0,!0),[p,f]=n.useState(s),[{height:h,width:m},g]=n.useState({height:void 0,width:void 0}),v=gs(),[y,b]=n.useState(),x=y??v,[w,C]=n.useState(!1),[k,j]=n.useState(!1),N=n.useRef(null),_=n.useRef(null),E=n.useRef(null),I=n.useRef(null),O=Ks(I,!1),S=Aa((e=>{const t=!s,n=Fs("trigger-press",e.nativeEvent);if(o(t,n),n.isCanceled)return;const r=I.current;"css-animation"===_.current&&null!=r&&r.style.removeProperty("animation-name"),!w&&!k&&(null!=_.current&&"css-animation"!==_.current&&!c&&t&&d(!0),"css-animation"===_.current&&(!p&&t&&f(!0),!c&&t&&d(!0))),l(t),"none"===_.current&&c&&!t&&d(!1)}));return Ba((()=>{a&&"none"===_.current&&!k&&!s&&d(!1)}),[a,k,s,t,d]),n.useMemo((()=>({abortControllerRef:N,animationTypeRef:_,disabled:i,handleTrigger:S,height:h,mounted:c,open:s,panelId:x,panelRef:I,runOnceAnimationsFinish:O,setDimensions:g,setHiddenUntilFound:C,setKeepMounted:j,setMounted:d,setOpen:l,setPanelIdState:b,setVisible:f,transitionDimensionRef:E,transitionStatus:u,visible:p,width:m})),[N,_,i,S,h,c,s,x,I,O,g,C,j,d,l,f,E,u,p,m])}({open:b,onOpenChange:x,disabled:y}),C=n.useMemo((()=>({open:w.open,disabled:w.disabled,hidden:!w.mounted})),[w.open,w.disabled,w.mounted]),k=n.useMemo((()=>({...w,onOpenChange:x,state:C,transitionStatus:w.transitionStatus})),[w,C,x]),j=n.useMemo((()=>({...h,index:d,disabled:y,open:b})),[y,d,b,h]),[N,_]=n.useState(gs()),E=n.useMemo((()=>({open:b,state:j,setTriggerId:_,triggerId:N})),[b,j,_,N]),I=ds("div",e,{state:j,ref:u,props:l,stateAttributesMapping:Id});return ve.jsx(vd.Provider,{value:k,children:ve.jsx(bd.Provider,{value:E,children:I})})}));"production"!==process.env.NODE_ENV&&(Od.displayName="AccordionItem");const Sd=n.forwardRef((function(e,t){const{render:n,className:r,...o}=e,{state:i}=xd();return ds("h3",e,{state:i,ref:t,props:o,stateAttributesMapping:Id})}));"production"!==process.env.NODE_ENV&&(Sd.displayName="AccordionHeader");const Td=new Set([hc,fc,gc,mc,vc,yc]);const Md=n.forwardRef((function(e,t){const{disabled:r,className:o,id:i,render:a,nativeButton:s=!0,...l}=e,{panelId:c,open:d,handleTrigger:u,disabled:p}=yd(),f=r??p,{getButtonProps:h,buttonRef:m}=js({disabled:f,focusableWhenDisabled:!0,native:s}),{accordionItemRefs:g,direction:v,loop:y,orientation:b}=hd(),x="rtl"===v,w="horizontal"===b,{state:C,setTriggerId:k,triggerId:j}=xd();Ba((()=>(i&&k(i),()=>{k(void 0)})),[i,k]);const N=n.useMemo((()=>({"aria-controls":d?c:void 0,"aria-expanded":d,disabled:f,id:j,onClick:u,onKeyDown(e){if(!Td.has(e.key))return;ic(e);const t=function(e){const{current:t}=e,n=[];for(let e=0;e<t.length;e+=1){const r=t[e];if(!Dc(r)){const e=null==r?void 0:r.querySelector('[type="button"]');Dc(e)||n.push(e)}}return n}(g),n=t.length-1;let r=-1;const o=t.indexOf(e.target);function i(){r=y?o+1>n?0:o+1:Math.min(o+1,n)}function a(){r=y&&0===o?n:o-1}switch(e.key){case hc:w||i();break;case fc:w||a();break;case gc:w&&(x?a():i());break;case mc:w&&(x?i():a());break;case"Home":r=0;break;case"End":r=n}r>-1&&t[r].focus()}})),[g,f,u,j,w,x,y,d,c]);return ds("button",e,{state:C,ref:[t,m],props:[N,l,h],stateAttributesMapping:Nd})}));"production"!==process.env.NODE_ENV&&(Md.displayName="AccordionTrigger");let Rd=function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e}({});let Pd=function(e){return e.accordionPanelHeight="--accordion-panel-height",e.accordionPanelWidth="--accordion-panel-width",e}({});const Dd=n.forwardRef((function(e,t){const{className:r,hiddenUntilFound:o,keepMounted:i,id:a,render:s,...l}=e,{hiddenUntilFound:c,keepMounted:d}=hd(),{abortControllerRef:u,animationTypeRef:p,height:f,mounted:h,onOpenChange:m,open:g,panelId:v,panelRef:y,runOnceAnimationsFinish:b,setDimensions:x,setHiddenUntilFound:w,setKeepMounted:C,setMounted:k,setOpen:j,setVisible:N,transitionDimensionRef:_,visible:E,width:I,setPanelIdState:O,transitionStatus:S}=yd(),T=o??c,M=i??d;"production"!==process.env.NODE_ENV&&Ba((()=>{!1===i&&T&&pd("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.")}),[T,i]),Ba((()=>{if(a)return O(a),()=>{O(void 0)}}),[a,O]),Ba((()=>{w(T)}),[w,T]),Ba((()=>{C(M)}),[C,M]),Gs({open:g&&"idle"===S,ref:y,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:d,open:u,panelRef:p,runOnceAnimationsFinish:f,setDimensions:h,setMounted:m,setOpen:g,setVisible:v,transitionDimensionRef:y,visible:b,width:x}=e,w=n.useRef(!1),C=n.useRef(null),k=n.useRef(u),j=n.useRef(u),N=n.useMemo((()=>"css-animation"===r.current?!b:!u&&!c),[u,c,b,r]),_=Aa((e=>{if(!e)return;if(null==r.current||null==y.current){const t=getComputedStyle(e),n="none"!==t.animationName&&""!==t.animationName,o="0s"!==t.transitionDuration&&""!==t.transitionDuration;n&&o?"production"!==process.env.NODE_ENV&&pd("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(Rd.orientation)||t.transitionProperty.indexOf("width")>-1?y.current="width":y.current="height"}if("css-transition"!==r.current)return;e.style.setProperty("display",getComputedStyle(e).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=Ws.request((()=>{j.current=!1,n=Ws.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))})),()=>{Ws.cancel(t),Ws.cancel(n)}})),E=Fa(o,p,_);return Ba((()=>{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),!u){h({height:e.scrollHeight,width:e.scrollWidth}),t.current=new AbortController;const n=t.current.signal;let r=-1;const o=Ws.request((()=>{r=Ws.request((()=>{f((()=>{h({height:0,width:0}),e.style.removeProperty("content-visibility"),e.style.removeProperty("display"),m(!1),t.current=null}),n)}))}));return()=>{Ws.cancel(o),Ws.cancel(r)}}{const t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};e.style.setProperty("display",getComputedStyle(e).display||"block","important"),Object.keys(t).forEach((t=>{e.style.setProperty(t,"initial","important")})),!j.current&&!s&&e.setAttribute(wd.startingStyle,""),h({height:e.scrollHeight,width:e.scrollWidth}),n=Ws.request((()=>{e.style.removeProperty("display"),Object.entries(t).forEach((([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)}))}))}return()=>{Ws.cancel(n)}}),[t,r,a,s,c,u,p,f,h,m,y]),Ba((()=>{if("css-animation"!==r.current)return;const e=p.current;e&&(C.current=e.style.animationName||C.current,e.style.setProperty("animation-name","none"),h({height:e.scrollHeight,width:e.scrollWidth}),!k.current&&!w.current&&e.style.removeProperty("animation-name"),u?(null!=t.current&&(t.current.abort(),t.current=null),m(!0),v(!0)):(t.current=new AbortController,f((()=>{m(!1),v(!1),t.current=null}),t.current.signal)))}),[t,r,u,p,f,h,m,v,b]),Is((()=>{const e=Ws.request((()=>{k.current=!1}));return()=>Ws.cancel(e)})),Ba((()=>{if(!a)return;const e=p.current;if(!e)return;let t=-1,n=-1;return u&&w.current&&(e.style.transitionDuration="0s",h({height:e.scrollHeight,width:e.scrollWidth}),t=Ws.request((()=>{w.current=!1,n=Ws.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))}))),()=>{Ws.cancel(t),Ws.cancel(n)}}),[a,u,p,h]),Ba((()=>{const e=p.current;e&&a&&N&&(e.setAttribute("hidden","until-found"),"css-transition"===r.current&&e.setAttribute(wd.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(e){w.current=!0,g(!0),d(!0,Fs("none",e))}}),[d,p,g]),n.useMemo((()=>({props:{hidden:N,id:l,ref:E}})),[N,l,E])}({abortControllerRef:u,animationTypeRef:p,externalRef:t,height:f,hiddenUntilFound:T,id:a??v,keepMounted:M,mounted:h,onOpenChange:m,open:g,panelRef:y,runOnceAnimationsFinish:b,setDimensions:x,setMounted:k,setOpen:j,setVisible:N,transitionDimensionRef:_,visible:E,width:I}),{state:P,triggerId:D}=xd(),z=ds("div",e,{state:n.useMemo((()=>({...P,transitionStatus:S})),[P,S]),ref:[t,y],props:[R,{"aria-labelledby":D,role:"region",style:{[Pd.accordionPanelHeight]:void 0===f?"auto":`${f}px`,[Pd.accordionPanelWidth]:void 0===I?"auto":`${I}px`}},l],stateAttributesMapping:Id});return M||T||!M&&h?z:null}));"production"!==process.env.NODE_ENV&&(Dd.displayName="AccordionPanel");const zd={AccordionRoot:"_AccordionRoot_csye9_1",Trigger:"_Trigger_csye9_9",Header:"_Header_csye9_18",TriggerIcon:"_TriggerIcon_csye9_40",Panel:"_Panel_csye9_51",Content:"_Content_csye9_62"},Ad=({className:e,children:t,expanded:n,defaultExpanded:r,onChange:o,...i})=>{const a="item",s={...i,type:"single",className:Ca(zd.AccordionRoot,e),onValueChange:e=>{null==o||o(e.includes(a))},...void 0!==n?{value:n?[a]:[]}:{defaultValue:r?[a]:[]}};return ve.jsx(gd,{...s,children:ve.jsx(Od,{value:a,className:zd.Item,children:t})})},Ld=({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 ve.jsx(Sd,{className:zd.Header,children:ve.jsxs(Md,{...o,className:pi(zd.Trigger,t),style:a,children:[ve.jsx($n,{className:zd.TriggerIcon,"data-state-icon":!0}),r]})})},Vd=({children:e,...t})=>ve.jsx(Dd,{...t,className:zd.Panel,children:ve.jsx("div",{className:zd.Content,children:e})}),Fd=e=>ve.jsx($,{...e}),$d=({filterIsActive:e,label:t,hideLabel:n=!1,size:r="large",variant:o="outlined",...i})=>ve.jsx(ve.Fragment,{children:ve.jsxs("div",{className:"w-fit h-fit relative",children:[ve.jsx(da,{...i,type:"button",startIcon:ve.jsx(Zn,{width:"large"===r?24:20,height:"large"===r?24:20}),variant:o,size:r,children:!n&&(t||"Filter")}),e&&ve.jsx("div",{className:pi("h-2 w-2 bg-gama-400 rounded-full absolute","large"===r?"top-2 right-2":"top-1 right-1")})]})}),qd=()=>{const[e,t]=a(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:r=>{e?n():(e=>{t((()=>e.currentTarget))})(r)}}},Bd=e=>r.isValidElement(e)||"string"==typeof e||"number"==typeof e||null===e||Array.isArray(e),Hd=({filterIsActive:e,popoverContent:t,dataTest:n,disabled:o,size:i="large",variant:a="outlined",popoverProps:s,anchorNode:l,label:c,hideLabel:d})=>{const{onAnchorClick:u,onClose:p,anchorEl:f}=qd();return ve.jsxs(ve.Fragment,{children:[ve.jsxs("div",{className:"w-fit h-fit relative",children:[l?r.cloneElement(l({isOpen:!!f,onClose:p}),{onClick:u}):ve.jsx(da,{type:"button",disabled:o,variant:a,startIcon:ve.jsx(Zn,{width:"large"===i?24:20,height:"large"===i?24:20}),onClick:u,size:i,dataTest:n,children:!d&&(c||"Filter")}),e&&ve.jsx("div",{className:pi("h-2 w-2 bg-gama-400 rounded-full absolute","large"===i?"top-2 right-2":"top-1 right-1")})]}),ve.jsx(Fd,{...s,open:!!f,anchorEl:f,onClose:p,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:Bd(t)?t:t({isOpen:!!f,onClose:p})})]})},Ud=({className:e,contentToCopy:t,locale:n,messageInfo:r,text:o})=>{const i="en"===n?"Copy":"Kopier",a=va();return ve.jsx(ta,{title:i,children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"copy-button",className:e,size:"small",variant:"text",startIcon:ve.jsx(pl,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},children:!a&&(o||i)})})})},Wd="_copy-wrapper_1gjzc_1",Kd="_hidden-copy_1gjzc_1",Gd=({className:e,contentToCopy:t,locale:n,messageInfo:r,children:o})=>ve.jsxs("div",{className:Ca("flex items-center hover:text-gama-500",Wd,e),children:[o,ve.jsx(ta,{title:"no"===n?"Kopier":"Copy",className:Kd,children:ve.jsx("div",{children:ve.jsx(da,{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:ve.jsx(pl,{width:20,height:20})})})})]}),Yd="_styled-widget-title_1mja5_1",Jd=function(e){return ve.jsx("div",{className:Yd,children:e.children})},Xd="_styled-widget-header_yk04z_1",Zd=({actions:e,title:t,containerClassname:n,actionsClassname:r})=>ve.jsxs("div",{className:Ca(Xd,n),children:[ve.jsx(Jd,{children:t}),ve.jsx("div",{className:r,children:e})]}),Qd="_asma-core-ui-styled-widget_fvr2z_1",eu="_widget-header-left_fvr2z_19",tu="_widget-header-right_fvr2z_25",nu="_widget-content_fvr2z_31",ru="_widget-footer_fvr2z_41",ou="_widget-link_fvr2z_46";function iu(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ve.jsx("path",{fill:"currentColor",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})})}function au(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ve.jsx("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})})}const su=({children:e,title:t,icon:n,link:r,viewMore:o,persistKey:i,isLoading:l,isEmpty:c,emptyText:d,headerRight:u,headerRightClassName:p})=>{const[f,h]=a(!1);s((()=>{if(i){const e=localStorage.getItem(i);h("true"===e)}}),[i]),s((()=>{i&&localStorage.setItem(i,String(f))}),[f,i]);const m=!!r&&!r.hide,g=!(!o||null!=o&&o.hide);return ve.jsxs("div",{className:Qd,children:[ve.jsxs("div",{className:eu,children:[n,ve.jsx(Jd,{children:t}),ve.jsx("div",{className:`${tu} ${p??""}`,children:u})]}),ve.jsx("div",{className:nu,children:ve.jsxs(ve.Fragment,{children:[e,ve.jsx(Ta,{isLoading:l}),ve.jsx(Oa,{isEmpty:c,emptyText:d})]})}),g&&ve.jsxs("div",{className:ru,children:[!o||null!=o&&o.hide?ve.jsx("div",{}):ve.jsx(da,{disabled:o.disabled,dataTest:"view-more",variant:"text",endIcon:f?ve.jsx(iu,{width:20,height:20}):ve.jsx(au,{width:20,height:20}),onClick:()=>{var e;h(!f),null==(e=null==o?void 0:o.onClick)||e.call(o)},children:f?o.viewLessText:o.viewMoreText}),m?ve.jsx(ld,{dataTest:"go-to-button",className:ou,size:"small",href:r.href,onClick:r.onClick,content:r.content}):ve.jsx("div",{})]})]})},lu="_styled-module-title_174mo_1",cu=function(e){return ve.jsx("h1",{"data-test":e.dataTest,className:lu,children:e.children})},du="_dialog_erjok_1",uu="_hidden_erjok_9";function pu(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ve.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 fu(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ve.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 hu="object"==typeof global&&global&&global.Object===Object&&global;var mu="object"==typeof self&&self&&self.Object===Object&&self;const gu=(hu||mu||Function("return this")()).Symbol;var vu=Object.prototype,yu=vu.hasOwnProperty,bu=vu.toString,xu=gu?gu.toStringTag:void 0;var wu=Object.prototype.toString;var Cu="[object Null]",ku="[object Undefined]",ju=gu?gu.toStringTag:void 0;function Nu(e){return null==e?void 0===e?ku:Cu:ju&&ju in Object(e)?function(e){var t=yu.call(e,xu),n=e[xu];try{e[xu]=void 0;var r=!0}catch{}var o=bu.call(e);return r&&(t?e[xu]=n:delete e[xu]),o}(e):function(e){return wu.call(e)}(e)}const _u=Array.isArray;function Eu(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=Nu(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const Iu=({onCloseText:e="",onMinimizeText:t="",onExpandText:n="",onFullScreenText:r="",showCloseIcon:o=!0,showMinimizeIcon:i=!0,showExpandIcon:s=!0,showFullScreenIcon:l=!0,title:c,label:u,children:p,open:f,onClose:h,className:m="",primaryButtonText:g,primaryButtonLoading:v=!1,secondaryButtonText:y,onPrimaryButtonClick:b,onSecondaryButtonClick:x,dataTest:w,actionNode:C,extraActions:k,extraActionsText:j,btnContainerClassName:N,footerClassName:_,footerInfo:E,locale:I="en",enableFullscreen:O=!0,fullScreenState:S,handleFullScreenState:T})=>{const[M,R]=a(!1),[P,D]=a(!1),{open:z,anchorEl:A,handleOpen:L,handleClose:V}=(()=>{const[e,t]=a(null),n=!!e,r=d((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:d((()=>{t(null)}),[]),handleOpen:r,anchorEl:e}})();if(!f)return null;const F=void 0!==S?S:P,$=g||v,q=$||y,B=()=>{R(!M)};return ve.jsxs(ve.Fragment,{children:[F&&!M&&ve.jsx("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),ve.jsx("div",{style:{zIndex:51},className:Ca(du,!M&&uu),children:ve.jsxs("div",{className:pi("flex items-center justify-between",!M&&"hidden"),"data-test":w,children:[ve.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:c}),ve.jsxs("div",{className:"flex items-center gap-x-1",children:[s&&ve.jsx(ta,{title:"en"===I?"Expand":"Utvid",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"minimize-button",variant:"text",size:"small",onClick:B,endIcon:s&&ve.jsx(vr,{height:20,width:20,color:"text-gama-500"}),children:n})})}),o&&ve.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:o&&ve.jsx(Bn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]})}),ve.jsxs("div",{className:Ca("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:[ve.jsxs("div",{className:"flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[ve.jsxs("div",{className:"flex items-center justify-between",children:[u?ve.jsx("div",{className:"text-sm text-delta-700",children:u}):ve.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:c}),ve.jsxs("div",{className:"flex items-center gap-x-1",children:[C,i&&ve.jsx(ta,{title:"en"===I?"Minimize":"Minimer",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:B,endIcon:i&&ve.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:t})})}),O&&l&&ve.jsx(ta,{title:F?"en"===I?"Exit full screen":"Avslutt fullskjerm":"en"===I?"Full screen":"Fullskjerm",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==S&&T?T():D(!P)},endIcon:F?ve.jsx(fu,{width:20,height:20,color:"text-delta-700"}):ve.jsx(pu,{width:20,height:20,color:"text-delta-700"}),children:r})})}),o&&ve.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:ve.jsx(Bn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]}),u&&ve.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:c})]}),ve.jsxs("div",{className:pi("flex flex-col",F&&!M&&"h-[87dvh]"),children:[ve.jsx("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof p?p({fullScreen:F}):p}),(_u(k)&&null!=k&&k.length||Eu(k))&&j||E?ve.jsxs("div",{className:Ca("flex items-center justify-between p-4 border-0 border-t-[1px] border-solid border-delta-200 bg-white",_),children:[_u(k)&&null!=k&&k.length&&j?ve.jsxs(ve.Fragment,{children:[ve.jsx(da,{dataTest:"extra-actions-button",variant:"textGray",startIcon:ve.jsx(Rn,{width:24,height:24}),onClick:L,children:j}),ve.jsx(ed,{open:z,anchorEl:A,onClose:V,children:k.map((e=>ve.jsx(td,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):j&&Eu(k)&&ve.jsx(da,{dataTest:"extra-action-button",variant:"text",onClick:k,children:j})," ",E,q?ve.jsxs("div",{className:Ca("flex justify-end gap-x-4",N),children:[y&&x&&ve.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:y}),$&&b&&ve.jsx(da,{dataTest:"save-button",startIcon:v&&ve.jsx(ll,{width:24,height:24}),onClick:b,children:g})]}):null]}):ve.jsx(ve.Fragment,{children:q?ve.jsxs("div",{className:Ca("flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",N),children:[y&&x&&ve.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:y}),$&&b&&ve.jsx(da,{dataTest:"save-button",startIcon:v&&ve.jsx(ll,{width:24,height:24}),onClick:b,children:g})]}):null})]})]})]})},Ou=({showCloseIcon:e,tooltipTitle:t,onClick:n})=>e?ve.jsx(ta,{title:t,placement:"top",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:n,endIcon:ve.jsx(Bn,{height:20,width:20,color:"text-delta-700"})})})}):null,Su=({visibility:e,tooltipTitle:t,onClick:n,type:r})=>{if(!e)return null;const o="minimize"===r;return"expand"===r?ve.jsx("div",{children:ve.jsx(ta,{title:t,placement:"top",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"toggle-minimize-btn",variant:"text",size:"small",onClick:n,endIcon:ve.jsx(vr,{height:20,width:20,color:"text-gama-500"})})})})}):o?ve.jsx("div",{children:ve.jsx(ta,{title:t,placement:"top",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"toggle-minimize-btn",variant:"textGray",size:"small",onClick:n,endIcon:ve.jsx(gr,{height:20,width:20,color:"text-delta-700"})})})})}):null},Tu=({fullScreen:e,showFullScreenIcon:t,tooltipTitle:n,onClick:r})=>t?ve.jsx(ta,{title:n,children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:r,endIcon:e?ve.jsx(fu,{width:20,height:20,color:"text-delta-700"}):ve.jsx(pu,{width:20,height:20,color:"text-delta-700"})})})}):null,Mu="_minimized-dialog_16tvw_5",Ru="_dialog_16tvw_1",Pu="_hidden_16tvw_27",Du={en:{close:"Close",expand:"Expand",minimize:"Minimize",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen"},no:{close:"Lukk",expand:"Utvid",minimize:"Minimer",fullscreen:"Fullskjerm",exitFullscreen:"Avslutt fullskjerm"}};const zu=e=>{const{showCloseIcon:t=!0,showMinimizeIcon:n=!0,showExpandIcon:r=!0,enableFullscreen:o=!0,title:i,label:s,children:l,open:d,onClose:p,classNameOverrides:f={maximized:"",minimized:"",fullscreen:""},dataTest:h,actionNode:m,locale:g="en",style:v}=e,y=va(),b=function(e="en"){return u((()=>Du[e]??Du.en),[e])}(g),x=c(null),{minimized:w,setMinimized:C,fullScreen:k,setFullScreen:j}=(({fullScreenState:e,handleFullScreenState:t,minimizedState:n,handleMinimizedState:r})=>{const[o,i]=a(!1),[s,l]=a(!1);return{fullScreen:void 0!==e?e:s,setFullScreen:e=>t?t():l(e),minimized:void 0!==n?n:o,setMinimized:e=>r?r(e):i(e)}})(e);return d?ve.jsxs(ve.Fragment,{children:[ve.jsx("div",{style:{zIndex:51,...v},className:Ca(Mu,!w&&Pu,f.minimized),children:ve.jsxs("div",{className:pi("flex items-center justify-between",!w&&"hidden"),"data-test":h,children:[ve.jsx("div",{className:"truncate max-w-[303px] text-lg font-semibold text-delta-800 pr-1",children:ve.jsx(ta,{title:i,placement:"top",children:ve.jsx("div",{className:"truncate",children:i})})}),ve.jsxs("div",{className:"flex items-center gap-x-1",children:[ve.jsx(Su,{type:"expand",visibility:r,onClick:()=>C(!w),tooltipTitle:b.expand}),ve.jsx(Ou,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]})}),k&&!w&&ve.jsx("div",{className:"z-[52] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70",onClick:()=>j(!1)}),ve.jsxs("div",{style:{zIndex:51,...v},ref:x,className:Ca(Ru,w&&Pu,f.maximized,k&&!w&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0 z-[53]"),children:[ve.jsxs("div",{className:Ca("flex flex-col px-4 border-b-[1px] border-delta-200",y?"py-3 gap-y-1":"py-4 gap-y-2"),children:[ve.jsxs("div",{className:"flex items-center justify-between",children:[s?ve.jsx("div",{className:"text-sm text-delta-700",children:s}):ve.jsx("div",{className:Ca("font-semibold text-delta-800",y?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i}),ve.jsxs("div",{className:"flex items-center gap-x-1",children:[m,ve.jsx(Su,{visibility:n&&!y,type:"minimize",onClick:()=>C(!w),tooltipTitle:b.minimize}),ve.jsx(Tu,{showFullScreenIcon:o&&!y,fullScreen:k,onClick:()=>j(!k),tooltipTitle:k?b.exitFullscreen:b.fullscreen}),ve.jsx(Ou,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]}),s&&ve.jsx("div",{className:Ca("font-semibold text-delta-800",y?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i})]}),ve.jsx("div",{className:Ca(w&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:l})]})]}):null};function Au({config:e,MAX_DIALOG_WIDTH:t=600}){const n=p(void 0);return{DialogStackProvider:({children:r})=>{const[o,i]=a([]),l=function(){const[e,t]=a((()=>window.innerWidth));return s((()=>{const e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e}(),c=d((e=>{const n=[...e].sort(((e,t)=>e.order-t.order)),r=n.length||1,o=Math.min(t,(l-16*(r+1))/r);return n.map(((e,t)=>({...e,width:o,position:{right:16+t*(o+16)}})))}),[l]),u=d(((t,n)=>{var r,o;const a=null==(r=e[t])?void 0:r.dependencies,s=(null==(o=e[t])?void 0:o.order)??1/0,l=n??s;i((e=>{const n=e.find((e=>e.id===t)),r={id:t,open:!0,width:0,position:{right:0},dependencies:a,order:l},o=n?e.map((e=>e.id===t?{...e,open:!0,dependencies:a}:e)):[...e,r];return c(o.filter((e=>e.open)))}))}),[c]),p=d((e=>{i((t=>{var n;const r=new Set([e]);let o;do{o=!1;for(const e of t)null!=(n=e.dependencies)&&n.some((e=>r.has(e)))&&!r.has(e.id)&&(r.add(e.id),o=!0)}while(o);return c(t.filter((e=>!r.has(e.id))))}))}),[c]),f=d((e=>o.find((t=>t.id===e))),[o]);return ve.jsx(n.Provider,{value:{dialogs:o,openDialog:u,closeDialog:p,getDialogState:f},children:r})},useDialogStack:function(){const e=f(n);if(!e)throw new Error("useDialogStack must be used within DialogStackProvider");return e}}}export{Ln as ArchiveIcon,xn as AssignmentIcon,wn as AssignmentOutlineIcon,q as Avatar,br as BadgeIcon,tn as BellIcon,en as BellOutlineIcon,rr as CalendarBlankOutlineIcon,vn as CalendarIcon,bn as CalendarRangeIcon,Fn as CheckBoxCheckedIcon,gn as CheckFactIcon,mn as CheckFactOutlineIcon,hn as CheckOutlineIcon,an as ChevronDoubleLeftIcon,sn as ChevronDoubleRightIcon,$n as ChevronDownIcon,on as ChevronLeftIcon,rn as ChevronRightIcon,qn as ChevronUpIcon,B as ClickAwayListener,Bn as CloseIcon,mr as ConsentsIcon,H as Container,Ud as CopyButton,Gd as CopyWrapper,dn as DashboardViewIcon,un as DashboardViewOutlineIcon,Xn as DeleteOutlineIcon,Rn as DotsVerticalIcon,Vn as DownloadIcon,Yn as DragHorizontalIcon,An as DropDownIcon,zn as DropUpIcon,er as DvrIcon,dr as EarthIcon,xr as EditSquareIcon,tr as ErrorOutlineIcon,U as Fade,ir as FastCheckOutlineIcon,Jn as FilePdfIcon,Zn as FilterIcon,On as FindReplaceIcon,Sn as FindReplacePeopleIcon,W as FormLabel,nn as HamburgerIcon,jr as HandymanIcon,kr as HandymanOutlineIcon,Wn as InboxOutboxIcon,Kn as InboxOutboxOutlineIcon,fl as IndeterminateIcon,vr as KeyboardCapslockIcon,or as LinkOutlineIcon,Cn as ListNumberedIcon,cr as ListSettingsLineIcon,sr as ListStatusIcon,Dn as LoadingIcon,Qn as LockIcon,kn as MessageProcessingIcon,jn as MessageProcessingOutlineIcon,yr as MessageReplyIcon,Iu as MinimizableDialog,zu as MinimizableDialogV2,gr as MinimizeIcon,yn as NewCalendarIcon,hr as OutlineCalendarMonth,K as Paper,cn as PdfIcon,pr as PencilOutlineIcon,fn as PeopleIcon,pn as PeopleOutlineIcon,Hn as PermMediaIcon,Un as PermMediaOutline,Tn as PersonIcon,Mn as PersonOutlineIcon,Nr as PinIcon,wr as PlusIcon,Cr as PlusIconCircle,G as Popper,ln as QnrIcon,nr as ReplayIcon,Nn as ReportBoxIcon,_n as ReportBoxOutlineIcon,Pn as SearchIcon,En as SettingsIcon,ur as SettingsMenuHorizontalIcon,In as SettingsOutlineIcon,Y as Skeleton,J as Stack,Ad as StyledAccordion,Vd as StyledAccordionDetails,Ld as StyledAccordionSummary,ye as StyledBadge,da as StyledButton,hl as StyledCheckbox,Er as StyledChip,ya as StyledDialog,ka as StyledDialogActions,Na as StyledDialogContent,Ea as StyledDialogTitle,Qc as StyledDrawer,Kc as StyledDynamicSelect,Oa as StyledEmptyPage,$d as StyledFilterButton,Hd as StyledFilterMenu,Gc as StyledFormControl,Yc as StyledFormControlLabel,Zc as StyledFormGroup,Jc as StyledFormHelperText,sa as StyledFormLabel,ml as StyledInputField,Xc as StyledInputLabel,Sr as StyledInteractiveChip,Hc as StyledLabel,ld as StyledLink,Ta as StyledLoading,ed as StyledMenu,td as StyledMenuItem,nd as StyledMenuList,cu as StyledModuleTitle,Fd as StyledPopover,Ql as StyledRadio,Bc as StyledRadioGroup,gl as StyledSearchField,bl as StyledSelect,kl as StyledSelectAutocomplete,xl as StyledSelectItem,jl as StyledSlider,Rl as StyledSwitch,cd as StyledTab,dd as StyledTabs,yl as StyledTextarea,ta as StyledTooltip,na as StyledTypography,su as StyledWidget,Zd as StyledWidgetHeader,Jd as StyledWidgetTitle,lr as TextBoxCheckOutlineIcon,Gn as TopicIcon,ar as UnknownDocumentOutlineRoundedIcon,fr as WarningAmberOutlineIcon,_r as WorkIcon,Au as createDialogStack,ne as omit,ue as prepareForSlot,ce as setMidnightTime,de as setZeroTime};
38
+ "production"===process.env.NODE_ENV?ol.exports=function(){if(nl)return il;nl=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,d=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=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:d,props:l,_owner:i.current}}return il.Fragment=n,il.jsx=s,il.jsxs=s,il}():ol.exports=(rl||(rl=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"),d=Symbol.for("react.suspense"),u=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",v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(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=v.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 b;function x(e){return e.displayName||"Context"}function w(e){if(null==e)return null;if("number"==typeof e.tag&&y("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 d:return"Suspense";case u: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}b=Symbol.for("react.module.reference");var C,k,j,N,_,E,I,O=Object.assign,S=0;function T(){}T.__reactDisabledLog=!0;var M,R=v.ReactCurrentDispatcher;function P(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 D,z=!1,A="function"==typeof WeakMap?WeakMap:Map;function L(e,t){if(!e||z)return"";var n,r=D.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===S){C=console.log,k=console.info,j=console.warn,N=console.error,_=console.group,E=console.groupCollapsed,I=console.groupEnd;var e={configurable:!0,enumerable:!0,value:T,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}S++}();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,d=l.length-1;c>=1&&d>=0&&s[c]!==l[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==l[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==l[d]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&D.set(e,u),u}}while(c>=1&&d>=0);break}}}finally{z=!1,R.current=o,function(){if(0==--S){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:C}),info:O({},e,{value:k}),warn:O({},e,{value:j}),error:O({},e,{value:N}),group:O({},e,{value:_}),groupCollapsed:O({},e,{value:E}),groupEnd:O({},e,{value:I})})}S<0&&y("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?P(p):"";return"function"==typeof e&&D.set(e,f),f}function V(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 P(e);switch(e){case d:return P("Suspense");case u:return P("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,n){return L(e,!1)}(e.render);case p:return V(e.type,t,n);case f:var o=e,i=o._payload,a=o._init;try{return V(a(i),t,n)}catch{}}return""}D=new A;var F=Object.prototype.hasOwnProperty,$={},q=v.ReactDebugCurrentFrame;function B(e){if(e){var t=e._owner,n=V(e.type,e._source,t?t.type:null);q.setExtraStackFrame(n)}else q.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 y("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,J,X=v.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};J={};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=v.ReactCurrentOwner,ne=v.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,n=V(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),y('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,v){var x,C=!("string"!=typeof(x=e)&&"function"!=typeof x&&x!==o&&x!==a&&x!==i&&x!==d&&x!==u&&x!==h&&("object"!=typeof x||null===x||x.$$typeof!==f&&x.$$typeof!==p&&x.$$typeof!==s&&x.$$typeof!==l&&x.$$typeof!==c&&x.$$typeof!==b&&void 0===x.getModuleId));if(!C){var k="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j,N=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);k+=N||ie(),null===e?j="null":U(e)?j="array":void 0!==e&&e.$$typeof===t?(j="<"+(w(e.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,k)}var _=function(e,t,n,r,o){var i,a,s,l,c={},d=null,u=null;for(i in void 0!==n&&(K(n),d=""+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),d=""+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)&&(u=t.ref,function(e,t){if("string"==typeof e.ref&&X.current&&t&&X.current.stateNode!==t){var n=w(X.current.type);J[n]||(y('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(X.current.type),e.ref),J[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(d||u){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;d&&(a=c,s=f,(l=function(){G||(G=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:l,configurable:!0})),u&&function(e,t){var n=function(){Y||(Y=!0,y("%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,d,u,o,r,X.current,c)}(e,n,r,g,v);if(null==_)return _;if(C){var E=n.children;if(void 0!==E)if(m)if(U(E)){for(var I=0;I<E.length;I++)le(E[I],e);Object.freeze&&Object.freeze(E)}else y("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(E,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),y("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),y("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)&&(B(o),y("%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),B(null)),s instanceof Error&&!(s.message in $)&&($[s.message]=!0,B(o),y("Failed %s type: %s",n,s.message),B(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ee||(ee=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(_),_}al.Fragment=o,al.jsx=function(e,t,n){return ce(e,t,n,!1)},al.jsxs=function(e,t,n){return ce(e,t,n,!0)}}()),al);var sl=ol.exports;function ll(e){return sl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:sl.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,children:[sl.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:sl.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),sl.jsxs("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3C16.9706 3 21 7.02944 21 12",children:[sl.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),sl.jsx("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})]})})}function cl(e){return sl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:sl.jsx("path",{fill:"currentColor",d:"M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41z"})})}function dl(e){return sl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:sl.jsx("path",{fill:"currentColor",d:"M11 15h2v2h-2zm0-8h2v6h-2zm1-5C6.47 2 2 6.5 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 18a8 8 0 0 1-8-8a8 8 0 0 1 8-8a8 8 0 0 1 8 8a8 8 0 0 1-8 8"})})}function ul(e){return sl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:sl.jsx("path",{fill:"currentColor",d:"M11 17h2v-4h4v-2h-4V7h-2v4H7v2h4zm1 5q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"})})}function pl(e){return sl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:sl.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"})})}const fl=({className:e})=>ve.jsx("svg",{viewBox:"0 0 24 24",className:e,fill:"none",children:ve.jsx("rect",{x:"5.5",y:"10.5",width:"13",height:"2.75",fill:"currentColor"})}),hl=({dataTest:e,size:t="medium",disabled:n,readOnly:o,indeterminate:i=!1,checked:a,disableRipple:l,hideWrapper:c,className:d,onChange:u,...p})=>{const f=!!c,h=!(l||f||n||o),m=Ca(tl.CheckboxWrapper,!f&&tl[`size-${t}`],f&&tl.HideWrapper,o&&tl.ReadOnly,h&&tl.CheckboxHover,d),g=Ca("styled-checkbox-inner",tl.Checkbox,tl[`size-${t}`]),v=i?fl:cl,y=r.useRef(null),b=r.useCallback((e=>{var t;if(e.stopPropagation(),!h)return;const n=document.createElement("span");n.className=tl.CheckboxRipple||"",n.addEventListener("animationend",(()=>n.remove()),{once:!0}),null==(t=y.current)||t.appendChild(n)}),[h]);s((()=>()=>{var e;null==(e=y.current)||e.replaceChildren()}),[]);const x=r.useCallback((e=>{if(o)return;const t={target:{name:p.name,value:p.value,checked:e}};null==u||u(t,e)}),[u,p.name,p.value,o]);return ve.jsxs(qs,{className:m,"data-test":e,checked:a,disabled:n,readOnly:o,indeterminate:i,onPointerDown:b,onCheckedChange:x,...p,children:[!f&&h&&ve.jsx("span",{ref:y,className:tl.CheckboxRippleContainer}),ve.jsx("span",{className:g,children:ve.jsx(el,{className:tl.Indicator,children:ve.jsx(v,{})})})]})},ml=({allowClear:e,onClear:t,readOnly:n,disabled:r,error:o,helperText:i,dataTest:a,...s})=>ve.jsx(j,{...s,"data-test":a,disabled:r||n,error:o,helperText:n?null:o?ve.jsxs("div",{className:"flex items-center gap-1",children:[ve.jsx(dl,{width:20,height:20,className:"min-w-5"}),i??"Required"]}):i,type:s.type||"mui-input",InputProps:e&&s.value?{...s.InputProps,endAdornment:ve.jsx("div",{className:"z-40 hover:bg-gama-100 duration-300 absolute right-4 p-[2px] rounded-full flex items-center justify-center",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==t||t()},children:ve.jsx(Bn,{width:18,height:18})})}:s.InputProps,sx:{"& input:-webkit-autofill, & .MuiInputBase-root:has(> input:-webkit-autofill)":{backgroundColor:"#e8f0fe !important"},"& input":{backgroundColor:"transparent"},"& .MuiInputBase-root":{backgroundColor:"transparent"},"& .MuiInputBase-colorPrimary fieldset":{borderColor:"var(--colors-delta-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused fieldset":{borderColor:"var(--colors-gama-400) !important"},"& .MuiInputBase-colorPrimary.Mui-focused::after":{borderColor:"var(--colors-gama-400) !important"},"& .MuiInputBase-colorPrimary.Mui-focused:hover fieldset":{borderColor:"var(--colors-gama-400) !important"},"& .MuiInputBase-colorPrimary:hover fieldset":{borderColor:"var(--colors-gama-300) !important",borderWidth:"2px !important"},"& .MuiInputBase-colorPrimary.Mui-disabled:hover fieldset":{borderWidth:"1px !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error:hover fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiFormHelperText-root":{fontSize:"14px"},"& .MuiFormHelperText-root.Mui-error":{color:"var(--colors-error-500) !important",marginLeft:0},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-300) !important"},"& label.Mui-focused":{color:"var(--colors-gama-500) !important"},"& label":{color:"var(--colors-delta-500) !important"},"& label.Mui-disabled":{color:"var(--colors-gray-300) !important"},"& .MuiOutlinedInput-input::placeholder":{color:"var(--colors-delta-500) !important",opacity:"1 !important"},"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-300) !important"},...n&&{"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-800) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled":{backgroundColor:"var(--colors-delta-10) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-200) !important"},"& label.Mui-disabled":{color:"var(--colors-gray-800) !important"}},...s.sx}}),gl=({value:e,onClear:t,...n})=>{const[r,o]=a(!1),i=r||e;return ve.jsxs("div",{className:"relative w-full",children:[ve.jsx(ml,{size:"small",variant:"outlined",value:e,onFocus:()=>o(!0),onBlur:()=>o(!1),InputProps:{className:Ca("transition-[padding] duration-300",i?"pl-0":"pl-5"),sx:{"& input":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},endAdornment:e?ve.jsx("div",{className:Ca("cursor-pointer bg-delta-50 rounded-full","flex items-center justify-center","transform-gpu transition-all duration-300 ease-in-out",e?"opacity-100 scale-100":"opacity-0 scale-75 pointer-events-none"),style:{width:24,height:24,flexShrink:0},onClick:e=>{e.preventDefault(),e.stopPropagation(),null==t||t()},children:ve.jsx(Bn,{width:20,height:20,color:"var(--colors-delta-700)",className:"pointer-events-none"})}):null},InputLabelProps:{sx:{transform:"translate(34px, 9px) scale(1)",width:i?void 0:"calc(100% - 42px)","&.MuiInputLabel-shrink":{transform:"translate(16px, -9px) scale(0.75)"}}},...n,sx:{...n.fullWidth?{width:"100%"}:{width:160},...n.sx}}),ve.jsx(Pn,{width:24,height:24,className:Ca("absolute left-2 top-1/2 -translate-y-1/2","transform-gpu transition-all duration-300 ease-in-out",i?"opacity-0 scale-75 pointer-events-none":"opacity-100 scale-100"),color:"var(--colors-delta-700)"})]})},vl={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},yl=({id:e,variant:t="active",label:n="",labelClassName:r="",description:o="",value:i="",minRows:d=3,maxRows:u=1/0,disabled:p,error:f,errorMessage:h,containerClassName:m="",className:g="",maxLength:v=1/0,counter:y,refLink:b,dataTest:x,counterLimit:w,...C})=>{const k=c(null),j=b||k,N=!(!y||!w),[_,E]=a(!1);s((()=>{E(!0)}),[]),((e,t,n,r,o,i)=>{l((()=>{if(e){const t=i?32:0;e.style.height="auto";const n=20,o=e.scrollHeight-24;Math.ceil(o/n)>r?e.style.height=`${n*r+24+t}px`:e.style.height=`${e.scrollHeight+t}px`}}),[e,t,n,r,o,i])})(j.current,i,d,u,_,N),u<d&&(d=u);const[I,O]=a(i.length);s((()=>{O(i.length)}),[i]);const S=f?"error":"active",T=f?"error":p?"disabled":"active";return ve.jsxs("div",{className:`flex flex-col gap-1 relative ${m}`,"data-test":x,children:[ve.jsx("label",{htmlFor:e,className:`${vl.label} ${vl[T]} ${r}`,children:n}),ve.jsx("span",{className:`${vl.description} ${vl[T]}`,children:f?h:o}),"view_only"===t?ve.jsx("div",{className:"font-roboto text-sm font-normal pt-3 text-gray-700",children:i}):"not_editable"===t?ve.jsx("div",{className:"font-roboto text-sm font-normal rounded p-3 bg-gray-200 text-gray-700",children:i}):ve.jsx("textarea",{...C,id:e,ref:j,className:`${vl.textarea} ${vl[S]} ${g} ${N?"pb-[32px]":""}`,wrap:"soft",value:i,disabled:p,maxLength:v}),N&&ve.jsxs("div",{className:"flex justify-end absolute bottom-3 right-3 text-[10px] font-roboto h-[15px] pointer-events-none",children:[I,"/",w]})]})},bl=({dataTest:e,allowClear:t,error:n,errorText:r,...o})=>ve.jsxs(ve.Fragment,{children:[ve.jsx(N,{...o,"data-test":e,error:n,value:o.value,IconComponent:e=>ve.jsx(Xt,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:pi(e.className,"select-custom-icon")}),endAdornment:t&&o.value?ve.jsx("div",{className:"hover:bg-gama-100 duration-300 absolute right-8 p-[2px] rounded-full flex items-center justify-center",onClick:()=>{var e;null==(e=o.onChange)||e.call(o,{target:{value:""}},null)},children:ve.jsx(Bn,{width:18,height:18})}):null,sx:{".MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-delta-500) !important"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"&.MuiFormLabel-root-MuiInputLabel-root .Mui-error":{color:"var(--colors-error-500) !important"},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"&.Mui-focused::after":{borderColor:"var(--colors-gama-400) !important"},"&:hover .MuiOutlinedInput-notchedOutline":{border:"2px solid var(--colors-gama-300) !important"},"& .select-custom-icon":{marginTop:"-3.5px !important"},...o.sx}}),n&&ve.jsxs(Jc,{className:"flex items-center gap-1 m-0 pt-1 text-sm text-error-500",children:[ve.jsx(dl,{width:20,height:20}),r??"Required"]})]}),xl=e=>ve.jsxs(_,{...e,sx:{"&.MuiMenuItem-root":{fontSize:"14px !important",gap:"4px",px:1},"&.Mui-selected":{backgroundColor:"var(--colors-gama-50) !important"}},children:[ve.jsx("span",{style:{width:"24px",justifyContent:"center",display:"flex"},children:e.selected&&ve.jsx(Xt,{icon:"mdi:tick",width:22,height:22,style:{color:"var(--colors-gama-500)"}})}),ve.jsx("span",{children:e.children})]}),wl="_styledSelectAutocompleteWrapper_lfbvb_1",Cl="_select-custom-icon_lfbvb_5";function kl({dataTest:e,autoHeight:t,getOptionLabel:n,wrapperClassName:r,...o}){const[i,l]=a("auto"),d=c(null);s((()=>{var e,n;const r=(null==(e=d.current)?void 0:e.getBoundingClientRect().height)??0,o=(null==(n=d.current)?void 0:n.getBoundingClientRect().top)??0,i=window.innerHeight-o-r-40;t&&l(i>0?i:"auto")}),[t]);const u=t?{style:{maxHeight:"auto"===i?"auto":`${i}px`}}:{},p=e=>"object"==typeof e&&null!==e&&"label"in e?e.label:String(e);return ve.jsx("div",{className:Ca(wl,r),ref:d,children:ve.jsx(E,{...o,getOptionLabel:n,ListboxProps:{...u,sx:{"& .MuiAutocomplete-option":{paddingLeft:"6px !important"}}},className:pi("!text-sm",o.className),popupIcon:o.readOnly?null:o.popupIcon||ve.jsx(Xt,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:pi(Cl)}),"data-test":e,PaperComponent:({children:t})=>ve.jsx(I,{"data-test":`paper-${e}`,sx:{padding:"0 !important",marginTop:"0px !important","& .MuiAutocomplete-option.Mui-focused":{background:"var(--colors-delta-50) !important"},"& li[aria-selected=true]":{background:"var(--colors-gama-50) !important"},"& li[aria-selected=true].MuiAutocomplete-option.Mui-focused":{background:"var(--colors-gama-50) !important"}},children:t}),renderOption:(null==o?void 0:o.renderOption)||((e,t,{selected:r})=>ve.jsxs("li",{...e,children:[ve.jsx("span",{style:{width:"24px",height:"22px",paddingRight:"4px",justifyContent:"center",alignContent:"center",display:"flex"},children:r&&ve.jsx(Xt,{icon:"mdi:tick",width:20,height:20,style:{color:"var(--colors-gama-500)"}})}),ve.jsx("span",{className:"flex-1 text-sm truncate",children:(null==n?void 0:n(t))||p(t)})]})),sx:{...o.sx,"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-0.5px !important"},"& .MuiInputBase-inputSizeSmall":{minHeight:"23px !important"}}})})}const jl=({dataTest:e,error:t,errorText:n,helperText:r,...o})=>{var i,a,s;const l=(t??!1)||(r??!1),c=t?n??"Required":r;return ve.jsxs(ve.Fragment,{children:[ve.jsx(O,{...o,"data-test":e,classes:{...o.classes},slotProps:{...o.slotProps,thumb:{className:pi("w-4 h-4","before:shadow-none",'after:content-[""] after:h-8 after:w-8',"vertical"===o.orientation?"ml-0 mb-1":"ml-1",o.disabled?"bg-delta-200":"bg-gama-500"),...null==(i=o.slotProps)?void 0:i.thumb},rail:{className:"bg-delta-200",...null==(a=o.slotProps)?void 0:a.rail},markLabel:{className:pi("text-delta-600 text-sm font-semibold ml-1","vertical"===o.orientation&&"mb-1"),...null==(s=o.slotProps)?void 0:s.markLabel}},sx:{...o.sx,"& .MuiSlider-track":{backgroundColor:o.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",borderColor:o.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)"},"& .MuiSlider-mark":{backgroundColor:"white",border:"1px solid var(--colors-delta-300)",borderRadius:"50%",height:"8px",width:"8px","&.MuiSlider-markActive":{backgroundColor:o.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",border:"1px solid",borderColor:o.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",opacity:1}}}}),l&&ve.jsxs(Jc,{className:pi("flex items-center gap-1 m-0 pt-1 text-sm",t?"text-error-500":"text-delta-600"),children:[t&&ve.jsx(dl,{width:20,height:20}),c]})]})},Nl=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Nl.displayName="SwitchRootContext");let _l=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const El={...Ga,checked:e=>e?{[_l.checked]:""}:{[_l.unchecked]:""}},Il=n.forwardRef((function(e,t){const{checked:r,className:o,defaultChecked:i,id:a,inputRef:s,name:l,nativeButton:c=!0,onCheckedChange:d,readOnly:u=!1,required:p=!1,disabled:f=!1,render:h,...m}=e,{clearErrors:g}=Ts(),{state:v,labelId:y,setControlId:b,setTouched:x,setDirty:w,validityData:C,setFilled:k,setFocused:j,validationMode:N,disabled:_,name:E}=_s(),I=_||f,O=E??l,{getValidationProps:S,getInputValidationProps:T,inputRef:M,commitValidation:R}=Ps(),P=Aa(d),D=n.useRef(null),z=Fa(D,s,M),A=n.useRef(null),L=gs(a);Ba((()=>{const e=A.current;if(e)return null!=e.closest("label")?b(a??null):b(L),()=>{b(void 0)}}),[L,a,b]);const[V,F]=Ma({controlled:r,default:!!i,name:"Switch",state:"checked"});As({id:L,commitValidation:R,value:V,controlRef:A,name:O,getValue:()=>V}),Ba((()=>{D.current&&k(D.current.checked)}),[D,k]);const{getButtonProps:$,buttonRef:q}=js({disabled:I,native:c}),B=n.useMemo((()=>({id:L,role:"switch",disabled:I,"aria-checked":V,"aria-readonly":u||void 0,"aria-labelledby":y,onFocus(){j(!0)},onBlur(){const e=D.current;e&&(x(!0),j(!1),"onBlur"===N&&R(e.checked))},onClick(e){var t;e.defaultPrevented||u||null==(t=null==D?void 0:D.current)||t.click()}})),[L,I,V,u,y,j,x,R,N,D]),H=n.useMemo((()=>Qa({checked:V,disabled:I,id:O?void 0:`${L}-input`,name:O,required:p,style:Ha,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:z,onChange(e){if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked,n=Fs("none",e.nativeEvent);null==P||P(t,n),!n.isCanceled&&(g(O),w(t!==C.initialValue),k(t),F(t),"onChange"===N?R(t):R(t,!0))}},T)),[V,g,R,I,T,z,L,O,P,p,F,w,k,N,C.initialValue]),U=n.useMemo((()=>({...v,checked:V,disabled:I,readOnly:u,required:p})),[v,V,I,u,p]),W=ds("button",e,{state:U,ref:[t,A,q],props:[B,S,m,$],stateAttributesMapping:El});return ve.jsxs(Nl.Provider,{value:U,children:[W,!V&&l&&ve.jsx("input",{type:"hidden",name:l,value:"off"}),ve.jsx("input",{...H})]})}));"production"!==process.env.NODE_ENV&&(Il.displayName="SwitchRoot");const Ol=n.forwardRef((function(e,t){const{render:r,className:o,...i}=e,{state:a}=_s(),s=function(){const e=n.useContext(Nl);if(void 0===e)throw new Error("Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.");return e}();return ds("span",e,{state:{...a,...s},ref:t,stateAttributesMapping:El,props:i})}));"production"!==process.env.NODE_ENV&&(Ol.displayName="SwitchThumb");const Sl={switch:"_switch_1myey_1",iconContent:"_iconContent_1myey_30",thumb:"_thumb_1myey_50",icon:"_icon_1myey_30"},Tl=({className:e})=>ve.jsx("svg",{viewBox:"0 0 24 24",className:e,fill:"none",children:ve.jsx("rect",{x:"6",y:"10.5",width:"11",height:"3",fill:"currentColor",rx:"0.75"})}),Ml=({width:e=11,height:t=11,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"fa-solid:check",width:e,height:t,className:n,onClick:r,color:o}),Rl=o((({checked:e,defaultChecked:t=!1,onChange:n,disabled:r,readOnly:o,required:i,value:s,id:l,dataTest:c,...d},u)=>{const[p,f]=a(t),h=void 0!==e,m=h?e:p,g=h?{checked:m}:{defaultChecked:t},v=Ca(Sl.iconContent,m?Sl.checked:Sl.unchecked);return ve.jsx(Il,{...d,...g,ref:u,className:Sl.switch,onCheckedChange:e=>{h||f(e),null==n||n({target:{checked:e,name:l,value:s}},e)},disabled:r,readOnly:o,required:i,value:s,id:l,name:l,"data-testid":c,children:ve.jsx(Ol,{className:Sl.thumb,children:ve.jsx("span",{className:Sl.icon,children:m?ve.jsx(Ml,{className:v}):ve.jsx(Tl,{className:v})})})})})),Pl="data-composite-item-active",Dl=n.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});"production"!==process.env.NODE_ENV&&(Dl.displayName="CompositeListContext");let zl=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function Al(e={}){const{label:t,metadata:r,textRef:o,indexGuessBehavior:i,index:a}=e,{register:s,unregister:l,subscribeMapChange:c,elementsRef:d,labelsRef:u,nextIndexRef:p}=n.useContext(Dl),f=n.useRef(-1),[h,m]=n.useState(a??(i===zl.GuessFromOrder?()=>{if(-1===f.current){const e=p.current;p.current+=1,f.current=e}return f.current}:-1)),g=n.useRef(null),v=n.useCallback((e=>{var n;if(g.current=e,-1!==h&&null!==e&&(d.current[h]=e,u)){const r=void 0!==t;u.current[h]=r?t:(null==(n=null==o?void 0:o.current)?void 0:n.textContent)??e.textContent}}),[h,d,u,t,o]);return Ba((()=>{if(null!=a)return;const e=g.current;return e?(s(e,r),()=>{l(e)}):void 0}),[a,s,l,r]),Ba((()=>{if(null==a)return c((e=>{var t;const n=g.current?null==(t=e.get(g.current))?void 0:t.index:null;null!=n&&m(n)}))}),[a,c,m]),n.useMemo((()=>({ref:v,index:h})),[h,v])}function Ll(e){const{render:t,className:r,state:o=cs,props:i=ls,refs:a=ls,metadata:s,stateAttributesMapping:l,tag:c="div",...d}=e,{compositeProps:u,compositeRef:p}=function(e={}){const{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:o}=ks(),{ref:i,index:a}=Al(e),s=r===a,l=n.useRef(null),c=Fa(i,l);return{compositeProps:n.useMemo((()=>({tabIndex:s?0:-1,onFocus(){o(a)},onMouseMove(){const e=l.current;if(!t||!e)return;const n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;!s&&!n&&e.focus()}})),[s,o,a,t]),compositeRef:c,index:a}}({metadata:s});return ds(c,e,{state:o,ref:[...a,p],props:[u,...i,d],stateAttributesMapping:l})}let Vl=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const Fl={checked:e=>e?{[Vl.checked]:""}:{[Vl.unchecked]:""},...Qs,...Ga},$l=n.createContext({disabled:void 0,readOnly:void 0,required:void 0,name:void 0,checkedValue:"",setCheckedValue:ss,onValueChange:ss,touched:!1,setTouched:ss,registerControlRef:ss});"production"!==process.env.NODE_ENV&&($l.displayName="RadioGroupContext");const ql=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(ql.displayName="RadioRootContext");const Bl=n.forwardRef((function(e,t){const{render:r,className:o,disabled:i=!1,readOnly:a=!1,required:s=!1,value:l,inputRef:c,nativeButton:d=!0,...u}=e,{disabled:p,readOnly:f,required:h,checkedValue:m,setCheckedValue:g,touched:v,setTouched:y,fieldControlValidation:b,registerControlRef:x}=n.useContext($l),{state:w,disabled:C}=_s(),k=C||p||i,j=f||a,N=h||s,{setDirty:_,validityData:E,setTouched:I,setFilled:O}=_s(),S=m===l,T=n.useRef(null),M=Fa(c,T);Ba((()=>{var e;null!=(e=T.current)&&e.checked&&O(!0)}),[O]);const R=n.useMemo((()=>({role:"radio","aria-checked":S,"aria-required":N||void 0,"aria-disabled":k||void 0,"aria-readonly":j||void 0,[Pl]:S?"":void 0,disabled:k,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){var t;e.defaultPrevented||k||j||(e.preventDefault(),null==(t=T.current)||t.click())},onFocus(e){var t;e.defaultPrevented||k||j||!v||(null==(t=T.current)||t.click(),y(!1))}})),[S,N,k,j,v,y]),{getButtonProps:P,buttonRef:D}=js({disabled:k,native:d}),z=gs(),A=n.useMemo((()=>({type:"radio",ref:M,id:z,tabIndex:-1,style:Ha,"aria-hidden":!0,disabled:k,checked:S,required:N,readOnly:j,onChange(e){if(e.nativeEvent.defaultPrevented||k||j||void 0===l)return;const t=Fs("none",e.nativeEvent);t.isCanceled||(I(!0),_(l!==E.initialValue),O(!0),g(l,t))}})),[S,k,z,j,M,N,g,_,I,O,E.initialValue,l]),L=n.useMemo((()=>({...w,required:N,disabled:k,readOnly:j,checked:S})),[w,k,j,S,N]),V=n.useMemo((()=>L),[L]),F=g!==ss,$=[t,x,D],q=[R,(null==b?void 0:b.getValidationProps)??cs,u,P],B=ds("button",e,{enabled:!F,state:L,ref:$,props:q,stateAttributesMapping:Fl});return ve.jsxs(ql.Provider,{value:V,children:[F?ve.jsx(Ll,{tag:"button",render:r,className:o,state:L,refs:$,props:q,stateAttributesMapping:Fl}):B,ve.jsx("input",{...A})]})}));"production"!==process.env.NODE_ENV&&(Bl.displayName="RadioRoot");const Hl=n.forwardRef((function(e,t){const{render:r,className:o,keepMounted:i=!1,...a}=e,s=function(){const e=n.useContext(ql);if(void 0===e)throw new Error("Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>.");return e}(),l=s.checked,{transitionStatus:c,setMounted:d}=Ys(l),u=n.useMemo((()=>({...s,transitionStatus:c})),[s,c]),p=n.useRef(null),f=i||l,h=ds("span",e,{enabled:f,ref:[t,p],state:u,props:a,stateAttributesMapping:Fl});return Gs({open:l,ref:p,onComplete(){l||d(!1)}}),f?h:null}));"production"!==process.env.NODE_ENV&&(Hl.displayName="RadioIndicator");const Ul="_RadioWrapper_9uzf3_1",Wl="_size-small_9uzf3_14",Kl="_RadioRippleContainer_9uzf3_26",Gl="_RadioRipple_9uzf3_26",Yl="_RadioHover_9uzf3_60",Jl="_Radio_9uzf3_1",Xl="_Indicator_9uzf3_119",Zl="_Error_9uzf3_140",Ql=o((({value:e,dataTest:t,className:n,size:r="medium",error:o,disabled:i,...a},s)=>{const l=Ca(Ul,Yl,"small"===r&&Wl,n,o&&Zl),u=Ca(Jl,"small"===r&&Wl),p=c(null),f=d((e=>{if(e.stopPropagation(),!p.current)return;const t=document.createElement("span");t.className=Gl||"",t.addEventListener("animationend",(()=>t.remove()),{once:!0}),p.current.appendChild(t)}),[]);return ve.jsxs(Bl,{...a,ref:s,value:e,"data-test":t,className:l,disabled:i,onPointerDown:f,children:[ve.jsx("span",{className:Kl,ref:p}),ve.jsx("span",{className:u,children:ve.jsx(Hl,{className:Xl})})]})})),ec="ArrowLeft",tc="ArrowRight",nc="ArrowUp",rc="ArrowDown";function oc(e,t){var n;if(!e||!t)return!1;const r=null==(n=t.getRootNode)?void 0:n.call(t);if(e.contains(t))return!0;if(r&&function(e){return!(!vs()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof ys(e).ShadowRoot)}(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ic(e){e.preventDefault(),e.stopPropagation()}const ac=Math.floor;function sc(e,t,n){return Math.floor(e/t)!==n}function lc(e,t){return t<0||t>=e.current.length}function cc(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:o=1}={}){let i=t;do{i+=n?-o:o}while(i>=0&&i<=e.current.length-1&&pc(e,i,r));return i}function dc(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),a=t[e];switch(o){case"tl":return i;case"tr":return a?i+a.width-1:i;case"bl":return a?i+(a.height-1)*r:i;case"br":return n.lastIndexOf(e);default:return-1}}function uc(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function pc(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);const r=e.current[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}const fc="ArrowUp",hc="ArrowDown",mc="ArrowLeft",gc="ArrowRight",vc="Home",yc="End",bc=new Set([mc,gc]),xc=new Set([mc,gc,vc,yc]),wc=new Set([fc,hc]),Cc=new Set([fc,hc,vc,yc]),kc=new Set([...bc,...wc]),jc=new Set([...kc,vc,yc]),Nc="Shift",_c=new Set([Nc,"Control","Alt","Meta"]);function Ec(e){return!!(function(e){return bs(e)&&"INPUT"===e.tagName}(e)&&null!=e.selectionStart||bs(e)&&"TEXTAREA"===e.tagName)}function Ic(e,t,n,r){if(!e||!t||!t.scrollTo)return;let o=e.scrollLeft,i=e.scrollTop;const a=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(a&&"vertical"!==r){const r=Oc(e,t,"left"),i=Sc(e),a=Sc(t);"ltr"===n&&(r+t.offsetWidth+a.scrollMarginRight>e.scrollLeft+e.clientWidth-i.scrollPaddingRight?o=r+t.offsetWidth+a.scrollMarginRight-e.clientWidth+i.scrollPaddingRight:r-a.scrollMarginLeft<e.scrollLeft+i.scrollPaddingLeft&&(o=r-a.scrollMarginLeft-i.scrollPaddingLeft)),"rtl"===n&&(r-a.scrollMarginRight<e.scrollLeft+i.scrollPaddingLeft?o=r-a.scrollMarginLeft-i.scrollPaddingLeft:r+t.offsetWidth+a.scrollMarginRight>e.scrollLeft+e.clientWidth-i.scrollPaddingRight&&(o=r+t.offsetWidth+a.scrollMarginRight-e.clientWidth+i.scrollPaddingRight))}if(s&&"horizontal"!==r){const n=Oc(e,t,"top"),r=Sc(e),o=Sc(t);n-o.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?i=n-o.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+o.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(i=n+t.offsetHeight+o.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:o,top:i,behavior:"auto"})}function Oc(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);)t=t.offsetParent;return o}function Sc(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function Tc(e){const{children:t,elementsRef:r,labelsRef:o,onMapChange:i}=e,a=n.useRef(0),s=Pa(Rc).current,l=Pa(Mc).current,[c,d]=n.useState(cs),u=n.useRef(c),p=Aa(((e,t)=>{l.set(e,t??null),u.current={},d(u.current)})),f=Aa((e=>{l.delete(e),u.current={},d(u.current)})),h=n.useMemo((()=>{const e=new Map;return Array.from(l.keys()).sort(Pc).forEach(((t,n)=>{const r=l.get(t)??{};e.set(t,{...r,index:n})})),e}),[l,c]);Ba((()=>{if("function"!=typeof MutationObserver||0===h.size)return;const e=new MutationObserver((e=>{const t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach((e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)})),0===t.size&&(u.current={},d(u.current))}));return h.forEach(((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})})),()=>{e.disconnect()}}),[h]),Ba((()=>{u.current===c&&(r.current.length!==h.size&&(r.current.length=h.size),o&&o.current.length!==h.size&&(o.current.length=h.size),a.current=h.size),null==i||i(h)}),[i,h,r,o,c]);const m=Aa((e=>(s.add(e),()=>{s.delete(e)})));Ba((()=>{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 ve.jsx(Dl.Provider,{value:g,children:t})}function Mc(){return new Map}function Rc(){return new Set}function Pc(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}function Dc(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}const zc=[];function Ac(e){const{itemSizes:t,cols:r=1,loop:o=!0,dense:i=!1,orientation:a="both",direction:s,highlightedIndex:l,onHighlightedIndexChange:c,rootRef:d,enableHomeAndEndKeys:u=!1,stopEventPropagation:p=!1,disabledIndices:f,modifierKeys:h=zc}=e,[m,g]=n.useState(0),v=r>1,y=n.useRef(null),b=Fa(y,d),x=n.useRef([]),w=n.useRef(!1),C=l??m,k=Aa(((e,t=!1)=>{if((c??g)(e),t){const t=x.current[e];Ic(y.current,t,s,a)}})),j=Aa((e=>{if(0===e.size||w.current)return;w.current=!0;const t=Array.from(e.keys()),n=t.find((e=>null==e?void 0:e.hasAttribute(Pl)))??null,r=n?t.indexOf(n):-1;-1!==r&&k(r),Ic(y.current,n,s,a)})),N=n.useMemo((()=>({"aria-orientation":"both"===a?void 0:a,ref:b,onFocus(e){!y.current||!Ec(e.target)||e.target.setSelectionRange(0,e.target.value.length??0)},onKeyDown(e){const n=u?jc:kc;if(!n.has(e.key)||function(e,t){for(const n of _c.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,h)||!y.current)return;const l="rtl"===s,c=l?mc:gc,d={horizontal:c,vertical:hc,both:c}[a],m=l?gc:mc,g={horizontal:m,vertical:fc,both:m}[a];if(Ec(e.target)&&!Dc(e.target)){const t=e.target.selectionStart,n=e.target.selectionEnd,r=e.target.value??"";if(null==t||e.shiftKey||t!==n||e.key!==g&&t<r.length||e.key!==d&&t>0)return}let b=C;const w=function(e,t){return cc(e,{disabledIndices:t})}(x,f),j=function(e,t){return cc(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}(x,f);if(v){const n=t||Array.from({length:x.current.length},(()=>({width:1,height:1}))),s=function(e,t,n){const r=[];let o=0;return e.forEach((({width:e,height:i},a)=>{if(e>t&&"production"!==process.env.NODE_ENV)throw new Error(`[Floating UI]: Invalid grid - item width at index ${a} is greater than grid columns`);let s=!1;for(n&&(o=0);!s;){const n=[];for(let r=0;r<e;r+=1)for(let e=0;e<i;e+=1)n.push(o+r+e*t);o%t+e<=t&&n.every((e=>null==r[e]))?(n.forEach((e=>{r[e]=a})),s=!0):o+=1}})),[...r]}(n,r,i),c=s.findIndex((e=>null!=e&&!pc(x,e,f))),d=s.reduce(((e,t,n)=>null==t||pc(x,t,f)?e:n),-1);b=s[function(e,{event:t,orientation:n,loop:r,rtl:o,cols:i,disabledIndices:a,minIndex:s,maxIndex:l,prevIndex:c,stopEvent:d=!1}){let u=c;const p=[],f={};let h=!1;{let t=null,n=-1;e.current.forEach(((e,r)=>{if(null==e)return;const o=e.closest('[role="row"]');o&&(h=!0),(o!==t||-1===n)&&(t=o,n+=1,p[n]=[]),p[n].push(r),f[r]=n}))}const m=h&&p.length>0&&p.some((e=>e.length!==i));function g(t){if(!m||-1===c)return;const n=f[c];if(null==n)return;const o=p[n].indexOf(c);let i="up"===t?n-1:n+1;r&&(i<0?i=p.length-1:i>=p.length&&(i=0));const s=new Set;for(;i>=0&&i<p.length&&!s.has(i);){s.add(i);const n=p[i];if(0!==n.length){for(let t=Math.min(o,n.length-1);t>=0;t-=1){const r=n[t];if(!pc(e,r,a))return r}i="up"===t?i-1:i+1,r&&(i<0?i=p.length-1:i>=p.length&&(i=0))}else i="up"===t?i-1:i+1}}if(t.key===nc){const n=g("up");if(void 0!==n)d&&ic(t),u=n;else{if(d&&ic(t),-1===c)u=l;else if(u=cc(e,{startingIndex:u,amount:i,decrement:!0,disabledIndices:a}),r&&(c-i<s||u<0)){const e=c%i,t=l%i,n=l-(t-e);u=t===e?l:t>e?n:n-i}lc(e,u)&&(u=c)}}if(t.key===rc){const n=g("down");void 0!==n?(d&&ic(t),u=n):(d&&ic(t),-1===c?u=s:(u=cc(e,{startingIndex:c,amount:i,disabledIndices:a}),r&&c+i>l&&(u=cc(e,{startingIndex:c%i-i,amount:i,disabledIndices:a}))),lc(e,u)&&(u=c))}if("both"===n){const n=ac(c/i);t.key===(o?ec:tc)&&(d&&ic(t),c%i!=i-1?(u=cc(e,{startingIndex:c,disabledIndices:a}),r&&sc(u,i,n)&&(u=cc(e,{startingIndex:c-c%i-1,disabledIndices:a}))):r&&(u=cc(e,{startingIndex:c-c%i-1,disabledIndices:a})),sc(u,i,n)&&(u=c)),t.key===(o?tc:ec)&&(d&&ic(t),c%i!=0?(u=cc(e,{startingIndex:c,decrement:!0,disabledIndices:a}),r&&sc(u,i,n)&&(u=cc(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:a}))):r&&(u=cc(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:a})),sc(u,i,n)&&(u=c));const s=ac(l/i)===n;lc(e,u)&&(u=r&&s?t.key===(o?tc:ec)?l:cc(e,{startingIndex:c-c%i-1,disabledIndices:a}):c)}return u}({current:s.map((e=>e?x.current[e]:null))},{event:e,orientation:a,loop:o,cols:r,disabledIndices:uc([...f||x.current.map(((e,t)=>pc(x,t)?t:void 0)),void 0],s),minIndex:c,maxIndex:d,prevIndex:dc(C>j?w:C,n,s,r,e.key===hc?"bl":e.key===gc?"tr":"tl"),rtl:l})]}const N={horizontal:[c],vertical:[hc],both:[c,hc]}[a],_={horizontal:[m],vertical:[fc],both:[m,fc]}[a],E=v?n:{horizontal:u?xc:bc,vertical:u?Cc:wc,both:n}[a];u&&(e.key===vc?b=w:e.key===yc&&(b=j)),b===C&&(N.includes(e.key)||_.includes(e.key))&&(b=o&&b===j&&N.includes(e.key)?w:o&&b===w&&_.includes(e.key)?j:cc(x,{startingIndex:b,decrement:_.includes(e.key),disabledIndices:f})),b!==C&&!lc(x,b)&&(p&&e.stopPropagation(),E.has(e.key)&&e.preventDefault(),k(b,!0),queueMicrotask((()=>{var e;null==(e=x.current[b])||e.focus()})))}})),[r,i,s,f,x,u,C,v,t,o,b,h,k,a,p]);return n.useMemo((()=>({props:N,highlightedIndex:C,onHighlightedIndexChange:k,elementsRef:x,disabledIndices:f,onMapChange:j})),[N,C,k,x,f,j])}const Lc=n.createContext(void 0);function Vc(e=!0){const t=n.useContext(Lc);if(void 0===t&&!e)throw new Error("Base UI: DirectionContext is missing.");return(null==t?void 0:t.direction)??"ltr"}function Fc(e){const{render:t,className:r,refs:o=ls,props:i=ls,state:a=cs,stateAttributesMapping:s,highlightedIndex:l,onHighlightedIndexChange:c,orientation:d,dense:u,itemSizes:p,loop:f,cols:h,enableHomeAndEndKeys:m,onMapChange:g,stopEventPropagation:v=!0,rootRef:y,disabledIndices:b,modifierKeys:x,highlightItemOnHover:w=!1,tag:C="div",...k}=e,j=Vc(),{props:N,highlightedIndex:_,onHighlightedIndexChange:E,elementsRef:I,onMapChange:O}=Ac({itemSizes:p,cols:h,loop:f,dense:u,orientation:d,highlightedIndex:l,onHighlightedIndexChange:c,rootRef:y,stopEventPropagation:v,enableHomeAndEndKeys:m,direction:j,disabledIndices:b,modifierKeys:x}),S=Aa((e=>{null==g||g(e),O(e)})),T=ds(C,e,{state:a,ref:o,props:[N,...i,k],stateAttributesMapping:s}),M=n.useMemo((()=>({highlightedIndex:_,onHighlightedIndexChange:E,highlightItemOnHover:w})),[_,E,w]);return ve.jsx(Cs.Provider,{value:M,children:ve.jsx(Tc,{elementsRef:I,onMapChange:S,children:T})})}"production"!==process.env.NODE_ENV&&(Lc.displayName="DirectionContext");const $c=[Nc],qc=n.forwardRef((function(e,t){const{render:r,className:o,disabled:i,readOnly:a,required:s,onValueChange:l,value:c,defaultValue:d,name:u,inputRef:p,id:f,...h}=e,{labelId:m,setTouched:g,setFocused:v,validationMode:y,name:b,disabled:x,state:w}=_s(),C=Ps(),{clearErrors:k}=Ts(),j=x||i,N=b??u,_=gs(f),[E,I]=Ma({controlled:c,default:d,name:"RadioGroup",state:"value"}),O=Aa(l),S=Aa(((e,t)=>{O(e,t),!t.isCanceled&&I(e)})),T=n.useRef(null),M=Aa((e=>{null==T.current&&null!=e&&(T.current=e)}));As({id:_,commitValidation:C.commitValidation,value:E,controlRef:T,name:N,getValue:()=>E??null});const R=n.useRef(E);Ba((()=>{R.current!==E&&(k(N),"onChange"===y?C.commitValidation(E):C.commitValidation(E,!0))}),[N,k,y,E,C]),Ba((()=>{R.current=E}),[E]);const[P,D]=n.useState(!1),z=Aa((e=>{oc(e.currentTarget,e.relatedTarget)||(g(!0),v(!1),"onBlur"===y&&C.commitValidation(E))})),A=Aa((e=>{e.key.startsWith("Arrow")&&(g(!0),D(!0),v(!0))})),L=n.useMemo((()=>null==E?"":"string"==typeof E?E:JSON.stringify(E)),[E]),V=Qa({value:L,ref:Fa(C.inputRef,p),id:_,name:L?N:void 0,disabled:j,readOnly:a,required:s,"aria-hidden":!0,tabIndex:-1,style:Ha,onFocus(){var e;null==(e=T.current)||e.focus()}},C.getInputValidationProps),F=n.useMemo((()=>({...w,disabled:j??!1,required:s??!1,readOnly:a??!1})),[w,j,a,s]),$=n.useMemo((()=>({...w,checkedValue:E,disabled:j,name:N,onValueChange:O,readOnly:a,registerControlRef:M,required:s,setCheckedValue:S,setTouched:D,touched:P})),[E,j,w,N,O,a,M,s,S,D,P]),q={role:"radiogroup","aria-required":s||void 0,"aria-disabled":j||void 0,"aria-readonly":a||void 0,"aria-labelledby":m,onFocus(){v(!0)},onBlur:z,onKeyDownCapture:A};return ve.jsxs($l.Provider,{value:$,children:[ve.jsx(Fc,{render:r,className:o,state:F,props:[q,C.getValidationProps,h],refs:[t],stateAttributesMapping:Ga,enableHomeAndEndKeys:!1,modifierKeys:$c}),ve.jsx("input",{...V})]})}));"production"!==process.env.NODE_ENV&&(qc.displayName="RadioGroup");const Bc=o((({value:e,defaultValue:t,onValueChange:n,name:r,id:o,dataTest:i,error:a,errorText:s,helperText:l,children:c,...d},u)=>{const p=(a??!1)||(l??!1),f=a?s??"Required":l;return ve.jsxs(qc,{...d,ref:u,value:e,defaultValue:t,"data-test":i,onValueChange:n,children:[c,p&&ve.jsxs(Jc,{className:pi("flex items-center gap-1 m-0 pt-1 text-sm",a?"text-error-500":"text-delta-600"),children:[a&&ve.jsx(dl,{width:20,height:20}),f]})]})})),Hc=({children:e,onClick:t,className:n,dataTest:r,style:o})=>ve.jsx("div",{className:pi("_styled-label_1fp95_1",n),style:o,onClick:t,"data-test":r,children:e}),Uc=o(((e,t)=>{const{options:n,dataTest:r,value:o,readOnly:i,multiple:s,title:d,disabled:u,onChange:p,error:f,helperText:h,valueKey:m="value",labelKey:g="label",renderLabel:v,getOptionTooltip:y,loading:b}=e,{containerRef:x,wrapDisabled:w}=(({dependencyList:e=[]})=>{const t=c(null),[n,r]=a(!1);return l((()=>{const e=t.current;if(!e)return;const n=new ResizeObserver((()=>{const t=Array.from(e.children).some((t=>{const n=t.querySelector(".MuiChip-label");if(!n)return!1;const r=t.querySelector(".MuiButtonBase-root"),o=n.scrollWidth>e.clientWidth,i=!!r&&n.scrollHeight>r.clientHeight;return o||i}));r((e=>e!==t?t:e))}));return n.observe(e),()=>n.disconnect()}),[...e]),{wrapDisabled:n,containerRef:t}})({dependencyList:[n,n.length]}),C=e=>{var t;return"object"==typeof e?(null==(t=null==e?void 0:e[g])?void 0:t.toString())||"":(null==e?void 0:e.toString())||""},k=e=>"object"==typeof e?null==e?void 0:e[m]:e,j=(e,t)=>k(e)===k(t),N=i?n.filter((e=>!!(s?null!=o&&o.find((t=>j(t,e))):j(o,e)))):n,_=N.findIndex((e=>!("object"==typeof e&&(null!=e&&e.disabled)||i)));return ve.jsxs("div",{"data-test":`${r}-dynamic-radio-group`,className:"flex flex-col gap-y-1 relative",children:[d&&ve.jsx("span",{className:"text-delta-800 text-base font-semibold",children:d}),ve.jsx("div",{ref:x,className:"absolute top-0 left-0 opacity-0 pointer-events-none flex flex-wrap gap-2 text-sm",style:{width:"100%"},children:N.map((e=>{const t=k(e);return ve.jsx(Sr,{className:"w-fit",readOnly:i,type:s?"checkbox":"radio",dataTest:`ic-${String(t)}-hidden`,label:v?v(e):C(e)},String(t))}))}),ve.jsx("div",{className:Ca("flex gap-2 flex-wrap",w&&"flex-col gap-1"),children:b?ve.jsxs("div",{className:"flex flex-wrap gap-2",children:[ve.jsx(S,{className:"w-[60px] h-[32px]"}),ve.jsx(S,{className:"w-[60px] h-[32px]"}),ve.jsx(S,{className:"w-[60px] h-[32px]"})]}):null!=N&&N.length?N.map(((e,n)=>{const r=k(e),a=!!(s?null!=o&&o.find((t=>j(t,e))):j(o,e)),l=y?y(e):null;if(i&&!a)return null;const c="object"==typeof e&&!(null==e||!e.disabled),d=c||i||n!==_?void 0:t;return ve.jsx(ta,{title:l,arrow:!0,children:ve.jsx("span",{className:Ca(c&&"cursor-not-allowed"),children:ve.jsx(Sr,{ref:d,disabled:u||c,classes:w?{root:"border-none bg-transparent w-full flex justify-start h-full",label:"block whitespace-normal break-words overflow-visible"}:{root:"min-h-[32px] h-full"},className:"w-fit text-sm",readOnly:i,type:s?"checkbox":"radio",dataTest:`ic-${String(r)}`,checked:a,onClick:()=>(e=>{if(!s){const t=j(e,o)?null:e;return void p(t)}const t=o||[],n=t.find((t=>j(t,e)))?t.filter((t=>!j(t,e))):[...t,e];p(n)})(e),label:v?v(e):C(e)})})},String(r))})):ve.jsx("span",{children:"-"})}),!i&&ve.jsxs("div",{className:Ca("text-sm/5 text-delta-600 flex items-center gap-1",f&&"text-error-500"),children:[f&&ve.jsx(tr,{width:20,height:20,className:"min-w-5"}),ve.jsx("span",{className:"line-clamp-1",children:h||f&&!h&&"Required"})]})]})})),Wc=o(((e,t)=>{const n=e=>{var t;return"object"==typeof e?(null==(t=null==e?void 0:e[x])?void 0:t.toString())||"":(null==e?void 0:e.toString())||""},r=e=>"object"==typeof e?null==e?void 0:e[b]:e,o=(e,t)=>r(e)===r(t),{options:i,dataTest:a,value:s,readOnly:l,multiple:c,disableClearable:d,onChange:u,size:p,title:f,noOptionsText:h,placeholder:m,disabled:g,helperText:v,error:y,valueKey:b="value",labelKey:x="label",renderLabel:w,getOptionTooltip:C,startAdornment:k,autocompleteProps:j,loading:N,maxTags:_}=e,E=i.length<11;return c&&l?ve.jsx(Uc,{...e}):ve.jsxs("div",{className:"flex flex-col gap-y-1 w-full",children:[f&&ve.jsx("span",{className:"text-delta-800 text-base font-semibold",children:f}),ve.jsx(kl,{disableCloseOnSelect:c,dataTest:a,disabled:g||N,noOptionsText:h,loading:N,readOnly:l,value:s,size:p,disableClearable:d,options:i,fullWidth:!0,classes:{listbox:"h-full"},getOptionLabel:n||(null==j?void 0:j.getOptionLabel),onChange:(e,t)=>{u(t)},filterSelectedOptions:!1,isOptionEqualToValue:(e,t)=>o(e,t),autoHeight:!0,multiple:c,renderTags:e=>{const t=_||i.length,a=e.slice(0,t),d=e.length-t;return ve.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.map((e=>{var t;return ve.jsx(Er,{dataTest:`${r(e)}-chip`,readOnly:l,variant:"outlined",label:w?w(e):n(e)||"",classes:{root:"h-fit w-fit min-h-[32px]",label:"block whitespace-normal"},disabled:g||N,onDelete:()=>{if(!c)return void u(null);const t=s.filter((t=>!o(t,e)));u(t)}},null==(t=r(e))?void 0:t.toString())})),d>0&&ve.jsx(Er,{dataTest:"remaining-count-tag-chip",label:`+${d}`,variant:"outlined",readOnly:!0})]})},popupIcon:N?ve.jsx(ll,{height:24,width:24}):c?ve.jsx(ul,{height:24,width:24}):void 0,renderOption:(e,t)=>{const i="object"==typeof t&&!(null==t||!t.disabled),a=C?C(t):null;if(c){const l=!(null==s||!s.find((e=>o(e,t))));return ve.jsx(ta,{arrow:!0,title:a,children:ve.jsxs("li",{...e,onClick:i?void 0:e.onClick,className:Ca("flex h-full gap-x-1 hover:bg-gama-50 cursor-pointer bg-white text-sm/5",i&&"cursor-not-allowed bg-delta-50 hover:bg-delta-50"),"aria-disabled":i,children:[ve.jsx(hl,{disabled:i,dataTest:`${r(t)}-checkbox`,size:"small",className:"min-w-[36px]",checked:l}),w?w(t):ve.jsx("span",{className:"text-sm text-delta-700 h-fit py-[10px]",children:n(t)})]})},e.id)}const l=o(s,t);return ve.jsx(ta,{arrow:!0,title:a,children:ve.jsxs("li",{...e,className:Ca("flex h-full gap-x-1 hover:bg-gama-50 px-2 cursor-pointer text-sm/5",i&&"cursor-not-allowed bg-delta-50 hover:bg-delta-50"),onClick:i?void 0:e.onClick,"aria-disabled":i,children:[ve.jsx("span",{className:"py-[10px] min-w-5 w-5 h-full",children:l&&ve.jsx(cl,{className:"size-5 text-gama-500 min-h-5 min-w-5",height:20,width:20})}),w?w(t):ve.jsx("span",{className:"text-sm text-delta-700 py-[10px]",children:n(t)})]})},e.id)},renderInput:e=>ve.jsx(ml,{dataTest:`${a}-input-field`,...e,inputRef:t,error:y,helperText:v||" ",variant:"outlined",label:"",placeholder:m,readOnly:l,onKeyDown:E?e=>e.preventDefault():void 0,autoComplete:E?"off":"on",InputProps:{...e.InputProps,startAdornment:k||e.InputProps.startAdornment,style:E?{caretColor:"transparent"}:{}},inputProps:{...e.inputProps,style:E?{caretColor:"transparent"}:{}}}),...j})]})})),Kc=o(((e,t)=>{const{options:n}=e;return n.length>0&&n.length<=5?ve.jsx(Uc,{...e,ref:t}):ve.jsx(Wc,{...e,ref:t})})),Gc=e=>ve.jsx(T,{...e,sx:{...e.sx,"& label.MuiInputLabel-shrink":{background:"white !important",color:"var(--colors-delta-800) !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"}}}),Yc=({sx:e,...t})=>ve.jsx(M,{...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}}),Jc=e=>ve.jsx(R,{...e}),Xc=e=>ve.jsx(P,{...e}),Zc=e=>ve.jsx(D,{...e}),Qc=e=>ve.jsx(z,{...e}),ed=e=>{var t,n;return ve.jsx(A,{...e,classes:{paper:pi("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:pi("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},td=e=>{var t;return ve.jsx(_,{...e,classes:{selected:"bg-gama-50",root:pi("px-3 py-2.5 hover:bg-delta-50",null==(t=e.classes)?void 0:t.root),...e.classes}})},nd=e=>ve.jsx(L,{...e}),rd="_styled-link_hyb3l_1",od="_styled-link-disabled_hyb3l_16",id="_styled-link-xs_hyb3l_32",ad="_styled-link-small_hyb3l_37",sd="_styled-link-large_hyb3l_42",ld=({href:e,disabled:t,size:n="large",dataTest:r,reflink:o,className:i,content:a,contentNode:s,...l})=>{let c=sd;switch(n){case"small":c=ad;break;case"xs":c=id;break;default:c=sd}return t?ve.jsxs("span",{className:pi(rd,od,c,i),children:[a,s]}):ve.jsxs("a",{...l,"data-test":r,ref:o,href:e,className:pi(rd,c,i),children:[a,s]})},cd=e=>ve.jsx(V,{...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)"}}}),dd=e=>ve.jsx(F,{...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)"}}});let ud;function pd(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");ud.has(t)||(ud.add(t),console.warn(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(ud=new Set);const fd=n.createContext(void 0);function hd(){const e=n.useContext(fd);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&&(fd.displayName="AccordionRootContext");const md={value:()=>null},gd=n.forwardRef((function(e,t){const{render:r,className:o,disabled:i=!1,hiddenUntilFound:a,keepMounted:s,loop:l=!0,onValueChange:c,multiple:d=!0,orientation:u="vertical",value:p,defaultValue:f,...h}=e,m=Vc();"production"!==process.env.NODE_ENV&&Ba((()=>{a&&!1===s&&pd("The `keepMounted={false}` prop on a Accordion.Root will be ignored when using `hiddenUntilFound` since it requires Panels to remain mounted when closed.")}),[a,s]);const g=n.useMemo((()=>{if(void 0===p)return f??[]}),[p,f]),v=Aa(c),y=n.useRef([]),[b,x]=Ma({controlled:p,default:g,name:"Accordion",state:"value"}),w=n.useCallback(((e,t)=>{const n=Fs("none");if(d)if(t){const t=b.slice();if(t.push(e),v(t,n),n.isCanceled)return;x(t)}else{const t=b.filter((t=>t!==e));if(v(t,n),n.isCanceled)return;x(t)}else{const t=b[0]===e?[]:[e];if(v(t,n),n.isCanceled)return;x(t)}}),[v,d,x,b]),C=n.useMemo((()=>({value:b,disabled:i,orientation:u})),[b,i,u]),k=n.useMemo((()=>({accordionItemRefs:y,direction:m,disabled:i,handleValueChange:w,hiddenUntilFound:a??!1,keepMounted:s??!1,loop:l,orientation:u,state:C,value:b})),[m,i,w,a,s,l,u,C,b]),j=ds("div",e,{state:C,ref:t,props:[{dir:m,role:"region"},h],stateAttributesMapping:md});return ve.jsx(fd.Provider,{value:k,children:ve.jsx(Tc,{elementsRef:y,children:j})})}));"production"!==process.env.NODE_ENV&&(gd.displayName="AccordionRoot");const vd=n.createContext(void 0);function yd(){const e=n.useContext(vd);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&&(vd.displayName="CollapsibleRootContext");const bd=n.createContext(void 0);function xd(){const e=n.useContext(bd);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&&(bd.displayName="AccordionItemContext");let wd=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Js.startingStyle]="startingStyle",e[e.endingStyle=Js.endingStyle]="endingStyle",e}({}),Cd=function(e){return e.panelOpen="data-panel-open",e}({});const kd={[wd.open]:""},jd={[wd.closed]:""},Nd={open:e=>e?{[Cd.panelOpen]:""}:null},_d={open:e=>e?kd:jd};let Ed=function(e){return e.index="data-index",e.disabled="data-disabled",e.open="data-open",e}({});const Id={..._d,index:e=>Number.isInteger(e)?{[Ed.index]:String(e)}:null,...Qs,value:()=>null},Od=n.forwardRef((function(e,t){const{className:r,disabled:o=!1,onOpenChange:i,render:a,value:s,...l}=e,{ref:c,index:d}=Al(),u=Fa(t,c),{disabled:p,handleValueChange:f,state:h,value:m}=hd(),g=gs(),v=s??g,y=o||p,b=n.useMemo((()=>{if(!m)return!1;for(let e=0;e<m.length;e+=1)if(m[e]===v)return!0;return!1}),[m,v]),x=Aa(((e,t)=>{null==i||i(e,t),!t.isCanceled&&f(v,e)})),w=function(e){const{open:t,defaultOpen:r,onOpenChange:o,disabled:i}=e,a=void 0!==t,[s,l]=Ma({controlled:t,default:r,name:"Collapsible",state:"open"}),{mounted:c,setMounted:d,transitionStatus:u}=Ys(s,!0,!0),[p,f]=n.useState(s),[{height:h,width:m},g]=n.useState({height:void 0,width:void 0}),v=gs(),[y,b]=n.useState(),x=y??v,[w,C]=n.useState(!1),[k,j]=n.useState(!1),N=n.useRef(null),_=n.useRef(null),E=n.useRef(null),I=n.useRef(null),O=Ks(I,!1),S=Aa((e=>{const t=!s,n=Fs("trigger-press",e.nativeEvent);if(o(t,n),n.isCanceled)return;const r=I.current;"css-animation"===_.current&&null!=r&&r.style.removeProperty("animation-name"),!w&&!k&&(null!=_.current&&"css-animation"!==_.current&&!c&&t&&d(!0),"css-animation"===_.current&&(!p&&t&&f(!0),!c&&t&&d(!0))),l(t),"none"===_.current&&c&&!t&&d(!1)}));return Ba((()=>{a&&"none"===_.current&&!k&&!s&&d(!1)}),[a,k,s,t,d]),n.useMemo((()=>({abortControllerRef:N,animationTypeRef:_,disabled:i,handleTrigger:S,height:h,mounted:c,open:s,panelId:x,panelRef:I,runOnceAnimationsFinish:O,setDimensions:g,setHiddenUntilFound:C,setKeepMounted:j,setMounted:d,setOpen:l,setPanelIdState:b,setVisible:f,transitionDimensionRef:E,transitionStatus:u,visible:p,width:m})),[N,_,i,S,h,c,s,x,I,O,g,C,j,d,l,f,E,u,p,m])}({open:b,onOpenChange:x,disabled:y}),C=n.useMemo((()=>({open:w.open,disabled:w.disabled,hidden:!w.mounted})),[w.open,w.disabled,w.mounted]),k=n.useMemo((()=>({...w,onOpenChange:x,state:C,transitionStatus:w.transitionStatus})),[w,C,x]),j=n.useMemo((()=>({...h,index:d,disabled:y,open:b})),[y,d,b,h]),[N,_]=n.useState(gs()),E=n.useMemo((()=>({open:b,state:j,setTriggerId:_,triggerId:N})),[b,j,_,N]),I=ds("div",e,{state:j,ref:u,props:l,stateAttributesMapping:Id});return ve.jsx(vd.Provider,{value:k,children:ve.jsx(bd.Provider,{value:E,children:I})})}));"production"!==process.env.NODE_ENV&&(Od.displayName="AccordionItem");const Sd=n.forwardRef((function(e,t){const{render:n,className:r,...o}=e,{state:i}=xd();return ds("h3",e,{state:i,ref:t,props:o,stateAttributesMapping:Id})}));"production"!==process.env.NODE_ENV&&(Sd.displayName="AccordionHeader");const Td=new Set([hc,fc,gc,mc,vc,yc]);const Md=n.forwardRef((function(e,t){const{disabled:r,className:o,id:i,render:a,nativeButton:s=!0,...l}=e,{panelId:c,open:d,handleTrigger:u,disabled:p}=yd(),f=r??p,{getButtonProps:h,buttonRef:m}=js({disabled:f,focusableWhenDisabled:!0,native:s}),{accordionItemRefs:g,direction:v,loop:y,orientation:b}=hd(),x="rtl"===v,w="horizontal"===b,{state:C,setTriggerId:k,triggerId:j}=xd();Ba((()=>(i&&k(i),()=>{k(void 0)})),[i,k]);const N=n.useMemo((()=>({"aria-controls":d?c:void 0,"aria-expanded":d,disabled:f,id:j,onClick:u,onKeyDown(e){if(!Td.has(e.key))return;ic(e);const t=function(e){const{current:t}=e,n=[];for(let e=0;e<t.length;e+=1){const r=t[e];if(!Dc(r)){const e=null==r?void 0:r.querySelector('[type="button"]');Dc(e)||n.push(e)}}return n}(g),n=t.length-1;let r=-1;const o=t.indexOf(e.target);function i(){r=y?o+1>n?0:o+1:Math.min(o+1,n)}function a(){r=y&&0===o?n:o-1}switch(e.key){case hc:w||i();break;case fc:w||a();break;case gc:w&&(x?a():i());break;case mc:w&&(x?i():a());break;case"Home":r=0;break;case"End":r=n}r>-1&&t[r].focus()}})),[g,f,u,j,w,x,y,d,c]);return ds("button",e,{state:C,ref:[t,m],props:[N,l,h],stateAttributesMapping:Nd})}));"production"!==process.env.NODE_ENV&&(Md.displayName="AccordionTrigger");let Rd=function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e}({});let Pd=function(e){return e.accordionPanelHeight="--accordion-panel-height",e.accordionPanelWidth="--accordion-panel-width",e}({});const Dd=n.forwardRef((function(e,t){const{className:r,hiddenUntilFound:o,keepMounted:i,id:a,render:s,...l}=e,{hiddenUntilFound:c,keepMounted:d}=hd(),{abortControllerRef:u,animationTypeRef:p,height:f,mounted:h,onOpenChange:m,open:g,panelId:v,panelRef:y,runOnceAnimationsFinish:b,setDimensions:x,setHiddenUntilFound:w,setKeepMounted:C,setMounted:k,setOpen:j,setVisible:N,transitionDimensionRef:_,visible:E,width:I,setPanelIdState:O,transitionStatus:S}=yd(),T=o??c,M=i??d;"production"!==process.env.NODE_ENV&&Ba((()=>{!1===i&&T&&pd("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.")}),[T,i]),Ba((()=>{if(a)return O(a),()=>{O(void 0)}}),[a,O]),Ba((()=>{w(T)}),[w,T]),Ba((()=>{C(M)}),[C,M]),Gs({open:g&&"idle"===S,ref:y,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:d,open:u,panelRef:p,runOnceAnimationsFinish:f,setDimensions:h,setMounted:m,setOpen:g,setVisible:v,transitionDimensionRef:y,visible:b,width:x}=e,w=n.useRef(!1),C=n.useRef(null),k=n.useRef(u),j=n.useRef(u),N=n.useMemo((()=>"css-animation"===r.current?!b:!u&&!c),[u,c,b,r]),_=Aa((e=>{if(!e)return;if(null==r.current||null==y.current){const t=getComputedStyle(e),n="none"!==t.animationName&&""!==t.animationName,o="0s"!==t.transitionDuration&&""!==t.transitionDuration;n&&o?"production"!==process.env.NODE_ENV&&pd("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(Rd.orientation)||t.transitionProperty.indexOf("width")>-1?y.current="width":y.current="height"}if("css-transition"!==r.current)return;e.style.setProperty("display",getComputedStyle(e).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=Ws.request((()=>{j.current=!1,n=Ws.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))})),()=>{Ws.cancel(t),Ws.cancel(n)}})),E=Fa(o,p,_);return Ba((()=>{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),!u){h({height:e.scrollHeight,width:e.scrollWidth}),t.current=new AbortController;const n=t.current.signal;let r=-1;const o=Ws.request((()=>{r=Ws.request((()=>{f((()=>{h({height:0,width:0}),e.style.removeProperty("content-visibility"),e.style.removeProperty("display"),m(!1),t.current=null}),n)}))}));return()=>{Ws.cancel(o),Ws.cancel(r)}}{const t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};e.style.setProperty("display",getComputedStyle(e).display||"block","important"),Object.keys(t).forEach((t=>{e.style.setProperty(t,"initial","important")})),!j.current&&!s&&e.setAttribute(wd.startingStyle,""),h({height:e.scrollHeight,width:e.scrollWidth}),n=Ws.request((()=>{e.style.removeProperty("display"),Object.entries(t).forEach((([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)}))}))}return()=>{Ws.cancel(n)}}),[t,r,a,s,c,u,p,f,h,m,y]),Ba((()=>{if("css-animation"!==r.current)return;const e=p.current;e&&(C.current=e.style.animationName||C.current,e.style.setProperty("animation-name","none"),h({height:e.scrollHeight,width:e.scrollWidth}),!k.current&&!w.current&&e.style.removeProperty("animation-name"),u?(null!=t.current&&(t.current.abort(),t.current=null),m(!0),v(!0)):(t.current=new AbortController,f((()=>{m(!1),v(!1),t.current=null}),t.current.signal)))}),[t,r,u,p,f,h,m,v,b]),Is((()=>{const e=Ws.request((()=>{k.current=!1}));return()=>Ws.cancel(e)})),Ba((()=>{if(!a)return;const e=p.current;if(!e)return;let t=-1,n=-1;return u&&w.current&&(e.style.transitionDuration="0s",h({height:e.scrollHeight,width:e.scrollWidth}),t=Ws.request((()=>{w.current=!1,n=Ws.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))}))),()=>{Ws.cancel(t),Ws.cancel(n)}}),[a,u,p,h]),Ba((()=>{const e=p.current;e&&a&&N&&(e.setAttribute("hidden","until-found"),"css-transition"===r.current&&e.setAttribute(wd.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(e){w.current=!0,g(!0),d(!0,Fs("none",e))}}),[d,p,g]),n.useMemo((()=>({props:{hidden:N,id:l,ref:E}})),[N,l,E])}({abortControllerRef:u,animationTypeRef:p,externalRef:t,height:f,hiddenUntilFound:T,id:a??v,keepMounted:M,mounted:h,onOpenChange:m,open:g,panelRef:y,runOnceAnimationsFinish:b,setDimensions:x,setMounted:k,setOpen:j,setVisible:N,transitionDimensionRef:_,visible:E,width:I}),{state:P,triggerId:D}=xd(),z=ds("div",e,{state:n.useMemo((()=>({...P,transitionStatus:S})),[P,S]),ref:[t,y],props:[R,{"aria-labelledby":D,role:"region",style:{[Pd.accordionPanelHeight]:void 0===f?"auto":`${f}px`,[Pd.accordionPanelWidth]:void 0===I?"auto":`${I}px`}},l],stateAttributesMapping:Id});return M||T||!M&&h?z:null}));"production"!==process.env.NODE_ENV&&(Dd.displayName="AccordionPanel");const zd={AccordionRoot:"_AccordionRoot_csye9_1",Trigger:"_Trigger_csye9_9",Header:"_Header_csye9_18",TriggerIcon:"_TriggerIcon_csye9_40",Panel:"_Panel_csye9_51",Content:"_Content_csye9_62"},Ad=({className:e,children:t,expanded:n,defaultExpanded:r,onChange:o,...i})=>{const a="item",s={...i,type:"single",className:Ca(zd.AccordionRoot,e),onValueChange:e=>{null==o||o(e.includes(a))},...void 0!==n?{value:n?[a]:[]}:{defaultValue:r?[a]:[]}};return ve.jsx(gd,{...s,children:ve.jsx(Od,{value:a,className:zd.Item,children:t})})},Ld=({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 ve.jsx(Sd,{className:zd.Header,children:ve.jsxs(Md,{...o,className:pi(zd.Trigger,t),style:a,children:[ve.jsx($n,{className:zd.TriggerIcon,"data-state-icon":!0}),r]})})},Vd=({children:e,...t})=>ve.jsx(Dd,{...t,className:zd.Panel,children:ve.jsx("div",{className:zd.Content,children:e})}),Fd=e=>ve.jsx($,{...e}),$d=({filterIsActive:e,label:t,hideLabel:n=!1,size:r="large",variant:o="outlined",...i})=>ve.jsx(ve.Fragment,{children:ve.jsxs("div",{className:"w-fit h-fit relative",children:[ve.jsx(da,{...i,type:"button",startIcon:ve.jsx(Zn,{width:"large"===r?24:20,height:"large"===r?24:20}),variant:o,size:r,children:!n&&(t||"Filter")}),e&&ve.jsx("div",{className:pi("h-2 w-2 bg-gama-400 rounded-full absolute","large"===r?"top-2 right-2":"top-1 right-1")})]})}),qd=()=>{const[e,t]=a(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:r=>{e?n():(e=>{t((()=>e.currentTarget))})(r)}}},Bd=e=>r.isValidElement(e)||"string"==typeof e||"number"==typeof e||null===e||Array.isArray(e),Hd=({filterIsActive:e,popoverContent:t,dataTest:n,disabled:o,size:i="large",variant:a="outlined",popoverProps:s,anchorNode:l,label:c,hideLabel:d})=>{const{onAnchorClick:u,onClose:p,anchorEl:f}=qd();return ve.jsxs(ve.Fragment,{children:[ve.jsxs("div",{className:"w-fit h-fit relative",children:[l?r.cloneElement(l({isOpen:!!f,onClose:p}),{onClick:u}):ve.jsx(da,{type:"button",disabled:o,variant:a,startIcon:ve.jsx(Zn,{width:"large"===i?24:20,height:"large"===i?24:20}),onClick:u,size:i,dataTest:n,children:!d&&(c||"Filter")}),e&&ve.jsx("div",{className:pi("h-2 w-2 bg-gama-400 rounded-full absolute","large"===i?"top-2 right-2":"top-1 right-1")})]}),ve.jsx(Fd,{...s,open:!!f,anchorEl:f,onClose:p,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:Bd(t)?t:t({isOpen:!!f,onClose:p})})]})},Ud=({className:e,contentToCopy:t,locale:n,messageInfo:r,text:o})=>{const i="en"===n?"Copy":"Kopier",a=va();return ve.jsx(ta,{title:i,children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"copy-button",className:e,size:"small",variant:"text",startIcon:ve.jsx(pl,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopiert til utklippstavle":"Copied to clipboard")}))},children:!a&&(o||i)})})})},Wd="_copy-wrapper_1gjzc_1",Kd="_hidden-copy_1gjzc_1",Gd=({className:e,contentToCopy:t,locale:n,messageInfo:r,children:o})=>ve.jsxs("div",{className:Ca("flex items-center hover:text-gama-500",Wd,e),children:[o,ve.jsx(ta,{title:"no"===n?"Kopier":"Copy",className:Kd,children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"copy-button",size:"small",variant:"text",className:"cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopiert til utklippstavle":"Copied to clipboard")}))},startIcon:ve.jsx(pl,{width:20,height:20})})})})]}),Yd="_styled-widget-title_1mja5_1",Jd=function(e){return ve.jsx("div",{className:Yd,children:e.children})},Xd="_styled-widget-header_yk04z_1",Zd=({actions:e,title:t,containerClassname:n,actionsClassname:r})=>ve.jsxs("div",{className:Ca(Xd,n),children:[ve.jsx(Jd,{children:t}),ve.jsx("div",{className:r,children:e})]}),Qd="_asma-core-ui-styled-widget_fvr2z_1",eu="_widget-header-left_fvr2z_19",tu="_widget-header-right_fvr2z_25",nu="_widget-content_fvr2z_31",ru="_widget-footer_fvr2z_41",ou="_widget-link_fvr2z_46";function iu(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ve.jsx("path",{fill:"currentColor",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})})}function au(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ve.jsx("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})})}const su=({children:e,title:t,icon:n,link:r,viewMore:o,persistKey:i,isLoading:l,isEmpty:c,emptyText:d,headerRight:u,headerRightClassName:p})=>{const[f,h]=a(!1);s((()=>{if(i){const e=localStorage.getItem(i);h("true"===e)}}),[i]),s((()=>{i&&localStorage.setItem(i,String(f))}),[f,i]);const m=!!r&&!r.hide,g=!(!o||null!=o&&o.hide);return ve.jsxs("div",{className:Qd,children:[ve.jsxs("div",{className:eu,children:[n,ve.jsx(Jd,{children:t}),ve.jsx("div",{className:`${tu} ${p??""}`,children:u})]}),ve.jsx("div",{className:nu,children:ve.jsxs(ve.Fragment,{children:[e,ve.jsx(Ta,{isLoading:l}),ve.jsx(Oa,{isEmpty:c,emptyText:d})]})}),g&&ve.jsxs("div",{className:ru,children:[!o||null!=o&&o.hide?ve.jsx("div",{}):ve.jsx(da,{disabled:o.disabled,dataTest:"view-more",variant:"text",endIcon:f?ve.jsx(iu,{width:20,height:20}):ve.jsx(au,{width:20,height:20}),onClick:()=>{var e;h(!f),null==(e=null==o?void 0:o.onClick)||e.call(o)},children:f?o.viewLessText:o.viewMoreText}),m?ve.jsx(ld,{dataTest:"go-to-button",className:ou,size:"small",href:r.href,onClick:r.onClick,content:r.content}):ve.jsx("div",{})]})]})},lu="_styled-module-title_174mo_1",cu=function(e){return ve.jsx("h1",{"data-test":e.dataTest,className:lu,children:e.children})},du="_dialog_erjok_1",uu="_hidden_erjok_9";function pu(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ve.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 fu(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ve.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 hu="object"==typeof global&&global&&global.Object===Object&&global;var mu="object"==typeof self&&self&&self.Object===Object&&self;const gu=(hu||mu||Function("return this")()).Symbol;var vu=Object.prototype,yu=vu.hasOwnProperty,bu=vu.toString,xu=gu?gu.toStringTag:void 0;var wu=Object.prototype.toString;var Cu="[object Null]",ku="[object Undefined]",ju=gu?gu.toStringTag:void 0;function Nu(e){return null==e?void 0===e?ku:Cu:ju&&ju in Object(e)?function(e){var t=yu.call(e,xu),n=e[xu];try{e[xu]=void 0;var r=!0}catch{}var o=bu.call(e);return r&&(t?e[xu]=n:delete e[xu]),o}(e):function(e){return wu.call(e)}(e)}const _u=Array.isArray;function Eu(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=Nu(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const Iu=({onCloseText:e="",onMinimizeText:t="",onExpandText:n="",onFullScreenText:r="",showCloseIcon:o=!0,showMinimizeIcon:i=!0,showExpandIcon:s=!0,showFullScreenIcon:l=!0,title:c,label:u,children:p,open:f,onClose:h,className:m="",primaryButtonText:g,primaryButtonLoading:v=!1,secondaryButtonText:y,onPrimaryButtonClick:b,onSecondaryButtonClick:x,dataTest:w,actionNode:C,extraActions:k,extraActionsText:j,btnContainerClassName:N,footerClassName:_,footerInfo:E,locale:I="en",enableFullscreen:O=!0,fullScreenState:S,handleFullScreenState:T})=>{const[M,R]=a(!1),[P,D]=a(!1),{open:z,anchorEl:A,handleOpen:L,handleClose:V}=(()=>{const[e,t]=a(null),n=!!e,r=d((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:d((()=>{t(null)}),[]),handleOpen:r,anchorEl:e}})();if(!f)return null;const F=void 0!==S?S:P,$=g||v,q=$||y,B=()=>{R(!M)};return ve.jsxs(ve.Fragment,{children:[F&&!M&&ve.jsx("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),ve.jsx("div",{style:{zIndex:51},className:Ca(du,!M&&uu),children:ve.jsxs("div",{className:pi("flex items-center justify-between",!M&&"hidden"),"data-test":w,children:[ve.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:c}),ve.jsxs("div",{className:"flex items-center gap-x-1",children:[s&&ve.jsx(ta,{title:"en"===I?"Expand":"Utvid",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"minimize-button",variant:"text",size:"small",onClick:B,endIcon:s&&ve.jsx(vr,{height:20,width:20,color:"text-gama-500"}),children:n})})}),o&&ve.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:o&&ve.jsx(Bn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]})}),ve.jsxs("div",{className:Ca("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:[ve.jsxs("div",{className:"flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[ve.jsxs("div",{className:"flex items-center justify-between",children:[u?ve.jsx("div",{className:"text-sm text-delta-700",children:u}):ve.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:c}),ve.jsxs("div",{className:"flex items-center gap-x-1",children:[C,i&&ve.jsx(ta,{title:"en"===I?"Minimize":"Minimer",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:B,endIcon:i&&ve.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:t})})}),O&&l&&ve.jsx(ta,{title:F?"en"===I?"Exit full screen":"Avslutt fullskjerm":"en"===I?"Full screen":"Fullskjerm",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==S&&T?T():D(!P)},endIcon:F?ve.jsx(fu,{width:20,height:20,color:"text-delta-700"}):ve.jsx(pu,{width:20,height:20,color:"text-delta-700"}),children:r})})}),o&&ve.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:ve.jsx(Bn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]}),u&&ve.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:c})]}),ve.jsxs("div",{className:pi("flex flex-col",F&&!M&&"h-[87dvh]"),children:[ve.jsx("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof p?p({fullScreen:F}):p}),(_u(k)&&null!=k&&k.length||Eu(k))&&j||E?ve.jsxs("div",{className:Ca("flex items-center justify-between p-4 border-0 border-t-[1px] border-solid border-delta-200 bg-white",_),children:[_u(k)&&null!=k&&k.length&&j?ve.jsxs(ve.Fragment,{children:[ve.jsx(da,{dataTest:"extra-actions-button",variant:"textGray",startIcon:ve.jsx(Rn,{width:24,height:24}),onClick:L,children:j}),ve.jsx(ed,{open:z,anchorEl:A,onClose:V,children:k.map((e=>ve.jsx(td,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):j&&Eu(k)&&ve.jsx(da,{dataTest:"extra-action-button",variant:"text",onClick:k,children:j})," ",E,q?ve.jsxs("div",{className:Ca("flex justify-end gap-x-4",N),children:[y&&x&&ve.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:y}),$&&b&&ve.jsx(da,{dataTest:"save-button",startIcon:v&&ve.jsx(ll,{width:24,height:24}),onClick:b,children:g})]}):null]}):ve.jsx(ve.Fragment,{children:q?ve.jsxs("div",{className:Ca("flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",N),children:[y&&x&&ve.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:y}),$&&b&&ve.jsx(da,{dataTest:"save-button",startIcon:v&&ve.jsx(ll,{width:24,height:24}),onClick:b,children:g})]}):null})]})]})]})},Ou=({showCloseIcon:e,tooltipTitle:t,onClick:n})=>e?ve.jsx(ta,{title:t,placement:"top",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:n,endIcon:ve.jsx(Bn,{height:20,width:20,color:"text-delta-700"})})})}):null,Su=({visibility:e,tooltipTitle:t,onClick:n,type:r})=>{if(!e)return null;const o="minimize"===r;return"expand"===r?ve.jsx("div",{children:ve.jsx(ta,{title:t,placement:"top",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"toggle-minimize-btn",variant:"text",size:"small",onClick:n,endIcon:ve.jsx(vr,{height:20,width:20,color:"text-gama-500"})})})})}):o?ve.jsx("div",{children:ve.jsx(ta,{title:t,placement:"top",children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"toggle-minimize-btn",variant:"textGray",size:"small",onClick:n,endIcon:ve.jsx(gr,{height:20,width:20,color:"text-delta-700"})})})})}):null},Tu=({fullScreen:e,showFullScreenIcon:t,tooltipTitle:n,onClick:r})=>t?ve.jsx(ta,{title:n,children:ve.jsx("div",{children:ve.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:r,endIcon:e?ve.jsx(fu,{width:20,height:20,color:"text-delta-700"}):ve.jsx(pu,{width:20,height:20,color:"text-delta-700"})})})}):null,Mu="_minimized-dialog_16tvw_5",Ru="_dialog_16tvw_1",Pu="_hidden_16tvw_27",Du={en:{close:"Close",expand:"Expand",minimize:"Minimize",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen"},no:{close:"Lukk",expand:"Utvid",minimize:"Minimer",fullscreen:"Fullskjerm",exitFullscreen:"Avslutt fullskjerm"}};const zu=e=>{const{showCloseIcon:t=!0,showMinimizeIcon:n=!0,showExpandIcon:r=!0,enableFullscreen:o=!0,title:i,label:s,children:l,open:d,onClose:p,classNameOverrides:f={maximized:"",minimized:"",fullscreen:""},dataTest:h,actionNode:m,locale:g="en",style:v}=e,y=va(),b=function(e="en"){return u((()=>Du[e]??Du.en),[e])}(g),x=c(null),{minimized:w,setMinimized:C,fullScreen:k,setFullScreen:j}=(({fullScreenState:e,handleFullScreenState:t,minimizedState:n,handleMinimizedState:r})=>{const[o,i]=a(!1),[s,l]=a(!1);return{fullScreen:void 0!==e?e:s,setFullScreen:e=>t?t():l(e),minimized:void 0!==n?n:o,setMinimized:e=>r?r(e):i(e)}})(e);return d?ve.jsxs(ve.Fragment,{children:[ve.jsx("div",{style:{zIndex:51,...v},className:Ca(Mu,!w&&Pu,f.minimized),children:ve.jsxs("div",{className:pi("flex items-center justify-between",!w&&"hidden"),"data-test":h,children:[ve.jsx("div",{className:"truncate max-w-[303px] text-lg font-semibold text-delta-800 pr-1",children:ve.jsx(ta,{title:i,placement:"top",children:ve.jsx("div",{className:"truncate",children:i})})}),ve.jsxs("div",{className:"flex items-center gap-x-1",children:[ve.jsx(Su,{type:"expand",visibility:r,onClick:()=>C(!w),tooltipTitle:b.expand}),ve.jsx(Ou,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]})}),k&&!w&&ve.jsx("div",{className:"z-[52] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70",onClick:()=>j(!1)}),ve.jsxs("div",{style:{zIndex:51,...v},ref:x,className:Ca(Ru,w&&Pu,f.maximized,k&&!w&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0 z-[53]"),children:[ve.jsxs("div",{className:Ca("flex flex-col px-4 border-b-[1px] border-delta-200",y?"py-3 gap-y-1":"py-4 gap-y-2"),children:[ve.jsxs("div",{className:"flex items-center justify-between",children:[s?ve.jsx("div",{className:"text-sm text-delta-700",children:s}):ve.jsx("div",{className:Ca("font-semibold text-delta-800",y?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i}),ve.jsxs("div",{className:"flex items-center gap-x-1",children:[m,ve.jsx(Su,{visibility:n&&!y,type:"minimize",onClick:()=>C(!w),tooltipTitle:b.minimize}),ve.jsx(Tu,{showFullScreenIcon:o&&!y,fullScreen:k,onClick:()=>j(!k),tooltipTitle:k?b.exitFullscreen:b.fullscreen}),ve.jsx(Ou,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]}),s&&ve.jsx("div",{className:Ca("font-semibold text-delta-800",y?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i})]}),ve.jsx("div",{className:Ca(w&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:l})]})]}):null};function Au({config:e,MAX_DIALOG_WIDTH:t=600}){const n=p(void 0);return{DialogStackProvider:({children:r})=>{const[o,i]=a([]),l=function(){const[e,t]=a((()=>window.innerWidth));return s((()=>{const e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e}(),c=d((e=>{const n=[...e].sort(((e,t)=>e.order-t.order)),r=n.length||1,o=Math.min(t,(l-16*(r+1))/r);return n.map(((e,t)=>({...e,width:o,position:{right:16+t*(o+16)}})))}),[l]),u=d(((t,n)=>{var r,o;const a=null==(r=e[t])?void 0:r.dependencies,s=(null==(o=e[t])?void 0:o.order)??1/0,l=n??s;i((e=>{const n=e.find((e=>e.id===t)),r={id:t,open:!0,width:0,position:{right:0},dependencies:a,order:l},o=n?e.map((e=>e.id===t?{...e,open:!0,dependencies:a}:e)):[...e,r];return c(o.filter((e=>e.open)))}))}),[c]),p=d((e=>{i((t=>{var n;const r=new Set([e]);let o;do{o=!1;for(const e of t)null!=(n=e.dependencies)&&n.some((e=>r.has(e)))&&!r.has(e.id)&&(r.add(e.id),o=!0)}while(o);return c(t.filter((e=>!r.has(e.id))))}))}),[c]),f=d((e=>o.find((t=>t.id===e))),[o]);return ve.jsx(n.Provider,{value:{dialogs:o,openDialog:u,closeDialog:p,getDialogState:f},children:r})},useDialogStack:function(){const e=f(n);if(!e)throw new Error("useDialogStack must be used within DialogStackProvider");return e}}}export{Ln as ArchiveIcon,xn as AssignmentIcon,wn as AssignmentOutlineIcon,q as Avatar,br as BadgeIcon,tn as BellIcon,en as BellOutlineIcon,rr as CalendarBlankOutlineIcon,vn as CalendarIcon,bn as CalendarRangeIcon,Fn as CheckBoxCheckedIcon,gn as CheckFactIcon,mn as CheckFactOutlineIcon,hn as CheckOutlineIcon,an as ChevronDoubleLeftIcon,sn as ChevronDoubleRightIcon,$n as ChevronDownIcon,on as ChevronLeftIcon,rn as ChevronRightIcon,qn as ChevronUpIcon,B as ClickAwayListener,Bn as CloseIcon,mr as ConsentsIcon,H as Container,Ud as CopyButton,Gd as CopyWrapper,dn as DashboardViewIcon,un as DashboardViewOutlineIcon,Xn as DeleteOutlineIcon,Rn as DotsVerticalIcon,Vn as DownloadIcon,Yn as DragHorizontalIcon,An as DropDownIcon,zn as DropUpIcon,er as DvrIcon,dr as EarthIcon,xr as EditSquareIcon,tr as ErrorOutlineIcon,U as Fade,ir as FastCheckOutlineIcon,Jn as FilePdfIcon,Zn as FilterIcon,On as FindReplaceIcon,Sn as FindReplacePeopleIcon,W as FormLabel,nn as HamburgerIcon,jr as HandymanIcon,kr as HandymanOutlineIcon,Wn as InboxOutboxIcon,Kn as InboxOutboxOutlineIcon,fl as IndeterminateIcon,vr as KeyboardCapslockIcon,or as LinkOutlineIcon,Cn as ListNumberedIcon,cr as ListSettingsLineIcon,sr as ListStatusIcon,Dn as LoadingIcon,Qn as LockIcon,kn as MessageProcessingIcon,jn as MessageProcessingOutlineIcon,yr as MessageReplyIcon,Iu as MinimizableDialog,zu as MinimizableDialogV2,gr as MinimizeIcon,yn as NewCalendarIcon,hr as OutlineCalendarMonth,K as Paper,cn as PdfIcon,pr as PencilOutlineIcon,fn as PeopleIcon,pn as PeopleOutlineIcon,Hn as PermMediaIcon,Un as PermMediaOutline,Tn as PersonIcon,Mn as PersonOutlineIcon,Nr as PinIcon,wr as PlusIcon,Cr as PlusIconCircle,G as Popper,ln as QnrIcon,nr as ReplayIcon,Nn as ReportBoxIcon,_n as ReportBoxOutlineIcon,Pn as SearchIcon,En as SettingsIcon,ur as SettingsMenuHorizontalIcon,In as SettingsOutlineIcon,Y as Skeleton,J as Stack,Ad as StyledAccordion,Vd as StyledAccordionDetails,Ld as StyledAccordionSummary,ye as StyledBadge,da as StyledButton,hl as StyledCheckbox,Er as StyledChip,ya as StyledDialog,ka as StyledDialogActions,Na as StyledDialogContent,Ea as StyledDialogTitle,Qc as StyledDrawer,Kc as StyledDynamicSelect,Oa as StyledEmptyPage,$d as StyledFilterButton,Hd as StyledFilterMenu,Gc as StyledFormControl,Yc as StyledFormControlLabel,Zc as StyledFormGroup,Jc as StyledFormHelperText,sa as StyledFormLabel,ml as StyledInputField,Xc as StyledInputLabel,Sr as StyledInteractiveChip,Hc as StyledLabel,ld as StyledLink,Ta as StyledLoading,ed as StyledMenu,td as StyledMenuItem,nd as StyledMenuList,cu as StyledModuleTitle,Fd as StyledPopover,Ql as StyledRadio,Bc as StyledRadioGroup,gl as StyledSearchField,bl as StyledSelect,kl as StyledSelectAutocomplete,xl as StyledSelectItem,jl as StyledSlider,Rl as StyledSwitch,cd as StyledTab,dd as StyledTabs,yl as StyledTextarea,ta as StyledTooltip,na as StyledTypography,su as StyledWidget,Zd as StyledWidgetHeader,Jd as StyledWidgetTitle,lr as TextBoxCheckOutlineIcon,Gn as TopicIcon,ar as UnknownDocumentOutlineRoundedIcon,fr as WarningAmberOutlineIcon,_r as WorkIcon,Au as createDialogStack,ne as omit,ue as prepareForSlot,ce as setMidnightTime,de as setZeroTime};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.2.2",
6
+ "version": "3.2.4",
7
7
  "type": "module",
8
8
  "files": [
9
9
  "dist/**/*",