asma-ui-core 3.4.2 → 3.5.1

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.
@@ -1 +1 @@
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,CloseIcon as ie,LoadingIcon as re,PlusIconCircle as le,CheckIcon as ae,ContentCopyIcon as se}from"asma-ui-icons";const ce=(e,t)=>Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))));function de(e){return(de="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 ue(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 he(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function pe(e){he(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===de(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 me(e,t){he(2,arguments);var n=pe(e),o=ue(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){he(1,arguments);var t=pe(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 fe(e,t){if(he(2,arguments),"object"!==de(t)||null===t)throw new RangeError("values parameter must be an object");var n=pe(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=me(n,t.month)),null!=t.date&&n.setDate(ue(t.date)),null!=t.hours&&n.setHours(ue(t.hours)),null!=t.minutes&&n.setMinutes(ue(t.minutes)),null!=t.seconds&&n.setSeconds(ue(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(ue(t.milliseconds)),n)}const ge=e=>fe(e,{hours:23,minutes:59,seconds:59,milliseconds:59}),ve=e=>fe(e,{hours:0,minutes:0,seconds:0,milliseconds:0});function be(e){return i((function(t,n){const{ownerState:o,...i}=t;return r(e,{...i,ref:n})}))}const xe=({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}}),we=/^[a-z0-9]+(-[a-z0-9]+)*$/,ye=(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&&!Ce(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&&!Ce(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:r};return t&&!Ce(e,n)?null:e}return null},Ce=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(we)||!(t&&""===e.prefix||e.prefix.match(we))||!e.name.match(we)),ke=Object.freeze({left:0,top:0,width:16,height:16}),Ne=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ie=Object.freeze({...ke,...Ne}),Me=Object.freeze({...Ie,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 o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}(e,t);for(const o in Me)o in Ne?o in e&&!(o in n)&&(n[o]=Ne[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Te(e,t,n){const o=e.icons,i=e.aliases||Object.create(null);let r={};function l(e){r=_e(o[e]||i[e],r)}return l(t),n.forEach(l),_e(e,r)}function Se(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,Te(e,i,r)),n.push(i))}return n}const Re={provider:"",aliases:{},not_found:{},...ke};function Ee(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Oe(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!Ee(e,Re))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(we)||"string"!=typeof t.body||!Ee(t,Me))return null}const o=t.aliases||Object.create(null);for(const e in o){const t=o[e],i=t.parent;if(!e.match(we)||"string"!=typeof i||!n[i]&&!o[i]||!Ee(t,Me))return null}return t}const ze=Object.create(null);function Pe(e,t){const n=ze[e]||(ze[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 Oe(t)?Se(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let Le=!1;function Ve(e){return"boolean"==typeof e&&(Le=e),Le}function Ae(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),Le&&!t&&!e.prefix){let t=!1;return Oe(e)&&(e.prefix="",Se(e,((e,n)=>{n&&function(e,t){const n=ye(e,!0,Le);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(Pe(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!Ce({provider:t,prefix:n,name:"a"}))return!1;return!!De(Pe(t,n),e)}const Fe=Object.freeze({width:null,height:null}),qe=Object.freeze({...Fe,...Ne}),je=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Be=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function He(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(je);if(null===o||!o.length)return e;const i=[];let r=o.shift(),l=Be.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 $e=/\sid="(\S+)"/g,We="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Ue=0;function Ke(e,t=We){const n=[];let o;for(;o=$e.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+(Ue++).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 Ge=Object.create(null);function Ye(e){return Ge[e]||Ge[""]}function Ze(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),Qe=["https://api.simplesvg.com","https://api.unisvg.com"],Xe=[];for(;Qe.length>0;)1===Qe.length||Math.random()>.5?Xe.push(Qe.shift()):Xe.push(Qe.pop());function et(e,t){const n=Ze(t);return null!==n&&(Je[e]=n,!0)}function tt(e){return Je[e]}Je[""]=Ze({resources:["https://api.iconify.design"].concat(Xe)});let nt=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const ot={prepare:(e,t,n)=>{const o=[],i=function(e,t){const n=tt(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(!nt)return void n("abort",424);let o=function(e){if("string"==typeof e){const t=tt(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;nt(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 it(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let rt=0;var lt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function at(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 st(e){const t={...lt,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,i,r){const l=at(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 ct(){}const dt=Object.create(null);function ut(e,t,n){let o,i;if("string"==typeof e){const t=Ye(e);if(!t)return n(void 0,424),ct;i=t.send;const r=function(e){if(!dt[e]){const t=tt(e);if(!t)return;const n={config:t,redundancy:st(t)};dt[e]=n}return dt[e]}(e);r&&(o=r.redundancy)}else{const t=Ze(e);if(t){o=st(t);const n=Ye(e.resources?e.resources[0]:"");n&&(i=n.send)}}return o&&i?o.query(t,i,n)().abort:(n(void 0,424),ct)}const ht="iconify2",pt="iconify",mt=pt+"-count",ft=pt+"-version",gt=36e5,vt=168;function bt(e,t){try{return e.getItem(t)}catch{}}function xt(e,t,n){try{return e.setItem(t,n),!0}catch{}}function wt(e,t){try{e.removeItem(t)}catch{}}function yt(e,t){return xt(e,mt,t.toString())}function Ct(e){return parseInt(bt(e,mt))||0}const kt={local:!0,session:!0},Nt={local:new Set,session:new Set};let It=!1;let Mt=typeof window>"u"?{}:window;function _t(e){const t=e+"Storage";try{if(Mt&&Mt[t]&&"number"==typeof Mt[t].length)return Mt[t]}catch{}kt[e]=!1}function Tt(e,t){const n=_t(e);if(!n)return;const o=bt(n,ft);if(o!==ht){if(o){const e=Ct(n);for(let t=0;t<e;t++)wt(n,pt+t.toString())}return xt(n,ft,ht),void yt(n,0)}const i=Math.floor(Date.now()/gt)-vt,r=e=>{const o=pt+e.toString(),r=bt(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{}wt(n,o)}};let l=Ct(n);for(let t=l-1;t>=0;t--)r(t)||(t===l-1?(l--,yt(n,l)):Nt[e].add(t))}function St(){if(!It){It=!0;for(const e in kt)Tt(e,(e=>{const t=e.data,n=Pe(e.provider,t.prefix);if(!De(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function Rt(e,t){function n(n){let o;if(!kt[n]||!(o=_t(n)))return;const i=Nt[n];let r;if(i.size)i.delete(r=Array.from(i).shift());else if(r=Ct(o),!yt(o,r+1))return;const l={cached:Math.floor(Date.now()/gt),provider:e.provider,data:t};return xt(o,pt+r.toString(),JSON.stringify(l))}It||St(),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 kt)Tt(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 Et(){}function Ot(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||it([e],t.id),t.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),t.abort))}))})))}(e)})))}const zt=(e,t)=>{const n=function(e,t=!0,n=!1){const o=[];return e.forEach((e=>{const i="string"==typeof e?ye(e,t,n):e;i&&o.push(i)})),o}(e,!0,Ve()),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]=Pe(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,Et)})),()=>{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(Pe(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=Pe(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=Ye(t))&&i.prepare(t,n,o).forEach((n=>{ut(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 o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),Rt(e,t)}catch(e){console.error(e)}Ot(e)}))}))})))}(e,i[t][n])})),t?function(e,t,n){const o=rt++,i=it.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):Et};const Pt=/[\s,]+/;function Dt(e,t){t.split(Pt).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Lt(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 Vt(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 Ft(e){return void 0===At&&function(){try{At=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{At=null}}(),At?At.createHTML(e):e}const qt={...qe,inline:!1},jt={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Bt={display:"inline-block"},Ht={backgroundColor:"currentColor"},$t={backgroundColor:"transparent"},Wt={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ut={WebkitMask:Ht,mask:Ht,background:$t};for(const e in Ut){const t=Ut[e];for(const n in Wt)t[e+n]=Wt[n]}const Kt={...qt,inline:!0};function Gt(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Yt=(e,t,n,i)=>{const r=n?Kt:qt,l=function(e,t){const n={...e};for(const e in t){const o=t[e],i=typeof o;e in Fe?(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?jt:{},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&&Dt(l,n);break;case"color":s.color=n;break;case"rotate":"string"==typeof n?l[e]=Lt(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={...Ie,...e},o={...qe,...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=He(u,s/c)):(d="auto"===l?s:l,u=null===a?He(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:Ft(Ke(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":Vt(v),width:Gt(h.width),height:Gt(h.height),...Bt,...g?Ht:$t,...c},o.createElement("span",d)};var Zt;if(Ve(!0),Zt=ot,Ge[""]=Zt,typeof document<"u"&&typeof window<"u"){St();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 o=t[e];if("object"!=typeof o||!o||void 0===o.resources)continue;et(e,o)||console.error(n)}catch{console.error(n)}}}}class Jt 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=ye(n,!1,!0)))return this._abortLoading(),void this._setData(null);const i=function(e){const t="string"==typeof e?ye(e,!0,Le):e;if(t){const e=Pe(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:zt([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(" ")}),Yt({...Ie,...t.data},n,e._inline,e._ref)}}const Qt=o.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!1};return o.createElement(Jt,n)}));o.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!0};return o.createElement(Jt,n)}));const Xt="_icon_1czju_5",en=({width:e=20,height:t=20,className:n="",icon:o,onClick:i,color:r,vFlip:l=!1})=>m(Qt,{onClick:i,icon:o,width:e,height:t,className:`${Xt} ${n}`,color:r,vFlip:l}),tn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:bell-outline",width:e,height:t,className:n,onClick:o,color:i}),nn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:bell",width:e,height:t,className:n,onClick:o,color:i}),on=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"charm:menu-hamburger",width:e,height:t,className:n,onClick:o,color:i}),rn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:chevron-right",width:e,height:t,className:n,onClick:o,color:i}),ln=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:chevron-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(en,{icon:"mdi:chevron-double-left",width:e,height:t,className:n,onClick:o,color:i}),sn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:chevron-double-right",width:e,height:t,className:n,onClick:o,color:i}),cn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"fluent:document-bullet-list-24-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(en,{icon:"fluent:document-pdf-20-filled",width:e,height:t,className:n,onClick:o,color:i}),un=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:view-dashboard",width:e,height:t,className:n,onClick:o,color:i}),hn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:view-dashboard-outline",width:e,height:t,className:n,onClick:o,color:i}),pn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:outline-people-alt",width:e,height:t,className:n,onClick:o,color:i}),mn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:sharp-people",width:e,height:t,className:n,onClick:o,color:i});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:"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 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 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 vn(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 bn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:calendar-blank",width:e,height:t,className:n,onClick:o,color:i}),xn=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"})}),wn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:calendar-range",width:e,height:t,className:n,onClick:o,color:i}),yn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:baseline-assignment",width:e,height:t,className:n,onClick:o,color:i}),Cn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"material-symbols:assignment-outline",width:e,height:t,className:n,onClick:o,color:i}),kn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:baseline-format-list-numbered",width:e,height:t,className:n,onClick:o,color:i}),Nn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:message-processing",width:e,height:t,className:n,onClick:o,color:i}),In=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:message-processing-outline",width:e,height:t,className:n,onClick:o,color:i}),Mn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:report-box",width:e,height:t,className:n,onClick:o,color:i}),_n=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:report-box-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(en,{icon:"mdi:settings",width:e,height:t,className:n,onClick:o,color:i}),Sn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:settings-outline",width:e,height:t,className:n,onClick:o,color:i}),Rn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:baseline-sync",width:e,height:t,className:n,onClick:o,color:i,vFlip:!0}),En=({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})]}),On=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:round-person",width:e,height:t,className:n,onClick:o,color:i}),zn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:round-person-outline",width:e,height:t,className:n,onClick:o,color:i}),Pn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:dots-vertical",width:e,height:t,className:n,onClick:o,color:i}),Dn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:outline-search",width:e,height:t,className:n,onClick:o,color:i}),Ln=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"line-md:loading-twotone-loop",width:e,height:t,className:n,onClick:o,color:i}),Vn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:baseline-arrow-drop-up",width:e,height:t,className:n,onClick:o,color:i}),An=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:baseline-arrow-drop-down",width:e,height:t,className:n,onClick:o,color:i}),Fn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"eva:archive-fill",width:e,height:t,className:n,onClick:o,color:i}),qn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:baseline-download",width:e,height:t,className:n,onClick:o,color:i}),jn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:checkbox-marked-outline",width:e,height:t,className:n,onClick:o,color:i}),Bn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:chevron-down",width:e,height:t,className:n,onClick:o,color:i}),Hn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:chevron-up",width:e,height:t,className:n,onClick:o,color:i}),$n=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:baseline-close",width:e,height:t,className:n,onClick:o,color:i}),Wn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"material-symbols:perm-media",width:e,height:t,className:n,onClick:o,color:i}),Un=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"material-symbols:perm-media-outline",width:e,height:t,className:n,onClick:o,color:i}),Kn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:inbox",width:e,height:t,className:n,onClick:o,color:i}),Gn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:inbox-outline",width:e,height:t,className:n,onClick:o,color:i}),Yn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:sharp-topic",width:e,height:t,className:n,onClick:o,color:i}),Zn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"akar-icons:drag-horizontal",width:e,height:t,className:n,onClick:o,color:i}),Jn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"fa6-regular:file-pdf",width:e,height:t,className:n,onClick:o,color:i}),Qn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"material-symbols:delete-outline",width:e,height:t,className:n,onClick:o,color:i}),Xn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:filter-variant",width:e,height:t,className:n,onClick:o,color:i}),eo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"material-symbols:lock-outline",width:e,height:t,className:n,onClick:o,color:i}),to=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:baseline-dvr",width:e,height:t,className:n,onClick:o,color:i}),no=({width:e=20,height:t=20,className:n="",onClick:o,color:i="var(--colors-error-500)"})=>m(en,{icon:"mdi:error-outline",width:e,height:t,className:n,onClick:o,color:i}),oo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:replay",width:e,height:t,className:n,onClick:o,color:i}),io=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:calendar-blank-outline",width:e,height:t,className:n,onClick:o,color:i}),ro=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:outline-link",width:e,height:t,className:n,onClick:o,color:i}),lo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"material-symbols:fact-check-outline",width:e,height:t,className:n,onClick:o,color:i}),ao=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"material-symbols:unknown-document-outline-rounded",width:e,height:t,className:n,onClick:o,color:i}),so=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:list-status",width:e,height:t,className:n,onClick:o,color:i}),co=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:text-box-check-outline",width:e,height:t,className:n,onClick:o,color:i}),uo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ri:list-settings-line",width:e,height:t,className:n,onClick:o,color:i}),ho=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"pajamas:earth",width:e,height:t,className:n,onClick:o,color:i}),po=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"streamline:interface-setting-menu-1-button-parallel-horizontal-lines-menu-navigation-three-hamburger",width:e,height:t,className:n,onClick:o,color:i}),mo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"mdi:pencil-outline",width:e,height:t,className:n,onClick:o,color:i});function fo(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 go=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>m(en,{icon:"ic:outline-calendar-month",width:e,height:t,className:n,onClick:o,color:i});function vo(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 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 21v-2h12v2z"})}),xo=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 wo(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 yo(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 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:"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 ko(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 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:"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 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.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 Mo(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 _o(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 To(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 So=i((({dataTest:e,readOnly:t,onDelete:n,...o},i)=>m(b,{...o,ref:i,"data-test":e,deleteIcon:t?void 0:m($n,{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)",fontSize:"14px",...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}}))),Ro=({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"}}}),Eo=({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)"}}}),Oo=i((({type:e="checkbox",checked:t,size:n="small",...o},i)=>{const r="checkbox"===e,l=r?Ro:Eo,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(So,{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}})})),zo=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})},Po=e=>m(C,{...e});function Do(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=Do(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Lo(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=Do(e))&&(o&&(o+=" "),o+=t);return o}const Vo="_styled-label-md_jbn3o_1",Ao="_styled-label-base_jbn3o_10",Fo="_styled-label-lg_jbn3o_19",qo="_styled-label-xl_jbn3o_27",jo=({title:e,onClick:t,className:n,dataTest:o,size:i="base"})=>{const r=(({size:e})=>{switch(e){case"md":return Vo;case"lg":return Fo;case"xl":return qo;default:return Ao}})({size:i});return m("div",{className:Lo(r,n),onClick:t,"data-test":o,children:e})},Bo="_asma-ui-core-button_h1men_1",Ho={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"},$o=({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:Lo(Bo,Ho[e],Ho[s?"error":"common"],Ho[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]})},Wo="_styled-dialog-root_1st3i_1",Uo="_styled-top-header_1st3i_6",Ko="_styled-dialog-close_1st3i_13",Go="_styled-dialog-info_1st3i_20",Yo="_styled-dialog-label_1st3i_27",Zo="_styled-dialog-title_1st3i_37";function Jo(){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 Qo=({onCloseText:e,children:t,dataTest:n,showCloseIcon:o=!0,dialogLabel:i,dialogTitle:r,dialogHeaderNode:l,...a})=>{const s=Jo();return f(k,{"data-test":n,style:{zIndex:999,...a.style},fullScreen:!!s||a.fullScreen,...a,children:[m("div",{className:Wo,children:i||r||o?f("div",{className:Uo,children:[f("div",{className:Go,children:[i&&m("div",{className:Yo,children:i}),r&&m("div",{className:Zo,children:r})]}),o&&f("div",{className:Ko,children:[l,m($o,{dataTest:`close-button-${n}`,variant:"textGray",size:"small",endIcon:m($n,{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]})},Xo="_styled-dialog-actions-root_1yp8r_1",ei="_styled-dialog-actions_1yp8r_1",ti="_action-button-wrapper_1yp8r_17";function ni(...e){return te(Lo(e))}const oi=e=>m(N,{...e,"data-test":"styled-dialog-actions",classes:{...e.classes,root:Xo},children:m("div",{className:ni(ei,e.className),children:o.Children.map(e.children,(e=>m("div",{className:ti,children:e})))})}),ii="_styled-dialog-content_d2vki_1",ri=({children:e,classes:t,className:n,...o})=>m(I,{...o,"data-test":"styled-dialog-content",classes:{...t,root:ii},className:n,children:e}),li="_styled-dialog-title-root_mcspk_1",ai=({children:e,...t})=>e?m(M,{...t,"data-test":"styled-dialog-title",classes:{...t.classes,root:li},children:e}):null;function si(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 ci=({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(si,{"data-test":"empty-page-icon",width:24,height:24,className:"text-gray-600 cursor-default"}),m("span",{className:"font-normal",children:e})]}):null;function di(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 ui={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"}},hi=({dataTest:e,emptyText:t,locale:n="en",isFiltered:o=!1,filteredByDefault:i=!1,filterTitle:r,filteredDescription:l,resetButtonText:a,onResetFilters:s,actionIcon:c=m(di,{width:24,height:24,color:"currentColor"}),className:d,emptyPageClassName:u,filterContentClassName:h,resetButtonClassName:p})=>{const g=ui[n]??ui.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:ni("flex size-full flex-col items-center justify-center gap-4 py-4 text-center",d),children:[m("div",{children:m(ci,{isEmpty:!0,emptyText:v,className:ni("py-6",u)})}),o&&f("div",{className:ni("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($o,{size:"small",variant:"text",dataTest:`${e}-reset`,onClick:s,startIcon:c,className:ni("inline-flex items-center text-gama-700 hover:text-gama-800",p),children:m("span",{children:w})})]})]})},pi={small:16,medium:24,large:32},mi=({isLoading:e,className:t="",size:n="medium"})=>{if(!e)return null;const o=pi[n];return m("div",{className:Lo("flex items-center justify-center h-[50px] w-full text-gama-500 animate-opacity-appear-3",t),children:m(Ln,{width:o,height:o})})};function fi({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 gi={};function vi(e,t){const o=n.useRef(gi);return o.current===gi&&(o.current=e(t)),o}const bi=n[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],xi=bi&&bi!==n.useLayoutEffect?bi:e=>e();function wi(e){const t=vi(yi).current;return t.next=e,xi(t.effect),t.trampoline}function yi(){const e={next:void 0,callback:Ci,trampoline:(...t)=>{var n;return null==(n=e.callback)?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function Ci(){if("production"!==process.env.NODE_ENV)throw new Error("Base UI: Cannot call an event handler while rendering.")}function ki(e,t,n,o){const i=vi(Ni).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)&&Ii(i,[e,t,n,o]),i.callback}function Ni(){return{callback:null,cleanup:null,refs:[]}}function Ii(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 Mi=typeof document<"u"?n.useLayoutEffect:()=>{},_i={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 Ti=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}({}),Si=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 Ri={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Ei={valid:e=>null===e?null:e?{[Si.valid]:""}:{[Si.invalid]:""}};function Oi(e){return n.useMemo((()=>({checked:t=>e.indeterminate?{}:t?{[Ti.checked]:""}:{[Ti.unchecked]:""},...Ei})),[e.indeterminate])}const zi=parseInt(n.version,10);function Pi(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}const Di={};function Li(e,t,n,o,i){let r={...qi(e,Di)};return t&&(r=Vi(r,t)),n&&(r=Vi(r,n)),o&&(r=Vi(r,o)),i&&(r=Vi(r,i)),r}function Vi(e,t){return Fi(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]=Pi(e.style,o);break;case"className":e[n]=Hi(e.className,o);break;default:Ai(n,o)?e[n]=ji(e[n],o):e[n]=o}}return e}(e,t)}function Ai(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 Fi(e){return"function"==typeof e}function qi(e,t){return Fi(e)?e(t):e??Di}function ji(e,t){return t?e?n=>{if(function(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}(n)){const o=n;Bi(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 Bi(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Hi(e,t){return t?e?t+" "+e:t:e}function $i(){}const Wi=Object.freeze([]),Ui=Object.freeze({});function Ki(e,t,o={}){const i=t.render,r=function(e,t={}){const{className:n,render:o}=e,{state:i=Ui,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):Ui,u=s?Pi(d,Array.isArray(l)?function(e){if(0===e.length)return Di;if(1===e.length)return qi(e[0],Di);let t={...qi(e[0],Di)};for(let n=1;n<e.length;n+=1)t=Vi(t,e[n]);return t}(l):l)??Ui:Ui;return typeof document<"u"&&(s?Array.isArray(r)?u.ref=function(e){const t=vi(Ni).current;return function(e,t){return e.refs.length!==t.length||e.refs.some(((e,n)=>e!==t[n]))}(t,e)&&Ii(t,e),t.callback}([u.ref,Gi(o),...r]):u.ref=ki(u.ref,Gi(o),r):ki(null,null)),s?(void 0!==c&&(u.className=Hi(u.className,c)),u):Ui}(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=Li(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??Ui)}function Gi(e){return e&&"function"!=typeof e?function(e){return zi>=e}(19)?e.props.ref:e.ref:null}const Yi={...n};let Zi=0;const Ji=Yi.useId;function Qi(e,t){if(void 0!==Ji){const n=Ji();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&&(Zi+=1,i(`${t}-${Zi}`))}),[o,t]),r}(e,t)}function Xi(e){return Qi(e,"base-ui")}function er(){return typeof window<"u"}function tr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function nr(e){return!!er()&&(e instanceof HTMLElement||e instanceof tr(e).HTMLElement)}let or;function ir(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");or.has(t)||(or.add(t),console.error(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(or=new Set);const rr=n.createContext(void 0);function lr(e=!1){const t=n.useContext(rr);if(void 0===t&&!e)throw new Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return t}function ar(e={}){const{disabled:t=!1,focusableWhenDisabled:o,tabIndex:i=0,native:r=!0}=e,l=n.useRef(null),a=void 0!==lr(!0),s=wi((()=>{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||ir("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&&ir("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 nr(e)&&"BUTTON"===e.tagName})(e)&&a&&t&&void 0===c.disabled&&e.disabled&&(e.disabled=!1)}),[t,c.disabled,a]);Mi(d,[d]);return{getButtonProps:n.useCallback(((e={})=>{const{onClick:n,onMouseDown:o,onKeyUp:i,onKeyDown:l,onPointerDown:a,...d}=e;return Li({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||(Bi(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||(Bi(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:wi((e=>{l.current=e,d()}))}}"production"!==process.env.NODE_ENV&&(rr.displayName="CompositeRootContext");const sr=n.createContext({invalid:void 0,controlId:void 0,setControlId:$i,labelId:void 0,setLabelId:$i,messageIds:[],setMessageIds:$i,name:void 0,validityData:{state:Ri,errors:[],error:"",value:"",initialValue:null},setValidityData:$i,disabled:void 0,touched:!1,setTouched:$i,dirty:!1,setDirty:$i,filled:!1,setFilled:$i,focused:!1,setFocused:$i,validate:()=>null,validationMode:"onBlur",validationDebounceTime:0,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1}});function cr(e=!0){const t=n.useContext(sr);if(t.setControlId===$i&&!e)throw new Error("Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");return t}"production"!==process.env.NODE_ENV&&(sr.displayName="FieldRootContext");const dr=[];function ur(e){n.useEffect(e,dr)}class hr{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 hr}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}isStarted(){return 0!==this.currentId}}const pr=n.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:$i});function mr(){return n.useContext(pr)}function fr(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}"production"!==process.env.NODE_ENV&&(pr.displayName="FormContext");const gr=Object.keys(Ri);function vr(){const{setValidityData:e,validate:t,messageIds:o,validityData:i,validationMode:r,validationDebounceTime:l,invalid:a,markedDirtyRef:s,controlId:c,state:d,name:u}=cr(),{formRef:h,clearErrors:p}=mr(),m=function(){const e=vi(hr.create).current;return ur(e.disposeEffect),e}(),f=n.useRef(null),g=wi((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:{...Ri,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,...fr(t,!1)})}return void e(t)}const o=gr.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 gr)"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=gr.reduce(((t,n)=>(t[n]=e.validity[n],t)),{});let n=!1;for(const e of gr)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,...fr(v,a)})}e(v)})),v=n.useCallback(((e={})=>Li({...o.length&&{"aria-describedby":o.join(" ")},...!1===d.valid&&{"aria-invalid":!0}},e)),[o,d.valid]),b=n.useCallback(((e={})=>Li({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 br(e){const t=vi(xr,e).current;return t.next=e,Mi(t.effect),t}function xr(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function wr(e){const{formRef:t}=mr(),{invalid:n,markedDirtyRef:o,validityData:i,setValidityData:r}=cr(),{enabled:l=!0,value:a,id:s,name:c,controlRef:d,commitValidation:u}=e,h=br(e.getValue);Mi((()=>{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]),Mi((()=>{l&&s&&t.current.fields.set(s,{controlRef:d,validityData:fr(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]),Mi((()=>{const e=t.current.fields;return()=>{s&&e.delete(s)}}),[t,s])}const yr=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(yr.displayName="CheckboxGroupContext");const Cr=n.createContext(void 0);function kr(e,t,n){let o=!1,i=!1;const r=n??Ui;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&&(Cr.displayName="CheckboxRootContext");const Nr={},Ir=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}=mr(),{disabled:C,labelId:k,name:N,setControlId:I,setDirty:M,setFilled:_,setFocused:T,setTouched:S,state:R,validationMode:E,validityData:O}=cr(),z=function(e=!0){const t=n.useContext(yr);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=wi(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}=ar({disabled:L,native:x}),J=vr(),Q=(null==z?void 0:z.fieldControlValidation)??J,[X,ee]=fi({controlled:A&&W&&!h?W.includes(A):j,default:A&&K&&!h?K.includes(A):r,name:"Checkbox",state:"checked"}),te=Xi(a);Mi((()=>{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]),wr({enabled:!z,id:te,commitValidation:Q.commitValidation,value:X,controlRef:G,name:V,getValue:()=>X});const ne=n.useRef(null),oe=ki(c,ne,Q.inputRef);Mi((()=>{ne.current&&(ne.current.indeterminate=B,X&&_(!0))}),[X,B,_]);const ie=wi((()=>T(!0))),re=wi((()=>{const e=ne.current;e&&(S(!0),T(!1),"onBlur"===E&&Q.commitValidation(z?W:e.checked))})),le=wi((e=>{var t;e.defaultPrevented||p||(e.preventDefault(),null==(t=ne.current)||t.click())})),ae=Li({checked:X,disabled:L,name:h?void 0:V,id:`${te}-input`,required:v,ref:oe,style:_i,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked,n=kr("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)||""}:Nr,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=Oi(de),he=Ki("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(Cr.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&&(Ir.displayName="CheckboxRoot");const Mr=null;let _r=globalThis.requestAnimationFrame;const Tr=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&&_r!==requestAnimationFrame&&(_r=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 Sr{constructor(){t(this,"currentId",Mr),t(this,"cancel",(()=>{this.currentId!==Mr&&(Tr.cancel(this.currentId),this.currentId=Mr)})),t(this,"disposeEffect",(()=>this.cancel))}static create(){return new Sr}static request(e){return Tr.request(e)}static cancel(e){return Tr.cancel(e)}request(e){this.cancel(),this.currentId=Tr.request((()=>{this.currentId=Mr,e()}))}}function Rr(e,t=!1){const n=function(){const e=vi(Sr.create).current;return ur(e.disposeEffect),e}();return wi(((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 Er(e){const{enabled:t=!0,open:o,ref:i,onComplete:r}=e,l=br(o),a=wi(r),s=Rr(i,o);n.useEffect((()=>{t&&s((()=>{o===l.current&&a()}))}),[t,o,a,s,l])}function Or(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),Mi((()=>{if(!e&&l&&"ending"!==i&&o){const e=Sr.request((()=>{r("ending")}));return()=>{Sr.cancel(e)}}}),[e,l,i,o]),Mi((()=>{if(!e||t)return;const n=Sr.request((()=>{ne.flushSync((()=>{r(void 0)}))}));return()=>{Sr.cancel(n)}}),[t,e]),Mi((()=>{if(!e||!t)return;e&&l&&"idle"!==i&&r("starting");const n=Sr.request((()=>{r("idle")}));return()=>{Sr.cancel(n)}}),[t,e,l,r,i]),n.useMemo((()=>({mounted:l,setMounted:a,transitionStatus:i})),[l,i])}let zr=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const Pr={[zr.startingStyle]:""},Dr={[zr.endingStyle]:""},Lr={transitionStatus:e=>"starting"===e?Pr:"ending"===e?Dr:null},Vr=n.forwardRef((function(e,t){const{render:o,className:i,keepMounted:r=!1,...l}=e,a=function(){const e=n.useContext(Cr);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}=Or(s),u=n.useRef(null),h=n.useMemo((()=>({...a,transitionStatus:c})),[a,c]);Er({open:s,ref:u,onComplete(){s||d(!1)}});const p=Oi(a),m=n.useMemo((()=>({...p,...Lr,...Ei})),[p]),f=r||s,g=Ki("span",e,{enabled:f,ref:[t,u],state:h,stateAttributesMapping:m,props:l});return f?g:null}));"production"!==process.env.NODE_ENV&&(Vr.displayName="CheckboxIndicator");const Ar={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"},Fr=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"})]}),qr=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"})]}),jr=({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=ni(Ar.CheckboxWrapper,!p&&Ar[`size-${t}`],p&&Ar.HideWrapper,r&&Ar.Indeterminate,i&&Ar.ReadOnly,g&&Ar.CheckboxHover,d),b=ni("styled-checkbox-inner",Ar.Checkbox,Ar[`size-${t}`],r&&Ar.Indeterminate),x=r?Fr:qr,w=o.useRef(null),y=o.useCallback((e=>{var t;if(e.stopPropagation(),!g)return;const n=document.createElement("span");n.className=Ar.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(Ir,{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:Ar.CheckboxRippleContainer}),m("span",{className:b,children:m(Vr,{className:Ar.Indicator,children:m(x,{strokeWidth:"small"===t?3:2})})})]})},Br=({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($n,{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}}),Hr=({value:e,onClear:t,...n})=>{const[o,i]=l(!1),r=o||e;return f("div",{className:"relative w-full",children:[m(Br,{size:"small",variant:"outlined",value:e,onFocus:()=>i(!0),onBlur:()=>i(!1),InputProps:{className:ni("transition-[padding] duration-300",r?"pl-0":"pl-5"),sx:{"& input":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},endAdornment:e?m("div",{className:ni("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($n,{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(Dn,{width:24,height:24,className:ni("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)"})]})},$r={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},Wr=({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:`${$r.label} ${$r[z]} ${o}`,children:n}),m("span",{className:`${$r.description} ${$r[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:`${$r.textarea} ${$r[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]})]})},Ur=({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(Qt,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:Lo(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($n,{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(ka,{className:"flex items-center gap-1 m-0 pt-1 text-sm text-error-500",children:[m(oe,{width:20,height:20}),o??"Required"]})]}),Kr=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(Qt,{icon:"mdi:tick",width:22,height:22,style:{color:"var(--colors-gama-500)"}})}),m("span",{children:e.children})]}),Gr="_styledSelectAutocompleteWrapper_lfbvb_1",Yr="_select-custom-icon_lfbvb_5";function Zr({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:ni(Gr,o),ref:d,children:m(R,{...i,getOptionLabel:n,ListboxProps:{...u,sx:{"& .MuiAutocomplete-option":{paddingLeft:"6px !important"}}},className:Lo("!text-sm",i.className),popupIcon:i.readOnly?null:i.popupIcon||m(Qt,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:Lo(Yr)}),"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(Qt,{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"}},slotProps:{clearIndicator:{disableRipple:!0,disableFocusRipple:!0}},clearIcon:m("span",{className:"rounded-full items-center justify-center min-w-6 min-h-6 cursor-pointer flex bg-delta-50 cursor-pointer",children:m(ie,{width:20,height:20,className:"text-delta-700"})})})})}const Jr=({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:Lo("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:Lo("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(ka,{className:Lo("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]})]})},Qr=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Qr.displayName="SwitchRootContext");let Xr=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const el={...Ei,checked:e=>e?{[Xr.checked]:""}:{[Xr.unchecked]:""}},tl=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}=mr(),{state:x,labelId:w,setControlId:y,setTouched:C,setDirty:k,validityData:N,setFilled:I,setFocused:M,validationMode:_,disabled:T,name:S}=cr(),R=T||p,E=S??s,{getValidationProps:O,getInputValidationProps:z,inputRef:P,commitValidation:D}=vr(),L=wi(d),V=n.useRef(null),A=ki(V,a,P),F=n.useRef(null),q=Xi(l);Mi((()=>{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]=fi({controlled:o,default:!!r,name:"Switch",state:"checked"});wr({id:q,commitValidation:D,value:j,controlRef:F,name:E,getValue:()=>j}),Mi((()=>{V.current&&I(V.current.checked)}),[V,I]);const{getButtonProps:H,buttonRef:$}=ar({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((()=>Li({checked:j,disabled:R,id:E?void 0:`${q}-input`,name:E,required:h,style:_i,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:A,onChange(e){if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked,n=kr("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=Ki("button",e,{state:K,ref:[t,F,$],props:[W,O,v,H],stateAttributesMapping:el});return f(Qr.Provider,{value:K,children:[G,!j&&s&&m("input",{type:"hidden",name:s,value:"off"}),m("input",{...U})]})}));"production"!==process.env.NODE_ENV&&(tl.displayName="SwitchRoot");const nl=n.forwardRef((function(e,t){const{render:o,className:i,...r}=e,{state:l}=cr(),a=function(){const e=n.useContext(Qr);if(void 0===e)throw new Error("Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.");return e}();return Ki("span",e,{state:{...l,...a},ref:t,stateAttributesMapping:el,props:r})}));"production"!==process.env.NODE_ENV&&(nl.displayName="SwitchThumb");const ol={switch:"_switch_1myey_1",iconContent:"_iconContent_1myey_30",thumb:"_thumb_1myey_50",icon:"_icon_1myey_30"},il=({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"})}),rl=({width:e=11,height:t=11,className:n="",onClick:o,color:i})=>m(en,{icon:"fa-solid:check",width:e,height:t,className:n,onClick:o,color:i}),ll=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=ni(ol.iconContent,g?ol.checked:ol.unchecked);return m(tl,{...d,...v,ref:u,className:ol.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(nl,{className:ol.thumb,children:m("span",{className:ol.icon,children:m(g?rl:il,{className:b})})})})})),al="data-composite-item-active",sl=n.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});"production"!==process.env.NODE_ENV&&(sl.displayName="CompositeListContext");let cl=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function dl(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(sl),p=n.useRef(-1),[m,f]=n.useState(l??(r===cl.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 Mi((()=>{if(null!=l)return;const e=g.current;return e?(a(e,o),()=>{s(e)}):void 0}),[l,a,s,o]),Mi((()=>{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 ul(e){const{render:t,className:o,state:i=Ui,props:r=Wi,refs:l=Wi,metadata:a,stateAttributesMapping:s,tag:c="div",...d}=e,{compositeProps:u,compositeRef:h}=function(e={}){const{highlightItemOnHover:t,highlightedIndex:o,onHighlightedIndexChange:i}=lr(),{ref:r,index:l}=dl(e),a=o===l,s=n.useRef(null),c=ki(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 Ki(c,e,{state:i,ref:[...l,h],props:[u,...r,d],stateAttributesMapping:s})}let hl=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 pl={checked:e=>e?{[hl.checked]:""}:{[hl.unchecked]:""},...Lr,...Ei},ml=n.createContext({disabled:void 0,readOnly:void 0,required:void 0,name:void 0,checkedValue:"",setCheckedValue:$i,onValueChange:$i,touched:!1,setTouched:$i,registerControlRef:$i});"production"!==process.env.NODE_ENV&&(ml.displayName="RadioGroupContext");const fl=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(fl.displayName="RadioRootContext");const gl=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(ml),{state:k,disabled:N}=cr(),I=N||h||r,M=p||l,_=g||a,{setDirty:T,validityData:S,setTouched:R,setFilled:E}=cr(),O=v===s,z=n.useRef(null),P=ki(c,z);Mi((()=>{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,[al]: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}=ar({disabled:I,native:d}),A=Xi(),F=n.useMemo((()=>({type:"radio",ref:P,id:A,tabIndex:-1,style:_i,"aria-hidden":!0,disabled:I,checked:O,required:_,readOnly:M,onChange(e){if(e.nativeEvent.defaultPrevented||I||M||void 0===s)return;const t=kr("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!==$i,H=[t,C,V],$=[D,(null==y?void 0:y.getValidationProps)??Ui,u,L],W=Ki("button",e,{enabled:!B,state:q,ref:H,props:$,stateAttributesMapping:pl});return f(fl.Provider,{value:j,children:[B?m(ul,{tag:"button",render:o,className:i,state:q,refs:H,props:$,stateAttributesMapping:pl}):W,m("input",{...F})]})}));"production"!==process.env.NODE_ENV&&(gl.displayName="RadioRoot");const vl=n.forwardRef((function(e,t){const{render:o,className:i,keepMounted:r=!1,...l}=e,a=function(){const e=n.useContext(fl);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}=Or(s),u=n.useMemo((()=>({...a,transitionStatus:c})),[a,c]),h=n.useRef(null),p=r||s,m=Ki("span",e,{enabled:p,ref:[t,h],state:u,props:l,stateAttributesMapping:pl});return Er({open:s,ref:h,onComplete(){s||d(!1)}}),p?m:null}));"production"!==process.env.NODE_ENV&&(vl.displayName="RadioIndicator");const bl="_RadioWrapper_9uzf3_1",xl="_size-small_9uzf3_14",wl="_RadioRippleContainer_9uzf3_26",yl="_RadioRipple_9uzf3_26",Cl="_RadioHover_9uzf3_60",kl="_Radio_9uzf3_1",Nl="_Indicator_9uzf3_119",Il="_Error_9uzf3_140",Ml=i((({value:e,dataTest:t,className:n,size:o="medium",error:i,disabled:r,...l},a)=>{const s=ni(bl,Cl,"small"===o&&xl,n,i&&Il),u=ni(kl,"small"===o&&xl),h=c(null),p=d((e=>{if(e.stopPropagation(),!h.current)return;const t=document.createElement("span");t.className=yl||"",t.addEventListener("animationend",(()=>t.remove()),{once:!0}),h.current.appendChild(t)}),[]);return f(gl,{...l,ref:a,value:e,"data-test":t,className:s,disabled:r,onPointerDown:p,children:[m("span",{className:wl,ref:h}),m("span",{className:u,children:m(vl,{className:Nl})})]})})),_l="ArrowLeft",Tl="ArrowRight",Sl="ArrowUp",Rl="ArrowDown";function El(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!(!er()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof tr(e).ShadowRoot)}(o)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ol(e){e.preventDefault(),e.stopPropagation()}const zl=Math.floor;function Pl(e,t,n){return Math.floor(e/t)!==n}function Dl(e,t){return t<0||t>=e.current.length}function Ll(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&&Fl(e,r,o));return r}function Vl(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 Al(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function Fl(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 ql="ArrowUp",jl="ArrowDown",Bl="ArrowLeft",Hl="ArrowRight",$l="Home",Wl="End",Ul=new Set([Bl,Hl]),Kl=new Set([Bl,Hl,$l,Wl]),Gl=new Set([ql,jl]),Yl=new Set([ql,jl,$l,Wl]),Zl=new Set([...Ul,...Gl]),Jl=new Set([...Zl,$l,Wl]),Ql="Shift",Xl=new Set([Ql,"Control","Alt","Meta"]);function ea(e){return!!(function(e){return nr(e)&&"INPUT"===e.tagName}(e)&&null!=e.selectionStart||nr(e)&&"TEXTAREA"===e.tagName)}function ta(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=na(e,t,"left"),r=oa(e),l=oa(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=na(e,t,"top"),o=oa(e),i=oa(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 na(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 oa(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 ia(e){const{children:t,elementsRef:o,labelsRef:i,onMapChange:r}=e,l=n.useRef(0),a=vi(la).current,s=vi(ra).current,[c,d]=n.useState(Ui),u=n.useRef(c),h=wi(((e,t)=>{s.set(e,t??null),u.current={},d(u.current)})),p=wi((e=>{s.delete(e),u.current={},d(u.current)})),f=n.useMemo((()=>{const e=new Map;return Array.from(s.keys()).sort(aa).forEach(((t,n)=>{const o=s.get(t)??{};e.set(t,{...o,index:n})})),e}),[s,c]);Mi((()=>{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]),Mi((()=>{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=wi((e=>(a.add(e),()=>{a.delete(e)})));Mi((()=>{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(sl.Provider,{value:v,children:t})}function ra(){return new Map}function la(){return new Set}function aa(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 sa(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}const ca=[];function da(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=ca}=e,[f,g]=n.useState(0),v=o>1,b=n.useRef(null),x=ki(b,d),w=n.useRef([]),y=n.useRef(!1),C=s??f,k=wi(((e,t=!1)=>{if((c??g)(e),t){const t=w.current[e];ta(b.current,t,a,l)}})),N=wi((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(al)))??null,o=n?t.indexOf(n):-1;-1!==o&&k(o),ta(b.current,n,a,l)})),I=n.useMemo((()=>({"aria-orientation":"both"===l?void 0:l,ref:x,onFocus(e){!b.current||!ea(e.target)||e.target.setSelectionRange(0,e.target.value.length??0)},onKeyDown(e){const n=u?Jl:Zl;if(!n.has(e.key)||function(e,t){for(const n of Xl.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,m)||!b.current)return;const s="rtl"===a,c=s?Bl:Hl,d={horizontal:c,vertical:jl,both:c}[l],f=s?Hl:Bl,g={horizontal:f,vertical:ql,both:f}[l];if(ea(e.target)&&!sa(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 Ll(e,{disabledIndices:t})}(w,p),N=function(e,t){return Ll(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&&!Fl(w,e,p))),d=a.reduce(((e,t,n)=>null==t||Fl(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(!Fl(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===Sl){const n=g("up");if(void 0!==n)d&&Ol(t),u=n;else{if(d&&Ol(t),-1===c)u=s;else if(u=Ll(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}Dl(e,u)&&(u=c)}}if(t.key===Rl){const n=g("down");void 0!==n?(d&&Ol(t),u=n):(d&&Ol(t),-1===c?u=a:(u=Ll(e,{startingIndex:c,amount:r,disabledIndices:l}),o&&c+r>s&&(u=Ll(e,{startingIndex:c%r-r,amount:r,disabledIndices:l}))),Dl(e,u)&&(u=c))}if("both"===n){const n=zl(c/r);t.key===(i?_l:Tl)&&(d&&Ol(t),c%r!=r-1?(u=Ll(e,{startingIndex:c,disabledIndices:l}),o&&Pl(u,r,n)&&(u=Ll(e,{startingIndex:c-c%r-1,disabledIndices:l}))):o&&(u=Ll(e,{startingIndex:c-c%r-1,disabledIndices:l})),Pl(u,r,n)&&(u=c)),t.key===(i?Tl:_l)&&(d&&Ol(t),c%r!=0?(u=Ll(e,{startingIndex:c,decrement:!0,disabledIndices:l}),o&&Pl(u,r,n)&&(u=Ll(e,{startingIndex:c+(r-c%r),decrement:!0,disabledIndices:l}))):o&&(u=Ll(e,{startingIndex:c+(r-c%r),decrement:!0,disabledIndices:l})),Pl(u,r,n)&&(u=c));const a=zl(s/r)===n;Dl(e,u)&&(u=o&&a?t.key===(i?Tl:_l)?s:Ll(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:Al([...p||w.current.map(((e,t)=>Fl(w,t)?t:void 0)),void 0],a),minIndex:c,maxIndex:d,prevIndex:Vl(C>N?y:C,n,a,o,e.key===jl?"bl":e.key===Hl?"tr":"tl"),rtl:s})]}const I={horizontal:[c],vertical:[jl],both:[c,jl]}[l],M={horizontal:[f],vertical:[ql],both:[f,ql]}[l],_=v?n:{horizontal:u?Kl:Ul,vertical:u?Yl:Gl,both:n}[l];u&&(e.key===$l?x=y:e.key===Wl&&(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:Ll(w,{startingIndex:x,decrement:M.includes(e.key),disabledIndices:p})),x!==C&&!Dl(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 ua=n.createContext(void 0);function ha(e=!0){const t=n.useContext(ua);if(void 0===t&&!e)throw new Error("Base UI: DirectionContext is missing.");return(null==t?void 0:t.direction)??"ltr"}function pa(e){const{render:t,className:o,refs:i=Wi,props:r=Wi,state:l=Ui,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=ha(),{props:M,highlightedIndex:_,onHighlightedIndexChange:T,elementsRef:S,onMapChange:R}=da({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=wi((e=>{null==v||v(e),R(e)})),O=Ki(k,e,{state:l,ref:i,props:[M,...r,N],stateAttributesMapping:a}),z=n.useMemo((()=>({highlightedIndex:_,onHighlightedIndexChange:T,highlightItemOnHover:C})),[_,T,C]);return m(rr.Provider,{value:z,children:m(ia,{elementsRef:S,onMapChange:E,children:O})})}"production"!==process.env.NODE_ENV&&(ua.displayName="DirectionContext");const ma=[Ql],fa=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}=cr(),N=vr(),{clearErrors:I}=mr(),M=C||r,_=y??u,T=Xi(p),[S,R]=fi({controlled:c,default:d,name:"RadioGroup",state:"value"}),E=wi(s),O=wi(((e,t)=>{E(e,t),!t.isCanceled&&R(e)})),z=n.useRef(null),P=wi((e=>{null==z.current&&null!=e&&(z.current=e)}));wr({id:T,commitValidation:N.commitValidation,value:S,controlRef:z,name:_,getValue:()=>S??null});const D=n.useRef(S);Mi((()=>{D.current!==S&&(I(_),"onChange"===w?N.commitValidation(S):N.commitValidation(S,!0))}),[_,I,w,S,N]),Mi((()=>{D.current=S}),[S]);const[L,V]=n.useState(!1),A=wi((e=>{El(e.currentTarget,e.relatedTarget)||(b(!0),x(!1),"onBlur"===w&&N.commitValidation(S))})),F=wi((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=Li({value:q,ref:ki(N.inputRef,h),id:T,name:q?_:void 0,disabled:M,readOnly:l,required:a,"aria-hidden":!0,tabIndex:-1,style:_i,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(ml.Provider,{value:H,children:[m(pa,{render:o,className:i,state:B,props:[$,N.getValidationProps,g],refs:[t],stateAttributesMapping:Ei,enableHomeAndEndKeys:!1,modifierKeys:ma}),m("input",{...j})]})}));"production"!==process.env.NODE_ENV&&(fa.displayName="RadioGroup");const ga=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(fa,{...d,ref:u,value:e,defaultValue:t,"data-test":r,onValueChange:n,children:[c,((l??!1)||(s??!1))&&f(ka,{className:Lo("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]})]})})),va=({children:e,onClick:t,className:n,dataTest:o,style:i})=>m("div",{className:Lo("_styled-label_1fp95_1",n),style:i,onClick:t,"data-test":o,children:e}),ba=i(((e,t)=>{const{options:n,dataTest:o,value:i,readOnly:r,multiple:a,title:d,disabled:u,onChange:h,required:p,error:g,helperText:v,valueKey:b="value",labelKey:x="label",renderLabel:w,getOptionTooltip:y,loading:C,size:k,locale:N="en"}=e,{containerRef:I,wrapDisabled:M}=(({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]}),_=e=>{var t;return"object"==typeof e?(null==(t=null==e?void 0:e[x])?void 0:t.toString())||"":(null==e?void 0:e.toString())||""},T=e=>"object"==typeof e?null==e?void 0:e[b]:e,S=(e,t)=>T(e)===T(t),R=a?Array.isArray(i)&&i.length>0:null!=i,E=r?n.filter((e=>!!(a?null!=i&&i.find((t=>S(t,e))):S(i,e)))):n,O=E.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:I,className:"absolute top-0 left-0 opacity-0 pointer-events-none flex flex-wrap gap-2 text-sm",style:{width:"100%"},children:E.map((e=>{const t=T(e);return m(Oo,{className:"w-fit",readOnly:r,type:a?"checkbox":"radio",dataTest:`ic-${String(t)}-hidden`,label:w?w(e):_(e)},String(t))}))}),m("div",{className:ni("flex gap-2 flex-wrap",M&&"flex-col gap-1"),children:C?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!=E&&E.length?E.map(((e,n)=>{const o=T(e),l=!!(a?null!=i&&i.find((t=>S(t,e))):S(i,e)),s=y?y(e):null;if(r&&!l)return null;const c="object"==typeof e&&!(null==e||!e.disabled),d=c||r||n!==O?void 0:t;return m(zo,{title:s,arrow:!0,children:m("span",{className:ni(c&&"cursor-not-allowed"),children:r&&!M?m(So,{ref:d,disabled:u||c,classes:{root:"min-h-[32px] h-full"},className:"w-fit text-sm",dataTest:`ic-${String(o)}`,label:w?w(e):_(e)}):m(Oo,{ref:d,disabled:u||c,classes:M?{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:k,onClick:()=>(e=>{if(!a){const t=S(e,i)?null:e;if(null===t)return;return void h(t)}const t=i||[],n=t.find((t=>S(t,e)))?t.filter((t=>!S(t,e))):[...t,e];h(n)})(e),label:w?w(e):_(e)})})},String(o))})):m("span",{children:"-"})}),!p&&R&&!r&&m($o,{dataTest:"clear-selection-btn",variant:"text",startIcon:m(ie,"medium"===k?{height:24,width:24,className:"size-6"}:{height:20,width:20,className:"size-5"}),className:"w-fit",size:k,onClick:()=>h(a?[]:null),children:"en"===N?"Clear selection":"Fjern valget"}),f("div",{className:ni("text-sm/5 text-delta-600 flex items-center gap-1",g&&"text-error-500"),children:[g&&m(no,{width:20,height:20,className:"min-w-5"}),m("span",{className:"line-clamp-1",children:v||g&&!v&&"Required"})]})]})})),xa=i(((e,t)=>{const[n,o]=l(!1),{options:i,dataTest:a,value:s,readOnly:c,multiple:u,required:h,onChange:p,size:v,title:b,noOptionsText:x,placeholder:w,disabled:y,helperText:C,disableHelperText:k,error:N,valueKey:I="value",labelKey:M="label",renderLabel:_,getOptionTooltip:T,startAdornment:S,autocompleteProps:R,loading:E,maxTags:O}=e,z=i.length<11,P=e=>{var t;return"object"==typeof e?(null==(t=null==e?void 0:e[M])?void 0:t.toString())||"":(null==e?void 0:e.toString())||""},D=d((e=>"object"==typeof e?null==e?void 0:e[I]:e),[I]),L=d(((e,t)=>D(e)===D(t)),[D]),V=d((e=>{var t;o(!0),null==(t=null==R?void 0:R.onOpen)||t.call(R,e)}),[R]),A=d(((e,t)=>{var n;o(!1),null==(n=null==R?void 0:R.onClose)||n.call(R,e,t)}),[R]);return u&&c?m(ba,{...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(Zr,{open:n,onOpen:V,onClose:A,disableCloseOnSelect:u,dataTest:a,disabled:y||E,noOptionsText:x,loading:E,readOnly:c,value:s,size:v,disableClearable:h,options:i,fullWidth:!0,classes:{listbox:"h-full max-h-[300px]"},getOptionLabel:P||(null==R?void 0:R.getOptionLabel),onChange:(e,t)=>{p(t)},filterSelectedOptions:!1,isOptionEqualToValue:(null==R?void 0:R.isOptionEqualToValue)??L,autoHeight:!0,multiple:u,renderTags:e=>{const t=O||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(So,{dataTest:`${D(e)}-chip`,readOnly:c,variant:"outlined",label:_?_(e):P(e)||"",classes:{root:"h-fit w-fit min-h-[32px]",label:"block whitespace-normal"},disabled:y||E,onDelete:()=>{if(!u)return void p(null);const t=s.filter((t=>!L(t,e)));p(t)}},null==(t=D(e))?void 0:t.toString())})),o>0&&m(So,{dataTest:"remaining-count-tag-chip",label:`+${o}`,variant:"outlined",onClick:V})]})},popupIcon:E?m(re,{height:24,width:24}):u?m(le,{height:24,width:24}):void 0,renderOption:(e,t)=>{const n="object"==typeof t&&!(null==t||!t.disabled),o=T?T(t):null;if(u){const i=!(null==s||!s.find((e=>L(e,t))));return r("li",{...e,key:e.id,onClick:n?void 0:e.onClick,className:ni("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(zo,{arrow:!0,title:o,children:f(g,{children:[m(jr,{disabled:n,dataTest:`${D(t)}-checkbox`,size:"small",className:"min-w-[36px]",checked:i}),_?_(t):m("span",{className:"text-sm text-delta-700 h-fit py-[10px]",children:P(t)})]})}))}const i=L(s,t);return r("li",{...e,key:e.id,className:ni("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(zo,{arrow:!0,title:o,children:f(g,{children:[m("span",{className:"py-[10px] min-w-5 w-5 h-full",children:i&&m(ae,{className:"size-5 text-gama-500 min-h-5 min-w-5",height:20,width:20})}),_?_(t):m("span",{className:"text-sm text-delta-700 py-[10px]",children:P(t)})]})}))},renderInput:e=>m(Br,{dataTest:`${a}-input-field`,...e,inputRef:t,error:N,helperText:k?"":C||" ",variant:"outlined",label:"",placeholder:w,readOnly:c,onKeyDown:z?e=>e.preventDefault():void 0,autoComplete:z?"off":"on",InputProps:{...e.InputProps,startAdornment:S||e.InputProps.startAdornment,style:z?{caretColor:"transparent"}:{}},inputProps:{...e.inputProps,style:z?{caretColor:"transparent"}:{}}}),...R})]})})),wa=i(((e,t)=>{const{options:n}=e;return n.length>0&&n.length<=5?m(ba,{...e,ref:t}):m(xa,{...e,ref:t})})),ya=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"}}}),Ca=({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}}),ka=e=>m(L,{...e}),Na=e=>m(V,{...e}),Ia=e=>m(A,{...e}),Ma=e=>m(F,{...e}),_a=e=>{var t,n;return m(q,{...e,classes:{paper:Lo("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:Lo("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},Ta=e=>{var t;return m(S,{...e,classes:{selected:"bg-gama-50",root:Lo("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}})},Sa=e=>m(j,{...e}),Ra="_styled-link_um6g7_1",Ea="_styled-link-disabled_um6g7_16",Oa="_styled-link-xs_um6g7_32",za="_styled-link-small_um6g7_37",Pa="_styled-link-large_um6g7_42",Da=({href:e,disabled:t,size:n="large",dataTest:o,reflink:i,className:r,content:l,contentNode:a,...s})=>{let c=Pa;switch(n){case"small":c=za;break;case"xs":c=Oa;break;default:c=Pa}return t?f("span",{className:Lo(Ra,Ea,c,r),children:[l,a]}):f("a",{...s,"data-test":o,ref:i,href:e,className:Lo(Ra,c,r),children:[l,a]})},La=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)"}}}),Va=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 Aa;function Fa(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");Aa.has(t)||(Aa.add(t),console.warn(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(Aa=new Set);const qa=n.createContext(void 0);function ja(){const e=n.useContext(qa);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&&(qa.displayName="AccordionRootContext");const Ba={value:()=>null},Ha=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=ha();"production"!==process.env.NODE_ENV&&Mi((()=>{l&&!1===a&&Fa("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=wi(c),x=n.useRef([]),[w,y]=fi({controlled:h,default:v,name:"Accordion",state:"value"}),C=n.useCallback(((e,t)=>{const n=kr("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=Ki("div",e,{state:k,ref:t,props:[{dir:g,role:"region"},f],stateAttributesMapping:Ba});return m(qa.Provider,{value:N,children:m(ia,{elementsRef:x,children:I})})}));"production"!==process.env.NODE_ENV&&(Ha.displayName="AccordionRoot");const $a=n.createContext(void 0);function Wa(){const e=n.useContext($a);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&&($a.displayName="CollapsibleRootContext");const Ua=n.createContext(void 0);function Ka(){const e=n.useContext(Ua);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&&(Ua.displayName="AccordionItemContext");let Ga=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=zr.startingStyle]="startingStyle",e[e.endingStyle=zr.endingStyle]="endingStyle",e}({}),Ya=function(e){return e.panelOpen="data-panel-open",e}({});const Za={[Ga.open]:""},Ja={[Ga.closed]:""},Qa={open:e=>e?{[Ya.panelOpen]:""}:null},Xa={open:e=>e?Za:Ja};let es=function(e){return e.index="data-index",e.disabled="data-disabled",e.open="data-open",e}({});const ts={...Xa,index:e=>Number.isInteger(e)?{[es.index]:String(e)}:null,...Lr,value:()=>null},ns=n.forwardRef((function(e,t){const{className:o,disabled:i=!1,onOpenChange:r,render:l,value:a,...s}=e,{ref:c,index:d}=dl(),u=ki(t,c),{disabled:h,handleValueChange:p,state:f,value:g}=ja(),v=Xi(),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=wi(((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]=fi({controlled:t,default:o,name:"Collapsible",state:"open"}),{mounted:c,setMounted:d,transitionStatus:u}=Or(a,!0,!0),[h,p]=n.useState(a),[{height:m,width:f},g]=n.useState({height:void 0,width:void 0}),v=Xi(),[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=Rr(T,!1),R=wi((e=>{const t=!a,n=kr("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 Mi((()=>{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(Xi()),T=n.useMemo((()=>({open:w,state:I,setTriggerId:_,triggerId:M})),[w,I,_,M]),S=Ki("div",e,{state:I,ref:u,props:s,stateAttributesMapping:ts});return m($a.Provider,{value:N,children:m(Ua.Provider,{value:T,children:S})})}));"production"!==process.env.NODE_ENV&&(ns.displayName="AccordionItem");const os=n.forwardRef((function(e,t){const{render:n,className:o,...i}=e,{state:r}=Ka();return Ki("h3",e,{state:r,ref:t,props:i,stateAttributesMapping:ts})}));"production"!==process.env.NODE_ENV&&(os.displayName="AccordionHeader");const is=new Set([jl,ql,Hl,Bl,$l,Wl]);const rs=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}=Wa(),p=o??h,{getButtonProps:m,buttonRef:f}=ar({disabled:p,focusableWhenDisabled:!0,native:a}),{accordionItemRefs:g,direction:v,loop:b,orientation:x}=ja(),w="rtl"===v,y="horizontal"===x,{state:C,setTriggerId:k,triggerId:N}=Ka();Mi((()=>(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(!is.has(e.key))return;Ol(e);const t=function(e){const{current:t}=e,n=[];for(let e=0;e<t.length;e+=1){const o=t[e];if(!sa(o)){const e=null==o?void 0:o.querySelector('[type="button"]');sa(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 jl:y||r();break;case ql:y||l();break;case Hl:y&&(w?l():r());break;case Bl: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 Ki("button",e,{state:C,ref:[t,f],props:[I,s,m],stateAttributesMapping:Qa})}));"production"!==process.env.NODE_ENV&&(rs.displayName="AccordionTrigger");let ls=function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e}({});let as=function(e){return e.accordionPanelHeight="--accordion-panel-height",e.accordionPanelWidth="--accordion-panel-width",e}({});const ss=n.forwardRef((function(e,t){const{className:o,hiddenUntilFound:i,keepMounted:r,id:l,render:a,...s}=e,{hiddenUntilFound:c,keepMounted:d}=ja(),{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}=Wa(),E=i??c,O=r??d;"production"!==process.env.NODE_ENV&&Mi((()=>{!1===r&&E&&Fa("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]),Mi((()=>{if(l)return S(l),()=>{S(void 0)}}),[l,S]),Mi((()=>{y(E)}),[y,E]),Mi((()=>{C(O)}),[C,O]),Er({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=wi((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&&Fa("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(ls.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=Sr.request((()=>{N.current=!1,n=Sr.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))})),()=>{Sr.cancel(t),Sr.cancel(n)}})),_=ki(i,h,M);return Mi((()=>{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=Sr.request((()=>{o=Sr.request((()=>{p((()=>{m({height:0,width:0}),e.style.removeProperty("content-visibility"),e.style.removeProperty("display"),f(!1),t.current=null}),n)}))}));return()=>{Sr.cancel(i),Sr.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(Ga.startingStyle,""),m({height:e.scrollHeight,width:e.scrollWidth}),n=Sr.request((()=>{e.style.removeProperty("display"),Object.entries(t).forEach((([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)}))}))}return()=>{Sr.cancel(n)}}),[t,o,l,a,c,u,h,p,m,f,b]),Mi((()=>{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]),ur((()=>{const e=Sr.request((()=>{k.current=!1}));return()=>Sr.cancel(e)})),Mi((()=>{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=Sr.request((()=>{y.current=!1,n=Sr.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))}))),()=>{Sr.cancel(t),Sr.cancel(n)}}),[l,u,h,m]),Mi((()=>{const e=h.current;e&&l&&I&&(e.setAttribute("hidden","until-found"),"css-transition"===o.current&&e.setAttribute(Ga.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,kr("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}=Ka(),L=Ki("div",e,{state:n.useMemo((()=>({...P,transitionStatus:R})),[P,R]),ref:[t,b],props:[z,{"aria-labelledby":D,role:"region",style:{[as.accordionPanelHeight]:void 0===p?"auto":`${p}px`,[as.accordionPanelWidth]:void 0===T?"auto":`${T}px`}},s],stateAttributesMapping:ts});return O||E||!O&&m?L:null}));"production"!==process.env.NODE_ENV&&(ss.displayName="AccordionPanel");const cs="_AccordionRoot_wzlmo_1",ds="_Trigger_wzlmo_9",us="_Header_wzlmo_18",hs="_TriggerIcon_wzlmo_40",ps="_TriggerIconRight_wzlmo_48",ms="_Panel_wzlmo_56",fs="_Content_wzlmo_67",gs=({className:e,children:t,expanded:n,defaultExpanded:o,onChange:i,...r})=>{const l="item",a={...r,type:"single",className:ni(cs,e),onValueChange:e=>{null==i||i(e.includes(l))},...void 0!==n?{value:n?[l]:[]}:{defaultValue:o?[l]:[]}};return m(Ha,{...a,children:m(ns,{value:l,children:t})})},vs=({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(os,{className:Lo(us,o),children:m(rs,{...l,className:Lo(ds,n),style:s,children:f(g,t?{children:[r,m(Bn,{className:Lo(hs,ps),"data-state-icon":!0})]}:{children:[m(Bn,{className:hs,"data-state-icon":!0}),r]})})})},bs=({children:e,...t})=>m(ss,{...t,className:ms,children:m("div",{className:fs,children:e})}),xs=e=>m($,{...e}),ws=({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($o,{...r,type:"button",startIcon:m(Xn,{width:"large"===o?24:20,height:"large"===o?24:20}),variant:i,size:o,children:!n&&(t||"Filter")}),e&&m("div",{className:Lo("h-2 w-2 bg-gama-400 rounded-full absolute","large"===o?"top-2 right-2":"top-1 right-1")})]})}),ys=()=>{const[e,t]=l(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:o=>{e?n():(e=>{t((()=>e.currentTarget))})(o)}}},Cs=e=>o.isValidElement(e)||"string"==typeof e||"number"==typeof e||null===e||Array.isArray(e),ks=({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}=ys(),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($o,{type:"button",disabled:i,variant:l,startIcon:m(Xn,{width:"large"===r?24:20,height:"large"===r?24:20}),onClick:u,size:r,dataTest:n,children:!d&&(c||"Filter")}),e&&m("div",{className:Lo("h-2 w-2 bg-gama-400 rounded-full absolute","large"===r?"top-2 right-2":"top-1 right-1")})]}),m(xs,{...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:Cs(t)?t:t({isOpen:!!p,onClose:h})})]})},Ns=({className:e,contentToCopy:t,locale:n,messageInfo:o,text:i})=>{const r="en"===n?"Copy":"Kopier",l=Jo();return m(zo,{title:r,children:m("div",{children:m($o,{dataTest:"copy-button",className:e,size:"small",variant:"text",startIcon:m(se,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{o("no"===n?"Kopiert til utklippstavle":"Copied to clipboard")}))},children:!l&&(i||r)})})})},Is="_copy-wrapper_1gjzc_1",Ms="_hidden-copy_1gjzc_1",_s=({className:e,contentToCopy:t,locale:n,messageInfo:o,children:i})=>f("div",{className:ni("flex items-center hover:text-gama-500",Is,e),children:[i,m(zo,{title:"no"===n?"Kopier":"Copy",className:Ms,children:m("div",{children:m($o,{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(se,{width:20,height:20})})})})]}),Ts="_styled-widget-title_1mja5_1",Ss=function(e){return m("div",{className:Ts,children:e.children})},Rs="_styled-widget-header_yk04z_1",Es=({actions:e,title:t,containerClassname:n,actionsClassname:o})=>f("div",{className:ni(Rs,n),children:[m(Ss,{children:t}),m("div",{className:o,children:e})]}),Os="_asma-ui-core-styled-widget_gzht1_1",zs="_empty-state_gzht1_13",Ps="_widget-header-left_gzht1_22",Ds="_widget-header-right_gzht1_28",Ls="_widget-content_gzht1_34",Vs="_widget-footer_gzht1_44",As="_widget-link_gzht1_49";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 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})})}function qs(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 js=({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:`${Os} ${c?zs:""}`,children:[f("div",{className:Ps,children:[n,m(Ss,{children:t}),m("div",{className:`${Ds} ${h??""}`,children:u})]}),m("div",{className:Ls,children:f(g,{children:[e,m(mi,{isLoading:s}),m(ci,{isEmpty:c,emptyText:d})]})}),x&&f("div",{className:Vs,children:[!i||null!=i&&i.hide?m("div",{}):m($o,{disabled:i.disabled,dataTest:"view-more",variant:"text",endIcon:m(p?Fs:qs,{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(Da,{dataTest:"go-to-button",className:As,size:"small",href:o.href,onClick:o.onClick,content:o.content}):m("div",{})]})]})},Bs="_styled-module-title_174mo_1",Hs=function(e){return m("h1",{"data-test":e.dataTest,className:Bs,children:e.children})},$s="_dialog_erjok_1",Ws="_hidden_erjok_9";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:"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 Ks(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 Gs="object"==typeof global&&global&&global.Object===Object&&global;var Ys="object"==typeof self&&self&&self.Object===Object&&self;const Zs=(Gs||Ys||Function("return this")()).Symbol;var Js=Object.prototype,Qs=Js.hasOwnProperty,Xs=Js.toString,ec=Zs?Zs.toStringTag:void 0;var tc=Object.prototype.toString;var nc="[object Null]",oc="[object Undefined]",ic=Zs?Zs.toStringTag:void 0;function rc(e){return null==e?void 0===e?oc:nc:ic&&ic in Object(e)?function(e){var t=Qs.call(e,ec),n=e[ec];try{e[ec]=void 0;var o=!0}catch{}var i=Xs.call(e);return o&&(t?e[ec]=n:delete e[ec]),i}(e):function(e){return tc.call(e)}(e)}const lc=Array.isArray;function ac(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=rc(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const sc=({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:ni($s,!D&&Ws),children:f("div",{className:Lo("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(zo,{title:"en"===E?"Expand":"Utvid",children:m("div",{children:m($o,{dataTest:"minimize-button",variant:"text",size:"small",onClick:U,endIcon:a&&m(xo,{height:20,width:20,color:"text-gama-500"}),children:n})})}),i&&m(zo,{title:"en"===E?"Close":"Lukk",children:m("div",{children:m($o,{dataTest:"close-button",variant:"textGray",size:"small",onClick:v,endIcon:i&&m($n,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]})}),f("div",{className:ni("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(zo,{title:"en"===E?"Minimize":"Minimer",children:m("div",{children:m($o,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:U,endIcon:r&&m(bo,{height:20,width:20,color:"text-delta-700"}),children:t})})}),O&&s&&m(zo,{title:H?"en"===E?"Exit full screen":"Avslutt fullskjerm":"en"===E?"Full screen":"Fullskjerm",children:m("div",{children:m($o,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==z&&P?P():A(!V)},endIcon:m(H?Ks:Us,{width:20,height:20,color:"text-delta-700"}),children:o})})}),i&&m(zo,{title:"en"===E?"Close":"Lukk",children:m("div",{children:m($o,{dataTest:"close-button",variant:"textGray",size:"small",onClick:v,endIcon:m($n,{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:Lo("flex flex-col",H&&!D&&"h-[87dvh]"),children:[m("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof h?h({fullScreen:H}):h}),(lc(M)&&null!=M&&M.length||ac(M))&&_||R?f("div",{className:ni("flex items-center justify-between p-4 border-0 border-t-[1px] border-solid border-delta-200 bg-white",S),children:[lc(M)&&null!=M&&M.length&&_?f(g,{children:[m($o,{dataTest:"extra-actions-button",variant:"textGray",startIcon:m(Pn,{width:24,height:24}),onClick:j,children:_}),m(_a,{open:F,anchorEl:q,onClose:B,children:M.map((e=>m(Ta,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):_&&ac(M)&&m($o,{dataTest:"extra-action-button",variant:"text",onClick:M,children:_})," ",R,W?f("div",{className:ni("flex justify-end gap-x-4",T),children:[y&&k&&m($o,{dataTest:"cancel-button",variant:"outlined",onClick:k,children:y}),$&&C&&m($o,{dataTest:"save-button",startIcon:w&&m(re,{width:24,height:24}),onClick:C,children:x})]}):null]}):m(g,{children:W?f("div",{className:ni("flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",T),children:[y&&k&&m($o,{dataTest:"cancel-button",variant:"outlined",onClick:k,children:y}),$&&C&&m($o,{dataTest:"save-button",startIcon:w&&m(re,{width:24,height:24}),onClick:C,children:x})]}):null})]})]})]})},cc=({showCloseIcon:e,tooltipTitle:t,onClick:n})=>e?m(zo,{title:t,placement:"top",children:m("div",{children:m($o,{dataTest:"close-button",variant:"textGray",size:"small",onClick:n,endIcon:m($n,{height:20,width:20,color:"text-delta-700"})})})}):null,dc=({visibility:e,tooltipTitle:t,onClick:n,type:o})=>{if(!e)return null;const i="minimize"===o;return"expand"===o?m("div",{children:m(zo,{title:t,placement:"top",children:m("div",{children:m($o,{dataTest:"toggle-minimize-btn",variant:"text",size:"small",onClick:n,endIcon:m(xo,{height:20,width:20,color:"text-gama-500"})})})})}):i?m("div",{children:m(zo,{title:t,placement:"top",children:m("div",{children:m($o,{dataTest:"toggle-minimize-btn",variant:"textGray",size:"small",onClick:n,endIcon:m(bo,{height:20,width:20,color:"text-delta-700"})})})})}):null},uc=({fullScreen:e,showFullScreenIcon:t,tooltipTitle:n,onClick:o})=>t?m(zo,{title:n,children:m("div",{children:m($o,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:o,endIcon:m(e?Ks:Us,{width:20,height:20,color:"text-delta-700"})})})}):null,hc="_minimized-dialog_16tvw_5",pc="_dialog_16tvw_1",mc="_hidden_16tvw_27",fc={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 gc=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=Jo(),C=function(e="en"){return u((()=>fc[e]??fc.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:ni(hc,!N&&mc,p.minimized),children:f("div",{className:Lo("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(zo,{title:r,placement:"top",children:m("div",{className:"truncate",children:r})})}),f("div",{className:"flex items-center gap-x-1",children:[m(dc,{type:"expand",visibility:o,onClick:()=>I(!N),tooltipTitle:C.expand}),m(cc,{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:ni(pc,N&&mc,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:ni("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:ni("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(dc,{visibility:n&&!y,type:"minimize",onClick:()=>I(!N),tooltipTitle:C.minimize}),m(uc,{showFullScreenIcon:i&&!y,fullScreen:M,onClick:()=>_(!M),tooltipTitle:M?C.exitFullscreen:C.fullscreen}),m(cc,{showCloseIcon:t,onClick:h,tooltipTitle:C.close})]})]}),a&&m("div",{className:ni("font-semibold text-delta-800",y?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:r})]}),m("div",{className:ni(N&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:s})]})]}):null};function vc({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{Fn as ArchiveIcon,yn as AssignmentIcon,Cn as AssignmentOutlineIcon,W as Avatar,yo as BadgeIcon,nn as BellIcon,tn as BellOutlineIcon,io as CalendarBlankOutlineIcon,bn as CalendarIcon,wn as CalendarRangeIcon,jn as CheckBoxCheckedIcon,vn as CheckFactIcon,gn as CheckFactOutlineIcon,qr as CheckIcon,fn as CheckOutlineIcon,an as ChevronDoubleLeftIcon,sn as ChevronDoubleRightIcon,Bn as ChevronDownIcon,ln as ChevronLeftIcon,rn as ChevronRightIcon,Hn as ChevronUpIcon,U as ClickAwayListener,$n as CloseIcon,vo as ConsentsIcon,K as Container,Ns as CopyButton,_s as CopyWrapper,un as DashboardViewIcon,hn as DashboardViewOutlineIcon,Qn as DeleteOutlineIcon,Pn as DotsVerticalIcon,qn as DownloadIcon,Zn as DragHorizontalIcon,An as DropDownIcon,Vn as DropUpIcon,to as DvrIcon,ho as EarthIcon,Co as EditSquareIcon,no as ErrorOutlineIcon,G as Fade,lo as FastCheckOutlineIcon,Jn as FilePdfIcon,Xn as FilterIcon,Rn as FindReplaceIcon,En as FindReplacePeopleIcon,Y as FormLabel,on as HamburgerIcon,Mo as HandymanIcon,Io as HandymanOutlineIcon,Kn as InboxOutboxIcon,Gn as InboxOutboxOutlineIcon,Fr as IndeterminateIcon,xo as KeyboardCapslockIcon,ro as LinkOutlineIcon,kn as ListNumberedIcon,uo as ListSettingsLineIcon,so as ListStatusIcon,Ln as LoadingIcon,eo as LockIcon,Nn as MessageProcessingIcon,In as MessageProcessingOutlineIcon,wo as MessageReplyIcon,sc as MinimizableDialog,gc as MinimizableDialogV2,bo as MinimizeIcon,xn as NewCalendarIcon,go as OutlineCalendarMonth,Z as Paper,dn as PdfIcon,mo as PencilOutlineIcon,mn as PeopleIcon,pn as PeopleOutlineIcon,Wn as PermMediaIcon,Un as PermMediaOutline,On as PersonIcon,zn as PersonOutlineIcon,_o as PinIcon,ko as PlusIcon,No as PlusIconCircle,J as Popper,cn as QnrIcon,oo as ReplayIcon,Mn as ReportBoxIcon,_n as ReportBoxOutlineIcon,Dn as SearchIcon,Tn as SettingsIcon,po as SettingsMenuHorizontalIcon,Sn as SettingsOutlineIcon,Q as Skeleton,X as Stack,gs as StyledAccordion,bs as StyledAccordionDetails,vs as StyledAccordionSummary,xe as StyledBadge,$o as StyledButton,jr as StyledCheckbox,So as StyledChip,Qo as StyledDialog,oi as StyledDialogActions,ri as StyledDialogContent,ai as StyledDialogTitle,Ma as StyledDrawer,wa as StyledDynamicSelect,ci as StyledEmptyPage,ws as StyledFilterButton,ks as StyledFilterMenu,hi as StyledFilteredEmptyState,ya as StyledFormControl,Ca as StyledFormControlLabel,Ia as StyledFormGroup,ka as StyledFormHelperText,jo as StyledFormLabel,Br as StyledInputField,Na as StyledInputLabel,Oo as StyledInteractiveChip,va as StyledLabel,Da as StyledLink,mi as StyledLoading,_a as StyledMenu,Ta as StyledMenuItem,Sa as StyledMenuList,Hs as StyledModuleTitle,xs as StyledPopover,Ml as StyledRadio,ga as StyledRadioGroup,Hr as StyledSearchField,Ur as StyledSelect,Zr as StyledSelectAutocomplete,Kr as StyledSelectItem,Jr as StyledSlider,ll as StyledSwitch,La as StyledTab,Va as StyledTabs,Wr as StyledTextarea,zo as StyledTooltip,Po as StyledTypography,js as StyledWidget,Es as StyledWidgetHeader,Ss as StyledWidgetTitle,co as TextBoxCheckOutlineIcon,Yn as TopicIcon,ao as UnknownDocumentOutlineRoundedIcon,fo as WarningAmberOutlineIcon,To as WorkIcon,vc as createDialogStack,ce as omit,be as prepareForSlot,ge as setMidnightTime,ve 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,useSyncExternalStore as l,useEffect as a,useState as s,useLayoutEffect as c,useRef as d,useCallback as u,useMemo as h,createContext as p,useContext as m}from"react";import{jsx as f,jsxs as g,Fragment as v}from"react/jsx-runtime";import{Badge as b,Chip as x,Checkbox as w,Radio as y,Tooltip as C,Typography as k,Dialog as N,DialogActions as I,DialogContent as M,DialogTitle as _,TextField as T,Select as S,MenuItem as R,Autocomplete as E,Paper as O,Slider as z,Skeleton as P,FormControl as D,FormControlLabel as L,FormHelperText as V,InputLabel as A,FormGroup as F,Drawer as q,Menu as j,MenuList as B,Tab as H,Tabs as $,Popover as U}from"@mui/material";import{Avatar as W,ClickAwayListener as K,Container as G,Fade as Y,FormLabel as Z,Paper as J,Popper as Q,Skeleton as X,Stack as ee}from"@mui/material";import te from"@mui/material/Fade";import{twMerge as ne}from"tailwind-merge";import*as oe from"react-dom";import{ErrorOutlineIcon as ie,CloseIcon as re,LoadingIcon as le,PlusIconCircle as ae,CheckIcon as se,ContentCopyIcon as ce}from"asma-ui-icons";const de=(e,t)=>Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))));function ue(e){return(ue="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 he(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 pe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function me(e){pe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ue(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 fe(e,t){pe(2,arguments);var n=me(e),o=he(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){pe(1,arguments);var t=me(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 ge(e,t){if(pe(2,arguments),"object"!==ue(t)||null===t)throw new RangeError("values parameter must be an object");var n=me(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=fe(n,t.month)),null!=t.date&&n.setDate(he(t.date)),null!=t.hours&&n.setHours(he(t.hours)),null!=t.minutes&&n.setMinutes(he(t.minutes)),null!=t.seconds&&n.setSeconds(he(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(he(t.milliseconds)),n)}const ve=e=>ge(e,{hours:23,minutes:59,seconds:59,milliseconds:59}),be=e=>ge(e,{hours:0,minutes:0,seconds:0,milliseconds:0});function xe(e){return i((function(t,n){const{ownerState:o,...i}=t;return r(e,{...i,ref:n})}))}const we=({color:e="primary",dataTest:t,...n})=>f(b,{color:e,"data-test":t,...n,sx:{"& .MuiBadge-colorPrimary":{backgroundColor:"var(--colors-lime-500)",color:"var(--colors-gama-900)"},...n.sx}}),ye=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ce=(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&&!ke(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&&!ke(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:r};return t&&!ke(e,n)?null:e}return null},ke=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(ye)||!(t&&""===e.prefix||e.prefix.match(ye))||!e.name.match(ye)),Ne=Object.freeze({left:0,top:0,width:16,height:16}),Ie=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Me=Object.freeze({...Ne,...Ie}),_e=Object.freeze({...Me,body:"",hidden:!1});function Te(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 _e)o in Ie?o in e&&!(o in n)&&(n[o]=Ie[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Se(e,t,n){const o=e.icons,i=e.aliases||Object.create(null);let r={};function l(e){r=Te(o[e]||i[e],r)}return l(t),n.forEach(l),Te(e,r)}function Re(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,Se(e,i,r)),n.push(i))}return n}const Ee={provider:"",aliases:{},not_found:{},...Ne};function Oe(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ze(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!Oe(e,Ee))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(ye)||"string"!=typeof t.body||!Oe(t,_e))return null}const o=t.aliases||Object.create(null);for(const e in o){const t=o[e],i=t.parent;if(!e.match(ye)||"string"!=typeof i||!n[i]&&!o[i]||!Oe(t,_e))return null}return t}const Pe=Object.create(null);function De(e,t){const n=Pe[e]||(Pe[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 Le(e,t){return ze(t)?Re(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let Ve=!1;function Ae(e){return"boolean"==typeof e&&(Ve=e),Ve}function Fe(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),Ve&&!t&&!e.prefix){let t=!1;return ze(e)&&(e.prefix="",Re(e,((e,n)=>{n&&function(e,t){const n=Ce(e,!0,Ve);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(De(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!ke({provider:t,prefix:n,name:"a"}))return!1;return!!Le(De(t,n),e)}const qe=Object.freeze({width:null,height:null}),je=Object.freeze({...qe,...Ie}),Be=/(-?[0-9.]*[0-9]+[0-9.]*)/g,He=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function $e(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(Be);if(null===o||!o.length)return e;const i=[];let r=o.shift(),l=He.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 Ue=/\sid="(\S+)"/g,We="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Ke=0;function Ge(e,t=We){const n=[];let o;for(;o=Ue.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+(Ke++).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 Ye=Object.create(null);function Ze(e){return Ye[e]||Ye[""]}function Je(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 Qe=Object.create(null),Xe=["https://api.simplesvg.com","https://api.unisvg.com"],et=[];for(;Xe.length>0;)1===Xe.length||Math.random()>.5?et.push(Xe.shift()):et.push(Xe.pop());function tt(e,t){const n=Je(t);return null!==n&&(Qe[e]=n,!0)}function nt(e){return Qe[e]}Qe[""]=Je({resources:["https://api.iconify.design"].concat(et)});let ot=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const it={prepare:(e,t,n)=>{const o=[],i=function(e,t){const n=nt(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(!ot)return void n("abort",424);let o=function(e){if("string"==typeof e){const t=nt(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;ot(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 rt(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let lt=0;var at={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function st(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 ct(e){const t={...at,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,i,r){const l=st(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 dt(){}const ut=Object.create(null);function ht(e,t,n){let o,i;if("string"==typeof e){const t=Ze(e);if(!t)return n(void 0,424),dt;i=t.send;const r=function(e){if(!ut[e]){const t=nt(e);if(!t)return;const n={config:t,redundancy:ct(t)};ut[e]=n}return ut[e]}(e);r&&(o=r.redundancy)}else{const t=Je(e);if(t){o=ct(t);const n=Ze(e.resources?e.resources[0]:"");n&&(i=n.send)}}return o&&i?o.query(t,i,n)().abort:(n(void 0,424),dt)}const pt="iconify2",mt="iconify",ft=mt+"-count",gt=mt+"-version",vt=36e5,bt=168;function xt(e,t){try{return e.getItem(t)}catch{}}function wt(e,t,n){try{return e.setItem(t,n),!0}catch{}}function yt(e,t){try{e.removeItem(t)}catch{}}function Ct(e,t){return wt(e,ft,t.toString())}function kt(e){return parseInt(xt(e,ft))||0}const Nt={local:!0,session:!0},It={local:new Set,session:new Set};let Mt=!1;let _t=typeof window>"u"?{}:window;function Tt(e){const t=e+"Storage";try{if(_t&&_t[t]&&"number"==typeof _t[t].length)return _t[t]}catch{}Nt[e]=!1}function St(e,t){const n=Tt(e);if(!n)return;const o=xt(n,gt);if(o!==pt){if(o){const e=kt(n);for(let t=0;t<e;t++)yt(n,mt+t.toString())}return wt(n,gt,pt),void Ct(n,0)}const i=Math.floor(Date.now()/vt)-bt,r=e=>{const o=mt+e.toString(),r=xt(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{}yt(n,o)}};let l=kt(n);for(let t=l-1;t>=0;t--)r(t)||(t===l-1?(l--,Ct(n,l)):It[e].add(t))}function Rt(){if(!Mt){Mt=!0;for(const e in Nt)St(e,(e=>{const t=e.data,n=De(e.provider,t.prefix);if(!Le(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function Et(e,t){function n(n){let o;if(!Nt[n]||!(o=Tt(n)))return;const i=It[n];let r;if(i.size)i.delete(r=Array.from(i).shift());else if(r=kt(o),!Ct(o,r+1))return;const l={cached:Math.floor(Date.now()/vt),provider:e.provider,data:t};return wt(o,mt+r.toString(),JSON.stringify(l))}Mt||Rt(),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 Nt)St(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 Ot(){}function zt(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||rt([e],t.id),t.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),t.abort))}))})))}(e)})))}const Pt=(e,t)=>{const n=function(e,t=!0,n=!1){const o=[];return e.forEach((e=>{const i="string"==typeof e?Ce(e,t,n):e;i&&o.push(i)})),o}(e,!0,Ae()),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]=De(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,Ot)})),()=>{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(De(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=De(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=Ze(t))&&i.prepare(t,n,o).forEach((n=>{ht(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=Le(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),Et(e,t)}catch(e){console.error(e)}zt(e)}))}))})))}(e,i[t][n])})),t?function(e,t,n){const o=lt++,i=rt.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):Ot};const Dt=/[\s,]+/;function Lt(e,t){t.split(Dt).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Vt(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 At(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 Ft;function qt(e){return void 0===Ft&&function(){try{Ft=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Ft=null}}(),Ft?Ft.createHTML(e):e}const jt={...je,inline:!1},Bt={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ht={display:"inline-block"},$t={backgroundColor:"currentColor"},Ut={backgroundColor:"transparent"},Wt={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Kt={WebkitMask:$t,mask:$t,background:Ut};for(const e in Kt){const t=Kt[e];for(const n in Wt)t[e+n]=Wt[n]}const Gt={...jt,inline:!0};function Yt(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Zt=(e,t,n,i)=>{const r=n?Gt:jt,l=function(e,t){const n={...e};for(const e in t){const o=t[e],i=typeof o;e in qe?(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?Bt:{},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&&Lt(l,n);break;case"color":s.color=n;break;case"rotate":"string"==typeof n?l[e]=Vt(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={...Me,...e},o={...je,...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=$e(u,s/c)):(d="auto"===l?s:l,u=null===a?$e(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:qt(Ge(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":At(v),width:Yt(h.width),height:Yt(h.height),...Ht,...g?$t:Ut,...c},o.createElement("span",d)};var Jt;if(Ae(!0),Jt=it,Ye[""]=Jt,typeof document<"u"&&typeof window<"u"){Rt();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||!Fe(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;tt(e,o)||console.error(n)}catch{console.error(n)}}}}class Qt 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=Ce(n,!1,!0)))return this._abortLoading(),void this._setData(null);const i=function(e){const t="string"==typeof e?Ce(e,!0,Ve):e;if(t){const e=De(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:Pt([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(" ")}),Zt({...Me,...t.data},n,e._inline,e._ref)}}const Xt=o.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!1};return o.createElement(Qt,n)}));o.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!0};return o.createElement(Qt,n)}));const en="_icon_1czju_5",tn=({width:e=20,height:t=20,className:n="",icon:o,onClick:i,color:r,vFlip:l=!1})=>f(Xt,{onClick:i,icon:o,width:e,height:t,className:`${en} ${n}`,color:r,vFlip:l}),nn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:bell-outline",width:e,height:t,className:n,onClick:o,color:i}),on=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:bell",width:e,height:t,className:n,onClick:o,color:i}),rn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"charm:menu-hamburger",width:e,height:t,className:n,onClick:o,color:i}),ln=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:chevron-right",width:e,height:t,className:n,onClick:o,color:i}),an=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:chevron-left",width:e,height:t,className:n,onClick:o,color:i}),sn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:chevron-double-left",width:e,height:t,className:n,onClick:o,color:i}),cn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:chevron-double-right",width:e,height:t,className:n,onClick:o,color:i}),dn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"fluent:document-bullet-list-24-filled",width:e,height:t,className:n,onClick:o,color:i}),un=({width:e=20,height:t=20,className:n="",onClick:o,color:i=""})=>f(tn,{icon:"fluent:document-pdf-20-filled",width:e,height:t,className:n,onClick:o,color:i}),hn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:view-dashboard",width:e,height:t,className:n,onClick:o,color:i}),pn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:view-dashboard-outline",width:e,height:t,className:n,onClick:o,color:i}),mn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:outline-people-alt",width:e,height:t,className:n,onClick:o,color:i}),fn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:sharp-people",width:e,height:t,className:n,onClick:o,color:i});function gn(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:f("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 vn(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:f("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 bn(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:f("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 xn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:calendar-blank",width:e,height:t,className:n,onClick:o,color:i}),wn=e=>f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M6 4V1.5h2V4h8V1.5h2V4h4v18H2V4zM4 6v3h16V6zm16 5H4v9h16z"})}),yn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:calendar-range",width:e,height:t,className:n,onClick:o,color:i}),Cn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:baseline-assignment",width:e,height:t,className:n,onClick:o,color:i}),kn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"material-symbols:assignment-outline",width:e,height:t,className:n,onClick:o,color:i}),Nn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:baseline-format-list-numbered",width:e,height:t,className:n,onClick:o,color:i}),In=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:message-processing",width:e,height:t,className:n,onClick:o,color:i}),Mn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:message-processing-outline",width:e,height:t,className:n,onClick:o,color:i}),_n=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:report-box",width:e,height:t,className:n,onClick:o,color:i}),Tn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:report-box-outline",width:e,height:t,className:n,onClick:o,color:i}),Sn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:settings",width:e,height:t,className:n,onClick:o,color:i}),Rn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:settings-outline",width:e,height:t,className:n,onClick:o,color:i}),En=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:baseline-sync",width:e,height:t,className:n,onClick:o,color:i,vFlip:!0}),On=({color:e="black",size:t="20",className:n=""})=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,viewBox:`0 0 ${t} ${t}`,fill:"none",children:[f("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}),f("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}),f("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}),f("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})]}),zn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:round-person",width:e,height:t,className:n,onClick:o,color:i}),Pn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:round-person-outline",width:e,height:t,className:n,onClick:o,color:i}),Dn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:dots-vertical",width:e,height:t,className:n,onClick:o,color:i}),Ln=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:outline-search",width:e,height:t,className:n,onClick:o,color:i}),Vn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"line-md:loading-twotone-loop",width:e,height:t,className:n,onClick:o,color:i}),An=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:baseline-arrow-drop-up",width:e,height:t,className:n,onClick:o,color:i}),Fn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:baseline-arrow-drop-down",width:e,height:t,className:n,onClick:o,color:i}),qn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"eva:archive-fill",width:e,height:t,className:n,onClick:o,color:i}),jn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:baseline-download",width:e,height:t,className:n,onClick:o,color:i}),Bn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:checkbox-marked-outline",width:e,height:t,className:n,onClick:o,color:i}),Hn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:chevron-down",width:e,height:t,className:n,onClick:o,color:i}),$n=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:chevron-up",width:e,height:t,className:n,onClick:o,color:i}),Un=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:baseline-close",width:e,height:t,className:n,onClick:o,color:i}),Wn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"material-symbols:perm-media",width:e,height:t,className:n,onClick:o,color:i}),Kn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"material-symbols:perm-media-outline",width:e,height:t,className:n,onClick:o,color:i}),Gn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:inbox",width:e,height:t,className:n,onClick:o,color:i}),Yn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:inbox-outline",width:e,height:t,className:n,onClick:o,color:i}),Zn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:sharp-topic",width:e,height:t,className:n,onClick:o,color:i}),Jn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"akar-icons:drag-horizontal",width:e,height:t,className:n,onClick:o,color:i}),Qn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"fa6-regular:file-pdf",width:e,height:t,className:n,onClick:o,color:i}),Xn=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"material-symbols:delete-outline",width:e,height:t,className:n,onClick:o,color:i}),eo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:filter-variant",width:e,height:t,className:n,onClick:o,color:i}),to=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"material-symbols:lock-outline",width:e,height:t,className:n,onClick:o,color:i}),no=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:baseline-dvr",width:e,height:t,className:n,onClick:o,color:i}),oo=({width:e=20,height:t=20,className:n="",onClick:o,color:i="var(--colors-error-500)"})=>f(tn,{icon:"mdi:error-outline",width:e,height:t,className:n,onClick:o,color:i}),io=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:replay",width:e,height:t,className:n,onClick:o,color:i}),ro=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:calendar-blank-outline",width:e,height:t,className:n,onClick:o,color:i}),lo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:outline-link",width:e,height:t,className:n,onClick:o,color:i}),ao=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"material-symbols:fact-check-outline",width:e,height:t,className:n,onClick:o,color:i}),so=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"material-symbols:unknown-document-outline-rounded",width:e,height:t,className:n,onClick:o,color:i}),co=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:list-status",width:e,height:t,className:n,onClick:o,color:i}),uo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:text-box-check-outline",width:e,height:t,className:n,onClick:o,color:i}),ho=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ri:list-settings-line",width:e,height:t,className:n,onClick:o,color:i}),po=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"pajamas:earth",width:e,height:t,className:n,onClick:o,color:i}),mo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"streamline:interface-setting-menu-1-button-parallel-horizontal-lines-menu-navigation-three-hamburger",width:e,height:t,className:n,onClick:o,color:i}),fo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"mdi:pencil-outline",width:e,height:t,className:n,onClick:o,color:i});function go(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M12 5.99L19.53 19H4.47zM12 2L1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"})})}const vo=({width:e=20,height:t=20,className:n="",onClick:o,color:i})=>f(tn,{icon:"ic:outline-calendar-month",width:e,height:t,className:n,onClick:o,color:i});function bo(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:f("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 xo=e=>f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M6 21v-2h12v2z"})}),wo=e=>f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M6 18v-2h12v2zm6-12.4l6 6l-1.4 1.4L12 8.4L7.4 13L6 11.6z"})});function yo(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:f("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 Co(e){return g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:[f("path",{fill:"currentColor",d:"M14 12h4v1.5h-4zm0 3h4v1.5h-4z"}),f("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"}),f("circle",{cx:9,cy:13.5,r:1.5,fill:"currentColor"}),f("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 ko(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:f("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 No(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:f("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 Io(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:f("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 Mo(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:f("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 _o(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:f("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 To(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:f("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 So(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:f("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 Ro=i((({dataTest:e,readOnly:t,onDelete:n,...o},i)=>f(x,{...o,ref:i,"data-test":e,deleteIcon:t?void 0:f(Un,{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)",fontSize:"14px",...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}}))),Eo=({dataTest:e,...t})=>f(w,{...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"}}}),Oo=({dataTest:e,...t})=>f(y,{...t,"data-test":e,sx:{"&":{color:"var(--colors-delta-500)"},"& input":{height:"100% !important",width:"100% !important"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),zo=i((({type:e="checkbox",checked:t,size:n="small",...o},i)=>{const r="checkbox"===e,l=r?Eo:Oo,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 f(Ro,{ref:i,avatar:f(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}})})),Po=e=>{const{componentsProps:t,...n}=e,o=null==t?void 0:t.tooltip;return f(C,{TransitionComponent:te,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})},Do=e=>f(k,{...e});function Lo(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=Lo(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Vo(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=Lo(e))&&(o&&(o+=" "),o+=t);return o}const Ao="_styled-label-md_jbn3o_1",Fo="_styled-label-base_jbn3o_10",qo="_styled-label-lg_jbn3o_19",jo="_styled-label-xl_jbn3o_27",Bo=({title:e,onClick:t,className:n,dataTest:o,size:i="base"})=>{const r=(({size:e})=>{switch(e){case"md":return Ao;case"lg":return qo;case"xl":return jo;default:return Fo}})({size:i});return f("div",{className:Vo(r,n),onClick:t,"data-test":o,children:e})},Ho="_asma-ui-core-button_h1men_1",$o={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"},Uo=({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 g("button",{...c,className:Vo(Ho,$o[e],$o[s?"error":"common"],$o[n],t),ref:i,"data-test":a,children:[r,o&&f("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]})},Wo="_styled-dialog-root_1st3i_1",Ko="_styled-top-header_1st3i_6",Go="_styled-dialog-close_1st3i_13",Yo="_styled-dialog-info_1st3i_20",Zo="_styled-dialog-label_1st3i_27",Jo="_styled-dialog-title_1st3i_37",Qo={mobile:"(max-width: 743px)",tablet:"(min-width: 744px) and (max-width: 1023px)",tabletDesktop:"(min-width: 1024px) and (max-width: 1279px)",desktop:"(min-width: 1280px)"},Xo=e=>t=>{const n=window.matchMedia(e);return n.addEventListener("change",t),()=>n.removeEventListener("change",t)},ei=e=>()=>window.matchMedia(e).matches,ti=()=>!1;function ni(e){return l(Xo(e),ei(e),ti)}function oi(){const{isMobile:e}=function(){const e=ni(Qo.mobile),t=ni(Qo.tablet),n=ni(Qo.tabletDesktop);return{isCompact:e||t||n,isDesktop:ni(Qo.desktop),isMobile:e,isMobileOrTablet:e||t,isTablet:t,isTabletDesktop:n}}();return e}const ii=({onCloseText:e,children:t,dataTest:n,showCloseIcon:o=!0,dialogLabel:i,dialogTitle:r,dialogHeaderNode:l,...a})=>{const s=oi();return g(N,{"data-test":n,style:{zIndex:999,...a.style},fullScreen:!!s||a.fullScreen,...a,children:[f("div",{className:Wo,children:i||r||o?g("div",{className:Ko,children:[g("div",{className:Yo,children:[i&&f("div",{className:Zo,children:i}),r&&f("div",{className:Jo,children:r})]}),o&&g("div",{className:Go,children:[l,f(Uo,{dataTest:`close-button-${n}`,variant:"textGray",size:"small",endIcon:f(Un,{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]})},ri="_styled-dialog-actions-root_1yp8r_1",li="_styled-dialog-actions_1yp8r_1",ai="_action-button-wrapper_1yp8r_17";function si(...e){return ne(Vo(e))}const ci=e=>f(I,{...e,"data-test":"styled-dialog-actions",classes:{...e.classes,root:ri},children:f("div",{className:si(li,e.className),children:o.Children.map(e.children,(e=>f("div",{className:ai,children:e})))})}),di="_styled-dialog-content_d2vki_1",ui=({children:e,classes:t,className:n,...o})=>f(M,{...o,"data-test":"styled-dialog-content",classes:{...t,root:di},className:n,children:e}),hi="_styled-dialog-title-root_mcspk_1",pi=({children:e,...t})=>e?f(_,{...t,"data-test":"styled-dialog-title",classes:{...t.classes,root:hi},children:e}):null;function mi(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:f("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 fi=({emptyText:e,isEmpty:t=!0,className:n=""})=>t?g("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:[f(mi,{"data-test":"empty-page-icon",width:24,height:24,className:"text-gray-600 cursor-default"}),f("span",{className:"font-normal",children:e})]}):null;function gi(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:f("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 vi={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"}},bi=({dataTest:e,emptyText:t,locale:n="en",isFiltered:o=!1,filteredByDefault:i=!1,filterTitle:r,filteredDescription:l,resetButtonText:a,onResetFilters:s,actionIcon:c=f(gi,{width:24,height:24,color:"currentColor"}),className:d,emptyPageClassName:u,filterContentClassName:h,resetButtonClassName:p})=>{const m=vi[n]??vi.en,v=t??m.emptyText,b=r??m.filterTitle,x=i?m.defaultFilteredDescription:l??m.filteredDescription,w=a??m.resetButtonText;return g("div",{"data-test":e,className:si("flex size-full flex-col items-center justify-center gap-4 py-4 text-center",d),children:[f("div",{children:f(fi,{isEmpty:!0,emptyText:v,className:si("py-6",u)})}),o&&g("div",{className:si("flex flex-col items-center gap-2",h),children:[f("div",{className:"font-semibold text-delta-800",children:b}),f("div",{className:"text-delta-600",children:x}),s&&f(Uo,{size:"small",variant:"text",dataTest:`${e}-reset`,onClick:s,startIcon:c,className:si("inline-flex items-center text-gama-700 hover:text-gama-800",p),children:f("span",{children:w})})]})]})},xi={small:16,medium:24,large:32},wi=({isLoading:e,className:t="",size:n="medium"})=>{if(!e)return null;const o=xi[n];return f("div",{className:Vo("flex items-center justify-center h-[50px] w-full text-gama-500 animate-opacity-appear-3",t),children:f(Vn,{width:o,height:o})})};function yi({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 Ci={};function ki(e,t){const o=n.useRef(Ci);return o.current===Ci&&(o.current=e(t)),o}const Ni=n[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],Ii=Ni&&Ni!==n.useLayoutEffect?Ni:e=>e();function Mi(e){const t=ki(_i).current;return t.next=e,Ii(t.effect),t.trampoline}function _i(){const e={next:void 0,callback:Ti,trampoline:(...t)=>{var n;return null==(n=e.callback)?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function Ti(){if("production"!==process.env.NODE_ENV)throw new Error("Base UI: Cannot call an event handler while rendering.")}function Si(e,t,n,o){const i=ki(Ri).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)&&Ei(i,[e,t,n,o]),i.callback}function Ri(){return{callback:null,cleanup:null,refs:[]}}function Ei(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 Oi=typeof document<"u"?n.useLayoutEffect:()=>{},zi={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 Pi=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}({}),Di=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 Li={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Vi={valid:e=>null===e?null:e?{[Di.valid]:""}:{[Di.invalid]:""}};function Ai(e){return n.useMemo((()=>({checked:t=>e.indeterminate?{}:t?{[Pi.checked]:""}:{[Pi.unchecked]:""},...Vi})),[e.indeterminate])}const Fi=parseInt(n.version,10);function qi(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}const ji={};function Bi(e,t,n,o,i){let r={...Wi(e,ji)};return t&&(r=Hi(r,t)),n&&(r=Hi(r,n)),o&&(r=Hi(r,o)),i&&(r=Hi(r,i)),r}function Hi(e,t){return Ui(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]=qi(e.style,o);break;case"className":e[n]=Yi(e.className,o);break;default:$i(n,o)?e[n]=Ki(e[n],o):e[n]=o}}return e}(e,t)}function $i(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 Ui(e){return"function"==typeof e}function Wi(e,t){return Ui(e)?e(t):e??ji}function Ki(e,t){return t?e?n=>{if(function(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}(n)){const o=n;Gi(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 Gi(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Yi(e,t){return t?e?t+" "+e:t:e}function Zi(){}const Ji=Object.freeze([]),Qi=Object.freeze({});function Xi(e,t,o={}){const i=t.render,r=function(e,t={}){const{className:n,render:o}=e,{state:i=Qi,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):Qi,u=s?qi(d,Array.isArray(l)?function(e){if(0===e.length)return ji;if(1===e.length)return Wi(e[0],ji);let t={...Wi(e[0],ji)};for(let n=1;n<e.length;n+=1)t=Hi(t,e[n]);return t}(l):l)??Qi:Qi;return typeof document<"u"&&(s?Array.isArray(r)?u.ref=function(e){const t=ki(Ri).current;return function(e,t){return e.refs.length!==t.length||e.refs.some(((e,n)=>e!==t[n]))}(t,e)&&Ei(t,e),t.callback}([u.ref,er(o),...r]):u.ref=Si(u.ref,er(o),r):Si(null,null)),s?(void 0!==c&&(u.className=Yi(u.className,c)),u):Qi}(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=Bi(o,t.props);return e.ref=o.ref,n.cloneElement(t,e)}if(e&&"string"==typeof e)return function(e,t){return"button"===e?f("button",{type:"button",...t}):"img"===e?f("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??Qi)}function er(e){return e&&"function"!=typeof e?function(e){return Fi>=e}(19)?e.props.ref:e.ref:null}const tr={...n};let nr=0;const or=tr.useId;function ir(e,t){if(void 0!==or){const n=or();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&&(nr+=1,i(`${t}-${nr}`))}),[o,t]),r}(e,t)}function rr(e){return ir(e,"base-ui")}function lr(){return typeof window<"u"}function ar(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function sr(e){return!!lr()&&(e instanceof HTMLElement||e instanceof ar(e).HTMLElement)}let cr;function dr(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");cr.has(t)||(cr.add(t),console.error(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(cr=new Set);const ur=n.createContext(void 0);function hr(e=!1){const t=n.useContext(ur);if(void 0===t&&!e)throw new Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return t}function pr(e={}){const{disabled:t=!1,focusableWhenDisabled:o,tabIndex:i=0,native:r=!0}=e,l=n.useRef(null),a=void 0!==hr(!0),s=Mi((()=>{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||dr("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&&dr("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 sr(e)&&"BUTTON"===e.tagName})(e)&&a&&t&&void 0===c.disabled&&e.disabled&&(e.disabled=!1)}),[t,c.disabled,a]);Oi(d,[d]);return{getButtonProps:n.useCallback(((e={})=>{const{onClick:n,onMouseDown:o,onKeyUp:i,onKeyDown:l,onPointerDown:a,...d}=e;return Bi({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||(Gi(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||(Gi(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:Mi((e=>{l.current=e,d()}))}}"production"!==process.env.NODE_ENV&&(ur.displayName="CompositeRootContext");const mr=n.createContext({invalid:void 0,controlId:void 0,setControlId:Zi,labelId:void 0,setLabelId:Zi,messageIds:[],setMessageIds:Zi,name:void 0,validityData:{state:Li,errors:[],error:"",value:"",initialValue:null},setValidityData:Zi,disabled:void 0,touched:!1,setTouched:Zi,dirty:!1,setDirty:Zi,filled:!1,setFilled:Zi,focused:!1,setFocused:Zi,validate:()=>null,validationMode:"onBlur",validationDebounceTime:0,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1}});function fr(e=!0){const t=n.useContext(mr);if(t.setControlId===Zi&&!e)throw new Error("Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");return t}"production"!==process.env.NODE_ENV&&(mr.displayName="FieldRootContext");const gr=[];function vr(e){n.useEffect(e,gr)}class br{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 br}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}isStarted(){return 0!==this.currentId}}const xr=n.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Zi});function wr(){return n.useContext(xr)}function yr(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}"production"!==process.env.NODE_ENV&&(xr.displayName="FormContext");const Cr=Object.keys(Li);function kr(){const{setValidityData:e,validate:t,messageIds:o,validityData:i,validationMode:r,validationDebounceTime:l,invalid:a,markedDirtyRef:s,controlId:c,state:d,name:u}=fr(),{formRef:h,clearErrors:p}=wr(),m=function(){const e=ki(br.create).current;return vr(e.disposeEffect),e}(),f=n.useRef(null),g=Mi((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:{...Li,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,...yr(t,!1)})}return void e(t)}const o=Cr.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 Cr)"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=Cr.reduce(((t,n)=>(t[n]=e.validity[n],t)),{});let n=!1;for(const e of Cr)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,...yr(v,a)})}e(v)})),v=n.useCallback(((e={})=>Bi({...o.length&&{"aria-describedby":o.join(" ")},...!1===d.valid&&{"aria-invalid":!0}},e)),[o,d.valid]),b=n.useCallback(((e={})=>Bi({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 Nr(e){const t=ki(Ir,e).current;return t.next=e,Oi(t.effect),t}function Ir(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Mr(e){const{formRef:t}=wr(),{invalid:n,markedDirtyRef:o,validityData:i,setValidityData:r}=fr(),{enabled:l=!0,value:a,id:s,name:c,controlRef:d,commitValidation:u}=e,h=Nr(e.getValue);Oi((()=>{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]),Oi((()=>{l&&s&&t.current.fields.set(s,{controlRef:d,validityData:yr(i,n),validate(){var e;let t=a;void 0===t&&(t=null==(e=h.current)?void 0:e.call(h)),o.current=!0,oe.flushSync((()=>u(t)))},getValueRef:h,name:c})}),[u,d,l,t,h,s,n,o,c,i,a]),Oi((()=>{const e=t.current.fields;return()=>{s&&e.delete(s)}}),[t,s])}const _r=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(_r.displayName="CheckboxGroupContext");const Tr=n.createContext(void 0);function Sr(e,t,n){let o=!1,i=!1;const r=n??Qi;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&&(Tr.displayName="CheckboxRootContext");const Rr={},Er=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:m,required:v=!1,value:b,nativeButton:x=!0,...w}=e,{clearErrors:y}=wr(),{disabled:C,labelId:k,name:N,setControlId:I,setDirty:M,setFilled:_,setFocused:T,setTouched:S,state:R,validationMode:E,validityData:O}=fr(),z=function(e=!0){const t=n.useContext(_r);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=Mi(u),{checked:j=o,indeterminate:B=s,onCheckedChange:H,...$}=F,U=null==z?void 0:z.value,W=null==z?void 0:z.setValue,K=null==z?void 0:z.defaultValue,G=n.useRef(null),{getButtonProps:Y,buttonRef:Z}=pr({disabled:L,native:x}),J=kr(),Q=(null==z?void 0:z.fieldControlValidation)??J,[X,ee]=yi({controlled:A&&U&&!h?U.includes(A):j,default:A&&K&&!h?K.includes(A):r,name:"Checkbox",state:"checked"}),te=rr(a);Oi((()=>{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]),Mr({enabled:!z,id:te,commitValidation:Q.commitValidation,value:X,controlRef:G,name:V,getValue:()=>X});const ne=n.useRef(null),oe=Si(c,ne,Q.inputRef);Oi((()=>{ne.current&&(ne.current.indeterminate=B,X&&_(!0))}),[X,B,_]);const ie=Mi((()=>T(!0))),re=Mi((()=>{const e=ne.current;e&&(S(!0),T(!1),"onBlur"===E&&Q.commitValidation(z?U:e.checked))})),le=Mi((e=>{var t;e.defaultPrevented||p||(e.preventDefault(),null==(t=ne.current)||t.click())})),ae=Bi({checked:X,disabled:L,name:h?void 0:V,id:`${te}-input`,required:v,ref:oe,style:zi,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked,n=Sr("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&&U&&W&&!h)){const e=t?[...U,A]:U.filter((e=>e!==A));W(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)||""}:Rr,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=Ai(de),he=Xi("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 g(Tr.Provider,{value:de,children:[he,!X&&!z&&e.name&&!h&&f("input",{type:"hidden",name:e.name,value:"off"}),f("input",{...ae})]})}));"production"!==process.env.NODE_ENV&&(Er.displayName="CheckboxRoot");const Or=null;let zr=globalThis.requestAnimationFrame;const Pr=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&&zr!==requestAnimationFrame&&(zr=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 Dr{constructor(){t(this,"currentId",Or),t(this,"cancel",(()=>{this.currentId!==Or&&(Pr.cancel(this.currentId),this.currentId=Or)})),t(this,"disposeEffect",(()=>this.cancel))}static create(){return new Dr}static request(e){return Pr.request(e)}static cancel(e){return Pr.cancel(e)}request(e){this.cancel(),this.currentId=Pr.request((()=>{this.currentId=Or,e()}))}}function Lr(e,t=!1){const n=function(){const e=ki(Dr.create).current;return vr(e.disposeEffect),e}();return Mi(((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||oe.flushSync(o)}))}t?n.request(e):e()}))}))}function Vr(e){const{enabled:t=!0,open:o,ref:i,onComplete:r}=e,l=Nr(o),a=Mi(r),s=Lr(i,o);n.useEffect((()=>{t&&s((()=>{o===l.current&&a()}))}),[t,o,a,s,l])}function Ar(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),Oi((()=>{if(!e&&l&&"ending"!==i&&o){const e=Dr.request((()=>{r("ending")}));return()=>{Dr.cancel(e)}}}),[e,l,i,o]),Oi((()=>{if(!e||t)return;const n=Dr.request((()=>{oe.flushSync((()=>{r(void 0)}))}));return()=>{Dr.cancel(n)}}),[t,e]),Oi((()=>{if(!e||!t)return;e&&l&&"idle"!==i&&r("starting");const n=Dr.request((()=>{r("idle")}));return()=>{Dr.cancel(n)}}),[t,e,l,r,i]),n.useMemo((()=>({mounted:l,setMounted:a,transitionStatus:i})),[l,i])}let Fr=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const qr={[Fr.startingStyle]:""},jr={[Fr.endingStyle]:""},Br={transitionStatus:e=>"starting"===e?qr:"ending"===e?jr:null},Hr=n.forwardRef((function(e,t){const{render:o,className:i,keepMounted:r=!1,...l}=e,a=function(){const e=n.useContext(Tr);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}=Ar(s),u=n.useRef(null),h=n.useMemo((()=>({...a,transitionStatus:c})),[a,c]);Vr({open:s,ref:u,onComplete(){s||d(!1)}});const p=Ai(a),m=n.useMemo((()=>({...p,...Br,...Vi})),[p]),f=r||s,g=Xi("span",e,{enabled:f,ref:[t,u],state:h,stateAttributesMapping:m,props:l});return f?g:null}));"production"!==process.env.NODE_ENV&&(Hr.displayName="CheckboxIndicator");const $r={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"},Ur=e=>g("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"none",...e,children:[f("title",{children:"Indeterminate icon"}),f("path",{d:"M6 12H18",stroke:"currentColor",strokeWidth:e.strokeWidth??3,strokeLinecap:"round"})]}),Wr=e=>g("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...e,children:[f("title",{children:"Check icon"}),f("path",{d:"M4 12l5 5L20 6"})]}),Kr=({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,m=!(s||p||n||i),v=si($r.CheckboxWrapper,!p&&$r[`size-${t}`],p&&$r.HideWrapper,r&&$r.Indeterminate,i&&$r.ReadOnly,m&&$r.CheckboxHover,d),b=si("styled-checkbox-inner",$r.Checkbox,$r[`size-${t}`],r&&$r.Indeterminate),x=r?Ur:Wr,w=o.useRef(null),y=o.useCallback((e=>{var t;if(e.stopPropagation(),!m)return;const n=document.createElement("span");n.className=$r.CheckboxRipple||"",n.addEventListener("animationend",(()=>n.remove()),{once:!0}),null==(t=w.current)||t.appendChild(n)}),[m]);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 g(Er,{className:v,"data-test":e,checked:l,disabled:n,readOnly:i,indeterminate:r,onPointerDown:y,onCheckedChange:C,...h,children:[!p&&m&&f("span",{ref:w,className:$r.CheckboxRippleContainer}),f("span",{className:b,children:f(Hr,{className:$r.Indicator,children:f(x,{strokeWidth:"small"===t?3:2})})})]})},Gr=({allowClear:e,onClear:t,readOnly:n,disabled:o,error:i,helperText:r,dataTest:l,...a})=>f(T,{...a,"data-test":l,disabled:o||n,error:i,helperText:n?null:i?g("div",{className:"flex items-center gap-1",children:[f(ie,{width:20,height:20,className:"min-w-5"}),r??"Required"]}):r,type:a.type||"mui-input",InputProps:e&&a.value?{...a.InputProps,endAdornment:f("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:f(Un,{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}}),Yr=({value:e,onClear:t,...n})=>{const[o,i]=s(!1),r=o||e;return g("div",{className:"relative w-full",children:[f(Gr,{size:"small",variant:"outlined",value:e,onFocus:()=>i(!0),onBlur:()=>i(!1),InputProps:{className:si("transition-[padding] duration-300",r?"pl-0":"pl-5"),sx:{"& input":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},endAdornment:e?f("div",{className:si("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:f(Un,{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}}),f(Ln,{width:24,height:24,className:si("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)"})]})},Zr={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},Jr=({id:e,variant:t="active",label:n="",labelClassName:o="",description:i="",value:r="",minRows:l=3,maxRows:u=1/0,disabled:h,error:p,errorMessage:m,containerClassName:v="",className:b="",maxLength:x=1/0,counter:w,refLink:y,dataTest:C,counterLimit:k,...N})=>{const I=d(null),M=y||I,_=!(!w||!k),[T,S]=s(!1);a((()=>{S(!0)}),[]),((e,t,n,o,i,r)=>{c((()=>{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,l,u,T,_),u<l&&(l=u);const[R,E]=s(r.length);a((()=>{E(r.length)}),[r]);const O=p?"error":"active",z=p?"error":h?"disabled":"active";return g("div",{className:`flex flex-col gap-1 relative ${v}`,"data-test":C,children:[f("label",{htmlFor:e,className:`${Zr.label} ${Zr[z]} ${o}`,children:n}),f("span",{className:`${Zr.description} ${Zr[z]}`,children:p?m:i}),"view_only"===t?f("div",{className:"font-roboto text-sm font-normal pt-3 text-gray-700",children:r}):"not_editable"===t?f("div",{className:"font-roboto text-sm font-normal rounded p-3 bg-gray-200 text-gray-700",children:r}):f("textarea",{...N,id:e,ref:M,className:`${Zr.textarea} ${Zr[O]} ${b} ${_?"pb-[32px]":""}`,wrap:"soft",value:r,disabled:h,maxLength:x}),_&&g("div",{className:"flex justify-end absolute bottom-3 right-3 text-[10px] font-roboto h-[15px] pointer-events-none",children:[R,"/",k]})]})},Qr=({dataTest:e,allowClear:t,error:n,errorText:o,...i})=>g(v,{children:[f(S,{...i,"data-test":e,error:n,value:i.value,IconComponent:e=>f(Xt,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:Vo(e.className,"select-custom-icon")}),endAdornment:t&&i.value?f("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:f(Un,{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&&g(Sa,{className:"flex items-center gap-1 m-0 pt-1 text-sm text-error-500",children:[f(ie,{width:20,height:20}),o??"Required"]})]}),Xr=e=>g(R,{...e,sx:{"&.MuiMenuItem-root":{fontSize:"14px !important",gap:"4px",px:1},"&.Mui-selected":{backgroundColor:"var(--colors-gama-50) !important"}},children:[f("span",{style:{width:"24px",justifyContent:"center",display:"flex"},children:e.selected&&f(Xt,{icon:"mdi:tick",width:22,height:22,style:{color:"var(--colors-gama-500)"}})}),f("span",{children:e.children})]}),el="_styledSelectAutocompleteWrapper_lfbvb_1",tl="_select-custom-icon_lfbvb_5";function nl({dataTest:e,autoHeight:t,getOptionLabel:n,wrapperClassName:o,...i}){const[r,l]=s("auto"),c=d(null);a((()=>{var e,n;const o=(null==(e=c.current)?void 0:e.getBoundingClientRect().height)??0,i=(null==(n=c.current)?void 0:n.getBoundingClientRect().top)??0,r=window.innerHeight-i-o-40;t&&l(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 f("div",{className:si(el,o),ref:c,children:f(E,{...i,getOptionLabel:n,ListboxProps:{...u,sx:{"& .MuiAutocomplete-option":{paddingLeft:"6px !important"}}},className:Vo("!text-sm",i.className),popupIcon:i.readOnly?null:i.popupIcon||f(Xt,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:Vo(tl)}),"data-test":e,PaperComponent:({children:t})=>f(O,{"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})=>g("li",{...e,children:[f("span",{style:{width:"24px",height:"22px",paddingRight:"4px",justifyContent:"center",alignContent:"center",display:"flex"},children:o&&f(Xt,{icon:"mdi:tick",width:20,height:20,style:{color:"var(--colors-gama-500)"}})}),f("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"}},slotProps:{clearIndicator:{disableRipple:!0,disableFocusRipple:!0}},clearIcon:f("span",{className:"rounded-full items-center justify-center min-w-6 min-h-6 cursor-pointer flex bg-delta-50 cursor-pointer",children:f(re,{width:20,height:20,className:"text-delta-700"})})})})}const ol=({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 g(v,{children:[f(z,{...i,"data-test":e,classes:{...i.classes},slotProps:{...i.slotProps,thumb:{className:Vo("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:Vo("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&&g(Sa,{className:Vo("flex items-center gap-1 m-0 pt-1 text-sm",t?"text-error-500":"text-delta-600"),children:[t&&f(ie,{width:20,height:20}),c]})]})},il=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(il.displayName="SwitchRootContext");let rl=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 ll={...Vi,checked:e=>e?{[rl.checked]:""}:{[rl.unchecked]:""}},al=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:m,...v}=e,{clearErrors:b}=wr(),{state:x,labelId:w,setControlId:y,setTouched:C,setDirty:k,validityData:N,setFilled:I,setFocused:M,validationMode:_,disabled:T,name:S}=fr(),R=T||p,E=S??s,{getValidationProps:O,getInputValidationProps:z,inputRef:P,commitValidation:D}=kr(),L=Mi(d),V=n.useRef(null),A=Si(V,a,P),F=n.useRef(null),q=rr(l);Oi((()=>{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]=yi({controlled:o,default:!!r,name:"Switch",state:"checked"});Mr({id:q,commitValidation:D,value:j,controlRef:F,name:E,getValue:()=>j}),Oi((()=>{V.current&&I(V.current.checked)}),[V,I]);const{getButtonProps:H,buttonRef:$}=pr({disabled:R,native:c}),U=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]),W=n.useMemo((()=>Bi({checked:j,disabled:R,id:E?void 0:`${q}-input`,name:E,required:h,style:zi,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:A,onChange(e){if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked,n=Sr("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=Xi("button",e,{state:K,ref:[t,F,$],props:[U,O,v,H],stateAttributesMapping:ll});return g(il.Provider,{value:K,children:[G,!j&&s&&f("input",{type:"hidden",name:s,value:"off"}),f("input",{...W})]})}));"production"!==process.env.NODE_ENV&&(al.displayName="SwitchRoot");const sl=n.forwardRef((function(e,t){const{render:o,className:i,...r}=e,{state:l}=fr(),a=function(){const e=n.useContext(il);if(void 0===e)throw new Error("Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.");return e}();return Xi("span",e,{state:{...l,...a},ref:t,stateAttributesMapping:ll,props:r})}));"production"!==process.env.NODE_ENV&&(sl.displayName="SwitchThumb");const cl={switch:"_switch_1myey_1",iconContent:"_iconContent_1myey_30",thumb:"_thumb_1myey_50",icon:"_icon_1myey_30"},dl=({className:e})=>f("svg",{viewBox:"0 0 24 24",className:e,fill:"none",children:f("rect",{x:"6",y:"10.5",width:"11",height:"3",fill:"currentColor",rx:"0.75"})}),ul=({width:e=11,height:t=11,className:n="",onClick:o,color:i})=>f(tn,{icon:"fa-solid:check",width:e,height:t,className:n,onClick:o,color:i}),hl=i((({checked:e,defaultChecked:t=!1,onChange:n,disabled:o,readOnly:i,required:r,value:l,id:a,dataTest:c,...d},u)=>{const[h,p]=s(t),m=void 0!==e,g=m?e:h,v=m?{checked:g}:{defaultChecked:t},b=si(cl.iconContent,g?cl.checked:cl.unchecked);return f(al,{...d,...v,ref:u,className:cl.switch,onCheckedChange:e=>{m||p(e),null==n||n({target:{checked:e,name:a,value:l}},e)},disabled:o,readOnly:i,required:r,id:a,name:a,"data-testid":c,children:f(sl,{className:cl.thumb,children:f("span",{className:cl.icon,children:f(g?ul:dl,{className:b})})})})})),pl="data-composite-item-active",ml=n.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});"production"!==process.env.NODE_ENV&&(ml.displayName="CompositeListContext");let fl=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function gl(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(ml),p=n.useRef(-1),[m,f]=n.useState(l??(r===fl.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 Oi((()=>{if(null!=l)return;const e=g.current;return e?(a(e,o),()=>{s(e)}):void 0}),[l,a,s,o]),Oi((()=>{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 vl(e){const{render:t,className:o,state:i=Qi,props:r=Ji,refs:l=Ji,metadata:a,stateAttributesMapping:s,tag:c="div",...d}=e,{compositeProps:u,compositeRef:h}=function(e={}){const{highlightItemOnHover:t,highlightedIndex:o,onHighlightedIndexChange:i}=hr(),{ref:r,index:l}=gl(e),a=o===l,s=n.useRef(null),c=Si(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 Xi(c,e,{state:i,ref:[...l,h],props:[u,...r,d],stateAttributesMapping:s})}let bl=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 xl={checked:e=>e?{[bl.checked]:""}:{[bl.unchecked]:""},...Br,...Vi},wl=n.createContext({disabled:void 0,readOnly:void 0,required:void 0,name:void 0,checkedValue:"",setCheckedValue:Zi,onValueChange:Zi,touched:!1,setTouched:Zi,registerControlRef:Zi});"production"!==process.env.NODE_ENV&&(wl.displayName="RadioGroupContext");const yl=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(yl.displayName="RadioRootContext");const Cl=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:m,checkedValue:v,setCheckedValue:b,touched:x,setTouched:w,fieldControlValidation:y,registerControlRef:C}=n.useContext(wl),{state:k,disabled:N}=fr(),I=N||h||r,M=p||l,_=m||a,{setDirty:T,validityData:S,setTouched:R,setFilled:E}=fr(),O=v===s,z=n.useRef(null),P=Si(c,z);Oi((()=>{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,[pl]: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}=pr({disabled:I,native:d}),A=rr(),F=n.useMemo((()=>({type:"radio",ref:P,id:A,tabIndex:-1,style:zi,"aria-hidden":!0,disabled:I,checked:O,required:_,readOnly:M,onChange(e){if(e.nativeEvent.defaultPrevented||I||M||void 0===s)return;const t=Sr("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!==Zi,H=[t,C,V],$=[D,(null==y?void 0:y.getValidationProps)??Qi,u,L],U=Xi("button",e,{enabled:!B,state:q,ref:H,props:$,stateAttributesMapping:xl});return g(yl.Provider,{value:j,children:[B?f(vl,{tag:"button",render:o,className:i,state:q,refs:H,props:$,stateAttributesMapping:xl}):U,f("input",{...F})]})}));"production"!==process.env.NODE_ENV&&(Cl.displayName="RadioRoot");const kl=n.forwardRef((function(e,t){const{render:o,className:i,keepMounted:r=!1,...l}=e,a=function(){const e=n.useContext(yl);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}=Ar(s),u=n.useMemo((()=>({...a,transitionStatus:c})),[a,c]),h=n.useRef(null),p=r||s,m=Xi("span",e,{enabled:p,ref:[t,h],state:u,props:l,stateAttributesMapping:xl});return Vr({open:s,ref:h,onComplete(){s||d(!1)}}),p?m:null}));"production"!==process.env.NODE_ENV&&(kl.displayName="RadioIndicator");const Nl="_RadioWrapper_9uzf3_1",Il="_size-small_9uzf3_14",Ml="_RadioRippleContainer_9uzf3_26",_l="_RadioRipple_9uzf3_26",Tl="_RadioHover_9uzf3_60",Sl="_Radio_9uzf3_1",Rl="_Indicator_9uzf3_119",El="_Error_9uzf3_140",Ol=i((({value:e,dataTest:t,className:n,size:o="medium",error:i,disabled:r,...l},a)=>{const s=si(Nl,Tl,"small"===o&&Il,n,i&&El),c=si(Sl,"small"===o&&Il),h=d(null),p=u((e=>{if(e.stopPropagation(),!h.current)return;const t=document.createElement("span");t.className=_l||"",t.addEventListener("animationend",(()=>t.remove()),{once:!0}),h.current.appendChild(t)}),[]);return g(Cl,{...l,ref:a,value:e,"data-test":t,className:s,disabled:r,onPointerDown:p,children:[f("span",{className:Ml,ref:h}),f("span",{className:c,children:f(kl,{className:Rl})})]})})),zl="ArrowLeft",Pl="ArrowRight",Dl="ArrowUp",Ll="ArrowDown";function Vl(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!(!lr()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof ar(e).ShadowRoot)}(o)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Al(e){e.preventDefault(),e.stopPropagation()}const Fl=Math.floor;function ql(e,t,n){return Math.floor(e/t)!==n}function jl(e,t){return t<0||t>=e.current.length}function Bl(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&&Ul(e,r,o));return r}function Hl(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 $l(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function Ul(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 Wl="ArrowUp",Kl="ArrowDown",Gl="ArrowLeft",Yl="ArrowRight",Zl="Home",Jl="End",Ql=new Set([Gl,Yl]),Xl=new Set([Gl,Yl,Zl,Jl]),ea=new Set([Wl,Kl]),ta=new Set([Wl,Kl,Zl,Jl]),na=new Set([...Ql,...ea]),oa=new Set([...na,Zl,Jl]),ia="Shift",ra=new Set([ia,"Control","Alt","Meta"]);function la(e){return!!(function(e){return sr(e)&&"INPUT"===e.tagName}(e)&&null!=e.selectionStart||sr(e)&&"TEXTAREA"===e.tagName)}function aa(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=sa(e,t,"left"),r=ca(e),l=ca(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=sa(e,t,"top"),o=ca(e),i=ca(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 sa(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 ca(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 da(e){const{children:t,elementsRef:o,labelsRef:i,onMapChange:r}=e,l=n.useRef(0),a=ki(ha).current,s=ki(ua).current,[c,d]=n.useState(Qi),u=n.useRef(c),h=Mi(((e,t)=>{s.set(e,t??null),u.current={},d(u.current)})),p=Mi((e=>{s.delete(e),u.current={},d(u.current)})),m=n.useMemo((()=>{const e=new Map;return Array.from(s.keys()).sort(pa).forEach(((t,n)=>{const o=s.get(t)??{};e.set(t,{...o,index:n})})),e}),[s,c]);Oi((()=>{if("function"!=typeof MutationObserver||0===m.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 m.forEach(((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})})),()=>{e.disconnect()}}),[m]),Oi((()=>{u.current===c&&(o.current.length!==m.size&&(o.current.length=m.size),i&&i.current.length!==m.size&&(i.current.length=m.size),l.current=m.size),null==r||r(m)}),[r,m,o,i,c]);const g=Mi((e=>(a.add(e),()=>{a.delete(e)})));Oi((()=>{a.forEach((e=>e(m)))}),[a,m]);const v=n.useMemo((()=>({register:h,unregister:p,subscribeMapChange:g,elementsRef:o,labelsRef:i,nextIndexRef:l})),[h,p,g,o,i,l]);return f(ml.Provider,{value:v,children:t})}function ua(){return new Map}function ha(){return new Set}function pa(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 ma(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}const fa=[];function ga(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=fa}=e,[f,g]=n.useState(0),v=o>1,b=n.useRef(null),x=Si(b,d),w=n.useRef([]),y=n.useRef(!1),C=s??f,k=Mi(((e,t=!1)=>{if((c??g)(e),t){const t=w.current[e];aa(b.current,t,a,l)}})),N=Mi((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(pl)))??null,o=n?t.indexOf(n):-1;-1!==o&&k(o),aa(b.current,n,a,l)})),I=n.useMemo((()=>({"aria-orientation":"both"===l?void 0:l,ref:x,onFocus(e){!b.current||!la(e.target)||e.target.setSelectionRange(0,e.target.value.length??0)},onKeyDown(e){const n=u?oa:na;if(!n.has(e.key)||function(e,t){for(const n of ra.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,m)||!b.current)return;const s="rtl"===a,c=s?Gl:Yl,d={horizontal:c,vertical:Kl,both:c}[l],f=s?Yl:Gl,g={horizontal:f,vertical:Wl,both:f}[l];if(la(e.target)&&!ma(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 Bl(e,{disabledIndices:t})}(w,p),N=function(e,t){return Bl(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&&!Ul(w,e,p))),d=a.reduce(((e,t,n)=>null==t||Ul(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(!Ul(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===Dl){const n=g("up");if(void 0!==n)d&&Al(t),u=n;else{if(d&&Al(t),-1===c)u=s;else if(u=Bl(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}jl(e,u)&&(u=c)}}if(t.key===Ll){const n=g("down");void 0!==n?(d&&Al(t),u=n):(d&&Al(t),-1===c?u=a:(u=Bl(e,{startingIndex:c,amount:r,disabledIndices:l}),o&&c+r>s&&(u=Bl(e,{startingIndex:c%r-r,amount:r,disabledIndices:l}))),jl(e,u)&&(u=c))}if("both"===n){const n=Fl(c/r);t.key===(i?zl:Pl)&&(d&&Al(t),c%r!=r-1?(u=Bl(e,{startingIndex:c,disabledIndices:l}),o&&ql(u,r,n)&&(u=Bl(e,{startingIndex:c-c%r-1,disabledIndices:l}))):o&&(u=Bl(e,{startingIndex:c-c%r-1,disabledIndices:l})),ql(u,r,n)&&(u=c)),t.key===(i?Pl:zl)&&(d&&Al(t),c%r!=0?(u=Bl(e,{startingIndex:c,decrement:!0,disabledIndices:l}),o&&ql(u,r,n)&&(u=Bl(e,{startingIndex:c+(r-c%r),decrement:!0,disabledIndices:l}))):o&&(u=Bl(e,{startingIndex:c+(r-c%r),decrement:!0,disabledIndices:l})),ql(u,r,n)&&(u=c));const a=Fl(s/r)===n;jl(e,u)&&(u=o&&a?t.key===(i?Pl:zl)?s:Bl(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:$l([...p||w.current.map(((e,t)=>Ul(w,t)?t:void 0)),void 0],a),minIndex:c,maxIndex:d,prevIndex:Hl(C>N?y:C,n,a,o,e.key===Kl?"bl":e.key===Yl?"tr":"tl"),rtl:s})]}const I={horizontal:[c],vertical:[Kl],both:[c,Kl]}[l],M={horizontal:[f],vertical:[Wl],both:[f,Wl]}[l],_=v?n:{horizontal:u?Xl:Ql,vertical:u?ta:ea,both:n}[l];u&&(e.key===Zl?x=y:e.key===Jl&&(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:Bl(w,{startingIndex:x,decrement:M.includes(e.key),disabledIndices:p})),x!==C&&!jl(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 va=n.createContext(void 0);function ba(e=!0){const t=n.useContext(va);if(void 0===t&&!e)throw new Error("Base UI: DirectionContext is missing.");return(null==t?void 0:t.direction)??"ltr"}function xa(e){const{render:t,className:o,refs:i=Ji,props:r=Ji,state:l=Qi,stateAttributesMapping:a,highlightedIndex:s,onHighlightedIndexChange:c,orientation:d,dense:u,itemSizes:h,loop:p,cols:m,enableHomeAndEndKeys:g,onMapChange:v,stopEventPropagation:b=!0,rootRef:x,disabledIndices:w,modifierKeys:y,highlightItemOnHover:C=!1,tag:k="div",...N}=e,I=ba(),{props:M,highlightedIndex:_,onHighlightedIndexChange:T,elementsRef:S,onMapChange:R}=ga({itemSizes:h,cols:m,loop:p,dense:u,orientation:d,highlightedIndex:s,onHighlightedIndexChange:c,rootRef:x,stopEventPropagation:b,enableHomeAndEndKeys:g,direction:I,disabledIndices:w,modifierKeys:y}),E=Mi((e=>{null==v||v(e),R(e)})),O=Xi(k,e,{state:l,ref:i,props:[M,...r,N],stateAttributesMapping:a}),z=n.useMemo((()=>({highlightedIndex:_,onHighlightedIndexChange:T,highlightItemOnHover:C})),[_,T,C]);return f(ur.Provider,{value:z,children:f(da,{elementsRef:S,onMapChange:E,children:O})})}"production"!==process.env.NODE_ENV&&(va.displayName="DirectionContext");const wa=[ia],ya=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,...m}=e,{labelId:v,setTouched:b,setFocused:x,validationMode:w,name:y,disabled:C,state:k}=fr(),N=kr(),{clearErrors:I}=wr(),M=C||r,_=y??u,T=rr(p),[S,R]=yi({controlled:c,default:d,name:"RadioGroup",state:"value"}),E=Mi(s),O=Mi(((e,t)=>{E(e,t),!t.isCanceled&&R(e)})),z=n.useRef(null),P=Mi((e=>{null==z.current&&null!=e&&(z.current=e)}));Mr({id:T,commitValidation:N.commitValidation,value:S,controlRef:z,name:_,getValue:()=>S??null});const D=n.useRef(S);Oi((()=>{D.current!==S&&(I(_),"onChange"===w?N.commitValidation(S):N.commitValidation(S,!0))}),[_,I,w,S,N]),Oi((()=>{D.current=S}),[S]);const[L,V]=n.useState(!1),A=Mi((e=>{Vl(e.currentTarget,e.relatedTarget)||(b(!0),x(!1),"onBlur"===w&&N.commitValidation(S))})),F=Mi((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=Bi({value:q,ref:Si(N.inputRef,h),id:T,name:q?_:void 0,disabled:M,readOnly:l,required:a,"aria-hidden":!0,tabIndex:-1,style:zi,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 g(wl.Provider,{value:H,children:[f(xa,{render:o,className:i,state:B,props:[$,N.getValidationProps,m],refs:[t],stateAttributesMapping:Vi,enableHomeAndEndKeys:!1,modifierKeys:wa}),f("input",{...j})]})}));"production"!==process.env.NODE_ENV&&(ya.displayName="RadioGroup");const Ca=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 g(ya,{...d,ref:u,value:e,defaultValue:t,"data-test":r,onValueChange:n,children:[c,((l??!1)||(s??!1))&&g(Sa,{className:Vo("flex items-center gap-1 m-0 pt-1 text-sm",l?"text-error-500":"text-delta-600"),children:[l&&f(ie,{width:20,height:20}),h]})]})})),ka=({children:e,onClick:t,className:n,dataTest:o,style:i})=>f("div",{className:Vo("_styled-label_1fp95_1",n),style:i,onClick:t,"data-test":o,children:e}),Na=i(((e,t)=>{const{options:n,dataTest:o,value:i,readOnly:r,multiple:l,title:a,disabled:u,onChange:h,required:p,error:m,helperText:v,valueKey:b="value",labelKey:x="label",renderLabel:w,getOptionTooltip:y,loading:C,size:k,locale:N="en"}=e,{containerRef:I,wrapDisabled:M}=(({dependencyList:e=[]})=>{const t=d(null),[n,o]=s(!1);return c((()=>{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]}),_=e=>{var t;return"object"==typeof e?(null==(t=null==e?void 0:e[x])?void 0:t.toString())||"":(null==e?void 0:e.toString())||""},T=e=>"object"==typeof e?null==e?void 0:e[b]:e,S=(e,t)=>T(e)===T(t),R=l?Array.isArray(i)&&i.length>0:null!=i,E=r?n.filter((e=>!!(l?null!=i&&i.find((t=>S(t,e))):S(i,e)))):n,O=E.findIndex((e=>!("object"==typeof e&&(null!=e&&e.disabled)||r)));return g("div",{"data-test":`${o}-dynamic-radio-group`,className:"flex flex-col gap-y-1 relative",children:[a&&f("span",{className:"text-delta-800 text-base font-semibold",children:a}),f("div",{ref:I,className:"absolute top-0 left-0 opacity-0 pointer-events-none flex flex-wrap gap-2 text-sm",style:{width:"100%"},children:E.map((e=>{const t=T(e);return f(zo,{className:"w-fit",readOnly:r,type:l?"checkbox":"radio",dataTest:`ic-${String(t)}-hidden`,label:w?w(e):_(e)},String(t))}))}),f("div",{className:si("flex gap-2 flex-wrap",M&&"flex-col gap-1"),children:C?g("div",{className:"flex flex-wrap gap-2",children:[f(P,{className:"w-[60px] h-[32px]"}),f(P,{className:"w-[60px] h-[32px]"}),f(P,{className:"w-[60px] h-[32px]"})]}):null!=E&&E.length?E.map(((e,n)=>{const o=T(e),a=!!(l?null!=i&&i.find((t=>S(t,e))):S(i,e)),s=y?y(e):null;if(r&&!a)return null;const c="object"==typeof e&&!(null==e||!e.disabled),d=c||r||n!==O?void 0:t;return f(Po,{title:s,arrow:!0,children:f("span",{className:si(c&&"cursor-not-allowed"),children:r&&!M?f(Ro,{ref:d,disabled:u||c,classes:{root:"min-h-[32px] h-full"},className:"w-fit text-sm",dataTest:`ic-${String(o)}`,label:w?w(e):_(e)}):f(zo,{ref:d,disabled:u||c,classes:M?{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:l?"checkbox":"radio",dataTest:`ic-${String(o)}`,checked:a,size:k,onClick:()=>(e=>{if(!l){const t=S(e,i)?null:e;if(null===t)return;return void h(t)}const t=i||[],n=t.find((t=>S(t,e)))?t.filter((t=>!S(t,e))):[...t,e];h(n)})(e),label:w?w(e):_(e)})})},String(o))})):f("span",{children:"-"})}),!p&&R&&!r&&f(Uo,{dataTest:"clear-selection-btn",variant:"text",startIcon:f(re,"medium"===k?{height:24,width:24,className:"size-6"}:{height:20,width:20,className:"size-5"}),className:"w-fit",size:k,onClick:()=>h(l?[]:null),children:"en"===N?"Clear selection":"Fjern valget"}),g("div",{className:si("text-sm/5 text-delta-600 flex items-center gap-1",m&&"text-error-500"),children:[m&&f(oo,{width:20,height:20,className:"min-w-5"}),f("span",{className:"line-clamp-1",children:v||m&&!v&&"Required"})]})]})})),Ia=i(((e,t)=>{const[n,o]=s(!1),{options:i,dataTest:l,value:a,readOnly:c,multiple:d,required:h,onChange:p,size:m,title:b,noOptionsText:x,placeholder:w,disabled:y,helperText:C,disableHelperText:k,error:N,valueKey:I="value",labelKey:M="label",renderLabel:_,getOptionTooltip:T,startAdornment:S,autocompleteProps:R,loading:E,maxTags:O}=e,z=i.length<11,P=e=>{var t;return"object"==typeof e?(null==(t=null==e?void 0:e[M])?void 0:t.toString())||"":(null==e?void 0:e.toString())||""},D=u((e=>"object"==typeof e?null==e?void 0:e[I]:e),[I]),L=u(((e,t)=>D(e)===D(t)),[D]),V=u((e=>{var t;o(!0),null==(t=null==R?void 0:R.onOpen)||t.call(R,e)}),[R]),A=u(((e,t)=>{var n;o(!1),null==(n=null==R?void 0:R.onClose)||n.call(R,e,t)}),[R]);return d&&c?f(Na,{...e}):g("div",{className:"flex flex-col gap-y-1 w-full",children:[b&&f("span",{className:"text-delta-800 text-base font-semibold",children:b}),f(nl,{open:n,onOpen:V,onClose:A,disableCloseOnSelect:d,dataTest:l,disabled:y||E,noOptionsText:x,loading:E,readOnly:c,value:a,size:m,disableClearable:h,options:i,fullWidth:!0,classes:{listbox:"h-full max-h-[300px]"},getOptionLabel:P||(null==R?void 0:R.getOptionLabel),onChange:(e,t)=>{p(t)},filterSelectedOptions:!1,isOptionEqualToValue:(null==R?void 0:R.isOptionEqualToValue)??L,autoHeight:!0,multiple:d,renderTags:e=>{const t=O||i.length,n=e.slice(0,t),o=e.length-t;return g("div",{className:"flex flex-wrap gap-2",children:[n.map((e=>{var t;return f(Ro,{dataTest:`${D(e)}-chip`,readOnly:c,variant:"outlined",label:_?_(e):P(e)||"",classes:{root:"h-fit w-fit min-h-[32px]",label:"block whitespace-normal"},disabled:y||E,onDelete:()=>{if(!d)return void p(null);const t=a.filter((t=>!L(t,e)));p(t)}},null==(t=D(e))?void 0:t.toString())})),o>0&&f(Ro,{dataTest:"remaining-count-tag-chip",label:`+${o}`,variant:"outlined",onClick:V})]})},popupIcon:E?f(le,{height:24,width:24}):d?f(ae,{height:24,width:24}):void 0,renderOption:(e,t)=>{const n="object"==typeof t&&!(null==t||!t.disabled),o=T?T(t):null;if(d){const i=!(null==a||!a.find((e=>L(e,t))));return r("li",{...e,key:e.id,onClick:n?void 0:e.onClick,className:si("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},f(Po,{arrow:!0,title:o,children:g(v,{children:[f(Kr,{disabled:n,dataTest:`${D(t)}-checkbox`,size:"small",className:"min-w-[36px]",checked:i}),_?_(t):f("span",{className:"text-sm text-delta-700 h-fit py-[10px]",children:P(t)})]})}))}const i=L(a,t);return r("li",{...e,key:e.id,className:si("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},f(Po,{arrow:!0,title:o,children:g(v,{children:[f("span",{className:"py-[10px] min-w-5 w-5 h-full",children:i&&f(se,{className:"size-5 text-gama-500 min-h-5 min-w-5",height:20,width:20})}),_?_(t):f("span",{className:"text-sm text-delta-700 py-[10px]",children:P(t)})]})}))},renderInput:e=>f(Gr,{dataTest:`${l}-input-field`,...e,inputRef:t,error:N,helperText:k?"":C||" ",variant:"outlined",label:"",placeholder:w,readOnly:c,onKeyDown:z?e=>e.preventDefault():void 0,autoComplete:z?"off":"on",InputProps:{...e.InputProps,startAdornment:S||e.InputProps.startAdornment,style:z?{caretColor:"transparent"}:{}},inputProps:{...e.inputProps,style:z?{caretColor:"transparent"}:{}}}),...R})]})})),Ma=i(((e,t)=>{const{options:n}=e;return n.length>0&&n.length<=5?f(Na,{...e,ref:t}):f(Ia,{...e,ref:t})})),_a=e=>f(D,{...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"}}}),Ta=({sx:e,...t})=>f(L,{...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}}),Sa=e=>f(V,{...e}),Ra=e=>f(A,{...e}),Ea=e=>f(F,{...e}),Oa=e=>f(q,{...e}),za=e=>{var t,n;return f(j,{...e,classes:{paper:Vo("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:Vo("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},Pa=e=>{var t;return f(R,{...e,classes:{selected:"bg-gama-50",root:Vo("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}})},Da=e=>f(B,{...e}),La="_styled-link_um6g7_1",Va="_styled-link-disabled_um6g7_16",Aa="_styled-link-xs_um6g7_32",Fa="_styled-link-small_um6g7_37",qa="_styled-link-large_um6g7_42",ja=({href:e,disabled:t,size:n="large",dataTest:o,reflink:i,className:r,content:l,contentNode:a,...s})=>{let c=qa;switch(n){case"small":c=Fa;break;case"xs":c=Aa;break;default:c=qa}return t?g("span",{className:Vo(La,Va,c,r),children:[l,a]}):g("a",{...s,"data-test":o,ref:i,href:e,className:Vo(La,c,r),children:[l,a]})},Ba=e=>f(H,{...e,sx:{letterSpacing:"normal","&.MuiTab-textColorPrimary.Mui-selected":{color:"var(--colors-gama-500)"},"&.MuiTab-textColorPrimary":{color:"var(--colors-gray-600)"},"&.MuiTab-textColorPrimary.Mui-disabled":{color:"var(--colors-gray-300)"}}}),Ha=({className:e,...t})=>f($,{...t,className:si("rounded-t-lg border-b border-delta-200 bg-white px-4",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 $a;function Ua(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");$a.has(t)||($a.add(t),console.warn(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&($a=new Set);const Wa=n.createContext(void 0);function Ka(){const e=n.useContext(Wa);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&&(Wa.displayName="AccordionRootContext");const Ga={value:()=>null},Ya=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,...m}=e,g=ba();"production"!==process.env.NODE_ENV&&Oi((()=>{l&&!1===a&&Ua("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=Mi(c),x=n.useRef([]),[w,y]=yi({controlled:h,default:v,name:"Accordion",state:"value"}),C=n.useCallback(((e,t)=>{const n=Sr("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=Xi("div",e,{state:k,ref:t,props:[{dir:g,role:"region"},m],stateAttributesMapping:Ga});return f(Wa.Provider,{value:N,children:f(da,{elementsRef:x,children:I})})}));"production"!==process.env.NODE_ENV&&(Ya.displayName="AccordionRoot");const Za=n.createContext(void 0);function Ja(){const e=n.useContext(Za);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&&(Za.displayName="CollapsibleRootContext");const Qa=n.createContext(void 0);function Xa(){const e=n.useContext(Qa);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&&(Qa.displayName="AccordionItemContext");let es=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Fr.startingStyle]="startingStyle",e[e.endingStyle=Fr.endingStyle]="endingStyle",e}({}),ts=function(e){return e.panelOpen="data-panel-open",e}({});const ns={[es.open]:""},os={[es.closed]:""},is={open:e=>e?{[ts.panelOpen]:""}:null},rs={open:e=>e?ns:os};let ls=function(e){return e.index="data-index",e.disabled="data-disabled",e.open="data-open",e}({});const as={...rs,index:e=>Number.isInteger(e)?{[ls.index]:String(e)}:null,...Br,value:()=>null},ss=n.forwardRef((function(e,t){const{className:o,disabled:i=!1,onOpenChange:r,render:l,value:a,...s}=e,{ref:c,index:d}=gl(),u=Si(t,c),{disabled:h,handleValueChange:p,state:m,value:g}=Ka(),v=rr(),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=Mi(((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]=yi({controlled:t,default:o,name:"Collapsible",state:"open"}),{mounted:c,setMounted:d,transitionStatus:u}=Ar(a,!0,!0),[h,p]=n.useState(a),[{height:m,width:f},g]=n.useState({height:void 0,width:void 0}),v=rr(),[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=Lr(T,!1),R=Mi((e=>{const t=!a,n=Sr("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 Oi((()=>{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((()=>({...m,index:d,disabled:x,open:w})),[x,d,w,m]),[M,_]=n.useState(rr()),T=n.useMemo((()=>({open:w,state:I,setTriggerId:_,triggerId:M})),[w,I,_,M]),S=Xi("div",e,{state:I,ref:u,props:s,stateAttributesMapping:as});return f(Za.Provider,{value:N,children:f(Qa.Provider,{value:T,children:S})})}));"production"!==process.env.NODE_ENV&&(ss.displayName="AccordionItem");const cs=n.forwardRef((function(e,t){const{render:n,className:o,...i}=e,{state:r}=Xa();return Xi("h3",e,{state:r,ref:t,props:i,stateAttributesMapping:as})}));"production"!==process.env.NODE_ENV&&(cs.displayName="AccordionHeader");const ds=new Set([Kl,Wl,Yl,Gl,Zl,Jl]);const us=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}=Ja(),p=o??h,{getButtonProps:m,buttonRef:f}=pr({disabled:p,focusableWhenDisabled:!0,native:a}),{accordionItemRefs:g,direction:v,loop:b,orientation:x}=Ka(),w="rtl"===v,y="horizontal"===x,{state:C,setTriggerId:k,triggerId:N}=Xa();Oi((()=>(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(!ds.has(e.key))return;Al(e);const t=function(e){const{current:t}=e,n=[];for(let e=0;e<t.length;e+=1){const o=t[e];if(!ma(o)){const e=null==o?void 0:o.querySelector('[type="button"]');ma(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 Kl:y||r();break;case Wl:y||l();break;case Yl:y&&(w?l():r());break;case Gl: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 Xi("button",e,{state:C,ref:[t,f],props:[I,s,m],stateAttributesMapping:is})}));"production"!==process.env.NODE_ENV&&(us.displayName="AccordionTrigger");let hs=function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e}({});let ps=function(e){return e.accordionPanelHeight="--accordion-panel-height",e.accordionPanelWidth="--accordion-panel-width",e}({});const ms=n.forwardRef((function(e,t){const{className:o,hiddenUntilFound:i,keepMounted:r,id:l,render:a,...s}=e,{hiddenUntilFound:c,keepMounted:d}=Ka(),{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}=Ja(),E=i??c,O=r??d;"production"!==process.env.NODE_ENV&&Oi((()=>{!1===r&&E&&Ua("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]),Oi((()=>{if(l)return S(l),()=>{S(void 0)}}),[l,S]),Oi((()=>{y(E)}),[y,E]),Oi((()=>{C(O)}),[C,O]),Vr({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=Mi((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&&Ua("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(hs.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=Dr.request((()=>{N.current=!1,n=Dr.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))})),()=>{Dr.cancel(t),Dr.cancel(n)}})),_=Si(i,h,M);return Oi((()=>{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=Dr.request((()=>{o=Dr.request((()=>{p((()=>{m({height:0,width:0}),e.style.removeProperty("content-visibility"),e.style.removeProperty("display"),f(!1),t.current=null}),n)}))}));return()=>{Dr.cancel(i),Dr.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(es.startingStyle,""),m({height:e.scrollHeight,width:e.scrollWidth}),n=Dr.request((()=>{e.style.removeProperty("display"),Object.entries(t).forEach((([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)}))}))}return()=>{Dr.cancel(n)}}),[t,o,l,a,c,u,h,p,m,f,b]),Oi((()=>{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]),vr((()=>{const e=Dr.request((()=>{k.current=!1}));return()=>Dr.cancel(e)})),Oi((()=>{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=Dr.request((()=>{y.current=!1,n=Dr.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))}))),()=>{Dr.cancel(t),Dr.cancel(n)}}),[l,u,h,m]),Oi((()=>{const e=h.current;e&&l&&I&&(e.setAttribute("hidden","until-found"),"css-transition"===o.current&&e.setAttribute(es.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,Sr("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}=Xa(),L=Xi("div",e,{state:n.useMemo((()=>({...P,transitionStatus:R})),[P,R]),ref:[t,b],props:[z,{"aria-labelledby":D,role:"region",style:{[ps.accordionPanelHeight]:void 0===p?"auto":`${p}px`,[ps.accordionPanelWidth]:void 0===T?"auto":`${T}px`}},s],stateAttributesMapping:as});return O||E||!O&&m?L:null}));"production"!==process.env.NODE_ENV&&(ms.displayName="AccordionPanel");const fs="_AccordionRoot_wzlmo_1",gs="_Trigger_wzlmo_9",vs="_Header_wzlmo_18",bs="_TriggerIcon_wzlmo_40",xs="_TriggerIconRight_wzlmo_48",ws="_Panel_wzlmo_56",ys="_Content_wzlmo_67",Cs=({className:e,children:t,expanded:n,defaultExpanded:o,onChange:i,...r})=>{const l="item",a={...r,type:"single",className:si(fs,e),onValueChange:e=>{null==i||i(e.includes(l))},...void 0!==n?{value:n?[l]:[]}:{defaultValue:o?[l]:[]}};return f(Ya,{...a,children:f(ss,{value:l,children:t})})},ks=({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 f(cs,{className:Vo(vs,o),children:f(us,{...l,className:Vo(gs,n),style:s,children:g(v,t?{children:[r,f(Hn,{className:Vo(bs,xs),"data-state-icon":!0})]}:{children:[f(Hn,{className:bs,"data-state-icon":!0}),r]})})})},Ns=({children:e,...t})=>f(ms,{...t,className:ws,children:f("div",{className:ys,children:e})}),Is=e=>f(U,{...e}),Ms=({filterIsActive:e,label:t,hideLabel:n=!1,size:o="large",variant:i="outlined",...r})=>f(v,{children:g("div",{className:"w-fit h-fit relative",children:[f(Uo,{...r,type:"button",startIcon:f(eo,{width:"large"===o?24:20,height:"large"===o?24:20}),variant:i,size:o,children:!n&&(t||"Filter")}),e&&f("div",{className:Vo("h-2 w-2 bg-gama-400 rounded-full absolute","large"===o?"top-2 right-2":"top-1 right-1")})]})}),_s=()=>{const[e,t]=s(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:o=>{e?n():(e=>{t((()=>e.currentTarget))})(o)}}},Ts=e=>o.isValidElement(e)||"string"==typeof e||"number"==typeof e||null===e||Array.isArray(e),Ss=({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}=_s(),m=null==s?void 0:s({isOpen:!!p,onClose:h});return g(v,{children:[g("div",{className:"w-fit h-fit relative",children:[s&&o.isValidElement(m)?o.cloneElement(m,{onClick:u}):f(Uo,{type:"button",disabled:i,variant:l,startIcon:f(eo,{width:"large"===r?24:20,height:"large"===r?24:20}),onClick:u,size:r,dataTest:n,children:!d&&(c||"Filter")}),e&&f("div",{className:Vo("h-2 w-2 bg-gama-400 rounded-full absolute","large"===r?"top-2 right-2":"top-1 right-1")})]}),f(Is,{...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:Ts(t)?t:t({isOpen:!!p,onClose:h})})]})},Rs=({className:e,contentToCopy:t,locale:n,messageInfo:o,text:i})=>{const r="en"===n?"Copy":"Kopier",l=oi();return f(Po,{title:r,children:f("div",{children:f(Uo,{dataTest:"copy-button",className:e,size:"small",variant:"text",startIcon:f(ce,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{o("no"===n?"Kopiert til utklippstavle":"Copied to clipboard")}))},children:!l&&(i||r)})})})},Es="_copy-wrapper_1gjzc_1",Os="_hidden-copy_1gjzc_1",zs=({className:e,contentToCopy:t,locale:n,messageInfo:o,children:i})=>g("div",{className:si("flex items-center hover:text-gama-500",Es,e),children:[i,f(Po,{title:"no"===n?"Kopier":"Copy",className:Os,children:f("div",{children:f(Uo,{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:f(ce,{width:20,height:20})})})})]}),Ps="_styled-widget-title_1mja5_1",Ds=function(e){return f("div",{className:Ps,children:e.children})},Ls="_styled-widget-header_yk04z_1",Vs=({actions:e,title:t,containerClassname:n,actionsClassname:o})=>g("div",{className:si(Ls,n),children:[f(Ds,{children:t}),f("div",{className:o,children:e})]}),As="_asma-ui-core-styled-widget_gzht1_1",Fs="_empty-state_gzht1_13",qs="_widget-header-left_gzht1_22",js="_widget-header-right_gzht1_28",Bs="_widget-content_gzht1_34",Hs="_widget-footer_gzht1_44",$s="_widget-link_gzht1_49";function Us(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})})}function Ws(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})})}const Ks=({children:e,title:t,icon:n,link:o,viewMore:i,persistKey:r,isLoading:l,isEmpty:c,emptyText:d,headerRight:u,headerRightClassName:h})=>{const[p,m]=s(!1);a((()=>{if(r){const e=localStorage.getItem(r);m("true"===e)}}),[r]),a((()=>{r&&localStorage.setItem(r,String(p))}),[p,r]);const b=!!o&&!o.hide,x=!(!i||null!=i&&i.hide);return g("div",{className:`${As} ${c?Fs:""}`,children:[g("div",{className:qs,children:[n,f(Ds,{children:t}),f("div",{className:`${js} ${h??""}`,children:u})]}),f("div",{className:Bs,children:g(v,{children:[e,f(wi,{isLoading:l}),f(fi,{isEmpty:c,emptyText:d})]})}),x&&g("div",{className:Hs,children:[!i||null!=i&&i.hide?f("div",{}):f(Uo,{disabled:i.disabled,dataTest:"view-more",variant:"text",endIcon:f(p?Us:Ws,{width:20,height:20}),onClick:()=>{var e;m(!p),null==(e=null==i?void 0:i.onClick)||e.call(i)},children:p?i.viewLessText:i.viewMoreText}),b?f(ja,{dataTest:"go-to-button",className:$s,size:"small",href:o.href,onClick:o.onClick,content:o.content}):f("div",{})]})]})},Gs="_styled-module-title_174mo_1",Ys=function(e){return f("h1",{"data-test":e.dataTest,className:Gs,children:e.children})},Zs="_dialog_erjok_1",Js="_hidden_erjok_9";function Qs(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:f("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 Xs(e){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:f("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 ec="object"==typeof global&&global&&global.Object===Object&&global;var tc="object"==typeof self&&self&&self.Object===Object&&self;const nc=(ec||tc||Function("return this")()).Symbol;var oc=Object.prototype,ic=oc.hasOwnProperty,rc=oc.toString,lc=nc?nc.toStringTag:void 0;var ac=Object.prototype.toString;var sc="[object Null]",cc="[object Undefined]",dc=nc?nc.toStringTag:void 0;function uc(e){return null==e?void 0===e?cc:sc:dc&&dc in Object(e)?function(e){var t=ic.call(e,lc),n=e[lc];try{e[lc]=void 0;var o=!0}catch{}var i=rc.call(e);return o&&(t?e[lc]=n:delete e[lc]),i}(e):function(e){return ac.call(e)}(e)}const hc=Array.isArray;function pc(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=uc(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const mc=({onCloseText:e="",onMinimizeText:t="",onExpandText:n="",onFullScreenText:o="",showCloseIcon:i=!0,showMinimizeIcon:r=!0,showExpandIcon:l=!0,showFullScreenIcon:a=!0,title:c,label:d,children:h,open:p,onClose:m,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]=s(!1),[V,A]=s(!1),{open:F,anchorEl:q,handleOpen:j,handleClose:B}=(()=>{const[e,t]=s(null),n=!!e,o=u((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:u((()=>{t(null)}),[]),handleOpen:o,anchorEl:e}})();if(!p)return null;const H=void 0!==z?z:V,$=x||w,U=$||y,W=()=>{L(!D)};return g(v,{children:[H&&!D&&f("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),f("div",{style:{zIndex:51},className:si(Zs,!D&&Js),children:g("div",{className:Vo("flex items-center justify-between",!D&&"hidden"),"data-test":N,children:[f("div",{className:"truncate text-lg font-semibold text-delta-800",children:c}),g("div",{className:"flex items-center gap-x-1",children:[l&&f(Po,{title:"en"===E?"Expand":"Utvid",children:f("div",{children:f(Uo,{dataTest:"minimize-button",variant:"text",size:"small",onClick:W,endIcon:l&&f(wo,{height:20,width:20,color:"text-gama-500"}),children:n})})}),i&&f(Po,{title:"en"===E?"Close":"Lukk",children:f("div",{children:f(Uo,{dataTest:"close-button",variant:"textGray",size:"small",onClick:m,endIcon:i&&f(Un,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]})}),g("div",{className:si("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:[g("div",{className:"flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[g("div",{className:"flex items-center justify-between",children:[f("div",d?{className:"text-sm text-delta-700",children:d}:{className:"text-2xl font-semibold text-delta-800",children:c}),g("div",{className:"flex items-center gap-x-1",children:[I,r&&f(Po,{title:"en"===E?"Minimize":"Minimer",children:f("div",{children:f(Uo,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:W,endIcon:r&&f(xo,{height:20,width:20,color:"text-delta-700"}),children:t})})}),O&&a&&f(Po,{title:H?"en"===E?"Exit full screen":"Avslutt fullskjerm":"en"===E?"Full screen":"Fullskjerm",children:f("div",{children:f(Uo,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==z&&P?P():A(!V)},endIcon:f(H?Xs:Qs,{width:20,height:20,color:"text-delta-700"}),children:o})})}),i&&f(Po,{title:"en"===E?"Close":"Lukk",children:f("div",{children:f(Uo,{dataTest:"close-button",variant:"textGray",size:"small",onClick:m,endIcon:f(Un,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]}),d&&f("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:c})]}),g("div",{className:Vo("flex flex-col",H&&!D&&"h-[87dvh]"),children:[f("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof h?h({fullScreen:H}):h}),(hc(M)&&null!=M&&M.length||pc(M))&&_||R?g("div",{className:si("flex items-center justify-between p-4 border-0 border-t-[1px] border-solid border-delta-200 bg-white",S),children:[hc(M)&&null!=M&&M.length&&_?g(v,{children:[f(Uo,{dataTest:"extra-actions-button",variant:"textGray",startIcon:f(Dn,{width:24,height:24}),onClick:j,children:_}),f(za,{open:F,anchorEl:q,onClose:B,children:M.map((e=>f(Pa,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):_&&pc(M)&&f(Uo,{dataTest:"extra-action-button",variant:"text",onClick:M,children:_})," ",R,U?g("div",{className:si("flex justify-end gap-x-4",T),children:[y&&k&&f(Uo,{dataTest:"cancel-button",variant:"outlined",onClick:k,children:y}),$&&C&&f(Uo,{dataTest:"save-button",startIcon:w&&f(le,{width:24,height:24}),onClick:C,children:x})]}):null]}):f(v,{children:U?g("div",{className:si("flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",T),children:[y&&k&&f(Uo,{dataTest:"cancel-button",variant:"outlined",onClick:k,children:y}),$&&C&&f(Uo,{dataTest:"save-button",startIcon:w&&f(le,{width:24,height:24}),onClick:C,children:x})]}):null})]})]})]})},fc=({showCloseIcon:e,tooltipTitle:t,onClick:n})=>e?f(Po,{title:t,placement:"top",children:f("div",{children:f(Uo,{dataTest:"close-button",variant:"textGray",size:"small",onClick:n,endIcon:f(Un,{height:20,width:20,color:"text-delta-700"})})})}):null,gc=({visibility:e,tooltipTitle:t,onClick:n,type:o})=>{if(!e)return null;const i="minimize"===o;return"expand"===o?f("div",{children:f(Po,{title:t,placement:"top",children:f("div",{children:f(Uo,{dataTest:"toggle-minimize-btn",variant:"text",size:"small",onClick:n,endIcon:f(wo,{height:20,width:20,color:"text-gama-500"})})})})}):i?f("div",{children:f(Po,{title:t,placement:"top",children:f("div",{children:f(Uo,{dataTest:"toggle-minimize-btn",variant:"textGray",size:"small",onClick:n,endIcon:f(xo,{height:20,width:20,color:"text-delta-700"})})})})}):null},vc=({fullScreen:e,showFullScreenIcon:t,tooltipTitle:n,onClick:o})=>t?f(Po,{title:n,children:f("div",{children:f(Uo,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:o,endIcon:f(e?Xs:Qs,{width:20,height:20,color:"text-delta-700"})})})}):null,bc="_minimized-dialog_16tvw_5",xc="_dialog_16tvw_1",wc="_hidden_16tvw_27",yc={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 Cc=e=>{const{showCloseIcon:t=!0,showMinimizeIcon:n=!0,showExpandIcon:o=!0,enableFullscreen:i=!0,title:r,label:l,children:a,open:c,onClose:u,classNameOverrides:p={maximized:"",minimized:"",fullscreen:""},dataTest:m,actionNode:b,locale:x="en",style:w}=e,y=oi(),C=function(e="en"){return h((()=>yc[e]??yc.en),[e])}(x),k=d(null),{minimized:N,setMinimized:I,fullScreen:M,setFullScreen:_}=(({fullScreenState:e,handleFullScreenState:t,minimizedState:n,handleMinimizedState:o})=>{const[i,r]=s(!1),[l,a]=s(!1);return{fullScreen:void 0!==e?e:l,setFullScreen:e=>t?t():a(e),minimized:void 0!==n?n:i,setMinimized:e=>o?o(e):r(e)}})(e);return c?g(v,{children:[f("div",{style:{zIndex:51,...w},className:si(bc,!N&&wc,p.minimized),children:g("div",{className:Vo("flex items-center justify-between",!N&&"hidden"),"data-test":m,children:[f("div",{className:"truncate max-w-[303px] text-lg font-semibold text-delta-800 pr-1",children:f(Po,{title:r,placement:"top",children:f("div",{className:"truncate",children:r})})}),g("div",{className:"flex items-center gap-x-1",children:[f(gc,{type:"expand",visibility:o,onClick:()=>I(!N),tooltipTitle:C.expand}),f(fc,{showCloseIcon:t,onClick:u,tooltipTitle:C.close})]})]})}),M&&!N&&f("div",{className:"z-[52] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70",onClick:()=>_(!1)}),g("div",{style:{zIndex:51,...w},ref:k,className:si(xc,N&&wc,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:[g("div",{className:si("flex flex-col px-4 border-b-[1px] border-delta-200",y?"py-3":"py-4"),children:[g("div",{className:"flex items-center justify-between",children:[f("div",l?{className:"text-sm text-delta-700",children:l}:{className:si("font-semibold text-delta-800",y?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:r}),g("div",{className:"flex items-center gap-x-1",children:[b,f(gc,{visibility:n&&!y,type:"minimize",onClick:()=>I(!N),tooltipTitle:C.minimize}),f(vc,{showFullScreenIcon:i&&!y,fullScreen:M,onClick:()=>_(!M),tooltipTitle:M?C.exitFullscreen:C.fullscreen}),f(fc,{showCloseIcon:t,onClick:u,tooltipTitle:C.close})]})]}),l&&f("div",{className:si("font-semibold text-delta-800",y?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:r})]}),f("div",{className:si(N&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:a})]})]}):null},kc=e=>(window.addEventListener("resize",e),()=>window.removeEventListener("resize",e));function Nc({config:e,MAX_DIALOG_WIDTH:t=600}){const n=p(void 0);return{DialogStackProvider:({children:o})=>{const[i,r]=s([]),a=l(kc,(()=>window.innerWidth),(()=>0)),c=u((e=>{const n=[...e].sort(((e,t)=>e.order-t.order)),o=n.length||1,i=Math.min(t,(a-16*(o+1))/o);return n.map(((e,t)=>({...e,width:i,position:{right:16+t*(i+16)}})))}),[a]),d=u(((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=u((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=u((e=>i.find((t=>t.id===e))),[i]);return f(n.Provider,{value:{dialogs:i,openDialog:d,closeDialog:h,getDialogState:p},children:o})},useDialogStack:function(){const e=m(n);if(!e)throw new Error("useDialogStack must be used within DialogStackProvider");return e}}}export{qn as ArchiveIcon,Cn as AssignmentIcon,kn as AssignmentOutlineIcon,W as Avatar,Co as BadgeIcon,on as BellIcon,nn as BellOutlineIcon,ro as CalendarBlankOutlineIcon,xn as CalendarIcon,yn as CalendarRangeIcon,Bn as CheckBoxCheckedIcon,bn as CheckFactIcon,vn as CheckFactOutlineIcon,Wr as CheckIcon,gn as CheckOutlineIcon,sn as ChevronDoubleLeftIcon,cn as ChevronDoubleRightIcon,Hn as ChevronDownIcon,an as ChevronLeftIcon,ln as ChevronRightIcon,$n as ChevronUpIcon,K as ClickAwayListener,Un as CloseIcon,bo as ConsentsIcon,G as Container,Rs as CopyButton,zs as CopyWrapper,hn as DashboardViewIcon,pn as DashboardViewOutlineIcon,Xn as DeleteOutlineIcon,Dn as DotsVerticalIcon,jn as DownloadIcon,Jn as DragHorizontalIcon,Fn as DropDownIcon,An as DropUpIcon,no as DvrIcon,po as EarthIcon,ko as EditSquareIcon,oo as ErrorOutlineIcon,Y as Fade,ao as FastCheckOutlineIcon,Qn as FilePdfIcon,eo as FilterIcon,En as FindReplaceIcon,On as FindReplacePeopleIcon,Z as FormLabel,rn as HamburgerIcon,_o as HandymanIcon,Mo as HandymanOutlineIcon,Gn as InboxOutboxIcon,Yn as InboxOutboxOutlineIcon,Ur as IndeterminateIcon,wo as KeyboardCapslockIcon,lo as LinkOutlineIcon,Nn as ListNumberedIcon,ho as ListSettingsLineIcon,co as ListStatusIcon,Vn as LoadingIcon,to as LockIcon,In as MessageProcessingIcon,Mn as MessageProcessingOutlineIcon,yo as MessageReplyIcon,mc as MinimizableDialog,Cc as MinimizableDialogV2,xo as MinimizeIcon,wn as NewCalendarIcon,vo as OutlineCalendarMonth,J as Paper,un as PdfIcon,fo as PencilOutlineIcon,fn as PeopleIcon,mn as PeopleOutlineIcon,Wn as PermMediaIcon,Kn as PermMediaOutline,zn as PersonIcon,Pn as PersonOutlineIcon,To as PinIcon,No as PlusIcon,Io as PlusIconCircle,Q as Popper,dn as QnrIcon,io as ReplayIcon,_n as ReportBoxIcon,Tn as ReportBoxOutlineIcon,Ln as SearchIcon,Sn as SettingsIcon,mo as SettingsMenuHorizontalIcon,Rn as SettingsOutlineIcon,X as Skeleton,ee as Stack,Cs as StyledAccordion,Ns as StyledAccordionDetails,ks as StyledAccordionSummary,we as StyledBadge,Uo as StyledButton,Kr as StyledCheckbox,Ro as StyledChip,ii as StyledDialog,ci as StyledDialogActions,ui as StyledDialogContent,pi as StyledDialogTitle,Oa as StyledDrawer,Ma as StyledDynamicSelect,fi as StyledEmptyPage,Ms as StyledFilterButton,Ss as StyledFilterMenu,bi as StyledFilteredEmptyState,_a as StyledFormControl,Ta as StyledFormControlLabel,Ea as StyledFormGroup,Sa as StyledFormHelperText,Bo as StyledFormLabel,Gr as StyledInputField,Ra as StyledInputLabel,zo as StyledInteractiveChip,ka as StyledLabel,ja as StyledLink,wi as StyledLoading,za as StyledMenu,Pa as StyledMenuItem,Da as StyledMenuList,Ys as StyledModuleTitle,Is as StyledPopover,Ol as StyledRadio,Ca as StyledRadioGroup,Yr as StyledSearchField,Qr as StyledSelect,nl as StyledSelectAutocomplete,Xr as StyledSelectItem,ol as StyledSlider,hl as StyledSwitch,Ba as StyledTab,Ha as StyledTabs,Jr as StyledTextarea,Po as StyledTooltip,Do as StyledTypography,Ks as StyledWidget,Vs as StyledWidgetHeader,Ds as StyledWidgetTitle,uo as TextBoxCheckOutlineIcon,Zn as TopicIcon,so as UnknownDocumentOutlineRoundedIcon,go as WarningAmberOutlineIcon,So as WorkIcon,Nc as createDialogStack,de as omit,xe as prepareForSlot,ve as setMidnightTime,be as setZeroTime};