asma-ui-core 3.3.9 → 3.3.11
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.
- package/dist/asma-ui-core.es.js +1 -38
- package/dist/src/components/custom/widget/widget-title/StyledWidgetTitle.d.ts +0 -1
- package/dist/src/components/data-display/badge/StyledBadge.d.ts +0 -1
- package/dist/src/components/data-display/form-label/components/StyledFormLabel.d.ts +0 -1
- package/dist/src/components/feedback/minimizable-dialog/components/MinimizeBtn.d.ts +0 -1
- package/dist/src/components/feedback/snack-bar/StyledAlertSnackbar.d.ts +0 -1
- package/dist/src/components/feedback/snack-bar/components/StyledInfoSnackbar.d.ts +0 -1
- package/dist/src/components/feedback/snack-bar/components-styled/InfoMessages.d.ts +0 -1
- package/dist/src/components/icons/IconTemplate.d.ts +0 -1
- package/dist/src/components/icons/Icons.types.d.ts +0 -1
- package/dist/src/components/icons/archive-icon/ArchiveIcon.d.ts +0 -1
- package/dist/src/components/icons/assignment/AssignmentIcon.d.ts +0 -1
- package/dist/src/components/icons/assignment-outline-icon/AssignmentOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/bell-icon/BellIcon.d.ts +0 -1
- package/dist/src/components/icons/bell-outline-icon/BellOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/calendar-blank-outline-icon/CalendarBlankOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/calendar-icon/CalendarIcon.d.ts +0 -1
- package/dist/src/components/icons/calendar-range-icon/CalendarIcon.d.ts +0 -1
- package/dist/src/components/icons/checkbox-checked-icon/CheckBoxCheckedIcon.d.ts +0 -1
- package/dist/src/components/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.d.ts +0 -1
- package/dist/src/components/icons/chevron-double-right-icon/ChevronDoubleRightIcon.d.ts +0 -1
- package/dist/src/components/icons/chevron-down-icon/ChevronDownIcon.d.ts +0 -1
- package/dist/src/components/icons/chevron-left-icon/ChevronLeftIcon.d.ts +0 -1
- package/dist/src/components/icons/chevron-right-icon/ChevronRightIcon.d.ts +0 -1
- package/dist/src/components/icons/chevron-up-icon/ChevronUpIcon.d.ts +0 -1
- package/dist/src/components/icons/clock-outline-icon/ClockOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/close-icon/CloseIcon.d.ts +0 -1
- package/dist/src/components/icons/dashboard-view-icon/DashboardViewIcon.d.ts +0 -1
- package/dist/src/components/icons/dashboard-view-outline-icon/DashboardViewOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/delete-outline-icon/DeleteOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/dots-vertical-icon/DotsVerticalIcon.d.ts +0 -1
- package/dist/src/components/icons/download-icon/DownloadIcon.d.ts +0 -1
- package/dist/src/components/icons/drag-horizontal-icon/DragHorizontalIcon.d.ts +0 -1
- package/dist/src/components/icons/drop-down-icon/DropDownIcon.d.ts +0 -1
- package/dist/src/components/icons/drop-up-icon/DropUpIcon.d.ts +0 -1
- package/dist/src/components/icons/dvr-icon/DvrIcon.d.ts +0 -1
- package/dist/src/components/icons/earth-icon/EarthIcon.d.ts +0 -1
- package/dist/src/components/icons/fast-check-outline-icon/FastCheckOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/file-pdf-icon/FilePdfIcon.d.ts +0 -1
- package/dist/src/components/icons/filter-icon/FilterIcon.d.ts +0 -1
- package/dist/src/components/icons/find-replace-icon/FindReplaceIcon.d.ts +0 -1
- package/dist/src/components/icons/find-replace-people-icon/FindReplacePeopleIcon.d.ts +0 -1
- package/dist/src/components/icons/hamburger-icon/HamburgerIcon.d.ts +0 -1
- package/dist/src/components/icons/inbox-outbox-icon/InboxOutboxIcon.d.ts +0 -1
- package/dist/src/components/icons/inbox-outbox-outline-icon/InboxOutboxOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/link-outline-icon/LinkOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/list-numbered-icon/ListNumberedIcon.d.ts +0 -1
- package/dist/src/components/icons/list-settings-line-icon/ListSettingsLineIcon.d.ts +0 -1
- package/dist/src/components/icons/list-status-icon/ListStatusIcon.d.ts +0 -1
- package/dist/src/components/icons/loading-icon/LoadingIcon.d.ts +0 -1
- package/dist/src/components/icons/lock-icon/LockIcon.d.ts +0 -1
- package/dist/src/components/icons/message-processing-icon/MessageProcessingIcon.d.ts +0 -1
- package/dist/src/components/icons/message-processing-outline-icon/MessageProcessingOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/outline-calendar-month/OutlineCalendarMonth.d.ts +0 -1
- package/dist/src/components/icons/pdf-icon/PdfIcon.d.ts +0 -1
- package/dist/src/components/icons/pencil-outline-icon/PencilOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/people-icon/PeopleIcon.d.ts +0 -1
- package/dist/src/components/icons/people-outline-icon/PeopleOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/perm-media-icon/PermMediaIcon.d.ts +0 -1
- package/dist/src/components/icons/perm-media-outline-icon/PermMediaOutline.d.ts +0 -1
- package/dist/src/components/icons/person-icon/PersonIcon.d.ts +0 -1
- package/dist/src/components/icons/person-outline-icon/PersonOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/qnr-icon/QnrIcon.d.ts +0 -1
- package/dist/src/components/icons/report-box-icon/ReportBoxIcon.d.ts +0 -1
- package/dist/src/components/icons/report-box-outline-icon/ReportBoxOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/search-icon/SearchIcon.d.ts +0 -1
- package/dist/src/components/icons/settings-icon/SettingsIcon.d.ts +0 -1
- package/dist/src/components/icons/settings-outline-icon/SettingsOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/topic-icon/TopicIcon.d.ts +0 -1
- package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +0 -1
- package/dist/src/components/inputs/input-field/StyledInputField.d.ts +0 -1
- package/dist/src/components/inputs/input-field/story/components/StyledInputFieldExample.d.ts +0 -1
- package/dist/src/components/inputs/select/StyledSelect.d.ts +0 -1
- package/dist/src/components/inputs/select/story/components/StyledSelectExample.d.ts +0 -1
- package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +0 -1
- package/dist/src/components/inputs/select-autocomplete/story/components/StyledSelectAutocompleteExample.d.ts +0 -1
- package/dist/src/components/miscellaneous/StyledFormGroup.d.ts +0 -1
- package/dist/src/components/utils/filter-menu/StyledFilterButton.d.ts +0 -1
- package/dist/src/helpers/prepareForSlot.d.ts +0 -1
- package/package.json +17 -17
package/dist/asma-ui-core.es.js
CHANGED
|
@@ -1,38 +1 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=(t,n,r)=>(((t,n,r)=>{n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r})(t,"symbol"!=typeof n?n+"":n,r),r);import*as n from"react";import r,{forwardRef as o,createElement as i,useState as a,useEffect as s,useLayoutEffect as l,useRef as c,useCallback as d,useMemo as u,createContext as p,useContext as f}from"react";import{Badge as h,Chip as m,Checkbox as g,Radio as v,Tooltip as y,Typography as x,Dialog as b,DialogActions as w,DialogContent as C,DialogTitle as k,TextField as j,Select as N,MenuItem as _,Autocomplete as E,Paper as I,Slider as O,Skeleton as S,FormControl as T,FormControlLabel as M,FormHelperText as R,InputLabel as D,FormGroup as P,Drawer as z,Menu as A,MenuList as L,Tab as V,Tabs as F,Popover as $}from"@mui/material";import{Avatar as B,ClickAwayListener as q,Container as H,Fade as W,FormLabel as U,Paper as K,Popper as G,Skeleton as Y,Stack as J}from"@mui/material";import X from"prop-types";import{ThemeContext as Z}from"@emotion/react";import*as Q from"react-dom";import ee from"react-dom";import{twMerge as te}from"tailwind-merge";const ne=(e,t)=>Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))));function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ie(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function ae(e){ie(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===re(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function se(e,t){ie(2,arguments);var n=ae(e),r=oe(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=function(e){ie(1,arguments);var t=ae(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(r,Math.min(i,s)),n}function le(e,t){if(ie(2,arguments),"object"!==re(t)||null===t)throw new RangeError("values parameter must be an object");var n=ae(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=se(n,t.month)),null!=t.date&&n.setDate(oe(t.date)),null!=t.hours&&n.setHours(oe(t.hours)),null!=t.minutes&&n.setMinutes(oe(t.minutes)),null!=t.seconds&&n.setSeconds(oe(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(oe(t.milliseconds)),n)}const ce=e=>le(e,{hours:23,minutes:59,seconds:59,milliseconds:59}),de=e=>le(e,{hours:0,minutes:0,seconds:0,milliseconds:0});function ue(e){return o((function(t,n){const{ownerState:r,...o}=t;return i(e,{...o,ref:n})}))}var pe,fe={exports:{}},he={};
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var me,ge={};
|
|
11
|
-
/**
|
|
12
|
-
* @license React
|
|
13
|
-
* react-jsx-runtime.development.js
|
|
14
|
-
*
|
|
15
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the MIT license found in the
|
|
18
|
-
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/"production"===process.env.NODE_ENV?fe.exports=function(){if(pe)return he;pe=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 he.Fragment=n,he.jsx=s,he.jsxs=s,he}():fe.exports=(me||(me=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,o=r.getStackAddendum();""!==o&&(t+="%s",n=n.concat([o]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,n)}var x,b=!1,w=!1,C=!1,k=!1,j=!1;function N(e){return e.displayName||"Context"}function _(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 N(e)+".Consumer";case s:return N(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:_(e.type)||"Memo";case f:var r=e,h=r._payload,m=r._init;try{return _(m(h))}catch{return null}}return null}x=Symbol.for("react.module.reference");var E,I,O,S,T,M,R,D=Object.assign,P=0;function z(){}z.__reactDisabledLog=!0;var A,L=v.ReactCurrentDispatcher;function V(e,t,n){if(void 0===A)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);A=r&&r[1]||""}return"\n"+A+e}var F,$=!1,B="function"==typeof WeakMap?WeakMap:Map;function q(e,t){if(!e||$)return"";var n,r=F.get(e);if(void 0!==r)return r;$=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=L.current,L.current=null,function(){if(0===P){E=console.log,I=console.info,O=console.warn,S=console.error,T=console.group,M=console.groupCollapsed,R=console.groupEnd;var e={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}P++}();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&&F.set(e,u),u}}while(c>=1&&d>=0);break}}}finally{$=!1,L.current=o,function(){if(0==--P){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:E}),info:D({},e,{value:I}),warn:D({},e,{value:O}),error:D({},e,{value:S}),group:D({},e,{value:T}),groupCollapsed:D({},e,{value:M}),groupEnd:D({},e,{value:R})})}P<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?V(p):"";return"function"==typeof e&&F.set(e,f),f}function H(e,t,n){if(null==e)return"";if("function"==typeof e)return q(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return V(e);switch(e){case d:return V("Suspense");case u:return V("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,n){return q(e,!1)}(e.render);case p:return H(e.type,t,n);case f:var r=e,o=r._payload,i=r._init;try{return H(i(o),t,n)}catch{}}return""}F=new B;var W=Object.prototype.hasOwnProperty,U={},K=v.ReactDebugCurrentFrame;function G(e){if(e){var t=e._owner,n=H(e.type,e._source,t?t.type:null);K.setExtraStackFrame(n)}else K.setExtraStackFrame(null)}var Y=Array.isArray;function J(e){return Y(e)}function X(e){return""+e}function Z(e){if(function(e){try{return X(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.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),X(e)}var Q,ee,te,ne=v.ReactCurrentOwner,re={key:!0,ref:!0,__self:!0,__source:!0};te={};var oe=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};function ie(e,t,n,r,o){var i,a={},s=null,l=null;for(i in void 0!==n&&(Z(n),s=""+n),function(e){if(W.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Z(t.key),s=""+t.key),function(e){if(W.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&ne.current&&t&&ne.current.stateNode!==t){var n=_(ne.current.type);te[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',_(ne.current.type),e.ref),te[n]=!0)}}(t,o)),t)W.call(t,i)&&!re.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var c=e.defaultProps;for(i in c)void 0===a[i]&&(a[i]=c[i])}if(s||l){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){Q||(Q=!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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,d),l&&function(e,t){var n=function(){ee||(ee=!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})}(a,d)}return oe(e,s,l,o,r,ne.current,a)}var ae,se=v.ReactCurrentOwner,le=v.ReactDebugCurrentFrame;function ce(e){if(e){var t=e._owner,n=H(e.type,e._source,t?t.type:null);le.setExtraStackFrame(n)}else le.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function ue(){if(se.current){var e=_(se.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ae=!1;var pe={};function fe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ue();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(!pe[n]){pe[n]=!0;var r="";e&&e._owner&&e._owner!==se.current&&(r=" It was passed a child from "+_(e._owner.type)+"."),ce(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),ce(null)}}}function he(e,t){if("object"==typeof e)if(J(e))for(var n=0;n<e.length;n++){var r=e[n];de(r)&&fe(r,t)}else if(de(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;)de(i.value)&&fe(i.value,t)}}function me(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=_(n);!function(e,t,n,r,o){var i=Function.call.bind(W);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)&&(G(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),G(null)),s instanceof Error&&!(s.message in U)&&(U[s.message]=!0,G(o),y("Failed %s type: %s",n,s.message),G(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ae||(ae=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_(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.")}}function ve(e,n,r,m,g,v){var N=function(e){return!!("string"==typeof e||"function"==typeof e||e===o||e===a||j||e===i||e===d||e===u||k||e===h||b||w||C||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===x||void 0!==e.getModuleId))}(e);if(!N){var E="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(E+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var I,O=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);E+=O||ue(),null===e?I="null":J(e)?I="array":void 0!==e&&e.$$typeof===t?(I="<"+(_(e.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):I=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",I,E)}var S=ie(e,n,r,g,v);if(null==S)return S;if(N){var T=n.children;if(void 0!==T)if(m)if(J(T)){for(var M=0;M<T.length;M++)he(T[M],e);Object.freeze&&Object.freeze(T)}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 he(T,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){ce(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ce(null);break}}null!==e.ref&&(ce(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ce(null))}(S):me(S),S}var ye=function(e,t,n){return ve(e,t,n,!1)},xe=function(e,t,n){return ve(e,t,n,!0)};ge.Fragment=o,ge.jsx=ye,ge.jsxs=xe}()),ge);var ve=fe.exports;const ye=({color:e="primary",dataTest:t,...n})=>ve.jsx(h,{color:e,"data-test":t,...n,sx:{"& .MuiBadge-colorPrimary":{backgroundColor:"var(--colors-lime-500)",color:"var(--colors-gama-900)"},...n.sx}}),xe=/^[a-z0-9]+(-[a-z0-9]+)*$/,be=(e,t,n,r="")=>{const o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const e=o.pop(),n=o.pop(),i={provider:o.length>0?o[0]:r,prefix:n,name:e};return t&&!we(i)?null:i}const i=o[0],a=i.split("-");if(a.length>1){const e={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!we(e)?null:e}if(n&&""===r){const e={provider:r,prefix:"",name:i};return t&&!we(e,n)?null:e}return null},we=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(xe)||!(t&&""===e.prefix||e.prefix.match(xe))||!e.name.match(xe)),Ce=Object.freeze({left:0,top:0,width:16,height:16}),ke=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),je=Object.freeze({...Ce,...ke}),Ne=Object.freeze({...je,body:"",hidden:!1});function _e(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}(e,t);for(const r in Ne)r in ke?r in e&&!(r in n)&&(n[r]=ke[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Ee(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(e){i=_e(r[e]||o[e],i)}return a(t),n.forEach(a),_e(e,i)}function Ie(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const r=function(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);return(t||Object.keys(n).concat(Object.keys(r))).forEach((function e(t){if(n[t])return o[t]=[];if(!(t in o)){o[t]=null;const n=r[t]&&r[t].parent,i=n&&e(n);i&&(o[t]=[n].concat(i))}return o[t]})),o}(e);for(const o in r){const i=r[o];i&&(t(o,Ee(e,o,i)),n.push(o))}return n}const Oe={provider:"",aliases:{},not_found:{},...Ce};function Se(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Te(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!Se(e,Oe))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(xe)||"string"!=typeof t.body||!Se(t,Ne))return null}const r=t.aliases||Object.create(null);for(const e in r){const t=r[e],o=t.parent;if(!e.match(xe)||"string"!=typeof o||!n[o]&&!r[o]||!Se(t,Ne))return null}return t}const Me=Object.create(null);function Re(e,t){const n=Me[e]||(Me[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function De(e,t){return Te(t)?Ie(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let Pe=!1;function ze(e){return"boolean"==typeof e&&(Pe=e),Pe}function Ae(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),Pe&&!t&&!e.prefix){let t=!1;return Te(e)&&(e.prefix="",Ie(e,((e,n)=>{n&&function(e,t){const n=be(e,!0,Pe);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(Re(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!we({provider:t,prefix:n,name:"a"}))return!1;return!!De(Re(t,n),e)}const Le=Object.freeze({width:null,height:null}),Ve=Object.freeze({...Le,...ke}),Fe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,$e=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Be(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const r=e.split(Fe);if(null===r||!r.length)return e;const o=[];let i=r.shift(),a=$e.test(i);for(;;){if(a){const e=parseFloat(i);isNaN(e)?o.push(i):o.push(Math.ceil(e*t*n)/n)}else o.push(i);if(i=r.shift(),void 0===i)return o.join("");a=!a}}const qe=/\sid="(\S+)"/g,He="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let We=0;function Ue(e,t=He){const n=[];let r;for(;r=qe.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const r="function"==typeof t?t(n):t+(We++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+o+"$3")})),e=e.replace(new RegExp(o,"g"),"")}const Ke=Object.create(null);function Ge(e){return Ke[e]||Ke[""]}function Ye(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Je=Object.create(null),Xe=["https://api.simplesvg.com","https://api.unisvg.com"],Ze=[];for(;Xe.length>0;)1===Xe.length||Math.random()>.5?Ze.push(Xe.shift()):Ze.push(Xe.pop());function Qe(e,t){const n=Ye(t);return null!==n&&(Je[e]=n,!0)}function et(e){return Je[e]}Je[""]=Ye({resources:["https://api.iconify.design"].concat(Ze)});let tt=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const nt={prepare:(e,t,n)=>{const r=[],o=function(e,t){const n=et(e);if(!n)return 0;let r;if(n.maxURL){let e=0;n.resources.forEach((t=>{e=Math.max(e,t.length)}));const o=t+".json?icons=";r=n.maxURL-e-n.path.length-o.length}else r=0;return r}(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach(((n,l)=>{s+=n.length+1,s>=o&&l>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=n.length),a.icons.push(n)})),r.push(a),r},send:(e,t,n)=>{if(!tt)return void n("abort",424);let r=function(e){if("string"==typeof e){const t=et(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");r+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;r+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let o=503;tt(e+r).then((e=>{const t=e.status;if(200===t)return o=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",o)}))})).catch((()=>{n("next",o)}))}};function rt(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let ot=0;var it={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function at(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let t=e.resources.slice(0);for(a=[];t.length>1;){const e=Math.floor(Math.random()*t.length);a.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}a=a.concat(t)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let l,c="pending",d=0,u=null,p=[],f=[];function h(){u&&(clearTimeout(u),u=null)}function m(){"pending"===c&&(c="aborted"),h(),p.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),p=[]}function g(e,t){t&&(f=[]),"function"==typeof e&&f.push(e)}function v(){c="failed",f.forEach((e=>{e(void 0,l)}))}function y(){p.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),p=[]}function x(){if("pending"!==c)return;h();const r=a.shift();if(void 0===r)return p.length?void(u=setTimeout((()=>{h(),"pending"===c&&(y(),v())}),e.timeout)):void v();const o={status:"pending",resource:r,callback:(t,n)=>{!function(t,n,r){const o="success"!==n;switch(p=p.filter((e=>e!==t)),c){case"pending":break;case"failed":if(o||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return l=r,void v();if(o)return l=r,void(p.length||(a.length?x():v()));if(h(),y(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}c="completed",f.forEach((e=>{e(r)}))}(o,t,n)}};p.push(o),d++,u=setTimeout(x,e.rotate),n(r,t,o.callback)}return"function"==typeof r&&f.push(r),setTimeout(x),function(){return{startTime:s,payload:t,status:c,queriesSent:d,queriesPending:p.length,subscribe:g,abort:m}}}function st(e){const t={...it,...e};let n=[];function r(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,o,i){const a=at(t,e,o,((e,t)=>{r(),i&&i(e,t)}));return n.push(a),a},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function lt(){}const ct=Object.create(null);function dt(e,t,n){let r,o;if("string"==typeof e){const t=Ge(e);if(!t)return n(void 0,424),lt;o=t.send;const i=function(e){if(!ct[e]){const t=et(e);if(!t)return;const n={config:t,redundancy:st(t)};ct[e]=n}return ct[e]}(e);i&&(r=i.redundancy)}else{const t=Ye(e);if(t){r=st(t);const n=Ge(e.resources?e.resources[0]:"");n&&(o=n.send)}}return r&&o?r.query(t,o,n)().abort:(n(void 0,424),lt)}const ut="iconify2",pt="iconify",ft=pt+"-count",ht=pt+"-version",mt=36e5,gt=168;function vt(e,t){try{return e.getItem(t)}catch{}}function yt(e,t,n){try{return e.setItem(t,n),!0}catch{}}function xt(e,t){try{e.removeItem(t)}catch{}}function bt(e,t){return yt(e,ft,t.toString())}function wt(e){return parseInt(vt(e,ft))||0}const Ct={local:!0,session:!0},kt={local:new Set,session:new Set};let jt=!1;let Nt=typeof window>"u"?{}:window;function _t(e){const t=e+"Storage";try{if(Nt&&Nt[t]&&"number"==typeof Nt[t].length)return Nt[t]}catch{}Ct[e]=!1}function Et(e,t){const n=_t(e);if(!n)return;const r=vt(n,ht);if(r!==ut){if(r){const e=wt(n);for(let t=0;t<e;t++)xt(n,pt+t.toString())}return yt(n,ht,ut),void bt(n,0)}const o=Math.floor(Date.now()/mt)-gt,i=e=>{const r=pt+e.toString(),i=vt(n,r);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>o&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch{}xt(n,r)}};let a=wt(n);for(let t=a-1;t>=0;t--)i(t)||(t===a-1?(a--,bt(n,a)):kt[e].add(t))}function It(){if(!jt){jt=!0;for(const e in Ct)Et(e,(e=>{const t=e.data,n=Re(e.provider,t.prefix);if(!De(n,t).length)return!1;const r=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,r):r,!0}))}}function Ot(e,t){function n(n){let r;if(!Ct[n]||!(r=_t(n)))return;const o=kt[n];let i;if(o.size)o.delete(i=Array.from(o).shift());else if(i=wt(r),!bt(r,i+1))return;const a={cached:Math.floor(Date.now()/mt),provider:e.provider,data:t};return yt(r,pt+i.toString(),JSON.stringify(a))}jt||It(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const n in Ct)Et(n,(n=>{const r=n.data;return n.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function St(){}function Tt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach((t=>{const i=t.icons,a=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==o)return!0;const a=t.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else{if(!e.missing.has(a))return n=!0,!0;i.missing.push({provider:r,prefix:o,name:a})}return!1})),i.pending.length!==a&&(n||rt([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const Mt=(e,t)=>{const n=function(e,t=!0,n=!1){const r=[];return e.forEach((e=>{const o="string"==typeof e?be(e,t,n):e;o&&r.push(o)})),r}(e,!0,ze()),r=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let r={provider:"",prefix:"",name:""};return e.forEach((e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;const o=e.provider,i=e.prefix,a=e.name,s=n[o]||(n[o]=Object.create(null)),l=s[i]||(s[i]=Re(o,i));let c;c=a in l.icons?t.loaded:""===i||l.missing.has(a)?t.missing:t.pending;const d={provider:o,prefix:i,name:a};c.push(d)})),t}(n);if(!r.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(r.loaded,r.missing,r.pending,St)})),()=>{e=!1}}const o=Object.create(null),i=[];let a,s;return r.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===s&&t===a)return;a=t,s=n,i.push(Re(t,n));const r=o[t]||(o[t]=Object.create(null));r[n]||(r[n]=[])})),r.pending.forEach((e=>{const{provider:t,prefix:n,name:r}=e,i=Re(t,n),a=i.pendingIcons||(i.pendingIcons=new Set);a.has(r)||(a.add(r),o[t][n].push(r))})),i.forEach((e=>{const{provider:t,prefix:n}=e;o[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,r=e.iconsToLoad;let o;delete e.iconsToLoad,r&&(o=Ge(t))&&o.prepare(t,n,r).forEach((n=>{dt(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=De(e,t);if(!n.length)return;const r=e.pendingIcons;r&&n.forEach((e=>{r.delete(e)})),Ot(e,t)}catch(e){console.error(e)}Tt(e)}))}))})))}(e,o[t][n])})),t?function(e,t,n){const r=ot++,o=rt.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),o}(t,r,i):St};const Rt=/[\s,]+/;function Dt(e,t){t.split(Rt).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Pt(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o/=t,o%1==0?r(o):0)}}return t}function zt(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let At;function Lt(e){return void 0===At&&function(){try{At=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{At=null}}(),At?At.createHTML(e):e}const Vt={...Ve,inline:!1},Ft={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},$t={display:"inline-block"},Bt={backgroundColor:"currentColor"},qt={backgroundColor:"transparent"},Ht={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Wt={WebkitMask:Bt,mask:Bt,background:qt};for(const e in Wt){const t=Wt[e];for(const n in Ht)t[e+n]=Ht[n]}const Ut={...Vt,inline:!0};function Kt(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Gt=(e,t,n,o)=>{const i=n?Ut:Vt,a=function(e,t){const n={...e};for(const e in t){const r=t[e],o=typeof r;e in Le?(null===r||r&&("string"===o||"number"===o))&&(n[e]=r):o===typeof n[e]&&(n[e]="rotate"===e?r%4:r)}return n}(i,t),s=t.mode||"svg",l={},c=t.style||{},d={..."svg"===s?Ft:{},ref:o};for(let e in t){const n=t[e];if(void 0!==n)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[e]=!0===n||"true"===n||1===n;break;case"flip":"string"==typeof n&&Dt(a,n);break;case"color":l.color=n;break;case"rotate":"string"==typeof n?a[e]=Pt(n):"number"==typeof n&&(a[e]=n);break;case"ariaHidden":case"aria-hidden":!0!==n&&"true"!==n&&delete d["aria-hidden"];break;default:void 0===i[e]&&(d[e]=n)}}const u=function(e,t){const n={...je,...e},r={...Ve,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach((e=>{const t=[],n=e.hFlip,r=e.vFlip;let a,s=e.rotate;switch(n?r?s+=2:(t.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),t.push("scale(-1 1)"),o.top=o.left=0):r&&(t.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),t.push("scale(1 -1)"),o.top=o.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:a=o.height/2+o.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:a=o.width/2+o.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}s%2==1&&(o.left!==o.top&&(a=o.left,o.left=o.top,o.top=a),o.width!==o.height&&(a=o.width,o.width=o.height,o.height=a)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const a=r.width,s=r.height,l=o.width,c=o.height;let d,u;null===a?(u=null===s?"1em":"auto"===s?c:s,d=Be(u,l/c)):(d="auto"===a?l:a,u=null===s?Be(d,c/l):"auto"===s?c:s);const p={},f=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(p[e]=t.toString())};return f("width",d),f("height",u),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:p,body:i}}(e,a),p=u.attributes;if(a.inline&&(l.verticalAlign="-0.125em"),"svg"===s){d.style={...l,...c},Object.assign(d,p);let e=0,n=t.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),d.dangerouslySetInnerHTML={__html:Lt(Ue(u.body,n?()=>n+"ID"+e++:"iconifyReact"))},r.createElement("svg",d)}const{body:f,width:h,height:m}=e,g="mask"===s||"bg"!==s&&-1!==f.indexOf("currentColor"),v=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(f,{...p,width:h+"",height:m+""});return d.style={...l,"--svg":zt(v),width:Kt(p.width),height:Kt(p.height),...$t,...g?Bt:qt,...c},r.createElement("span",d)};var Yt;if(ze(!0),Yt=nt,Ke[""]=Yt,typeof document<"u"&&typeof window<"u"){It();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!Ae(e))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const r=t[e];if("object"!=typeof r||!r||void 0===r.resources)continue;Qe(e,r)||console.error(n)}catch{console.error(n)}}}}class Jt extends r.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"==typeof n&&null!==n&&"string"==typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let r;if("string"!=typeof n||null===(r=be(n,!1,!0)))return this._abortLoading(),void this._setData(null);const o=function(e){const t="string"==typeof e?be(e,!0,Pe):e;if(t){const e=Re(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(r);if(o){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==r.prefix&&e.push("iconify--"+r.prefix),""!==r.provider&&e.push("iconify--"+r.provider),this._setData({data:o,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),null!==o&&(this._loading={name:n,abort:Mt([r],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const e=this.props,t=this.state.icon;if(null===t)return e.children?e.children:r.createElement("span",{});let n=e;return t.classes&&(n={...e,className:("string"==typeof e.className?e.className+" ":"")+t.classes.join(" ")}),Gt({...je,...t.data},n,e._inline,e._ref)}}const Xt=r.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!1};return r.createElement(Jt,n)}));r.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!0};return r.createElement(Jt,n)}));const Zt="_icon_1czju_5",Qt=({width:e=20,height:t=20,className:n="",icon:r,onClick:o,color:i,vFlip:a=!1})=>ve.jsx(Xt,{onClick:o,icon:r,width:e,height:t,className:`${Zt} ${n}`,color:i,vFlip:a}),en=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:bell-outline",width:e,height:t,className:n,onClick:r,color:o}),tn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:bell",width:e,height:t,className:n,onClick:r,color:o}),nn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"charm:menu-hamburger",width:e,height:t,className:n,onClick:r,color:o}),rn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:chevron-right",width:e,height:t,className:n,onClick:r,color:o}),on=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:chevron-left",width:e,height:t,className:n,onClick:r,color:o}),an=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:chevron-double-left",width:e,height:t,className:n,onClick:r,color:o}),sn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:chevron-double-right",width:e,height:t,className:n,onClick:r,color:o}),ln=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"fluent:document-bullet-list-24-filled",width:e,height:t,className:n,onClick:r,color:o}),cn=({width:e=20,height:t=20,className:n="",onClick:r,color:o=""})=>ve.jsx(Qt,{icon:"fluent:document-pdf-20-filled",width:e,height:t,className:n,onClick:r,color:o}),dn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:view-dashboard",width:e,height:t,className:n,onClick:r,color:o}),un=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:view-dashboard-outline",width:e,height:t,className:n,onClick:r,color:o}),pn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:outline-people-alt",width:e,height:t,className:n,onClick:r,color:o}),fn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:sharp-people",width:e,height:t,className:n,onClick:r,color:o});function hn(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ve.jsx("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4zM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20m0-8"})})}function mn(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ve.jsx("path",{fill:"currentColor",d:"M4 21q-.825 0-1.412-.587T2 19V5q0-.825.588-1.412T4 3h16q.825 0 1.413.588T22 5v14q0 .825-.587 1.413T20 21zm0-2h16V5H4zm5-2q.425 0 .713-.288T10 16q0-.425-.288-.712T9 15H6q-.425 0-.712.288T5 16q0 .425.288.713T6 17zm5.55-4.825l-.725-.725q-.3-.3-.7-.287t-.7.312q-.275.3-.288.7t.288.7L13.85 14.3q.3.3.7.3t.7-.3l3.55-3.55q.3-.3.3-.7t-.3-.7q-.3-.3-.712-.3t-.713.3zM9 13q.425 0 .713-.288T10 12q0-.425-.288-.712T9 11H6q-.425 0-.712.288T5 12q0 .425.288.713T6 13zm0-4q.425 0 .713-.288T10 8q0-.425-.288-.712T9 7H6q-.425 0-.712.288T5 8q0 .425.288.713T6 9zM4 19V5z"})})}function gn(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ve.jsx("path",{fill:"currentColor",d:"M4 21q-.825 0-1.412-.587T2 19V5q0-.825.588-1.412T4 3h16q.825 0 1.413.588T22 5v14q0 .825-.587 1.413T20 21zm5-4q.425 0 .713-.288T10 16q0-.425-.288-.712T9 15H6q-.425 0-.712.288T5 16q0 .425.288.713T6 17zm5.55-4.825l-.725-.725q-.3-.3-.7-.287t-.7.312q-.275.3-.288.7t.288.7L13.85 14.3q.3.3.7.3t.7-.3l3.55-3.55q.3-.3.3-.7t-.3-.7q-.3-.3-.712-.3t-.713.3zM9 13q.425 0 .713-.288T10 12q0-.425-.288-.712T9 11H6q-.425 0-.712.288T5 12q0 .425.288.713T6 13zm0-4q.425 0 .713-.288T10 8q0-.425-.288-.712T9 7H6q-.425 0-.712.288T5 8q0 .425.288.713T6 9z"})})}const vn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:calendar-blank",width:e,height:t,className:n,onClick:r,color:o}),yn=e=>ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ve.jsx("path",{fill:"currentColor",d:"M6 4V1.5h2V4h8V1.5h2V4h4v18H2V4zM4 6v3h16V6zm16 5H4v9h16z"})}),xn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:calendar-range",width:e,height:t,className:n,onClick:r,color:o}),bn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:baseline-assignment",width:e,height:t,className:n,onClick:r,color:o}),wn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"material-symbols:assignment-outline",width:e,height:t,className:n,onClick:r,color:o}),Cn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:baseline-format-list-numbered",width:e,height:t,className:n,onClick:r,color:o}),kn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:message-processing",width:e,height:t,className:n,onClick:r,color:o}),jn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:message-processing-outline",width:e,height:t,className:n,onClick:r,color:o}),Nn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:report-box",width:e,height:t,className:n,onClick:r,color:o}),_n=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:report-box-outline",width:e,height:t,className:n,onClick:r,color:o}),En=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:settings",width:e,height:t,className:n,onClick:r,color:o}),In=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:settings-outline",width:e,height:t,className:n,onClick:r,color:o}),On=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:baseline-sync",width:e,height:t,className:n,onClick:r,color:o,vFlip:!0}),Sn=({color:e="black",size:t="20",className:n=""})=>ve.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,viewBox:`0 0 ${t} ${t}`,fill:"none",children:[ve.jsx("path",{d:"M14.9875 14.1667C16.1366 14.1667 17.0691 13.2334 17.0691 12.0834C17.0691 10.9334 16.1366 10.0001 14.9875 10.0001C13.8385 10.0001 12.9059 10.9334 12.9059 12.0834C12.9059 13.2334 13.8385 14.1667 14.9875 14.1667ZM14.9875 15.2084C13.597 15.2084 10.8243 15.9084 10.8243 17.2917V17.8167C10.8243 18.1001 11.0575 18.3417 11.3489 18.3417H18.6345C18.9176 18.3417 19.159 18.1084 19.159 17.8167V17.2917C19.159 15.9084 16.3863 15.2084 14.9958 15.2084H14.9875Z",fill:e}),ve.jsx("path",{d:"M4.99584 5.83342C6.14488 5.83342 7.07744 4.90008 7.07744 3.75008C7.07744 2.60008 6.14488 1.66675 4.99584 1.66675C3.8468 1.66675 2.91424 2.60008 2.91424 3.75008C2.91424 4.90008 3.8468 5.83342 4.99584 5.83342ZM4.99584 6.87508C3.60533 6.87508 0.832642 7.57508 0.832642 8.95842V9.48342C0.832642 9.76675 1.06578 10.0084 1.3572 10.0084H8.6428C8.9259 10.0084 9.16736 9.77508 9.16736 9.48342V8.95842C9.16736 7.57508 6.39467 6.87508 5.00417 6.87508H4.99584Z",fill:e}),ve.jsx("path",{d:"M9.15156 16.4036V16.2574H6.61874C6.14757 16.2574 5.75868 15.8773 5.75868 15.4167V12.8729L7.04503 14.101L7.77047 13.3773L5.10802 10.8334L2.49792 13.4431L3.23832 14.1521L4.4798 12.9094H4.49476V15.4167C4.49476 16.5644 5.45204 17.5001 6.62622 17.5001H9.15904V16.4036H9.15156Z",fill:e}),ve.jsx("path",{d:"M9.99915 3.59657V3.74277H13.3646C13.8358 3.74277 14.2247 4.12289 14.2247 4.58341V7.12727L12.9383 5.8992L12.2129 6.62289L14.8753 9.16675L17.4854 6.5571L16.745 5.84803L15.5035 7.09072H15.4886V4.58341C15.4886 3.43575 14.5313 2.50008 13.3571 2.50008H9.99168V3.59657H9.99915Z",fill:e})]}),Tn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:round-person",width:e,height:t,className:n,onClick:r,color:o}),Mn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:round-person-outline",width:e,height:t,className:n,onClick:r,color:o}),Rn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:dots-vertical",width:e,height:t,className:n,onClick:r,color:o}),Dn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:outline-search",width:e,height:t,className:n,onClick:r,color:o}),Pn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"line-md:loading-twotone-loop",width:e,height:t,className:n,onClick:r,color:o}),zn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:baseline-arrow-drop-up",width:e,height:t,className:n,onClick:r,color:o}),An=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:baseline-arrow-drop-down",width:e,height:t,className:n,onClick:r,color:o}),Ln=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"eva:archive-fill",width:e,height:t,className:n,onClick:r,color:o}),Vn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:baseline-download",width:e,height:t,className:n,onClick:r,color:o}),Fn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:checkbox-marked-outline",width:e,height:t,className:n,onClick:r,color:o}),$n=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:chevron-down",width:e,height:t,className:n,onClick:r,color:o}),Bn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:chevron-up",width:e,height:t,className:n,onClick:r,color:o}),qn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:baseline-close",width:e,height:t,className:n,onClick:r,color:o}),Hn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"material-symbols:perm-media",width:e,height:t,className:n,onClick:r,color:o}),Wn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"material-symbols:perm-media-outline",width:e,height:t,className:n,onClick:r,color:o}),Un=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:inbox",width:e,height:t,className:n,onClick:r,color:o}),Kn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:inbox-outline",width:e,height:t,className:n,onClick:r,color:o}),Gn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:sharp-topic",width:e,height:t,className:n,onClick:r,color:o}),Yn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"akar-icons:drag-horizontal",width:e,height:t,className:n,onClick:r,color:o}),Jn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"fa6-regular:file-pdf",width:e,height:t,className:n,onClick:r,color:o}),Xn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"material-symbols:delete-outline",width:e,height:t,className:n,onClick:r,color:o}),Zn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:filter-variant",width:e,height:t,className:n,onClick:r,color:o}),Qn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"material-symbols:lock-outline",width:e,height:t,className:n,onClick:r,color:o}),er=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:baseline-dvr",width:e,height:t,className:n,onClick:r,color:o}),tr=({width:e=20,height:t=20,className:n="",onClick:r,color:o="var(--colors-error-500)"})=>ve.jsx(Qt,{icon:"mdi:error-outline",width:e,height:t,className:n,onClick:r,color:o}),nr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:replay",width:e,height:t,className:n,onClick:r,color:o}),rr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:calendar-blank-outline",width:e,height:t,className:n,onClick:r,color:o}),or=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:outline-link",width:e,height:t,className:n,onClick:r,color:o}),ir=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"material-symbols:fact-check-outline",width:e,height:t,className:n,onClick:r,color:o}),ar=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"material-symbols:unknown-document-outline-rounded",width:e,height:t,className:n,onClick:r,color:o}),sr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:list-status",width:e,height:t,className:n,onClick:r,color:o}),lr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:text-box-check-outline",width:e,height:t,className:n,onClick:r,color:o}),cr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ri:list-settings-line",width:e,height:t,className:n,onClick:r,color:o}),dr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"pajamas:earth",width:e,height:t,className:n,onClick:r,color:o}),ur=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"streamline:interface-setting-menu-1-button-parallel-horizontal-lines-menu-navigation-three-hamburger",width:e,height:t,className:n,onClick:r,color:o}),pr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"mdi:pencil-outline",width:e,height:t,className:n,onClick:r,color:o});function fr(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ve.jsx("path",{fill:"currentColor",d:"M12 5.99L19.53 19H4.47zM12 2L1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"})})}const hr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ve.jsx(Qt,{icon:"ic:outline-calendar-month",width:e,height:t,className:n,onClick:r,color:o});function mr(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ve.jsx("path",{fill:"currentColor",d:"M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m5.86 10.31C16.23 21.22 14.28 22.45 12 23c-2.56-.61-4.7-2.07-6.42-4.37C3.86 16.34 3 13.8 3 11V5l9-4l9 4v6c0 2.39-.64 4.61-1.92 6.67l-2.91-2.91c.52-.79.83-1.76.83-2.76a5 5 0 0 0-5-5a5 5 0 0 0-5 5a5 5 0 0 0 5 5c1 0 1.97-.31 2.76-.83z"})})}const gr=e=>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:"M6 21v-2h12v2z"})}),vr=e=>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:"M6 18v-2h12v2zm6-12.4l6 6l-1.4 1.4L12 8.4L7.4 13L6 11.6z"})});function yr(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:"M18 8H6V6h12zm0 3H6V9h12zm0 3H6v-2h12zm4-10a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14l4 4z"})})}function xr(e){return ve.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:[ve.jsx("path",{fill:"currentColor",d:"M14 12h4v1.5h-4zm0 3h4v1.5h-4z"}),ve.jsx("path",{fill:"currentColor",d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9 0V4h2v5h-2zm9 13H4V9h5c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2h5z"}),ve.jsx("circle",{cx:9,cy:13.5,r:1.5,fill:"currentColor"}),ve.jsx("path",{fill:"currentColor",d:"M11.08 16.18c-.64-.28-1.34-.43-2.08-.43s-1.44.15-2.08.43c-.56.24-.92.78-.92 1.39V18h6v-.43c0-.61-.36-1.15-.92-1.39"})]})}function br(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ve.jsx("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h8.925l-2 2H5v14h14v-6.95l2-2V19q0 .825-.587 1.413T19 21zm4-6v-4.25l9.175-9.175q.3-.3.675-.45t.75-.15q.4 0 .763.15t.662.45L22.425 3q.275.3.425.663T23 4.4q0 .375-.137.738t-.438.662L13.25 15zM21.025 4.4l-1.4-1.4zM11 13h1.4l5.8-5.8l-.7-.7l-.725-.7L11 11.575zm6.5-6.5l-.725-.7zl.7.7z"})})}function wr(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ve.jsx("path",{fill:"currentColor",d:"M18 12.998h-5v5a1 1 0 0 1-2 0v-5H6a1 1 0 0 1 0-2h5v-5a1 1 0 0 1 2 0v5h5a1 1 0 0 1 0 2"})})}function Cr(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:"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 kr(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:"M18.85 21.975q-.2 0-.375-.062t-.325-.213l-5.1-5.1q-.15-.15-.213-.325t-.062-.375t.063-.375t.212-.325l2.125-2.125q.15-.15.325-.212t.375-.063t.375.063t.325.212l5.1 5.1q.15.15.213.325t.062.375t-.062.375t-.213.325L19.55 21.7q-.15.15-.325.213t-.375.062m0-2.375l.725-.725L15.9 15.2l-.725.725zM5.125 22q-.2 0-.387-.075T4.4 21.7l-2.1-2.1q-.15-.15-.225-.338T2 18.876t.075-.375t.225-.325l5.3-5.3h2.125l.85-.85L6.45 7.9H5.025L2 4.875L4.825 2.05L7.85 5.075V6.5l4.125 4.125l2.9-2.9L13.8 6.65l1.4-1.4h-2.825l-.7-.7L15.225 1l.7.7v2.825l1.4-1.4l3.55 3.55q.425.425.65.963t.225 1.137t-.225 1.15t-.65.975L18.75 8.775l-1.4 1.4l-1.05-1.05l-5.175 5.175v2.1l-5.3 5.3q-.15.15-.325.225T5.125 22m0-2.4l4.25-4.25v-.725H8.65l-4.25 4.25zm0 0l-.725-.725l.375.35zm13.725 0l.725-.725z"})})}function jr(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:"M18.85 21.975q-.2 0-.375-.062t-.325-.213l-5.1-5.1q-.15-.15-.213-.325t-.062-.375t.063-.375t.212-.325l2.125-2.125q.15-.15.325-.212t.375-.063t.375.063t.325.212l5.1 5.1q.15.15.213.325t.062.375t-.062.375t-.213.325L19.55 21.7q-.15.15-.325.213t-.375.062M5.125 22q-.2 0-.387-.075T4.4 21.7l-2.1-2.1q-.15-.15-.225-.338T2 18.876t.075-.375t.225-.325l5.3-5.3h2.125l.85-.85L6.45 7.9H5.025L2 4.875L4.825 2.05L7.85 5.075V6.5l4.125 4.125l2.9-2.9L13.8 6.65l1.4-1.4h-2.825l-.7-.7L15.225 1l.7.7v2.825l1.4-1.4l3.55 3.55q.425.425.65.963t.225 1.137t-.225 1.15t-.65.975L18.75 8.775l-1.4 1.4l-1.05-1.05l-5.175 5.175v2.1l-5.3 5.3q-.15.15-.325.225T5.125 22"})})}function Nr(e){return ve.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ve.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 9V4h2V2H6v2h2v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1l1-1v-7H19v-2c-1.66 0-3-1.34-3-3"})})}function _r(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:"M20 6c.58 0 1.05.2 1.42.59c.38.41.58.86.58 1.41v11c0 .55-.2 1-.58 1.41c-.37.39-.84.59-1.42.59H4c-.58 0-1.05-.2-1.42-.59C2.2 20 2 19.55 2 19V8c0-.55.2-1 .58-1.41C2.95 6.2 3.42 6 4 6h4V4c0-.58.2-1.05.58-1.42C8.95 2.2 9.42 2 10 2h4c.58 0 1.05.2 1.42.58c.38.37.58.84.58 1.42v2zM4 8v11h16V8zm10-2V4h-4v2z"})})}const Er=o((({dataTest:e,readOnly:t,onDelete:n,...r},o)=>ve.jsx(m,{...r,ref:o,"data-test":e,deleteIcon:t?void 0:ve.jsx(qn,{height:18,width:18,className:"min-w-[18px]"}),onDelete:t?void 0:n,sx:{border:"1px solid",backgroundColor:"white",borderColor:"var(--colors-delta-300)",color:"var(--colors-delta-800)",...t?{pointerEvents:"none","&:hover":{borderColor:"var(--colors-delta-300)",backgroundColor:"white"}}:{"&:hover":{borderColor:"var(--colors-gama-200)",backgroundColor:"var(--colors-gama-50)"},"&:focus":{outline:"none",borderColor:"var(--colors-gama-400)",backgroundColor:"var(--colors-gama-50)",boxShadow:"0 0 0 1px inset var(--colors-gama-400)"},"&:active":{borderColor:"var(--colors-gama-400)",backgroundColor:"var(--colors-gama-50)",boxShadow:"0 0 0 2px inset var(--colors-gama-400)"},"& .MuiChip-deleteIcon":{border:"1px solid",borderColor:"var(--colors-delta-100)",color:"var(--colors-delta-700)",backgroundColor:"var(--colors-delta-50)",borderRadius:"50%","&:hover":{borderColor:"var(--colors-delta-100)",backgroundColor:"var(--colors-delta-50)",color:"var(--colors-delta-700)"}}},...r.sx}}))),Ir=({dataTest:e,...t})=>ve.jsx(g,{...t,"data-test":e,sx:{...t.sx,"&.MuiCheckbox-root":{color:"var(--colors-delta-500) !important"},"&.MuiCheckbox-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.MuiCheckbox-indeterminate":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.Mui-disabled":{color:"var(--colors-delta-200) !important"},"&.MuiCheckbox-root .PrivateSwitchBase-input":{height:"100% !important",width:"100% !important"}}}),Or=({dataTest:e,...t})=>ve.jsx(v,{...t,"data-test":e,sx:{"&":{color:"var(--colors-delta-500)"},"& input":{height:"100% !important",width:"100% !important"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),Sr=o((({type:e="checkbox",checked:t,size:n="small",...r},o)=>{const i="checkbox"===e,a=i?Ir:Or,s=!r.readOnly&&!i&&t,l={borderColor:"var(--colors-gama-300)",backgroundColor:"var(--colors-gama-25)",boxShadow:"0 0 0 1px inset var(--colors-gama-300)"};return ve.jsx(Er,{ref:o,avatar:ve.jsx(a,{dataTest:r.dataTest,disableRipple:!0,checked:t,size:n,sx:{pointerEvents:"none"}}),clickable:!0,tabIndex:0,...r,sx:{...s&&{outline:"none",borderColor:"var(--colors-gama-400)",boxShadow:"0 0 0 1px inset var(--colors-gama-400)",backgroundColor:"var(--colors-gama-50)","&:hover":l},...t&&{"& .MuiChip-avatar":{"& .MuiSvgIcon-root":{color:"var(--colors-gama-500)"}}},...r.readOnly&&{"& .MuiChip-avatar":{"& .MuiSvgIcon-root":{color:"var(--colors-delta-500)"},"& .MuiCheckbox-root, & .MuiRadio-root":{color:"var(--colors-delta-500)"},"& .Mui-checked":{color:"var(--colors-delta-500)"}}},"&:focus:hover":l,...r.sx}})}));function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tr.apply(this,arguments)}function Mr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rr.apply(null,arguments)}function Dr(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Pr(e,t){return(Pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}const zr=!1;var Ar="production"!==process.env.NODE_ENV?X.oneOfType([X.number,X.shape({enter:X.number,exit:X.number,appear:X.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&X.oneOfType([X.string,X.shape({enter:X.string,exit:X.string,active:X.string}),X.shape({enter:X.string,enterDone:X.string,enterActive:X.string,exit:X.string,exitDone:X.string,exitActive:X.string})]);const Lr=r.createContext(null);var Vr="unmounted",Fr="exited",$r="entering",Br="entered",qr="exiting",Hr=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Fr,r.appearStatus=$r):o=Br:o=t.unmountOnExit||t.mountOnEnter?Vr:Fr,r.state={status:o},r.nextCallback=null,r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pr(e,t)}(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Vr?{status:Fr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==$r&&n!==Br&&(t=$r):(n===$r||n===Br)&&(t=qr)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===$r){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ee.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fr&&this.setState({status:Vr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ee.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||zr?this.safeSetState({status:Br},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:$r},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Br},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ee.findDOMNode(this);t&&!zr?(this.props.onExit(r),this.safeSetState({status:qr},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Fr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Fr},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ee.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Vr)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var o=Dr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(Lr.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function Wr(){}Hr.contextType=Lr,Hr.propTypes="production"!==process.env.NODE_ENV?{nodeRef:X.shape({current:typeof Element>"u"?X.any:function(e,t,n,r,o,i){var a=e[t];return X.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:X.oneOfType([X.func.isRequired,X.element.isRequired]).isRequired,in:X.bool,mountOnEnter:X.bool,unmountOnExit:X.bool,appear:X.bool,enter:X.bool,exit:X.bool,timeout:function(e){var t=Ar;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:X.func,onEnter:X.func,onEntering:X.func,onEntered:X.func,onExit:X.func,onExiting:X.func,onExited:X.func}:{},Hr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wr,onEntering:Wr,onEntered:Wr,onExit:Wr,onExiting:Wr,onExited:Wr},Hr.UNMOUNTED=Vr,Hr.EXITED=Fr,Hr.ENTERING=$r,Hr.ENTERED=Br,Hr.EXITING=qr;const Ur=Hr;function Kr(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function Gr(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Yr(e){if(!Gr(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Yr(e[n])})),t}function Jr(e,t,n={clone:!0}){const r=n.clone?Rr({},e):e;return Gr(e)&&Gr(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Gr(t[o])&&o in e&&Gr(e[o])?r[o]=Jr(e[o],t[o],n):n.clone?r[o]=Gr(t[o])?Yr(t[o]):t[o]:r[o]=t[o])})),r}function Xr(e,t,n,r,o){const i=e[t],a=o||t;if(null==i||typeof window>"u")return null;let s;const l=i.type;return"function"==typeof l&&!function(e){const{prototype:t={}}=e;return!!t.isReactComponent}(l)&&(s="Did you accidentally use a plain function component for an element instead?"),void 0!==s?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Zr=Kr(X.element,Xr);Zr.isRequired=Kr(X.element.isRequired,Xr);const Qr=Zr;function eo(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function to(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":eo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const no=e=>e,ro=(()=>{let e=no;return{configure(t){e=t},generate:t=>e(t),reset(){e=no}}})(),oo=ro,io={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function ao(e,t,n="Mui"){const r=io[t];return r?`${n}-${r}`:`${oo.generate(e)}-${t}`}const so=["values","unit","step"],lo=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Rr({},e,{[t.key]:t.val})),{})};const co={borderRadius:4},uo="production"!==process.env.NODE_ENV?X.oneOfType([X.number,X.string,X.object,X.array]):{};function po(e,t){return t?Jr(e,t,{clone:!1}):e}const fo={xs:0,sm:600,md:900,lg:1200,xl:1536},ho={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fo[e]}px)`};function mo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||ho;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||ho;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||fo).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function go(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function vo(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:go(e,n)||r,t&&(o=t(o,r,e)),o}function yo(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=go(e.theme,r)||{};return mo(e,i,(e=>{let r=vo(a,o,e);return e===r&&"string"==typeof e&&(r=vo(a,o,`${t}${"default"===e?"":to(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:uo}:{},i.filterProps=[t],i}const xo={m:"margin",p:"padding"},bo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Co=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!wo[e])return[e];e=wo[e]}const[t,n]=e.split(""),r=xo[t],o=bo[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),ko=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],No=[...ko,...jo];function _o(e,t,n,r){var o;const i=null!=(o=go(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Eo(e){return _o(e,"spacing",8,"spacing")}function Io(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Oo(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Io(t,n),e)),{})}(Co(n),r);return mo(e,e[n],o)}function So(e,t){const n=Eo(e.theme);return Object.keys(e).map((r=>Oo(e,t,r,n))).reduce(po,{})}function To(e){return So(e,ko)}function Mo(e){return So(e,jo)}function Ro(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?po(n,t[r](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Do(e){return"number"!=typeof e?e:`${e}px solid`}To.propTypes="production"!==process.env.NODE_ENV?ko.reduce(((e,t)=>(e[t]=uo,e)),{}):{},To.filterProps=ko,Mo.propTypes="production"!==process.env.NODE_ENV?jo.reduce(((e,t)=>(e[t]=uo,e)),{}):{},Mo.filterProps=jo,"production"!==process.env.NODE_ENV&&No.reduce(((e,t)=>(e[t]=uo,e)),{});const Po=yo({prop:"border",themeKey:"borders",transform:Do}),zo=yo({prop:"borderTop",themeKey:"borders",transform:Do}),Ao=yo({prop:"borderRight",themeKey:"borders",transform:Do}),Lo=yo({prop:"borderBottom",themeKey:"borders",transform:Do}),Vo=yo({prop:"borderLeft",themeKey:"borders",transform:Do}),Fo=yo({prop:"borderColor",themeKey:"palette"}),$o=yo({prop:"borderTopColor",themeKey:"palette"}),Bo=yo({prop:"borderRightColor",themeKey:"palette"}),qo=yo({prop:"borderBottomColor",themeKey:"palette"}),Ho=yo({prop:"borderLeftColor",themeKey:"palette"}),Wo=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=_o(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:Io(t,e)});return mo(e,e.borderRadius,n)}return null};Wo.propTypes="production"!==process.env.NODE_ENV?{borderRadius:uo}:{},Wo.filterProps=["borderRadius"],Ro(Po,zo,Ao,Lo,Vo,Fo,$o,Bo,qo,Ho,Wo);const Uo=e=>{if(void 0!==e.gap&&null!==e.gap){const t=_o(e.theme,"spacing",8,"gap"),n=e=>({gap:Io(t,e)});return mo(e,e.gap,n)}return null};Uo.propTypes="production"!==process.env.NODE_ENV?{gap:uo}:{},Uo.filterProps=["gap"];const Ko=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=_o(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:Io(t,e)});return mo(e,e.columnGap,n)}return null};Ko.propTypes="production"!==process.env.NODE_ENV?{columnGap:uo}:{},Ko.filterProps=["columnGap"];const Go=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=_o(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:Io(t,e)});return mo(e,e.rowGap,n)}return null};Go.propTypes="production"!==process.env.NODE_ENV?{rowGap:uo}:{},Go.filterProps=["rowGap"];function Yo(e,t){return"grey"===t?t:e}Ro(Uo,Ko,Go,yo({prop:"gridColumn"}),yo({prop:"gridRow"}),yo({prop:"gridAutoFlow"}),yo({prop:"gridAutoColumns"}),yo({prop:"gridAutoRows"}),yo({prop:"gridTemplateColumns"}),yo({prop:"gridTemplateRows"}),yo({prop:"gridTemplateAreas"}),yo({prop:"gridArea"}));function Jo(e){return e<=1&&0!==e?100*e+"%":e}Ro(yo({prop:"color",themeKey:"palette",transform:Yo}),yo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yo}),yo({prop:"backgroundColor",themeKey:"palette",transform:Yo}));const Xo=yo({prop:"width",transform:Jo}),Zo=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||fo[t]||Jo(t)}};return mo(e,e.maxWidth,t)}return null};Zo.filterProps=["maxWidth"];const Qo=yo({prop:"minWidth",transform:Jo}),ei=yo({prop:"height",transform:Jo}),ti=yo({prop:"maxHeight",transform:Jo}),ni=yo({prop:"minHeight",transform:Jo});yo({prop:"size",cssProperty:"width",transform:Jo}),yo({prop:"size",cssProperty:"height",transform:Jo});Ro(Xo,Zo,Qo,ei,ti,ni,yo({prop:"boxSizing"}));const ri={border:{themeKey:"borders",transform:Do},borderTop:{themeKey:"borders",transform:Do},borderRight:{themeKey:"borders",transform:Do},borderBottom:{themeKey:"borders",transform:Do},borderLeft:{themeKey:"borders",transform:Do},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wo},color:{themeKey:"palette",transform:Yo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yo},backgroundColor:{themeKey:"palette",transform:Yo},p:{style:Mo},pt:{style:Mo},pr:{style:Mo},pb:{style:Mo},pl:{style:Mo},px:{style:Mo},py:{style:Mo},padding:{style:Mo},paddingTop:{style:Mo},paddingRight:{style:Mo},paddingBottom:{style:Mo},paddingLeft:{style:Mo},paddingX:{style:Mo},paddingY:{style:Mo},paddingInline:{style:Mo},paddingInlineStart:{style:Mo},paddingInlineEnd:{style:Mo},paddingBlock:{style:Mo},paddingBlockStart:{style:Mo},paddingBlockEnd:{style:Mo},m:{style:To},mt:{style:To},mr:{style:To},mb:{style:To},ml:{style:To},mx:{style:To},my:{style:To},margin:{style:To},marginTop:{style:To},marginRight:{style:To},marginBottom:{style:To},marginLeft:{style:To},marginX:{style:To},marginY:{style:To},marginInline:{style:To},marginInlineStart:{style:To},marginInlineEnd:{style:To},marginBlock:{style:To},marginBlockStart:{style:To},marginBlockEnd:{style:To},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Uo},rowGap:{style:Go},columnGap:{style:Ko},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jo},maxWidth:{style:Zo},minWidth:{transform:Jo},height:{transform:Jo},maxHeight:{transform:Jo},minHeight:{transform:Jo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},oi=ri;const ii=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const d=go(n,s)||{};return c?c(o):mo(o,t,(t=>{let n=vo(d,l,t);return t===n&&"string"==typeof t&&(n=vo(d,l,`${e}${"default"===t?"":to(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:oi;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=function(e,t){return"function"==typeof e?e(t):e}(r[n],i);if(null!=o)if("object"==typeof o)if(a[n])l=po(l,e(n,o,i,a));else{const e=mo({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?l=po(l,e):l[n]=t({sx:o,theme:i})}else l=po(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();ii.filterProps=["sx"];const ai=ii,si=["breakpoints","palette","spacing","shape"];function li(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Dr(e,si),s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Dr(e,so),i=lo(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Rr({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),l=function(e=8){if(e.mui)return e;const t=Eo({spacing:e}),n=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" "));return n.mui=!0,n}(o);let c=Jr({breakpoints:s,direction:"ltr",components:{},palette:Rr({mode:"light"},r),spacing:l,shape:Rr({},co,i)},a);return c=t.reduce(((e,t)=>Jr(e,t)),c),c.unstable_sxConfig=Rr({},oi,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ai({sx:e,theme:this})},c}function ci(e=null){const t=n.useContext(Z);return!t||function(e){return 0===Object.keys(e).length}(t)?e:t}const di=li();function ui(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ui(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function pi(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ui(e))&&(r&&(r+=" "),r+=t);return r}function fi(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function hi(e){if(e.type)return e;if("#"===e.charAt(0))return hi(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:eo(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:eo(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function mi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function gi(e){let t="hsl"===(e=hi(e)).type||"hsla"===e.type?hi(function(e){e=hi(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),mi({type:s,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vi(e,t){const n=gi(e),r=gi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function yi(e,t){return Tr({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const xi={black:"#000",white:"#fff"},bi={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},wi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ci={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ki={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ji={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ni={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},_i={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ei=["mode","contrastThreshold","tonalOffset"],Ii={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:xi.white,default:xi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Oi={text:{primary:xi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:xi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Si(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=hi(e),t=fi(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return mi(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=hi(e),t=fi(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return mi(e)}(e.main,i)))}function Ti(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Mr(e,Ei),i=e.primary||function(e="light"){return"dark"===e?{main:ji[200],light:ji[50],dark:ji[400]}:{main:ji[700],light:ji[400],dark:ji[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:wi[200],light:wi[50],dark:wi[400]}:{main:wi[500],light:wi[300],dark:wi[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ci[500],light:Ci[300],dark:Ci[700]}:{main:Ci[700],light:Ci[400],dark:Ci[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Ni[400],light:Ni[300],dark:Ni[700]}:{main:Ni[700],light:Ni[500],dark:Ni[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:_i[400],light:_i[300],dark:_i[700]}:{main:_i[800],light:_i[500],dark:_i[900]}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:ki[400],light:ki[300],dark:ki[700]}:{main:"#ed6c02",light:ki[500],dark:ki[900]}}(t);function u(e){const t=vi(e,Oi.text.primary)>=n?Oi.text.primary:Ii.text.primary;if("production"!==process.env.NODE_ENV){const n=vi(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Tr({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:eo(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:eo(12,t?` (${t})`:"",JSON.stringify(e.main)));return Si(e,"light",o,r),Si(e,"dark",i,r),e.contrastText||(e.contrastText=u(e.main)),e},f={dark:Oi,light:Ii};return"production"!==process.env.NODE_ENV&&(f[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Jr(Tr({common:Tr({},xi),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:bi,contrastThreshold:n,getContrastText:u,augmentColor:p,tonalOffset:r},f[t]),o)}const Mi=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Ri(e){return Math.round(1e5*e)/1e5}const Di={textTransform:"uppercase"},Pi='"Roboto", "Helvetica", "Arial", sans-serif';function zi(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Pi,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,p=Mr(n,Mi);"production"!==process.env.NODE_ENV&&("number"!=typeof o&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof c&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=o/14,h=u||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>Tr({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Pi?{letterSpacing:`${Ri(o/t)}em`}:{},i,d),g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Di),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Di),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jr(Tr({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Ai(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Li=["none",Ai(0,2,1,-1,0,1,1,0,0,1,3,0),Ai(0,3,1,-2,0,2,2,0,0,1,5,0),Ai(0,3,3,-2,0,3,4,0,0,1,8,0),Ai(0,2,4,-1,0,4,5,0,0,1,10,0),Ai(0,3,5,-1,0,5,8,0,0,1,14,0),Ai(0,3,5,-1,0,6,10,0,0,1,18,0),Ai(0,4,5,-2,0,7,10,1,0,2,16,1),Ai(0,5,5,-3,0,8,10,1,0,3,14,2),Ai(0,5,6,-3,0,9,12,1,0,3,16,2),Ai(0,6,6,-3,0,10,14,1,0,4,18,3),Ai(0,6,7,-4,0,11,15,1,0,4,20,3),Ai(0,7,8,-4,0,12,17,2,0,5,22,4),Ai(0,7,8,-4,0,13,19,2,0,5,24,4),Ai(0,7,9,-4,0,14,21,2,0,5,26,4),Ai(0,8,9,-5,0,15,22,2,0,6,28,5),Ai(0,8,10,-5,0,16,24,2,0,6,30,5),Ai(0,8,11,-5,0,17,26,2,0,6,32,5),Ai(0,9,11,-5,0,18,28,2,0,7,34,6),Ai(0,9,12,-6,0,19,29,2,0,7,36,6),Ai(0,10,13,-6,0,20,31,3,0,8,38,7),Ai(0,10,13,-6,0,21,33,3,0,8,40,7),Ai(0,10,14,-6,0,22,35,3,0,8,42,7),Ai(0,11,14,-7,0,23,36,3,0,9,44,8),Ai(0,11,15,-7,0,24,38,3,0,9,46,8)],Vi=["duration","easing","delay"],Fi={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},$i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bi(e){return`${Math.round(e)}ms`}function qi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Hi(e){const t=Tr({},Fi,e.easing),n=Tr({},$i,e.duration);return Tr({getAutoHeightDuration:qi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r,s=Mr(r,Vi);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!isNaN(parseFloat(e));!t(e)&&!Array.isArray(e)&&console.error('MUI: Argument "props" must be a string or Array.'),!n(o)&&!t(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),!n(a)&&!t(a)&&console.error('MUI: Argument "delay" must be a number or a string.'),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Bi(o)} ${i} ${"string"==typeof a?a:Bi(a)}`)).join(",")}},e,{easing:t,duration:n})}const Wi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ui=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Ki=function(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Mr(e,Ui);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":eo(18));const s=Ti(r),l=li(e);let c=Jr(l,{mixins:yi(l.breakpoints,n),palette:s,shadows:Li.slice(),typography:zi(s,i),transitions:Hi(o),zIndex:Tr({},Wi)});if(c=Jr(c,a),c=t.reduce(((e,t)=>Jr(e,t)),c),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let r;for(r in t){const o=t[r];if(-1!==e.indexOf(r)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=ao("",r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[r]={}}}};Object.keys(c.components).forEach((e=>{const n=c.components[e].styleOverrides;n&&0===e.indexOf("Mui")&&t(n,e)}))}return c.unstable_sxConfig=Tr({},oi,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ai({sx:e,theme:this})},c}(),Gi=Ki;function Yi(){const e=function(e=di){return ci(e)}(Gi);return"production"!==process.env.NODE_ENV&&n.useDebugValue(e),e.$$material||e}function Ji(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const Xi=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Zi={entering:{opacity:1},entered:{opacity:1}},Qi=n.forwardRef((function(e,t){const r=Yi(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:d,onEntered:u,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:v=o,TransitionComponent:y=Ur}=e,x=Mr(e,Xi),b=n.useRef(null),w=function(...e){return n.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}(b,s.ref,t),C=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},k=C(p),j=C(((e,t)=>{(e=>{e.scrollTop})(e);const n=Ji({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),d&&d(e,t)})),N=C(u),_=C(m),E=C((e=>{const t=Ji({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),I=C(h);return ve.jsx(y,Tr({appear:a,in:c,nodeRef:b,onEnter:j,onEntered:N,onEntering:k,onExit:E,onExited:I,onExiting:_,addEndListener:e=>{i&&i(b.current,e)},timeout:v},x,{children:(e,t)=>n.cloneElement(s,Tr({style:Tr({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},Zi[e],g,s.props.style),ref:w},t))}))}));"production"!==process.env.NODE_ENV&&(Qi.propTypes={addEndListener:X.func,appear:X.bool,children:Qr.isRequired,easing:X.oneOfType([X.shape({enter:X.string,exit:X.string}),X.string]),in:X.bool,onEnter:X.func,onEntered:X.func,onEntering:X.func,onExit:X.func,onExited:X.func,onExiting:X.func,style:X.object,timeout:X.oneOfType([X.number,X.shape({appear:X.number,enter:X.number,exit:X.number})])});const ea=Qi,ta=e=>{const{componentsProps:t,...n}=e,r=null==t?void 0:t.tooltip;return ve.jsx(y,{TransitionComponent:ea,TransitionProps:{timeout:300},enterDelay:500,placement:"top",componentsProps:{...t,tooltip:{...r??{},style:{...(null==r?void 0:r.style)||{}},sx:{borderRadius:"3px","& .MuiTooltip-arrow":{color:"#363E4A"},color:"white",boxShadow:"0px 1px 4px 0px rgba(0, 0, 0, 0.25)",display:"flex",padding:"4px 8px",alignItems:"center",fontSize:"12px",lineHeight:"16px",letterSpacing:"0.24px",bgcolor:"#363E4A",wordBreak:"break-word",...null==r?void 0:r.sx}}},...n})},na=e=>ve.jsx(x,{...e}),ra="_styled-label-md_jbn3o_1",oa="_styled-label-base_jbn3o_10",ia="_styled-label-lg_jbn3o_19",aa="_styled-label-xl_jbn3o_27",sa=({title:e,onClick:t,className:n,dataTest:r,size:o="base"})=>{const i=(({size:e})=>{switch(e){case"md":return ra;case"lg":return ia;case"xl":return aa;default:return oa}})({size:o});return ve.jsx("div",{className:pi(i,n),onClick:t,"data-test":r,children:e})},la="_asma-ui-core-button_h1men_1",ca={contained:"_contained_h1men_27",outlined:"_outlined_h1men_139",text:"_text_h1men_251",textGray:"_textGray_h1men_363",textWhite:"_textWhite_h1men_419",large:"_large_h1men_78",small:"_small_h1men_73",medium:"_medium_h1men_68",error:"_error_h1men_83",common:"_common_h1men_27"},da=({variant:e="contained",className:t="",size:n="medium",children:r,refLink:o,startIcon:i,endIcon:a,dataTest:s,error:l,...c})=>{const d="large"===n||"medium"===n,u=l?"error":"common";return ve.jsxs("button",{...c,className:pi(la,ca[e],ca[u],ca[n],t),ref:o,"data-test":s,children:[i,r&&ve.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",justifyContent:"center",gap:d?"8px":"4px",paddingLeft:d?"8px":"4px",paddingRight:d?"8px":"4px"},children:r}),a]})},ua="_styled-dialog-root_1st3i_1",pa="_styled-top-header_1st3i_6",fa="_styled-dialog-close_1st3i_13",ha="_styled-dialog-info_1st3i_20",ma="_styled-dialog-label_1st3i_27",ga="_styled-dialog-title_1st3i_37";function va(){const e=function(){const[e,t]=a(window.innerWidth),n=()=>{t(window.innerWidth)};return s((()=>(n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n))),[]),e}();return(e=>e?e<=768:window.innerWidth<768)(e)}const ya=({onCloseText:e,children:t,dataTest:n,showCloseIcon:r=!0,dialogLabel:o,dialogTitle:i,dialogHeaderNode:a,...s})=>{const l=va();return ve.jsxs(b,{"data-test":n,style:{zIndex:999,...s.style},fullScreen:!!l||s.fullScreen,...s,children:[ve.jsx("div",{className:ua,children:o||i||r?ve.jsxs("div",{className:pa,children:[ve.jsxs("div",{className:ha,children:[o&&ve.jsx("div",{className:ma,children:o}),i&&ve.jsx("div",{className:ga,children:i})]}),r&&ve.jsxs("div",{className:fa,children:[a,ve.jsx(da,{dataTest:`close-button-${n}`,variant:"textGray",size:"small",endIcon:ve.jsx(qn,{width:20,height:20}),onClick:e=>{s.onClose&&s.onClose(e,"escapeKeyDown")},style:{color:"var(--colors-grey-800)",paddingRight:"6px",paddingLeft:"6px"},children:e})]})]}):null}),t]})},xa="_styled-dialog-actions-root_1yp8r_1",ba="_styled-dialog-actions_1yp8r_1",wa="_action-button-wrapper_1yp8r_17";function Ca(...e){return te(pi(e))}const ka=e=>ve.jsx(w,{...e,"data-test":"styled-dialog-actions",classes:{...e.classes,root:xa},children:ve.jsx("div",{className:Ca(ba,e.className),children:r.Children.map(e.children,(e=>ve.jsx("div",{className:wa,children:e})))})}),ja="_styled-dialog-content_d2vki_1",Na=({children:e,classes:t,className:n,...r})=>ve.jsx(C,{...r,"data-test":"styled-dialog-content",classes:{...t,root:ja},className:n,children:e}),_a="_styled-dialog-title-root_mcspk_1",Ea=({children:e,...t})=>e?ve.jsx(k,{...t,"data-test":"styled-dialog-title",classes:{...t.classes,root:_a},children:e}):null;function Ia(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 9H2V7h5zm0 3H2v2h5zm13.59 7l-3.83-3.83c-.8.52-1.74.83-2.76.83c-2.76 0-5-2.24-5-5s2.24-5 5-5s5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3s1.35 3 3 3s3-1.35 3-3M2 19h10v-2H2z"})})}const Oa=({emptyText:e,isEmpty:t=!0,className:n=""})=>t?ve.jsxs("div",{"data-test":"empty-page-container",className:`flex animate-opacity-in min-h-[106px] items-center w-full h-full justify-center gap-2 duration-300 text-gray-600 text-sm ${n}`,children:[ve.jsx(Ia,{"data-test":"empty-page-icon",width:24,height:24,className:"text-gray-600 cursor-default"}),ve.jsx("span",{className:"font-normal",children:e})]}):null;function Sa(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.83 8H21V6H8.83zm5 5H18v-2h-4.17zM14 16.83V18h-4v-2h3.17l-3-3H6v-2h2.17l-3-3H3V6h.17L1.39 4.22L2.8 2.81l18.38 18.38l-1.41 1.41z"})})}const Ta={en:{emptyText:"No data",filterTitle:"Your information is currently filtered.",filteredDescription:"Reset filters to see all results",defaultFilteredDescription:"Reset filters to see default results",resetButtonText:"Reset filters"},no:{emptyText:"Ingen data",filterTitle:"Din informasjon er filtrert.",filteredDescription:"Nullstill filtre for å se alle resultater",defaultFilteredDescription:"Nullstill filtre for å se standard resultater",resetButtonText:"Nullstill filtre"}},Ma=({dataTest:e,emptyText:t,locale:n="en",isFiltered:r=!1,filteredByDefault:o=!1,filterTitle:i,filteredDescription:a,resetButtonText:s,onResetFilters:l,actionIcon:c=ve.jsx(Sa,{width:24,height:24,color:"currentColor"}),className:d,emptyPageClassName:u,filterContentClassName:p,resetButtonClassName:f})=>{const h=Ta[n]??Ta.en,m=t??h.emptyText,g=i??h.filterTitle,v=o?h.defaultFilteredDescription:a??h.filteredDescription,y=s??h.resetButtonText;return ve.jsxs("div",{"data-test":e,className:Ca("flex size-full flex-col items-center justify-center gap-4 py-4 text-center",d),children:[ve.jsx("div",{children:ve.jsx(Oa,{isEmpty:!0,emptyText:m,className:Ca("py-6",u)})}),r&&ve.jsxs("div",{className:Ca("flex flex-col items-center gap-2",p),children:[ve.jsx("div",{className:"font-semibold text-delta-800",children:g}),ve.jsx("div",{className:"text-delta-600",children:v}),l&&ve.jsx(da,{size:"small",variant:"text",dataTest:`${e}-reset`,onClick:l,startIcon:c,className:Ca("inline-flex items-center text-gama-700 hover:text-gama-800",f),children:ve.jsx("span",{children:y})})]})]})},Ra={small:16,medium:24,large:32},Da=({isLoading:e,className:t="",size:n="medium"})=>{if(!e)return null;const r=Ra[n];return ve.jsx("div",{className:pi("flex items-center justify-center h-[50px] w-full text-gama-500 animate-opacity-appear-3",t),children:ve.jsx(Pn,{width:r,height:r})})};function Pa({controlled:e,default:t,name:r,state:o="value"}){const{current:i}=n.useRef(void 0!==e),[a,s]=n.useState(t),l=i?e:a;if("production"!==process.env.NODE_ENV){n.useEffect((()=>{i!==(void 0!==e)&&console.error([`Base UI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[o,r,e]);const{current:a}=n.useRef(t);n.useEffect((()=>{!i&&JSON.stringify(a)!==JSON.stringify(t)&&console.error([`Base UI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"))}),[JSON.stringify(t)])}return[l,n.useCallback((e=>{i||s(e)}),[])]}const za={};function Aa(e,t){const r=n.useRef(za);return r.current===za&&(r.current=e(t)),r}const La=n[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],Va=La&&La!==n.useLayoutEffect?La:e=>e();function Fa(e){const t=Aa($a).current;return t.next=e,Va(t.effect),t.trampoline}function $a(){const e={next:void 0,callback:Ba,trampoline:(...t)=>{var n;return null==(n=e.callback)?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function Ba(){if("production"!==process.env.NODE_ENV)throw new Error("Base UI: Cannot call an event handler while rendering.")}function qa(e,t,n,r){const o=Aa(Ha).current;return function(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}(o,e,t,n,r)&&Wa(o,[e,t,n,r]),o.callback}function Ha(){return{callback:null,cleanup:null,refs:[]}}function Wa(e,t){e.refs=t,t.every((e=>null==e))?e.callback=null:e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){const r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const o=t[e];if(null!=o)switch(typeof o){case"function":{const t=o(n);"function"==typeof t&&(r[e]=t);break}case"object":o.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const n=t[e];if(null!=n)switch(typeof n){case"function":{const t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}const Ua=typeof document<"u"?n.useLayoutEffect:()=>{},Ka={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1};let Ga=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}({}),Ya=function(e){return e.disabled="data-disabled",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 Ja={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Xa={valid:e=>null===e?null:e?{[Ya.valid]:""}:{[Ya.invalid]:""}};function Za(e){return n.useMemo((()=>({checked:t=>e.indeterminate?{}:t?{[Ga.checked]:""}:{[Ga.unchecked]:""},...Xa})),[e.indeterminate])}const Qa=parseInt(n.version,10);function es(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}const ts={};function ns(e,t,n,r,o){let i={...as(e,ts)};return t&&(i=rs(i,t)),n&&(i=rs(i,n)),r&&(i=rs(i,r)),o&&(i=rs(i,o)),i}function rs(e,t){return is(t)?t(e):function(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":e[n]=es(e.style,r);break;case"className":e[n]=cs(e.className,r);break;default:os(n,r)?e[n]=ss(e[n],r):e[n]=r}}return e}(e,t)}function os(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||typeof t>"u")}function is(e){return"function"==typeof e}function as(e,t){return is(e)?e(t):e??ts}function ss(e,t){return t?e?n=>{if(function(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}(n)){const r=n;ls(r);const o=t(r);return r.baseUIHandlerPrevented||null==e||e(r),o}const r=t(n);return null==e||e(n),r}:t:e}function ls(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function cs(e,t){return t?e?t+" "+e:t:e}function ds(){}const us=Object.freeze([]),ps=Object.freeze({});function fs(e,t,r={}){const o=t.render,i=function(e,t={}){const{className:n,render:r}=e,{state:o=ps,ref:i,props:a,stateAttributesMapping:s,enabled:l=!0}=t,c=l?function(e,t){return"function"==typeof e?e(t):e}(n,o):void 0,d=l?function(e,t){const n={};for(const r in e){const o=e[r];if(null!=t&&t.hasOwnProperty(r)){const e=t[r](o);null!=e&&Object.assign(n,e)}else!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}(o,s):ps,u=l?es(d,Array.isArray(a)?function(e){if(0===e.length)return ts;if(1===e.length)return as(e[0],ts);let t={...as(e[0],ts)};for(let n=1;n<e.length;n+=1)t=rs(t,e[n]);return t}(a):a)??ps:ps;return typeof document<"u"&&(l?Array.isArray(i)?u.ref=function(e){const t=Aa(Ha).current;return function(e,t){return e.refs.length!==t.length||e.refs.some(((e,n)=>e!==t[n]))}(t,e)&&Wa(t,e),t.callback}([u.ref,hs(r),...i]):u.ref=qa(u.ref,hs(r),i):qa(null,null)),l?(void 0!==c&&(u.className=cs(u.className,c)),u):ps}(t,r);if(!1===r.enabled)return null;return function(e,t,r,o){if(t){if("function"==typeof t)return t(r,o);const e=ns(r,t.props);return e.ref=r.ref,n.cloneElement(t,e)}if(e&&"string"==typeof e)return function(e,t){return"button"===e?ve.jsx("button",{type:"button",...t}):"img"===e?ve.jsx("img",{alt:"",...t}):n.createElement(e,t)}(e,r);throw new Error("Base UI: Render element or function are not defined.")}(e,o,i,r.state??ps)}function hs(e){return e&&"function"!=typeof e?function(e){return Qa>=e}(19)?e.props.ref:e.ref:null}const ms={...n};let gs=0;const vs=ms.useId;function ys(e,t){if(void 0!==vs){const n=vs();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){const[r,o]=n.useState(e),i=e||r;return n.useEffect((()=>{null==r&&(gs+=1,o(`${t}-${gs}`))}),[r,t]),i}(e,t)}function xs(e){return ys(e,"base-ui")}function bs(){return typeof window<"u"}function ws(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Cs(e){return!!bs()&&(e instanceof HTMLElement||e instanceof ws(e).HTMLElement)}let ks;function js(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");ks.has(t)||(ks.add(t),console.error(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(ks=new Set);const Ns=n.createContext(void 0);function _s(e=!1){const t=n.useContext(Ns);if(void 0===t&&!e)throw new Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return t}function Es(e={}){const{disabled:t=!1,focusableWhenDisabled:r,tabIndex:o=0,native:i=!0}=e,a=n.useRef(null),s=void 0!==_s(!0),l=Fa((()=>{const e=a.current;return!("A"!==(null==e?void 0:e.tagName)||null==e||!e.href)})),{props:c}=function(e){const{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:i=0,isNativeButton:a}=e,s=o&&!1!==t,l=o&&!1===t;return{props:n.useMemo((()=>{const e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return o||(e.tabIndex=i,!a&&r&&(e.tabIndex=t?i:-1)),(a&&(t||s)||!a&&r)&&(e["aria-disabled"]=r),a&&(!t||l)&&(e.disabled=r),e}),[o,r,t,s,l,a,i])}}({focusableWhenDisabled:r,disabled:t,composite:s,tabIndex:o,isNativeButton:i});"production"!==process.env.NODE_ENV&&n.useEffect((()=>{if(!a.current)return;const e="BUTTON"===a.current.tagName;i?e||js("A component that acts as a button was not rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is a real <button>, or set the `nativeButton` prop on the component to `false`."):e&&js("A component that acts as a button was rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is not a real <button>, or set the `nativeButton` prop on the component to `true`.")}),[i]);const d=n.useCallback((()=>{const e=a.current;(function(e){return Cs(e)&&"BUTTON"===e.tagName})(e)&&s&&t&&void 0===c.disabled&&e.disabled&&(e.disabled=!1)}),[t,c.disabled,s]);Ua(d,[d]);return{getButtonProps:n.useCallback(((e={})=>{const{onClick:n,onMouseDown:r,onKeyUp:o,onKeyDown:a,onPointerDown:s,...d}=e;return ns({type:i?"button":void 0,onClick(e){t?e.preventDefault():null==n||n(e)},onMouseDown(e){t||null==r||r(e)},onKeyDown(e){if(t||(ls(e),null==a||a(e)),e.baseUIHandlerPrevented)return;const r=e.target===e.currentTarget&&!i&&!l()&&!t,o="Enter"===e.key,s=" "===e.key;r&&((s||o)&&e.preventDefault(),o&&(null==n||n(e)))},onKeyUp(e){t||(ls(e),null==o||o(e)),!e.baseUIHandlerPrevented&&e.target===e.currentTarget&&!i&&!t&&" "===e.key&&(null==n||n(e))},onPointerDown(e){t?e.preventDefault():null==s||s(e)}},i?void 0:{role:"button"},c,d)}),[t,c,i,l]),buttonRef:Fa((e=>{a.current=e,d()}))}}"production"!==process.env.NODE_ENV&&(Ns.displayName="CompositeRootContext");const Is=n.createContext({invalid:void 0,controlId:void 0,setControlId:ds,labelId:void 0,setLabelId:ds,messageIds:[],setMessageIds:ds,name:void 0,validityData:{state:Ja,errors:[],error:"",value:"",initialValue:null},setValidityData:ds,disabled:void 0,touched:!1,setTouched:ds,dirty:!1,setDirty:ds,filled:!1,setFilled:ds,focused:!1,setFocused:ds,validate:()=>null,validationMode:"onBlur",validationDebounceTime:0,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1}});function Os(e=!0){const t=n.useContext(Is);if(t.setControlId===ds&&!e)throw new Error("Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");return t}"production"!==process.env.NODE_ENV&&(Is.displayName="FieldRootContext");const Ss=[];function Ts(e){n.useEffect(e,Ss)}class Ms{constructor(){t(this,"currentId",0),t(this,"clear",(()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)})),t(this,"disposeEffect",(()=>this.clear))}static create(){return new Ms}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}isStarted(){return 0!==this.currentId}}const Rs=n.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:ds});function Ds(){return n.useContext(Rs)}function Ps(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}"production"!==process.env.NODE_ENV&&(Rs.displayName="FormContext");const zs=Object.keys(Ja);function As(){const{setValidityData:e,validate:t,messageIds:r,validityData:o,validationMode:i,validationDebounceTime:a,invalid:s,markedDirtyRef:l,controlId:c,state:d,name:u}=Os(),{formRef:p,clearErrors:f}=Ds(),h=function(){const e=Aa(Ms.create).current;return Ts(e.disposeEffect),e}(),m=n.useRef(null),g=Fa((async(n,r=!1)=>{const i=m.current;if(!i)return;if(r){if(!1!==d.valid)return;const t=i.validity;if(!t.valueMissing){const t={value:n,state:{...Ja,valid:!0},error:"",errors:[],initialValue:o.initialValue};if(i.setCustomValidity(""),c){const e=p.current.fields.get(c);e&&p.current.fields.set(c,{...e,...Ps(t,!1)})}return void e(t)}const r=zs.reduce(((e,n)=>(e[n]=t[n],e)),{});if(!r.valid&&!function(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(const n of zs)"valid"!==n&&("valueMissing"===n&&(t=e[n]),e[n]&&(t=!1));return t}(r))return}h.clear();let a=null,u=[];const f=function(e){const t=zs.reduce(((t,n)=>(t[n]=e.validity[n],t)),{});let n=!1;for(const e of zs)if("valid"!==e)if("valueMissing"===e&&t[e])n=!0;else if(t[e])return t;return n&&!l.current&&(t.valid=!0,t.valueMissing=!1),t}(i);let g;if(i.validationMessage)g=i.validationMessage,u=[i.validationMessage];else{const e=Array.from(p.current.fields.values()).reduce(((e,t)=>{var n,r;return t.name&&t.getValueRef&&(e[t.name]=null==(r=(n=t.getValueRef).current)?void 0:r.call(n)),e}),{}),r=t(n,e);a="object"==typeof r&&null!==r&&"then"in r?await r:r,null!==a&&(f.valid=!1,f.customError=!0,Array.isArray(a)?(u=a,i.setCustomValidity(a.join("\n"))):a&&(u=[a],i.setCustomValidity(a)))}const v={value:n,state:f,error:g??(Array.isArray(a)?a[0]:a??""),errors:u,initialValue:o.initialValue};if(c){const e=p.current.fields.get(c);e&&p.current.fields.set(c,{...e,...Ps(v,s)})}e(v)})),v=n.useCallback(((e={})=>ns({...r.length&&{"aria-describedby":r.join(" ")},...!1===d.valid&&{"aria-invalid":!0}},e)),[r,d.valid]),y=n.useCallback(((e={})=>ns({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(f(u),"onChange"!==i)return void g(e.currentTarget.value,!0);if(s)return;const t=e.currentTarget;""!==t.value?(h.clear(),a?h.start(a,(()=>{g(t.value)})):g(t.value)):g(t.value)}},v(e))),[v,f,u,h,g,s,i,a]);return n.useMemo((()=>({getValidationProps:v,getInputValidationProps:y,inputRef:m,commitValidation:g})),[v,y,g])}function Ls(e){const t=Aa(Vs,e).current;return t.next=e,Ua(t.effect),t}function Vs(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Fs(e){const{formRef:t}=Ds(),{invalid:n,markedDirtyRef:r,validityData:o,setValidityData:i}=Os(),{enabled:a=!0,value:s,id:l,name:c,controlRef:d,commitValidation:u}=e,p=Ls(e.getValue);Ua((()=>{var e;if(!a)return;let t=s;void 0===t&&(t=null==(e=p.current)?void 0:e.call(p)),null===o.initialValue&&t!==o.initialValue&&i((e=>({...e,initialValue:t})))}),[a,i,s,o.initialValue,p]),Ua((()=>{a&&l&&t.current.fields.set(l,{controlRef:d,validityData:Ps(o,n),validate(){var e;let t=s;void 0===t&&(t=null==(e=p.current)?void 0:e.call(p)),r.current=!0,Q.flushSync((()=>u(t)))},getValueRef:p,name:c})}),[u,d,a,t,p,l,n,r,c,o,s]),Ua((()=>{const e=t.current.fields;return()=>{l&&e.delete(l)}}),[t,l])}const $s=n.createContext(void 0);"production"!==process.env.NODE_ENV&&($s.displayName="CheckboxGroupContext");const Bs=n.createContext(void 0);function qs(e,t,n){let r=!1,o=!1;const i=n??ps;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){o=!0},get isCanceled(){return r},get isPropagationAllowed(){return o},...i}}"production"!==process.env.NODE_ENV&&(Bs.displayName="CheckboxRootContext");const Hs={},Ws=n.forwardRef((function(e,t){const{checked:r,className:o,defaultChecked:i=!1,disabled:a=!1,id:s,indeterminate:l=!1,inputRef:c,name:d,onCheckedChange:u,parent:p=!1,readOnly:f=!1,render:h,required:m=!1,value:g,nativeButton:v=!0,...y}=e,{clearErrors:x}=Ds(),{disabled:b,labelId:w,name:C,setControlId:k,setDirty:j,setFilled:N,setFocused:_,setTouched:E,state:I,validationMode:O,validityData:S}=Os(),T=function(e=!0){const t=n.useContext($s);if(void 0===t&&!e)throw new Error("Base UI: CheckboxGroupContext is missing. CheckboxGroup parts must be placed within <CheckboxGroup>.");return t}(),M=null==T?void 0:T.parent,R=M&&T.allValues,D=b||(null==T?void 0:T.disabled)||a,P=C??d,z=g??P;let A={};R&&(p?A=T.parent.getParentProps():z&&(A=T.parent.getChildProps(z)));const L=Fa(u),{checked:V=r,indeterminate:F=l,onCheckedChange:$,...B}=A,q=null==T?void 0:T.value,H=null==T?void 0:T.setValue,W=null==T?void 0:T.defaultValue,U=n.useRef(null),{getButtonProps:K,buttonRef:G}=Es({disabled:D,native:v}),Y=As(),J=(null==T?void 0:T.fieldControlValidation)??Y,[X,Z]=Pa({controlled:z&&q&&!p?q.includes(z):V,default:z&&W&&!p?W.includes(z):i,name:"Checkbox",state:"checked"}),Q=xs(s);Ua((()=>{const e=null==U?void 0:U.current;if(e)return T?k(s??null):null==e.closest("label")&&k(Q),()=>{k(void 0)}}),[T,Q,s,k]),Fs({enabled:!T,id:Q,commitValidation:J.commitValidation,value:X,controlRef:U,name:P,getValue:()=>X});const ee=n.useRef(null),te=qa(c,ee,J.inputRef);Ua((()=>{ee.current&&(ee.current.indeterminate=F,X&&N(!0))}),[X,F,N]);const ne=Fa((()=>_(!0))),re=Fa((()=>{const e=ee.current;e&&(E(!0),_(!1),"onBlur"===O&&J.commitValidation(T?q:e.checked))})),oe=Fa((e=>{var t;e.defaultPrevented||f||(e.preventDefault(),null==(t=ee.current)||t.click())})),ie=ns({checked:X,disabled:D,name:p?void 0:P,id:`${Q}-input`,required:m,ref:te,style:Ka,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked,n=qs("none",e.nativeEvent);if(null==$||$(t,n),L(t,n),!n.isCanceled&&(x(P),j(t!==S.initialValue),Z(t),T||(N(t),"onChange"===O?J.commitValidation(t):J.commitValidation(t,!0)),z&&q&&H&&!p)){const e=t?[...q,z]:q.filter((e=>e!==z));H(e,n),N(e.length>0),"onChange"===O?J.commitValidation(e):J.commitValidation(e,!0)}},onFocus(){var e;null==(e=U.current)||e.focus()}},void 0!==g?{value:(T?X&&g:g)||""}:Hs,T?J.getValidationProps:J.getInputValidationProps),ae=R?!!V:X,se=R&&F||l;n.useEffect((()=>{M&&z&&M.disabledStatesRef.current.set(z,D)}),[M,D,z]);const le=n.useMemo((()=>({...I,checked:ae,disabled:D,readOnly:f,required:m,indeterminate:se})),[I,ae,D,f,m,se]),ce=Za(le),de=fs("button",e,{state:le,ref:[G,U,t,null==T?void 0:T.registerControlRef],props:[{id:Q,role:"checkbox",disabled:D,"aria-checked":F?"mixed":X,"aria-readonly":f||void 0,"aria-required":m||void 0,"aria-labelledby":w,"data-parent":p?"":void 0,onFocus:ne,onBlur:re,onClick:oe},J.getValidationProps,y,B,K],stateAttributesMapping:ce});return ve.jsxs(Bs.Provider,{value:le,children:[de,!X&&!T&&e.name&&!p&&ve.jsx("input",{type:"hidden",name:e.name,value:"off"}),ve.jsx("input",{...ie})]})}));"production"!==process.env.NODE_ENV&&(Ws.displayName="CheckboxRoot");const Us=null;let Ks=globalThis.requestAnimationFrame;const Gs=new class{constructor(){t(this,"callbacks",[]),t(this,"callbacksCount",0),t(this,"nextId",1),t(this,"startId",1),t(this,"isScheduled",!1),t(this,"tick",(e=>{var t;this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<n.length;r+=1)null==(t=n[r])||t.call(n,e)}))}request(e){const t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;const n="test"===process.env.NODE_ENV&&Ks!==requestAnimationFrame&&(Ks=requestAnimationFrame,!0);return(!this.isScheduled||n)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){const t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class Ys{constructor(){t(this,"currentId",Us),t(this,"cancel",(()=>{this.currentId!==Us&&(Gs.cancel(this.currentId),this.currentId=Us)})),t(this,"disposeEffect",(()=>this.cancel))}static create(){return new Ys}static request(e){return Gs.request(e)}static cancel(e){return Gs.cancel(e)}request(e){this.cancel(),this.currentId=Gs.request((()=>{this.currentId=Us,e()}))}}function Js(e,t=!1){const n=function(){const e=Aa(Ys.create).current;return Ts(e.disposeEffect),e}();return Fa(((r,o=null)=>{if(n.cancel(),null==e)return;let i;if("current"in e){if(null==e.current)return;i=e.current}else i=e;"function"!=typeof i.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED?r():n.request((()=>{function e(){i&&Promise.allSettled(i.getAnimations().map((e=>e.finished))).then((()=>{null!=o&&o.aborted||Q.flushSync(r)}))}t?n.request(e):e()}))}))}function Xs(e){const{enabled:t=!0,open:r,ref:o,onComplete:i}=e,a=Ls(r),s=Fa(i),l=Js(o,r);n.useEffect((()=>{t&&l((()=>{r===a.current&&s()}))}),[t,r,s,l,a])}function Zs(e,t=!1,r=!1){const[o,i]=n.useState(e&&t?"idle":void 0),[a,s]=n.useState(e);return e&&!a&&(s(!0),i("starting")),!e&&a&&"ending"!==o&&!r&&i("ending"),!e&&!a&&"ending"===o&&i(void 0),Ua((()=>{if(!e&&a&&"ending"!==o&&r){const e=Ys.request((()=>{i("ending")}));return()=>{Ys.cancel(e)}}}),[e,a,o,r]),Ua((()=>{if(!e||t)return;const n=Ys.request((()=>{Q.flushSync((()=>{i(void 0)}))}));return()=>{Ys.cancel(n)}}),[t,e]),Ua((()=>{if(!e||!t)return;e&&a&&"idle"!==o&&i("starting");const n=Ys.request((()=>{i("idle")}));return()=>{Ys.cancel(n)}}),[t,e,a,i,o]),n.useMemo((()=>({mounted:a,setMounted:s,transitionStatus:o})),[a,o])}let Qs=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const el={[Qs.startingStyle]:""},tl={[Qs.endingStyle]:""},nl={transitionStatus:e=>"starting"===e?el:"ending"===e?tl:null},rl=n.forwardRef((function(e,t){const{render:r,className:o,keepMounted:i=!1,...a}=e,s=function(){const e=n.useContext(Bs);if(void 0===e)throw new Error("Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.");return e}(),l=s.checked||s.indeterminate,{transitionStatus:c,setMounted:d}=Zs(l),u=n.useRef(null),p=n.useMemo((()=>({...s,transitionStatus:c})),[s,c]);Xs({open:l,ref:u,onComplete(){l||d(!1)}});const f=Za(s),h=n.useMemo((()=>({...f,...nl,...Xa})),[f]),m=i||l,g=fs("span",e,{enabled:m,ref:[t,u],state:p,stateAttributesMapping:h,props:a});return m?g:null}));"production"!==process.env.NODE_ENV&&(rl.displayName="CheckboxIndicator");const ol={CheckboxWrapper:"_CheckboxWrapper_mitfx_1","size-small":"_size-small_mitfx_13",Checkbox:"_Checkbox_mitfx_1",Indeterminate:"_Indeterminate_mitfx_26",ReadOnly:"_ReadOnly_mitfx_53",Indicator:"_Indicator_mitfx_62",HideWrapper:"_HideWrapper_mitfx_66",CheckboxHover:"_CheckboxHover_mitfx_73",CheckboxRippleContainer:"_CheckboxRippleContainer_mitfx_73",CheckboxRipple:"_CheckboxRipple_mitfx_73",ripple:"_ripple_mitfx_1"},il=e=>ve.jsxs("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"none",...e,children:[ve.jsx("title",{children:"Indeterminate icon"}),ve.jsx("path",{d:"M6 12H18",stroke:"currentColor",strokeWidth:e.strokeWidth??3,strokeLinecap:"round"})]}),al=e=>ve.jsxs("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...e,children:[ve.jsx("title",{children:"Check icon"}),ve.jsx("path",{d:"M4 12l5 5L20 6"})]}),sl=({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(ol.CheckboxWrapper,!f&&ol[`size-${t}`],f&&ol.HideWrapper,i&&ol.Indeterminate,o&&ol.ReadOnly,h&&ol.CheckboxHover,d),g=Ca("styled-checkbox-inner",ol.Checkbox,ol[`size-${t}`],i&&ol.Indeterminate),v=i?il:al,y=r.useRef(null),x=r.useCallback((e=>{var t;if(e.stopPropagation(),!h)return;const n=document.createElement("span");n.className=ol.CheckboxRipple||"",n.addEventListener("animationend",(()=>n.remove()),{once:!0}),null==(t=y.current)||t.appendChild(n)}),[h]);s((()=>{const e=y.current;return()=>{null==e||e.replaceChildren()}}),[]);const b=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(Ws,{className:m,"data-test":e,checked:a,disabled:n,readOnly:o,indeterminate:i,onPointerDown:x,onCheckedChange:b,...p,children:[!f&&h&&ve.jsx("span",{ref:y,className:ol.CheckboxRippleContainer}),ve.jsx("span",{className:g,children:ve.jsx(rl,{className:ol.Indicator,children:ve.jsx(v,{strokeWidth:"small"===t?3:2})})})]})};var ll,cl,dl={exports:{}},ul={},pl={};
|
|
20
|
-
/**
|
|
21
|
-
* @license React
|
|
22
|
-
* react-jsx-runtime.production.min.js
|
|
23
|
-
*
|
|
24
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
25
|
-
*
|
|
26
|
-
* This source code is licensed under the MIT license found in the
|
|
27
|
-
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* @license React
|
|
31
|
-
* react-jsx-runtime.development.js
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
-
*
|
|
35
|
-
* This source code is licensed under the MIT license found in the
|
|
36
|
-
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/
|
|
38
|
-
"production"===process.env.NODE_ENV?dl.exports=function(){if(ll)return ul;ll=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 ul.Fragment=n,ul.jsx=s,ul.jsxs=s,ul}():dl.exports=(cl||(cl=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 x;function b(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 b(e)+".Consumer";case s:return b(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}x=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 D(e,t,n){if(void 0===M)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);M=r&&r[1]||""}return"\n"+M+e}var P,z=!1,A="function"==typeof WeakMap?WeakMap:Map;function L(e,t){if(!e||z)return"";var n,r=P.get(e);if(void 0!==r)return r;z=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=R.current,R.current=null,function(){if(0===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&&P.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?D(p):"";return"function"==typeof e&&P.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 D(e);switch(e){case d:return D("Suspense");case u:return D("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,n){return L(e,!1)}(e.render);case p:return 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""}P=new A;var F=Object.prototype.hasOwnProperty,$={},B=v.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=V(e.type,e._source,t?t.type:null);B.setExtraStackFrame(n)}else B.setExtraStackFrame(null)}var H=Array.isArray;function W(e){return H(e)}function U(e){return""+e}function K(e){if(function(e){try{return U(e),!1}catch{return!0}}(e))return 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")),U(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(W(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 b,C=!("string"!=typeof(b=e)&&"function"!=typeof b&&b!==o&&b!==a&&b!==i&&b!==d&&b!==u&&b!==h&&("object"!=typeof b||null===b||b.$$typeof!==f&&b.$$typeof!==p&&b.$$typeof!==s&&b.$$typeof!==l&&b.$$typeof!==c&&b.$$typeof!==x&&void 0===b.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":W(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(W(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)&&(q(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),q(null)),s instanceof Error&&!(s.message in $)&&($[s.message]=!0,q(o),y("Failed %s type: %s",n,s.message),q(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.")}}(_),_}pl.Fragment=o,pl.jsx=function(e,t,n){return ce(e,t,n,!1)},pl.jsxs=function(e,t,n){return ce(e,t,n,!0)}}()),pl);var fl=dl.exports;function hl(e){return fl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:fl.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,children:[fl.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:fl.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),fl.jsxs("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3C16.9706 3 21 7.02944 21 12",children:[fl.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),fl.jsx("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})]})})}function ml(e){return fl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:fl.jsx("path",{fill:"currentColor",d:"M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41z"})})}function gl(e){return fl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:fl.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 vl(e){return fl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:fl.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 yl(e){return fl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:fl.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 xl=({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(gl,{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(qn,{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",marginLeft:0},"& .MuiFormHelperText-root.Mui-error":{color:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-300) !important"},"& label.Mui-focused":{color:"var(--colors-gama-500) !important"},"& label.Mui-focused.MuiInputLabel-shrink":{color:"var(--colors-gama-500) !important"},"& label":{color:"var(--colors-delta-500) !important"},"& label.MuiInputLabel-shrink":{color:"var(--colors-delta-800) !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}}),bl=({value:e,onClear:t,...n})=>{const[r,o]=a(!1),i=r||e;return ve.jsxs("div",{className:"relative w-full",children:[ve.jsx(xl,{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(qn,{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(Dn,{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)"})]})},wl={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},Cl=({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:x,dataTest:b,counterLimit:w,...C})=>{const k=c(null),j=x||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":b,children:[ve.jsx("label",{htmlFor:e,className:`${wl.label} ${wl[T]} ${r}`,children:n}),ve.jsx("span",{className:`${wl.description} ${wl[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:`${wl.textarea} ${wl[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]})]})},kl=({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(qn,{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(ed,{className:"flex items-center gap-1 m-0 pt-1 text-sm text-error-500",children:[ve.jsx(gl,{width:20,height:20}),r??"Required"]})]}),jl=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})]}),Nl="_styledSelectAutocompleteWrapper_lfbvb_1",_l="_select-custom-icon_lfbvb_5";function El({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`},...o.ListboxProps}:o.ListboxProps,p=e=>"object"==typeof e&&null!==e&&"label"in e?e.label:String(e);return ve.jsx("div",{className:Ca(Nl,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(_l)}),"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 Il=({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(ed,{className:pi("flex items-center gap-1 m-0 pt-1 text-sm",t?"text-error-500":"text-delta-600"),children:[t&&ve.jsx(gl,{width:20,height:20}),c]})]})},Ol=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Ol.displayName="SwitchRootContext");let Sl=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 Tl={...Xa,checked:e=>e?{[Sl.checked]:""}:{[Sl.unchecked]:""}},Ml=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}=Ds(),{state:v,labelId:y,setControlId:x,setTouched:b,setDirty:w,validityData:C,setFilled:k,setFocused:j,validationMode:N,disabled:_,name:E}=Os(),I=_||f,O=E??l,{getValidationProps:S,getInputValidationProps:T,inputRef:M,commitValidation:R}=As(),D=Fa(d),P=n.useRef(null),z=qa(P,s,M),A=n.useRef(null),L=xs(a);Ua((()=>{const e=A.current;if(e)return null!=e.closest("label")?x(a??null):x(L),()=>{x(void 0)}}),[L,a,x]);const[V,F]=Pa({controlled:r,default:!!i,name:"Switch",state:"checked"});Fs({id:L,commitValidation:R,value:V,controlRef:A,name:O,getValue:()=>V}),Ua((()=>{P.current&&k(P.current.checked)}),[P,k]);const{getButtonProps:$,buttonRef:B}=Es({disabled:I,native:c}),q=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=P.current;e&&(b(!0),j(!1),"onBlur"===N&&R(e.checked))},onClick(e){var t;e.defaultPrevented||u||null==(t=null==P?void 0:P.current)||t.click()}})),[L,I,V,u,y,j,b,R,N,P]),H=n.useMemo((()=>ns({checked:V,disabled:I,id:O?void 0:`${L}-input`,name:O,required:p,style:Ka,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:z,onChange(e){if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked,n=qs("none",e.nativeEvent);null==D||D(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,D,p,F,w,k,N,C.initialValue]),W=n.useMemo((()=>({...v,checked:V,disabled:I,readOnly:u,required:p})),[v,V,I,u,p]),U=fs("button",e,{state:W,ref:[t,A,B],props:[q,S,m,$],stateAttributesMapping:Tl});return ve.jsxs(Ol.Provider,{value:W,children:[U,!V&&l&&ve.jsx("input",{type:"hidden",name:l,value:"off"}),ve.jsx("input",{...H})]})}));"production"!==process.env.NODE_ENV&&(Ml.displayName="SwitchRoot");const Rl=n.forwardRef((function(e,t){const{render:r,className:o,...i}=e,{state:a}=Os(),s=function(){const e=n.useContext(Ol);if(void 0===e)throw new Error("Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.");return e}();return fs("span",e,{state:{...a,...s},ref:t,stateAttributesMapping:Tl,props:i})}));"production"!==process.env.NODE_ENV&&(Rl.displayName="SwitchThumb");const Dl={switch:"_switch_1myey_1",iconContent:"_iconContent_1myey_30",thumb:"_thumb_1myey_50",icon:"_icon_1myey_30"},Pl=({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"})}),zl=({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}),Al=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(Dl.iconContent,m?Dl.checked:Dl.unchecked);return ve.jsx(Ml,{...d,...g,ref:u,className:Dl.switch,onCheckedChange:e=>{h||f(e),null==n||n({target:{checked:e,name:l,value:s}},e)},disabled:r,readOnly:o,required:i,id:l,name:l,"data-testid":c,children:ve.jsx(Rl,{className:Dl.thumb,children:ve.jsx("span",{className:Dl.icon,children:m?ve.jsx(zl,{className:v}):ve.jsx(Pl,{className:v})})})})})),Ll="data-composite-item-active",Vl=n.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});"production"!==process.env.NODE_ENV&&(Vl.displayName="CompositeListContext");let Fl=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function $l(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(Vl),f=n.useRef(-1),[h,m]=n.useState(a??(i===Fl.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 Ua((()=>{if(null!=a)return;const e=g.current;return e?(s(e,r),()=>{l(e)}):void 0}),[a,s,l,r]),Ua((()=>{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 Bl(e){const{render:t,className:r,state:o=ps,props:i=us,refs:a=us,metadata:s,stateAttributesMapping:l,tag:c="div",...d}=e,{compositeProps:u,compositeRef:p}=function(e={}){const{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:o}=_s(),{ref:i,index:a}=$l(e),s=r===a,l=n.useRef(null),c=qa(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 fs(c,e,{state:o,ref:[...a,p],props:[u,...i,d],stateAttributesMapping:l})}let ql=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 Hl={checked:e=>e?{[ql.checked]:""}:{[ql.unchecked]:""},...nl,...Xa},Wl=n.createContext({disabled:void 0,readOnly:void 0,required:void 0,name:void 0,checkedValue:"",setCheckedValue:ds,onValueChange:ds,touched:!1,setTouched:ds,registerControlRef:ds});"production"!==process.env.NODE_ENV&&(Wl.displayName="RadioGroupContext");const Ul=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Ul.displayName="RadioRootContext");const Kl=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:x,registerControlRef:b}=n.useContext(Wl),{state:w,disabled:C}=Os(),k=C||p||i,j=f||a,N=h||s,{setDirty:_,validityData:E,setTouched:I,setFilled:O}=Os(),S=m===l,T=n.useRef(null),M=qa(c,T);Ua((()=>{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,[Ll]: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:D,buttonRef:P}=Es({disabled:k,native:d}),z=xs(),A=n.useMemo((()=>({type:"radio",ref:M,id:z,tabIndex:-1,style:Ka,"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=qs("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!==ds,$=[t,b,P],B=[R,(null==x?void 0:x.getValidationProps)??ps,u,D],q=fs("button",e,{enabled:!F,state:L,ref:$,props:B,stateAttributesMapping:Hl});return ve.jsxs(Ul.Provider,{value:V,children:[F?ve.jsx(Bl,{tag:"button",render:r,className:o,state:L,refs:$,props:B,stateAttributesMapping:Hl}):q,ve.jsx("input",{...A})]})}));"production"!==process.env.NODE_ENV&&(Kl.displayName="RadioRoot");const Gl=n.forwardRef((function(e,t){const{render:r,className:o,keepMounted:i=!1,...a}=e,s=function(){const e=n.useContext(Ul);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}=Zs(l),u=n.useMemo((()=>({...s,transitionStatus:c})),[s,c]),p=n.useRef(null),f=i||l,h=fs("span",e,{enabled:f,ref:[t,p],state:u,props:a,stateAttributesMapping:Hl});return Xs({open:l,ref:p,onComplete(){l||d(!1)}}),f?h:null}));"production"!==process.env.NODE_ENV&&(Gl.displayName="RadioIndicator");const Yl="_RadioWrapper_9uzf3_1",Jl="_size-small_9uzf3_14",Xl="_RadioRippleContainer_9uzf3_26",Zl="_RadioRipple_9uzf3_26",Ql="_RadioHover_9uzf3_60",ec="_Radio_9uzf3_1",tc="_Indicator_9uzf3_119",nc="_Error_9uzf3_140",rc=o((({value:e,dataTest:t,className:n,size:r="medium",error:o,disabled:i,...a},s)=>{const l=Ca(Yl,Ql,"small"===r&&Jl,n,o&&nc),u=Ca(ec,"small"===r&&Jl),p=c(null),f=d((e=>{if(e.stopPropagation(),!p.current)return;const t=document.createElement("span");t.className=Zl||"",t.addEventListener("animationend",(()=>t.remove()),{once:!0}),p.current.appendChild(t)}),[]);return ve.jsxs(Kl,{...a,ref:s,value:e,"data-test":t,className:l,disabled:i,onPointerDown:f,children:[ve.jsx("span",{className:Xl,ref:p}),ve.jsx("span",{className:u,children:ve.jsx(Gl,{className:tc})})]})})),oc="ArrowLeft",ic="ArrowRight",ac="ArrowUp",sc="ArrowDown";function lc(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!(!bs()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof ws(e).ShadowRoot)}(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function cc(e){e.preventDefault(),e.stopPropagation()}const dc=Math.floor;function uc(e,t,n){return Math.floor(e/t)!==n}function pc(e,t){return t<0||t>=e.current.length}function fc(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&&gc(e,i,r));return i}function hc(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 mc(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function gc(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 vc="ArrowUp",yc="ArrowDown",xc="ArrowLeft",bc="ArrowRight",wc="Home",Cc="End",kc=new Set([xc,bc]),jc=new Set([xc,bc,wc,Cc]),Nc=new Set([vc,yc]),_c=new Set([vc,yc,wc,Cc]),Ec=new Set([...kc,...Nc]),Ic=new Set([...Ec,wc,Cc]),Oc="Shift",Sc=new Set([Oc,"Control","Alt","Meta"]);function Tc(e){return!!(function(e){return Cs(e)&&"INPUT"===e.tagName}(e)&&null!=e.selectionStart||Cs(e)&&"TEXTAREA"===e.tagName)}function Mc(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=Rc(e,t,"left"),i=Dc(e),a=Dc(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=Rc(e,t,"top"),r=Dc(e),o=Dc(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 Rc(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 Dc(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 Pc(e){const{children:t,elementsRef:r,labelsRef:o,onMapChange:i}=e,a=n.useRef(0),s=Aa(Ac).current,l=Aa(zc).current,[c,d]=n.useState(ps),u=n.useRef(c),p=Fa(((e,t)=>{l.set(e,t??null),u.current={},d(u.current)})),f=Fa((e=>{l.delete(e),u.current={},d(u.current)})),h=n.useMemo((()=>{const e=new Map;return Array.from(l.keys()).sort(Lc).forEach(((t,n)=>{const r=l.get(t)??{};e.set(t,{...r,index:n})})),e}),[l,c]);Ua((()=>{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]),Ua((()=>{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=Fa((e=>(s.add(e),()=>{s.delete(e)})));Ua((()=>{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(Vl.Provider,{value:g,children:t})}function zc(){return new Map}function Ac(){return new Set}function Lc(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 Vc(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}const Fc=[];function $c(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=Fc}=e,[m,g]=n.useState(0),v=r>1,y=n.useRef(null),x=qa(y,d),b=n.useRef([]),w=n.useRef(!1),C=l??m,k=Fa(((e,t=!1)=>{if((c??g)(e),t){const t=b.current[e];Mc(y.current,t,s,a)}})),j=Fa((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(Ll)))??null,r=n?t.indexOf(n):-1;-1!==r&&k(r),Mc(y.current,n,s,a)})),N=n.useMemo((()=>({"aria-orientation":"both"===a?void 0:a,ref:x,onFocus(e){!y.current||!Tc(e.target)||e.target.setSelectionRange(0,e.target.value.length??0)},onKeyDown(e){const n=u?Ic:Ec;if(!n.has(e.key)||function(e,t){for(const n of Sc.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,h)||!y.current)return;const l="rtl"===s,c=l?xc:bc,d={horizontal:c,vertical:yc,both:c}[a],m=l?bc:xc,g={horizontal:m,vertical:vc,both:m}[a];if(Tc(e.target)&&!Vc(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 x=C;const w=function(e,t){return fc(e,{disabledIndices:t})}(b,f),j=function(e,t){return fc(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}(b,f);if(v){const n=t||Array.from({length:b.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&&!gc(b,e,f))),d=s.reduce(((e,t,n)=>null==t||gc(b,t,f)?e:n),-1);x=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(!gc(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===ac){const n=g("up");if(void 0!==n)d&&cc(t),u=n;else{if(d&&cc(t),-1===c)u=l;else if(u=fc(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}pc(e,u)&&(u=c)}}if(t.key===sc){const n=g("down");void 0!==n?(d&&cc(t),u=n):(d&&cc(t),-1===c?u=s:(u=fc(e,{startingIndex:c,amount:i,disabledIndices:a}),r&&c+i>l&&(u=fc(e,{startingIndex:c%i-i,amount:i,disabledIndices:a}))),pc(e,u)&&(u=c))}if("both"===n){const n=dc(c/i);t.key===(o?oc:ic)&&(d&&cc(t),c%i!=i-1?(u=fc(e,{startingIndex:c,disabledIndices:a}),r&&uc(u,i,n)&&(u=fc(e,{startingIndex:c-c%i-1,disabledIndices:a}))):r&&(u=fc(e,{startingIndex:c-c%i-1,disabledIndices:a})),uc(u,i,n)&&(u=c)),t.key===(o?ic:oc)&&(d&&cc(t),c%i!=0?(u=fc(e,{startingIndex:c,decrement:!0,disabledIndices:a}),r&&uc(u,i,n)&&(u=fc(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:a}))):r&&(u=fc(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:a})),uc(u,i,n)&&(u=c));const s=dc(l/i)===n;pc(e,u)&&(u=r&&s?t.key===(o?ic:oc)?l:fc(e,{startingIndex:c-c%i-1,disabledIndices:a}):c)}return u}({current:s.map((e=>e?b.current[e]:null))},{event:e,orientation:a,loop:o,cols:r,disabledIndices:mc([...f||b.current.map(((e,t)=>gc(b,t)?t:void 0)),void 0],s),minIndex:c,maxIndex:d,prevIndex:hc(C>j?w:C,n,s,r,e.key===yc?"bl":e.key===bc?"tr":"tl"),rtl:l})]}const N={horizontal:[c],vertical:[yc],both:[c,yc]}[a],_={horizontal:[m],vertical:[vc],both:[m,vc]}[a],E=v?n:{horizontal:u?jc:kc,vertical:u?_c:Nc,both:n}[a];u&&(e.key===wc?x=w:e.key===Cc&&(x=j)),x===C&&(N.includes(e.key)||_.includes(e.key))&&(x=o&&x===j&&N.includes(e.key)?w:o&&x===w&&_.includes(e.key)?j:fc(b,{startingIndex:x,decrement:_.includes(e.key),disabledIndices:f})),x!==C&&!pc(b,x)&&(p&&e.stopPropagation(),E.has(e.key)&&e.preventDefault(),k(x,!0),queueMicrotask((()=>{var e;null==(e=b.current[x])||e.focus()})))}})),[r,i,s,f,b,u,C,v,t,o,x,h,k,a,p]);return n.useMemo((()=>({props:N,highlightedIndex:C,onHighlightedIndexChange:k,elementsRef:b,disabledIndices:f,onMapChange:j})),[N,C,k,b,f,j])}const Bc=n.createContext(void 0);function qc(e=!0){const t=n.useContext(Bc);if(void 0===t&&!e)throw new Error("Base UI: DirectionContext is missing.");return(null==t?void 0:t.direction)??"ltr"}function Hc(e){const{render:t,className:r,refs:o=us,props:i=us,state:a=ps,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:x,modifierKeys:b,highlightItemOnHover:w=!1,tag:C="div",...k}=e,j=qc(),{props:N,highlightedIndex:_,onHighlightedIndexChange:E,elementsRef:I,onMapChange:O}=$c({itemSizes:p,cols:h,loop:f,dense:u,orientation:d,highlightedIndex:l,onHighlightedIndexChange:c,rootRef:y,stopEventPropagation:v,enableHomeAndEndKeys:m,direction:j,disabledIndices:x,modifierKeys:b}),S=Fa((e=>{null==g||g(e),O(e)})),T=fs(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(Ns.Provider,{value:M,children:ve.jsx(Pc,{elementsRef:I,onMapChange:S,children:T})})}"production"!==process.env.NODE_ENV&&(Bc.displayName="DirectionContext");const Wc=[Oc],Uc=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:x,disabled:b,state:w}=Os(),C=As(),{clearErrors:k}=Ds(),j=b||i,N=x??u,_=xs(f),[E,I]=Pa({controlled:c,default:d,name:"RadioGroup",state:"value"}),O=Fa(l),S=Fa(((e,t)=>{O(e,t),!t.isCanceled&&I(e)})),T=n.useRef(null),M=Fa((e=>{null==T.current&&null!=e&&(T.current=e)}));Fs({id:_,commitValidation:C.commitValidation,value:E,controlRef:T,name:N,getValue:()=>E??null});const R=n.useRef(E);Ua((()=>{R.current!==E&&(k(N),"onChange"===y?C.commitValidation(E):C.commitValidation(E,!0))}),[N,k,y,E,C]),Ua((()=>{R.current=E}),[E]);const[D,P]=n.useState(!1),z=Fa((e=>{lc(e.currentTarget,e.relatedTarget)||(g(!0),v(!1),"onBlur"===y&&C.commitValidation(E))})),A=Fa((e=>{e.key.startsWith("Arrow")&&(g(!0),P(!0),v(!0))})),L=n.useMemo((()=>null==E?"":"string"==typeof E?E:JSON.stringify(E)),[E]),V=ns({value:L,ref:qa(C.inputRef,p),id:_,name:L?N:void 0,disabled:j,readOnly:a,required:s,"aria-hidden":!0,tabIndex:-1,style:Ka,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:P,touched:D})),[E,j,w,N,O,a,M,s,S,P,D]),B={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(Wl.Provider,{value:$,children:[ve.jsx(Hc,{render:r,className:o,state:F,props:[B,C.getValidationProps,h],refs:[t],stateAttributesMapping:Xa,enableHomeAndEndKeys:!1,modifierKeys:Wc}),ve.jsx("input",{...V})]})}));"production"!==process.env.NODE_ENV&&(Uc.displayName="RadioGroup");const Kc=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(Uc,{...d,ref:u,value:e,defaultValue:t,"data-test":i,onValueChange:n,children:[c,p&&ve.jsxs(ed,{className:pi("flex items-center gap-1 m-0 pt-1 text-sm",a?"text-error-500":"text-delta-600"),children:[a&&ve.jsx(gl,{width:20,height:20}),f]})]})})),Gc=({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}),Yc=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:x,size:b}=e,{containerRef:w,wrapDisabled:C}=(({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]}),k=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())||""},j=e=>"object"==typeof e?null==e?void 0:e[m]:e,N=(e,t)=>j(e)===j(t),_=i?n.filter((e=>!!(s?null!=o&&o.find((t=>N(t,e))):N(o,e)))):n,E=_.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:w,className:"absolute top-0 left-0 opacity-0 pointer-events-none flex flex-wrap gap-2 text-sm",style:{width:"100%"},children:_.map((e=>{const t=j(e);return ve.jsx(Sr,{className:"w-fit",readOnly:i,type:s?"checkbox":"radio",dataTest:`ic-${String(t)}-hidden`,label:v?v(e):k(e)},String(t))}))}),ve.jsx("div",{className:Ca("flex gap-2 flex-wrap",C&&"flex-col gap-1"),children:x?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!=_&&_.length?_.map(((e,n)=>{const r=j(e),a=!!(s?null!=o&&o.find((t=>N(t,e))):N(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!==E?void 0:t;return ve.jsx(ta,{title:l,arrow:!0,children:ve.jsx("span",{className:Ca(c&&"cursor-not-allowed"),children:i&&!C?ve.jsx(Er,{ref:d,disabled:u||c,classes:{root:"min-h-[32px] h-full"},className:"w-fit text-sm",dataTest:`ic-${String(r)}`,label:v?v(e):k(e)}):ve.jsx(Sr,{ref:d,disabled:u||c,classes:C?{root:"border-none outline-none bg-transparent w-full flex justify-start h-full min-h-[40px] shadow-none",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,size:b,onClick:()=>(e=>{if(!s){const t=N(e,o)?null:e;return void p(t)}const t=o||[],n=t.find((t=>N(t,e)))?t.filter((t=>!N(t,e))):[...t,e];p(n)})(e),label:v?v(e):k(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"})]})]})})),Jc=o(((e,t)=>{const[n,r]=a(!1),{options:o,dataTest:s,value:l,readOnly:c,multiple:u,disableClearable:p,onChange:f,size:h,title:m,noOptionsText:g,placeholder:v,disabled:y,helperText:x,error:b,valueKey:w="value",labelKey:C="label",renderLabel:k,getOptionTooltip:j,startAdornment:N,autocompleteProps:_,loading:E,maxTags:I}=e,O=o.length<11,S=e=>{var t;return"object"==typeof e?(null==(t=null==e?void 0:e[C])?void 0:t.toString())||"":(null==e?void 0:e.toString())||""},T=d((e=>"object"==typeof e?null==e?void 0:e[w]:e),[w]),M=d(((e,t)=>T(e)===T(t)),[T]),R=d((e=>{var t;r(!0),null==(t=null==_?void 0:_.onOpen)||t.call(_,e)}),[_]),D=d(((e,t)=>{var n;r(!1),null==(n=null==_?void 0:_.onClose)||n.call(_,e,t)}),[_]);return u&&c?ve.jsx(Yc,{...e}):ve.jsxs("div",{className:"flex flex-col gap-y-1 w-full",children:[m&&ve.jsx("span",{className:"text-delta-800 text-base font-semibold",children:m}),ve.jsx(El,{open:n,onOpen:R,onClose:D,disableCloseOnSelect:u,dataTest:s,disabled:y||E,noOptionsText:g,loading:E,readOnly:c,value:l,size:h,disableClearable:p,options:o,fullWidth:!0,classes:{listbox:"h-full max-h-[300px]"},getOptionLabel:S||(null==_?void 0:_.getOptionLabel),onChange:(e,t)=>{f(t)},filterSelectedOptions:!1,isOptionEqualToValue:(null==_?void 0:_.isOptionEqualToValue)??M,autoHeight:!0,multiple:u,renderTags:e=>{const t=I||o.length,n=e.slice(0,t),r=e.length-t;return ve.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.map((e=>{var t;return ve.jsx(Er,{dataTest:`${T(e)}-chip`,readOnly:c,variant:"outlined",label:k?k(e):S(e)||"",classes:{root:"h-fit w-fit min-h-[32px]",label:"block whitespace-normal"},disabled:y||E,onDelete:()=>{if(!u)return void f(null);const t=l.filter((t=>!M(t,e)));f(t)}},null==(t=T(e))?void 0:t.toString())})),r>0&&ve.jsx(Er,{dataTest:"remaining-count-tag-chip",label:`+${r}`,variant:"outlined",onClick:R})]})},popupIcon:E?ve.jsx(hl,{height:24,width:24}):u?ve.jsx(vl,{height:24,width:24}):void 0,renderOption:(e,t)=>{const n="object"==typeof t&&!(null==t||!t.disabled),r=j?j(t):null;if(u){const o=!(null==l||!l.find((e=>M(e,t))));return i("li",{...e,key:e.id,onClick:n?void 0:e.onClick,className:Ca("flex h-full gap-x-1 hover:bg-gama-50 cursor-pointer bg-white text-sm/5",n&&"cursor-not-allowed bg-delta-50 hover:bg-delta-50"),"aria-disabled":n},ve.jsx(ta,{arrow:!0,title:r,children:ve.jsxs(ve.Fragment,{children:[ve.jsx(sl,{disabled:n,dataTest:`${T(t)}-checkbox`,size:"small",className:"min-w-[36px]",checked:o}),k?k(t):ve.jsx("span",{className:"text-sm text-delta-700 h-fit py-[10px]",children:S(t)})]})}))}const o=M(l,t);return i("li",{...e,key:e.id,className:Ca("flex h-full gap-x-1 hover:bg-gama-50 px-2 cursor-pointer text-sm/5",n&&"cursor-not-allowed bg-delta-50 hover:bg-delta-50"),onClick:n?void 0:e.onClick,"aria-disabled":n},ve.jsx(ta,{arrow:!0,title:r,children:ve.jsxs(ve.Fragment,{children:[ve.jsx("span",{className:"py-[10px] min-w-5 w-5 h-full",children:o&&ve.jsx(ml,{className:"size-5 text-gama-500 min-h-5 min-w-5",height:20,width:20})}),k?k(t):ve.jsx("span",{className:"text-sm text-delta-700 py-[10px]",children:S(t)})]})}))},renderInput:e=>ve.jsx(xl,{dataTest:`${s}-input-field`,...e,inputRef:t,error:b,helperText:x||" ",variant:"outlined",label:"",placeholder:v,readOnly:c,onKeyDown:O?e=>e.preventDefault():void 0,autoComplete:O?"off":"on",InputProps:{...e.InputProps,startAdornment:N||e.InputProps.startAdornment,style:O?{caretColor:"transparent"}:{}},inputProps:{...e.inputProps,style:O?{caretColor:"transparent"}:{}}}),..._})]})})),Xc=o(((e,t)=>{const{options:n}=e;return n.length>0&&n.length<=5?ve.jsx(Yc,{...e,ref:t}):ve.jsx(Jc,{...e,ref:t})})),Zc=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"}}}),Qc=({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}}),ed=e=>ve.jsx(R,{...e}),td=e=>ve.jsx(D,{...e}),nd=e=>ve.jsx(P,{...e}),rd=e=>ve.jsx(z,{...e}),od=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}})},id=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},sx:{"&.Mui-disabled":{pointerEvents:"auto",cursor:"not-allowed","&:hover":{backgroundColor:"transparent !important"}},...e.sx}})},ad=e=>ve.jsx(L,{...e}),sd="_styled-link_um6g7_1",ld="_styled-link-disabled_um6g7_16",cd="_styled-link-xs_um6g7_32",dd="_styled-link-small_um6g7_37",ud="_styled-link-large_um6g7_42",pd=({href:e,disabled:t,size:n="large",dataTest:r,reflink:o,className:i,content:a,contentNode:s,...l})=>{let c=ud;switch(n){case"small":c=dd;break;case"xs":c=cd;break;default:c=ud}return t?ve.jsxs("span",{className:pi(sd,ld,c,i),children:[a,s]}):ve.jsxs("a",{...l,"data-test":r,ref:o,href:e,className:pi(sd,c,i),children:[a,s]})},fd=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)"}}}),hd=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 md;function gd(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");md.has(t)||(md.add(t),console.warn(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(md=new Set);const vd=n.createContext(void 0);function yd(){const e=n.useContext(vd);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&&(vd.displayName="AccordionRootContext");const xd={value:()=>null},bd=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=qc();"production"!==process.env.NODE_ENV&&Ua((()=>{a&&!1===s&&gd("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=Fa(c),y=n.useRef([]),[x,b]=Pa({controlled:p,default:g,name:"Accordion",state:"value"}),w=n.useCallback(((e,t)=>{const n=qs("none");if(d)if(t){const t=x.slice();if(t.push(e),v(t,n),n.isCanceled)return;b(t)}else{const t=x.filter((t=>t!==e));if(v(t,n),n.isCanceled)return;b(t)}else{const t=x[0]===e?[]:[e];if(v(t,n),n.isCanceled)return;b(t)}}),[v,d,b,x]),C=n.useMemo((()=>({value:x,disabled:i,orientation:u})),[x,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:x})),[m,i,w,a,s,l,u,C,x]),j=fs("div",e,{state:C,ref:t,props:[{dir:m,role:"region"},h],stateAttributesMapping:xd});return ve.jsx(vd.Provider,{value:k,children:ve.jsx(Pc,{elementsRef:y,children:j})})}));"production"!==process.env.NODE_ENV&&(bd.displayName="AccordionRoot");const wd=n.createContext(void 0);function Cd(){const e=n.useContext(wd);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&&(wd.displayName="CollapsibleRootContext");const kd=n.createContext(void 0);function jd(){const e=n.useContext(kd);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&&(kd.displayName="AccordionItemContext");let Nd=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Qs.startingStyle]="startingStyle",e[e.endingStyle=Qs.endingStyle]="endingStyle",e}({}),_d=function(e){return e.panelOpen="data-panel-open",e}({});const Ed={[Nd.open]:""},Id={[Nd.closed]:""},Od={open:e=>e?{[_d.panelOpen]:""}:null},Sd={open:e=>e?Ed:Id};let Td=function(e){return e.index="data-index",e.disabled="data-disabled",e.open="data-open",e}({});const Md={...Sd,index:e=>Number.isInteger(e)?{[Td.index]:String(e)}:null,...nl,value:()=>null},Rd=n.forwardRef((function(e,t){const{className:r,disabled:o=!1,onOpenChange:i,render:a,value:s,...l}=e,{ref:c,index:d}=$l(),u=qa(t,c),{disabled:p,handleValueChange:f,state:h,value:m}=yd(),g=xs(),v=s??g,y=o||p,x=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]),b=Fa(((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]=Pa({controlled:t,default:r,name:"Collapsible",state:"open"}),{mounted:c,setMounted:d,transitionStatus:u}=Zs(s,!0,!0),[p,f]=n.useState(s),[{height:h,width:m},g]=n.useState({height:void 0,width:void 0}),v=xs(),[y,x]=n.useState(),b=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=Js(I,!1),S=Fa((e=>{const t=!s,n=qs("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 Ua((()=>{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:b,panelRef:I,runOnceAnimationsFinish:O,setDimensions:g,setHiddenUntilFound:C,setKeepMounted:j,setMounted:d,setOpen:l,setPanelIdState:x,setVisible:f,transitionDimensionRef:E,transitionStatus:u,visible:p,width:m})),[N,_,i,S,h,c,s,b,I,O,g,C,j,d,l,f,E,u,p,m])}({open:x,onOpenChange:b,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:b,state:C,transitionStatus:w.transitionStatus})),[w,C,b]),j=n.useMemo((()=>({...h,index:d,disabled:y,open:x})),[y,d,x,h]),[N,_]=n.useState(xs()),E=n.useMemo((()=>({open:x,state:j,setTriggerId:_,triggerId:N})),[x,j,_,N]),I=fs("div",e,{state:j,ref:u,props:l,stateAttributesMapping:Md});return ve.jsx(wd.Provider,{value:k,children:ve.jsx(kd.Provider,{value:E,children:I})})}));"production"!==process.env.NODE_ENV&&(Rd.displayName="AccordionItem");const Dd=n.forwardRef((function(e,t){const{render:n,className:r,...o}=e,{state:i}=jd();return fs("h3",e,{state:i,ref:t,props:o,stateAttributesMapping:Md})}));"production"!==process.env.NODE_ENV&&(Dd.displayName="AccordionHeader");const Pd=new Set([yc,vc,bc,xc,wc,Cc]);const zd=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}=Cd(),f=r??p,{getButtonProps:h,buttonRef:m}=Es({disabled:f,focusableWhenDisabled:!0,native:s}),{accordionItemRefs:g,direction:v,loop:y,orientation:x}=yd(),b="rtl"===v,w="horizontal"===x,{state:C,setTriggerId:k,triggerId:j}=jd();Ua((()=>(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(!Pd.has(e.key))return;cc(e);const t=function(e){const{current:t}=e,n=[];for(let e=0;e<t.length;e+=1){const r=t[e];if(!Vc(r)){const e=null==r?void 0:r.querySelector('[type="button"]');Vc(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 yc:w||i();break;case vc:w||a();break;case bc:w&&(b?a():i());break;case xc:w&&(b?i():a());break;case"Home":r=0;break;case"End":r=n}r>-1&&t[r].focus()}})),[g,f,u,j,w,b,y,d,c]);return fs("button",e,{state:C,ref:[t,m],props:[N,l,h],stateAttributesMapping:Od})}));"production"!==process.env.NODE_ENV&&(zd.displayName="AccordionTrigger");let Ad=function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e}({});let Ld=function(e){return e.accordionPanelHeight="--accordion-panel-height",e.accordionPanelWidth="--accordion-panel-width",e}({});const Vd=n.forwardRef((function(e,t){const{className:r,hiddenUntilFound:o,keepMounted:i,id:a,render:s,...l}=e,{hiddenUntilFound:c,keepMounted:d}=yd(),{abortControllerRef:u,animationTypeRef:p,height:f,mounted:h,onOpenChange:m,open:g,panelId:v,panelRef:y,runOnceAnimationsFinish:x,setDimensions:b,setHiddenUntilFound:w,setKeepMounted:C,setMounted:k,setOpen:j,setVisible:N,transitionDimensionRef:_,visible:E,width:I,setPanelIdState:O,transitionStatus:S}=Cd(),T=o??c,M=i??d;"production"!==process.env.NODE_ENV&&Ua((()=>{!1===i&&T&&gd("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]),Ua((()=>{if(a)return O(a),()=>{O(void 0)}}),[a,O]),Ua((()=>{w(T)}),[w,T]),Ua((()=>{C(M)}),[C,M]),Xs({open:g&&"idle"===S,ref:y,onComplete(){g&&b({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:x,width:b}=e,w=n.useRef(!1),C=n.useRef(null),k=n.useRef(u),j=n.useRef(u),N=n.useMemo((()=>"css-animation"===r.current?!x:!u&&!c),[u,c,x,r]),_=Fa((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&&gd("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(Ad.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===b)&&(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=Ys.request((()=>{j.current=!1,n=Ys.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))})),()=>{Ys.cancel(t),Ys.cancel(n)}})),E=qa(o,p,_);return Ua((()=>{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=Ys.request((()=>{r=Ys.request((()=>{f((()=>{h({height:0,width:0}),e.style.removeProperty("content-visibility"),e.style.removeProperty("display"),m(!1),t.current=null}),n)}))}));return()=>{Ys.cancel(o),Ys.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(Nd.startingStyle,""),h({height:e.scrollHeight,width:e.scrollWidth}),n=Ys.request((()=>{e.style.removeProperty("display"),Object.entries(t).forEach((([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)}))}))}return()=>{Ys.cancel(n)}}),[t,r,a,s,c,u,p,f,h,m,y]),Ua((()=>{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,x]),Ts((()=>{const e=Ys.request((()=>{k.current=!1}));return()=>Ys.cancel(e)})),Ua((()=>{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=Ys.request((()=>{w.current=!1,n=Ys.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))}))),()=>{Ys.cancel(t),Ys.cancel(n)}}),[a,u,p,h]),Ua((()=>{const e=p.current;e&&a&&N&&(e.setAttribute("hidden","until-found"),"css-transition"===r.current&&e.setAttribute(Nd.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,qs("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:x,setDimensions:b,setMounted:k,setOpen:j,setVisible:N,transitionDimensionRef:_,visible:E,width:I}),{state:D,triggerId:P}=jd(),z=fs("div",e,{state:n.useMemo((()=>({...D,transitionStatus:S})),[D,S]),ref:[t,y],props:[R,{"aria-labelledby":P,role:"region",style:{[Ld.accordionPanelHeight]:void 0===f?"auto":`${f}px`,[Ld.accordionPanelWidth]:void 0===I?"auto":`${I}px`}},l],stateAttributesMapping:Md});return M||T||!M&&h?z:null}));"production"!==process.env.NODE_ENV&&(Vd.displayName="AccordionPanel");const Fd="_AccordionRoot_wzlmo_1",$d="_Trigger_wzlmo_9",Bd="_Header_wzlmo_18",qd="_TriggerIcon_wzlmo_40",Hd="_TriggerIconRight_wzlmo_48",Wd="_Panel_wzlmo_56",Ud="_Content_wzlmo_67",Kd=({className:e,children:t,expanded:n,defaultExpanded:r,onChange:o,...i})=>{const a="item",s={...i,type:"single",className:Ca(Fd,e),onValueChange:e=>{null==o||o(e.includes(a))},...void 0!==n?{value:n?[a]:[]}:{defaultValue:r?[a]:[]}};return ve.jsx(bd,{...s,children:ve.jsx(Rd,{value:a,children:t})})},Gd=({size:e="large",expandChevronRight:t,className:n,headerClassName:r,sx:o,children:i,...a})=>{const s="small"===e,l={"--trigger-height":s?"48px":"72px","--trigger-padding-x":s?"8px":"16px","--trigger-font-size":s?"14px":"18px","--chevron-size":s?"20px":"24px",...o};return ve.jsx(Dd,{className:pi(Bd,r),children:ve.jsx(zd,{...a,className:pi($d,n),style:l,children:t?ve.jsxs(ve.Fragment,{children:[i,ve.jsx($n,{className:pi(qd,Hd),"data-state-icon":!0})]}):ve.jsxs(ve.Fragment,{children:[ve.jsx($n,{className:qd,"data-state-icon":!0}),i]})})})},Yd=({children:e,...t})=>ve.jsx(Vd,{...t,className:Wd,children:ve.jsx("div",{className:Ud,children:e})}),Jd=e=>ve.jsx($,{...e}),Xd=({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")})]})}),Zd=()=>{const[e,t]=a(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:r=>{e?n():(e=>{t((()=>e.currentTarget))})(r)}}},Qd=e=>r.isValidElement(e)||"string"==typeof e||"number"==typeof e||null===e||Array.isArray(e),eu=({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}=Zd(),h=null==l?void 0:l({isOpen:!!f,onClose:p});return ve.jsxs(ve.Fragment,{children:[ve.jsxs("div",{className:"w-fit h-fit relative",children:[l&&r.isValidElement(h)?r.cloneElement(h,{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(Jd,{...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:Qd(t)?t:t({isOpen:!!f,onClose:p})})]})},tu=({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(yl,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopiert til utklippstavle":"Copied to clipboard")}))},children:!a&&(o||i)})})})},nu="_copy-wrapper_1gjzc_1",ru="_hidden-copy_1gjzc_1",ou=({className:e,contentToCopy:t,locale:n,messageInfo:r,children:o})=>ve.jsxs("div",{className:Ca("flex items-center hover:text-gama-500",nu,e),children:[o,ve.jsx(ta,{title:"no"===n?"Kopier":"Copy",className:ru,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(yl,{width:20,height:20})})})})]}),iu="_styled-widget-title_1mja5_1",au=function(e){return ve.jsx("div",{className:iu,children:e.children})},su="_styled-widget-header_yk04z_1",lu=({actions:e,title:t,containerClassname:n,actionsClassname:r})=>ve.jsxs("div",{className:Ca(su,n),children:[ve.jsx(au,{children:t}),ve.jsx("div",{className:r,children:e})]}),cu="_asma-ui-core-styled-widget_gzht1_1",du="_empty-state_gzht1_13",uu="_widget-header-left_gzht1_22",pu="_widget-header-right_gzht1_28",fu="_widget-content_gzht1_34",hu="_widget-footer_gzht1_44",mu="_widget-link_gzht1_49";function gu(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 vu(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 yu=({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:`${cu} ${c?du:""}`,children:[ve.jsxs("div",{className:uu,children:[n,ve.jsx(au,{children:t}),ve.jsx("div",{className:`${pu} ${p??""}`,children:u})]}),ve.jsx("div",{className:fu,children:ve.jsxs(ve.Fragment,{children:[e,ve.jsx(Da,{isLoading:l}),ve.jsx(Oa,{isEmpty:c,emptyText:d})]})}),g&&ve.jsxs("div",{className:hu,children:[!o||null!=o&&o.hide?ve.jsx("div",{}):ve.jsx(da,{disabled:o.disabled,dataTest:"view-more",variant:"text",endIcon:f?ve.jsx(gu,{width:20,height:20}):ve.jsx(vu,{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(pd,{dataTest:"go-to-button",className:mu,size:"small",href:r.href,onClick:r.onClick,content:r.content}):ve.jsx("div",{})]})]})},xu="_styled-module-title_174mo_1",bu=function(e){return ve.jsx("h1",{"data-test":e.dataTest,className:xu,children:e.children})},wu="_dialog_erjok_1",Cu="_hidden_erjok_9";function ku(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 ju(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 Nu="object"==typeof global&&global&&global.Object===Object&&global;var _u="object"==typeof self&&self&&self.Object===Object&&self;const Eu=(Nu||_u||Function("return this")()).Symbol;var Iu=Object.prototype,Ou=Iu.hasOwnProperty,Su=Iu.toString,Tu=Eu?Eu.toStringTag:void 0;var Mu=Object.prototype.toString;var Ru="[object Null]",Du="[object Undefined]",Pu=Eu?Eu.toStringTag:void 0;function zu(e){return null==e?void 0===e?Du:Ru:Pu&&Pu in Object(e)?function(e){var t=Ou.call(e,Tu),n=e[Tu];try{e[Tu]=void 0;var r=!0}catch{}var o=Su.call(e);return r&&(t?e[Tu]=n:delete e[Tu]),o}(e):function(e){return Mu.call(e)}(e)}const Au=Array.isArray;function Lu(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=zu(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const Vu=({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:x,onSecondaryButtonClick:b,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),[D,P]=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:D,$=g||v,B=$||y,q=()=>{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(wu,!M&&Cu),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:q,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(qn,{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:q,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():P(!D)},endIcon:F?ve.jsx(ju,{width:20,height:20,color:"text-delta-700"}):ve.jsx(ku,{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(qn,{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}),(Au(k)&&null!=k&&k.length||Lu(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:[Au(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(od,{open:z,anchorEl:A,onClose:V,children:k.map((e=>ve.jsx(id,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):j&&Lu(k)&&ve.jsx(da,{dataTest:"extra-action-button",variant:"text",onClick:k,children:j})," ",E,B?ve.jsxs("div",{className:Ca("flex justify-end gap-x-4",N),children:[y&&b&&ve.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:b,children:y}),$&&x&&ve.jsx(da,{dataTest:"save-button",startIcon:v&&ve.jsx(hl,{width:24,height:24}),onClick:x,children:g})]}):null]}):ve.jsx(ve.Fragment,{children:B?ve.jsxs("div",{className:Ca("flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",N),children:[y&&b&&ve.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:b,children:y}),$&&x&&ve.jsx(da,{dataTest:"save-button",startIcon:v&&ve.jsx(hl,{width:24,height:24}),onClick:x,children:g})]}):null})]})]})]})},Fu=({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(qn,{height:20,width:20,color:"text-delta-700"})})})}):null,$u=({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},Bu=({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(ju,{width:20,height:20,color:"text-delta-700"}):ve.jsx(ku,{width:20,height:20,color:"text-delta-700"})})})}):null,qu="_minimized-dialog_16tvw_5",Hu="_dialog_16tvw_1",Wu="_hidden_16tvw_27",Uu={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 Ku=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(),x=function(e="en"){return u((()=>Uu[e]??Uu.en),[e])}(g),b=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(qu,!w&&Wu,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($u,{type:"expand",visibility:r,onClick:()=>C(!w),tooltipTitle:x.expand}),ve.jsx(Fu,{showCloseIcon:t,onClick:p,tooltipTitle:x.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:b,className:Ca(Hu,w&&Wu,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":"py-4"),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($u,{visibility:n&&!y,type:"minimize",onClick:()=>C(!w),tooltipTitle:x.minimize}),ve.jsx(Bu,{showFullScreenIcon:o&&!y,fullScreen:k,onClick:()=>j(!k),tooltipTitle:k?x.exitFullscreen:x.fullscreen}),ve.jsx(Fu,{showCloseIcon:t,onClick:p,tooltipTitle:x.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 Gu({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,bn as AssignmentIcon,wn as AssignmentOutlineIcon,B as Avatar,xr as BadgeIcon,tn as BellIcon,en as BellOutlineIcon,rr as CalendarBlankOutlineIcon,vn as CalendarIcon,xn as CalendarRangeIcon,Fn as CheckBoxCheckedIcon,gn as CheckFactIcon,mn as CheckFactOutlineIcon,al as CheckIcon,hn as CheckOutlineIcon,an as ChevronDoubleLeftIcon,sn as ChevronDoubleRightIcon,$n as ChevronDownIcon,on as ChevronLeftIcon,rn as ChevronRightIcon,Bn as ChevronUpIcon,q as ClickAwayListener,qn as CloseIcon,mr as ConsentsIcon,H as Container,tu as CopyButton,ou 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,br as EditSquareIcon,tr as ErrorOutlineIcon,W as Fade,ir as FastCheckOutlineIcon,Jn as FilePdfIcon,Zn as FilterIcon,On as FindReplaceIcon,Sn as FindReplacePeopleIcon,U as FormLabel,nn as HamburgerIcon,jr as HandymanIcon,kr as HandymanOutlineIcon,Un as InboxOutboxIcon,Kn as InboxOutboxOutlineIcon,il as IndeterminateIcon,vr as KeyboardCapslockIcon,or as LinkOutlineIcon,Cn as ListNumberedIcon,cr as ListSettingsLineIcon,sr as ListStatusIcon,Pn as LoadingIcon,Qn as LockIcon,kn as MessageProcessingIcon,jn as MessageProcessingOutlineIcon,yr as MessageReplyIcon,Vu as MinimizableDialog,Ku 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,Wn 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,Dn as SearchIcon,En as SettingsIcon,ur as SettingsMenuHorizontalIcon,In as SettingsOutlineIcon,Y as Skeleton,J as Stack,Kd as StyledAccordion,Yd as StyledAccordionDetails,Gd as StyledAccordionSummary,ye as StyledBadge,da as StyledButton,sl as StyledCheckbox,Er as StyledChip,ya as StyledDialog,ka as StyledDialogActions,Na as StyledDialogContent,Ea as StyledDialogTitle,rd as StyledDrawer,Xc as StyledDynamicSelect,Oa as StyledEmptyPage,Xd as StyledFilterButton,eu as StyledFilterMenu,Ma as StyledFilteredEmptyState,Zc as StyledFormControl,Qc as StyledFormControlLabel,nd as StyledFormGroup,ed as StyledFormHelperText,sa as StyledFormLabel,xl as StyledInputField,td as StyledInputLabel,Sr as StyledInteractiveChip,Gc as StyledLabel,pd as StyledLink,Da as StyledLoading,od as StyledMenu,id as StyledMenuItem,ad as StyledMenuList,bu as StyledModuleTitle,Jd as StyledPopover,rc as StyledRadio,Kc as StyledRadioGroup,bl as StyledSearchField,kl as StyledSelect,El as StyledSelectAutocomplete,jl as StyledSelectItem,Il as StyledSlider,Al as StyledSwitch,fd as StyledTab,hd as StyledTabs,Cl as StyledTextarea,ta as StyledTooltip,na as StyledTypography,yu as StyledWidget,lu as StyledWidgetHeader,au as StyledWidgetTitle,lr as TextBoxCheckOutlineIcon,Gn as TopicIcon,ar as UnknownDocumentOutlineRoundedIcon,fr as WarningAmberOutlineIcon,_r as WorkIcon,Gu as createDialogStack,ne as omit,ue as prepareForSlot,ce as setMidnightTime,de as setZeroTime};
|
|
1
|
+
var e=Object.defineProperty,t=(t,n,o)=>(((t,n,o)=>{n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o})(t,"symbol"!=typeof n?n+"":n,o),o);import*as n from"react";import o,{forwardRef as i,createElement as r,useState as l,useEffect as a,useLayoutEffect as s,useRef as c,useCallback as d,useMemo as u,createContext as h,useContext as p}from"react";import{jsx as m,jsxs as f,Fragment as g}from"react/jsx-runtime";import{Badge as v,Chip as b,Checkbox as x,Radio as w,Tooltip as y,Typography as C,Dialog as k,DialogActions as N,DialogContent as I,DialogTitle as M,TextField as _,Select as T,MenuItem as S,Autocomplete as R,Paper as E,Slider as O,Skeleton as z,FormControl as P,FormControlLabel as D,FormHelperText as L,InputLabel as V,FormGroup as A,Drawer as F,Menu as q,MenuList as j,Tab as B,Tabs as H,Popover as $}from"@mui/material";import{Avatar as W,ClickAwayListener as U,Container as K,Fade as G,FormLabel as Y,Paper as Z,Popper as J,Skeleton as Q,Stack as X}from"@mui/material";import ee from"@mui/material/Fade";import{twMerge as te}from"tailwind-merge";import*as ne from"react-dom";import{ErrorOutlineIcon as oe,LoadingIcon as ie,PlusIconCircle as re,CheckIcon as le,ContentCopyIcon as ae}from"asma-ui-icons";const se=(e,t)=>Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))));function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function de(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ue(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function he(e){ue(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ce(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function pe(e,t){ue(2,arguments);var n=he(e),o=de(t),i=n.getFullYear(),r=n.getDate(),l=new Date(0);l.setFullYear(i,o,15),l.setHours(0,0,0,0);var a=function(e){ue(1,arguments);var t=he(e),n=t.getFullYear(),o=t.getMonth(),i=new Date(0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}(l);return n.setMonth(o,Math.min(r,a)),n}function me(e,t){if(ue(2,arguments),"object"!==ce(t)||null===t)throw new RangeError("values parameter must be an object");var n=he(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=pe(n,t.month)),null!=t.date&&n.setDate(de(t.date)),null!=t.hours&&n.setHours(de(t.hours)),null!=t.minutes&&n.setMinutes(de(t.minutes)),null!=t.seconds&&n.setSeconds(de(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(de(t.milliseconds)),n)}const fe=e=>me(e,{hours:23,minutes:59,seconds:59,milliseconds:59}),ge=e=>me(e,{hours:0,minutes:0,seconds:0,milliseconds:0});function ve(e){return i((function(t,n){const{ownerState:o,...i}=t;return r(e,{...i,ref:n})}))}const be=({color:e="primary",dataTest:t,...n})=>m(v,{color:e,"data-test":t,...n,sx:{"& .MuiBadge-colorPrimary":{backgroundColor:"var(--colors-lime-500)",color:"var(--colors-gama-900)"},...n.sx}}),xe=/^[a-z0-9]+(-[a-z0-9]+)*$/,we=(e,t,n,o="")=>{const i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;o=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const e=i.pop(),n=i.pop(),r={provider:i.length>0?i[0]:o,prefix:n,name:e};return t&&!ye(r)?null:r}const r=i[0],l=r.split("-");if(l.length>1){const e={provider:o,prefix:l.shift(),name:l.join("-")};return t&&!ye(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:r};return t&&!ye(e,n)?null:e}return null},ye=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(xe)||!(t&&""===e.prefix||e.prefix.match(xe))||!e.name.match(xe)),Ce=Object.freeze({left:0,top:0,width:16,height:16}),ke=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ne=Object.freeze({...Ce,...ke}),Ie=Object.freeze({...Ne,body:"",hidden:!1});function Me(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}(e,t);for(const o in Ie)o in ke?o in e&&!(o in n)&&(n[o]=ke[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function _e(e,t,n){const o=e.icons,i=e.aliases||Object.create(null);let r={};function l(e){r=Me(o[e]||i[e],r)}return l(t),n.forEach(l),Me(e,r)}function Te(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const o=function(e,t){const n=e.icons,o=e.aliases||Object.create(null),i=Object.create(null);return(t||Object.keys(n).concat(Object.keys(o))).forEach((function e(t){if(n[t])return i[t]=[];if(!(t in i)){i[t]=null;const n=o[t]&&o[t].parent,r=n&&e(n);r&&(i[t]=[n].concat(r))}return i[t]})),i}(e);for(const i in o){const r=o[i];r&&(t(i,_e(e,i,r)),n.push(i))}return n}const Se={provider:"",aliases:{},not_found:{},...Ce};function Re(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ee(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!Re(e,Se))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(xe)||"string"!=typeof t.body||!Re(t,Ie))return null}const o=t.aliases||Object.create(null);for(const e in o){const t=o[e],i=t.parent;if(!e.match(xe)||"string"!=typeof i||!n[i]&&!o[i]||!Re(t,Ie))return null}return t}const Oe=Object.create(null);function ze(e,t){const n=Oe[e]||(Oe[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function Pe(e,t){return Ee(t)?Te(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let De=!1;function Le(e){return"boolean"==typeof e&&(De=e),De}function Ve(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),De&&!t&&!e.prefix){let t=!1;return Ee(e)&&(e.prefix="",Te(e,((e,n)=>{n&&function(e,t){const n=we(e,!0,De);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(ze(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!ye({provider:t,prefix:n,name:"a"}))return!1;return!!Pe(ze(t,n),e)}const Ae=Object.freeze({width:null,height:null}),Fe=Object.freeze({...Ae,...ke}),qe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,je=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Be(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const o=e.split(qe);if(null===o||!o.length)return e;const i=[];let r=o.shift(),l=je.test(r);for(;;){if(l){const e=parseFloat(r);isNaN(e)?i.push(r):i.push(Math.ceil(e*t*n)/n)}else i.push(r);if(r=o.shift(),void 0===r)return i.join("");l=!l}}const He=/\sid="(\S+)"/g,$e="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let We=0;function Ue(e,t=$e){const n=[];let o;for(;o=He.exec(e);)n.push(o[1]);if(!n.length)return e;const i="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const o="function"==typeof t?t(n):t+(We++).toString(),r=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+r+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")})),e=e.replace(new RegExp(i,"g"),"")}const Ke=Object.create(null);function Ge(e){return Ke[e]||Ke[""]}function Ye(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Ze=Object.create(null),Je=["https://api.simplesvg.com","https://api.unisvg.com"],Qe=[];for(;Je.length>0;)1===Je.length||Math.random()>.5?Qe.push(Je.shift()):Qe.push(Je.pop());function Xe(e,t){const n=Ye(t);return null!==n&&(Ze[e]=n,!0)}function et(e){return Ze[e]}Ze[""]=Ye({resources:["https://api.iconify.design"].concat(Qe)});let tt=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const nt={prepare:(e,t,n)=>{const o=[],i=function(e,t){const n=et(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach((t=>{e=Math.max(e,t.length)}));const i=t+".json?icons=";o=n.maxURL-e-n.path.length-i.length}else o=0;return o}(e,t),r="icons";let l={type:r,provider:e,prefix:t,icons:[]},a=0;return n.forEach(((n,s)=>{a+=n.length+1,a>=i&&s>0&&(o.push(l),l={type:r,provider:e,prefix:t,icons:[]},a=n.length),l.icons.push(n)})),o.push(l),o},send:(e,t,n)=>{if(!tt)return void n("abort",424);let o=function(e){if("string"==typeof e){const t=et(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let i=503;tt(e+o).then((e=>{const t=e.status;if(200===t)return i=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",i)}))})).catch((()=>{n("next",i)}))}};function ot(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let it=0;var rt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function lt(e,t,n,o){const i=e.resources.length,r=e.random?Math.floor(Math.random()*i):e.index;let l;if(e.random){let t=e.resources.slice(0);for(l=[];t.length>1;){const e=Math.floor(Math.random()*t.length);l.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}l=l.concat(t)}else l=e.resources.slice(r).concat(e.resources.slice(0,r));const a=Date.now();let s,c="pending",d=0,u=null,h=[],p=[];function m(){u&&(clearTimeout(u),u=null)}function f(){"pending"===c&&(c="aborted"),m(),h.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),h=[]}function g(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function v(){c="failed",p.forEach((e=>{e(void 0,s)}))}function b(){h.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),h=[]}function x(){if("pending"!==c)return;m();const o=l.shift();if(void 0===o)return h.length?void(u=setTimeout((()=>{m(),"pending"===c&&(b(),v())}),e.timeout)):void v();const i={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const i="success"!==n;switch(h=h.filter((e=>e!==t)),c){case"pending":break;case"failed":if(i||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return s=o,void v();if(i)return s=o,void(h.length||(l.length?x():v()));if(m(),b(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}c="completed",p.forEach((e=>{e(o)}))}(i,t,n)}};h.push(i),d++,u=setTimeout(x,e.rotate),n(o,t,i.callback)}return"function"==typeof o&&p.push(o),setTimeout(x),function(){return{startTime:a,payload:t,status:c,queriesSent:d,queriesPending:h.length,subscribe:g,abort:f}}}function at(e){const t={...rt,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,i,r){const l=lt(t,e,i,((e,t)=>{o(),r&&r(e,t)}));return n.push(l),l},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o}}function st(){}const ct=Object.create(null);function dt(e,t,n){let o,i;if("string"==typeof e){const t=Ge(e);if(!t)return n(void 0,424),st;i=t.send;const r=function(e){if(!ct[e]){const t=et(e);if(!t)return;const n={config:t,redundancy:at(t)};ct[e]=n}return ct[e]}(e);r&&(o=r.redundancy)}else{const t=Ye(e);if(t){o=at(t);const n=Ge(e.resources?e.resources[0]:"");n&&(i=n.send)}}return o&&i?o.query(t,i,n)().abort:(n(void 0,424),st)}const ut="iconify2",ht="iconify",pt=ht+"-count",mt=ht+"-version",ft=36e5,gt=168;function vt(e,t){try{return e.getItem(t)}catch{}}function bt(e,t,n){try{return e.setItem(t,n),!0}catch{}}function xt(e,t){try{e.removeItem(t)}catch{}}function wt(e,t){return bt(e,pt,t.toString())}function yt(e){return parseInt(vt(e,pt))||0}const Ct={local:!0,session:!0},kt={local:new Set,session:new Set};let Nt=!1;let It=typeof window>"u"?{}:window;function Mt(e){const t=e+"Storage";try{if(It&&It[t]&&"number"==typeof It[t].length)return It[t]}catch{}Ct[e]=!1}function _t(e,t){const n=Mt(e);if(!n)return;const o=vt(n,mt);if(o!==ut){if(o){const e=yt(n);for(let t=0;t<e;t++)xt(n,ht+t.toString())}return bt(n,mt,ut),void wt(n,0)}const i=Math.floor(Date.now()/ft)-gt,r=e=>{const o=ht+e.toString(),r=vt(n,o);if("string"==typeof r){try{const n=JSON.parse(r);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>i&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch{}xt(n,o)}};let l=yt(n);for(let t=l-1;t>=0;t--)r(t)||(t===l-1?(l--,wt(n,l)):kt[e].add(t))}function Tt(){if(!Nt){Nt=!0;for(const e in Ct)_t(e,(e=>{const t=e.data,n=ze(e.provider,t.prefix);if(!Pe(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function St(e,t){function n(n){let o;if(!Ct[n]||!(o=Mt(n)))return;const i=kt[n];let r;if(i.size)i.delete(r=Array.from(i).shift());else if(r=yt(o),!wt(o,r+1))return;const l={cached:Math.floor(Date.now()/ft),provider:e.provider,data:t};return bt(o,ht+r.toString(),JSON.stringify(l))}Nt||Tt(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const n in Ct)_t(n,(n=>{const o=n.data;return n.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function Rt(){}function Et(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,i=e.prefix;t.forEach((t=>{const r=t.icons,l=r.pending.length;r.pending=r.pending.filter((t=>{if(t.prefix!==i)return!0;const l=t.name;if(e.icons[l])r.loaded.push({provider:o,prefix:i,name:l});else{if(!e.missing.has(l))return n=!0,!0;r.missing.push({provider:o,prefix:i,name:l})}return!1})),r.pending.length!==l&&(n||ot([e],t.id),t.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),t.abort))}))})))}(e)})))}const Ot=(e,t)=>{const n=function(e,t=!0,n=!1){const o=[];return e.forEach((e=>{const i="string"==typeof e?we(e,t,n):e;i&&o.push(i)})),o}(e,!0,Le()),o=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const i=e.provider,r=e.prefix,l=e.name,a=n[i]||(n[i]=Object.create(null)),s=a[r]||(a[r]=ze(i,r));let c;c=l in s.icons?t.loaded:""===r||s.missing.has(l)?t.missing:t.pending;const d={provider:i,prefix:r,name:l};c.push(d)})),t}(n);if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,Rt)})),()=>{e=!1}}const i=Object.create(null),r=[];let l,a;return o.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===a&&t===l)return;l=t,a=n,r.push(ze(t,n));const o=i[t]||(i[t]=Object.create(null));o[n]||(o[n]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:n,name:o}=e,r=ze(t,n),l=r.pendingIcons||(r.pendingIcons=new Set);l.has(o)||(l.add(o),i[t][n].push(o))})),r.forEach((e=>{const{provider:t,prefix:n}=e;i[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,o=e.iconsToLoad;let i;delete e.iconsToLoad,o&&(i=Ge(t))&&i.prepare(t,n,o).forEach((n=>{dt(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=Pe(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),St(e,t)}catch(e){console.error(e)}Et(e)}))}))})))}(e,i[t][n])})),t?function(e,t,n){const o=it++,i=ot.bind(null,n,o);if(!t.pending.length)return i;const r={id:o,icons:t,callback:e,abort:i};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(r)})),i}(t,o,r):Rt};const zt=/[\s,]+/;function Pt(e,t){t.split(zt).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Dt(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?o(i):0)}}return t}function Lt(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let Vt;function At(e){return void 0===Vt&&function(){try{Vt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Vt=null}}(),Vt?Vt.createHTML(e):e}const Ft={...Fe,inline:!1},qt={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},jt={display:"inline-block"},Bt={backgroundColor:"currentColor"},Ht={backgroundColor:"transparent"},$t={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Wt={WebkitMask:Bt,mask:Bt,background:Ht};for(const e in Wt){const t=Wt[e];for(const n in $t)t[e+n]=$t[n]}const Ut={...Ft,inline:!0};function Kt(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Gt=(e,t,n,i)=>{const r=n?Ut:Ft,l=function(e,t){const n={...e};for(const e in t){const o=t[e],i=typeof o;e in Ae?(null===o||o&&("string"===i||"number"===i))&&(n[e]=o):i===typeof n[e]&&(n[e]="rotate"===e?o%4:o)}return n}(r,t),a=t.mode||"svg",s={},c=t.style||{},d={..."svg"===a?qt:{},ref:i};for(let e in t){const n=t[e];if(void 0!==n)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":l[e]=!0===n||"true"===n||1===n;break;case"flip":"string"==typeof n&&Pt(l,n);break;case"color":s.color=n;break;case"rotate":"string"==typeof n?l[e]=Dt(n):"number"==typeof n&&(l[e]=n);break;case"ariaHidden":case"aria-hidden":!0!==n&&"true"!==n&&delete d["aria-hidden"];break;default:void 0===r[e]&&(d[e]=n)}}const u=function(e,t){const n={...Ne,...e},o={...Fe,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,o].forEach((e=>{const t=[],n=e.hFlip,o=e.vFlip;let l,a=e.rotate;switch(n?o?a+=2:(t.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),t.push("scale(-1 1)"),i.top=i.left=0):o&&(t.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),t.push("scale(1 -1)"),i.top=i.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:l=i.height/2+i.top,t.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:t.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:l=i.width/2+i.left,t.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")")}a%2==1&&(i.left!==i.top&&(l=i.left,i.left=i.top,i.top=l),i.width!==i.height&&(l=i.width,i.width=i.height,i.height=l)),t.length&&(r='<g transform="'+t.join(" ")+'">'+r+"</g>")}));const l=o.width,a=o.height,s=i.width,c=i.height;let d,u;null===l?(u=null===a?"1em":"auto"===a?c:a,d=Be(u,s/c)):(d="auto"===l?s:l,u=null===a?Be(d,c/s):"auto"===a?c:a);const h={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(h[e]=t.toString())};return p("width",d),p("height",u),h.viewBox=i.left.toString()+" "+i.top.toString()+" "+s.toString()+" "+c.toString(),{attributes:h,body:r}}(e,l),h=u.attributes;if(l.inline&&(s.verticalAlign="-0.125em"),"svg"===a){d.style={...s,...c},Object.assign(d,h);let e=0,n=t.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),d.dangerouslySetInnerHTML={__html:At(Ue(u.body,n?()=>n+"ID"+e++:"iconifyReact"))},o.createElement("svg",d)}const{body:p,width:m,height:f}=e,g="mask"===a||"bg"!==a&&-1!==p.indexOf("currentColor"),v=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(p,{...h,width:m+"",height:f+""});return d.style={...s,"--svg":Lt(v),width:Kt(h.width),height:Kt(h.height),...jt,...g?Bt:Ht,...c},o.createElement("span",d)};var Yt;if(Le(!0),Yt=nt,Ke[""]=Yt,typeof document<"u"&&typeof window<"u"){Tt();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!Ve(e))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const o=t[e];if("object"!=typeof o||!o||void 0===o.resources)continue;Xe(e,o)||console.error(n)}catch{console.error(n)}}}}class Zt extends o.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"==typeof n&&null!==n&&"string"==typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let o;if("string"!=typeof n||null===(o=we(n,!1,!0)))return this._abortLoading(),void this._setData(null);const i=function(e){const t="string"==typeof e?we(e,!0,De):e;if(t){const e=ze(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(o);if(i){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==o.prefix&&e.push("iconify--"+o.prefix),""!==o.provider&&e.push("iconify--"+o.provider),this._setData({data:i,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),null!==i&&(this._loading={name:n,abort:Ot([o],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const e=this.props,t=this.state.icon;if(null===t)return e.children?e.children:o.createElement("span",{});let n=e;return t.classes&&(n={...e,className:("string"==typeof e.className?e.className+" ":"")+t.classes.join(" ")}),Gt({...Ne,...t.data},n,e._inline,e._ref)}}const Jt=o.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!1};return o.createElement(Zt,n)}));o.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!0};return o.createElement(Zt,n)}));const Qt="_icon_1czju_5",Xt=({width:e=20,height:t=20,className:n="",icon:o,onClick:i,color:r,vFlip:l=!1})=>m(Jt,{onClick:i,icon:o,width:e,height:t,className:`${Qt} ${n}`,color:r,vFlip:l}),en=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:bell-outline",width:e,height:t,className:n,onClick:o,color:i}),tn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:bell",width:e,height:t,className:n,onClick:o,color:i}),nn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"charm:menu-hamburger",width:e,height:t,className:n,onClick:o,color:i}),on=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:chevron-right",width:e,height:t,className:n,onClick:o,color:i}),rn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:chevron-left",width:e,height:t,className:n,onClick:o,color:i}),ln=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:chevron-double-left",width:e,height:t,className:n,onClick:o,color:i}),an=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:chevron-double-right",width:e,height:t,className:n,onClick:o,color:i}),sn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"fluent:document-bullet-list-24-filled",width:e,height:t,className:n,onClick:o,color:i}),cn=({width:e=20,height:t=20,className:n="",onClick:o,color:i=""})=>m(Xt,{icon:"fluent:document-pdf-20-filled",width:e,height:t,className:n,onClick:o,color:i}),dn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:view-dashboard",width:e,height:t,className:n,onClick:o,color:i}),un=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:view-dashboard-outline",width:e,height:t,className:n,onClick:o,color:i}),hn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:outline-people-alt",width:e,height:t,className:n,onClick:o,color:i}),pn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:sharp-people",width:e,height:t,className:n,onClick:o,color:i});function mn(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4zM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20m0-8"})})}function fn(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M4 21q-.825 0-1.412-.587T2 19V5q0-.825.588-1.412T4 3h16q.825 0 1.413.588T22 5v14q0 .825-.587 1.413T20 21zm0-2h16V5H4zm5-2q.425 0 .713-.288T10 16q0-.425-.288-.712T9 15H6q-.425 0-.712.288T5 16q0 .425.288.713T6 17zm5.55-4.825l-.725-.725q-.3-.3-.7-.287t-.7.312q-.275.3-.288.7t.288.7L13.85 14.3q.3.3.7.3t.7-.3l3.55-3.55q.3-.3.3-.7t-.3-.7q-.3-.3-.712-.3t-.713.3zM9 13q.425 0 .713-.288T10 12q0-.425-.288-.712T9 11H6q-.425 0-.712.288T5 12q0 .425.288.713T6 13zm0-4q.425 0 .713-.288T10 8q0-.425-.288-.712T9 7H6q-.425 0-.712.288T5 8q0 .425.288.713T6 9zM4 19V5z"})})}function gn(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M4 21q-.825 0-1.412-.587T2 19V5q0-.825.588-1.412T4 3h16q.825 0 1.413.588T22 5v14q0 .825-.587 1.413T20 21zm5-4q.425 0 .713-.288T10 16q0-.425-.288-.712T9 15H6q-.425 0-.712.288T5 16q0 .425.288.713T6 17zm5.55-4.825l-.725-.725q-.3-.3-.7-.287t-.7.312q-.275.3-.288.7t.288.7L13.85 14.3q.3.3.7.3t.7-.3l3.55-3.55q.3-.3.3-.7t-.3-.7q-.3-.3-.712-.3t-.713.3zM9 13q.425 0 .713-.288T10 12q0-.425-.288-.712T9 11H6q-.425 0-.712.288T5 12q0 .425.288.713T6 13zm0-4q.425 0 .713-.288T10 8q0-.425-.288-.712T9 7H6q-.425 0-.712.288T5 8q0 .425.288.713T6 9z"})})}const vn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:calendar-blank",width:e,height:t,className:n,onClick:o,color:i}),bn=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M6 4V1.5h2V4h8V1.5h2V4h4v18H2V4zM4 6v3h16V6zm16 5H4v9h16z"})}),xn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:calendar-range",width:e,height:t,className:n,onClick:o,color:i}),wn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:baseline-assignment",width:e,height:t,className:n,onClick:o,color:i}),yn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"material-symbols:assignment-outline",width:e,height:t,className:n,onClick:o,color:i}),Cn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:baseline-format-list-numbered",width:e,height:t,className:n,onClick:o,color:i}),kn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:message-processing",width:e,height:t,className:n,onClick:o,color:i}),Nn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:message-processing-outline",width:e,height:t,className:n,onClick:o,color:i}),In=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:report-box",width:e,height:t,className:n,onClick:o,color:i}),Mn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:report-box-outline",width:e,height:t,className:n,onClick:o,color:i}),_n=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:settings",width:e,height:t,className:n,onClick:o,color:i}),Tn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:settings-outline",width:e,height:t,className:n,onClick:o,color:i}),Sn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:baseline-sync",width:e,height:t,className:n,onClick:o,color:i,vFlip:!0}),Rn=({color:e="black",size:t="20",className:n=""})=>f("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,viewBox:`0 0 ${t} ${t}`,fill:"none",children:[m("path",{d:"M14.9875 14.1667C16.1366 14.1667 17.0691 13.2334 17.0691 12.0834C17.0691 10.9334 16.1366 10.0001 14.9875 10.0001C13.8385 10.0001 12.9059 10.9334 12.9059 12.0834C12.9059 13.2334 13.8385 14.1667 14.9875 14.1667ZM14.9875 15.2084C13.597 15.2084 10.8243 15.9084 10.8243 17.2917V17.8167C10.8243 18.1001 11.0575 18.3417 11.3489 18.3417H18.6345C18.9176 18.3417 19.159 18.1084 19.159 17.8167V17.2917C19.159 15.9084 16.3863 15.2084 14.9958 15.2084H14.9875Z",fill:e}),m("path",{d:"M4.99584 5.83342C6.14488 5.83342 7.07744 4.90008 7.07744 3.75008C7.07744 2.60008 6.14488 1.66675 4.99584 1.66675C3.8468 1.66675 2.91424 2.60008 2.91424 3.75008C2.91424 4.90008 3.8468 5.83342 4.99584 5.83342ZM4.99584 6.87508C3.60533 6.87508 0.832642 7.57508 0.832642 8.95842V9.48342C0.832642 9.76675 1.06578 10.0084 1.3572 10.0084H8.6428C8.9259 10.0084 9.16736 9.77508 9.16736 9.48342V8.95842C9.16736 7.57508 6.39467 6.87508 5.00417 6.87508H4.99584Z",fill:e}),m("path",{d:"M9.15156 16.4036V16.2574H6.61874C6.14757 16.2574 5.75868 15.8773 5.75868 15.4167V12.8729L7.04503 14.101L7.77047 13.3773L5.10802 10.8334L2.49792 13.4431L3.23832 14.1521L4.4798 12.9094H4.49476V15.4167C4.49476 16.5644 5.45204 17.5001 6.62622 17.5001H9.15904V16.4036H9.15156Z",fill:e}),m("path",{d:"M9.99915 3.59657V3.74277H13.3646C13.8358 3.74277 14.2247 4.12289 14.2247 4.58341V7.12727L12.9383 5.8992L12.2129 6.62289L14.8753 9.16675L17.4854 6.5571L16.745 5.84803L15.5035 7.09072H15.4886V4.58341C15.4886 3.43575 14.5313 2.50008 13.3571 2.50008H9.99168V3.59657H9.99915Z",fill:e})]}),En=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:round-person",width:e,height:t,className:n,onClick:o,color:i}),On=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:round-person-outline",width:e,height:t,className:n,onClick:o,color:i}),zn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:dots-vertical",width:e,height:t,className:n,onClick:o,color:i}),Pn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:outline-search",width:e,height:t,className:n,onClick:o,color:i}),Dn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"line-md:loading-twotone-loop",width:e,height:t,className:n,onClick:o,color:i}),Ln=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:baseline-arrow-drop-up",width:e,height:t,className:n,onClick:o,color:i}),Vn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:baseline-arrow-drop-down",width:e,height:t,className:n,onClick:o,color:i}),An=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"eva:archive-fill",width:e,height:t,className:n,onClick:o,color:i}),Fn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:baseline-download",width:e,height:t,className:n,onClick:o,color:i}),qn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:checkbox-marked-outline",width:e,height:t,className:n,onClick:o,color:i}),jn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:chevron-down",width:e,height:t,className:n,onClick:o,color:i}),Bn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:chevron-up",width:e,height:t,className:n,onClick:o,color:i}),Hn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:baseline-close",width:e,height:t,className:n,onClick:o,color:i}),$n=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"material-symbols:perm-media",width:e,height:t,className:n,onClick:o,color:i}),Wn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"material-symbols:perm-media-outline",width:e,height:t,className:n,onClick:o,color:i}),Un=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:inbox",width:e,height:t,className:n,onClick:o,color:i}),Kn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:inbox-outline",width:e,height:t,className:n,onClick:o,color:i}),Gn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:sharp-topic",width:e,height:t,className:n,onClick:o,color:i}),Yn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"akar-icons:drag-horizontal",width:e,height:t,className:n,onClick:o,color:i}),Zn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"fa6-regular:file-pdf",width:e,height:t,className:n,onClick:o,color:i}),Jn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"material-symbols:delete-outline",width:e,height:t,className:n,onClick:o,color:i}),Qn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:filter-variant",width:e,height:t,className:n,onClick:o,color:i}),Xn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"material-symbols:lock-outline",width:e,height:t,className:n,onClick:o,color:i}),eo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:baseline-dvr",width:e,height:t,className:n,onClick:o,color:i}),to=({width:e=20,height:t=20,className:n="",onClick:o,color:i="var(--colors-error-500)"})=>m(Xt,{icon:"mdi:error-outline",width:e,height:t,className:n,onClick:o,color:i}),no=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:replay",width:e,height:t,className:n,onClick:o,color:i}),oo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:calendar-blank-outline",width:e,height:t,className:n,onClick:o,color:i}),io=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:outline-link",width:e,height:t,className:n,onClick:o,color:i}),ro=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"material-symbols:fact-check-outline",width:e,height:t,className:n,onClick:o,color:i}),lo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"material-symbols:unknown-document-outline-rounded",width:e,height:t,className:n,onClick:o,color:i}),ao=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:list-status",width:e,height:t,className:n,onClick:o,color:i}),so=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:text-box-check-outline",width:e,height:t,className:n,onClick:o,color:i}),co=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ri:list-settings-line",width:e,height:t,className:n,onClick:o,color:i}),uo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"pajamas:earth",width:e,height:t,className:n,onClick:o,color:i}),ho=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"streamline:interface-setting-menu-1-button-parallel-horizontal-lines-menu-navigation-three-hamburger",width:e,height:t,className:n,onClick:o,color:i}),po=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"mdi:pencil-outline",width:e,height:t,className:n,onClick:o,color:i});function mo(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M12 5.99L19.53 19H4.47zM12 2L1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"})})}const fo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(Xt,{icon:"ic:outline-calendar-month",width:e,height:t,className:n,onClick:o,color:i});function go(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m5.86 10.31C16.23 21.22 14.28 22.45 12 23c-2.56-.61-4.7-2.07-6.42-4.37C3.86 16.34 3 13.8 3 11V5l9-4l9 4v6c0 2.39-.64 4.61-1.92 6.67l-2.91-2.91c.52-.79.83-1.76.83-2.76a5 5 0 0 0-5-5a5 5 0 0 0-5 5a5 5 0 0 0 5 5c1 0 1.97-.31 2.76-.83z"})})}const vo=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M6 21v-2h12v2z"})}),bo=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M6 18v-2h12v2zm6-12.4l6 6l-1.4 1.4L12 8.4L7.4 13L6 11.6z"})});function xo(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M18 8H6V6h12zm0 3H6V9h12zm0 3H6v-2h12zm4-10a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14l4 4z"})})}function wo(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:[m("path",{fill:"currentColor",d:"M14 12h4v1.5h-4zm0 3h4v1.5h-4z"}),m("path",{fill:"currentColor",d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9 0V4h2v5h-2zm9 13H4V9h5c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2h5z"}),m("circle",{cx:9,cy:13.5,r:1.5,fill:"currentColor"}),m("path",{fill:"currentColor",d:"M11.08 16.18c-.64-.28-1.34-.43-2.08-.43s-1.44.15-2.08.43c-.56.24-.92.78-.92 1.39V18h6v-.43c0-.61-.36-1.15-.92-1.39"})]})}function yo(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h8.925l-2 2H5v14h14v-6.95l2-2V19q0 .825-.587 1.413T19 21zm4-6v-4.25l9.175-9.175q.3-.3.675-.45t.75-.15q.4 0 .763.15t.662.45L22.425 3q.275.3.425.663T23 4.4q0 .375-.137.738t-.438.662L13.25 15zM21.025 4.4l-1.4-1.4zM11 13h1.4l5.8-5.8l-.7-.7l-.725-.7L11 11.575zm6.5-6.5l-.725-.7zl.7.7z"})})}function Co(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M18 12.998h-5v5a1 1 0 0 1-2 0v-5H6a1 1 0 0 1 0-2h5v-5a1 1 0 0 1 2 0v5h5a1 1 0 0 1 0 2"})})}function ko(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m("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 No(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M18.85 21.975q-.2 0-.375-.062t-.325-.213l-5.1-5.1q-.15-.15-.213-.325t-.062-.375t.063-.375t.212-.325l2.125-2.125q.15-.15.325-.212t.375-.063t.375.063t.325.212l5.1 5.1q.15.15.213.325t.062.375t-.062.375t-.213.325L19.55 21.7q-.15.15-.325.213t-.375.062m0-2.375l.725-.725L15.9 15.2l-.725.725zM5.125 22q-.2 0-.387-.075T4.4 21.7l-2.1-2.1q-.15-.15-.225-.338T2 18.876t.075-.375t.225-.325l5.3-5.3h2.125l.85-.85L6.45 7.9H5.025L2 4.875L4.825 2.05L7.85 5.075V6.5l4.125 4.125l2.9-2.9L13.8 6.65l1.4-1.4h-2.825l-.7-.7L15.225 1l.7.7v2.825l1.4-1.4l3.55 3.55q.425.425.65.963t.225 1.137t-.225 1.15t-.65.975L18.75 8.775l-1.4 1.4l-1.05-1.05l-5.175 5.175v2.1l-5.3 5.3q-.15.15-.325.225T5.125 22m0-2.4l4.25-4.25v-.725H8.65l-4.25 4.25zm0 0l-.725-.725l.375.35zm13.725 0l.725-.725z"})})}function Io(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M18.85 21.975q-.2 0-.375-.062t-.325-.213l-5.1-5.1q-.15-.15-.213-.325t-.062-.375t.063-.375t.212-.325l2.125-2.125q.15-.15.325-.212t.375-.063t.375.063t.325.212l5.1 5.1q.15.15.213.325t.062.375t-.062.375t-.213.325L19.55 21.7q-.15.15-.325.213t-.375.062M5.125 22q-.2 0-.387-.075T4.4 21.7l-2.1-2.1q-.15-.15-.225-.338T2 18.876t.075-.375t.225-.325l5.3-5.3h2.125l.85-.85L6.45 7.9H5.025L2 4.875L4.825 2.05L7.85 5.075V6.5l4.125 4.125l2.9-2.9L13.8 6.65l1.4-1.4h-2.825l-.7-.7L15.225 1l.7.7v2.825l1.4-1.4l3.55 3.55q.425.425.65.963t.225 1.137t-.225 1.15t-.65.975L18.75 8.775l-1.4 1.4l-1.05-1.05l-5.175 5.175v2.1l-5.3 5.3q-.15.15-.325.225T5.125 22"})})}function Mo(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 9V4h2V2H6v2h2v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1l1-1v-7H19v-2c-1.66 0-3-1.34-3-3"})})}function _o(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M20 6c.58 0 1.05.2 1.42.59c.38.41.58.86.58 1.41v11c0 .55-.2 1-.58 1.41c-.37.39-.84.59-1.42.59H4c-.58 0-1.05-.2-1.42-.59C2.2 20 2 19.55 2 19V8c0-.55.2-1 .58-1.41C2.95 6.2 3.42 6 4 6h4V4c0-.58.2-1.05.58-1.42C8.95 2.2 9.42 2 10 2h4c.58 0 1.05.2 1.42.58c.38.37.58.84.58 1.42v2zM4 8v11h16V8zm10-2V4h-4v2z"})})}const To=i((({dataTest:e,readOnly:t,onDelete:n,...o},i)=>m(b,{...o,ref:i,"data-test":e,deleteIcon:t?void 0:m(Hn,{height:18,width:18,className:"min-w-[18px]"}),onDelete:t?void 0:n,sx:{border:"1px solid",backgroundColor:"white",borderColor:"var(--colors-delta-300)",color:"var(--colors-delta-800)",...t?{pointerEvents:"none","&:hover":{borderColor:"var(--colors-delta-300)",backgroundColor:"white"}}:{"&:hover":{borderColor:"var(--colors-gama-200)",backgroundColor:"var(--colors-gama-50)"},"&:focus":{outline:"none",borderColor:"var(--colors-gama-400)",backgroundColor:"var(--colors-gama-50)",boxShadow:"0 0 0 1px inset var(--colors-gama-400)"},"&:active":{borderColor:"var(--colors-gama-400)",backgroundColor:"var(--colors-gama-50)",boxShadow:"0 0 0 2px inset var(--colors-gama-400)"},"& .MuiChip-deleteIcon":{border:"1px solid",borderColor:"var(--colors-delta-100)",color:"var(--colors-delta-700)",backgroundColor:"var(--colors-delta-50)",borderRadius:"50%","&:hover":{borderColor:"var(--colors-delta-100)",backgroundColor:"var(--colors-delta-50)",color:"var(--colors-delta-700)"}}},...o.sx}}))),So=({dataTest:e,...t})=>m(x,{...t,"data-test":e,sx:{...t.sx,"&.MuiCheckbox-root":{color:"var(--colors-delta-500) !important"},"&.MuiCheckbox-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.MuiCheckbox-indeterminate":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.Mui-disabled":{color:"var(--colors-delta-200) !important"},"&.MuiCheckbox-root .PrivateSwitchBase-input":{height:"100% !important",width:"100% !important"}}}),Ro=({dataTest:e,...t})=>m(w,{...t,"data-test":e,sx:{"&":{color:"var(--colors-delta-500)"},"& input":{height:"100% !important",width:"100% !important"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),Eo=i((({type:e="checkbox",checked:t,size:n="small",...o},i)=>{const r="checkbox"===e,l=r?So:Ro,a=!o.readOnly&&!r&&t,s={borderColor:"var(--colors-gama-300)",backgroundColor:"var(--colors-gama-25)",boxShadow:"0 0 0 1px inset var(--colors-gama-300)"};return m(To,{ref:i,avatar:m(l,{dataTest:o.dataTest,disableRipple:!0,checked:t,size:n,sx:{pointerEvents:"none"}}),clickable:!0,tabIndex:0,...o,sx:{...a&&{outline:"none",borderColor:"var(--colors-gama-400)",boxShadow:"0 0 0 1px inset var(--colors-gama-400)",backgroundColor:"var(--colors-gama-50)","&:hover":s},...t&&{"& .MuiChip-avatar":{"& .MuiSvgIcon-root":{color:"var(--colors-gama-500)"}}},...o.readOnly&&{"& .MuiChip-avatar":{"& .MuiSvgIcon-root":{color:"var(--colors-delta-500)"},"& .MuiCheckbox-root, & .MuiRadio-root":{color:"var(--colors-delta-500)"},"& .Mui-checked":{color:"var(--colors-delta-500)"}}},"&:focus:hover":s,...o.sx}})})),Oo=e=>{const{componentsProps:t,...n}=e,o=null==t?void 0:t.tooltip;return m(y,{TransitionComponent:ee,TransitionProps:{timeout:300},enterDelay:500,placement:"top",componentsProps:{...t,tooltip:{...o??{},style:{...(null==o?void 0:o.style)||{}},sx:{borderRadius:"3px","& .MuiTooltip-arrow":{color:"#363E4A"},color:"white",boxShadow:"0px 1px 4px 0px rgba(0, 0, 0, 0.25)",display:"flex",padding:"4px 8px",alignItems:"center",fontSize:"12px",lineHeight:"16px",letterSpacing:"0.24px",bgcolor:"#363E4A",wordBreak:"break-word",...null==o?void 0:o.sx}}},...n})},zo=e=>m(C,{...e});function Po(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Po(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Do(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=Po(e))&&(o&&(o+=" "),o+=t);return o}const Lo="_styled-label-md_jbn3o_1",Vo="_styled-label-base_jbn3o_10",Ao="_styled-label-lg_jbn3o_19",Fo="_styled-label-xl_jbn3o_27",qo=({title:e,onClick:t,className:n,dataTest:o,size:i="base"})=>{const r=(({size:e})=>{switch(e){case"md":return Lo;case"lg":return Ao;case"xl":return Fo;default:return Vo}})({size:i});return m("div",{className:Do(r,n),onClick:t,"data-test":o,children:e})},jo="_asma-ui-core-button_h1men_1",Bo={contained:"_contained_h1men_27",outlined:"_outlined_h1men_139",text:"_text_h1men_251",textGray:"_textGray_h1men_363",textWhite:"_textWhite_h1men_419",large:"_large_h1men_78",small:"_small_h1men_73",medium:"_medium_h1men_68",error:"_error_h1men_83",common:"_common_h1men_27"},Ho=({variant:e="contained",className:t="",size:n="medium",children:o,refLink:i,startIcon:r,endIcon:l,dataTest:a,error:s,...c})=>{const d="large"===n||"medium"===n;return f("button",{...c,className:Do(jo,Bo[e],Bo[s?"error":"common"],Bo[n],t),ref:i,"data-test":a,children:[r,o&&m("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",justifyContent:"center",gap:d?"8px":"4px",paddingLeft:d?"8px":"4px",paddingRight:d?"8px":"4px"},children:o}),l]})},$o="_styled-dialog-root_1st3i_1",Wo="_styled-top-header_1st3i_6",Uo="_styled-dialog-close_1st3i_13",Ko="_styled-dialog-info_1st3i_20",Go="_styled-dialog-label_1st3i_27",Yo="_styled-dialog-title_1st3i_37";function Zo(){const e=function(){const[e,t]=l(window.innerWidth),n=()=>{t(window.innerWidth)};return a((()=>(n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n))),[]),e}();return(e=>e?e<=768:window.innerWidth<768)(e)}const Jo=({onCloseText:e,children:t,dataTest:n,showCloseIcon:o=!0,dialogLabel:i,dialogTitle:r,dialogHeaderNode:l,...a})=>{const s=Zo();return f(k,{"data-test":n,style:{zIndex:999,...a.style},fullScreen:!!s||a.fullScreen,...a,children:[m("div",{className:$o,children:i||r||o?f("div",{className:Wo,children:[f("div",{className:Ko,children:[i&&m("div",{className:Go,children:i}),r&&m("div",{className:Yo,children:r})]}),o&&f("div",{className:Uo,children:[l,m(Ho,{dataTest:`close-button-${n}`,variant:"textGray",size:"small",endIcon:m(Hn,{width:20,height:20}),onClick:e=>{a.onClose&&a.onClose(e,"escapeKeyDown")},style:{color:"var(--colors-grey-800)",paddingRight:"6px",paddingLeft:"6px"},children:e})]})]}):null}),t]})},Qo="_styled-dialog-actions-root_1yp8r_1",Xo="_styled-dialog-actions_1yp8r_1",ei="_action-button-wrapper_1yp8r_17";function ti(...e){return te(Do(e))}const ni=e=>m(N,{...e,"data-test":"styled-dialog-actions",classes:{...e.classes,root:Qo},children:m("div",{className:ti(Xo,e.className),children:o.Children.map(e.children,(e=>m("div",{className:ei,children:e})))})}),oi="_styled-dialog-content_d2vki_1",ii=({children:e,classes:t,className:n,...o})=>m(I,{...o,"data-test":"styled-dialog-content",classes:{...t,root:oi},className:n,children:e}),ri="_styled-dialog-title-root_mcspk_1",li=({children:e,...t})=>e?m(M,{...t,"data-test":"styled-dialog-title",classes:{...t.classes,root:ri},children:e}):null;function ai(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M7 9H2V7h5zm0 3H2v2h5zm13.59 7l-3.83-3.83c-.8.52-1.74.83-2.76.83c-2.76 0-5-2.24-5-5s2.24-5 5-5s5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3s1.35 3 3 3s3-1.35 3-3M2 19h10v-2H2z"})})}const si=({emptyText:e,isEmpty:t=!0,className:n=""})=>t?f("div",{"data-test":"empty-page-container",className:`flex animate-opacity-in min-h-[106px] items-center w-full h-full justify-center gap-2 duration-300 text-gray-600 text-sm ${n}`,children:[m(ai,{"data-test":"empty-page-icon",width:24,height:24,className:"text-gray-600 cursor-default"}),m("span",{className:"font-normal",children:e})]}):null;function ci(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M10.83 8H21V6H8.83zm5 5H18v-2h-4.17zM14 16.83V18h-4v-2h3.17l-3-3H6v-2h2.17l-3-3H3V6h.17L1.39 4.22L2.8 2.81l18.38 18.38l-1.41 1.41z"})})}const di={en:{emptyText:"No data",filterTitle:"Your information is currently filtered.",filteredDescription:"Reset filters to see all results",defaultFilteredDescription:"Reset filters to see default results",resetButtonText:"Reset filters"},no:{emptyText:"Ingen data",filterTitle:"Din informasjon er filtrert.",filteredDescription:"Nullstill filtre for å se alle resultater",defaultFilteredDescription:"Nullstill filtre for å se standard resultater",resetButtonText:"Nullstill filtre"}},ui=({dataTest:e,emptyText:t,locale:n="en",isFiltered:o=!1,filteredByDefault:i=!1,filterTitle:r,filteredDescription:l,resetButtonText:a,onResetFilters:s,actionIcon:c=m(ci,{width:24,height:24,color:"currentColor"}),className:d,emptyPageClassName:u,filterContentClassName:h,resetButtonClassName:p})=>{const g=di[n]??di.en,v=t??g.emptyText,b=r??g.filterTitle,x=i?g.defaultFilteredDescription:l??g.filteredDescription,w=a??g.resetButtonText;return f("div",{"data-test":e,className:ti("flex size-full flex-col items-center justify-center gap-4 py-4 text-center",d),children:[m("div",{children:m(si,{isEmpty:!0,emptyText:v,className:ti("py-6",u)})}),o&&f("div",{className:ti("flex flex-col items-center gap-2",h),children:[m("div",{className:"font-semibold text-delta-800",children:b}),m("div",{className:"text-delta-600",children:x}),s&&m(Ho,{size:"small",variant:"text",dataTest:`${e}-reset`,onClick:s,startIcon:c,className:ti("inline-flex items-center text-gama-700 hover:text-gama-800",p),children:m("span",{children:w})})]})]})},hi={small:16,medium:24,large:32},pi=({isLoading:e,className:t="",size:n="medium"})=>{if(!e)return null;const o=hi[n];return m("div",{className:Do("flex items-center justify-center h-[50px] w-full text-gama-500 animate-opacity-appear-3",t),children:m(Dn,{width:o,height:o})})};function mi({controlled:e,default:t,name:o,state:i="value"}){const{current:r}=n.useRef(void 0!==e),[l,a]=n.useState(t),s=r?e:l;if("production"!==process.env.NODE_ENV){n.useEffect((()=>{r!==(void 0!==e)&&console.error([`Base UI: A component is changing the ${r?"":"un"}controlled ${i} state of ${o} to be ${r?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[i,o,e]);const{current:l}=n.useRef(t);n.useEffect((()=>{!r&&JSON.stringify(l)!==JSON.stringify(t)&&console.error([`Base UI: A component is changing the default ${i} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join("\n"))}),[JSON.stringify(t)])}return[s,n.useCallback((e=>{r||a(e)}),[])]}const fi={};function gi(e,t){const o=n.useRef(fi);return o.current===fi&&(o.current=e(t)),o}const vi=n[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],bi=vi&&vi!==n.useLayoutEffect?vi:e=>e();function xi(e){const t=gi(wi).current;return t.next=e,bi(t.effect),t.trampoline}function wi(){const e={next:void 0,callback:yi,trampoline:(...t)=>{var n;return null==(n=e.callback)?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function yi(){if("production"!==process.env.NODE_ENV)throw new Error("Base UI: Cannot call an event handler while rendering.")}function Ci(e,t,n,o){const i=gi(ki).current;return function(e,t,n,o,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==i}(i,e,t,n,o)&&Ni(i,[e,t,n,o]),i.callback}function ki(){return{callback:null,cleanup:null,refs:[]}}function Ni(e,t){e.refs=t,t.every((e=>null==e))?e.callback=null:e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){const o=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const i=t[e];if(null!=i)switch(typeof i){case"function":{const t=i(n);"function"==typeof t&&(o[e]=t);break}case"object":i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const n=t[e];if(null!=n)switch(typeof n){case"function":{const t=o[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}const Ii=typeof document<"u"?n.useLayoutEffect:()=>{},Mi={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1};let _i=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}({}),Ti=function(e){return e.disabled="data-disabled",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 Si={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Ri={valid:e=>null===e?null:e?{[Ti.valid]:""}:{[Ti.invalid]:""}};function Ei(e){return n.useMemo((()=>({checked:t=>e.indeterminate?{}:t?{[_i.checked]:""}:{[_i.unchecked]:""},...Ri})),[e.indeterminate])}const Oi=parseInt(n.version,10);function zi(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}const Pi={};function Di(e,t,n,o,i){let r={...Fi(e,Pi)};return t&&(r=Li(r,t)),n&&(r=Li(r,n)),o&&(r=Li(r,o)),i&&(r=Li(r,i)),r}function Li(e,t){return Ai(t)?t(e):function(e,t){if(!t)return e;for(const n in t){const o=t[n];switch(n){case"style":e[n]=zi(e.style,o);break;case"className":e[n]=Bi(e.className,o);break;default:Vi(n,o)?e[n]=qi(e[n],o):e[n]=o}}return e}(e,t)}function Vi(e,t){const n=e.charCodeAt(0),o=e.charCodeAt(1),i=e.charCodeAt(2);return 111===n&&110===o&&i>=65&&i<=90&&("function"==typeof t||typeof t>"u")}function Ai(e){return"function"==typeof e}function Fi(e,t){return Ai(e)?e(t):e??Pi}function qi(e,t){return t?e?n=>{if(function(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}(n)){const o=n;ji(o);const i=t(o);return o.baseUIHandlerPrevented||null==e||e(o),i}const o=t(n);return null==e||e(n),o}:t:e}function ji(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Bi(e,t){return t?e?t+" "+e:t:e}function Hi(){}const $i=Object.freeze([]),Wi=Object.freeze({});function Ui(e,t,o={}){const i=t.render,r=function(e,t={}){const{className:n,render:o}=e,{state:i=Wi,ref:r,props:l,stateAttributesMapping:a,enabled:s=!0}=t,c=s?function(e,t){return"function"==typeof e?e(t):e}(n,i):void 0,d=s?function(e,t){const n={};for(const o in e){const i=e[o];if(null!=t&&t.hasOwnProperty(o)){const e=t[o](i);null!=e&&Object.assign(n,e)}else!0===i?n[`data-${o.toLowerCase()}`]="":i&&(n[`data-${o.toLowerCase()}`]=i.toString())}return n}(i,a):Wi,u=s?zi(d,Array.isArray(l)?function(e){if(0===e.length)return Pi;if(1===e.length)return Fi(e[0],Pi);let t={...Fi(e[0],Pi)};for(let n=1;n<e.length;n+=1)t=Li(t,e[n]);return t}(l):l)??Wi:Wi;return typeof document<"u"&&(s?Array.isArray(r)?u.ref=function(e){const t=gi(ki).current;return function(e,t){return e.refs.length!==t.length||e.refs.some(((e,n)=>e!==t[n]))}(t,e)&&Ni(t,e),t.callback}([u.ref,Ki(o),...r]):u.ref=Ci(u.ref,Ki(o),r):Ci(null,null)),s?(void 0!==c&&(u.className=Bi(u.className,c)),u):Wi}(t,o);if(!1===o.enabled)return null;return function(e,t,o,i){if(t){if("function"==typeof t)return t(o,i);const e=Di(o,t.props);return e.ref=o.ref,n.cloneElement(t,e)}if(e&&"string"==typeof e)return function(e,t){return"button"===e?m("button",{type:"button",...t}):"img"===e?m("img",{alt:"",...t}):n.createElement(e,t)}(e,o);throw new Error("Base UI: Render element or function are not defined.")}(e,i,r,o.state??Wi)}function Ki(e){return e&&"function"!=typeof e?function(e){return Oi>=e}(19)?e.props.ref:e.ref:null}const Gi={...n};let Yi=0;const Zi=Gi.useId;function Ji(e,t){if(void 0!==Zi){const n=Zi();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){const[o,i]=n.useState(e),r=e||o;return n.useEffect((()=>{null==o&&(Yi+=1,i(`${t}-${Yi}`))}),[o,t]),r}(e,t)}function Qi(e){return Ji(e,"base-ui")}function Xi(){return typeof window<"u"}function er(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function tr(e){return!!Xi()&&(e instanceof HTMLElement||e instanceof er(e).HTMLElement)}let nr;function or(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");nr.has(t)||(nr.add(t),console.error(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(nr=new Set);const ir=n.createContext(void 0);function rr(e=!1){const t=n.useContext(ir);if(void 0===t&&!e)throw new Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return t}function lr(e={}){const{disabled:t=!1,focusableWhenDisabled:o,tabIndex:i=0,native:r=!0}=e,l=n.useRef(null),a=void 0!==rr(!0),s=xi((()=>{const e=l.current;return!("A"!==(null==e?void 0:e.tagName)||null==e||!e.href)})),{props:c}=function(e){const{focusableWhenDisabled:t,disabled:o,composite:i=!1,tabIndex:r=0,isNativeButton:l}=e,a=i&&!1!==t,s=i&&!1===t;return{props:n.useMemo((()=>{const e={onKeyDown(e){o&&t&&"Tab"!==e.key&&e.preventDefault()}};return i||(e.tabIndex=r,!l&&o&&(e.tabIndex=t?r:-1)),(l&&(t||a)||!l&&o)&&(e["aria-disabled"]=o),l&&(!t||s)&&(e.disabled=o),e}),[i,o,t,a,s,l,r])}}({focusableWhenDisabled:o,disabled:t,composite:a,tabIndex:i,isNativeButton:r});"production"!==process.env.NODE_ENV&&n.useEffect((()=>{if(!l.current)return;const e="BUTTON"===l.current.tagName;r?e||or("A component that acts as a button was not rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is a real <button>, or set the `nativeButton` prop on the component to `false`."):e&&or("A component that acts as a button was rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is not a real <button>, or set the `nativeButton` prop on the component to `true`.")}),[r]);const d=n.useCallback((()=>{const e=l.current;(function(e){return tr(e)&&"BUTTON"===e.tagName})(e)&&a&&t&&void 0===c.disabled&&e.disabled&&(e.disabled=!1)}),[t,c.disabled,a]);Ii(d,[d]);return{getButtonProps:n.useCallback(((e={})=>{const{onClick:n,onMouseDown:o,onKeyUp:i,onKeyDown:l,onPointerDown:a,...d}=e;return Di({type:r?"button":void 0,onClick(e){t?e.preventDefault():null==n||n(e)},onMouseDown(e){t||null==o||o(e)},onKeyDown(e){if(t||(ji(e),null==l||l(e)),e.baseUIHandlerPrevented)return;const o=e.target===e.currentTarget&&!r&&!s()&&!t,i="Enter"===e.key,a=" "===e.key;o&&((a||i)&&e.preventDefault(),i&&(null==n||n(e)))},onKeyUp(e){t||(ji(e),null==i||i(e)),!e.baseUIHandlerPrevented&&e.target===e.currentTarget&&!r&&!t&&" "===e.key&&(null==n||n(e))},onPointerDown(e){t?e.preventDefault():null==a||a(e)}},r?void 0:{role:"button"},c,d)}),[t,c,r,s]),buttonRef:xi((e=>{l.current=e,d()}))}}"production"!==process.env.NODE_ENV&&(ir.displayName="CompositeRootContext");const ar=n.createContext({invalid:void 0,controlId:void 0,setControlId:Hi,labelId:void 0,setLabelId:Hi,messageIds:[],setMessageIds:Hi,name:void 0,validityData:{state:Si,errors:[],error:"",value:"",initialValue:null},setValidityData:Hi,disabled:void 0,touched:!1,setTouched:Hi,dirty:!1,setDirty:Hi,filled:!1,setFilled:Hi,focused:!1,setFocused:Hi,validate:()=>null,validationMode:"onBlur",validationDebounceTime:0,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1}});function sr(e=!0){const t=n.useContext(ar);if(t.setControlId===Hi&&!e)throw new Error("Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");return t}"production"!==process.env.NODE_ENV&&(ar.displayName="FieldRootContext");const cr=[];function dr(e){n.useEffect(e,cr)}class ur{constructor(){t(this,"currentId",0),t(this,"clear",(()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)})),t(this,"disposeEffect",(()=>this.clear))}static create(){return new ur}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}isStarted(){return 0!==this.currentId}}const hr=n.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Hi});function pr(){return n.useContext(hr)}function mr(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}"production"!==process.env.NODE_ENV&&(hr.displayName="FormContext");const fr=Object.keys(Si);function gr(){const{setValidityData:e,validate:t,messageIds:o,validityData:i,validationMode:r,validationDebounceTime:l,invalid:a,markedDirtyRef:s,controlId:c,state:d,name:u}=sr(),{formRef:h,clearErrors:p}=pr(),m=function(){const e=gi(ur.create).current;return dr(e.disposeEffect),e}(),f=n.useRef(null),g=xi((async(n,o=!1)=>{const r=f.current;if(!r)return;if(o){if(!1!==d.valid)return;const t=r.validity;if(!t.valueMissing){const t={value:n,state:{...Si,valid:!0},error:"",errors:[],initialValue:i.initialValue};if(r.setCustomValidity(""),c){const e=h.current.fields.get(c);e&&h.current.fields.set(c,{...e,...mr(t,!1)})}return void e(t)}const o=fr.reduce(((e,n)=>(e[n]=t[n],e)),{});if(!o.valid&&!function(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(const n of fr)"valid"!==n&&("valueMissing"===n&&(t=e[n]),e[n]&&(t=!1));return t}(o))return}m.clear();let l=null,u=[];const p=function(e){const t=fr.reduce(((t,n)=>(t[n]=e.validity[n],t)),{});let n=!1;for(const e of fr)if("valid"!==e)if("valueMissing"===e&&t[e])n=!0;else if(t[e])return t;return n&&!s.current&&(t.valid=!0,t.valueMissing=!1),t}(r);let g;if(r.validationMessage)g=r.validationMessage,u=[r.validationMessage];else{const e=Array.from(h.current.fields.values()).reduce(((e,t)=>{var n,o;return t.name&&t.getValueRef&&(e[t.name]=null==(o=(n=t.getValueRef).current)?void 0:o.call(n)),e}),{}),o=t(n,e);l="object"==typeof o&&null!==o&&"then"in o?await o:o,null!==l&&(p.valid=!1,p.customError=!0,Array.isArray(l)?(u=l,r.setCustomValidity(l.join("\n"))):l&&(u=[l],r.setCustomValidity(l)))}const v={value:n,state:p,error:g??(Array.isArray(l)?l[0]:l??""),errors:u,initialValue:i.initialValue};if(c){const e=h.current.fields.get(c);e&&h.current.fields.set(c,{...e,...mr(v,a)})}e(v)})),v=n.useCallback(((e={})=>Di({...o.length&&{"aria-describedby":o.join(" ")},...!1===d.valid&&{"aria-invalid":!0}},e)),[o,d.valid]),b=n.useCallback(((e={})=>Di({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(p(u),"onChange"!==r)return void g(e.currentTarget.value,!0);if(a)return;const t=e.currentTarget;""!==t.value?(m.clear(),l?m.start(l,(()=>{g(t.value)})):g(t.value)):g(t.value)}},v(e))),[v,p,u,m,g,a,r,l]);return n.useMemo((()=>({getValidationProps:v,getInputValidationProps:b,inputRef:f,commitValidation:g})),[v,b,g])}function vr(e){const t=gi(br,e).current;return t.next=e,Ii(t.effect),t}function br(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function xr(e){const{formRef:t}=pr(),{invalid:n,markedDirtyRef:o,validityData:i,setValidityData:r}=sr(),{enabled:l=!0,value:a,id:s,name:c,controlRef:d,commitValidation:u}=e,h=vr(e.getValue);Ii((()=>{var e;if(!l)return;let t=a;void 0===t&&(t=null==(e=h.current)?void 0:e.call(h)),null===i.initialValue&&t!==i.initialValue&&r((e=>({...e,initialValue:t})))}),[l,r,a,i.initialValue,h]),Ii((()=>{l&&s&&t.current.fields.set(s,{controlRef:d,validityData:mr(i,n),validate(){var e;let t=a;void 0===t&&(t=null==(e=h.current)?void 0:e.call(h)),o.current=!0,ne.flushSync((()=>u(t)))},getValueRef:h,name:c})}),[u,d,l,t,h,s,n,o,c,i,a]),Ii((()=>{const e=t.current.fields;return()=>{s&&e.delete(s)}}),[t,s])}const wr=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(wr.displayName="CheckboxGroupContext");const yr=n.createContext(void 0);function Cr(e,t,n){let o=!1,i=!1;const r=n??Wi;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){i=!0},get isCanceled(){return o},get isPropagationAllowed(){return i},...r}}"production"!==process.env.NODE_ENV&&(yr.displayName="CheckboxRootContext");const kr={},Nr=n.forwardRef((function(e,t){const{checked:o,className:i,defaultChecked:r=!1,disabled:l=!1,id:a,indeterminate:s=!1,inputRef:c,name:d,onCheckedChange:u,parent:h=!1,readOnly:p=!1,render:g,required:v=!1,value:b,nativeButton:x=!0,...w}=e,{clearErrors:y}=pr(),{disabled:C,labelId:k,name:N,setControlId:I,setDirty:M,setFilled:_,setFocused:T,setTouched:S,state:R,validationMode:E,validityData:O}=sr(),z=function(e=!0){const t=n.useContext(wr);if(void 0===t&&!e)throw new Error("Base UI: CheckboxGroupContext is missing. CheckboxGroup parts must be placed within <CheckboxGroup>.");return t}(),P=null==z?void 0:z.parent,D=P&&z.allValues,L=C||(null==z?void 0:z.disabled)||l,V=N??d,A=b??V;let F={};D&&(h?F=z.parent.getParentProps():A&&(F=z.parent.getChildProps(A)));const q=xi(u),{checked:j=o,indeterminate:B=s,onCheckedChange:H,...$}=F,W=null==z?void 0:z.value,U=null==z?void 0:z.setValue,K=null==z?void 0:z.defaultValue,G=n.useRef(null),{getButtonProps:Y,buttonRef:Z}=lr({disabled:L,native:x}),J=gr(),Q=(null==z?void 0:z.fieldControlValidation)??J,[X,ee]=mi({controlled:A&&W&&!h?W.includes(A):j,default:A&&K&&!h?K.includes(A):r,name:"Checkbox",state:"checked"}),te=Qi(a);Ii((()=>{const e=null==G?void 0:G.current;if(e)return z?I(a??null):null==e.closest("label")&&I(te),()=>{I(void 0)}}),[z,te,a,I]),xr({enabled:!z,id:te,commitValidation:Q.commitValidation,value:X,controlRef:G,name:V,getValue:()=>X});const ne=n.useRef(null),oe=Ci(c,ne,Q.inputRef);Ii((()=>{ne.current&&(ne.current.indeterminate=B,X&&_(!0))}),[X,B,_]);const ie=xi((()=>T(!0))),re=xi((()=>{const e=ne.current;e&&(S(!0),T(!1),"onBlur"===E&&Q.commitValidation(z?W:e.checked))})),le=xi((e=>{var t;e.defaultPrevented||p||(e.preventDefault(),null==(t=ne.current)||t.click())})),ae=Di({checked:X,disabled:L,name:h?void 0:V,id:`${te}-input`,required:v,ref:oe,style:Mi,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked,n=Cr("none",e.nativeEvent);if(null==H||H(t,n),q(t,n),!n.isCanceled&&(y(V),M(t!==O.initialValue),ee(t),z||(_(t),"onChange"===E?Q.commitValidation(t):Q.commitValidation(t,!0)),A&&W&&U&&!h)){const e=t?[...W,A]:W.filter((e=>e!==A));U(e,n),_(e.length>0),"onChange"===E?Q.commitValidation(e):Q.commitValidation(e,!0)}},onFocus(){var e;null==(e=G.current)||e.focus()}},void 0!==b?{value:(z?X&&b:b)||""}:kr,z?Q.getValidationProps:Q.getInputValidationProps),se=D?!!j:X,ce=D&&B||s;n.useEffect((()=>{P&&A&&P.disabledStatesRef.current.set(A,L)}),[P,L,A]);const de=n.useMemo((()=>({...R,checked:se,disabled:L,readOnly:p,required:v,indeterminate:ce})),[R,se,L,p,v,ce]),ue=Ei(de),he=Ui("button",e,{state:de,ref:[Z,G,t,null==z?void 0:z.registerControlRef],props:[{id:te,role:"checkbox",disabled:L,"aria-checked":B?"mixed":X,"aria-readonly":p||void 0,"aria-required":v||void 0,"aria-labelledby":k,"data-parent":h?"":void 0,onFocus:ie,onBlur:re,onClick:le},Q.getValidationProps,w,$,Y],stateAttributesMapping:ue});return f(yr.Provider,{value:de,children:[he,!X&&!z&&e.name&&!h&&m("input",{type:"hidden",name:e.name,value:"off"}),m("input",{...ae})]})}));"production"!==process.env.NODE_ENV&&(Nr.displayName="CheckboxRoot");const Ir=null;let Mr=globalThis.requestAnimationFrame;const _r=new class{constructor(){t(this,"callbacks",[]),t(this,"callbacksCount",0),t(this,"nextId",1),t(this,"startId",1),t(this,"isScheduled",!1),t(this,"tick",(e=>{var t;this.isScheduled=!1;const n=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let o=0;o<n.length;o+=1)null==(t=n[o])||t.call(n,e)}))}request(e){const t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;const n="test"===process.env.NODE_ENV&&Mr!==requestAnimationFrame&&(Mr=requestAnimationFrame,!0);return(!this.isScheduled||n)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){const t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class Tr{constructor(){t(this,"currentId",Ir),t(this,"cancel",(()=>{this.currentId!==Ir&&(_r.cancel(this.currentId),this.currentId=Ir)})),t(this,"disposeEffect",(()=>this.cancel))}static create(){return new Tr}static request(e){return _r.request(e)}static cancel(e){return _r.cancel(e)}request(e){this.cancel(),this.currentId=_r.request((()=>{this.currentId=Ir,e()}))}}function Sr(e,t=!1){const n=function(){const e=gi(Tr.create).current;return dr(e.disposeEffect),e}();return xi(((o,i=null)=>{if(n.cancel(),null==e)return;let r;if("current"in e){if(null==e.current)return;r=e.current}else r=e;"function"!=typeof r.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED?o():n.request((()=>{function e(){r&&Promise.allSettled(r.getAnimations().map((e=>e.finished))).then((()=>{null!=i&&i.aborted||ne.flushSync(o)}))}t?n.request(e):e()}))}))}function Rr(e){const{enabled:t=!0,open:o,ref:i,onComplete:r}=e,l=vr(o),a=xi(r),s=Sr(i,o);n.useEffect((()=>{t&&s((()=>{o===l.current&&a()}))}),[t,o,a,s,l])}function Er(e,t=!1,o=!1){const[i,r]=n.useState(e&&t?"idle":void 0),[l,a]=n.useState(e);return e&&!l&&(a(!0),r("starting")),!e&&l&&"ending"!==i&&!o&&r("ending"),!e&&!l&&"ending"===i&&r(void 0),Ii((()=>{if(!e&&l&&"ending"!==i&&o){const e=Tr.request((()=>{r("ending")}));return()=>{Tr.cancel(e)}}}),[e,l,i,o]),Ii((()=>{if(!e||t)return;const n=Tr.request((()=>{ne.flushSync((()=>{r(void 0)}))}));return()=>{Tr.cancel(n)}}),[t,e]),Ii((()=>{if(!e||!t)return;e&&l&&"idle"!==i&&r("starting");const n=Tr.request((()=>{r("idle")}));return()=>{Tr.cancel(n)}}),[t,e,l,r,i]),n.useMemo((()=>({mounted:l,setMounted:a,transitionStatus:i})),[l,i])}let Or=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const zr={[Or.startingStyle]:""},Pr={[Or.endingStyle]:""},Dr={transitionStatus:e=>"starting"===e?zr:"ending"===e?Pr:null},Lr=n.forwardRef((function(e,t){const{render:o,className:i,keepMounted:r=!1,...l}=e,a=function(){const e=n.useContext(yr);if(void 0===e)throw new Error("Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.");return e}(),s=a.checked||a.indeterminate,{transitionStatus:c,setMounted:d}=Er(s),u=n.useRef(null),h=n.useMemo((()=>({...a,transitionStatus:c})),[a,c]);Rr({open:s,ref:u,onComplete(){s||d(!1)}});const p=Ei(a),m=n.useMemo((()=>({...p,...Dr,...Ri})),[p]),f=r||s,g=Ui("span",e,{enabled:f,ref:[t,u],state:h,stateAttributesMapping:m,props:l});return f?g:null}));"production"!==process.env.NODE_ENV&&(Lr.displayName="CheckboxIndicator");const Vr={CheckboxWrapper:"_CheckboxWrapper_mitfx_1","size-small":"_size-small_mitfx_13",Checkbox:"_Checkbox_mitfx_1",Indeterminate:"_Indeterminate_mitfx_26",ReadOnly:"_ReadOnly_mitfx_53",Indicator:"_Indicator_mitfx_62",HideWrapper:"_HideWrapper_mitfx_66",CheckboxHover:"_CheckboxHover_mitfx_73",CheckboxRippleContainer:"_CheckboxRippleContainer_mitfx_73",CheckboxRipple:"_CheckboxRipple_mitfx_73",ripple:"_ripple_mitfx_1"},Ar=e=>f("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"none",...e,children:[m("title",{children:"Indeterminate icon"}),m("path",{d:"M6 12H18",stroke:"currentColor",strokeWidth:e.strokeWidth??3,strokeLinecap:"round"})]}),Fr=e=>f("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...e,children:[m("title",{children:"Check icon"}),m("path",{d:"M4 12l5 5L20 6"})]}),qr=({dataTest:e,size:t="medium",disabled:n,readOnly:i,indeterminate:r=!1,checked:l,disableRipple:s,hideWrapper:c,className:d,onChange:u,...h})=>{const p=!!c,g=!(s||p||n||i),v=ti(Vr.CheckboxWrapper,!p&&Vr[`size-${t}`],p&&Vr.HideWrapper,r&&Vr.Indeterminate,i&&Vr.ReadOnly,g&&Vr.CheckboxHover,d),b=ti("styled-checkbox-inner",Vr.Checkbox,Vr[`size-${t}`],r&&Vr.Indeterminate),x=r?Ar:Fr,w=o.useRef(null),y=o.useCallback((e=>{var t;if(e.stopPropagation(),!g)return;const n=document.createElement("span");n.className=Vr.CheckboxRipple||"",n.addEventListener("animationend",(()=>n.remove()),{once:!0}),null==(t=w.current)||t.appendChild(n)}),[g]);a((()=>{const e=w.current;return()=>{null==e||e.replaceChildren()}}),[]);const C=o.useCallback((e=>{if(i)return;const t={target:{name:h.name,value:h.value,checked:e}};null==u||u(t,e)}),[u,h.name,h.value,i]);return f(Nr,{className:v,"data-test":e,checked:l,disabled:n,readOnly:i,indeterminate:r,onPointerDown:y,onCheckedChange:C,...h,children:[!p&&g&&m("span",{ref:w,className:Vr.CheckboxRippleContainer}),m("span",{className:b,children:m(Lr,{className:Vr.Indicator,children:m(x,{strokeWidth:"small"===t?3:2})})})]})},jr=({allowClear:e,onClear:t,readOnly:n,disabled:o,error:i,helperText:r,dataTest:l,...a})=>m(_,{...a,"data-test":l,disabled:o||n,error:i,helperText:n?null:i?f("div",{className:"flex items-center gap-1",children:[m(oe,{width:20,height:20,className:"min-w-5"}),r??"Required"]}):r,type:a.type||"mui-input",InputProps:e&&a.value?{...a.InputProps,endAdornment:m("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:m(Hn,{width:18,height:18})})}:a.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",marginLeft:0},"& .MuiFormHelperText-root.Mui-error":{color:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-300) !important"},"& label.Mui-focused":{color:"var(--colors-gama-500) !important"},"& label.Mui-focused.MuiInputLabel-shrink":{color:"var(--colors-gama-500) !important"},"& label":{color:"var(--colors-delta-500) !important"},"& label.MuiInputLabel-shrink":{color:"var(--colors-delta-800) !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"}},...a.sx}}),Br=({value:e,onClear:t,...n})=>{const[o,i]=l(!1),r=o||e;return f("div",{className:"relative w-full",children:[m(jr,{size:"small",variant:"outlined",value:e,onFocus:()=>i(!0),onBlur:()=>i(!1),InputProps:{className:ti("transition-[padding] duration-300",r?"pl-0":"pl-5"),sx:{"& input":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},endAdornment:e?m("div",{className:ti("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:m(Hn,{width:20,height:20,color:"var(--colors-delta-700)",className:"pointer-events-none"})}):null},InputLabelProps:{sx:{transform:"translate(34px, 9px) scale(1)",width:r?void 0:"calc(100% - 42px)","&.MuiInputLabel-shrink":{transform:"translate(16px, -9px) scale(0.75)"}}},...n,sx:{...n.fullWidth?{width:"100%"}:{width:160},...n.sx}}),m(Pn,{width:24,height:24,className:ti("absolute left-2 top-1/2 -translate-y-1/2","transform-gpu transition-all duration-300 ease-in-out",r?"opacity-0 scale-75 pointer-events-none":"opacity-100 scale-100"),color:"var(--colors-delta-700)"})]})},Hr={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},$r=({id:e,variant:t="active",label:n="",labelClassName:o="",description:i="",value:r="",minRows:d=3,maxRows:u=1/0,disabled:h,error:p,errorMessage:g,containerClassName:v="",className:b="",maxLength:x=1/0,counter:w,refLink:y,dataTest:C,counterLimit:k,...N})=>{const I=c(null),M=y||I,_=!(!w||!k),[T,S]=l(!1);a((()=>{S(!0)}),[]),((e,t,n,o,i,r)=>{s((()=>{if(e){const t=r?32:0;e.style.height="auto";const n=20,i=e.scrollHeight-24;Math.ceil(i/n)>o?e.style.height=`${n*o+24+t}px`:e.style.height=`${e.scrollHeight+t}px`}}),[e,t,n,o,i,r])})(M.current,r,d,u,T,_),u<d&&(d=u);const[R,E]=l(r.length);a((()=>{E(r.length)}),[r]);const O=p?"error":"active",z=p?"error":h?"disabled":"active";return f("div",{className:`flex flex-col gap-1 relative ${v}`,"data-test":C,children:[m("label",{htmlFor:e,className:`${Hr.label} ${Hr[z]} ${o}`,children:n}),m("span",{className:`${Hr.description} ${Hr[z]}`,children:p?g:i}),"view_only"===t?m("div",{className:"font-roboto text-sm font-normal pt-3 text-gray-700",children:r}):"not_editable"===t?m("div",{className:"font-roboto text-sm font-normal rounded p-3 bg-gray-200 text-gray-700",children:r}):m("textarea",{...N,id:e,ref:M,className:`${Hr.textarea} ${Hr[O]} ${b} ${_?"pb-[32px]":""}`,wrap:"soft",value:r,disabled:h,maxLength:x}),_&&f("div",{className:"flex justify-end absolute bottom-3 right-3 text-[10px] font-roboto h-[15px] pointer-events-none",children:[R,"/",k]})]})},Wr=({dataTest:e,allowClear:t,error:n,errorText:o,...i})=>f(g,{children:[m(T,{...i,"data-test":e,error:n,value:i.value,IconComponent:e=>m(Jt,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:Do(e.className,"select-custom-icon")}),endAdornment:t&&i.value?m("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=i.onChange)||e.call(i,{target:{value:""}},null)},children:m(Hn,{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"},...i.sx}}),n&&f(Ca,{className:"flex items-center gap-1 m-0 pt-1 text-sm text-error-500",children:[m(oe,{width:20,height:20}),o??"Required"]})]}),Ur=e=>f(S,{...e,sx:{"&.MuiMenuItem-root":{fontSize:"14px !important",gap:"4px",px:1},"&.Mui-selected":{backgroundColor:"var(--colors-gama-50) !important"}},children:[m("span",{style:{width:"24px",justifyContent:"center",display:"flex"},children:e.selected&&m(Jt,{icon:"mdi:tick",width:22,height:22,style:{color:"var(--colors-gama-500)"}})}),m("span",{children:e.children})]}),Kr="_styledSelectAutocompleteWrapper_lfbvb_1",Gr="_select-custom-icon_lfbvb_5";function Yr({dataTest:e,autoHeight:t,getOptionLabel:n,wrapperClassName:o,...i}){const[r,s]=l("auto"),d=c(null);a((()=>{var e,n;const o=(null==(e=d.current)?void 0:e.getBoundingClientRect().height)??0,i=(null==(n=d.current)?void 0:n.getBoundingClientRect().top)??0,r=window.innerHeight-i-o-40;t&&s(r>0?r:"auto")}),[t]);const u=t?{style:{maxHeight:"auto"===r?"auto":`${r}px`},...i.ListboxProps}:i.ListboxProps,h=e=>"object"==typeof e&&null!==e&&"label"in e?e.label:String(e);return m("div",{className:ti(Kr,o),ref:d,children:m(R,{...i,getOptionLabel:n,ListboxProps:{...u,sx:{"& .MuiAutocomplete-option":{paddingLeft:"6px !important"}}},className:Do("!text-sm",i.className),popupIcon:i.readOnly?null:i.popupIcon||m(Jt,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:Do(Gr)}),"data-test":e,PaperComponent:({children:t})=>m(E,{"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==i?void 0:i.renderOption)||((e,t,{selected:o})=>f("li",{...e,children:[m("span",{style:{width:"24px",height:"22px",paddingRight:"4px",justifyContent:"center",alignContent:"center",display:"flex"},children:o&&m(Jt,{icon:"mdi:tick",width:20,height:20,style:{color:"var(--colors-gama-500)"}})}),m("span",{className:"flex-1 text-sm truncate",children:(null==n?void 0:n(t))||h(t)})]})),sx:{...i.sx,"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-0.5px !important"},"& .MuiInputBase-inputSizeSmall":{minHeight:"23px !important"}}})})}const Zr=({dataTest:e,error:t,errorText:n,helperText:o,...i})=>{var r,l,a;const s=(t??!1)||(o??!1),c=t?n??"Required":o;return f(g,{children:[m(O,{...i,"data-test":e,classes:{...i.classes},slotProps:{...i.slotProps,thumb:{className:Do("w-4 h-4","before:shadow-none",'after:content-[""] after:h-8 after:w-8',"vertical"===i.orientation?"ml-0 mb-1":"ml-1",i.disabled?"bg-delta-200":"bg-gama-500"),...null==(r=i.slotProps)?void 0:r.thumb},rail:{className:"bg-delta-200",...null==(l=i.slotProps)?void 0:l.rail},markLabel:{className:Do("text-delta-600 text-sm font-semibold ml-1","vertical"===i.orientation&&"mb-1"),...null==(a=i.slotProps)?void 0:a.markLabel}},sx:{...i.sx,"& .MuiSlider-track":{backgroundColor:i.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",borderColor:i.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:i.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",border:"1px solid",borderColor:i.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",opacity:1}}}}),s&&f(Ca,{className:Do("flex items-center gap-1 m-0 pt-1 text-sm",t?"text-error-500":"text-delta-600"),children:[t&&m(oe,{width:20,height:20}),c]})]})},Jr=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Jr.displayName="SwitchRootContext");let Qr=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 Xr={...Ri,checked:e=>e?{[Qr.checked]:""}:{[Qr.unchecked]:""}},el=n.forwardRef((function(e,t){const{checked:o,className:i,defaultChecked:r,id:l,inputRef:a,name:s,nativeButton:c=!0,onCheckedChange:d,readOnly:u=!1,required:h=!1,disabled:p=!1,render:g,...v}=e,{clearErrors:b}=pr(),{state:x,labelId:w,setControlId:y,setTouched:C,setDirty:k,validityData:N,setFilled:I,setFocused:M,validationMode:_,disabled:T,name:S}=sr(),R=T||p,E=S??s,{getValidationProps:O,getInputValidationProps:z,inputRef:P,commitValidation:D}=gr(),L=xi(d),V=n.useRef(null),A=Ci(V,a,P),F=n.useRef(null),q=Qi(l);Ii((()=>{const e=F.current;if(e)return null!=e.closest("label")?y(l??null):y(q),()=>{y(void 0)}}),[q,l,y]);const[j,B]=mi({controlled:o,default:!!r,name:"Switch",state:"checked"});xr({id:q,commitValidation:D,value:j,controlRef:F,name:E,getValue:()=>j}),Ii((()=>{V.current&&I(V.current.checked)}),[V,I]);const{getButtonProps:H,buttonRef:$}=lr({disabled:R,native:c}),W=n.useMemo((()=>({id:q,role:"switch",disabled:R,"aria-checked":j,"aria-readonly":u||void 0,"aria-labelledby":w,onFocus(){M(!0)},onBlur(){const e=V.current;e&&(C(!0),M(!1),"onBlur"===_&&D(e.checked))},onClick(e){var t;e.defaultPrevented||u||null==(t=null==V?void 0:V.current)||t.click()}})),[q,R,j,u,w,M,C,D,_,V]),U=n.useMemo((()=>Di({checked:j,disabled:R,id:E?void 0:`${q}-input`,name:E,required:h,style:Mi,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:A,onChange(e){if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked,n=Cr("none",e.nativeEvent);null==L||L(t,n),!n.isCanceled&&(b(E),k(t!==N.initialValue),I(t),B(t),"onChange"===_?D(t):D(t,!0))}},z)),[j,b,D,R,z,A,q,E,L,h,B,k,I,_,N.initialValue]),K=n.useMemo((()=>({...x,checked:j,disabled:R,readOnly:u,required:h})),[x,j,R,u,h]),G=Ui("button",e,{state:K,ref:[t,F,$],props:[W,O,v,H],stateAttributesMapping:Xr});return f(Jr.Provider,{value:K,children:[G,!j&&s&&m("input",{type:"hidden",name:s,value:"off"}),m("input",{...U})]})}));"production"!==process.env.NODE_ENV&&(el.displayName="SwitchRoot");const tl=n.forwardRef((function(e,t){const{render:o,className:i,...r}=e,{state:l}=sr(),a=function(){const e=n.useContext(Jr);if(void 0===e)throw new Error("Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.");return e}();return Ui("span",e,{state:{...l,...a},ref:t,stateAttributesMapping:Xr,props:r})}));"production"!==process.env.NODE_ENV&&(tl.displayName="SwitchThumb");const nl={switch:"_switch_1myey_1",iconContent:"_iconContent_1myey_30",thumb:"_thumb_1myey_50",icon:"_icon_1myey_30"},ol=({className:e})=>m("svg",{viewBox:"0 0 24 24",className:e,fill:"none",children:m("rect",{x:"6",y:"10.5",width:"11",height:"3",fill:"currentColor",rx:"0.75"})}),il=({width:e=11,height:t=11,className:n="",onClick:o,color:i})=>m(Xt,{icon:"fa-solid:check",width:e,height:t,className:n,onClick:o,color:i}),rl=i((({checked:e,defaultChecked:t=!1,onChange:n,disabled:o,readOnly:i,required:r,value:a,id:s,dataTest:c,...d},u)=>{const[h,p]=l(t),f=void 0!==e,g=f?e:h,v=f?{checked:g}:{defaultChecked:t},b=ti(nl.iconContent,g?nl.checked:nl.unchecked);return m(el,{...d,...v,ref:u,className:nl.switch,onCheckedChange:e=>{f||p(e),null==n||n({target:{checked:e,name:s,value:a}},e)},disabled:o,readOnly:i,required:r,id:s,name:s,"data-testid":c,children:m(tl,{className:nl.thumb,children:m("span",{className:nl.icon,children:m(g?il:ol,{className:b})})})})})),ll="data-composite-item-active",al=n.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});"production"!==process.env.NODE_ENV&&(al.displayName="CompositeListContext");let sl=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function cl(e={}){const{label:t,metadata:o,textRef:i,indexGuessBehavior:r,index:l}=e,{register:a,unregister:s,subscribeMapChange:c,elementsRef:d,labelsRef:u,nextIndexRef:h}=n.useContext(al),p=n.useRef(-1),[m,f]=n.useState(l??(r===sl.GuessFromOrder?()=>{if(-1===p.current){const e=h.current;h.current+=1,p.current=e}return p.current}:-1)),g=n.useRef(null),v=n.useCallback((e=>{var n;if(g.current=e,-1!==m&&null!==e&&(d.current[m]=e,u)){const o=void 0!==t;u.current[m]=o?t:(null==(n=null==i?void 0:i.current)?void 0:n.textContent)??e.textContent}}),[m,d,u,t,i]);return Ii((()=>{if(null!=l)return;const e=g.current;return e?(a(e,o),()=>{s(e)}):void 0}),[l,a,s,o]),Ii((()=>{if(null==l)return c((e=>{var t;const n=g.current?null==(t=e.get(g.current))?void 0:t.index:null;null!=n&&f(n)}))}),[l,c,f]),n.useMemo((()=>({ref:v,index:m})),[m,v])}function dl(e){const{render:t,className:o,state:i=Wi,props:r=$i,refs:l=$i,metadata:a,stateAttributesMapping:s,tag:c="div",...d}=e,{compositeProps:u,compositeRef:h}=function(e={}){const{highlightItemOnHover:t,highlightedIndex:o,onHighlightedIndexChange:i}=rr(),{ref:r,index:l}=cl(e),a=o===l,s=n.useRef(null),c=Ci(r,s);return{compositeProps:n.useMemo((()=>({tabIndex:a?0:-1,onFocus(){i(l)},onMouseMove(){const e=s.current;if(!t||!e)return;const n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;!a&&!n&&e.focus()}})),[a,i,l,t]),compositeRef:c,index:l}}({metadata:a});return Ui(c,e,{state:i,ref:[...l,h],props:[u,...r,d],stateAttributesMapping:s})}let ul=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 hl={checked:e=>e?{[ul.checked]:""}:{[ul.unchecked]:""},...Dr,...Ri},pl=n.createContext({disabled:void 0,readOnly:void 0,required:void 0,name:void 0,checkedValue:"",setCheckedValue:Hi,onValueChange:Hi,touched:!1,setTouched:Hi,registerControlRef:Hi});"production"!==process.env.NODE_ENV&&(pl.displayName="RadioGroupContext");const ml=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(ml.displayName="RadioRootContext");const fl=n.forwardRef((function(e,t){const{render:o,className:i,disabled:r=!1,readOnly:l=!1,required:a=!1,value:s,inputRef:c,nativeButton:d=!0,...u}=e,{disabled:h,readOnly:p,required:g,checkedValue:v,setCheckedValue:b,touched:x,setTouched:w,fieldControlValidation:y,registerControlRef:C}=n.useContext(pl),{state:k,disabled:N}=sr(),I=N||h||r,M=p||l,_=g||a,{setDirty:T,validityData:S,setTouched:R,setFilled:E}=sr(),O=v===s,z=n.useRef(null),P=Ci(c,z);Ii((()=>{var e;null!=(e=z.current)&&e.checked&&E(!0)}),[E]);const D=n.useMemo((()=>({role:"radio","aria-checked":O,"aria-required":_||void 0,"aria-disabled":I||void 0,"aria-readonly":M||void 0,[ll]:O?"":void 0,disabled:I,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){var t;e.defaultPrevented||I||M||(e.preventDefault(),null==(t=z.current)||t.click())},onFocus(e){var t;e.defaultPrevented||I||M||!x||(null==(t=z.current)||t.click(),w(!1))}})),[O,_,I,M,x,w]),{getButtonProps:L,buttonRef:V}=lr({disabled:I,native:d}),A=Qi(),F=n.useMemo((()=>({type:"radio",ref:P,id:A,tabIndex:-1,style:Mi,"aria-hidden":!0,disabled:I,checked:O,required:_,readOnly:M,onChange(e){if(e.nativeEvent.defaultPrevented||I||M||void 0===s)return;const t=Cr("none",e.nativeEvent);t.isCanceled||(R(!0),T(s!==S.initialValue),E(!0),b(s,t))}})),[O,I,A,M,P,_,b,T,R,E,S.initialValue,s]),q=n.useMemo((()=>({...k,required:_,disabled:I,readOnly:M,checked:O})),[k,I,M,O,_]),j=n.useMemo((()=>q),[q]),B=b!==Hi,H=[t,C,V],$=[D,(null==y?void 0:y.getValidationProps)??Wi,u,L],W=Ui("button",e,{enabled:!B,state:q,ref:H,props:$,stateAttributesMapping:hl});return f(ml.Provider,{value:j,children:[B?m(dl,{tag:"button",render:o,className:i,state:q,refs:H,props:$,stateAttributesMapping:hl}):W,m("input",{...F})]})}));"production"!==process.env.NODE_ENV&&(fl.displayName="RadioRoot");const gl=n.forwardRef((function(e,t){const{render:o,className:i,keepMounted:r=!1,...l}=e,a=function(){const e=n.useContext(ml);if(void 0===e)throw new Error("Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>.");return e}(),s=a.checked,{transitionStatus:c,setMounted:d}=Er(s),u=n.useMemo((()=>({...a,transitionStatus:c})),[a,c]),h=n.useRef(null),p=r||s,m=Ui("span",e,{enabled:p,ref:[t,h],state:u,props:l,stateAttributesMapping:hl});return Rr({open:s,ref:h,onComplete(){s||d(!1)}}),p?m:null}));"production"!==process.env.NODE_ENV&&(gl.displayName="RadioIndicator");const vl="_RadioWrapper_9uzf3_1",bl="_size-small_9uzf3_14",xl="_RadioRippleContainer_9uzf3_26",wl="_RadioRipple_9uzf3_26",yl="_RadioHover_9uzf3_60",Cl="_Radio_9uzf3_1",kl="_Indicator_9uzf3_119",Nl="_Error_9uzf3_140",Il=i((({value:e,dataTest:t,className:n,size:o="medium",error:i,disabled:r,...l},a)=>{const s=ti(vl,yl,"small"===o&&bl,n,i&&Nl),u=ti(Cl,"small"===o&&bl),h=c(null),p=d((e=>{if(e.stopPropagation(),!h.current)return;const t=document.createElement("span");t.className=wl||"",t.addEventListener("animationend",(()=>t.remove()),{once:!0}),h.current.appendChild(t)}),[]);return f(fl,{...l,ref:a,value:e,"data-test":t,className:s,disabled:r,onPointerDown:p,children:[m("span",{className:xl,ref:h}),m("span",{className:u,children:m(gl,{className:kl})})]})})),Ml="ArrowLeft",_l="ArrowRight",Tl="ArrowUp",Sl="ArrowDown";function Rl(e,t){var n;if(!e||!t)return!1;const o=null==(n=t.getRootNode)?void 0:n.call(t);if(e.contains(t))return!0;if(o&&function(e){return!(!Xi()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof er(e).ShadowRoot)}(o)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function El(e){e.preventDefault(),e.stopPropagation()}const Ol=Math.floor;function zl(e,t,n){return Math.floor(e/t)!==n}function Pl(e,t){return t<0||t>=e.current.length}function Dl(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:o,amount:i=1}={}){let r=t;do{r+=n?-i:i}while(r>=0&&r<=e.current.length-1&&Al(e,r,o));return r}function Ll(e,t,n,o,i){if(-1===e)return-1;const r=n.indexOf(e),l=t[e];switch(i){case"tl":return r;case"tr":return l?r+l.width-1:r;case"bl":return l?r+(l.height-1)*o:r;case"br":return n.lastIndexOf(e);default:return-1}}function Vl(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function Al(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);const o=e.current[t];return null==o||o.hasAttribute("disabled")||"true"===o.getAttribute("aria-disabled")}const Fl="ArrowUp",ql="ArrowDown",jl="ArrowLeft",Bl="ArrowRight",Hl="Home",$l="End",Wl=new Set([jl,Bl]),Ul=new Set([jl,Bl,Hl,$l]),Kl=new Set([Fl,ql]),Gl=new Set([Fl,ql,Hl,$l]),Yl=new Set([...Wl,...Kl]),Zl=new Set([...Yl,Hl,$l]),Jl="Shift",Ql=new Set([Jl,"Control","Alt","Meta"]);function Xl(e){return!!(function(e){return tr(e)&&"INPUT"===e.tagName}(e)&&null!=e.selectionStart||tr(e)&&"TEXTAREA"===e.tagName)}function ea(e,t,n,o){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,r=e.scrollTop;const l=e.clientWidth<e.scrollWidth,a=e.clientHeight<e.scrollHeight;if(l&&"vertical"!==o){const o=ta(e,t,"left"),r=na(e),l=na(t);"ltr"===n&&(o+t.offsetWidth+l.scrollMarginRight>e.scrollLeft+e.clientWidth-r.scrollPaddingRight?i=o+t.offsetWidth+l.scrollMarginRight-e.clientWidth+r.scrollPaddingRight:o-l.scrollMarginLeft<e.scrollLeft+r.scrollPaddingLeft&&(i=o-l.scrollMarginLeft-r.scrollPaddingLeft)),"rtl"===n&&(o-l.scrollMarginRight<e.scrollLeft+r.scrollPaddingLeft?i=o-l.scrollMarginLeft-r.scrollPaddingLeft:o+t.offsetWidth+l.scrollMarginRight>e.scrollLeft+e.clientWidth-r.scrollPaddingRight&&(i=o+t.offsetWidth+l.scrollMarginRight-e.clientWidth+r.scrollPaddingRight))}if(a&&"horizontal"!==o){const n=ta(e,t,"top"),o=na(e),i=na(t);n-i.scrollMarginTop<e.scrollTop+o.scrollPaddingTop?r=n-i.scrollMarginTop-o.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-o.scrollPaddingBottom&&(r=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+o.scrollPaddingBottom)}e.scrollTo({left:i,top:r,behavior:"auto"})}function ta(e,t,n){const o="left"===n?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[o],t.offsetParent!==e);)t=t.offsetParent;return i}function na(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 oa(e){const{children:t,elementsRef:o,labelsRef:i,onMapChange:r}=e,l=n.useRef(0),a=gi(ra).current,s=gi(ia).current,[c,d]=n.useState(Wi),u=n.useRef(c),h=xi(((e,t)=>{s.set(e,t??null),u.current={},d(u.current)})),p=xi((e=>{s.delete(e),u.current={},d(u.current)})),f=n.useMemo((()=>{const e=new Map;return Array.from(s.keys()).sort(la).forEach(((t,n)=>{const o=s.get(t)??{};e.set(t,{...o,index:n})})),e}),[s,c]);Ii((()=>{if("function"!=typeof MutationObserver||0===f.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 f.forEach(((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})})),()=>{e.disconnect()}}),[f]),Ii((()=>{u.current===c&&(o.current.length!==f.size&&(o.current.length=f.size),i&&i.current.length!==f.size&&(i.current.length=f.size),l.current=f.size),null==r||r(f)}),[r,f,o,i,c]);const g=xi((e=>(a.add(e),()=>{a.delete(e)})));Ii((()=>{a.forEach((e=>e(f)))}),[a,f]);const v=n.useMemo((()=>({register:h,unregister:p,subscribeMapChange:g,elementsRef:o,labelsRef:i,nextIndexRef:l})),[h,p,g,o,i,l]);return m(al.Provider,{value:v,children:t})}function ia(){return new Map}function ra(){return new Set}function la(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 aa(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}const sa=[];function ca(e){const{itemSizes:t,cols:o=1,loop:i=!0,dense:r=!1,orientation:l="both",direction:a,highlightedIndex:s,onHighlightedIndexChange:c,rootRef:d,enableHomeAndEndKeys:u=!1,stopEventPropagation:h=!1,disabledIndices:p,modifierKeys:m=sa}=e,[f,g]=n.useState(0),v=o>1,b=n.useRef(null),x=Ci(b,d),w=n.useRef([]),y=n.useRef(!1),C=s??f,k=xi(((e,t=!1)=>{if((c??g)(e),t){const t=w.current[e];ea(b.current,t,a,l)}})),N=xi((e=>{if(0===e.size||y.current)return;y.current=!0;const t=Array.from(e.keys()),n=t.find((e=>null==e?void 0:e.hasAttribute(ll)))??null,o=n?t.indexOf(n):-1;-1!==o&&k(o),ea(b.current,n,a,l)})),I=n.useMemo((()=>({"aria-orientation":"both"===l?void 0:l,ref:x,onFocus(e){!b.current||!Xl(e.target)||e.target.setSelectionRange(0,e.target.value.length??0)},onKeyDown(e){const n=u?Zl:Yl;if(!n.has(e.key)||function(e,t){for(const n of Ql.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,m)||!b.current)return;const s="rtl"===a,c=s?jl:Bl,d={horizontal:c,vertical:ql,both:c}[l],f=s?Bl:jl,g={horizontal:f,vertical:Fl,both:f}[l];if(Xl(e.target)&&!aa(e.target)){const t=e.target.selectionStart,n=e.target.selectionEnd,o=e.target.value??"";if(null==t||e.shiftKey||t!==n||e.key!==g&&t<o.length||e.key!==d&&t>0)return}let x=C;const y=function(e,t){return Dl(e,{disabledIndices:t})}(w,p),N=function(e,t){return Dl(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}(w,p);if(v){const n=t||Array.from({length:w.current.length},(()=>({width:1,height:1}))),a=function(e,t,n){const o=[];let i=0;return e.forEach((({width:e,height:r},l)=>{if(e>t&&"production"!==process.env.NODE_ENV)throw new Error(`[Floating UI]: Invalid grid - item width at index ${l} is greater than grid columns`);let a=!1;for(n&&(i=0);!a;){const n=[];for(let o=0;o<e;o+=1)for(let e=0;e<r;e+=1)n.push(i+o+e*t);i%t+e<=t&&n.every((e=>null==o[e]))?(n.forEach((e=>{o[e]=l})),a=!0):i+=1}})),[...o]}(n,o,r),c=a.findIndex((e=>null!=e&&!Al(w,e,p))),d=a.reduce(((e,t,n)=>null==t||Al(w,t,p)?e:n),-1);x=a[function(e,{event:t,orientation:n,loop:o,rtl:i,cols:r,disabledIndices:l,minIndex:a,maxIndex:s,prevIndex:c,stopEvent:d=!1}){let u=c;const h=[],p={};let m=!1;{let t=null,n=-1;e.current.forEach(((e,o)=>{if(null==e)return;const i=e.closest('[role="row"]');i&&(m=!0),(i!==t||-1===n)&&(t=i,n+=1,h[n]=[]),h[n].push(o),p[o]=n}))}const f=m&&h.length>0&&h.some((e=>e.length!==r));function g(t){if(!f||-1===c)return;const n=p[c];if(null==n)return;const i=h[n].indexOf(c);let r="up"===t?n-1:n+1;o&&(r<0?r=h.length-1:r>=h.length&&(r=0));const a=new Set;for(;r>=0&&r<h.length&&!a.has(r);){a.add(r);const n=h[r];if(0!==n.length){for(let t=Math.min(i,n.length-1);t>=0;t-=1){const o=n[t];if(!Al(e,o,l))return o}r="up"===t?r-1:r+1,o&&(r<0?r=h.length-1:r>=h.length&&(r=0))}else r="up"===t?r-1:r+1}}if(t.key===Tl){const n=g("up");if(void 0!==n)d&&El(t),u=n;else{if(d&&El(t),-1===c)u=s;else if(u=Dl(e,{startingIndex:u,amount:r,decrement:!0,disabledIndices:l}),o&&(c-r<a||u<0)){const e=c%r,t=s%r,n=s-(t-e);u=t===e?s:t>e?n:n-r}Pl(e,u)&&(u=c)}}if(t.key===Sl){const n=g("down");void 0!==n?(d&&El(t),u=n):(d&&El(t),-1===c?u=a:(u=Dl(e,{startingIndex:c,amount:r,disabledIndices:l}),o&&c+r>s&&(u=Dl(e,{startingIndex:c%r-r,amount:r,disabledIndices:l}))),Pl(e,u)&&(u=c))}if("both"===n){const n=Ol(c/r);t.key===(i?Ml:_l)&&(d&&El(t),c%r!=r-1?(u=Dl(e,{startingIndex:c,disabledIndices:l}),o&&zl(u,r,n)&&(u=Dl(e,{startingIndex:c-c%r-1,disabledIndices:l}))):o&&(u=Dl(e,{startingIndex:c-c%r-1,disabledIndices:l})),zl(u,r,n)&&(u=c)),t.key===(i?_l:Ml)&&(d&&El(t),c%r!=0?(u=Dl(e,{startingIndex:c,decrement:!0,disabledIndices:l}),o&&zl(u,r,n)&&(u=Dl(e,{startingIndex:c+(r-c%r),decrement:!0,disabledIndices:l}))):o&&(u=Dl(e,{startingIndex:c+(r-c%r),decrement:!0,disabledIndices:l})),zl(u,r,n)&&(u=c));const a=Ol(s/r)===n;Pl(e,u)&&(u=o&&a?t.key===(i?_l:Ml)?s:Dl(e,{startingIndex:c-c%r-1,disabledIndices:l}):c)}return u}({current:a.map((e=>e?w.current[e]:null))},{event:e,orientation:l,loop:i,cols:o,disabledIndices:Vl([...p||w.current.map(((e,t)=>Al(w,t)?t:void 0)),void 0],a),minIndex:c,maxIndex:d,prevIndex:Ll(C>N?y:C,n,a,o,e.key===ql?"bl":e.key===Bl?"tr":"tl"),rtl:s})]}const I={horizontal:[c],vertical:[ql],both:[c,ql]}[l],M={horizontal:[f],vertical:[Fl],both:[f,Fl]}[l],_=v?n:{horizontal:u?Ul:Wl,vertical:u?Gl:Kl,both:n}[l];u&&(e.key===Hl?x=y:e.key===$l&&(x=N)),x===C&&(I.includes(e.key)||M.includes(e.key))&&(x=i&&x===N&&I.includes(e.key)?y:i&&x===y&&M.includes(e.key)?N:Dl(w,{startingIndex:x,decrement:M.includes(e.key),disabledIndices:p})),x!==C&&!Pl(w,x)&&(h&&e.stopPropagation(),_.has(e.key)&&e.preventDefault(),k(x,!0),queueMicrotask((()=>{var e;null==(e=w.current[x])||e.focus()})))}})),[o,r,a,p,w,u,C,v,t,i,x,m,k,l,h]);return n.useMemo((()=>({props:I,highlightedIndex:C,onHighlightedIndexChange:k,elementsRef:w,disabledIndices:p,onMapChange:N})),[I,C,k,w,p,N])}const da=n.createContext(void 0);function ua(e=!0){const t=n.useContext(da);if(void 0===t&&!e)throw new Error("Base UI: DirectionContext is missing.");return(null==t?void 0:t.direction)??"ltr"}function ha(e){const{render:t,className:o,refs:i=$i,props:r=$i,state:l=Wi,stateAttributesMapping:a,highlightedIndex:s,onHighlightedIndexChange:c,orientation:d,dense:u,itemSizes:h,loop:p,cols:f,enableHomeAndEndKeys:g,onMapChange:v,stopEventPropagation:b=!0,rootRef:x,disabledIndices:w,modifierKeys:y,highlightItemOnHover:C=!1,tag:k="div",...N}=e,I=ua(),{props:M,highlightedIndex:_,onHighlightedIndexChange:T,elementsRef:S,onMapChange:R}=ca({itemSizes:h,cols:f,loop:p,dense:u,orientation:d,highlightedIndex:s,onHighlightedIndexChange:c,rootRef:x,stopEventPropagation:b,enableHomeAndEndKeys:g,direction:I,disabledIndices:w,modifierKeys:y}),E=xi((e=>{null==v||v(e),R(e)})),O=Ui(k,e,{state:l,ref:i,props:[M,...r,N],stateAttributesMapping:a}),z=n.useMemo((()=>({highlightedIndex:_,onHighlightedIndexChange:T,highlightItemOnHover:C})),[_,T,C]);return m(ir.Provider,{value:z,children:m(oa,{elementsRef:S,onMapChange:E,children:O})})}"production"!==process.env.NODE_ENV&&(da.displayName="DirectionContext");const pa=[Jl],ma=n.forwardRef((function(e,t){const{render:o,className:i,disabled:r,readOnly:l,required:a,onValueChange:s,value:c,defaultValue:d,name:u,inputRef:h,id:p,...g}=e,{labelId:v,setTouched:b,setFocused:x,validationMode:w,name:y,disabled:C,state:k}=sr(),N=gr(),{clearErrors:I}=pr(),M=C||r,_=y??u,T=Qi(p),[S,R]=mi({controlled:c,default:d,name:"RadioGroup",state:"value"}),E=xi(s),O=xi(((e,t)=>{E(e,t),!t.isCanceled&&R(e)})),z=n.useRef(null),P=xi((e=>{null==z.current&&null!=e&&(z.current=e)}));xr({id:T,commitValidation:N.commitValidation,value:S,controlRef:z,name:_,getValue:()=>S??null});const D=n.useRef(S);Ii((()=>{D.current!==S&&(I(_),"onChange"===w?N.commitValidation(S):N.commitValidation(S,!0))}),[_,I,w,S,N]),Ii((()=>{D.current=S}),[S]);const[L,V]=n.useState(!1),A=xi((e=>{Rl(e.currentTarget,e.relatedTarget)||(b(!0),x(!1),"onBlur"===w&&N.commitValidation(S))})),F=xi((e=>{e.key.startsWith("Arrow")&&(b(!0),V(!0),x(!0))})),q=n.useMemo((()=>null==S?"":"string"==typeof S?S:JSON.stringify(S)),[S]),j=Di({value:q,ref:Ci(N.inputRef,h),id:T,name:q?_:void 0,disabled:M,readOnly:l,required:a,"aria-hidden":!0,tabIndex:-1,style:Mi,onFocus(){var e;null==(e=z.current)||e.focus()}},N.getInputValidationProps),B=n.useMemo((()=>({...k,disabled:M??!1,required:a??!1,readOnly:l??!1})),[k,M,l,a]),H=n.useMemo((()=>({...k,checkedValue:S,disabled:M,name:_,onValueChange:E,readOnly:l,registerControlRef:P,required:a,setCheckedValue:O,setTouched:V,touched:L})),[S,M,k,_,E,l,P,a,O,V,L]),$={role:"radiogroup","aria-required":a||void 0,"aria-disabled":M||void 0,"aria-readonly":l||void 0,"aria-labelledby":v,onFocus(){x(!0)},onBlur:A,onKeyDownCapture:F};return f(pl.Provider,{value:H,children:[m(ha,{render:o,className:i,state:B,props:[$,N.getValidationProps,g],refs:[t],stateAttributesMapping:Ri,enableHomeAndEndKeys:!1,modifierKeys:pa}),m("input",{...j})]})}));"production"!==process.env.NODE_ENV&&(ma.displayName="RadioGroup");const fa=i((({value:e,defaultValue:t,onValueChange:n,name:o,id:i,dataTest:r,error:l,errorText:a,helperText:s,children:c,...d},u)=>{const h=l?a??"Required":s;return f(ma,{...d,ref:u,value:e,defaultValue:t,"data-test":r,onValueChange:n,children:[c,((l??!1)||(s??!1))&&f(Ca,{className:Do("flex items-center gap-1 m-0 pt-1 text-sm",l?"text-error-500":"text-delta-600"),children:[l&&m(oe,{width:20,height:20}),h]})]})})),ga=({children:e,onClick:t,className:n,dataTest:o,style:i})=>m("div",{className:Do("_styled-label_1fp95_1",n),style:i,onClick:t,"data-test":o,children:e}),va=i(((e,t)=>{const{options:n,dataTest:o,value:i,readOnly:r,multiple:a,title:d,disabled:u,onChange:h,error:p,helperText:g,valueKey:v="value",labelKey:b="label",renderLabel:x,getOptionTooltip:w,loading:y,size:C}=e,{containerRef:k,wrapDisabled:N}=(({dependencyList:e=[]})=>{const t=c(null),[n,o]=l(!1);return s((()=>{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 o=t.querySelector(".MuiButtonBase-root"),i=n.scrollWidth>e.clientWidth,r=!!o&&n.scrollHeight>o.clientHeight;return i||r}));o((e=>e!==t?t:e))}));return n.observe(e),()=>n.disconnect()}),[...e]),{wrapDisabled:n,containerRef:t}})({dependencyList:[n,n.length]}),I=e=>{var t;return"object"==typeof e?(null==(t=null==e?void 0:e[b])?void 0:t.toString())||"":(null==e?void 0:e.toString())||""},M=e=>"object"==typeof e?null==e?void 0:e[v]:e,_=(e,t)=>M(e)===M(t),T=r?n.filter((e=>!!(a?null!=i&&i.find((t=>_(t,e))):_(i,e)))):n,S=T.findIndex((e=>!("object"==typeof e&&(null!=e&&e.disabled)||r)));return f("div",{"data-test":`${o}-dynamic-radio-group`,className:"flex flex-col gap-y-1 relative",children:[d&&m("span",{className:"text-delta-800 text-base font-semibold",children:d}),m("div",{ref:k,className:"absolute top-0 left-0 opacity-0 pointer-events-none flex flex-wrap gap-2 text-sm",style:{width:"100%"},children:T.map((e=>{const t=M(e);return m(Eo,{className:"w-fit",readOnly:r,type:a?"checkbox":"radio",dataTest:`ic-${String(t)}-hidden`,label:x?x(e):I(e)},String(t))}))}),m("div",{className:ti("flex gap-2 flex-wrap",N&&"flex-col gap-1"),children:y?f("div",{className:"flex flex-wrap gap-2",children:[m(z,{className:"w-[60px] h-[32px]"}),m(z,{className:"w-[60px] h-[32px]"}),m(z,{className:"w-[60px] h-[32px]"})]}):null!=T&&T.length?T.map(((e,n)=>{const o=M(e),l=!!(a?null!=i&&i.find((t=>_(t,e))):_(i,e)),s=w?w(e):null;if(r&&!l)return null;const c="object"==typeof e&&!(null==e||!e.disabled),d=c||r||n!==S?void 0:t;return m(Oo,{title:s,arrow:!0,children:m("span",{className:ti(c&&"cursor-not-allowed"),children:r&&!N?m(To,{ref:d,disabled:u||c,classes:{root:"min-h-[32px] h-full"},className:"w-fit text-sm",dataTest:`ic-${String(o)}`,label:x?x(e):I(e)}):m(Eo,{ref:d,disabled:u||c,classes:N?{root:"border-none outline-none bg-transparent w-full flex justify-start h-full min-h-[40px] shadow-none",label:"block whitespace-normal break-words overflow-visible"}:{root:"min-h-[32px] h-full"},className:"w-fit text-sm",readOnly:r,type:a?"checkbox":"radio",dataTest:`ic-${String(o)}`,checked:l,size:C,onClick:()=>(e=>{if(!a){const t=_(e,i)?null:e;return void h(t)}const t=i||[],n=t.find((t=>_(t,e)))?t.filter((t=>!_(t,e))):[...t,e];h(n)})(e),label:x?x(e):I(e)})})},String(o))})):m("span",{children:"-"})}),!r&&f("div",{className:ti("text-sm/5 text-delta-600 flex items-center gap-1",p&&"text-error-500"),children:[p&&m(to,{width:20,height:20,className:"min-w-5"}),m("span",{className:"line-clamp-1",children:g||p&&!g&&"Required"})]})]})})),ba=i(((e,t)=>{const[n,o]=l(!1),{options:i,dataTest:a,value:s,readOnly:c,multiple:u,disableClearable:h,onChange:p,size:v,title:b,noOptionsText:x,placeholder:w,disabled:y,helperText:C,error:k,valueKey:N="value",labelKey:I="label",renderLabel:M,getOptionTooltip:_,startAdornment:T,autocompleteProps:S,loading:R,maxTags:E}=e,O=i.length<11,z=e=>{var t;return"object"==typeof e?(null==(t=null==e?void 0:e[I])?void 0:t.toString())||"":(null==e?void 0:e.toString())||""},P=d((e=>"object"==typeof e?null==e?void 0:e[N]:e),[N]),D=d(((e,t)=>P(e)===P(t)),[P]),L=d((e=>{var t;o(!0),null==(t=null==S?void 0:S.onOpen)||t.call(S,e)}),[S]),V=d(((e,t)=>{var n;o(!1),null==(n=null==S?void 0:S.onClose)||n.call(S,e,t)}),[S]);return u&&c?m(va,{...e}):f("div",{className:"flex flex-col gap-y-1 w-full",children:[b&&m("span",{className:"text-delta-800 text-base font-semibold",children:b}),m(Yr,{open:n,onOpen:L,onClose:V,disableCloseOnSelect:u,dataTest:a,disabled:y||R,noOptionsText:x,loading:R,readOnly:c,value:s,size:v,disableClearable:h,options:i,fullWidth:!0,classes:{listbox:"h-full max-h-[300px]"},getOptionLabel:z||(null==S?void 0:S.getOptionLabel),onChange:(e,t)=>{p(t)},filterSelectedOptions:!1,isOptionEqualToValue:(null==S?void 0:S.isOptionEqualToValue)??D,autoHeight:!0,multiple:u,renderTags:e=>{const t=E||i.length,n=e.slice(0,t),o=e.length-t;return f("div",{className:"flex flex-wrap gap-2",children:[n.map((e=>{var t;return m(To,{dataTest:`${P(e)}-chip`,readOnly:c,variant:"outlined",label:M?M(e):z(e)||"",classes:{root:"h-fit w-fit min-h-[32px]",label:"block whitespace-normal"},disabled:y||R,onDelete:()=>{if(!u)return void p(null);const t=s.filter((t=>!D(t,e)));p(t)}},null==(t=P(e))?void 0:t.toString())})),o>0&&m(To,{dataTest:"remaining-count-tag-chip",label:`+${o}`,variant:"outlined",onClick:L})]})},popupIcon:R?m(ie,{height:24,width:24}):u?m(re,{height:24,width:24}):void 0,renderOption:(e,t)=>{const n="object"==typeof t&&!(null==t||!t.disabled),o=_?_(t):null;if(u){const i=!(null==s||!s.find((e=>D(e,t))));return r("li",{...e,key:e.id,onClick:n?void 0:e.onClick,className:ti("flex h-full gap-x-1 hover:bg-gama-50 cursor-pointer bg-white text-sm/5",n&&"cursor-not-allowed bg-delta-50 hover:bg-delta-50"),"aria-disabled":n},m(Oo,{arrow:!0,title:o,children:f(g,{children:[m(qr,{disabled:n,dataTest:`${P(t)}-checkbox`,size:"small",className:"min-w-[36px]",checked:i}),M?M(t):m("span",{className:"text-sm text-delta-700 h-fit py-[10px]",children:z(t)})]})}))}const i=D(s,t);return r("li",{...e,key:e.id,className:ti("flex h-full gap-x-1 hover:bg-gama-50 px-2 cursor-pointer text-sm/5",n&&"cursor-not-allowed bg-delta-50 hover:bg-delta-50"),onClick:n?void 0:e.onClick,"aria-disabled":n},m(Oo,{arrow:!0,title:o,children:f(g,{children:[m("span",{className:"py-[10px] min-w-5 w-5 h-full",children:i&&m(le,{className:"size-5 text-gama-500 min-h-5 min-w-5",height:20,width:20})}),M?M(t):m("span",{className:"text-sm text-delta-700 py-[10px]",children:z(t)})]})}))},renderInput:e=>m(jr,{dataTest:`${a}-input-field`,...e,inputRef:t,error:k,helperText:C||" ",variant:"outlined",label:"",placeholder:w,readOnly:c,onKeyDown:O?e=>e.preventDefault():void 0,autoComplete:O?"off":"on",InputProps:{...e.InputProps,startAdornment:T||e.InputProps.startAdornment,style:O?{caretColor:"transparent"}:{}},inputProps:{...e.inputProps,style:O?{caretColor:"transparent"}:{}}}),...S})]})})),xa=i(((e,t)=>{const{options:n}=e;return n.length>0&&n.length<=5?m(va,{...e,ref:t}):m(ba,{...e,ref:t})})),wa=e=>m(P,{...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"}}}),ya=({sx:e,...t})=>m(D,{...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}}),Ca=e=>m(L,{...e}),ka=e=>m(V,{...e}),Na=e=>m(A,{...e}),Ia=e=>m(F,{...e}),Ma=e=>{var t,n;return m(q,{...e,classes:{paper:Do("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:Do("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},_a=e=>{var t;return m(S,{...e,classes:{selected:"bg-gama-50",root:Do("px-3 py-2.5 hover:bg-delta-50",null==(t=e.classes)?void 0:t.root),...e.classes},sx:{"&.Mui-disabled":{pointerEvents:"auto",cursor:"not-allowed","&:hover":{backgroundColor:"transparent !important"}},...e.sx}})},Ta=e=>m(j,{...e}),Sa="_styled-link_um6g7_1",Ra="_styled-link-disabled_um6g7_16",Ea="_styled-link-xs_um6g7_32",Oa="_styled-link-small_um6g7_37",za="_styled-link-large_um6g7_42",Pa=({href:e,disabled:t,size:n="large",dataTest:o,reflink:i,className:r,content:l,contentNode:a,...s})=>{let c=za;switch(n){case"small":c=Oa;break;case"xs":c=Ea;break;default:c=za}return t?f("span",{className:Do(Sa,Ra,c,r),children:[l,a]}):f("a",{...s,"data-test":o,ref:i,href:e,className:Do(Sa,c,r),children:[l,a]})},Da=e=>m(B,{...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)"}}}),La=e=>m(H,{...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 Va;function Aa(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");Va.has(t)||(Va.add(t),console.warn(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(Va=new Set);const Fa=n.createContext(void 0);function qa(){const e=n.useContext(Fa);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&&(Fa.displayName="AccordionRootContext");const ja={value:()=>null},Ba=n.forwardRef((function(e,t){const{render:o,className:i,disabled:r=!1,hiddenUntilFound:l,keepMounted:a,loop:s=!0,onValueChange:c,multiple:d=!0,orientation:u="vertical",value:h,defaultValue:p,...f}=e,g=ua();"production"!==process.env.NODE_ENV&&Ii((()=>{l&&!1===a&&Aa("The `keepMounted={false}` prop on a Accordion.Root will be ignored when using `hiddenUntilFound` since it requires Panels to remain mounted when closed.")}),[l,a]);const v=n.useMemo((()=>{if(void 0===h)return p??[]}),[h,p]),b=xi(c),x=n.useRef([]),[w,y]=mi({controlled:h,default:v,name:"Accordion",state:"value"}),C=n.useCallback(((e,t)=>{const n=Cr("none");if(d)if(t){const t=w.slice();if(t.push(e),b(t,n),n.isCanceled)return;y(t)}else{const t=w.filter((t=>t!==e));if(b(t,n),n.isCanceled)return;y(t)}else{const t=w[0]===e?[]:[e];if(b(t,n),n.isCanceled)return;y(t)}}),[b,d,y,w]),k=n.useMemo((()=>({value:w,disabled:r,orientation:u})),[w,r,u]),N=n.useMemo((()=>({accordionItemRefs:x,direction:g,disabled:r,handleValueChange:C,hiddenUntilFound:l??!1,keepMounted:a??!1,loop:s,orientation:u,state:k,value:w})),[g,r,C,l,a,s,u,k,w]),I=Ui("div",e,{state:k,ref:t,props:[{dir:g,role:"region"},f],stateAttributesMapping:ja});return m(Fa.Provider,{value:N,children:m(oa,{elementsRef:x,children:I})})}));"production"!==process.env.NODE_ENV&&(Ba.displayName="AccordionRoot");const Ha=n.createContext(void 0);function $a(){const e=n.useContext(Ha);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&&(Ha.displayName="CollapsibleRootContext");const Wa=n.createContext(void 0);function Ua(){const e=n.useContext(Wa);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&&(Wa.displayName="AccordionItemContext");let Ka=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Or.startingStyle]="startingStyle",e[e.endingStyle=Or.endingStyle]="endingStyle",e}({}),Ga=function(e){return e.panelOpen="data-panel-open",e}({});const Ya={[Ka.open]:""},Za={[Ka.closed]:""},Ja={open:e=>e?{[Ga.panelOpen]:""}:null},Qa={open:e=>e?Ya:Za};let Xa=function(e){return e.index="data-index",e.disabled="data-disabled",e.open="data-open",e}({});const es={...Qa,index:e=>Number.isInteger(e)?{[Xa.index]:String(e)}:null,...Dr,value:()=>null},ts=n.forwardRef((function(e,t){const{className:o,disabled:i=!1,onOpenChange:r,render:l,value:a,...s}=e,{ref:c,index:d}=cl(),u=Ci(t,c),{disabled:h,handleValueChange:p,state:f,value:g}=qa(),v=Qi(),b=a??v,x=i||h,w=n.useMemo((()=>{if(!g)return!1;for(let e=0;e<g.length;e+=1)if(g[e]===b)return!0;return!1}),[g,b]),y=xi(((e,t)=>{null==r||r(e,t),!t.isCanceled&&p(b,e)})),C=function(e){const{open:t,defaultOpen:o,onOpenChange:i,disabled:r}=e,l=void 0!==t,[a,s]=mi({controlled:t,default:o,name:"Collapsible",state:"open"}),{mounted:c,setMounted:d,transitionStatus:u}=Er(a,!0,!0),[h,p]=n.useState(a),[{height:m,width:f},g]=n.useState({height:void 0,width:void 0}),v=Qi(),[b,x]=n.useState(),w=b??v,[y,C]=n.useState(!1),[k,N]=n.useState(!1),I=n.useRef(null),M=n.useRef(null),_=n.useRef(null),T=n.useRef(null),S=Sr(T,!1),R=xi((e=>{const t=!a,n=Cr("trigger-press",e.nativeEvent);if(i(t,n),n.isCanceled)return;const o=T.current;"css-animation"===M.current&&null!=o&&o.style.removeProperty("animation-name"),!y&&!k&&(null!=M.current&&"css-animation"!==M.current&&!c&&t&&d(!0),"css-animation"===M.current&&(!h&&t&&p(!0),!c&&t&&d(!0))),s(t),"none"===M.current&&c&&!t&&d(!1)}));return Ii((()=>{l&&"none"===M.current&&!k&&!a&&d(!1)}),[l,k,a,t,d]),n.useMemo((()=>({abortControllerRef:I,animationTypeRef:M,disabled:r,handleTrigger:R,height:m,mounted:c,open:a,panelId:w,panelRef:T,runOnceAnimationsFinish:S,setDimensions:g,setHiddenUntilFound:C,setKeepMounted:N,setMounted:d,setOpen:s,setPanelIdState:x,setVisible:p,transitionDimensionRef:_,transitionStatus:u,visible:h,width:f})),[I,M,r,R,m,c,a,w,T,S,g,C,N,d,s,p,_,u,h,f])}({open:w,onOpenChange:y,disabled:x}),k=n.useMemo((()=>({open:C.open,disabled:C.disabled,hidden:!C.mounted})),[C.open,C.disabled,C.mounted]),N=n.useMemo((()=>({...C,onOpenChange:y,state:k,transitionStatus:C.transitionStatus})),[C,k,y]),I=n.useMemo((()=>({...f,index:d,disabled:x,open:w})),[x,d,w,f]),[M,_]=n.useState(Qi()),T=n.useMemo((()=>({open:w,state:I,setTriggerId:_,triggerId:M})),[w,I,_,M]),S=Ui("div",e,{state:I,ref:u,props:s,stateAttributesMapping:es});return m(Ha.Provider,{value:N,children:m(Wa.Provider,{value:T,children:S})})}));"production"!==process.env.NODE_ENV&&(ts.displayName="AccordionItem");const ns=n.forwardRef((function(e,t){const{render:n,className:o,...i}=e,{state:r}=Ua();return Ui("h3",e,{state:r,ref:t,props:i,stateAttributesMapping:es})}));"production"!==process.env.NODE_ENV&&(ns.displayName="AccordionHeader");const os=new Set([ql,Fl,Bl,jl,Hl,$l]);const is=n.forwardRef((function(e,t){const{disabled:o,className:i,id:r,render:l,nativeButton:a=!0,...s}=e,{panelId:c,open:d,handleTrigger:u,disabled:h}=$a(),p=o??h,{getButtonProps:m,buttonRef:f}=lr({disabled:p,focusableWhenDisabled:!0,native:a}),{accordionItemRefs:g,direction:v,loop:b,orientation:x}=qa(),w="rtl"===v,y="horizontal"===x,{state:C,setTriggerId:k,triggerId:N}=Ua();Ii((()=>(r&&k(r),()=>{k(void 0)})),[r,k]);const I=n.useMemo((()=>({"aria-controls":d?c:void 0,"aria-expanded":d,disabled:p,id:N,onClick:u,onKeyDown(e){if(!os.has(e.key))return;El(e);const t=function(e){const{current:t}=e,n=[];for(let e=0;e<t.length;e+=1){const o=t[e];if(!aa(o)){const e=null==o?void 0:o.querySelector('[type="button"]');aa(e)||n.push(e)}}return n}(g),n=t.length-1;let o=-1;const i=t.indexOf(e.target);function r(){o=b?i+1>n?0:i+1:Math.min(i+1,n)}function l(){o=b&&0===i?n:i-1}switch(e.key){case ql:y||r();break;case Fl:y||l();break;case Bl:y&&(w?l():r());break;case jl:y&&(w?r():l());break;case"Home":o=0;break;case"End":o=n}o>-1&&t[o].focus()}})),[g,p,u,N,y,w,b,d,c]);return Ui("button",e,{state:C,ref:[t,f],props:[I,s,m],stateAttributesMapping:Ja})}));"production"!==process.env.NODE_ENV&&(is.displayName="AccordionTrigger");let rs=function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e}({});let ls=function(e){return e.accordionPanelHeight="--accordion-panel-height",e.accordionPanelWidth="--accordion-panel-width",e}({});const as=n.forwardRef((function(e,t){const{className:o,hiddenUntilFound:i,keepMounted:r,id:l,render:a,...s}=e,{hiddenUntilFound:c,keepMounted:d}=qa(),{abortControllerRef:u,animationTypeRef:h,height:p,mounted:m,onOpenChange:f,open:g,panelId:v,panelRef:b,runOnceAnimationsFinish:x,setDimensions:w,setHiddenUntilFound:y,setKeepMounted:C,setMounted:k,setOpen:N,setVisible:I,transitionDimensionRef:M,visible:_,width:T,setPanelIdState:S,transitionStatus:R}=$a(),E=i??c,O=r??d;"production"!==process.env.NODE_ENV&&Ii((()=>{!1===r&&E&&Aa("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.")}),[E,r]),Ii((()=>{if(l)return S(l),()=>{S(void 0)}}),[l,S]),Ii((()=>{y(E)}),[y,E]),Ii((()=>{C(O)}),[C,O]),Rr({open:g&&"idle"===R,ref:b,onComplete(){g&&w({width:void 0,height:void 0})}});const{props:z}=function(e){const{abortControllerRef:t,animationTypeRef:o,externalRef:i,height:r,hiddenUntilFound:l,keepMounted:a,id:s,mounted:c,onOpenChange:d,open:u,panelRef:h,runOnceAnimationsFinish:p,setDimensions:m,setMounted:f,setOpen:g,setVisible:v,transitionDimensionRef:b,visible:x,width:w}=e,y=n.useRef(!1),C=n.useRef(null),k=n.useRef(u),N=n.useRef(u),I=n.useMemo((()=>"css-animation"===o.current?!x:!u&&!c),[u,c,x,o]),M=xi((e=>{if(!e)return;if(null==o.current||null==b.current){const t=getComputedStyle(e),n="none"!==t.animationName&&""!==t.animationName,i="0s"!==t.transitionDuration&&""!==t.transitionDuration;n&&i?"production"!==process.env.NODE_ENV&&Aa("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?o.current="css-transition":"none"!==t.animationName&&"0s"===t.transitionDuration?o.current="css-animation":o.current="none","horizontal"===e.getAttribute(rs.orientation)||t.transitionProperty.indexOf("width")>-1?b.current="width":b.current="height"}if("css-transition"!==o.current)return;e.style.setProperty("display",getComputedStyle(e).display||"block","important"),(void 0===r||void 0===w)&&(m({height:e.scrollHeight,width:e.scrollWidth}),e.style.removeProperty("display"),N.current&&e.style.setProperty("transition-duration","0s"));let t=-1,n=-1;return t=Tr.request((()=>{N.current=!1,n=Tr.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))})),()=>{Tr.cancel(t),Tr.cancel(n)}})),_=Ci(i,h,M);return Ii((()=>{if("css-transition"!==o.current)return;const e=h.current;if(!e)return;let n=-1;if(null!=t.current&&(t.current.abort(),t.current=null),!u){m({height:e.scrollHeight,width:e.scrollWidth}),t.current=new AbortController;const n=t.current.signal;let o=-1;const i=Tr.request((()=>{o=Tr.request((()=>{p((()=>{m({height:0,width:0}),e.style.removeProperty("content-visibility"),e.style.removeProperty("display"),f(!1),t.current=null}),n)}))}));return()=>{Tr.cancel(i),Tr.cancel(o)}}{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")})),!N.current&&!a&&e.setAttribute(Ka.startingStyle,""),m({height:e.scrollHeight,width:e.scrollWidth}),n=Tr.request((()=>{e.style.removeProperty("display"),Object.entries(t).forEach((([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)}))}))}return()=>{Tr.cancel(n)}}),[t,o,l,a,c,u,h,p,m,f,b]),Ii((()=>{if("css-animation"!==o.current)return;const e=h.current;e&&(C.current=e.style.animationName||C.current,e.style.setProperty("animation-name","none"),m({height:e.scrollHeight,width:e.scrollWidth}),!k.current&&!y.current&&e.style.removeProperty("animation-name"),u?(null!=t.current&&(t.current.abort(),t.current=null),f(!0),v(!0)):(t.current=new AbortController,p((()=>{f(!1),v(!1),t.current=null}),t.current.signal)))}),[t,o,u,h,p,m,f,v,x]),dr((()=>{const e=Tr.request((()=>{k.current=!1}));return()=>Tr.cancel(e)})),Ii((()=>{if(!l)return;const e=h.current;if(!e)return;let t=-1,n=-1;return u&&y.current&&(e.style.transitionDuration="0s",m({height:e.scrollHeight,width:e.scrollWidth}),t=Tr.request((()=>{y.current=!1,n=Tr.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))}))),()=>{Tr.cancel(t),Tr.cancel(n)}}),[l,u,h,m]),Ii((()=>{const e=h.current;e&&l&&I&&(e.setAttribute("hidden","until-found"),"css-transition"===o.current&&e.setAttribute(Ka.startingStyle,""))}),[l,I,o,h]),n.useEffect((function(){const e=h.current;if(e)return e.addEventListener("beforematch",t),()=>{e.removeEventListener("beforematch",t)};function t(e){y.current=!0,g(!0),d(!0,Cr("none",e))}}),[d,h,g]),n.useMemo((()=>({props:{hidden:I,id:s,ref:_}})),[I,s,_])}({abortControllerRef:u,animationTypeRef:h,externalRef:t,height:p,hiddenUntilFound:E,id:l??v,keepMounted:O,mounted:m,onOpenChange:f,open:g,panelRef:b,runOnceAnimationsFinish:x,setDimensions:w,setMounted:k,setOpen:N,setVisible:I,transitionDimensionRef:M,visible:_,width:T}),{state:P,triggerId:D}=Ua(),L=Ui("div",e,{state:n.useMemo((()=>({...P,transitionStatus:R})),[P,R]),ref:[t,b],props:[z,{"aria-labelledby":D,role:"region",style:{[ls.accordionPanelHeight]:void 0===p?"auto":`${p}px`,[ls.accordionPanelWidth]:void 0===T?"auto":`${T}px`}},s],stateAttributesMapping:es});return O||E||!O&&m?L:null}));"production"!==process.env.NODE_ENV&&(as.displayName="AccordionPanel");const ss="_AccordionRoot_wzlmo_1",cs="_Trigger_wzlmo_9",ds="_Header_wzlmo_18",us="_TriggerIcon_wzlmo_40",hs="_TriggerIconRight_wzlmo_48",ps="_Panel_wzlmo_56",ms="_Content_wzlmo_67",fs=({className:e,children:t,expanded:n,defaultExpanded:o,onChange:i,...r})=>{const l="item",a={...r,type:"single",className:ti(ss,e),onValueChange:e=>{null==i||i(e.includes(l))},...void 0!==n?{value:n?[l]:[]}:{defaultValue:o?[l]:[]}};return m(Ba,{...a,children:m(ts,{value:l,children:t})})},gs=({size:e="large",expandChevronRight:t,className:n,headerClassName:o,sx:i,children:r,...l})=>{const a="small"===e,s={"--trigger-height":a?"48px":"72px","--trigger-padding-x":a?"8px":"16px","--trigger-font-size":a?"14px":"18px","--chevron-size":a?"20px":"24px",...i};return m(ns,{className:Do(ds,o),children:m(is,{...l,className:Do(cs,n),style:s,children:f(g,t?{children:[r,m(jn,{className:Do(us,hs),"data-state-icon":!0})]}:{children:[m(jn,{className:us,"data-state-icon":!0}),r]})})})},vs=({children:e,...t})=>m(as,{...t,className:ps,children:m("div",{className:ms,children:e})}),bs=e=>m($,{...e}),xs=({filterIsActive:e,label:t,hideLabel:n=!1,size:o="large",variant:i="outlined",...r})=>m(g,{children:f("div",{className:"w-fit h-fit relative",children:[m(Ho,{...r,type:"button",startIcon:m(Qn,{width:"large"===o?24:20,height:"large"===o?24:20}),variant:i,size:o,children:!n&&(t||"Filter")}),e&&m("div",{className:Do("h-2 w-2 bg-gama-400 rounded-full absolute","large"===o?"top-2 right-2":"top-1 right-1")})]})}),ws=()=>{const[e,t]=l(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:o=>{e?n():(e=>{t((()=>e.currentTarget))})(o)}}},ys=e=>o.isValidElement(e)||"string"==typeof e||"number"==typeof e||null===e||Array.isArray(e),Cs=({filterIsActive:e,popoverContent:t,dataTest:n,disabled:i,size:r="large",variant:l="outlined",popoverProps:a,anchorNode:s,label:c,hideLabel:d})=>{const{onAnchorClick:u,onClose:h,anchorEl:p}=ws(),v=null==s?void 0:s({isOpen:!!p,onClose:h});return f(g,{children:[f("div",{className:"w-fit h-fit relative",children:[s&&o.isValidElement(v)?o.cloneElement(v,{onClick:u}):m(Ho,{type:"button",disabled:i,variant:l,startIcon:m(Qn,{width:"large"===r?24:20,height:"large"===r?24:20}),onClick:u,size:r,dataTest:n,children:!d&&(c||"Filter")}),e&&m("div",{className:Do("h-2 w-2 bg-gama-400 rounded-full absolute","large"===r?"top-2 right-2":"top-1 right-1")})]}),m(bs,{...a,open:!!p,anchorEl:p,onClose:h,anchorOrigin:(null==a?void 0:a.anchorOrigin)||{vertical:"bottom",horizontal:"right"},transformOrigin:(null==a?void 0:a.transformOrigin)||{vertical:"top",horizontal:"right"},className:(null==a?void 0:a.className)||"my-1",children:ys(t)?t:t({isOpen:!!p,onClose:h})})]})},ks=({className:e,contentToCopy:t,locale:n,messageInfo:o,text:i})=>{const r="en"===n?"Copy":"Kopier",l=Zo();return m(Oo,{title:r,children:m("div",{children:m(Ho,{dataTest:"copy-button",className:e,size:"small",variant:"text",startIcon:m(ae,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{o("no"===n?"Kopiert til utklippstavle":"Copied to clipboard")}))},children:!l&&(i||r)})})})},Ns="_copy-wrapper_1gjzc_1",Is="_hidden-copy_1gjzc_1",Ms=({className:e,contentToCopy:t,locale:n,messageInfo:o,children:i})=>f("div",{className:ti("flex items-center hover:text-gama-500",Ns,e),children:[i,m(Oo,{title:"no"===n?"Kopier":"Copy",className:Is,children:m("div",{children:m(Ho,{dataTest:"copy-button",size:"small",variant:"text",className:"cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).then((()=>{o("no"===n?"Kopiert til utklippstavle":"Copied to clipboard")}))},startIcon:m(ae,{width:20,height:20})})})})]}),_s="_styled-widget-title_1mja5_1",Ts=function(e){return m("div",{className:_s,children:e.children})},Ss="_styled-widget-header_yk04z_1",Rs=({actions:e,title:t,containerClassname:n,actionsClassname:o})=>f("div",{className:ti(Ss,n),children:[m(Ts,{children:t}),m("div",{className:o,children:e})]}),Es="_asma-ui-core-styled-widget_gzht1_1",Os="_empty-state_gzht1_13",zs="_widget-header-left_gzht1_22",Ps="_widget-header-right_gzht1_28",Ds="_widget-content_gzht1_34",Ls="_widget-footer_gzht1_44",Vs="_widget-link_gzht1_49";function As(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})})}function Fs(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})})}const qs=({children:e,title:t,icon:n,link:o,viewMore:i,persistKey:r,isLoading:s,isEmpty:c,emptyText:d,headerRight:u,headerRightClassName:h})=>{const[p,v]=l(!1);a((()=>{if(r){const e=localStorage.getItem(r);v("true"===e)}}),[r]),a((()=>{r&&localStorage.setItem(r,String(p))}),[p,r]);const b=!!o&&!o.hide,x=!(!i||null!=i&&i.hide);return f("div",{className:`${Es} ${c?Os:""}`,children:[f("div",{className:zs,children:[n,m(Ts,{children:t}),m("div",{className:`${Ps} ${h??""}`,children:u})]}),m("div",{className:Ds,children:f(g,{children:[e,m(pi,{isLoading:s}),m(si,{isEmpty:c,emptyText:d})]})}),x&&f("div",{className:Ls,children:[!i||null!=i&&i.hide?m("div",{}):m(Ho,{disabled:i.disabled,dataTest:"view-more",variant:"text",endIcon:m(p?As:Fs,{width:20,height:20}),onClick:()=>{var e;v(!p),null==(e=null==i?void 0:i.onClick)||e.call(i)},children:p?i.viewLessText:i.viewMoreText}),b?m(Pa,{dataTest:"go-to-button",className:Vs,size:"small",href:o.href,onClick:o.onClick,content:o.content}):m("div",{})]})]})},js="_styled-module-title_174mo_1",Bs=function(e){return m("h1",{"data-test":e.dataTest,className:js,children:e.children})},Hs="_dialog_erjok_1",$s="_hidden_erjok_9";function Ws(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m("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 Us(e){return m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m("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 Ks="object"==typeof global&&global&&global.Object===Object&&global;var Gs="object"==typeof self&&self&&self.Object===Object&&self;const Ys=(Ks||Gs||Function("return this")()).Symbol;var Zs=Object.prototype,Js=Zs.hasOwnProperty,Qs=Zs.toString,Xs=Ys?Ys.toStringTag:void 0;var ec=Object.prototype.toString;var tc="[object Null]",nc="[object Undefined]",oc=Ys?Ys.toStringTag:void 0;function ic(e){return null==e?void 0===e?nc:tc:oc&&oc in Object(e)?function(e){var t=Js.call(e,Xs),n=e[Xs];try{e[Xs]=void 0;var o=!0}catch{}var i=Qs.call(e);return o&&(t?e[Xs]=n:delete e[Xs]),i}(e):function(e){return ec.call(e)}(e)}const rc=Array.isArray;function lc(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=ic(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const ac=({onCloseText:e="",onMinimizeText:t="",onExpandText:n="",onFullScreenText:o="",showCloseIcon:i=!0,showMinimizeIcon:r=!0,showExpandIcon:a=!0,showFullScreenIcon:s=!0,title:c,label:u,children:h,open:p,onClose:v,className:b="",primaryButtonText:x,primaryButtonLoading:w=!1,secondaryButtonText:y,onPrimaryButtonClick:C,onSecondaryButtonClick:k,dataTest:N,actionNode:I,extraActions:M,extraActionsText:_,btnContainerClassName:T,footerClassName:S,footerInfo:R,locale:E="en",enableFullscreen:O=!0,fullScreenState:z,handleFullScreenState:P})=>{const[D,L]=l(!1),[V,A]=l(!1),{open:F,anchorEl:q,handleOpen:j,handleClose:B}=(()=>{const[e,t]=l(null),n=!!e,o=d((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:d((()=>{t(null)}),[]),handleOpen:o,anchorEl:e}})();if(!p)return null;const H=void 0!==z?z:V,$=x||w,W=$||y,U=()=>{L(!D)};return f(g,{children:[H&&!D&&m("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),m("div",{style:{zIndex:51},className:ti(Hs,!D&&$s),children:f("div",{className:Do("flex items-center justify-between",!D&&"hidden"),"data-test":N,children:[m("div",{className:"truncate text-lg font-semibold text-delta-800",children:c}),f("div",{className:"flex items-center gap-x-1",children:[a&&m(Oo,{title:"en"===E?"Expand":"Utvid",children:m("div",{children:m(Ho,{dataTest:"minimize-button",variant:"text",size:"small",onClick:U,endIcon:a&&m(bo,{height:20,width:20,color:"text-gama-500"}),children:n})})}),i&&m(Oo,{title:"en"===E?"Close":"Lukk",children:m("div",{children:m(Ho,{dataTest:"close-button",variant:"textGray",size:"small",onClick:v,endIcon:i&&m(Hn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]})}),f("div",{className:ti("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",b&&!D?b:"",D&&"!h-0 !w-0 opacity-0 duration-0",H&&!D&&"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":N,children:[f("div",{className:"flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[f("div",{className:"flex items-center justify-between",children:[m("div",u?{className:"text-sm text-delta-700",children:u}:{className:"text-2xl font-semibold text-delta-800",children:c}),f("div",{className:"flex items-center gap-x-1",children:[I,r&&m(Oo,{title:"en"===E?"Minimize":"Minimer",children:m("div",{children:m(Ho,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:U,endIcon:r&&m(vo,{height:20,width:20,color:"text-delta-700"}),children:t})})}),O&&s&&m(Oo,{title:H?"en"===E?"Exit full screen":"Avslutt fullskjerm":"en"===E?"Full screen":"Fullskjerm",children:m("div",{children:m(Ho,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==z&&P?P():A(!V)},endIcon:m(H?Us:Ws,{width:20,height:20,color:"text-delta-700"}),children:o})})}),i&&m(Oo,{title:"en"===E?"Close":"Lukk",children:m("div",{children:m(Ho,{dataTest:"close-button",variant:"textGray",size:"small",onClick:v,endIcon:m(Hn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]}),u&&m("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:c})]}),f("div",{className:Do("flex flex-col",H&&!D&&"h-[87dvh]"),children:[m("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof h?h({fullScreen:H}):h}),(rc(M)&&null!=M&&M.length||lc(M))&&_||R?f("div",{className:ti("flex items-center justify-between p-4 border-0 border-t-[1px] border-solid border-delta-200 bg-white",S),children:[rc(M)&&null!=M&&M.length&&_?f(g,{children:[m(Ho,{dataTest:"extra-actions-button",variant:"textGray",startIcon:m(zn,{width:24,height:24}),onClick:j,children:_}),m(Ma,{open:F,anchorEl:q,onClose:B,children:M.map((e=>m(_a,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):_&&lc(M)&&m(Ho,{dataTest:"extra-action-button",variant:"text",onClick:M,children:_})," ",R,W?f("div",{className:ti("flex justify-end gap-x-4",T),children:[y&&k&&m(Ho,{dataTest:"cancel-button",variant:"outlined",onClick:k,children:y}),$&&C&&m(Ho,{dataTest:"save-button",startIcon:w&&m(ie,{width:24,height:24}),onClick:C,children:x})]}):null]}):m(g,{children:W?f("div",{className:ti("flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",T),children:[y&&k&&m(Ho,{dataTest:"cancel-button",variant:"outlined",onClick:k,children:y}),$&&C&&m(Ho,{dataTest:"save-button",startIcon:w&&m(ie,{width:24,height:24}),onClick:C,children:x})]}):null})]})]})]})},sc=({showCloseIcon:e,tooltipTitle:t,onClick:n})=>e?m(Oo,{title:t,placement:"top",children:m("div",{children:m(Ho,{dataTest:"close-button",variant:"textGray",size:"small",onClick:n,endIcon:m(Hn,{height:20,width:20,color:"text-delta-700"})})})}):null,cc=({visibility:e,tooltipTitle:t,onClick:n,type:o})=>{if(!e)return null;const i="minimize"===o;return"expand"===o?m("div",{children:m(Oo,{title:t,placement:"top",children:m("div",{children:m(Ho,{dataTest:"toggle-minimize-btn",variant:"text",size:"small",onClick:n,endIcon:m(bo,{height:20,width:20,color:"text-gama-500"})})})})}):i?m("div",{children:m(Oo,{title:t,placement:"top",children:m("div",{children:m(Ho,{dataTest:"toggle-minimize-btn",variant:"textGray",size:"small",onClick:n,endIcon:m(vo,{height:20,width:20,color:"text-delta-700"})})})})}):null},dc=({fullScreen:e,showFullScreenIcon:t,tooltipTitle:n,onClick:o})=>t?m(Oo,{title:n,children:m("div",{children:m(Ho,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:o,endIcon:m(e?Us:Ws,{width:20,height:20,color:"text-delta-700"})})})}):null,uc="_minimized-dialog_16tvw_5",hc="_dialog_16tvw_1",pc="_hidden_16tvw_27",mc={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 fc=e=>{const{showCloseIcon:t=!0,showMinimizeIcon:n=!0,showExpandIcon:o=!0,enableFullscreen:i=!0,title:r,label:a,children:s,open:d,onClose:h,classNameOverrides:p={maximized:"",minimized:"",fullscreen:""},dataTest:v,actionNode:b,locale:x="en",style:w}=e,y=Zo(),C=function(e="en"){return u((()=>mc[e]??mc.en),[e])}(x),k=c(null),{minimized:N,setMinimized:I,fullScreen:M,setFullScreen:_}=(({fullScreenState:e,handleFullScreenState:t,minimizedState:n,handleMinimizedState:o})=>{const[i,r]=l(!1),[a,s]=l(!1);return{fullScreen:void 0!==e?e:a,setFullScreen:e=>t?t():s(e),minimized:void 0!==n?n:i,setMinimized:e=>o?o(e):r(e)}})(e);return d?f(g,{children:[m("div",{style:{zIndex:51,...w},className:ti(uc,!N&&pc,p.minimized),children:f("div",{className:Do("flex items-center justify-between",!N&&"hidden"),"data-test":v,children:[m("div",{className:"truncate max-w-[303px] text-lg font-semibold text-delta-800 pr-1",children:m(Oo,{title:r,placement:"top",children:m("div",{className:"truncate",children:r})})}),f("div",{className:"flex items-center gap-x-1",children:[m(cc,{type:"expand",visibility:o,onClick:()=>I(!N),tooltipTitle:C.expand}),m(sc,{showCloseIcon:t,onClick:h,tooltipTitle:C.close})]})]})}),M&&!N&&m("div",{className:"z-[52] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70",onClick:()=>_(!1)}),f("div",{style:{zIndex:51,...w},ref:k,className:ti(hc,N&&pc,p.maximized,M&&!N&&"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:[f("div",{className:ti("flex flex-col px-4 border-b-[1px] border-delta-200",y?"py-3":"py-4"),children:[f("div",{className:"flex items-center justify-between",children:[m("div",a?{className:"text-sm text-delta-700",children:a}:{className:ti("font-semibold text-delta-800",y?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:r}),f("div",{className:"flex items-center gap-x-1",children:[b,m(cc,{visibility:n&&!y,type:"minimize",onClick:()=>I(!N),tooltipTitle:C.minimize}),m(dc,{showFullScreenIcon:i&&!y,fullScreen:M,onClick:()=>_(!M),tooltipTitle:M?C.exitFullscreen:C.fullscreen}),m(sc,{showCloseIcon:t,onClick:h,tooltipTitle:C.close})]})]}),a&&m("div",{className:ti("font-semibold text-delta-800",y?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:r})]}),m("div",{className:ti(N&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:s})]})]}):null};function gc({config:e,MAX_DIALOG_WIDTH:t=600}){const n=h(void 0);return{DialogStackProvider:({children:o})=>{const[i,r]=l([]),s=function(){const[e,t]=l((()=>window.innerWidth));return a((()=>{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)),o=n.length||1,i=Math.min(t,(s-16*(o+1))/o);return n.map(((e,t)=>({...e,width:i,position:{right:16+t*(i+16)}})))}),[s]),u=d(((t,n)=>{var o,i;const l=null==(o=e[t])?void 0:o.dependencies,a=(null==(i=e[t])?void 0:i.order)??1/0,s=n??a;r((e=>{const n=e.find((e=>e.id===t)),o={id:t,open:!0,width:0,position:{right:0},dependencies:l,order:s},i=n?e.map((e=>e.id===t?{...e,open:!0,dependencies:l}:e)):[...e,o];return c(i.filter((e=>e.open)))}))}),[c]),h=d((e=>{r((t=>{var n;const o=new Set([e]);let i;do{i=!1;for(const e of t)null!=(n=e.dependencies)&&n.some((e=>o.has(e)))&&!o.has(e.id)&&(o.add(e.id),i=!0)}while(i);return c(t.filter((e=>!o.has(e.id))))}))}),[c]),p=d((e=>i.find((t=>t.id===e))),[i]);return m(n.Provider,{value:{dialogs:i,openDialog:u,closeDialog:h,getDialogState:p},children:o})},useDialogStack:function(){const e=p(n);if(!e)throw new Error("useDialogStack must be used within DialogStackProvider");return e}}}export{An as ArchiveIcon,wn as AssignmentIcon,yn as AssignmentOutlineIcon,W as Avatar,wo as BadgeIcon,tn as BellIcon,en as BellOutlineIcon,oo as CalendarBlankOutlineIcon,vn as CalendarIcon,xn as CalendarRangeIcon,qn as CheckBoxCheckedIcon,gn as CheckFactIcon,fn as CheckFactOutlineIcon,Fr as CheckIcon,mn as CheckOutlineIcon,ln as ChevronDoubleLeftIcon,an as ChevronDoubleRightIcon,jn as ChevronDownIcon,rn as ChevronLeftIcon,on as ChevronRightIcon,Bn as ChevronUpIcon,U as ClickAwayListener,Hn as CloseIcon,go as ConsentsIcon,K as Container,ks as CopyButton,Ms as CopyWrapper,dn as DashboardViewIcon,un as DashboardViewOutlineIcon,Jn as DeleteOutlineIcon,zn as DotsVerticalIcon,Fn as DownloadIcon,Yn as DragHorizontalIcon,Vn as DropDownIcon,Ln as DropUpIcon,eo as DvrIcon,uo as EarthIcon,yo as EditSquareIcon,to as ErrorOutlineIcon,G as Fade,ro as FastCheckOutlineIcon,Zn as FilePdfIcon,Qn as FilterIcon,Sn as FindReplaceIcon,Rn as FindReplacePeopleIcon,Y as FormLabel,nn as HamburgerIcon,Io as HandymanIcon,No as HandymanOutlineIcon,Un as InboxOutboxIcon,Kn as InboxOutboxOutlineIcon,Ar as IndeterminateIcon,bo as KeyboardCapslockIcon,io as LinkOutlineIcon,Cn as ListNumberedIcon,co as ListSettingsLineIcon,ao as ListStatusIcon,Dn as LoadingIcon,Xn as LockIcon,kn as MessageProcessingIcon,Nn as MessageProcessingOutlineIcon,xo as MessageReplyIcon,ac as MinimizableDialog,fc as MinimizableDialogV2,vo as MinimizeIcon,bn as NewCalendarIcon,fo as OutlineCalendarMonth,Z as Paper,cn as PdfIcon,po as PencilOutlineIcon,pn as PeopleIcon,hn as PeopleOutlineIcon,$n as PermMediaIcon,Wn as PermMediaOutline,En as PersonIcon,On as PersonOutlineIcon,Mo as PinIcon,Co as PlusIcon,ko as PlusIconCircle,J as Popper,sn as QnrIcon,no as ReplayIcon,In as ReportBoxIcon,Mn as ReportBoxOutlineIcon,Pn as SearchIcon,_n as SettingsIcon,ho as SettingsMenuHorizontalIcon,Tn as SettingsOutlineIcon,Q as Skeleton,X as Stack,fs as StyledAccordion,vs as StyledAccordionDetails,gs as StyledAccordionSummary,be as StyledBadge,Ho as StyledButton,qr as StyledCheckbox,To as StyledChip,Jo as StyledDialog,ni as StyledDialogActions,ii as StyledDialogContent,li as StyledDialogTitle,Ia as StyledDrawer,xa as StyledDynamicSelect,si as StyledEmptyPage,xs as StyledFilterButton,Cs as StyledFilterMenu,ui as StyledFilteredEmptyState,wa as StyledFormControl,ya as StyledFormControlLabel,Na as StyledFormGroup,Ca as StyledFormHelperText,qo as StyledFormLabel,jr as StyledInputField,ka as StyledInputLabel,Eo as StyledInteractiveChip,ga as StyledLabel,Pa as StyledLink,pi as StyledLoading,Ma as StyledMenu,_a as StyledMenuItem,Ta as StyledMenuList,Bs as StyledModuleTitle,bs as StyledPopover,Il as StyledRadio,fa as StyledRadioGroup,Br as StyledSearchField,Wr as StyledSelect,Yr as StyledSelectAutocomplete,Ur as StyledSelectItem,Zr as StyledSlider,rl as StyledSwitch,Da as StyledTab,La as StyledTabs,$r as StyledTextarea,Oo as StyledTooltip,zo as StyledTypography,qs as StyledWidget,Rs as StyledWidgetHeader,Ts as StyledWidgetTitle,so as TextBoxCheckOutlineIcon,Gn as TopicIcon,lo as UnknownDocumentOutlineRoundedIcon,mo as WarningAmberOutlineIcon,_o as WorkIcon,gc as createDialogStack,se as omit,ve as prepareForSlot,fe as setMidnightTime,ge as setZeroTime};
|