@clasing/ui 0.1.1 → 0.1.9-beta.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.
- package/README.md +33 -0
- package/dist/index.d.ts +345 -38
- package/dist/index.es.js +4122 -1803
- package/dist/index.umd.js +16 -18
- package/dist/style.css +1 -1
- package/package.json +89 -85
- package/tailwind.config.js +386 -421
package/dist/index.umd.js
CHANGED
|
@@ -1,33 +1,31 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(C,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("@tabler/icons-react"),require("date-fns"),require("react-day-picker"),require("@floating-ui/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@tabler/icons-react","date-fns","react-day-picker","@floating-ui/react","react-dom"],x):(C=typeof globalThis<"u"?globalThis:C||self,x(C["react-beautiful-timeline"]={},C.React,C.TablerIcons,C.DateFns,C.DayPicker,C.FloatingUI,C.ReactDOM))})(this,function(C,x,Kt,G,Le,R,Zt){"use strict";function Lt(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const qt=Lt(Kt);var Fe={exports:{}},Se={};/**
|
|
2
2
|
* @license React
|
|
3
|
-
* react-jsx-runtime.production.
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c)
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var qe;function $t(){if(qe)return Se;qe=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(o,d,a){var l=null;if(a!==void 0&&(l=""+a),d.key!==void 0&&(l=""+d.key),"key"in d){a={};for(var i in d)i!=="key"&&(a[i]=d[i])}else a=d;return d=a.ref,{$$typeof:e,type:o,key:l,ref:d!==void 0?d:null,props:a}}return Se.Fragment=r,Se.jsx=t,Se.jsxs=t,Se}var Ne={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
13
|
-
* Copyright (c)
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
`),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function Hr(e){return""}var St={};function Zr(e){{var s=kt();if(!s){var c=typeof e=="string"?e:e.displayName||e.name;c&&(s=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+c+">.")}return s}}function jt(e,s){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var c=Zr(s);if(St[c])return;St[c]=!0;var m="";e&&e._owner&&e._owner!==Be.current&&(m=" It was passed a child from "+B(e._owner.type)+"."),ne(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',c,m),ne(null)}}function Ct(e,s){{if(typeof e!="object")return;if(Fe(e))for(var c=0;c<e.length;c++){var m=e[c];De(m)&&jt(m,s)}else if(De(e))e._store&&(e._store.validated=!0);else if(e){var w=P(e);if(typeof w=="function"&&w!==e.entries)for(var S=w.call(e),y;!(y=S.next()).done;)De(y.value)&&jt(y.value,s)}}}function Qr(e){{var s=e.type;if(s==null||typeof s=="string")return;var c;if(typeof s=="function")c=s.propTypes;else if(typeof s=="object"&&(s.$$typeof===b||s.$$typeof===g))c=s.propTypes;else return;if(c){var m=B(s);Vr(c,e.props,"prop",m,e)}else if(s.PropTypes!==void 0&&!We){We=!0;var w=B(s);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w||"Unknown")}typeof s.getDefaultProps=="function"&&!s.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qr(e){{for(var s=Object.keys(e.props),c=0;c<s.length;c++){var m=s[c];if(m!=="children"&&m!=="key"){ne(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",m),ne(null);break}}e.ref!==null&&(ne(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null))}}var Et={};function Rt(e,s,c,m,w,S){{var y=de(e);if(!y){var v="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(v+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var M=Hr();M?v+=M:v+=kt();var T;e===null?T="null":Fe(e)?T="array":e!==void 0&&e.$$typeof===r?(T="<"+(B(e.type)||"Unknown")+" />",v=" Did you accidentally export a JSX literal instead of a component?"):T=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,v)}var O=Xr(e,s,c,w,S);if(O==null)return O;if(y){var D=s.children;if(D!==void 0)if(m)if(Fe(D)){for(var oe=0;oe<D.length;oe++)Ct(D[oe],e);Object.freeze&&Object.freeze(D)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ct(D,e)}if(ge.call(s,"key")){var q=B(e),F=Object.keys(s).filter(function(an){return an!=="key"}),Ge=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Et[q+Ge]){var on=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
|
|
17
|
+
*/var $e;function er(){return $e||($e=1,process.env.NODE_ENV!=="production"&&function(){function e(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===de?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case j:return"Fragment";case A:return"Portal";case Y:return"Profiler";case D:return"StrictMode";case N:return"Suspense";case ae:return"SuspenseList"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case J:return(n.displayName||"Context")+".Provider";case Q:return(n._context.displayName||"Context")+".Consumer";case $:var w=n.render;return n=n.displayName,n||(n=w.displayName||w.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case U:return w=n.displayName||null,w!==null?w:e(n.type)||"Memo";case ee:w=n._payload,n=n._init;try{return e(n(w))}catch{}}return null}function r(n){return""+n}function t(n){try{r(n);var w=!1}catch{w=!0}if(w){w=console;var k=w.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return k.call(w,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),r(n)}}function o(){}function d(){if(ye===0){_=console.log,V=console.info,ie=console.warn,Me=console.error,Te=console.group,ze=console.groupCollapsed,pe=console.groupEnd;var n={configurable:!0,enumerable:!0,value:o,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}ye++}function a(){if(ye--,ye===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},n,{value:_}),info:H({},n,{value:V}),warn:H({},n,{value:ie}),error:H({},n,{value:Me}),group:H({},n,{value:Te}),groupCollapsed:H({},n,{value:ze}),groupEnd:H({},n,{value:pe})})}0>ye&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function l(n){if(ce===void 0)try{throw Error()}catch(k){var w=k.stack.trim().match(/\n( *(at )?)/);ce=w&&w[1]||"",Ut=-1<k.stack.indexOf(`
|
|
18
|
+
at`)?" (<anonymous>)":-1<k.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
+
`+ce+n+Ut}function i(n,w){if(!n||Ke)return"";var k=Ze.get(n);if(k!==void 0)return k;Ke=!0,k=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var O=null;O=L.H,L.H=null,d();try{var K={DetermineComponentFrameRoot:function(){try{if(w){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(be){var Re=be}Reflect.construct(n,[],xe)}else{try{xe.call()}catch(be){Re=be}n.call(xe.prototype)}}else{try{throw Error()}catch(be){Re=be}(xe=n())&&typeof xe.catch=="function"&&xe.catch(function(){})}}catch(be){if(be&&Re&&typeof be.stack=="string")return[be.stack,Re.stack]}return[null,null]}};K.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var B=Object.getOwnPropertyDescriptor(K.DetermineComponentFrameRoot,"name");B&&B.configurable&&Object.defineProperty(K.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var T=K.DetermineComponentFrameRoot(),ue=T[0],Ce=T[1];if(ue&&Ce){var q=ue.split(`
|
|
20
|
+
`),ve=Ce.split(`
|
|
21
|
+
`);for(T=B=0;B<q.length&&!q[B].includes("DetermineComponentFrameRoot");)B++;for(;T<ve.length&&!ve[T].includes("DetermineComponentFrameRoot");)T++;if(B===q.length||T===ve.length)for(B=q.length-1,T=ve.length-1;1<=B&&0<=T&&q[B]!==ve[T];)T--;for(;1<=B&&0<=T;B--,T--)if(q[B]!==ve[T]){if(B!==1||T!==1)do if(B--,T--,0>T||q[B]!==ve[T]){var Ae=`
|
|
22
|
+
`+q[B].replace(" at new "," at ");return n.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",n.displayName)),typeof n=="function"&&Ze.set(n,Ae),Ae}while(1<=B&&0<=T);break}}}finally{Ke=!1,L.H=O,a(),Error.prepareStackTrace=k}return q=(q=n?n.displayName||n.name:"")?l(q):"",typeof n=="function"&&Ze.set(n,q),q}function b(n){if(n==null)return"";if(typeof n=="function"){var w=n.prototype;return i(n,!(!w||!w.isReactComponent))}if(typeof n=="string")return l(n);switch(n){case N:return l("Suspense");case ae:return l("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case $:return n=i(n.render,!1),n;case U:return b(n.type);case ee:w=n._payload,n=n._init;try{return b(n(w))}catch{}}return""}function c(){var n=L.A;return n===null?null:n.getOwner()}function u(n){if(fe.call(n,"key")){var w=Object.getOwnPropertyDescriptor(n,"key").get;if(w&&w.isReactWarning)return!1}return n.key!==void 0}function m(n,w){function k(){Ht||(Ht=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",w))}k.isReactWarning=!0,Object.defineProperty(n,"key",{get:k,configurable:!0})}function p(){var n=e(this.type);return Xt[n]||(Xt[n]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),n=this.props.ref,n!==void 0?n:null}function h(n,w,k,O,K,B){return k=B.ref,n={$$typeof:z,type:n,key:w,props:B,_owner:K},(k!==void 0?k:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:p}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function f(n,w,k,O,K,B){if(typeof n=="string"||typeof n=="function"||n===j||n===Y||n===D||n===N||n===ae||n===Z||typeof n=="object"&&n!==null&&(n.$$typeof===ee||n.$$typeof===U||n.$$typeof===J||n.$$typeof===Q||n.$$typeof===$||n.$$typeof===he||n.getModuleId!==void 0)){var T=w.children;if(T!==void 0)if(O)if(je(T)){for(O=0;O<T.length;O++)y(T[O],n);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else y(T,n)}else T="",(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(T+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),n===null?O="null":je(n)?O="array":n!==void 0&&n.$$typeof===z?(O="<"+(e(n.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):O=typeof n,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,T);if(fe.call(w,"key")){T=e(n);var ue=Object.keys(w).filter(function(q){return q!=="key"});O=0<ue.length?"{key: someKey, "+ue.join(": ..., ")+": ...}":"{key: someKey}",Jt[T+O]||(ue=0<ue.length?"{"+ue.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
26
23
|
let props = %s;
|
|
27
24
|
<%s {...props} />
|
|
28
25
|
React keys must be passed directly to JSX without using spread:
|
|
29
26
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Ge,q,on,q),Et[q+Ge]=!0}}return e===o?qr(O):Qr(O),O}}function en(e,s,c){return Rt(e,s,c,!0)}function tn(e,s,c){return Rt(e,s,c,!1)}var rn=tn,nn=en;le.Fragment=o,le.jsx=rn,le.jsxs=nn}()),le}process.env.NODE_ENV==="production"?Re.exports=Pt():Re.exports=Ot();var u=Re.exports;const It=C.forwardRef(({rounded:t=!0,...r},n)=>{const o=t?"rounded-full":"rounded-sm";if(!r.src)throw new Error("The src prop is required");return u.jsx("img",{...r,ref:n,className:`h-full w-full object-cover ${o}`})});function $e(t){var r,n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=$e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function _e(){for(var t,r,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(r=$e(t))&&(o&&(o+=" "),o+=r);return o}const Te="-";function At(t){const r=zt(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=t;function i(l){const d=l.split(Te);return d[0]===""&&d.length!==1&&d.shift(),Je(d,r)||Nt(l)}function a(l,d){const b=n[l]||[];return d&&o[l]?[...b,...o[l]]:b}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function Je(t,r){var l;if(t.length===0)return r.classGroupId;const n=t[0],o=r.nextPart.get(n),i=o?Je(t.slice(1),o):void 0;if(i)return i;if(r.validators.length===0)return;const a=t.join(Te);return(l=r.validators.find(({validator:d})=>d(a)))==null?void 0:l.classGroupId}const Ke=/^\[(.+)\]$/;function Nt(t){if(Ke.test(t)){const r=Ke.exec(t)[1],n=r==null?void 0:r.substring(0,r.indexOf(":"));if(n)return"arbitrary.."+n}}function zt(t){const{theme:r,prefix:n}=t,o={nextPart:new Map,validators:[]};return Ft(Object.entries(t.classGroups),n).forEach(([a,l])=>{Pe(l,o,a,r)}),o}function Pe(t,r,n,o){t.forEach(i=>{if(typeof i=="string"){const a=i===""?r:Xe(r,i);a.classGroupId=n;return}if(typeof i=="function"){if(Mt(i)){Pe(i(o),r,n,o);return}r.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([a,l])=>{Pe(l,Xe(r,a),n,o)})})}function Xe(t,r){let n=t;return r.split(Te).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n}function Mt(t){return t.isThemeGetter}function Ft(t,r){return r?t.map(([n,o])=>{const i=o.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,d])=>[r+l,d])):a);return[n,i]}):t}function Vt(t){if(t<1)return{get:()=>{},set:()=>{}};let r=0,n=new Map,o=new Map;function i(a,l){n.set(a,l),r++,r>t&&(r=0,o=n,n=new Map)}return{get(a){let l=n.get(a);if(l!==void 0)return l;if((l=o.get(a))!==void 0)return i(a,l),l},set(a,l){n.has(a)?n.set(a,l):i(a,l)}}}const He="!";function Bt(t){const r=t.separator,n=r.length===1,o=r[0],i=r.length;return function(l){const d=[];let b=0,p=0,f;for(let R=0;R<l.length;R++){let P=l[R];if(b===0){if(P===o&&(n||l.slice(R,R+i)===r)){d.push(l.slice(p,R)),p=R+i;continue}if(P==="/"){f=R;continue}}P==="["?b++:P==="]"&&b--}const g=d.length===0?l:l.substring(p),x=g.startsWith(He),I=x?g.substring(1):g,N=f&&f>p?f-p:void 0;return{modifiers:d,hasImportantModifier:x,baseClassName:I,maybePostfixModifierPosition:N}}}function Wt(t){if(t.length<=1)return t;const r=[];let n=[];return t.forEach(o=>{o[0]==="["?(r.push(...n.sort(),o),n=[]):n.push(o)}),r.push(...n.sort()),r}function Dt(t){return{cache:Vt(t.cacheSize),splitModifiers:Bt(t),...At(t)}}const Gt=/\s+/;function Yt(t,r){const{splitModifiers:n,getClassGroupId:o,getConflictingClassGroupIds:i}=r,a=new Set;return t.trim().split(Gt).map(l=>{const{modifiers:d,hasImportantModifier:b,baseClassName:p,maybePostfixModifierPosition:f}=n(l);let g=o(f?p.substring(0,f):p),x=!!f;if(!g){if(!f)return{isTailwindClass:!1,originalClassName:l};if(g=o(p),!g)return{isTailwindClass:!1,originalClassName:l};x=!1}const I=Wt(d).join(":");return{isTailwindClass:!0,modifierId:b?I+He:I,classGroupId:g,originalClassName:l,hasPostfixModifier:x}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:d,classGroupId:b,hasPostfixModifier:p}=l,f=d+b;return a.has(f)?!1:(a.add(f),i(b,p).forEach(g=>a.add(d+g)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function Ut(){let t=0,r,n,o="";for(;t<arguments.length;)(r=arguments[t++])&&(n=Ze(r))&&(o&&(o+=" "),o+=n);return o}function Ze(t){if(typeof t=="string")return t;let r,n="";for(let o=0;o<t.length;o++)t[o]&&(r=Ze(t[o]))&&(n&&(n+=" "),n+=r);return n}function Lt(t,...r){let n,o,i,a=l;function l(b){const p=r.reduce((f,g)=>g(f),t());return n=Dt(p),o=n.cache.get,i=n.cache.set,a=d,d(b)}function d(b){const p=o(b);if(p)return p;const f=Yt(b,n);return i(b,f),f}return function(){return a(Ut.apply(null,arguments))}}function E(t){const r=n=>n[t]||[];return r.isThemeGetter=!0,r}const Qe=/^\[(?:([a-z-]+):)?(.+)\]$/i,$t=/^\d+\/\d+$/,Jt=new Set(["px","full","screen"]),Kt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ht=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Zt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Y(t){return H(t)||Jt.has(t)||$t.test(t)}function U(t){return ee(t,"length",lr)}function H(t){return!!t&&!Number.isNaN(Number(t))}function me(t){return ee(t,"number",H)}function se(t){return!!t&&Number.isInteger(Number(t))}function qt(t){return t.endsWith("%")&&H(t.slice(0,-1))}function h(t){return Qe.test(t)}function L(t){return Kt.test(t)}const er=new Set(["length","size","percentage"]);function tr(t){return ee(t,er,qe)}function rr(t){return ee(t,"position",qe)}const nr=new Set(["image","url"]);function or(t){return ee(t,nr,ir)}function ar(t){return ee(t,"",sr)}function ie(){return!0}function ee(t,r,n){const o=Qe.exec(t);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):n(o[2]):!1}function lr(t){return Xt.test(t)&&!Ht.test(t)}function qe(){return!1}function sr(t){return Zt.test(t)}function ir(t){return Qt.test(t)}function cr(){const t=E("colors"),r=E("spacing"),n=E("blur"),o=E("brightness"),i=E("borderColor"),a=E("borderRadius"),l=E("borderSpacing"),d=E("borderWidth"),b=E("contrast"),p=E("grayscale"),f=E("hueRotate"),g=E("invert"),x=E("gap"),I=E("gradientColorStops"),N=E("gradientColorStopPositions"),R=E("inset"),P=E("margin"),z=E("opacity"),j=E("padding"),ve=E("saturate"),ce=E("scale"),xe=E("sepia"),ye=E("skew"),we=E("space"),ke=E("translate"),te=()=>["auto","contain","none"],de=()=>["auto","hidden","clip","visible","scroll"],ue=()=>["auto",h,r],k=()=>[h,r],B=()=>["",Y,U],W=()=>["auto",H,h],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",h],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[H,me],Q=()=>[H,h];return{cacheSize:500,separator:":",theme:{colors:[ie],spacing:[Y,U],blur:["none","",L,h],brightness:X(),borderColor:[t],borderRadius:["none","","full",L,h],borderSpacing:k(),borderWidth:B(),contrast:X(),grayscale:K(),hueRotate:Q(),invert:K(),gap:k(),gradientColorStops:[t],gradientColorStopPositions:[qt,U],inset:ue(),margin:ue(),opacity:X(),padding:k(),saturate:X(),scale:X(),sepia:K(),skew:Q(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[L]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),h]}],overflow:[{overflow:de()}],"overflow-x":[{"overflow-x":de()}],"overflow-y":[{"overflow-y":de()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",se,h]}],basis:[{basis:ue()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",se,h]}],"grid-cols":[{"grid-cols":[ie]}],"col-start-end":[{col:["auto",{span:["full",se,h]},h]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[ie]}],"row-start-end":[{row:["auto",{span:[se,h]},h]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[we]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[we]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,r]}],"min-w":[{"min-w":[h,r,"min","max","fit"]}],"max-w":[{"max-w":[h,r,"none","full","min","max","fit","prose",{screen:[L]},L]}],h:[{h:[h,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,r,"auto","min","max","fit"]}],"font-size":[{text:["base",L,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",me]}],"font-family":[{font:[ie]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",H,me]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Y,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[z]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Y,U]}],"underline-offset":[{"underline-offset":["auto",Y,h]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[z]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),rr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},or]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[I]}],"gradient-via":[{via:[I]}],"gradient-to":[{to:[I]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[z]}],"border-style":[{border:[...Z(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[z]}],"divide-style":[{divide:Z()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Z()]}],"outline-offset":[{"outline-offset":[Y,h]}],"outline-w":[{outline:[Y,U]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[z]}],"ring-offset-w":[{"ring-offset":[Y,U]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",L,ar]}],"shadow-color":[{shadow:[ie]}],opacity:[{opacity:[z]}],"mix-blend":[{"mix-blend":[...be(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":be()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",L,h]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[g]}],saturate:[{saturate:[ve]}],sepia:[{sepia:[xe]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[z]}],"backdrop-saturate":[{"backdrop-saturate":[ve]}],"backdrop-sepia":[{"backdrop-sepia":[xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ce]}],"scale-x":[{"scale-x":[ce]}],"scale-y":[{"scale-y":[ce]}],rotate:[{rotate:[se,h]}],"translate-x":[{"translate-x":[ke]}],"translate-y":[{"translate-y":[ke]}],"skew-x":[{"skew-x":[ye]}],"skew-y":[{"skew-y":[ye]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Y,U,me]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const dr=Lt(cr),G=(...t)=>dr(_e(t));function et(t){var r,n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=et(t[r]))&&(o&&(o+=" "),o+=n);else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function ur(){for(var t,r,n=0,o="";n<arguments.length;)(t=arguments[n++])&&(r=et(t))&&(o&&(o+=" "),o+=r);return o}const tt=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,rt=ur,V=(t,r)=>n=>{var o;if((r==null?void 0:r.variants)==null)return rt(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=r,l=Object.keys(i).map(p=>{const f=n==null?void 0:n[p],g=a==null?void 0:a[p];if(f===null)return null;const x=tt(f)||tt(g);return i[p][x]}),d=n&&Object.entries(n).reduce((p,f)=>{let[g,x]=f;return x===void 0||(p[g]=x),p},{}),b=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((p,f)=>{let{class:g,className:x,...I}=f;return Object.entries(I).every(N=>{let[R,P]=N;return Array.isArray(P)?P.includes({...a,...d}[R]):{...a,...d}[R]===P})?[...p,g,x]:p},[]);return rt(t,l,b,n==null?void 0:n.class,n==null?void 0:n.className)},nt=C.forwardRef(({iconName:t,stroke:r=1,...n},o)=>{if(Ye[t]){const i=Ye[t];return u.jsx(i,{ref:o,stroke:r,...n})}else return console.error(`Icon ${t} not found`),null});nt.displayName="IconComponent";const A=nt,br=V("!border-sm flex w-fit items-center justify-center gap-2 rounded-sm transition-colors",{variants:{status:{notStarted:"border-border-transparent bg-bg-accent-ice-subtle text-content-text-default","notStarted-outline":"border-border-accent-ice text-content-accent-ice",locked:"border-border-transparent bg-bg-disabled text-content-text-subtle","locked-outline":"border-border-disabled text-content-text-subtlest",available:"border-border-transparent bg-bg-utility-discovery-bolder text-content-text-inverse","available-outline":"border-border-utility-discovery text-content-utility-discovery",inProgress:"border-border-transparent bg-bg-accent-blue-subtle text-content-text-default","inProgress-outline":"border-border-accent-blue text-content-accent-blue",completed:"border-border-transparent bg-bg-utility-success-bolder text-content-text-default","completed-outline":"border-border-utility-success text-content-utility-success",viewed:"border-border-transparent bg-bg-utility-informative-bolder text-content-text-inverse","viewed-outline":"border-border-utility-informative text-content-utility-informative"},intent:{neutral:"border-border-transparent bg-bg-bolder text-content-text-inverse","neutral-outline":"border-border-bolder text-content-text-default",blue:"border-border-transparent bg-bg-accent-blue text-content-text-inverse","blue-outline":"border-border-accent-blue text-content-accent-blue",mustard:"border-border-transparent bg-bg-accent-mustard text-content-text-default","mustard-outline":"border-border-accent-mustard text-content-accent-mustard",green:"border-border-transparent bg-bg-accent-green text-content-text-inverse","green-outline":"border-border-accent-green text-content-accent-green",lime:"border-border-transparent bg-bg-accent-lime text-content-text-default","lime-outline":"border-border-accent-lime text-content-accent-lime",fuchsia:"border-border-transparent bg-bg-accent-fuchsia text-content-text-inverse","fuchsia-outline":"border-border-accent-fuchsia text-content-accent-fuchsia",marine:"border-border-transparent bg-bg-accent-marine text-content-text-inverse","marine-outline":"border-border-accent-marine text-content-accent-marine",ice:"border-border-transparent bg-bg-accent-ice text-content-text-inverse","ice-outline":"border-border-accent-ice text-content-accent-ice",gray:"border-border-transparent bg-bg-accent-gray text-content-text-inverse","gray-outline":"border-border-accent-gray text-content-accent-gray",violet:"border-border-transparent bg-bg-accent-violet text-content-text-inverse","violet-outline":"border-border-accent-violet text-content-accent-violet"},size:{small:"h-[34px] px-4 py-2 text-xs",medium:"h-9 px-4 py-2 text-sm",large:"h-10 px-4 py-2 text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},rounded:{rectangle:"rounded-sm",full:"rounded-full"}},defaultVariants:{size:"medium",weight:"regular",rounded:"rectangle"}}),ot=C.forwardRef(({children:t,iconLeft:r,iconRight:n,status:o,intent:i,size:a="medium",rounded:l="rectangle",weight:d,className:b,...p},f)=>{typeof r=="string"&&(r={name:r}),typeof n=="string"&&(n={name:n});const g={small:"h-4",medium:"h-4",large:"h-5"},x=o?{status:o}:{intent:i};return u.jsxs("span",{ref:f,className:G(br({...x,size:a,rounded:l,weight:d,className:b})),...p,children:[r&&u.jsx(A,{iconName:r.name,stroke:r.stroke,className:g[a||"medium"]}),t,n&&u.jsx(A,{iconName:n.name,stroke:n.stroke,className:g[a||"medium"]})]})});ot.displayName="Badge";const fr=ot,he=({className:t})=>u.jsx(A,{iconName:"IconLoader2",className:`${t} animate-spin`}),Oe="flex items-center justify-center gap-2 rounded-sm !border-xs transition-colors",gr=V(Oe,{variants:{intent:{primary:["bg-button-primary-background-enabled","text-button-primary-content-enabled","border-button-primary-border-enabled","lg:hover:bg-button-primary-background-hover","lg:hover:text-button-primary-content-hover","lg:hover:border-button-primary-border-hover","lg:active:bg-button-primary-background-pressed","lg:active:text-button-primary-content-pressed","lg:active:border-button-primary-border-pressed"],secondary:["bg-button-secondary-background-enabled","text-button-secondary-content-enabled","border-button-secondary-border-enabled","lg:hover:bg-button-secondary-background-hover","lg:hover:text-button-secondary-content-hover","lg:hover:border-button-secondary-border-hover","lg:active:bg-button-secondary-background-pressed","lg:active:text-button-secondary-content-pressed","lg:active:border-button-secondary-border-pressed"],tertiary:["bg-button-tertiary-background-enabled","text-button-tertiary-content-enabled","border-button-tertiary-border-enabled","lg:hover:bg-button-tertiary-background-hover","lg:hover:text-button-tertiary-content-hover","lg:hover:border-button-tertiary-border-hover","lg:active:bg-button-tertiary-background-pressed","lg:active:text-button-tertiary-content-pressed","lg:active:border-button-tertiary-border-pressed"],ghost:["bg-button-ghost-background-enabled","text-button-ghost-content-enabled","border-button-ghost-border-enabled","lg:hover:bg-button-ghost-background-hover","lg:hover:text-button-ghost-content-hover","lg:hover:border-button-ghost-border-hover","lg:active:bg-button-ghost-background-pressed","lg:active:text-button-ghost-content-pressed","lg:active:border-button-ghost-border-pressed"],outline:["bg-button-outline-background-enabled","text-button-outline-content-enabled","border-button-outline-border-enabled","lg:hover:bg-button-outline-background-hover","lg:hover:text-button-outline-content-hover","lg:hover:border-button-outline-border-hover","lg:active:bg-button-outline-background-pressed","lg:active:text-button-outline-content-pressed","lg:active:border-button-outline-border-pressed"],destructive:["bg-button-destructive-background-enabled","text-button-destructive-content-enabled","border-button-destructive-border-enabled","lg:hover:bg-button-destructive-background-hover","lg:hover:text-button-destructive-content-hover","lg:hover:border-button-destructive-border-hover","lg:active:bg-button-destructive-background-pressed","lg:active:text-button-destructive-content-pressed","lg:active:border-button-destructive-border-pressed"]},size:{small:"h-10 min-w-36 p-button-sm text-xs",medium:"h-11 min-w-44 p-button-md text-sm",large:"h-12 min-w-52 p-button-lg text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),pr=V(`${Oe} cursor-default`,{variants:{intent:{primary:["border-button-primary-border-pressed","bg-button-primary-background-pressed","text-button-primary-content-pressed"],secondary:["border-button-secondary-border-enabled","bg-button-secondary-background-enabled","text-button-secondary-content-enabled"],tertiary:["border-button-tertiary-border-enabled","bg-button-tertiary-background-enabled","text-button-tertiary-content-enabled"],ghost:["border-button-ghost-border-pressed","bg-button-ghost-background-pressed","text-button-ghost-content-pressed"],outline:["border-button-outline-border-pressed","bg-button-outline-background-pressed","text-button-outline-content-pressed"],destructive:["border-button-destructive-border-pressed","bg-button-destructive-background-pressed","text-button-destructive-content-pressed"]},size:{small:"h-10 min-w-36 p-button-sm text-xs",medium:"h-11 min-w-44 p-button-md text-sm",large:"h-12 min-w-52 p-button-lg text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),mr=V(Oe,{variants:{intent:{primary:["border-button-primary-border-disabled","bg-button-primary-background-disabled","text-button-primary-content-disabled"],secondary:["border-button-secondary-border-disabled","bg-button-secondary-background-disabled","text-button-secondary-content-disabled"],tertiary:["border-button-tertiary-border-disabled","bg-button-tertiary-background-disabled","text-button-tertiary-content-disabled"],ghost:["border-button-ghost-border-disabled","bg-button-ghost-background-disabled","text-button-ghost-content-disabled"],outline:["border-button-outline-border-disabled","bg-button-outline-background-disabled","text-button-outline-content-disabled"],destructive:["border-button-destructive-border-disabled","bg-button-destructive-background-disabled","text-button-destructive-content-disabled"]},size:{small:"h-10 min-w-36 p-button-sm text-xs",medium:"h-11 min-w-44 p-button-md text-sm",large:"h-12 min-w-52 p-button-lg text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),at=C.forwardRef(({className:t,intent:r,size:n,weight:o,children:i,iconLeft:a,iconRight:l,isLoading:d,disabled:b,...p},f)=>{typeof a=="string"&&(a={name:a}),typeof l=="string"&&(l={name:l});const g={small:"h-4",medium:"h-5",large:"h-5"};return u.jsx("button",{ref:f,className:G(d?pr({intent:r,weight:o,size:n,className:t}):b?mr({intent:r,weight:o,size:n,className:t}):gr({intent:r,weight:o,size:n,className:t})),disabled:b||d,...p,children:d?u.jsx(he,{className:g[n||"medium"]}):u.jsxs(u.Fragment,{children:[a&&u.jsx(A,{iconName:a.name,stroke:a.stroke,className:g[n||"medium"]}),i,l&&u.jsx(A,{iconName:l.name,stroke:l.stroke,className:g[n||"medium"]})]})})});at.displayName="Button";const hr=at,Ie="flex items-center justify-center transition-colors relative border !border-xs",vr=V(Ie,{variants:{intent:{fill:["bg-button-icon-fill-bg-enabled","text-button-icon-fill-content-enabled","border-button-icon-fill-border-enabled","lg:hover:bg-button-icon-fill-bg-hover","lg:hover:text-button-icon-fill-content-hover","lg:hover:border-button-icon-fill-border-hover","lg:active:bg-button-icon-fill-bg-pressed","lg:active:text-button-icon-fill-content-pressed","lg:active:border-button-icon-fill-border-pressed"],outline:["bg-button-icon-outline-bg-enabled","text-button-icon-outline-content-enabled","border-button-icon-outline-border-enabled","lg:hover:bg-button-icon-outline-bg-hover","lg:hover:text-button-icon-outline-content-hover","lg:hover:border-button-icon-outline-border-hover","lg:active:bg-button-icon-outline-bg-pressed","lg:active:text-button-icon-outline-content-pressed","lg:active:border-button-icon-outline-border-pressed"],ghost:["bg-button-icon-ghost-bg-enabled","text-button-icon-ghost-content-enabled","border-button-icon-ghost-border-enabled","lg:hover:bg-button-icon-ghost-bg-hover","lg:hover:text-button-icon-ghost-content-hover","lg:hover:border-button-icon-ghost-border-hover","lg:active:bg-button-icon-ghost-bg-pressed","lg:active:text-button-icon-ghost-content-pressed","lg:active:border-button-icon-ghost-border-pressed"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),xr=V(Ie,{variants:{intent:{fill:["border-button-icon-fill-border-pressed","bg-button-icon-fill-bg-pressed","text-button-icon-fill-content-pressed"],outline:["border-button-icon-outline-border-enabled","bg-button-icon-outline-bg-enabled","text-button-icon-outline-content-enabled"],ghost:["border-button-icon-ghost-border-enabled","bg-button-icon-ghost-bg-enabled","text-button-icon-ghost-content-enabled"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),yr=V(Ie,{variants:{intent:{fill:["border-button-icon-fill-border-disabled","bg-button-icon-fill-bg-disabled","text-button-icon-fill-content-disabled"],outline:["border-button-icon-outline-border-disabled","bg-button-icon-outline-bg-disabled","text-button-icon-outline-content-disabled"],ghost:["border-button-icon-ghost-border-disabled","bg-button-icon-ghost-bg-disabled","text-button-icon-ghost-content-disabled"]},size:{small:"h-[38px] w-[38px] p-[9px]",medium:"h-11 w-11 p-[10px]",large:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"fill",size:"medium",rounded:"sm"}}),lt=C.forwardRef(({iconName:t,className:r,intent:n="fill",size:o="medium",rounded:i,disabled:a,isLoading:l,notification:d,...b},p)=>{typeof t=="string"&&(t={name:t});const f={small:"h-5",medium:"h-6",large:"h-6"};return u.jsxs("button",{ref:p,className:G(l?xr({intent:n,size:o,rounded:i,className:r}):a?yr({intent:n,size:o,rounded:i,className:r}):vr({intent:n,size:o,rounded:i,className:r})),disabled:a||l,...b,children:[d&&!l&&u.jsx(A,{iconName:"IconCircleFilled",className:`absolute ${i==="full"?"right-2 top-2":"right-1 top-1"} h-[6px] w-[6px] ${n==="fill"?"text-button-primary-content-pressed":"text-button-primary-background-enabled"}`}),l?u.jsx(he,{className:f[o||"medium"]}):u.jsx(u.Fragment,{children:t&&u.jsx(A,{iconName:t.name,stroke:t.stroke,className:f[o||"medium"]})})]})});lt.displayName="ButtonIcon";const st=lt,Ae="flex items-center justify-center gap-2 !border-b-xs transition-colors py-1",wr=V(Ae,{variants:{intent:{primary:["border-button-link-border-enabled","text-button-link-content-enabled","lg:hover:border-button-link-border-hover","lg:hover:text-button-link-content-hover","lg:active:border-button-link-border-pressed","lg:active:text-button-link-content-pressed"]},size:{small:"text-xs",medium:"text-sm",large:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),kr=V(`${Ae} cursor-default`,{variants:{intent:{primary:["border-b border-button-link-border-enabled","text-button-link-content-pressed"]},size:{small:"text-xs",medium:"text-sm",large:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),Sr=V(Ae,{variants:{intent:{primary:["border-b border-button-link-border-disabled","text-button-link-content-disabled"]},size:{small:"text-xs",medium:"text-sm",large:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"medium",weight:"regular"}}),it=C.forwardRef(({className:t,intent:r,size:n,weight:o,children:i,iconLeft:a,iconRight:l,isLoading:d,disabled:b,...p},f)=>{typeof a=="string"&&(a={name:a}),typeof l=="string"&&(l={name:l});const g={small:"h-5",medium:"h-5",large:"h-6"};return u.jsx("button",{ref:f,className:G(d?kr({intent:r,weight:o,size:n,className:t}):b?Sr({intent:r,weight:o,size:n,className:t}):wr({intent:r,weight:o,size:n,className:t})),disabled:b||d,...p,children:d?u.jsx(he,{className:g[n||"medium"]}):u.jsxs(u.Fragment,{children:[a&&u.jsx(A,{iconName:a.name,stroke:a.stroke,className:g[n||"medium"]}),i,l&&u.jsx(A,{iconName:l.name,stroke:l.stroke,className:g[n||"medium"]})]})})});it.displayName="ButtonLink";const jr=it,Cr=V("flex flex-col gap-3 p-3 rounded-lg",{variants:{intent:{default:"text-content-primary bg-bg-white",outline:"!border-xs border-solid border-border-utility-discovery bg-bg-white text-content-text-default"},shadow:{none:"",xs:"shadow-xs",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl"}},defaultVariants:{intent:"default",shadow:"none"}}),ct=C.forwardRef(({className:t,intent:r,shadow:n,children:o,...i},a)=>u.jsx("div",{ref:a,className:G(Cr({intent:r,shadow:n,className:t})),...i,children:o}));ct.displayName="Card";const Er=ct,Rr=V("transition-colors",{variants:{intent:{"display-sm":"text-7xl leading-6xl tracking-tight","display-lg":"text-9xl leading-7xl tracking-tight","title-xs":"text-2xl leading-2xl tracking-tight","title-sm":"text-3xl leading-3xl tracking-tight","title-md":"text-4xl leading-4xl tracking-tight","title-lg":"text-5xl leading-5xl tracking-tight","title-xl":"text-6xl leading-6xl tracking-tight","label-xs":"text-2xs leading-xs tracking-normal","label-sm":"text-xs leading-sm tracking-normal","label-md":"text-sm leading-md tracking-normal","label-lg":"text-base leading-lg tracking-normal","label-xl":"text-lg leading-lg tracking-normal","label-2xl":"text-xl leading-xl tracking-normal","label-3xl":"text-2xl leading-2xl tracking-normal","paragraph-xs":"text-xs leading-md tracking-normal","paragraph-sm":"text-sm leading-md tracking-normal","paragraph-md":"text-base leading-lg tracking-normal","paragraph-lg":"text-lg leading-xl tracking-normal","overline-sm":"text-xs leading-md tracking-widest","overline-lg":"text-sm leading-md tracking-widest"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"paragraph-md",weight:"regular"}}),$=({as:t="span",intent:r,className:n,weight:o,...i})=>{const a=t;return u.jsx(a,{className:G(Rr({intent:r,weight:o,className:n})),...i})},dt=C.forwardRef(({label:t,iconName:r,className:n,helperText:o,error:i,touched:a,options:l,placeholder:d="Select an option",...b},p)=>{const[f,g]=C.useState(!1),[x,I]=C.useState("");return u.jsxs("div",{className:G("flex flex-col gap-3",n),children:[t&&u.jsx("label",{htmlFor:b.id,children:u.jsx($,{intent:"label-lg",weight:"semibold",children:t})}),u.jsxs("div",{className:"relative w-fit",children:[r&&u.jsx("span",{className:"absolute left-2 top-1/2 -translate-y-1/2",children:u.jsx(A,{iconName:r,size:16})}),u.jsx("input",{ref:p,className:_e("flex w-full cursor-pointer items-center gap-2 rounded-sm border-xs p-3 pr-9 transition-colors placeholder:text-base placeholder:text-content-text-subtlest focus:outline-1 lg:hover:bg-bg-subtle-hover",{"border-border-subtlest focus:outline-border-accent-violet lg:hover:border-border-accent-violet":!i,"border-border-utility-danger focus:outline-border-utility-danger":i&&a,"border-border-utility-success focus:outline-border-utility-success":a&&!i,"pl-9":r}),...b,onFocus:()=>g(!0),onBlur:()=>g(!1),placeholder:d,value:x,readOnly:!0}),u.jsx(u.Fragment,{children:f&&u.jsx("div",{className:"absolute left-0 z-10 mt-2 w-full rounded-sm border-xs border-border-utility-discovery bg-bg-white p-1 shadow-xs",children:l==null?void 0:l.map(N=>u.jsxs("button",{className:"hover:text-content-text-primary relative w-full rounded-sm p-2 text-left text-content-text-subtle lg:hover:bg-bg-subtle-hover",onClick:()=>{I(N.value),g(!1)},children:[u.jsx($,{intent:"label-lg",weight:"semibold",children:N.label}),x===N.value&&u.jsx(A,{iconName:"IconCheck",size:16,className:"absolute right-2 top-1/2 -translate-y-1/2"})]},N.value))})})]}),i&&a?u.jsx($,{intent:"label-md",className:"-mt-1 text-content-utility-danger-bolder",children:i}):u.jsx($,{intent:"label-md",className:"-mt-1 text-content-text-subtle",children:o})]})});dt.displayName="DropdownSelect";const ut=C.forwardRef(({label:t,iconName:r,className:n,helperText:o,error:i,touched:a,...l},d)=>(typeof r=="string"&&(r={name:r}),u.jsxs("div",{className:G("flex flex-col gap-3",n),children:[t&&u.jsx("label",{htmlFor:l.id,children:u.jsx($,{intent:"label-lg",weight:"semibold",children:t})}),u.jsxs("div",{className:"relative w-fit",children:[r&&u.jsx("span",{className:"absolute left-2 top-1/2 -translate-y-1/2",children:typeof r=="object"?u.jsx(A,{iconName:r.name,stroke:r.stroke,size:16}):u.jsx(A,{iconName:r})}),i&&a&&u.jsx(A,{iconName:"IconAlertCircle",size:16,className:"absolute right-2 top-1/2 -translate-y-1/2 text-content-utility-danger-bolder"}),a&&!i&&u.jsx(A,{iconName:"IconCircleCheck",size:16,className:"absolute right-2 top-1/2 -translate-y-1/2 text-content-utility-success"}),u.jsx("input",{ref:d,className:_e("flex w-fit items-center gap-2 rounded-sm border-xs p-3 pr-9 transition-colors focus:outline-1",{"border-border-subtlest focus:outline-border-accent-violet lg:hover:border-border-accent-violet":!i,"border-border-utility-danger focus:outline-border-utility-danger":i&&a,"border-border-utility-success focus:outline-border-utility-success":a&&!i,"pl-9":r}),...l})]}),i&&a?u.jsx($,{intent:"label-md",className:"-mt-1 text-content-utility-danger-bolder",children:i}):u.jsx($,{intent:"label-md",className:"-mt-1 text-content-text-subtle",children:o})]})));ut.displayName="Input";const _r=({className:t,children:r,isOpen:n,setIsOpen:o})=>{C.useEffect(()=>{const l=d=>{d.key==="Escape"&&o(!1)};return window.addEventListener("keydown",l),()=>{window.removeEventListener("keydown",l)}},[o]);const i=window.innerWidth-document.body.offsetWidth;C.useEffect(()=>{n?(document.body.style.overflow="hidden",document.body.style.paddingRight=`${i}px`):(document.body.style.overflow="unset",document.body.style.paddingRight="0px")},[n,i]);const a=l=>{l.target===l.currentTarget&&o(!1)};return u.jsx("div",{id:"overlay",onClick:a,className:`
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
<%s key={someKey} {...props} />`,O,T,ue,T),Jt[T+O]=!0)}if(T=null,k!==void 0&&(t(k),T=""+k),u(w)&&(t(w.key),T=""+w.key),"key"in w){k={};for(var Ce in w)Ce!=="key"&&(k[Ce]=w[Ce])}else k=w;return T&&m(k,typeof n=="function"?n.displayName||n.name||"Unknown":n),h(n,T,B,K,c(),k)}function y(n,w){if(typeof n=="object"&&n&&n.$$typeof!==bn){if(je(n))for(var k=0;k<n.length;k++){var O=n[k];v(O)&&S(O,w)}else if(v(n))n._store&&(n._store.validated=1);else if(n===null||typeof n!="object"?k=null:(k=te&&n[te]||n["@@iterator"],k=typeof k=="function"?k:null),typeof k=="function"&&k!==n.entries&&(k=k.call(n),k!==n))for(;!(n=k.next()).done;)v(n.value)&&S(n.value,w)}}function v(n){return typeof n=="object"&&n!==null&&n.$$typeof===z}function S(n,w){if(n._store&&!n._store.validated&&n.key==null&&(n._store.validated=1,w=g(w),!Qt[w])){Qt[w]=!0;var k="";n&&n._owner!=null&&n._owner!==c()&&(k=null,typeof n._owner.tag=="number"?k=e(n._owner.type):typeof n._owner.name=="string"&&(k=n._owner.name),k=" It was passed a child from "+k+".");var O=L.getCurrentStack;L.getCurrentStack=function(){var K=b(n.type);return O&&(K+=O()||""),K},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',w,k),L.getCurrentStack=O}}function g(n){var w="",k=c();return k&&(k=e(k.type))&&(w=`
|
|
28
|
+
|
|
29
|
+
Check the render method of \``+k+"`."),w||(n=e(n))&&(w=`
|
|
30
|
+
|
|
31
|
+
Check the top-level render call using <`+n+">."),w}var M=x,z=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),J=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),Z=Symbol.for("react.offscreen"),te=Symbol.iterator,de=Symbol.for("react.client.reference"),L=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=Object.prototype.hasOwnProperty,H=Object.assign,he=Symbol.for("react.client.reference"),je=Array.isArray,ye=0,_,V,ie,Me,Te,ze,pe;o.__reactDisabledLog=!0;var ce,Ut,Ke=!1,Ze=new(typeof WeakMap=="function"?WeakMap:Map),bn=Symbol.for("react.client.reference"),Ht,Xt={},Jt={},Qt={};Ne.Fragment=j,Ne.jsx=function(n,w,k,O,K){return f(n,w,k,!1,O,K)},Ne.jsxs=function(n,w,k,O,K){return f(n,w,k,!0,O,K)}}()),Ne}process.env.NODE_ENV==="production"?Fe.exports=$t():Fe.exports=er();var s=Fe.exports;const tr=x.forwardRef(({rounded:e=!0,...r},t)=>{const o=e?"rounded-full":"rounded-sm";if(!r.src)throw new Error("The src prop is required");return s.jsx("img",{...r,ref:t,className:`h-full w-full object-cover ${o}`})});function et(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var d=e.length;for(r=0;r<d;r++)e[r]&&(t=et(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function re(){for(var e,r,t=0,o="",d=arguments.length;t<d;t++)(e=arguments[t])&&(r=et(e))&&(o&&(o+=" "),o+=r);return o}const Ve="-",rr=e=>{const r=nr(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const i=l.split(Ve);return i[0]===""&&i.length!==1&&i.shift(),tt(i,r)||or(l)},getConflictingClassGroupIds:(l,i)=>{const b=t[l]||[];return i&&o[l]?[...b,...o[l]]:b}}},tt=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),d=o?tt(e.slice(1),o):void 0;if(d)return d;if(r.validators.length===0)return;const a=e.join(Ve);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},rt=/^\[(.+)\]$/,or=e=>{if(rt.test(e)){const r=rt.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},nr=e=>{const{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return sr(Object.entries(e.classGroups),t).forEach(([a,l])=>{Be(l,o,a,r)}),o},Be=(e,r,t,o)=>{e.forEach(d=>{if(typeof d=="string"){const a=d===""?r:ot(r,d);a.classGroupId=t;return}if(typeof d=="function"){if(ar(d)){Be(d(o),r,t,o);return}r.validators.push({validator:d,classGroupId:t});return}Object.entries(d).forEach(([a,l])=>{Be(l,ot(r,a),t,o)})})},ot=(e,r)=>{let t=e;return r.split(Ve).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},ar=e=>e.isThemeGetter,sr=(e,r)=>r?e.map(([t,o])=>{const d=o.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[t,d]}):e,lr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const d=(a,l)=>{t.set(a,l),r++,r>e&&(r=0,o=t,t=new Map)};return{get(a){let l=t.get(a);if(l!==void 0)return l;if((l=o.get(a))!==void 0)return d(a,l),l},set(a,l){t.has(a)?t.set(a,l):d(a,l)}}},nt="!",dr=e=>{const{separator:r,experimentalParseClassName:t}=e,o=r.length===1,d=r[0],a=r.length,l=i=>{const b=[];let c=0,u=0,m;for(let v=0;v<i.length;v++){let S=i[v];if(c===0){if(S===d&&(o||i.slice(v,v+a)===r)){b.push(i.slice(u,v)),u=v+a;continue}if(S==="/"){m=v;continue}}S==="["?c++:S==="]"&&c--}const p=b.length===0?i:i.substring(u),h=p.startsWith(nt),f=h?p.substring(1):p,y=m&&m>u?m-u:void 0;return{modifiers:b,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:y}};return t?i=>t({className:i,parseClassName:l}):l},ir=e=>{if(e.length<=1)return e;const r=[];let t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},cr=e=>({cache:lr(e.cacheSize),parseClassName:dr(e),...rr(e)}),ur=/\s+/,br=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:d}=r,a=[],l=e.trim().split(ur);let i="";for(let b=l.length-1;b>=0;b-=1){const c=l[b],{modifiers:u,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:h}=t(c);let f=!!h,y=o(f?p.substring(0,h):p);if(!y){if(!f){i=c+(i.length>0?" "+i:i);continue}if(y=o(p),!y){i=c+(i.length>0?" "+i:i);continue}f=!1}const v=ir(u).join(":"),S=m?v+nt:v,g=S+y;if(a.includes(g))continue;a.push(g);const M=d(y,f);for(let z=0;z<M.length;++z){const A=M[z];a.push(S+A)}i=c+(i.length>0?" "+i:i)}return i};function mr(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=at(r))&&(o&&(o+=" "),o+=t);return o}const at=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=at(e[o]))&&(t&&(t+=" "),t+=r);return t};function gr(e,...r){let t,o,d,a=l;function l(b){const c=r.reduce((u,m)=>m(u),e());return t=cr(c),o=t.cache.get,d=t.cache.set,a=i,i(b)}function i(b){const c=o(b);if(c)return c;const u=br(b,t);return d(b,u),u}return function(){return a(mr.apply(null,arguments))}}const F=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},st=/^\[(?:([a-z-]+):)?(.+)\]$/i,fr=/^\d+\/\d+$/,hr=new Set(["px","full","screen"]),pr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,se=e=>we(e)||hr.has(e)||fr.test(e),me=e=>ke(e,"length",Mr),we=e=>!!e&&!Number.isNaN(Number(e)),Ge=e=>ke(e,"number",we),Pe=e=>!!e&&Number.isInteger(Number(e)),kr=e=>e.endsWith("%")&&we(e.slice(0,-1)),P=e=>st.test(e),ge=e=>pr.test(e),jr=new Set(["length","size","percentage"]),Cr=e=>ke(e,jr,lt),Sr=e=>ke(e,"position",lt),Nr=new Set(["image","url"]),Pr=e=>ke(e,Nr,zr),Er=e=>ke(e,"",Tr),Ee=()=>!0,ke=(e,r,t)=>{const o=st.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},Mr=e=>xr.test(e)&&!yr.test(e),lt=()=>!1,Tr=e=>vr.test(e),zr=e=>wr.test(e),Ar=gr(()=>{const e=F("colors"),r=F("spacing"),t=F("blur"),o=F("brightness"),d=F("borderColor"),a=F("borderRadius"),l=F("borderSpacing"),i=F("borderWidth"),b=F("contrast"),c=F("grayscale"),u=F("hueRotate"),m=F("invert"),p=F("gap"),h=F("gradientColorStops"),f=F("gradientColorStopPositions"),y=F("inset"),v=F("margin"),S=F("opacity"),g=F("padding"),M=F("saturate"),z=F("scale"),A=F("sepia"),j=F("skew"),D=F("space"),Y=F("translate"),Q=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",P,r],N=()=>[P,r],ae=()=>["",se,me],U=()=>["auto",we,P],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",P],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[we,P];return{cacheSize:500,separator:":",theme:{colors:[Ee],spacing:[se,me],blur:["none","",ge,P],brightness:H(),borderColor:[e],borderRadius:["none","","full",ge,P],borderSpacing:N(),borderWidth:ae(),contrast:H(),grayscale:L(),hueRotate:H(),invert:L(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[kr,me],inset:$(),margin:$(),opacity:H(),padding:N(),saturate:H(),scale:H(),sepia:L(),skew:H(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",P]}],container:["container"],columns:[{columns:[ge]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ee(),P]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pe,P]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",P]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",Pe,P]}],"grid-cols":[{"grid-cols":[Ee]}],"col-start-end":[{col:["auto",{span:["full",Pe,P]},P]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[Ee]}],"row-start-end":[{row:["auto",{span:[Pe,P]},P]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",P]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",P]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",P,r]}],"min-w":[{"min-w":[P,r,"min","max","fit"]}],"max-w":[{"max-w":[P,r,"none","full","min","max","fit","prose",{screen:[ge]},ge]}],h:[{h:[P,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[P,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[P,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[P,r,"auto","min","max","fit"]}],"font-size":[{text:["base",ge,me]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ge]}],"font-family":[{font:[Ee]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",P]}],"line-clamp":[{"line-clamp":["none",we,Ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",se,P]}],"list-image":[{"list-image":["none",P]}],"list-style-type":[{list:["none","disc","decimal",P]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",se,me]}],"underline-offset":[{"underline-offset":["auto",se,P]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ee(),Sr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Cr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Pr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...Z(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:Z()}],"border-color":[{border:[d]}],"border-color-x":[{"border-x":[d]}],"border-color-y":[{"border-y":[d]}],"border-color-s":[{"border-s":[d]}],"border-color-e":[{"border-e":[d]}],"border-color-t":[{"border-t":[d]}],"border-color-r":[{"border-r":[d]}],"border-color-b":[{"border-b":[d]}],"border-color-l":[{"border-l":[d]}],"divide-color":[{divide:[d]}],"outline-style":[{outline:["",...Z()]}],"outline-offset":[{"outline-offset":[se,P]}],"outline-w":[{outline:[se,me]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[se,me]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ge,Er]}],"shadow-color":[{shadow:[Ee]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...te(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",ge,P]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[m]}],saturate:[{saturate:[M]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",P]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",P]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",P]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[Pe,P]}],"translate-x":[{"translate-x":[Y]}],"translate-y":[{"translate-y":[Y]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",P]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[se,me,Ge]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),E=(...e)=>Ar(re(e)),dt=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,it=re,X=(e,r)=>t=>{var o;if((r==null?void 0:r.variants)==null)return it(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:d,defaultVariants:a}=r,l=Object.keys(d).map(c=>{const u=t==null?void 0:t[c],m=a==null?void 0:a[c];if(u===null)return null;const p=dt(u)||dt(m);return d[c][p]}),i=t&&Object.entries(t).reduce((c,u)=>{let[m,p]=u;return p===void 0||(c[m]=p),c},{}),b=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((c,u)=>{let{class:m,className:p,...h}=u;return Object.entries(h).every(f=>{let[y,v]=f;return Array.isArray(v)?v.includes({...a,...i}[y]):{...a,...i}[y]===v})?[...c,m,p]:c},[]);return it(e,l,b,t==null?void 0:t.class,t==null?void 0:t.className)},Dr=X("",{variants:{intent:{"display-sm":"text-7xl leading-6xl tracking-tight","display-lg":"text-9xl leading-7xl tracking-tight","title-xs":"text-2xl leading-2xl tracking-tight","title-sm":"text-3xl leading-3xl tracking-tight","title-md":"text-4xl leading-4xl tracking-tight","title-lg":"text-5xl leading-5xl tracking-tight","title-xl":"text-6xl leading-6xl tracking-tight","label-xs":"text-2xs leading-xs tracking-normal","label-sm":"text-xs leading-sm tracking-normal","label-md":"text-sm leading-md tracking-normal","label-lg":"text-base leading-lg tracking-normal","label-xl":"text-lg leading-lg tracking-normal","label-2xl":"text-xl leading-xl tracking-normal","label-3xl":"text-2xl leading-2xl tracking-normal","paragraph-xs":"text-xs leading-md tracking-normal","paragraph-sm":"text-sm leading-md tracking-normal","paragraph-md":"text-base leading-lg tracking-normal","paragraph-lg":"text-lg leading-xl tracking-normal","overline-sm":"text-xs leading-md tracking-widest","overline-lg":"text-sm leading-md tracking-widest"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"paragraph-md",weight:"regular"}}),W=({as:e="span",intent:r,className:t,weight:o,...d})=>{const a=e;return s.jsx(a,{className:E(Dr({intent:r,weight:o,className:t})),...d})},ct=x.forwardRef(({iconName:e,iconText:r,stroke:t=1,onClick:o,size:d=24,...a},l)=>{if(e){const i=qt[e];return s.jsx(i,{ref:l,stroke:t,onClick:o,size:d,...a})}else if(r){const i=r.slice(0,2).toUpperCase();return s.jsx("div",{className:"flex items-center justify-center",style:{width:d,height:d},children:s.jsx(W,{intent:d<=16?"label-sm":"label-md",children:i})})}else return console.error(`Icon ${e} not found`),null});ct.displayName="IconComponent";const I=ct,Ir=X("!border-sm flex w-fit items-center justify-center gap-2 rounded-sm",{variants:{utility:{error:"border-border-transparent bg-background-utility-error-light text-content-utility-error",warning:"border-border-transparent bg-background-utility-warning-light text-content-utility-warning",success:"border-border-transparent bg-background-utility-success-light text-content-utility-success",info:"border-border-transparent bg-background-utility-info-light text-content-utility-info"},intent:{neutral:"border-border-transparent bg-background-blue-subtle text-content-text-default",brand:"border-border-transparent bg-background-brand text-content-text-inverse","brand-subtle":"border-border-transparent bg-background-brand-subtle text-content-accent-brand","brand-bolder":"border-border-transparent bg-background-brand-bolder text-content-text-inverse",blue:"border-border-transparent bg-background-blue text-content-text-inverse","blue-subtle":"border-border-transparent bg-background-blue-subtle text-content-accent-blue","blue-bolder":"border-border-transparent bg-background-blue-bolder text-content-text-inverse",yellow:"border-border-transparent bg-background-yellow text-content-text-inverse","yellow-subtle":"border-border-transparent bg-background-yellow-subtle text-content-accent-yellow","yellow-bolder":"border-border-transparent bg-background-yellow-bolder text-content-text-inverse","violet-subtle":"bg-background-violet-subtle text-content-accent-violet border-border-transparent",violet:"bg-background-violet border-border-transparent text-content-text-inverse","violet-bolder":"bg-background-violet-bolder border-border-transparent text-content-text-inverse"},size:{xs:"px-3 py-1 text-xs",sm:"px-4 py-2 text-xs",md:"px-4 py-2 text-sm",lg:"px-4 py-2 text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},rounded:{rectangle:"rounded-sm",full:"rounded-full"}},defaultVariants:{size:"xs",weight:"regular",rounded:"rectangle"}}),ut=x.forwardRef(({children:e,iconLeft:r,iconRight:t,utility:o,intent:d,iconOnly:a,size:l,rounded:i,weight:b,className:c,...u},m)=>{typeof r=="string"&&(r={name:r}),typeof t=="string"&&(t={name:t});const p={xs:"h-3",sm:"h-4",md:"h-4",lg:"h-5"},h=o?{utility:o}:{intent:d},f=a?{iconOnly:a}:{size:l};return s.jsxs("span",{ref:m,className:E(Ir({...h,...f,rounded:i,weight:b,className:c}),a&&"px-2.5 py-2"),...u,children:[r&&s.jsx(I,{iconName:r.name,stroke:r.stroke,className:p[l||"xs"]}),!a&&e,t&&s.jsx(I,{iconName:t.name,stroke:t.stroke,className:p[l||"xs"]})]})});ut.displayName="Badge";const bt=ut,De=({className:e})=>s.jsx(I,{iconName:"IconLoader2",className:`${e} animate-spin`}),Ye="relative flex items-center justify-center gap-2 rounded-sm !border-xs transition-colors",mt=X(Ye,{variants:{intent:{"primary-red":["bg-button-primary-red-background-enabled","text-button-primary-red-content-enabled","border-button-primary-red-border-enabled","lg:hover:bg-button-primary-red-background-hover","lg:hover:text-button-primary-red-content-hover","lg:hover:border-button-primary-red-border-hover","lg:active:bg-button-primary-red-background-pressed","lg:active:text-button-primary-red-content-pressed","lg:active:border-button-primary-red-border-pressed","disabled:bg-button-primary-red-background-disabled","disabled:text-button-primary-red-content-disabled","disabled:border-button-primary-red-border-disabled","disabled:lg:hover:bg-button-primary-red-background-disabled","disabled:lg:hover:text-button-primary-red-content-disabled","disabled:lg:hover:border-button-primary-red-border-disabled"],"primary-blue":["bg-button-primary-blue-background-enabled","text-button-primary-blue-content-enabled","border-button-primary-blue-border-enabled","lg:hover:bg-button-primary-blue-background-hover","lg:hover:text-button-primary-blue-content-hover","lg:hover:border-button-primary-blue-border-hover","lg:active:bg-button-primary-blue-background-pressed","lg:active:text-button-primary-blue-content-pressed","lg:active:border-button-primary-blue-border-pressed","disabled:bg-button-primary-blue-background-disabled","disabled:text-button-primary-blue-content-disabled","disabled:border-button-primary-blue-border-disabled","disabled:lg:hover:bg-button-primary-blue-background-disabled","disabled:lg:hover:text-button-primary-blue-content-disabled","disabled:lg:hover:border-button-primary-blue-border-disabled"],secondary:["bg-button-secondary-background-enabled","text-button-secondary-content-enabled","border-button-secondary-border-enabled","lg:hover:bg-button-secondary-background-hover","lg:hover:text-button-secondary-content-hover","lg:hover:border-button-secondary-border-hover","lg:active:bg-button-secondary-background-pressed","lg:active:text-button-secondary-content-pressed","lg:active:border-button-secondary-border-pressed","disabled:bg-button-secondary-background-disabled","disabled:text-button-secondary-content-disabled","disabled:border-button-secondary-border-disabled","disabled:lg:hover:bg-button-secondary-background-disabled","disabled:lg:hover:text-button-secondary-content-disabled","disabled:lg:hover:border-button-secondary-border-disabled"],ghost:["bg-button-ghost-background-enabled","text-button-ghost-content-enabled","border-button-ghost-border-enabled","lg:hover:bg-button-ghost-background-hover","lg:hover:text-button-ghost-content-hover","lg:hover:border-button-ghost-border-hover","lg:active:bg-button-ghost-background-pressed","lg:active:text-button-ghost-content-pressed","lg:active:border-button-ghost-border-pressed","disabled:bg-button-ghost-background-disabled","disabled:text-button-ghost-content-disabled","disabled:border-button-ghost-border-disabled","disabled:lg:hover:bg-button-ghost-background-disabled","disabled:lg:hover:text-button-ghost-content-disabled","disabled:lg:hover:border-button-ghost-border-disabled"],outline:["bg-button-outline-background-enabled","text-button-outline-content-enabled","border-button-outline-border-enabled","lg:hover:bg-button-outline-background-hover","lg:hover:text-button-outline-content-hover","lg:hover:border-button-outline-border-hover","lg:active:bg-button-outline-background-pressed","lg:active:text-button-outline-content-pressed","lg:active:border-button-outline-border-pressed","disabled:bg-button-outline-background-disabled","disabled:text-button-outline-content-disabled","disabled:border-button-outline-border-disabled","disabled:lg:hover:bg-button-outline-background-disabled","disabled:lg:hover:text-button-outline-content-disabled","disabled:lg:hover:border-button-outline-border-disabled"],destructive:["bg-button-destructive-background-enabled","text-button-destructive-content-enabled","border-button-destructive-border-enabled","lg:hover:bg-button-destructive-background-hover","lg:hover:text-button-destructive-content-hover","lg:hover:border-button-destructive-border-hover","lg:active:bg-button-destructive-background-pressed","lg:active:text-button-destructive-content-pressed","lg:active:border-button-destructive-border-pressed","disabled:bg-button-destructive-background-disabled","disabled:text-button-destructive-content-disabled","disabled:border-button-destructive-border-disabled","disabled:lg:hover:bg-button-destructive-background-disabled","disabled:lg:hover:text-button-destructive-content-disabled","disabled:lg:hover:border-button-destructive-border-disabled"]},size:{sm:"p-button-sm text-sm",md:"p-button-md text-base",lg:"p-button-lg text-lg"},rounded:{sm:"rounded-sm",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary-red",size:"md",weight:"regular"}}),gt=X(`${Ye} cursor-default`,{variants:{intent:{"primary-red":["border-button-primary-red-border-pressed","bg-button-primary-red-background-pressed","text-button-primary-red-content-pressed"],"primary-blue":["border-button-primary-blue-border-pressed","bg-button-primary-blue-background-pressed","text-button-primary-blue-content-pressed"],secondary:["border-button-secondary-border-enabled","bg-button-secondary-background-enabled","text-button-secondary-content-enabled"],ghost:["border-button-ghost-border-pressed","bg-button-ghost-background-pressed","text-button-ghost-content-pressed"],outline:["border-button-outline-border-pressed","bg-button-outline-background-pressed","text-button-outline-content-pressed"],destructive:["border-button-destructive-border-pressed","bg-button-destructive-background-pressed","text-button-destructive-content-pressed"]},size:{sm:"p-button-sm text-sm",md:"p-button-md text-base",lg:"p-button-lg text-lg"},rounded:{sm:"rounded-sm",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary-red",size:"md",weight:"regular"}}),ft=X(Ye,{variants:{intent:{"primary-red":["bg-button-primary-red-background-pressed","text-button-primary-red-content-pressed","border-button-primary-red-border-pressed"],"primary-blue":["bg-button-primary-blue-background-pressed","text-button-primary-blue-content-pressed","border-button-primary-blue-border-pressed"],secondary:["bg-button-secondary-background-pressed","text-button-secondary-content-pressed","border-button-secondary-border-pressed"],ghost:["bg-button-ghost-background-pressed","text-button-ghost-content-pressed","border-button-ghost-border-pressed"],outline:["bg-button-outline-background-pressed","text-button-outline-content-pressed","border-button-outline-border-pressed"],destructive:["bg-button-destructive-background-pressed","text-button-destructive-content-pressed","border-button-destructive-border-pressed"]},size:{sm:"p-button-sm text-sm",md:"p-button-md text-base",lg:"p-button-lg text-lg"},rounded:{sm:"rounded-sm",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary-red",size:"md",weight:"regular"}}),ht=x.forwardRef(({className:e,intent:r,size:t,weight:o,rounded:d,children:a,iconLeft:l,iconRight:i,iconTextLeft:b,iconTextRight:c,isLoading:u,isActive:m,disabled:p,...h},f)=>{typeof l=="string"&&(l={name:l}),typeof i=="string"&&(i={name:i});const y={sm:"h-6",md:"h-6",lg:"h-6"};return s.jsxs("button",{ref:f,className:E(u?gt({intent:r,weight:o,size:t,rounded:d,className:e}):m?ft({intent:r,weight:o,size:t,rounded:d,className:e}):mt({intent:r,weight:o,size:t,rounded:d,className:e})),disabled:p||u,...h,children:[s.jsx("span",{className:`absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 ${u?"visible opacity-100":"invisible opacity-0"}`,children:s.jsx(De,{className:y[t||"md"]})}),s.jsxs("span",{className:`flex items-center justify-center gap-2 ${u?"invisible opacity-0":"visible opacity-100"}`,children:[l||b?s.jsx(I,{iconName:l==null?void 0:l.name,iconText:b,stroke:l==null?void 0:l.stroke,className:y[t||"md"]}):null,a,i||c?s.jsx(I,{iconName:i==null?void 0:i.name,iconText:c,stroke:i==null?void 0:i.stroke,className:y[t||"md"]}):null]})]})});ht.displayName="Button";const Ue="flex items-center justify-center transition-colors relative border !border-xs",pt=X(Ue,{variants:{intent:{"primary-red":["bg-button-primary-red-background-enabled","text-button-primary-red-content-enabled","border-button-primary-red-border-enabled","lg:hover:bg-button-primary-red-background-hover","lg:hover:text-button-primary-red-content-hover","lg:hover:border-button-primary-red-border-hover","lg:active:bg-button-primary-red-background-pressed","lg:active:text-button-primary-red-content-pressed","lg:active:border-button-primary-red-border-pressed","disabled:bg-button-primary-red-background-disabled","disabled:text-button-primary-red-content-disabled","disabled:border-button-primary-red-border-disabled","disabled:lg:hover:bg-button-primary-red-background-disabled","disabled:lg:hover:text-button-primary-red-content-disabled","disabled:lg:hover:border-button-primary-red-border-disabled"],"primary-blue":["bg-button-primary-blue-background-enabled","text-button-primary-blue-content-enabled","border-button-primary-blue-border-enabled","lg:hover:bg-button-primary-blue-background-hover","lg:hover:text-button-primary-blue-content-hover","lg:hover:border-button-primary-blue-border-hover","lg:active:bg-button-primary-blue-background-pressed","lg:active:text-button-primary-blue-content-pressed","lg:active:border-button-primary-blue-border-pressed","disabled:bg-button-primary-blue-background-disabled","disabled:text-button-primary-blue-content-disabled","disabled:border-button-primary-blue-border-disabled","disabled:lg:hover:bg-button-primary-blue-background-disabled","disabled:lg:hover:text-button-primary-blue-content-disabled","disabled:lg:hover:border-button-primary-blue-border-disabled"],secondary:["bg-button-secondary-background-enabled","text-button-secondary-content-enabled","border-button-secondary-border-enabled","lg:hover:bg-button-secondary-background-hover","lg:hover:text-button-secondary-content-hover","lg:hover:border-button-secondary-border-hover","lg:active:bg-button-secondary-background-pressed","lg:active:text-button-secondary-content-pressed","lg:active:border-button-secondary-border-pressed","disabled:bg-button-secondary-background-disabled","disabled:text-button-secondary-content-disabled","disabled:border-button-secondary-border-disabled","disabled:lg:hover:bg-button-secondary-background-disabled","disabled:lg:hover:text-button-secondary-content-disabled","disabled:lg:hover:border-button-secondary-border-disabled"],ghost:["bg-button-ghost-background-enabled","text-button-ghost-content-enabled","border-button-ghost-border-enabled","lg:hover:bg-button-ghost-background-hover","lg:hover:text-button-ghost-content-hover","lg:hover:border-button-ghost-border-hover","lg:active:bg-button-ghost-background-pressed","lg:active:text-button-ghost-content-pressed","lg:active:border-button-ghost-border-pressed","disabled:bg-button-ghost-background-disabled","disabled:text-button-ghost-content-disabled","disabled:border-button-ghost-border-disabled","disabled:lg:hover:bg-button-ghost-background-disabled","disabled:lg:hover:text-button-ghost-content-disabled","disabled:lg:hover:border-button-ghost-border-disabled"],outline:["bg-button-outline-background-enabled","text-button-outline-content-enabled","border-button-outline-border-enabled","lg:hover:bg-button-outline-background-hover","lg:hover:text-button-outline-content-hover","lg:hover:border-button-outline-border-hover","lg:active:bg-button-outline-background-pressed","lg:active:text-button-outline-content-pressed","lg:active:border-button-outline-border-pressed","disabled:bg-button-outline-background-disabled","disabled:text-button-outline-content-disabled","disabled:border-button-outline-border-disabled","disabled:lg:hover:bg-button-outline-background-disabled","disabled:lg:hover:text-button-outline-content-disabled","disabled:lg:hover:border-button-outline-border-disabled"],destructive:["bg-button-destructive-background-enabled","text-button-destructive-content-enabled","border-button-destructive-border-enabled","lg:hover:bg-button-destructive-background-hover","lg:hover:text-button-destructive-content-hover","lg:hover:border-button-destructive-border-hover","lg:active:bg-button-destructive-background-pressed","lg:active:text-button-destructive-content-pressed","lg:active:border-button-destructive-border-pressed","disabled:bg-button-destructive-background-disabled","disabled:text-button-destructive-content-disabled","disabled:border-button-destructive-border-disabled","disabled:lg:hover:bg-button-destructive-background-disabled","disabled:lg:hover:text-button-destructive-content-disabled","disabled:lg:hover:border-button-destructive-border-disabled"]},size:{sm:"h-[38px] w-[38px] p-[9px]",md:"h-11 w-11 p-[10px]",lg:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"primary-red",size:"md",rounded:"sm"}}),xt=X(Ue,{variants:{intent:{"primary-red":["border-button-primary-red-border-pressed","bg-button-primary-red-background-pressed","text-button-primary-red-content-pressed"],"primary-blue":["border-button-primary-blue-border-pressed","bg-button-primary-blue-background-pressed","text-button-primary-blue-content-pressed"],secondary:["border-button-secondary-border-enabled","bg-button-secondary-background-enabled","text-button-secondary-content-enabled"],ghost:["border-button-ghost-border-pressed","bg-button-ghost-background-pressed","text-button-ghost-content-pressed"],outline:["border-button-outline-border-pressed","bg-button-outline-background-pressed","text-button-outline-content-pressed"],destructive:["border-button-destructive-border-pressed","bg-button-destructive-background-pressed","text-button-destructive-content-pressed"]},size:{sm:"h-[38px] w-[38px] p-[9px]",md:"h-11 w-11 p-[10px]",lg:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"primary-red",size:"md",rounded:"sm"}}),yt=X(Ue,{variants:{intent:{"primary-red":["bg-button-primary-red-background-pressed","text-button-primary-red-content-pressed","border-button-primary-red-border-pressed"],"primary-blue":["bg-button-primary-blue-background-pressed","text-button-primary-blue-content-pressed","border-button-primary-blue-border-pressed"],secondary:["bg-button-secondary-background-pressed","text-button-secondary-content-pressed","border-button-secondary-border-pressed"],ghost:["bg-button-ghost-background-pressed","text-button-ghost-content-pressed","border-button-ghost-border-pressed"],outline:["bg-button-outline-background-pressed","text-button-outline-content-pressed","border-button-outline-border-pressed"],destructive:["bg-button-destructive-background-pressed","text-button-destructive-content-pressed","border-button-destructive-border-pressed"]},size:{sm:"h-[38px] w-[38px] p-[9px]",md:"h-11 w-11 p-[10px]",lg:"h-12 w-12 p-3"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"primary-red",size:"md",rounded:"sm"}}),vt=x.forwardRef(({iconName:e,iconText:r,className:t,intent:o="primary-red",size:d="md",rounded:a,disabled:l,isLoading:i,isActive:b,notification:c,...u},m)=>{typeof e=="string"&&(e={name:e});const p={sm:"h-5",md:"h-6",lg:"h-6"};return s.jsxs("button",{ref:m,className:E(i?xt({intent:o,size:d,rounded:a,className:t}):b?yt({intent:o,size:d,rounded:a,className:t}):pt({intent:o,size:d,rounded:a,className:t})),disabled:l||i,...u,children:[c&&!i&&s.jsx(I,{iconName:"IconCircleFilled",className:`absolute ${a==="full"?"right-2 top-2":"right-1 top-1"} h-[6px] w-[6px] ${o==="primary-red"?"text-button-primary-content-pressed":"text-button-primary-background-enabled"}`}),i?s.jsx(De,{className:p[d||"md"]}):s.jsx(s.Fragment,{children:e&&s.jsx(I,{iconName:e.name,stroke:e.stroke,iconText:r,size:24})})]})});vt.displayName="ButtonIcon";const He="flex relative items-center justify-center gap-2 transition-colors py-1",wt=X(He,{variants:{intent:{primary:["border-button-link-border-enabled","text-button-link-content-enabled","lg:hover:text-button-link-content-hover","lg:active:text-button-link-content-pressed"]},size:{sm:"text-xs",md:"text-sm",lg:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"md",weight:"regular"}}),Wr=X(`${He} cursor-default`,{variants:{intent:{primary:["text-button-link-content-pressed"]},size:{sm:"text-xs",md:"text-sm",lg:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"md",weight:"regular"}}),Or=X(He,{variants:{intent:{primary:["text-button-link-content-disabled"]},size:{sm:"text-xs",md:"text-sm",lg:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"primary",size:"md",weight:"regular"}}),kt=x.forwardRef(({className:e,intent:r,size:t,weight:o,children:d,iconLeft:a,iconRight:l,iconTextLeft:i,iconTextRight:b,isLoading:c,disabled:u,...m},p)=>{typeof a=="string"&&(a={name:a}),typeof l=="string"&&(l={name:l});const h={sm:"h-5",md:"h-5",lg:"h-6"};return s.jsxs("button",{ref:p,className:E(c?Wr({intent:r,weight:o,size:t,className:e}):u?Or({intent:r,weight:o,size:t,className:e}):wt({intent:r,weight:o,size:t,className:e})),disabled:u||c,...m,children:[s.jsx("span",{className:`absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 ${c?"visible opacity-100":"invisible opacity-0"}`,children:s.jsx(De,{className:h[t||"md"]})}),s.jsxs("span",{className:`flex items-center justify-center gap-2 ${c?"invisible opacity-0":"visible opacity-100"}`,children:[a||i?s.jsx(I,{iconName:a==null?void 0:a.name,iconText:i,stroke:a==null?void 0:a.stroke,className:h[t||"md"]}):null,d,l||b?s.jsx(I,{iconName:l==null?void 0:l.name,iconText:b,stroke:l==null?void 0:l.stroke,className:h[t||"md"]}):null]})]})});kt.displayName="ButtonLink";function le(e){return(r={})=>{const t=r.width?String(r.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}function oe(e){return(r,t)=>{const o=t!=null&&t.context?String(t.context):"standalone";let d;if(o==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,i=t!=null&&t.width?String(t.width):l;d=e.formattingValues[i]||e.formattingValues[l]}else{const l=e.defaultWidth,i=t!=null&&t.width?String(t.width):e.defaultWidth;d=e.values[i]||e.values[l]}const a=e.argumentCallback?e.argumentCallback(r):r;return d[a]}}function ne(e){return(r,t={})=>{const o=t.width,d=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],a=r.match(d);if(!a)return null;const l=a[0],i=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],b=Array.isArray(i)?Rr(i,m=>m.test(l)):_r(i,m=>m.test(l));let c;c=e.valueCallback?e.valueCallback(b):b,c=t.valueCallback?t.valueCallback(c):c;const u=r.slice(l.length);return{value:c,rest:u}}}function _r(e,r){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&r(e[t]))return t}function Rr(e,r){for(let t=0;t<e.length;t++)if(r(e[t]))return t}function jt(e){return(r,t={})=>{const o=r.match(e.matchPattern);if(!o)return null;const d=o[0],a=r.match(e.parsePattern);if(!a)return null;let l=e.valueCallback?e.valueCallback(a[0]):a[0];l=t.valueCallback?t.valueCallback(l):l;const i=r.slice(d.length);return{value:l,rest:i}}}const Fr={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ct=(e,r,t)=>{let o;const d=Fr[e];return typeof d=="string"?o=d:r===1?o=d.one:o=d.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+o:o+" ago":o},Vr={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},St=(e,r,t,o)=>Vr[e],Br={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Gr={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Yr={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ur={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Hr={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Xr={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Nt={ordinalNumber:(e,r)=>{const t=Number(e),o=t%100;if(o>20||o<10)switch(o%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:oe({values:Br,defaultWidth:"wide"}),quarter:oe({values:Gr,defaultWidth:"wide",argumentCallback:e=>e-1}),month:oe({values:Yr,defaultWidth:"wide"}),day:oe({values:Ur,defaultWidth:"wide"}),dayPeriod:oe({values:Hr,defaultWidth:"wide",formattingValues:Xr,defaultFormattingWidth:"wide"})},Jr=/^(\d+)(th|st|nd|rd)?/i,Qr=/\d+/i,Kr={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Zr={any:[/^b/i,/^(a|c)/i]},Lr={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},qr={any:[/1/i,/2/i,/3/i,/4/i]},$r={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},eo={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},to={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ro={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},oo={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},no={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Pt={ordinalNumber:jt({matchPattern:Jr,parsePattern:Qr,valueCallback:e=>parseInt(e,10)}),era:ne({matchPatterns:Kr,defaultMatchWidth:"wide",parsePatterns:Zr,defaultParseWidth:"any"}),quarter:ne({matchPatterns:Lr,defaultMatchWidth:"wide",parsePatterns:qr,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ne({matchPatterns:$r,defaultMatchWidth:"wide",parsePatterns:eo,defaultParseWidth:"any"}),day:ne({matchPatterns:to,defaultMatchWidth:"wide",parsePatterns:ro,defaultParseWidth:"any"}),dayPeriod:ne({matchPatterns:oo,defaultMatchWidth:"any",parsePatterns:no,defaultParseWidth:"any"})},ao={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},so={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},lo={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},io={date:le({formats:ao,defaultWidth:"full"}),time:le({formats:so,defaultWidth:"full"}),dateTime:le({formats:lo,defaultWidth:"full"})},Ie={code:"en-GB",formatDistance:Ct,formatLong:io,formatRelative:St,localize:Nt,match:Pt,options:{weekStartsOn:1,firstWeekContainsDate:4}},co={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uo={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bo={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},mo={date:le({formats:co,defaultWidth:"full"}),time:le({formats:uo,defaultWidth:"full"}),dateTime:le({formats:bo,defaultWidth:"full"})},We={code:"en-US",formatDistance:Ct,formatLong:mo,formatRelative:St,localize:Nt,match:Pt,options:{weekStartsOn:0,firstWeekContainsDate:1}},go={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},fo=(e,r,t)=>{let o;const d=go[e];return typeof d=="string"?o=d:r===1?o=d.one:o=d.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"en "+o:"hace "+o:o},ho={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},po={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},xo={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yo={date:le({formats:ho,defaultWidth:"full"}),time:le({formats:po,defaultWidth:"full"}),dateTime:le({formats:xo,defaultWidth:"full"})},vo={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},wo={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},ko=(e,r,t,o)=>r.getHours()!==1?wo[e]:vo[e],jo={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},Co={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},So={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},No={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},Po={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},Eo={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},Mo={ordinalNumber:(e,r)=>Number(e)+"º",era:oe({values:jo,defaultWidth:"wide"}),quarter:oe({values:Co,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:oe({values:So,defaultWidth:"wide"}),day:oe({values:No,defaultWidth:"wide"}),dayPeriod:oe({values:Po,defaultWidth:"wide",formattingValues:Eo,defaultFormattingWidth:"wide"})},To=/^(\d+)(º)?/i,zo=/\d+/i,Ao={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},Do={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},Io={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Wo={any:[/1/i,/2/i,/3/i,/4/i]},Oo={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},_o={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},Ro={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},Fo={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},Vo={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},Bo={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},Go={ordinalNumber:jt({matchPattern:To,parsePattern:zo,valueCallback:function(e){return parseInt(e,10)}}),era:ne({matchPatterns:Ao,defaultMatchWidth:"wide",parsePatterns:Do,defaultParseWidth:"any"}),quarter:ne({matchPatterns:Io,defaultMatchWidth:"wide",parsePatterns:Wo,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ne({matchPatterns:Oo,defaultMatchWidth:"wide",parsePatterns:_o,defaultParseWidth:"any"}),day:ne({matchPatterns:Ro,defaultMatchWidth:"wide",parsePatterns:Fo,defaultParseWidth:"any"}),dayPeriod:ne({matchPatterns:Vo,defaultMatchWidth:"any",parsePatterns:Bo,defaultParseWidth:"any"})},Oe={code:"es",formatDistance:fo,formatLong:yo,formatRelative:ko,localize:Mo,match:Go,options:{weekStartsOn:1,firstWeekContainsDate:1}},Yo=({onChange:e,value:r,options:t})=>s.jsx("select",{className:"focus:border-0 focus:ring-transparent focus:border-transparent text-md h-fit !w-fit cursor-pointer appearance-none rounded-md border-none pl-1 pr-9 font-semibold transition-colors focus:outline-none focus:ring-0",onChange:e,value:r,children:t==null?void 0:t.map((o,d)=>{const a=o.value===r;return s.jsx("option",{value:o.value,disabled:o.disabled,className:E("disabled:hidden",{"bg-background-blue-subtle font-semibold text-content-accent-blue":a}),children:o.label},d)})}),Uo=({orientation:e="down",size:r=16})=>s.jsx(I,{iconName:e==="left"?"IconChevronLeft":"IconChevronRight",stroke:1,size:r}),Et=({locale:e="enGB",disabledDates:r,enabledDates:t,dropdownsSelectors:o=!0,hideNavigation:d=!1,showOutsideDays:a=!0,minDate:l,maxDate:i,value:b,className:c,onChange:u})=>{const[m,p]=x.useState(),h=D=>D.filter(Y=>Y!==void 0),y=Array.isArray(t)?t.map(D=>new Date(D)):t?new Date(t):void 0,v=Array.isArray(y)?h(y):y?[y]:[],S=v.length>0?G.min(v):void 0,g=v.length>0?G.max(v):void 0,M=()=>Array.isArray(r)?r.map(D=>new Date(D)):r?new Date(r):void 0,z=Array.isArray(M())?[...M()]:[];if(S&&g){const D=G.startOfMonth(S),Y=G.endOfMonth(g);G.eachDayOfInterval({start:D,end:Y}).forEach(Q=>{v.some(J=>J.setHours(0,0,0,0)===Q.setHours(0,0,0,0))||z.push(Q)})}x.useEffect(()=>{if(b){const D=new Date(b);isNaN(D.getTime())||p(D)}else p(void 0)},[b]);const A=D=>{p(D),u&&u(D?G.format(D,"yyyy-MM-dd"):void 0)},j=e==="enGB"?Ie:e==="enUS"?We:Oe;return s.jsx("div",{className:E("p-2",c),children:s.jsx(Le.DayPicker,{mode:"single",captionLayout:o?"dropdown":"label",selected:m,onSelect:A,locale:j,startMonth:l||S||new Date(1900,1,1),endMonth:i||g||new Date(2100,12,31),disabled:z,showOutsideDays:a,hideNavigation:d,className:"p-2",classNames:{root:"w-fit text-sm text-center",weekday:"text-content-text-subtle font-regular",month_grid:"border-separate",month_caption:`h-9 relative flex items-center w-full ${d?"hidden":""}`,dropdowns:"absolute w-fit items-center justify-center z-10 left-1/2 flex -translate-x-1/2 top-1/2 -translate-y-1/2",button_next:"rounded-full border-none lg:hover:bg-background-neutral transition-colors z-[1] p-2 disabled:opacity-50",button_previous:"rounded-full border-none lg:hover:bg-background-neutral transition-colors z-[1] p-2 disabled:opacity-50",nav:"w-full h-9 top-0 left-0 absolute flex justify-between items-center gap-2",selected:"bg-background-blue-subtle border-xs !border-border-blue text-content-accent-blue lg:hover:!bg-background-blue/10 transition-colors font-semibold",today:"font-semibold bg-background-blue-subtle",disabled:"text-content-text-disabled lg:hover:!bg-background-white border-border-subtle",caption_label:"text-content-text-default text-base font-semibold leading-none self-center w-full",outside:"text-content-text-disabled border-border-subtle bg-background-white",day_button:"text-sm h-9 w-9 whitespace-nowrap border-none",day:"h-9 w-9 aspect-square text-sm rounded-sm border-xs border-border-default lg:hover:bg-background-blue-subtle transition-colors p-0 whitespace-nowrap"},components:{Dropdown:Yo,Chevron:({orientation:D,size:Y})=>s.jsx(Uo,{orientation:D,size:Y})}})})},Ho=X("flex flex-col gap-4 p-6 text-content-text-default rounded-lg",{variants:{intent:{default:"bg-background-white",outline:"!border-xs border-solid border-border-default bg-background-white"},shadow:{none:"",xs:"shadow-xs",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl"}},defaultVariants:{intent:"default",shadow:"none"}}),Mt=x.forwardRef(({className:e,intent:r,shadow:t,children:o,...d},a)=>s.jsx("div",{ref:a,className:E(Ho({intent:r,shadow:t,className:e})),...d,children:o}));Mt.displayName="Card";const Xo=Mt,Jo=x.forwardRef(({label:e,className:r,helperText:t,error:o,touched:d,...a},l)=>s.jsxs("div",{className:E("flex flex-col gap-3",r),children:[s.jsxs("div",{className:"flex flex-row items-center gap-3",children:[s.jsx("input",{type:"checkbox",className:re("checked:border-2 checked:ring-offset-transparent h-6 w-6 rounded-sm transition-colors duration-100 checked:text-content-accent-blue focus:outline-border-bolder"),ref:l,...a}),e&&s.jsx("label",{htmlFor:a.id,children:s.jsx(W,{intent:"label-lg",weight:"semibold",className:"text-content-text-subtle",children:e})})]}),t&&s.jsx(W,{intent:"label-md",className:"text-content-text-subtle",children:t}),o&&d&&s.jsx(W,{intent:"label-md",className:"text-content-utility-error",children:o})]})),Tt=X("inline-flex items-center gap-2 rounded-full !border-xs px-3 py-1 transition-colors cursor-pointer",{variants:{intent:{selected:["bg-background-blue-subtle","text-content-text-default","border-border-blue-bolder","lg:hover:bg-background-blue/10"],unselected:["bg-background-white","text-content-text-default","border-border-subtle","lg:hover:bg-background-neutral"],error:["bg-background-utility-error-light","text-content-text-subtle","border-border-utility-error"],disabled:["bg-background-disabled","text-content-text-disabled-bolder","border-border-subtle","cursor-not-allowed"]},size:{sm:"text-xs",md:"text-sm",lg:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"unselected",size:"md",weight:"regular"}}),Xe=x.forwardRef(({className:e,intent:r,size:t,weight:o,children:d,iconLeft:a,iconRight:l,notification:i,disabled:b,...c},u)=>(typeof a=="string"&&(a={name:a}),typeof l=="string"&&(l={name:l}),s.jsxs("button",{ref:u,className:E(Tt({intent:r,size:t,weight:o,className:e})),disabled:b,type:"button",...c,children:[a&&s.jsx(I,{iconName:a==null?void 0:a.name,stroke:a==null?void 0:a.stroke,size:16}),d,l&&s.jsx(I,{iconName:l==null?void 0:l.name,stroke:l==null?void 0:l.stroke,size:16}),i&&s.jsx(I,{iconName:"IconCircleFilled",size:6,className:"text-content-utility-error"})]})));Xe.displayName="Chip";const _e=x.forwardRef(({children:e,trigger:r,open:t=!1,placement:o="bottom-start",closeOnAction:d=!1,close:a=!1,className:l,onMouseDown:i,onMouseUp:b,popoverWidth:c="auto",disabled:u=!1},m)=>{var Q;const[p,h]=x.useState(t),f=x.useRef(null),{refs:y,floatingStyles:v,context:S}=R.useFloating({open:p,onOpenChange:h,placement:o,middleware:[R.offset(8),R.flip(),R.shift()],whileElementsMounted:R.autoUpdate}),g=R.useDismiss(S,{outsidePress:!0}),{getReferenceProps:M,getFloatingProps:z}=R.useInteractions([g]),{isMounted:A}=R.useTransitionStatus(S),{styles:j}=R.useTransitionStyles(S,{initial:{opacity:0,transform:"scale(0.90)",transitionDuration:"0.1s",transitionTimingFunction:"ease-out"},open:{opacity:1,transform:"scale(1)",transitionDuration:"0.1s",transitionTimingFunction:"ease-out"},close:{opacity:0,transform:"scale(0.90)",transitionDuration:"0.1s",transitionTimingFunction:"ease-out"}}),D=J=>{J.stopPropagation(),h($=>!$)},Y=x.cloneElement(r,{onClick:D,ref:J=>{f.current=J,y.setReference(J)},...M()});return x.useEffect(()=>{a&&h(!1)},[a]),u?r:s.jsxs(s.Fragment,{children:[Y,A&&s.jsx(R.FloatingPortal,{children:s.jsx("div",{ref:y.setFloating,style:{...v,minWidth:c==="as-trigger"?(Q=f.current)==null?void 0:Q.offsetWidth:void 0},className:"z-[99999]",...z(),children:s.jsx("div",{style:{...j},ref:m,className:E("rounded-sm bg-background-white p-4 shadow-sm",l),onMouseDown:i,onMouseUp:b,onClick:d?()=>h(!1):void 0,children:e||s.jsx("div",{children:"Your placeholder here"})})})})]})}),zt=x.forwardRef(({className:e,placeholder:r,placement:t="bottom",label:o,helperText:d,disabledDates:a,enabledDates:l,calendarDropdowns:i=!0,hideNavigation:b=!1,showOutsideDays:c=!0,closeOnAction:u=!0,locale:m="enGB",error:p,touched:h,value:f,minDate:y,onChange:v,maxDate:S,disabled:g=!1,...M},z)=>{const[A,j]=x.useState(),[D,Y]=x.useState(!1);function Q(){Y(!0),setTimeout(()=>{Y(!1)},200)}const J=N=>{j(N),v&&v({target:{name:M.name,value:N?G.format(N,"yyyy-MM-dd"):""}}),u&&Q()};x.useEffect(()=>{if(f){const N=new Date(f);isNaN(N.getTime())||j(N)}else j(void 0)},[f]);const $=m==="enGB"?Ie:m==="enUS"?We:Oe;return s.jsxs("div",{ref:z,className:E("flex flex-col gap-3",e),...M,children:[o&&s.jsx("label",{htmlFor:M.id,children:s.jsx(W,{intent:"label-lg",weight:"semibold",children:o})}),s.jsx(_e,{disabled:g,trigger:s.jsxs("button",{type:"button",className:E("flex w-full cursor-pointer items-center gap-2 whitespace-pre-wrap rounded-sm !border-xs border-border-default p-3 text-base focus:border-border-bolder focus:outline-2 focus:outline-offset-4 focus:outline-border-bolder",{"text-content-text-subtlest":!A,"border-border-blue bg-background-blue-subtle font-semibold text-content-accent-blue focus:border-border-blue-bolder active:border-border-blue-bolder":A,"border-border-utility-success focus:outline-border-utility-success":h&&!p,"border-border-utility-error focus:outline-border-utility-error":p&&h,"cursor-default opacity-50":g}),children:[s.jsx(I,{iconName:"IconCalendar",size:20,className:"pointer-events-none"}),A?G.format(A,"PPP",{locale:$}):r||"Select a date",s.jsx("input",{hidden:!0,onChange:()=>null,value:A?G.format(A,"yyyy-MM-dd"):f||""}),s.jsx(I,{iconName:"IconChevronDown",size:16,className:"ml-auto text-content-text-default"})]}),close:D,placement:t,className:"rounded-sm !border-xs border-border-default p-0 shadow-none",children:s.jsx(Et,{locale:m,disabledDates:a,enabledDates:l,hideNavigation:b,dropdownsSelectors:i,showOutsideDays:c,value:A?G.format(A,"yyyy-MM-dd"):f,maxDate:S,minDate:y,onChange:N=>{const ae=N?new Date(N):void 0;J(ae)},className:"p-0"})}),p&&h?s.jsx(W,{intent:"label-md",className:"text-content-utility-error",children:p}):d?s.jsx(W,{intent:"label-md",children:d}):null]})});zt.displayName="Datepicker";const Qo=({onChange:e,value:r,options:t})=>s.jsx("select",{className:"focus:border-0 focus:ring-transparent focus:border-transparent text-md h-fit !w-fit cursor-pointer appearance-none rounded-md border-none pl-1 pr-9 font-semibold transition-colors focus:outline-none focus:ring-0",onChange:e,value:r,children:t==null?void 0:t.map((o,d)=>{const a=o.value===r;return s.jsx("option",{value:o.value,disabled:o.disabled,className:E("disabled:hidden",{"bg-background-blue-subtle font-semibold text-content-accent-blue":a}),children:o.label},d)})}),Ko=({orientation:e="down",size:r=16})=>s.jsx(I,{iconName:e==="left"?"IconChevronLeft":"IconChevronRight",stroke:1,size:r}),At=x.forwardRef(({className:e,locale:r="enGB",placeholder:t,label:o,disabledDates:d,helperText:a,placement:l="bottom",error:i,touched:b,startDate:c,endDate:u,calendarDropdowns:m=!0,onChange:p,minDate:h,maxDate:f,disabled:y=!1,...v},S)=>{const[g,M]=x.useState({from:c?new Date(c):void 0,to:u?new Date(u):void 0}),z=j=>{if(M(j),p){const D={from:j.from?G.format(j.from,"yyyy-MM-dd"):"",to:j.to?G.format(j.to,"yyyy-MM-dd"):""};p({target:{name:v.name,value:D}})}};x.useEffect(()=>{if(c){const j=new Date(c);isNaN(j.getTime())||M(D=>({...D,from:j}))}if(u){const j=new Date(u);isNaN(j.getTime())||M(D=>({...D,to:j}))}},[c,u]);const A=r==="enGB"?Ie:r==="enUS"?We:Oe;return s.jsxs("div",{ref:S,className:E("flex flex-col gap-3",e),...v,children:[o&&s.jsx("label",{htmlFor:v.id,children:s.jsx(W,{intent:"label-lg",weight:"semibold",children:o})}),s.jsx(_e,{disabled:y,trigger:s.jsxs("button",{type:"button",className:E("flex w-full cursor-pointer items-center gap-2 whitespace-pre-wrap rounded-sm !border-xs border-border-default p-3 text-base focus:border-border-bolder focus:outline-2 focus:outline-offset-4 focus:outline-border-bolder",{"text-content-text-subtlest":!g.from&&!g.to,"border-border-blue bg-background-blue-subtle font-semibold text-content-accent-blue focus:border-border-blue-bolder active:border-border-blue-bolder":g.from&&g.to,"border-border-utility-success focus:outline-border-utility-success":b&&!i,"border-border-utility-error focus:outline-border-utility-error":i&&b,"cursor-default opacity-50":y}),children:[s.jsx(I,{iconName:"IconCalendar",size:20,className:"pointer-events-none"}),g.from&&g.to?`${G.format(g.from,"PPP",{locale:A})} - ${G.format(g.to,"PPP",{locale:A})}`:t||"Select a date range",s.jsx("input",{hidden:!0,onChange:()=>null,value:g.from&&g.to?`${G.format(g.from,"yyyy-MM-dd")} to ${G.format(g.to,"yyyy-MM-dd")}`:`${c||""} to ${u||""}`})]}),placement:l,popoverWidth:"auto",className:"rounded-sm !border-xs border-border-default p-0 shadow-none",children:s.jsx(Le.DayPicker,{mode:"range",captionLayout:m?"dropdown":"label",selected:g,onSelect:z,locale:A,startMonth:h||new Date(1900,0,1),endMonth:f||new Date(2100,11,31),showOutsideDays:!0,disabled:d,className:"p-2",required:!0,classNames:{root:"w-fit text-sm text-center",weekday:"text-content-text-subtle font-regular",month_grid:"border-separate",month_caption:"h-9 relative flex items-center w-full",dropdowns:"absolute w-fit items-center justify-center z-10 left-1/2 flex -translate-x-1/2 top-1/2 -translate-y-1/2",button_next:"rounded-full border-none lg:hover:bg-background-neutral transition-colors z-[1] p-2",button_previous:"rounded-full border-none lg:hover:bg-background-neutral transition-colors z-[1] p-2",nav:"w-full h-9 top-0 left-0 absolute flex justify-between items-center gap-2",selected:"bg-background-blue-subtle border-xs !border-border-blue text-content-accent-blue lg:hover:!bg-background-blue/10 transition-colors font-semibold",today:"font-semibold bg-background-blue-subtle",outside:"text-content-text-disabled border-border-subtle bg-background-white",day_button:"text-sm h-9 w-9 whitespace-nowrap border-none",caption_label:"text-content-text-default text-base font-semibold leading-none self-center w-full",disabled:"text-content-text-disabled lg:hover:!bg-background-white border-border-subtle",day:"h-9 w-9 aspect-square text-sm rounded-sm border-xs border-border-default lg:hover:bg-background-blue-subtle transition-colors p-0 whitespace-nowrap",range_end:"!bg-background-blue border-xs !border-border-blue text-content-text-inverse lg:hover:!bg-background-blue/90 transition-colors font-semibold",range_start:"!bg-background-blue border-xs !border-border-blue text-content-text-inverse lg:hover:!bg-background-blue/90 transition-colors font-semibold",range_middle:"bg-background-blue-subtle border-xs !border-border-blue text-content-accent-blue lg:hover:bg-background-blue-subtle/30 transition-colors font-semibold"},components:{Dropdown:Qo,Chevron:({orientation:j,size:D})=>s.jsx(Ko,{orientation:j,size:D})}})}),i&&b?s.jsx(W,{intent:"label-md",className:"text-content-utility-error",children:i}):s.jsx(W,{intent:"label-md",children:a})]})});At.displayName="DateRangePicker";const Dt={enGB:Ie,enUS:We,es:Oe},Zo=e=>{const r=G.startOfWeek(new Date,{locale:Dt[e],weekStartsOn:1}),t=G.eachDayOfInterval({start:r,end:G.addMinutes(r,6*24*60)}),o=["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"];return t.map((d,a)=>({label:G.format(d,"EEEE",{locale:Dt[e]}),value:o[a]}))},Lo=(e,r,t)=>{const o=[];let d=new Date(`1970-01-01T${e}:00`);const a=new Date(`1970-01-01T${r}:00`);for(;d<=a;)o.push(G.format(d,"HH:mm")),d=G.addMinutes(d,t);return o},qo=e=>{if(new Set(e).size!==e.length)throw new Error("Duplicate days found in disabledDays")},$o=({availableHours:e={start:"00:00",end:"23:30"},availableTimes:r,onSelectionChange:t,locale:o="enGB",intervalMinutes:d=30,singleSelection:a=!1,singleSelectionPerDay:l=!0,disabledDays:i=[]})=>{qo(i);const b=x.useMemo(()=>Zo(o),[o]),c=x.useMemo(()=>r?Object.keys(r):[],[r]),u=x.useCallback(()=>{for(const g of b)if(!i.includes(g.value)&&(c.includes(g.value)||!r))return g.value;return"MONDAY"},[b,i,c,r]),[m,p]=x.useState(u()),[h,f]=x.useState({});x.useEffect(()=>{p(u())},[]);const y=x.useMemo(()=>{var g;return r&&c.includes(m)?((g=r[m])==null?void 0:g.filter(M=>{const z=new Date(`1970-01-01T${M}:00`),A=new Date(`1970-01-01T${e.start}:00`),j=new Date(`1970-01-01T${e.end}:00`);return z>=A&&z<=j}))||[]:Lo(e.start,e.end,d)},[r,c,m,e,d]),v=g=>{if(!c.includes(m)&&r)return;const M={...h};if(a){for(const z in M)M[z]=[];M[m]=[g]}else if(l)M[m]=[g];else{const z=h[m]||[];M[m]=z.includes(g)?z.filter(A=>A!==g):[...z,g]}f(M),t==null||t(M)},S=g=>{i.includes(g)||p(g)};return s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx("div",{className:"grid grid-cols-7",children:b.map(g=>{var j;const M=m===g.value,z=(((j=h[g.value])==null?void 0:j.length)||0)>0,A=(r?!c.includes(g.value):!1)||i.includes(g.value);return s.jsxs("button",{type:"button","aria-label":g.label,onClick:()=>S(g.value),disabled:A,className:E("flex justify-start gap-1 !border-b-sm bg-background-white p-1 text-left text-sm capitalize transition-colors ease-in-out max-md:flex-col-reverse md:items-center",{"border-border-blue-bolder font-semibold":M,"border-border-subtle text-content-text-subtlest":!M,"opacity-50":A}),children:[g.label.slice(0,3),s.jsx("span",{className:E("rounded-full bg-background-blue p-0.5 text-content-text-inverse",{"opacity-0":!z||A}),children:s.jsx(I,{iconName:"IconCalendarCheck",size:16})})]},g.value)})}),s.jsx("div",{className:"grid grid-cols-3 gap-3 sm:grid-cols-5",children:y.map(g=>{var A;const M=(A=h[m])==null?void 0:A.includes(g),z=(r?!c.includes(m):!1)||i.includes(m);return s.jsx("button",{type:"button","aria-label":g,className:E("rounded-sm !border-xs bg-background-white p-1 text-center text-base transition-colors ease-in-out",{"border-border-blue-bolder font-semibold text-content-accent-blue":M&&!z,"border-border-default text-content-text-default":!M&&!z,"cursor-not-allowed border-border-subtle opacity-50":z}),onClick:()=>!z&&v(g),children:g},`${m}-${g}`)})})]})},It=x.forwardRef(({className:e,orientation:r="horizontal",...t},o)=>s.jsx("span",{ref:o,className:E("bg-border-subtle",e,{"h-px w-full":r==="horizontal","h-full w-px":r==="vertical"}),...t}));It.displayName="Divider";const en=It,Wt=({ref:e,handler:r})=>{x.useEffect(()=>{const t=o=>{e.current&&!e.current.contains(o.target)&&r()};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[e,r])},Ot=({className:e,...r})=>s.jsx("div",{className:E("relative isolate h-4 w-full space-y-5 overflow-hidden rounded-md bg-background-black/10 p-2 shadow-xl shadow-background-black/5 before:absolute before:inset-0 before:-translate-x-full before:animate-shimmer before:border-t-xs before:border-background-black/5 before:bg-gradient-to-r before:from-background-transparent before:via-background-black/5 before:to-background-transparent",e),...r}),_t=x.forwardRef(({label:e,iconName:r,className:t,helperText:o,error:d,touched:a,options:l=[],placement:i="bottom",placeholder:b="Select an option",searchPlaceholder:c="Search...",canSelectAll:u,selectAllLabel:m="Select All",canSearch:p,multiple:h,value:f,dropdownWidth:y,asyncSearch:v,isLoading:S=!1,onSearch:g,noOptionsMessage:M="No options found",disableSearchWhileLoading:z=!1,disabled:A=!1,...j},D)=>{const[Y,Q]=x.useState(!1),[J,$]=x.useState(l),[N,ae]=x.useState(""),[U,ee]=x.useState(null),[Z,te]=x.useState([]);function de(){Q(!0),setTimeout(()=>{Q(!1)},200)}x.useEffect(()=>{if(l)if(h){const _=l.filter(V=>f==null?void 0:f.includes(V.value));te(_)}else{const _=l.find(V=>V.value===f)||null;ee(_)}},[f,l,h]),x.useEffect(()=>{v&&$(l)},[l,v]),x.useEffect(()=>{v||$(l.filter(_=>_.label.toLowerCase().includes(N.toLowerCase())))},[N,l,v]);const L=_=>{const V=_.target.value;ae(V),v&&g&&g(V)},fe=_=>{var V,ie,Me,Te,ze;if(_===null){h?(te([]),(V=j.onChange)==null||V.call(j,[])):(ee(null),(ie=j.onChange)==null||ie.call(j,null),de());return}if(h){let pe=[...Z];Z.some(ce=>ce.value===_.value)?pe=pe.filter(ce=>ce.value!==_.value):pe.push(_),te(pe),(Me=j.onChange)==null||Me.call(j,pe.map(ce=>ce.value))}else U&&U.value===_.value?(ee(null),(Te=j.onChange)==null||Te.call(j,null)):(ee(_),(ze=j.onChange)==null||ze.call(j,_.value)),de()},H=x.useRef(null);Wt({ref:H,handler:()=>de()});const he=l.length===Z.length,je=h?Z.length===0:U===null,ye=()=>{var _,V;he?(te([]),(_=j.onChange)==null||_.call(j,[])):(te(l),(V=j.onChange)==null||V.call(j,l.map(ie=>ie.value)))};return s.jsxs("div",{ref:D,className:E("flex flex-col gap-3",t),children:[e&&s.jsx("label",{htmlFor:j.id,children:s.jsx(W,{intent:"label-lg",weight:"semibold",children:e})}),s.jsx(_e,{placement:i,close:Y,className:"w-full overflow-hidden rounded-sm !border-xs border-border-bolder p-0 shadow-none",popoverWidth:y,disabled:A,trigger:s.jsxs("div",{ref:H,className:E("relative flex w-full cursor-pointer items-center justify-between gap-2 rounded-sm !border-xs border-border-default p-3 text-left transition-colors placeholder:text-base placeholder:text-content-text-subtlest focus:outline-1 focus:outline-offset-4 lg:hover:bg-background-neutral",{"border-border-bolder":!Y,"focus:outline-border-default lg:hover:border-border-default":!d,"border-border-utility-error focus:outline-border-utility-error":d&&a,"border-border-utility-success focus:outline-border-utility-success":a&&!d&&(h?Z.length!==null:U!==null),"pl-9":r,"border-border-blue bg-background-blue-subtle text-content-accent-blue":!je,"cursor-default opacity-50":A}),...j,tabIndex:0,role:"combobox","aria-expanded":!Y,"aria-haspopup":"listbox","aria-labelledby":j.id,children:[r&&s.jsx(I,{iconName:r,size:16,className:"absolute left-2 top-1/2 min-h-4 min-w-4 -translate-y-1/2"}),s.jsx(W,{intent:"label-lg",className:E("flex-1 truncate",{"text-content-text-subtlest":h?Z.length===0:!U}),weight:je?"regular":"semibold",children:h?Z.map(_=>_.label).join(", ")||b:(U==null?void 0:U.label)||b}),s.jsx(I,{iconName:"IconChevronDown",size:16,className:"ml-auto text-content-text-default"})]}),children:s.jsxs("div",{className:"flex max-h-60 w-full flex-col overflow-y-auto",role:"listbox",tabIndex:-1,children:[p&&s.jsx("input",{type:"text",className:"w-full border-b-xs border-border-subtle p-2 text-sm text-content-text-default focus:border-border-subtle focus:border-border-transparent focus:bg-background-neutral focus:outline-none focus:ring-0 disabled:opacity-50",placeholder:c,value:N,onChange:L,disabled:S&&z}),S?s.jsx("div",{className:"space-y-2 p-2",children:[...Array(3)].map((_,V)=>s.jsx(Ot,{className:"h-10 w-full rounded-sm"},V))}):s.jsxs(s.Fragment,{children:[!p&&!h&&s.jsx("button",{type:"button",className:"w-full rounded-sm border-b-xs border-border-subtle px-3 py-4 text-left text-content-text-subtlest hover:text-content-text-subtle lg:hover:bg-background-neutral",onClick:()=>fe(null),tabIndex:Y?-1:0,children:s.jsx(W,{intent:"label-md",children:b})}),h&&u&&s.jsx("div",{children:s.jsxs("button",{onClick:ye,className:E("flex w-full items-center gap-3 overflow-ellipsis whitespace-nowrap border-b-xs border-border-subtle px-3 py-4 text-left text-sm transition-all",{"bg-background-blue-subtle font-semibold text-content-accent-blue":he,"text-content-text-subtle lg:hover:bg-background-blue-subtle lg:hover:text-content-text-default":!he}),children:[s.jsx(I,{iconName:he?"IconSquareCheckFilled":"IconSquare",size:20,className:re("max-h-5 min-h-5 min-w-5 max-w-5",{"text-background-blue":he,"text-content-text-subtlest":!he})}),m]})}),J.length===0&&!S?s.jsx("div",{className:"p-4 text-center text-content-text-subtlest",children:s.jsx(W,{intent:"label-md",children:M})}):J.map(_=>{const V=h?Z.some(ie=>ie.value===_.value):(U==null?void 0:U.value)===_.value;return s.jsxs("button",{type:"button",className:E("flex w-full gap-3 overflow-ellipsis whitespace-nowrap border-b-xs border-border-subtle px-3 py-4 text-left transition-all",{"bg-background-blue-subtle text-content-accent-blue":V,"text-content-text-subtle lg:hover:bg-background-blue-subtle lg:hover:text-content-text-default":!V}),onClick:()=>fe(_),tabIndex:Y?-1:0,children:[s.jsx(I,{iconName:V?"IconSquareCheckFilled":"IconSquare",size:20,className:re("max-h-5 min-h-5 min-w-5 max-w-5",{"text-background-blue":V,"text-content-text-subtlest":!V})}),s.jsx(W,{intent:"label-md",weight:V?"semibold":"regular",children:_.label})]},_.value)})]})]})}),d&&a?s.jsx(W,{intent:"label-md",className:"-mt-1 text-content-utility-error",children:d}):o?s.jsx(W,{intent:"label-md",className:"-mt-1 text-content-text-subtle",children:o}):null]})});_t.displayName="DropdownSelect";const Rt=x.forwardRef(({label:e,iconName:r,className:t,helperText:o,error:d,touched:a,type:l="text",...i},b)=>{typeof r=="string"&&(r={name:r});const[c,u]=x.useState(!1),m=l==="textarea"?"textarea":"input";return s.jsxs("div",{className:"flex flex-col gap-3",children:[e&&s.jsx("label",{htmlFor:i.id,children:s.jsx(W,{intent:"label-lg",weight:"semibold",className:re({"text-content-text-disabled-bolder":i.disabled}),children:e})}),s.jsxs("div",{className:"relative w-full",children:[r&&l!=="textarea"&&l!=="color"&&s.jsx("span",{className:re("absolute left-3 top-1/2 -translate-y-1/2",{"text-content-text-subtle":!d&&!a,"text-content-utility-error":d&&a,"text-content-utility-success":a&&!d&&i.value!==void 0,"text-content-text-disabled-bolder":i.disabled}),children:typeof r=="object"?s.jsx(I,{iconName:r.name,stroke:r.stroke,size:20}):s.jsx(I,{iconName:r,size:20})}),d&&a&&l!=="password"&&l!=="color"&&s.jsx(I,{iconName:"IconAlertCircleFilled",size:20,className:"absolute right-2 top-1/2 -translate-y-1/2 text-content-utility-error"}),a&&!d&&i.value!==void 0&&l!=="password"&&l!=="color"&&s.jsx(I,{iconName:"IconCircleCheckFilled",size:20,className:"absolute right-2 top-1/2 -translate-y-1/2 text-content-utility-success"}),l==="password"&&s.jsx("button",{type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 rounded-full p-1 transition-colors lg:hover:bg-background-neutral",onClick:()=>u(!c),children:s.jsx(I,{iconName:c?"IconEyeOff":"IconEye",size:20})}),s.jsx(m,{ref:b,className:E("peer flex w-full items-center gap-2 rounded-sm border-xs border-border-default p-3 outline-offset-2 transition-colors focus:border-xs focus:border-border-bolder focus:outline-2 focus:outline-border-bolder focus:ring-0 active:border-xs disabled:border-background-disabled disabled:bg-background-disabled disabled:text-content-text-disabled-bolder disabled:placeholder:text-content-text-disabled lg:hover:bg-background-neutral",{"border-border-utility-error pr-9 text-content-utility-error focus:border-border-utility-error focus:outline-border-utility-error":d&&a,"!border-border-utility-success pr-9 text-content-utility-success focus:border-border-utility-success focus:outline-border-utility-success":a&&!d&&i.value!==void 0,"pl-9":r&&l!=="textarea","h-[50px] p-0":l==="color","pr-10":l==="password"},t),type:l==="password"?c?"text":"password":l,...i})]}),d&&a?s.jsx(W,{intent:"label-md",className:"-mt-1 text-content-utility-error",children:d}):o?s.jsx(W,{intent:"label-md",className:re("-mt-1",{"text-content-text-subtle":!d&&!a,"text-content-utility-error":d&&a,"text-content-utility-success":a&&!d&&i.value!==void 0,"text-content-text-disabled-bolder":i.disabled}),children:o}):null]})});Rt.displayName="Input";const Ft=({className:e,children:r,isOpen:t,setIsOpen:o,canClose:d=!0,intent:a="card",overlay:l="blur",closeButtonAriaLabel:i="Close",closeOnClickOutside:b=!0})=>{const{refs:c,context:u}=R.useFloating({open:t,onOpenChange:o,whileElementsMounted:R.autoUpdate}),m=R.useClick(u),p=R.useDismiss(u,{outsidePress:b,escapeKey:!0}),h=R.useRole(u),{getFloatingProps:f}=R.useInteractions([m,p,h]),{styles:y}=R.useTransitionStyles(u,{initial:{opacity:0,transform:a==="sheet"?"translateY(30px)":"scale(0.90)",transitionDuration:"0.1s",transitionTimingFunction:"ease-out"},open:{opacity:1,transform:a==="sheet"?"translateY(0)":"scale(1)",transitionDuration:"0.1s",transitionTimingFunction:"ease-out"},close:{opacity:0,transform:a==="sheet"?"translateY(30px)":"scale(0.90)",transitionDuration:"0.1s",transitionTimingFunction:"ease-out"}});return t?s.jsx(R.FloatingPortal,{children:s.jsx(R.FloatingOverlay,{lockScroll:!0,className:E("z-[999] overflow-hidden",{"flex items-center justify-center":a==="card"||a==="wizard"||a==="fullscreen","flex items-end justify-center":a==="sheet","bg-surface-overlay":l==="opacity","bg-background-white/80 backdrop-blur-[2px]":l==="blur"}),children:s.jsx(R.FloatingFocusManager,{context:u,children:s.jsxs("div",{ref:c.setFloating,...f(),style:{...y},className:E("relative bg-background-white shadow-sm",{"md-w-fit m-2 rounded-lg p-6":a==="card","w-full translate-y-0 rounded-xs p-6":a==="sheet","m-0 h-dvh w-dvw rounded-none p-6":a==="fullscreen","m-0 h-dvh w-dvw rounded-none p-0":a==="wizard"},e),children:[d&&a!=="wizard"&&o&&s.jsx("button",{"aria-label":i,type:"button",onClick:()=>o(!1),className:"absolute right-4 top-4 cursor-pointer transition-colors lg:hover:text-content-text-subtle",children:s.jsx(I,{iconName:"IconX"})}),r]})})})}):null},Je=({children:e,trigger:r,className:t,placement:o="top",iconName:d="IconInfoCircleFilled",arrow:a})=>{const[l,i]=x.useState(!1),b=x.useRef(null),[c,u]=x.useState(!1);x.useEffect(()=>{u(window.innerWidth<768);const S=()=>u(window.innerWidth<768);return window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)},[]);const{refs:m,floatingStyles:p,context:h}=R.useFloating({placement:o,middleware:[R.offset(8),R.flip(),R.shift(),a?R.arrow({element:b}):void 0],open:l}),{isMounted:f}=R.useTransitionStatus(h),{styles:y}=R.useTransitionStyles(h,{initial:{opacity:0,transform:"scale(0.90)",transitionDuration:"0.1s",transitionTimingFunction:"ease-out"},open:{opacity:1,transform:"scale(1)",transitionDuration:"0.1s",transitionTimingFunction:"ease-out"},close:{opacity:0,transform:"scale(0.90)",transitionDuration:"0.1s",transitionTimingFunction:"ease-out"}}),v=()=>{c&&i(!0)};return s.jsxs(s.Fragment,{children:[s.jsx("div",{ref:m.setReference,className:"relative inline-flex",onClick:c?v:void 0,onMouseEnter:c?void 0:()=>i(!0),onMouseLeave:c?void 0:()=>i(!1),onFocus:c?void 0:()=>i(!0),onBlur:c?void 0:()=>i(!1),"data-state":l?"open":"closed",role:"tooltip","aria-describedby":"tooltip-content",tabIndex:0,children:r||s.jsx(I,{iconName:d,size:20,className:"min-h-5 min-w-5 text-content-accent-blue-bolder"})}),!c&&f&&s.jsx(R.FloatingPortal,{children:s.jsxs("div",{ref:m.setFloating,style:p,children:[a?s.jsx(R.FloatingArrow,{ref:b,context:h,width:24,height:14,style:{...y},tipRadius:2,className:"z-[51] fill-background-white drop-shadow-sm"}):null,s.jsx("div",{style:{...y},className:E("z-50 rounded-md bg-background-white p-3 text-sm shadow-sm",t),role:"tooltip",id:"tooltip-content",children:e})]})}),c&&s.jsx(Ft,{isOpen:l,setIsOpen:i,intent:"sheet",overlay:"opacity",children:e})]})};Je.displayName="Tooltip";const tn=X("flex flex-col gap-4 p-6 rounded-lg !border-xs transition-colors ease-in-out",{variants:{intent:{default:"border-border-transparent bg-background-white",outline:"border-solid border-border-subtle bg-background-white"},shadow:{none:"",xs:"shadow-xs",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl"}},defaultVariants:{intent:"outline",shadow:"none"}}),Vt=x.forwardRef(({className:e,intent:r,shadow:t,isActive:o,title:d,text:a,helperText:l,badgeText:i,disabled:b,utilityBadge:c,colorBadge:u,badgeSize:m="xs",iconName:p,iconText:h,tooltipIconName:f="IconHelpCircleFilled",tooltipText:y,tooltipTitle:v,tooltipPlacement:S="top",...g},M)=>s.jsxs("div",{ref:M,className:E(tn({intent:r,shadow:t,className:e}),{"border-border-blue-bolder bg-background-blue-subtle":o,"border-border-transparent bg-background-disabled":b,"cursor-pointer active:lg:bg-background-blue/10":g.onClick&&o&&!b,"cursor-pointer active:lg:bg-background-neutral/80":g.onClick&&!o&&!b}),...g,children:[i||p||h?s.jsxs("div",{className:"flex items-center justify-between",children:[p||h?s.jsx("div",{className:E("rounded-sm p-2",{"bg-background-blue-subtle text-content-accent-blue":!o,"bg-background-white text-content-accent-blue":o,"bg-background-white text-content-text-disabled-bolder":b}),children:s.jsx(I,{iconName:p,iconText:h,size:20})}):null,i?s.jsx(bt,{utility:c,intent:u,size:m,weight:"semibold",className:"justify-self-end",children:i}):null,y?s.jsx("div",{className:"w-fit",children:s.jsx(Je,{placement:S,trigger:f?s.jsx(I,{iconName:f,size:20,className:"min-w-5 min-h-5"}):void 0,children:v||y?s.jsxs("div",{className:"flex flex-col gap-1 text-content-text-subtle",children:[v?s.jsx(W,{as:"p",intent:"paragraph-md",weight:"semibold",children:v}):null,y?s.jsx(W,{as:"p",intent:"paragraph-md",children:y}):null]}):null})}):null]}):null,s.jsxs("div",{className:"flex flex-col gap-1",children:[d?s.jsx(W,{intent:"label-xl",weight:"semibold",className:E("text-content-text-default",{"text-content-text-disabled-bolder":b}),children:d}):null,a?s.jsx(W,{intent:"paragraph-md",className:E("text-content-text-subtle",{"text-content-text-disabled-bolder":b}),children:a}):null]}),l?s.jsx(W,{intent:"paragraph-sm",className:E("text-content-text-subtlest",{"text-content-text-disabled-bolder":b}),children:l}):null]}));Vt.displayName="InteractiveCard";const rn=Vt,Bt=X("transition-all ease-out duration-500 relative overflow-hidden",{variants:{intent:{brand:"bg-background-brand",green:"bg-background-utility-success",blue:"bg-background-blue",yellow:"bg-background-yellow"},size:{sm:"h-3",md:"h-4",lg:"h-5"},rounded:{full:"rounded-full",sm:"rounded-sm"}},defaultVariants:{intent:"brand",size:"md",rounded:"full"}}),on=({progress:e,className:r,intent:t,size:o,rounded:d="full",...a})=>{const l={sm:"text-2xs",md:"text-sm",lg:"text-base"};return s.jsxs("div",{className:"bg-back relative mt-9",...a,children:[s.jsx("span",{className:`absolute bottom-full mb-2 text-content-text-inverse ${l[o||"md"]} w-12 rounded-md bg-background-black px-1.5 py-0.5 text-center`,style:{left:`${e}%`,transform:`${e>50?"translateX(-100%)":"translateX(0%)"} `},children:s.jsxs(W,{intent:"label-md",weight:"semibold",children:[e,"%"]})}),s.jsx("span",{className:E("inner-block border-l-border-transparent border-r-border-transparent absolute bottom-full mb-0.5 border-[8px] border-b-none border-t-background-black"),style:{left:`${e}%`,transform:`${e>50?"translateX(-110%)":"translateX(10%)"} `}}),s.jsx("div",{className:E(Bt({size:o,rounded:d}),"relative w-full bg-background-disabled"),children:s.jsx("div",{className:E(Bt({intent:t,size:o,rounded:d,className:r})),style:{width:`${e}%`}})})]})},nn=({id:e,label:r,options:t,multiple:o=!1,selectedOptions:d,setSelectedOptions:a,className:l,disabled:i,helperText:b,error:c,touched:u})=>{const m=d,p=f=>{if(!o)return a(f.value),f.value;let y=[];return y=Array.isArray(m)?m.includes(f.value)?m.filter(v=>v!==f.value):[...m,f.value]:[f.value],a(y),y},h=f=>o&&Array.isArray(d)?d.includes(f.value):d===f.value;return t.length===0?null:s.jsxs("div",{className:E("flex flex-col gap-3",l),children:[r&&s.jsx("label",{htmlFor:e,children:s.jsx(W,{intent:"label-lg",weight:"semibold",className:re({"text-content-text-disabled-bolder":i}),children:r})}),s.jsx("div",{className:"flex flex-wrap gap-2",children:t.map(f=>{const y=h(f);return s.jsx(Xe,{intent:y?"selected":"unselected",iconLeft:y?"IconCheck":void 0,onClick:()=>p(f),disabled:i,children:f.label},f.label)})}),c&&u?s.jsx(W,{intent:"label-md",className:"-mt-1 text-content-utility-error",children:c}):s.jsx(W,{intent:"label-md",className:re("-mt-1",{"text-content-text-subtle":!c&&!u,"text-content-utility-error":c&&u,"text-content-utility-success":u&&!c,"text-content-text-disabled-bolder":i}),children:b})]})},an=X("inline-flex shrink-0 cursor-pointer items-center rounded-full !border-sm border-border-subtle transition-colors focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-border-default focus-visible:ring-offset-2 focus-visible:!ring-offset-border-transparent disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-background-blue data-[state=unchecked]:bg-background-white",{variants:{switchSize:{sm:"h-[18px] w-8",md:"h-[22px] w-11"}},defaultVariants:{switchSize:"md"}}),sn=X("pointer-events-none block rounded-full ring-0 transition-transform data-[state=unchecked]:translate-x-px data-[state=checked]:bg-background-white data-[state=unchecked]:bg-background-disabled",{variants:{switchSize:{sm:"h-3.5 w-3.5 data-[state=checked]:translate-x-[15px]",md:"h-[18px] w-[18px] data-[state=checked]:translate-x-[23px]"}},defaultVariants:{switchSize:"md"}}),Gt=x.forwardRef(({className:e,defaultChecked:r,checked:t,onCheckedChange:o,disabled:d,switchSize:a,...l},i)=>{const[b,c]=x.useState(r||!1),u=t!==void 0,m=u?t:b,p=()=>{if(d)return;const f=!m;u||c(f),o==null||o(f)},h=f=>{(f.key===" "||f.key==="Enter")&&(f.preventDefault(),p())};return s.jsx("button",{ref:i,type:"button",role:"switch","aria-checked":m,"data-state":m?"checked":"unchecked",onClick:p,onKeyDown:h,disabled:d,className:E(an({switchSize:a,className:e})),...l,children:s.jsx("span",{"data-state":m?"checked":"unchecked",className:sn({switchSize:a})})})});Gt.displayName="Switch";const ln=X("pointer-events-auto flex w-fit gap-4 rounded-sm p-3 shadow-sm",{variants:{intent:{info:"bg-background-blue-subtle text-content-accent-blue",success:"bg-background-utility-success-light text-content-utility-success",warning:"bg-background-utility-warning-light text-content-accent-yellow",error:"bg-background-utility-error-light text-content-utility-error",neutral:"bg-background-neutral text-content-text-default"}},defaultVariants:{intent:"info"}}),Qe=x.forwardRef(({className:e,title:r,message:t,intent:o,onClose:d,canClose:a,position:l,duration:i,...b},c)=>{const u=l==="top"||l==="top-left"||l==="top-right"?"animate-fade-in-top-to-bottom":"animate-fade-in-bottom-to-top",m=l==="top"||l==="top-left"||l==="top-right"?"animate-fade-out-bottom-to-top":"animate-fade-out-top-to-bottom",[p,h]=x.useState(!1);return x.useEffect(()=>{if(i&&a){const f=setTimeout(()=>{h(!0)},i-250);return()=>clearTimeout(f)}},[i,a]),x.useEffect(()=>{if(p&&d&&a){const f=setTimeout(()=>{d()},250);return()=>clearTimeout(f)}},[p,d,a]),s.jsxs("div",{ref:c,className:E(ln({intent:o}),e,a&&u,p&&a&&m),...b,children:[s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(I,{iconName:o==="info"?"IconInfoCircleFilled":o==="success"?"IconCircleCheckFilled":o==="warning"?"IconAlertTriangleFilled":o==="error"?"IconForbidFilled":"IconHelpCircleFilled",size:16}),r?s.jsx(W,{intent:"label-lg",className:"text-content-text-default",weight:"semibold",children:r}):null,s.jsx(W,{intent:"paragraph-sm",className:"text-content-text-default",children:t})]}),a?s.jsx("button",{"aria-label":"Close",type:"button",onClick:()=>h(!0),children:s.jsx(I,{iconName:"IconX",size:16,className:"min-h-4 min-w-4"})}):null]})});Qe.displayName="Toast";const Yt=x.createContext(void 0),dn=()=>{const e=x.useContext(Yt);if(!e)throw new Error("useToasts must be used within a ToastProvider");return e},cn=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,un=({children:e})=>{const[r,t]=x.useState([]),[o,d]=x.useState(!1),[a,l]=x.useState(""),i=x.useCallback(c=>{t(u=>u.filter(m=>m.id!==c))},[r]);x.useEffect(()=>{d(!0)},[]);const b=x.useCallback(({title:c,message:u,intent:m,position:p="bottom-right",canClose:h,duration:f=4e3})=>{const y=cn(),v={id:y,title:c,message:u,intent:m,position:p,canClose:h,duration:f,onClose:()=>i(y)};switch(t(S=>[...S.slice(-2),v]),setTimeout(()=>{t(S=>S.filter(g=>g.id!==y))},f),p){case"top-right":l("top-4 right-4");break;case"top-left":l("top-4 left-4");break;case"top":l("top-4 left-1/2 -translate-x-1/2");break;case"bottom-left":l("bottom-4 left-4");break;case"bottom":l("bottom-4 left-1/2 -translate-x-1/2");break;default:case"bottom-right":l("bottom-4 right-4");break}},[i]);return s.jsxs(Yt.Provider,{value:b,children:[e,o?Zt.createPortal(s.jsx("div",{className:"pointer-events-none fixed inset-0 z-[9999]",children:s.jsx("div",{className:`absolute flex flex-col gap-4 ${a}`,children:r.map(c=>s.jsx(Qe,{title:c.title,message:c.message,intent:c.intent,canClose:c.canClose,position:c.position,duration:c.duration,onClose:()=>i(c.id)},c.id))})}),document.body):null]})};C.Avatar=tr,C.Badge=bt,C.Button=ht,C.ButtonIcon=vt,C.ButtonLink=kt,C.Calendar=Et,C.Card=Xo,C.Checkbox=Jo,C.Chip=Xe,C.DateRangePicker=At,C.Datepicker=zt,C.DayTimePicker=$o,C.Divider=en,C.DropdownSelect=_t,C.IconComponent=I,C.Input=Rt,C.InteractiveCard=rn,C.Modal=Ft,C.Popover=_e,C.ProgressBar=on,C.SelectableChips=nn,C.Skeleton=Ot,C.Spinner=De,C.Switch=Gt,C.Text=W,C.Toast=Qe,C.ToastProvider=un,C.Tooltip=Je,C.buttonActiveStyles=ft,C.buttonIconActiveStyles=yt,C.buttonIconLoadingStyles=xt,C.buttonIconStyles=pt,C.buttonLinkStyles=wt,C.buttonLoadingStyles=gt,C.buttonStyles=mt,C.chipStyles=Tt,C.useOutsideClick=Wt,C.useToast=dn,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
|