@clasing/ui 0.1.74 → 0.1.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -5096,7 +5096,7 @@ const lt = L(
5096
5096
  "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",
5097
5097
  {
5098
5098
  "text-content-text-subtlest": !C,
5099
- "border-border-blue bg-background-blue-subtle font-semibold text-content-accent-blue focus:border-border-blue-bolder active:border-border-blue-bolder": C,
5099
+ "!border-border-blue bg-background-blue-subtle font-semibold text-content-accent-blue focus:border-border-blue-bolder active:border-border-blue-bolder": C,
5100
5100
  "border-border-utility-success focus:outline-border-utility-success": v && !p,
5101
5101
  "border-border-utility-error focus:outline-border-utility-error": p && v
5102
5102
  }
@@ -5596,7 +5596,7 @@ const Mt = { enGB: Ie, enUS: Re, es: We }, ua = (e) => {
5596
5596
  /* @__PURE__ */ s.jsx(
5597
5597
  z,
5598
5598
  {
5599
- iconName: f ? "IconChevronDown" : "IconChevronUp",
5599
+ iconName: "IconChevronDown",
5600
5600
  size: 16,
5601
5601
  className: "ml-auto text-content-text-default"
5602
5602
  }
package/dist/index.umd.js CHANGED
@@ -27,4 +27,4 @@ Check the top-level render call using <`+y+">.")}return m}}function ar(n,m){{if(
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,nt,pe,Ko,pe),lr[pe+nt]=!0}}return n===o?Uo(Q):Yo(Q),Q}}function Xo(n,m,y){return ir(n,m,y,!0)}function Ho(n,m,y){return ir(n,m,y,!1)}var Jo=Ho,Lo=Xo;je.Fragment=o,je.jsx=Jo,je.jsxs=Lo}()),je}process.env.NODE_ENV==="production"?Fe.exports=mr():Fe.exports=fr();var s=Fe.exports;const gr=w.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 lt(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(r=0;r<i;r++)e[r]&&(t=lt(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function ne(){for(var e,r,t=0,o="",i=arguments.length;t<i;t++)(e=arguments[t])&&(r=lt(e))&&(o&&(o+=" "),o+=r);return o}const Ve="-",hr=e=>{const r=xr(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const d=l.split(Ve);return d[0]===""&&d.length!==1&&d.shift(),it(d,r)||pr(l)},getConflictingClassGroupIds:(l,d)=>{const b=t[l]||[];return d&&o[l]?[...b,...o[l]]:b}}},it=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),i=o?it(e.slice(1),o):void 0;if(i)return i;if(r.validators.length===0)return;const a=e.join(Ve);return(l=r.validators.find(({validator:d})=>d(a)))==null?void 0:l.classGroupId},dt=/^\[(.+)\]$/,pr=e=>{if(dt.test(e)){const r=dt.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},xr=e=>{const{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return yr(Object.entries(e.classGroups),t).forEach(([a,l])=>{Be(l,o,a,r)}),o},Be=(e,r,t,o)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?r:ct(r,i);a.classGroupId=t;return}if(typeof i=="function"){if(vr(i)){Be(i(o),r,t,o);return}r.validators.push({validator:i,classGroupId:t});return}Object.entries(i).forEach(([a,l])=>{Be(l,ct(r,a),t,o)})})},ct=(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},vr=e=>e.isThemeGetter,yr=(e,r)=>r?e.map(([t,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[t,i]}):e,wr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const i=(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 i(a,l),l},set(a,l){t.has(a)?t.set(a,l):i(a,l)}}},ut="!",kr=e=>{const{separator:r,experimentalParseClassName:t}=e,o=r.length===1,i=r[0],a=r.length,l=d=>{const b=[];let c=0,u=0,f;for(let h=0;h<d.length;h++){let j=d[h];if(c===0){if(j===i&&(o||d.slice(h,h+a)===r)){b.push(d.slice(u,h)),u=h+a;continue}if(j==="/"){f=h;continue}}j==="["?c++:j==="]"&&c--}const p=b.length===0?d:d.substring(u),v=p.startsWith(ut),x=v?p.substring(1):p,k=f&&f>u?f-u:void 0;return{modifiers:b,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:k}};return t?d=>t({className:d,parseClassName:l}):l},jr=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:wr(e.cacheSize),parseClassName:kr(e),...hr(e)}),Sr=/\s+/,Pr=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:i}=r,a=[],l=e.trim().split(Sr);let d="";for(let b=l.length-1;b>=0;b-=1){const c=l[b],{modifiers:u,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:v}=t(c);let x=!!v,k=o(x?p.substring(0,v):p);if(!k){if(!x){d=c+(d.length>0?" "+d:d);continue}if(k=o(p),!k){d=c+(d.length>0?" "+d:d);continue}x=!1}const h=jr(u).join(":"),j=f?h+ut:h,g=j+k;if(a.includes(g))continue;a.push(g);const M=i(k,x);for(let P=0;P<M.length;++P){const E=M[P];a.push(j+E)}d=c+(d.length>0?" "+d:d)}return d};function Nr(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=bt(r))&&(o&&(o+=" "),o+=t);return o}const bt=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=bt(e[o]))&&(t&&(t+=" "),t+=r);return t};function Er(e,...r){let t,o,i,a=l;function l(b){const c=r.reduce((u,f)=>f(u),e());return t=Cr(c),o=t.cache.get,i=t.cache.set,a=d,d(b)}function d(b){const c=o(b);if(c)return c;const u=Pr(b,t);return i(b,u),u}return function(){return a(Nr.apply(null,arguments))}}const Y=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},mt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Mr=/^\d+\/\d+$/,Tr=new Set(["px","full","screen"]),Dr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_r=/\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$/,Rr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ir=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=e=>xe(e)||Tr.has(e)||Mr.test(e),be=e=>ve(e,"length",Yr),xe=e=>!!e&&!Number.isNaN(Number(e)),Ge=e=>ve(e,"number",xe),Ce=e=>!!e&&Number.isInteger(Number(e)),Or=e=>e.endsWith("%")&&xe(e.slice(0,-1)),N=e=>mt.test(e),me=e=>Dr.test(e),Ar=new Set(["length","size","percentage"]),Wr=e=>ve(e,Ar,ft),Fr=e=>ve(e,"position",ft),Vr=new Set(["image","url"]),Br=e=>ve(e,Vr,Xr),Gr=e=>ve(e,"",Ur),Se=()=>!0,ve=(e,r,t)=>{const o=mt.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},Yr=e=>_r.test(e)&&!Rr.test(e),ft=()=>!1,Ur=e=>Ir.test(e),Xr=e=>zr.test(e),Hr=Er(()=>{const e=Y("colors"),r=Y("spacing"),t=Y("blur"),o=Y("brightness"),i=Y("borderColor"),a=Y("borderRadius"),l=Y("borderSpacing"),d=Y("borderWidth"),b=Y("contrast"),c=Y("grayscale"),u=Y("hueRotate"),f=Y("invert"),p=Y("gap"),v=Y("gradientColorStops"),x=Y("gradientColorStopPositions"),k=Y("inset"),h=Y("margin"),j=Y("opacity"),g=Y("padding"),M=Y("saturate"),P=Y("scale"),E=Y("sepia"),V=Y("skew"),F=Y("space"),B=Y("translate"),H=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto",N,r],I=()=>[N,r],q=()=>["",ce,be],$=()=>["auto",xe,N],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],de=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",N],ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[xe,N];return{cacheSize:500,separator:":",theme:{colors:[Se],spacing:[ce,be],blur:["none","",me,N],brightness:te(),borderColor:[e],borderRadius:["none","","full",me,N],borderSpacing:I(),borderWidth:q(),contrast:te(),grayscale:U(),hueRotate:te(),invert:U(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[Or,be],inset:J(),margin:J(),opacity:te(),padding:I(),saturate:te(),scale:te(),sepia:U(),skew:te(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[me]}],"break-after":[{"break-after":ae()}],"break-before":[{"break-before":ae()}],"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(),N]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ce,N]}],basis:[{basis:J()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",Ce,N]}],"grid-cols":[{"grid-cols":[Se]}],"col-start-end":[{col:["auto",{span:["full",Ce,N]},N]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Se]}],"row-start-end":[{row:["auto",{span:[Ce,N]},N]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"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:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",N,r]}],"min-w":[{"min-w":[N,r,"min","max","fit"]}],"max-w":[{"max-w":[N,r,"none","full","min","max","fit","prose",{screen:[me]},me]}],h:[{h:[N,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[N,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[N,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[N,r,"auto","min","max","fit"]}],"font-size":[{text:["base",me,be]}],"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:[Se]}],"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",N]}],"line-clamp":[{"line-clamp":["none",xe,Ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ce,N]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ce,be]}],"underline-offset":[{"underline-offset":["auto",ce,N]}],"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:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],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",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ee(),Fr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Wr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Br]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],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":[j]}],"border-style":[{border:[...de(),"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":[j]}],"divide-style":[{divide:de()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[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:["",...de()]}],"outline-offset":[{"outline-offset":[ce,N]}],"outline-w":[{outline:[ce,be]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[ce,be]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",me,Gr]}],"shadow-color":[{shadow:[Se]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":[...fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",me,N]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[M]}],sepia:[{sepia:[E]}],"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":[f]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"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",N]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[Ce,N]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[V]}],"skew-y":[{"skew-y":[V]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],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",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ce,be,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"]}}}),T=(...e)=>Hr(ne(e)),gt=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ht=ne,Z=(e,r)=>t=>{var o;if((r==null?void 0:r.variants)==null)return ht(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:i,defaultVariants:a}=r,l=Object.keys(i).map(c=>{const u=t==null?void 0:t[c],f=a==null?void 0:a[c];if(u===null)return null;const p=gt(u)||gt(f);return i[c][p]}),d=t&&Object.entries(t).reduce((c,u)=>{let[f,p]=u;return p===void 0||(c[f]=p),c},{}),b=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((c,u)=>{let{class:f,className:p,...v}=u;return Object.entries(v).every(x=>{let[k,h]=x;return Array.isArray(h)?h.includes({...a,...d}[k]):{...a,...d}[k]===h})?[...c,f,p]:c},[]);return ht(e,l,b,t==null?void 0:t.class,t==null?void 0:t.className)},Jr=Z("",{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"}}),O=({as:e="span",intent:r,className:t,weight:o,...i})=>{const a=e;return s.jsx(a,{className:T(Jr({intent:r,weight:o,className:t})),...i})},pt=w.forwardRef(({iconName:e,iconText:r,stroke:t=1,onClick:o,size:i=24,...a},l)=>{if(e){const d=br[e];return s.jsx(d,{ref:l,stroke:t,onClick:o,size:i,...a})}else if(r){const d=r.slice(0,2).toUpperCase();return s.jsx("div",{className:"flex items-center justify-center",style:{width:i,height:i},children:s.jsx(O,{intent:i<=16?"label-sm":"label-md",children:d})})}else return console.error(`Icon ${e} not found`),null});pt.displayName="IconComponent";const _=pt,Lr=Z("!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"}}),xt=w.forwardRef(({children:e,iconLeft:r,iconRight:t,utility:o,intent:i,iconOnly:a,size:l,rounded:d,weight:b,className:c,...u},f)=>{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"},v=o?{utility:o}:{intent:i},x=a?{iconOnly:a}:{size:l};return s.jsxs("span",{ref:f,className:T(Lr({...v,...x,rounded:d,weight:b,className:c}),a&&"px-2.5 py-2"),...u,children:[r&&s.jsx(_,{iconName:r.name,stroke:r.stroke,className:p[l||"xs"]}),!a&&e,t&&s.jsx(_,{iconName:t.name,stroke:t.stroke,className:p[l||"xs"]})]})});xt.displayName="Badge";const vt=xt,Te=({className:e})=>s.jsx(_,{iconName:"IconLoader2",className:`${e} animate-spin`}),Ye="relative flex items-center justify-center gap-2 rounded-sm !border-xs transition-colors",yt=Z(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"}}),wt=Z(`${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"}}),kt=Z(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"}}),jt=w.forwardRef(({className:e,intent:r,size:t,weight:o,rounded:i,children:a,iconLeft:l,iconRight:d,iconTextLeft:b,iconTextRight:c,isLoading:u,isActive:f,disabled:p,...v},x)=>{typeof l=="string"&&(l={name:l}),typeof d=="string"&&(d={name:d});const k={sm:"h-6",md:"h-6",lg:"h-6"};return s.jsxs("button",{ref:x,className:T(u?wt({intent:r,weight:o,size:t,rounded:i,className:e}):f?kt({intent:r,weight:o,size:t,rounded:i,className:e}):yt({intent:r,weight:o,size:t,rounded:i,className:e})),disabled:p||u,...v,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(Te,{className:k[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(_,{iconName:l==null?void 0:l.name,iconText:b,stroke:l==null?void 0:l.stroke,className:k[t||"md"]}):null,a,d||c?s.jsx(_,{iconName:d==null?void 0:d.name,iconText:c,stroke:d==null?void 0:d.stroke,className:k[t||"md"]}):null]})]})});jt.displayName="Button";const Ue="flex items-center justify-center transition-colors relative border !border-xs",Ct=Z(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"}}),St=Z(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"}}),Pt=Z(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"}}),Nt=w.forwardRef(({iconName:e,iconText:r,className:t,intent:o="primary-red",size:i="md",rounded:a,disabled:l,isLoading:d,isActive:b,notification:c,...u},f)=>{typeof e=="string"&&(e={name:e});const p={sm:"h-5",md:"h-6",lg:"h-6"};return s.jsxs("button",{ref:f,className:T(d?St({intent:o,size:i,rounded:a,className:t}):b?Pt({intent:o,size:i,rounded:a,className:t}):Ct({intent:o,size:i,rounded:a,className:t})),disabled:l||d,...u,children:[c&&!d&&s.jsx(_,{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"}`}),d?s.jsx(Te,{className:p[i||"md"]}):s.jsx(s.Fragment,{children:e&&s.jsx(_,{iconName:e.name,stroke:e.stroke,iconText:r,size:24})})]})});Nt.displayName="ButtonIcon";const Xe="flex relative items-center justify-center gap-2 transition-colors py-1",Et=Z(Xe,{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"}}),Kr=Z(`${Xe} 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"}}),Qr=Z(Xe,{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"}}),Mt=w.forwardRef(({className:e,intent:r,size:t,weight:o,children:i,iconLeft:a,iconRight:l,iconTextLeft:d,iconTextRight:b,isLoading:c,disabled:u,...f},p)=>{typeof a=="string"&&(a={name:a}),typeof l=="string"&&(l={name:l});const v={sm:"h-5",md:"h-5",lg:"h-6"};return s.jsxs("button",{ref:p,className:T(c?Kr({intent:r,weight:o,size:t,className:e}):u?Qr({intent:r,weight:o,size:t,className:e}):Et({intent:r,weight:o,size:t,className:e})),disabled:u||c,...f,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(Te,{className:v[t||"md"]})}),s.jsxs("span",{className:`flex items-center justify-center gap-2 ${c?"invisible opacity-0":"visible opacity-100"}`,children:[a||d?s.jsx(_,{iconName:a==null?void 0:a.name,iconText:d,stroke:a==null?void 0:a.stroke,className:v[t||"md"]}):null,i,l||b?s.jsx(_,{iconName:l==null?void 0:l.name,iconText:b,stroke:l==null?void 0:l.stroke,className:v[t||"md"]}):null]})]})});Mt.displayName="ButtonLink";function ue(e){return(r={})=>{const t=r.width?String(r.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}function le(e){return(r,t)=>{const o=t!=null&&t.context?String(t.context):"standalone";let i;if(o==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,d=t!=null&&t.width?String(t.width):l;i=e.formattingValues[d]||e.formattingValues[l]}else{const l=e.defaultWidth,d=t!=null&&t.width?String(t.width):e.defaultWidth;i=e.values[d]||e.values[l]}const a=e.argumentCallback?e.argumentCallback(r):r;return i[a]}}function ie(e){return(r,t={})=>{const o=t.width,i=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],a=r.match(i);if(!a)return null;const l=a[0],d=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],b=Array.isArray(d)?qr(d,f=>f.test(l)):Zr(d,f=>f.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 Zr(e,r){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&r(e[t]))return t}function qr(e,r){for(let t=0;t<e.length;t++)if(r(e[t]))return t}function Tt(e){return(r,t={})=>{const o=r.match(e.matchPattern);if(!o)return null;const i=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 d=r.slice(i.length);return{value:l,rest:d}}}const $r={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"}},Dt=(e,r,t)=>{let o;const i=$r[e];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+o:o+" ago":o},en={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_t=(e,r,t,o)=>en[e],tn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},rn={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nn={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"]},on={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"]},an={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"}},sn={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"}},Rt={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:le({values:tn,defaultWidth:"wide"}),quarter:le({values:rn,defaultWidth:"wide",argumentCallback:e=>e-1}),month:le({values:nn,defaultWidth:"wide"}),day:le({values:on,defaultWidth:"wide"}),dayPeriod:le({values:an,defaultWidth:"wide",formattingValues:sn,defaultFormattingWidth:"wide"})},ln=/^(\d+)(th|st|nd|rd)?/i,dn=/\d+/i,cn={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},un={any:[/^b/i,/^(a|c)/i]},bn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},mn={any:[/1/i,/2/i,/3/i,/4/i]},fn={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},gn={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]},hn={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},pn={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]},xn={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},vn={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}},It={ordinalNumber:Tt({matchPattern:ln,parsePattern:dn,valueCallback:e=>parseInt(e,10)}),era:ie({matchPatterns:cn,defaultMatchWidth:"wide",parsePatterns:un,defaultParseWidth:"any"}),quarter:ie({matchPatterns:bn,defaultMatchWidth:"wide",parsePatterns:mn,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ie({matchPatterns:fn,defaultMatchWidth:"wide",parsePatterns:gn,defaultParseWidth:"any"}),day:ie({matchPatterns:hn,defaultMatchWidth:"wide",parsePatterns:pn,defaultParseWidth:"any"}),dayPeriod:ie({matchPatterns:xn,defaultMatchWidth:"any",parsePatterns:vn,defaultParseWidth:"any"})},yn={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},wn={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},kn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jn={date:ue({formats:yn,defaultWidth:"full"}),time:ue({formats:wn,defaultWidth:"full"}),dateTime:ue({formats:kn,defaultWidth:"full"})},De={code:"en-GB",formatDistance:Dt,formatLong:jn,formatRelative:_t,localize:Rt,match:It,options:{weekStartsOn:1,firstWeekContainsDate:4}},Cn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Sn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nn={date:ue({formats:Cn,defaultWidth:"full"}),time:ue({formats:Sn,defaultWidth:"full"}),dateTime:ue({formats:Pn,defaultWidth:"full"})},_e={code:"en-US",formatDistance:Dt,formatLong:Nn,formatRelative:_t,localize:Rt,match:It,options:{weekStartsOn:0,firstWeekContainsDate:1}},En={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"}},Mn=(e,r,t)=>{let o;const i=En[e];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"en "+o:"hace "+o:o},Tn={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},Dn={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},_n={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rn={date:ue({formats:Tn,defaultWidth:"full"}),time:ue({formats:Dn,defaultWidth:"full"}),dateTime:ue({formats:_n,defaultWidth:"full"})},In={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"},zn={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"},On=(e,r,t,o)=>r.getHours()!==1?zn[e]:In[e],An={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},Wn={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Fn={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"]},Vn={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"]},Bn={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"}},Gn={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"}},Yn={ordinalNumber:(e,r)=>Number(e)+"º",era:le({values:An,defaultWidth:"wide"}),quarter:le({values:Wn,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:le({values:Fn,defaultWidth:"wide"}),day:le({values:Vn,defaultWidth:"wide"}),dayPeriod:le({values:Bn,defaultWidth:"wide",formattingValues:Gn,defaultFormattingWidth:"wide"})},Un=/^(\d+)(º)?/i,Xn=/\d+/i,Hn={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},Jn={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]},Ln={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Kn={any:[/1/i,/2/i,/3/i,/4/i]},Qn={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},Zn={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]},qn={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},$n={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]},eo={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},to={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}},ro={ordinalNumber:Tt({matchPattern:Un,parsePattern:Xn,valueCallback:function(e){return parseInt(e,10)}}),era:ie({matchPatterns:Hn,defaultMatchWidth:"wide",parsePatterns:Jn,defaultParseWidth:"any"}),quarter:ie({matchPatterns:Ln,defaultMatchWidth:"wide",parsePatterns:Kn,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ie({matchPatterns:Qn,defaultMatchWidth:"wide",parsePatterns:Zn,defaultParseWidth:"any"}),day:ie({matchPatterns:qn,defaultMatchWidth:"wide",parsePatterns:$n,defaultParseWidth:"any"}),dayPeriod:ie({matchPatterns:eo,defaultMatchWidth:"any",parsePatterns:to,defaultParseWidth:"any"})},Re={code:"es",formatDistance:Mn,formatLong:Rn,formatRelative:On,localize:Yn,match:ro,options:{weekStartsOn:1,firstWeekContainsDate:1}},no=({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,i)=>{const a=o.value===r;return s.jsx("option",{value:o.value,disabled:o.disabled,className:T("disabled:hidden",{"bg-background-blue-subtle font-semibold text-content-accent-blue":a}),children:o.label},i)})}),oo=({orientation:e="down",size:r=16})=>s.jsx(_,{iconName:e==="left"?"IconChevronLeft":"IconChevronRight",stroke:1,size:r}),zt=({locale:e="enGB",disabledDates:r,enabledDates:t,dropdownsSelectors:o=!0,hideNavigation:i=!1,showOutsideDays:a=!0,minDate:l,maxDate:d,value:b,className:c,onChange:u})=>{const[f,p]=w.useState(),v=F=>F.filter(B=>B!==void 0),k=Array.isArray(t)?t.map(F=>new Date(F)):t?new Date(t):void 0,h=Array.isArray(k)?v(k):k?[k]:[],j=h.length>0?X.min(h):void 0,g=h.length>0?X.max(h):void 0,M=()=>Array.isArray(r)?r.map(F=>new Date(F)):r?new Date(r):void 0,P=Array.isArray(M())?[...M()]:[];if(j&&g){const F=X.startOfMonth(j),B=X.endOfMonth(g);X.eachDayOfInterval({start:F,end:B}).forEach(H=>{h.some(K=>K.setHours(0,0,0,0)===H.setHours(0,0,0,0))||P.push(H)})}w.useEffect(()=>{if(b){const F=new Date(b);isNaN(F.getTime())||p(F)}else p(void 0)},[b]);const E=F=>{p(F),u&&u(F?X.format(F,"yyyy-MM-dd"):void 0)},V=e==="enGB"?De:e==="enUS"?_e:Re;return s.jsx("div",{className:T("p-2",c),children:s.jsx(ot.DayPicker,{mode:"single",captionLayout:o?"dropdown":"label",selected:f,onSelect:E,locale:V,startMonth:l||j||new Date(1900,1,1),endMonth:d||g||new Date(2100,12,31),disabled:P,showOutsideDays:a,hideNavigation:i,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 ${i?"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:no,Chevron:({orientation:F,size:B})=>s.jsx(oo,{orientation:F,size:B})}})})},ao=Z("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"}}),Ot=w.forwardRef(({className:e,intent:r,shadow:t,children:o,...i},a)=>s.jsx("div",{ref:a,className:T(ao({intent:r,shadow:t,className:e})),...i,children:o}));Ot.displayName="Card";const so=Ot,lo=w.forwardRef(({label:e,className:r,helperText:t,error:o,touched:i,...a},l)=>s.jsxs("div",{className:T("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:ne("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(O,{intent:"label-lg",weight:"semibold",className:"text-content-text-subtle",children:e})})]}),t&&s.jsx(O,{intent:"label-md",className:"text-content-text-subtle",children:t}),o&&i&&s.jsx(O,{intent:"label-md",className:"text-content-utility-error",children:o})]})),At=Z("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"}}),He=w.forwardRef(({className:e,intent:r,size:t,weight:o,children:i,iconLeft:a,iconRight:l,notification:d,disabled:b,...c},u)=>(typeof a=="string"&&(a={name:a}),typeof l=="string"&&(l={name:l}),s.jsxs("button",{ref:u,className:T(At({intent:r,size:t,weight:o,className:e})),disabled:b,type:"button",...c,children:[a&&s.jsx(_,{iconName:a==null?void 0:a.name,stroke:a==null?void 0:a.stroke,size:16}),i,l&&s.jsx(_,{iconName:l==null?void 0:l.name,stroke:l==null?void 0:l.stroke,size:16}),d&&s.jsx(_,{iconName:"IconCircleFilled",size:6,className:"text-content-utility-error"})]})));He.displayName="Chip";const Ie=w.forwardRef(({children:e,trigger:r,open:t=!1,placement:o="bottom-start",closeOnAction:i=!1,close:a=!1,className:l,onMouseDown:d,onMouseUp:b,popoverWidth:c="auto"},u)=>{var B;const[f,p]=w.useState(t),v=w.useRef(null),{refs:x,floatingStyles:k,context:h}=W.useFloating({open:f,onOpenChange:p,placement:o,middleware:[W.offset(8),W.flip(),W.shift()],whileElementsMounted:W.autoUpdate}),j=W.useDismiss(h,{outsidePress:!0}),{getReferenceProps:g,getFloatingProps:M}=W.useInteractions([j]),{isMounted:P}=W.useTransitionStatus(h),{styles:E}=W.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=H=>{H.stopPropagation(),p(K=>!K)},F=w.cloneElement(r,{onClick:V,ref:H=>{v.current=H,x.setReference(H)},...g()});return w.useEffect(()=>{a&&p(!1)},[a]),s.jsxs(s.Fragment,{children:[F,P&&s.jsx(W.FloatingPortal,{children:s.jsx("div",{ref:x.setFloating,style:{...k,minWidth:c==="as-trigger"?(B=v.current)==null?void 0:B.offsetWidth:void 0},className:"z-[99999]",...M(),children:s.jsx("div",{style:{...E},ref:u,className:T("rounded-sm bg-background-white p-4 shadow-sm",l),onMouseDown:d,onMouseUp:b,onClick:i?()=>p(!1):void 0,children:e||s.jsx("div",{children:"Your placeholder here"})})})})]})}),Wt=w.forwardRef(({className:e,placeholder:r,placement:t="bottom",label:o,helperText:i,disabledDates:a,enabledDates:l,calendarDropdowns:d=!0,hideNavigation:b=!1,showOutsideDays:c=!0,closeOnAction:u=!0,locale:f="enGB",error:p,touched:v,value:x,minDate:k,onChange:h,maxDate:j,...g},M)=>{const[P,E]=w.useState(),[V,F]=w.useState(!1);function B(){F(!0),setTimeout(()=>{F(!1)},200)}const H=J=>{E(J),h&&h({target:{name:g.name,value:J?X.format(J,"yyyy-MM-dd"):""}}),u&&B()};w.useEffect(()=>{if(x){const J=new Date(x);isNaN(J.getTime())||E(J)}else E(void 0)},[x]);const K=f==="enGB"?De:f==="enUS"?_e:Re;return s.jsxs("div",{ref:M,className:T("flex flex-col gap-3",e),...g,children:[o&&s.jsx("label",{htmlFor:g.id,children:s.jsx(O,{intent:"label-lg",weight:"semibold",children:o})}),s.jsx(Ie,{trigger:s.jsxs("button",{type:"button",className:ne("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":!P,"border-border-blue bg-background-blue-subtle font-semibold text-content-accent-blue focus:border-border-blue-bolder active:border-border-blue-bolder":P,"border-border-utility-success focus:outline-border-utility-success":v&&!p,"border-border-utility-error focus:outline-border-utility-error":p&&v}),children:[s.jsx(_,{iconName:"IconCalendar",size:20,className:"pointer-events-none"}),P?X.format(P,"PPP",{locale:K}):r||"Select a date",s.jsx("input",{hidden:!0,onChange:()=>null,value:P?X.format(P,"yyyy-MM-dd"):x||""}),s.jsx(_,{iconName:"IconChevronDown",size:16,className:"ml-auto text-content-text-default"})]}),close:V,placement:t,className:"rounded-sm !border-xs border-border-default p-0 shadow-none",children:s.jsx(zt,{locale:f,disabledDates:a,enabledDates:l,hideNavigation:b,dropdownsSelectors:d,showOutsideDays:c,value:P?X.format(P,"yyyy-MM-dd"):x,maxDate:j,minDate:k,onChange:J=>{const I=J?new Date(J):void 0;H(I)},className:"p-0"})}),p&&v?s.jsx(O,{intent:"label-md",className:"text-content-utility-error",children:p}):i?s.jsx(O,{intent:"label-md",children:i}):null]})});Wt.displayName="Datepicker";const io=({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,i)=>{const a=o.value===r;return s.jsx("option",{value:o.value,disabled:o.disabled,className:T("disabled:hidden",{"bg-background-blue-subtle font-semibold text-content-accent-blue":a}),children:o.label},i)})}),co=({orientation:e="down",size:r=16})=>s.jsx(_,{iconName:e==="left"?"IconChevronLeft":"IconChevronRight",stroke:1,size:r}),Ft=w.forwardRef(({className:e,locale:r="enGB",placeholder:t,label:o,disabledDates:i,helperText:a,placement:l="bottom",error:d,touched:b,startDate:c,endDate:u,calendarDropdowns:f=!0,onChange:p,minDate:v,maxDate:x,...k},h)=>{const[j,g]=w.useState({from:c?new Date(c):void 0,to:u?new Date(u):void 0}),M=E=>{if(g(E),p){const V={from:E.from?X.format(E.from,"yyyy-MM-dd"):"",to:E.to?X.format(E.to,"yyyy-MM-dd"):""};p({target:{name:k.name,value:V}})}};w.useEffect(()=>{if(c){const E=new Date(c);isNaN(E.getTime())||g(V=>({...V,from:E}))}if(u){const E=new Date(u);isNaN(E.getTime())||g(V=>({...V,to:E}))}},[c,u]);const P=r==="enGB"?De:r==="enUS"?_e:Re;return s.jsxs("div",{ref:h,className:T("flex flex-col gap-3",e),...k,children:[o&&s.jsx("label",{htmlFor:k.id,children:s.jsx(O,{intent:"label-lg",weight:"semibold",children:o})}),s.jsx(Ie,{trigger:s.jsxs("button",{type:"button",className:ne("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":!j.from&&!j.to,"border-border-blue bg-background-blue-subtle font-semibold text-content-accent-blue focus:border-border-blue-bolder active:border-border-blue-bolder":j.from&&j.to,"border-border-utility-success focus:outline-border-utility-success":b&&!d,"border-border-utility-error focus:outline-border-utility-error":d&&b}),children:[s.jsx(_,{iconName:"IconCalendar",size:20,className:"pointer-events-none"}),j.from&&j.to?`${X.format(j.from,"PPP",{locale:P})} - ${X.format(j.to,"PPP",{locale:P})}`:t||"Select a date range",s.jsx("input",{hidden:!0,onChange:()=>null,value:j.from&&j.to?`${X.format(j.from,"yyyy-MM-dd")} to ${X.format(j.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(ot.DayPicker,{mode:"range",captionLayout:f?"dropdown":"label",selected:j,onSelect:M,locale:P,startMonth:v||new Date(1900,0,1),endMonth:x||new Date(2100,11,31),showOutsideDays:!0,disabled:i,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:io,Chevron:({orientation:E,size:V})=>s.jsx(co,{orientation:E,size:V})}})}),d&&b?s.jsx(O,{intent:"label-md",className:"text-content-utility-error",children:d}):s.jsx(O,{intent:"label-md",children:a})]})});Ft.displayName="DateRangePicker";const Vt={enGB:De,enUS:_e,es:Re},uo=e=>{const r=X.startOfWeek(new Date,{locale:Vt[e]});return X.eachDayOfInterval({start:r,end:X.addMinutes(r,6*24*60)}).map(t=>X.format(t,"EEEE",{locale:Vt[e]}).toUpperCase())},bo=(e,r,t)=>{const o=[];let i=new Date(`1970-01-01T${e}:00`);const a=new Date(`1970-01-01T${r}:00`);for(;i<=a;)o.push(X.format(i,"HH:mm")),i=X.addMinutes(i,t);return o},mo=e=>{if(new Set(e).size!==e.length)throw new Error("Duplicate days found in disabledDays")},fo=({availableHours:e={start:"00:00",end:"23:30"},availableTimes:r,onSelectionChange:t,locale:o="enGB",intervalMinutes:i=30,singleSelection:a=!1,singleSelectionPerDay:l=!0,disabledDays:d=[]})=>{mo(d);const b=w.useMemo(()=>uo(o),[o]),c=w.useMemo(()=>r?Object.keys(r):[],[r]),u=w.useCallback(()=>{for(const g of b)if(!d.includes(g)&&(c.includes(g)||!r))return g;return"MONDAY"},[b,d,c,r]),[f,p]=w.useState(u()),[v,x]=w.useState({});w.useEffect(()=>{p(u())},[]);const k=w.useMemo(()=>{var g;return r&&c.includes(f)?((g=r[f])==null?void 0:g.filter(M=>{const P=new Date(`1970-01-01T${M}:00`),E=new Date(`1970-01-01T${e.start}:00`),V=new Date(`1970-01-01T${e.end}:00`);return P>=E&&P<=V}))||[]:bo(e.start,e.end,i)},[r,c,f,e,i]),h=g=>{if(!c.includes(f)&&r)return;const M={...v};if(a){for(const P in M)M[P]=[];M[f]=[g]}else if(l)M[f]=[g];else{const P=v[f]||[];M[f]=P.includes(g)?P.filter(E=>E!==g):[...P,g]}x(M),t==null||t(M)},j=g=>{d.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 V;const M=f===g,P=(((V=v[g])==null?void 0:V.length)||0)>0,E=(r?!c.includes(g):!1)||d.includes(g);return s.jsxs("button",{type:"button","aria-label":g,onClick:()=>j(g),disabled:E,className:T("flex justify-start gap-1 !border-b-sm bg-background-white p-1 text-left text-sm 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":E}),children:[g.slice(0,3),s.jsx("span",{className:T("rounded-full bg-background-blue p-0.5 text-content-text-inverse",{"opacity-0":!P||E}),children:s.jsx(_,{iconName:"IconCalendarCheck",size:16})})]},g)})}),s.jsx("div",{className:"grid grid-cols-3 gap-3 sm:grid-cols-5",children:k.map(g=>{var E;const M=(E=v[f])==null?void 0:E.includes(g),P=(r?!c.includes(f):!1)||d.includes(f);return s.jsx("button",{type:"button","aria-label":g,className:T("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&&!P,"border-border-default text-content-text-default":!M&&!P,"cursor-not-allowed border-border-subtle opacity-50":P}),onClick:()=>!P&&h(g),children:g},`${f}-${g}`)})})]})},Bt=({ref:e,handler:r})=>{w.useEffect(()=>{const t=o=>{e.current&&!e.current.contains(o.target)&&r()};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[e,r])},Gt=w.forwardRef(({label:e,iconName:r,className:t,helperText:o,error:i,touched:a,options:l=[],placement:d="bottom",placeholder:b="Select an option",searchPlaceholder:c="Search...",canSelectAll:u,selectAllLabel:f="Select All",canSearch:p,multiple:v,value:x,dropdownWidth:k,...h},j)=>{const[g,M]=w.useState(!1),[P,E]=w.useState(l),[V,F]=w.useState(""),[B,H]=w.useState(null),[K,J]=w.useState([]);function I(){M(!0),setTimeout(()=>{M(!1)},200)}w.useEffect(()=>{if(l)if(v){const z=l.filter(U=>x==null?void 0:x.includes(U.value));J(z)}else{const z=l.find(U=>U.value===x)||null;H(z)}},[x,l,v]),w.useEffect(()=>{E(l.filter(z=>z.label.toLowerCase().includes(V.toLowerCase())))},[V,l]);const q=z=>{var U,ae,te,Pe,Ne;if(z===null){v?(J([]),(U=h.onChange)==null||U.call(h,[])):(H(null),(ae=h.onChange)==null||ae.call(h,null),I());return}if(v){let ge=[...K];K.some(he=>he.value===z.value)?ge=ge.filter(he=>he.value!==z.value):ge.push(z),J(ge),(te=h.onChange)==null||te.call(h,ge.map(he=>he.value))}else B&&B.value===z.value?(H(null),(Pe=h.onChange)==null||Pe.call(h,null)):(H(z),(Ne=h.onChange)==null||Ne.call(h,z.value)),I()},$=w.useRef(null);Bt({ref:$,handler:()=>I()});const ee=l.length===K.length,de=v?K.length===0:B===null,fe=()=>{var z,U;ee?(J([]),(z=h.onChange)==null||z.call(h,[])):(J(l),(U=h.onChange)==null||U.call(h,l.map(ae=>ae.value)))};return s.jsxs("div",{ref:j,className:T("flex flex-col gap-3",t),children:[e&&s.jsx("label",{htmlFor:h.id,children:s.jsx(O,{intent:"label-lg",weight:"semibold",children:e})}),s.jsx(Ie,{placement:d,close:g,className:"w-full overflow-hidden rounded-sm !border-xs border-border-bolder p-0 shadow-none",popoverWidth:k,trigger:s.jsxs("div",{ref:$,className:ne("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":!g,"focus:outline-border-default lg:hover:border-border-default":!i,"border-border-utility-error focus:outline-border-utility-error":i&&a,"border-border-utility-success focus:outline-border-utility-success":a&&!i&&(v?K.length!==null:B!==null),"pl-9":r,"!border-border-blue bg-background-blue-subtle text-content-accent-blue":!de}),...h,tabIndex:0,role:"combobox","aria-expanded":!g,"aria-haspopup":"listbox","aria-labelledby":h.id,children:[r&&s.jsx(_,{iconName:r,size:16,className:"absolute left-2 top-1/2 min-h-4 min-w-4 -translate-y-1/2"}),s.jsx(O,{intent:"label-lg",className:ne("flex-1 truncate",{"text-content-text-subtlest":v?K.length===0:!B}),weight:de?"regular":"semibold",children:v?K.map(z=>z.label).join(", ")||b:(B==null?void 0:B.label)||b}),s.jsx(_,{iconName:g?"IconChevronDown":"IconChevronUp",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",placeholder:c,value:V,onChange:z=>F(z.target.value)}),!p&&!v&&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:()=>q(null),tabIndex:g?-1:0,children:s.jsx(O,{intent:"label-md",children:b})}),v&&u&&s.jsx("div",{children:s.jsxs("button",{onClick:fe,className:T("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":ee,"text-content-text-subtle lg:hover:bg-background-blue-subtle lg:hover:text-content-text-default":!ee}),children:[s.jsx(_,{iconName:ee?"IconSquareCheckFilled":"IconSquare",size:20,className:ne("max-h-5 min-h-5 min-w-5 max-w-5",{"text-background-blue":ee,"text-content-text-subtlest":!ee})}),f]})}),P.map(z=>{const U=v?K.some(ae=>ae.value===z.value):(B==null?void 0:B.value)===z.value;return s.jsxs("button",{type:"button",className:T("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":U,"text-content-text-subtle lg:hover:bg-background-blue-subtle lg:hover:text-content-text-default":!U}),onClick:()=>q(z),tabIndex:g?-1:0,children:[s.jsx(_,{iconName:U?"IconSquareCheckFilled":"IconSquare",size:20,className:ne("max-h-5 min-h-5 min-w-5 max-w-5",{"text-background-blue":U,"text-content-text-subtlest":!U})}),s.jsx(O,{intent:"label-md",weight:U?"semibold":"regular",children:z.label})]},z.value)})]})}),i&&a?s.jsx(O,{intent:"label-md",className:"-mt-1 text-content-utility-error",children:i}):o?s.jsx(O,{intent:"label-md",className:"-mt-1 text-content-text-subtle",children:o}):null]})});Gt.displayName="DropdownSelect";const Yt=w.forwardRef(({label:e,iconName:r,className:t,helperText:o,error:i,touched:a,type:l="text",...d},b)=>{typeof r=="string"&&(r={name:r});const[c,u]=w.useState(!1),f=l==="textarea"?"textarea":"input";return s.jsxs("div",{className:"flex flex-col gap-3",children:[e&&s.jsx("label",{htmlFor:d.id,children:s.jsx(O,{intent:"label-lg",weight:"semibold",className:ne({"text-content-text-disabled-bolder":d.disabled}),children:e})}),s.jsxs("div",{className:"relative w-full",children:[r&&l!=="textarea"&&l!=="color"&&s.jsx("span",{className:ne("absolute left-3 top-1/2 -translate-y-1/2",{"text-content-text-subtle":!i&&!a,"text-content-utility-error":i&&a,"text-content-utility-success":a&&!i&&d.value!==void 0,"text-content-text-disabled-bolder":d.disabled}),children:typeof r=="object"?s.jsx(_,{iconName:r.name,stroke:r.stroke,size:20}):s.jsx(_,{iconName:r,size:20})}),i&&a&&l!=="password"&&l!=="color"&&s.jsx(_,{iconName:"IconAlertCircleFilled",size:20,className:"absolute right-2 top-1/2 -translate-y-1/2 text-content-utility-error"}),a&&!i&&d.value!==void 0&&l!=="password"&&l!=="color"&&s.jsx(_,{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(_,{iconName:c?"IconEyeOff":"IconEye",size:20})}),s.jsx(f,{ref:b,className:T("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":i&&a,"!border-border-utility-success pr-9 text-content-utility-success focus:border-border-utility-success focus:outline-border-utility-success":a&&!i&&d.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,...d})]}),i&&a?s.jsx(O,{intent:"label-md",className:"-mt-1 text-content-utility-error",children:i}):o?s.jsx(O,{intent:"label-md",className:ne("-mt-1",{"text-content-text-subtle":!i&&!a,"text-content-utility-error":i&&a,"text-content-utility-success":a&&!i&&d.value!==void 0,"text-content-text-disabled-bolder":d.disabled}),children:o}):null]})});Yt.displayName="Input";const Ut=({className:e,children:r,isOpen:t,setIsOpen:o,canClose:i=!0,intent:a="card",overlay:l="blur",closeButtonAriaLabel:d="Close",closeOnClickOutside:b=!0})=>{const{refs:c,context:u}=W.useFloating({open:t,onOpenChange:o,whileElementsMounted:W.autoUpdate}),f=W.useClick(u),p=W.useDismiss(u,{outsidePress:b,escapeKey:!0}),v=W.useRole(u),{getFloatingProps:x}=W.useInteractions([f,p,v]),{styles:k}=W.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(W.FloatingPortal,{children:s.jsx(W.FloatingOverlay,{lockScroll:!0,className:T("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(W.FloatingFocusManager,{context:u,children:s.jsxs("div",{ref:c.setFloating,...x(),style:{...k},className:T("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:[i&&a!=="wizard"&&o&&s.jsx("button",{"aria-label":d,type:"button",onClick:()=>o(!1),className:"absolute right-4 top-4 cursor-pointer transition-colors lg:hover:text-content-text-subtle",children:s.jsx(_,{iconName:"IconX"})}),r]})})})}):null},Je=({children:e,trigger:r,className:t,placement:o="top",iconName:i="IconInfoCircleFilled",arrow:a})=>{const[l,d]=w.useState(!1),b=w.useRef(null),[c,u]=w.useState(!1);w.useEffect(()=>{u(window.innerWidth<768);const j=()=>u(window.innerWidth<768);return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[]);const{refs:f,floatingStyles:p,context:v}=W.useFloating({placement:o,middleware:[W.offset(8),W.flip(),W.shift(),a?W.arrow({element:b}):void 0],open:l}),{isMounted:x}=W.useTransitionStatus(v),{styles:k}=W.useTransitionStyles(v,{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"}}),h=()=>{c&&d(!0)};return s.jsxs(s.Fragment,{children:[s.jsx("div",{ref:f.setReference,className:"relative inline-flex",onClick:c?h:void 0,onMouseEnter:c?void 0:()=>d(!0),onMouseLeave:c?void 0:()=>d(!1),onFocus:c?void 0:()=>d(!0),onBlur:c?void 0:()=>d(!1),"data-state":l?"open":"closed",role:"tooltip","aria-describedby":"tooltip-content",tabIndex:0,children:r||s.jsx(_,{iconName:i,size:20,className:"min-h-5 min-w-5 text-content-accent-blue-bolder"})}),!c&&x&&s.jsx(W.FloatingPortal,{children:s.jsxs("div",{ref:f.setFloating,style:p,children:[a?s.jsx(W.FloatingArrow,{ref:b,context:v,width:24,height:14,style:{...k},tipRadius:2,className:"z-[51] fill-background-white drop-shadow-sm"}):null,s.jsx("div",{style:{...k},className:T("z-50 rounded-md bg-background-white p-3 text-sm shadow-sm",t),role:"tooltip",id:"tooltip-content",children:e})]})}),c&&s.jsx(Ut,{isOpen:l,setIsOpen:d,intent:"sheet",overlay:"opacity",children:e})]})};Je.displayName="Tooltip";const go=Z("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"}}),Xt=w.forwardRef(({className:e,intent:r,shadow:t,isActive:o,title:i,text:a,helperText:l,badgeText:d,disabled:b,utilityBadge:c,colorBadge:u,badgeSize:f="xs",iconName:p,iconText:v,tooltipIconName:x="IconHelpCircleFilled",tooltipText:k,tooltipTitle:h,tooltipPlacement:j="top",...g},M)=>s.jsxs("div",{ref:M,className:T(go({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:[d||p||v?s.jsxs("div",{className:"flex items-center justify-between",children:[p||v?s.jsx("div",{className:T("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(_,{iconName:p,iconText:v,size:20})}):null,d?s.jsx(vt,{utility:c,intent:u,size:f,weight:"semibold",className:"justify-self-end",children:d}):null,k?s.jsx("div",{className:"w-fit",children:s.jsx(Je,{placement:j,trigger:x?s.jsx(_,{iconName:x,size:20,className:"min-w-5 min-h-5"}):void 0,children:h||k?s.jsxs("div",{className:"flex flex-col gap-1 text-content-text-subtle",children:[h?s.jsx(O,{as:"p",intent:"paragraph-md",weight:"semibold",children:h}):null,k?s.jsx(O,{as:"p",intent:"paragraph-md",children:k}):null]}):null})}):null]}):null,s.jsxs("div",{className:"flex flex-col gap-1",children:[i?s.jsx(O,{intent:"label-xl",weight:"semibold",className:T("text-content-text-default",{"text-content-text-disabled-bolder":b}),children:i}):null,a?s.jsx(O,{intent:"paragraph-md",className:T("text-content-text-subtle",{"text-content-text-disabled-bolder":b}),children:a}):null]}),l?s.jsx(O,{intent:"paragraph-sm",className:T("text-content-text-subtlest",{"text-content-text-disabled-bolder":b}),children:l}):null]}));Xt.displayName="InteractiveCard";const ho=Xt,Ht=Z("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"}}),po=({progress:e,className:r,intent:t,size:o,rounded:i="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(O,{intent:"label-md",weight:"semibold",children:[e,"%"]})}),s.jsx("span",{className:T("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:T(Ht({size:o,rounded:i}),"relative w-full bg-background-disabled"),children:s.jsx("div",{className:T(Ht({intent:t,size:o,rounded:i,className:r})),style:{width:`${e}%`}})})]})},xo=({id:e,label:r,options:t,multiple:o=!1,selectedOptions:i,setSelectedOptions:a,className:l,disabled:d,helperText:b,error:c,touched:u})=>{const f=i,p=x=>{if(!o)return a(x.value),x.value;let k=[];return k=Array.isArray(f)?f.includes(x.value)?f.filter(h=>h!==x.value):[...f,x.value]:[x.value],a(k),k},v=x=>o&&Array.isArray(i)?i.includes(x.value):i===x.value;return t.length===0?null:s.jsxs("div",{className:T("flex flex-col gap-3",l),children:[r&&s.jsx("label",{htmlFor:e,children:s.jsx(O,{intent:"label-lg",weight:"semibold",className:ne({"text-content-text-disabled-bolder":d}),children:r})}),s.jsx("div",{className:"flex flex-wrap gap-2",children:t.map(x=>{const k=v(x);return s.jsx(He,{intent:k?"selected":"unselected",iconLeft:k?"IconCheck":void 0,onClick:()=>p(x),disabled:d,children:x.label},x.label)})}),c&&u?s.jsx(O,{intent:"label-md",className:"-mt-1 text-content-utility-error",children:c}):s.jsx(O,{intent:"label-md",className:ne("-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":d}),children:b})]})},vo=({className:e,...r})=>s.jsx("div",{className:T("before:animate-shimmer 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: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}),yo=Z("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"}}),wo=Z("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"}}),Jt=w.forwardRef(({className:e,defaultChecked:r,checked:t,onCheckedChange:o,disabled:i,switchSize:a,...l},d)=>{const[b,c]=w.useState(r||!1),u=t!==void 0,f=u?t:b,p=()=>{if(i)return;const x=!f;u||c(x),o==null||o(x)},v=x=>{(x.key===" "||x.key==="Enter")&&(x.preventDefault(),p())};return s.jsx("button",{ref:d,type:"button",role:"switch","aria-checked":f,"data-state":f?"checked":"unchecked",onClick:p,onKeyDown:v,disabled:i,className:T(yo({switchSize:a,className:e})),...l,children:s.jsx("span",{"data-state":f?"checked":"unchecked",className:wo({switchSize:a})})})});Jt.displayName="Switch";const ko=Z("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"}}),Le=w.forwardRef(({className:e,title:r,message:t,intent:o,onClose:i,canClose:a,position:l,duration:d,...b},c)=>{const u=l==="top"||l==="top-left"||l==="top-right"?"animate-fade-in-top-to-bottom":"animate-fade-in-bottom-to-top",f=l==="top"||l==="top-left"||l==="top-right"?"animate-fade-out-bottom-to-top":"animate-fade-out-top-to-bottom",[p,v]=w.useState(!1);return w.useEffect(()=>{if(d&&a){const x=setTimeout(()=>{v(!0)},d-250);return()=>clearTimeout(x)}},[d,a]),w.useEffect(()=>{if(p&&i&&a){const x=setTimeout(()=>{i()},250);return()=>clearTimeout(x)}},[p,i,a]),s.jsxs("div",{ref:c,className:T(ko({intent:o}),e,a&&u,p&&a&&f),...b,children:[s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(_,{iconName:o==="info"?"IconInfoCircleFilled":o==="success"?"IconCircleCheckFilled":o==="warning"?"IconAlertTriangleFilled":o==="error"?"IconForbidFilled":"IconHelpCircleFilled",size:16}),r?s.jsx(O,{intent:"label-lg",className:"text-content-text-default",weight:"semibold",children:r}):null,s.jsx(O,{intent:"paragraph-sm",className:"text-content-text-default",children:t})]}),a?s.jsx("button",{"aria-label":"Close",type:"button",onClick:()=>v(!0),children:s.jsx(_,{iconName:"IconX",size:16,className:"min-h-4 min-w-4"})}):null]})});Le.displayName="Toast";const Lt=w.createContext(void 0),jo=()=>{const e=w.useContext(Lt);if(!e)throw new Error("useToasts must be used within a ToastProvider");return e},Co=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,So=({children:e})=>{const[r,t]=w.useState([]),[o,i]=w.useState(!1),[a,l]=w.useState(""),d=w.useCallback(c=>{t(u=>u.filter(f=>f.id!==c))},[r]);w.useEffect(()=>{i(!0)},[]);const b=w.useCallback(({title:c,message:u,intent:f,position:p="bottom-right",canClose:v,duration:x=4e3})=>{const k=Co(),h={id:k,title:c,message:u,intent:f,position:p,canClose:v,duration:x,onClose:()=>d(k)};switch(t(j=>[...j.slice(-2),h]),setTimeout(()=>{t(j=>j.filter(g=>g.id!==k))},x),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}},[d]);return s.jsxs(Lt.Provider,{value:b,children:[e,o?cr.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(Le,{title:c.title,message:c.message,intent:c.intent,canClose:c.canClose,position:c.position,duration:c.duration,onClose:()=>d(c.id)},c.id))})}),document.body):null]})};C.Avatar=gr,C.Badge=vt,C.Button=jt,C.ButtonIcon=Nt,C.ButtonLink=Mt,C.Calendar=zt,C.Card=so,C.Checkbox=lo,C.Chip=He,C.DateRangePicker=Ft,C.Datepicker=Wt,C.DayTimePicker=fo,C.DropdownSelect=Gt,C.IconComponent=_,C.Input=Yt,C.InteractiveCard=ho,C.Modal=Ut,C.Popover=Ie,C.ProgressBar=po,C.SelectableChips=xo,C.Skeleton=vo,C.Spinner=Te,C.Switch=Jt,C.Text=O,C.Toast=Le,C.ToastProvider=So,C.Tooltip=Je,C.buttonActiveStyles=kt,C.buttonIconActiveStyles=Pt,C.buttonIconLoadingStyles=St,C.buttonIconStyles=Ct,C.buttonLinkStyles=Et,C.buttonLoadingStyles=wt,C.buttonStyles=yt,C.chipStyles=At,C.useOutsideClick=Bt,C.useToast=jo,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,nt,pe,Ko,pe),lr[pe+nt]=!0}}return n===o?Uo(Q):Yo(Q),Q}}function Xo(n,m,y){return ir(n,m,y,!0)}function Ho(n,m,y){return ir(n,m,y,!1)}var Jo=Ho,Lo=Xo;je.Fragment=o,je.jsx=Jo,je.jsxs=Lo}()),je}process.env.NODE_ENV==="production"?Fe.exports=mr():Fe.exports=fr();var s=Fe.exports;const gr=w.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 lt(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(r=0;r<i;r++)e[r]&&(t=lt(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function ne(){for(var e,r,t=0,o="",i=arguments.length;t<i;t++)(e=arguments[t])&&(r=lt(e))&&(o&&(o+=" "),o+=r);return o}const Ve="-",hr=e=>{const r=xr(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const d=l.split(Ve);return d[0]===""&&d.length!==1&&d.shift(),it(d,r)||pr(l)},getConflictingClassGroupIds:(l,d)=>{const b=t[l]||[];return d&&o[l]?[...b,...o[l]]:b}}},it=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),i=o?it(e.slice(1),o):void 0;if(i)return i;if(r.validators.length===0)return;const a=e.join(Ve);return(l=r.validators.find(({validator:d})=>d(a)))==null?void 0:l.classGroupId},dt=/^\[(.+)\]$/,pr=e=>{if(dt.test(e)){const r=dt.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},xr=e=>{const{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return yr(Object.entries(e.classGroups),t).forEach(([a,l])=>{Be(l,o,a,r)}),o},Be=(e,r,t,o)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?r:ct(r,i);a.classGroupId=t;return}if(typeof i=="function"){if(vr(i)){Be(i(o),r,t,o);return}r.validators.push({validator:i,classGroupId:t});return}Object.entries(i).forEach(([a,l])=>{Be(l,ct(r,a),t,o)})})},ct=(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},vr=e=>e.isThemeGetter,yr=(e,r)=>r?e.map(([t,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[t,i]}):e,wr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const i=(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 i(a,l),l},set(a,l){t.has(a)?t.set(a,l):i(a,l)}}},ut="!",kr=e=>{const{separator:r,experimentalParseClassName:t}=e,o=r.length===1,i=r[0],a=r.length,l=d=>{const b=[];let c=0,u=0,f;for(let h=0;h<d.length;h++){let j=d[h];if(c===0){if(j===i&&(o||d.slice(h,h+a)===r)){b.push(d.slice(u,h)),u=h+a;continue}if(j==="/"){f=h;continue}}j==="["?c++:j==="]"&&c--}const p=b.length===0?d:d.substring(u),v=p.startsWith(ut),x=v?p.substring(1):p,k=f&&f>u?f-u:void 0;return{modifiers:b,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:k}};return t?d=>t({className:d,parseClassName:l}):l},jr=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:wr(e.cacheSize),parseClassName:kr(e),...hr(e)}),Sr=/\s+/,Pr=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:i}=r,a=[],l=e.trim().split(Sr);let d="";for(let b=l.length-1;b>=0;b-=1){const c=l[b],{modifiers:u,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:v}=t(c);let x=!!v,k=o(x?p.substring(0,v):p);if(!k){if(!x){d=c+(d.length>0?" "+d:d);continue}if(k=o(p),!k){d=c+(d.length>0?" "+d:d);continue}x=!1}const h=jr(u).join(":"),j=f?h+ut:h,g=j+k;if(a.includes(g))continue;a.push(g);const M=i(k,x);for(let P=0;P<M.length;++P){const E=M[P];a.push(j+E)}d=c+(d.length>0?" "+d:d)}return d};function Nr(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=bt(r))&&(o&&(o+=" "),o+=t);return o}const bt=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=bt(e[o]))&&(t&&(t+=" "),t+=r);return t};function Er(e,...r){let t,o,i,a=l;function l(b){const c=r.reduce((u,f)=>f(u),e());return t=Cr(c),o=t.cache.get,i=t.cache.set,a=d,d(b)}function d(b){const c=o(b);if(c)return c;const u=Pr(b,t);return i(b,u),u}return function(){return a(Nr.apply(null,arguments))}}const Y=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},mt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Mr=/^\d+\/\d+$/,Tr=new Set(["px","full","screen"]),Dr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_r=/\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$/,Rr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ir=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=e=>xe(e)||Tr.has(e)||Mr.test(e),be=e=>ve(e,"length",Yr),xe=e=>!!e&&!Number.isNaN(Number(e)),Ge=e=>ve(e,"number",xe),Ce=e=>!!e&&Number.isInteger(Number(e)),Or=e=>e.endsWith("%")&&xe(e.slice(0,-1)),N=e=>mt.test(e),me=e=>Dr.test(e),Ar=new Set(["length","size","percentage"]),Wr=e=>ve(e,Ar,ft),Fr=e=>ve(e,"position",ft),Vr=new Set(["image","url"]),Br=e=>ve(e,Vr,Xr),Gr=e=>ve(e,"",Ur),Se=()=>!0,ve=(e,r,t)=>{const o=mt.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},Yr=e=>_r.test(e)&&!Rr.test(e),ft=()=>!1,Ur=e=>Ir.test(e),Xr=e=>zr.test(e),Hr=Er(()=>{const e=Y("colors"),r=Y("spacing"),t=Y("blur"),o=Y("brightness"),i=Y("borderColor"),a=Y("borderRadius"),l=Y("borderSpacing"),d=Y("borderWidth"),b=Y("contrast"),c=Y("grayscale"),u=Y("hueRotate"),f=Y("invert"),p=Y("gap"),v=Y("gradientColorStops"),x=Y("gradientColorStopPositions"),k=Y("inset"),h=Y("margin"),j=Y("opacity"),g=Y("padding"),M=Y("saturate"),P=Y("scale"),E=Y("sepia"),V=Y("skew"),F=Y("space"),B=Y("translate"),H=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto",N,r],I=()=>[N,r],q=()=>["",ce,be],$=()=>["auto",xe,N],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],de=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",N],ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[xe,N];return{cacheSize:500,separator:":",theme:{colors:[Se],spacing:[ce,be],blur:["none","",me,N],brightness:te(),borderColor:[e],borderRadius:["none","","full",me,N],borderSpacing:I(),borderWidth:q(),contrast:te(),grayscale:U(),hueRotate:te(),invert:U(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[Or,be],inset:J(),margin:J(),opacity:te(),padding:I(),saturate:te(),scale:te(),sepia:U(),skew:te(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[me]}],"break-after":[{"break-after":ae()}],"break-before":[{"break-before":ae()}],"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(),N]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ce,N]}],basis:[{basis:J()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",Ce,N]}],"grid-cols":[{"grid-cols":[Se]}],"col-start-end":[{col:["auto",{span:["full",Ce,N]},N]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Se]}],"row-start-end":[{row:["auto",{span:[Ce,N]},N]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"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:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",N,r]}],"min-w":[{"min-w":[N,r,"min","max","fit"]}],"max-w":[{"max-w":[N,r,"none","full","min","max","fit","prose",{screen:[me]},me]}],h:[{h:[N,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[N,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[N,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[N,r,"auto","min","max","fit"]}],"font-size":[{text:["base",me,be]}],"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:[Se]}],"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",N]}],"line-clamp":[{"line-clamp":["none",xe,Ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ce,N]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ce,be]}],"underline-offset":[{"underline-offset":["auto",ce,N]}],"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:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],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",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ee(),Fr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Wr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Br]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],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":[j]}],"border-style":[{border:[...de(),"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":[j]}],"divide-style":[{divide:de()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[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:["",...de()]}],"outline-offset":[{"outline-offset":[ce,N]}],"outline-w":[{outline:[ce,be]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[ce,be]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",me,Gr]}],"shadow-color":[{shadow:[Se]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":[...fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",me,N]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[M]}],sepia:[{sepia:[E]}],"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":[f]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"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",N]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[Ce,N]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[V]}],"skew-y":[{"skew-y":[V]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],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",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ce,be,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"]}}}),T=(...e)=>Hr(ne(e)),gt=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ht=ne,Z=(e,r)=>t=>{var o;if((r==null?void 0:r.variants)==null)return ht(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:i,defaultVariants:a}=r,l=Object.keys(i).map(c=>{const u=t==null?void 0:t[c],f=a==null?void 0:a[c];if(u===null)return null;const p=gt(u)||gt(f);return i[c][p]}),d=t&&Object.entries(t).reduce((c,u)=>{let[f,p]=u;return p===void 0||(c[f]=p),c},{}),b=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((c,u)=>{let{class:f,className:p,...v}=u;return Object.entries(v).every(x=>{let[k,h]=x;return Array.isArray(h)?h.includes({...a,...d}[k]):{...a,...d}[k]===h})?[...c,f,p]:c},[]);return ht(e,l,b,t==null?void 0:t.class,t==null?void 0:t.className)},Jr=Z("",{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"}}),O=({as:e="span",intent:r,className:t,weight:o,...i})=>{const a=e;return s.jsx(a,{className:T(Jr({intent:r,weight:o,className:t})),...i})},pt=w.forwardRef(({iconName:e,iconText:r,stroke:t=1,onClick:o,size:i=24,...a},l)=>{if(e){const d=br[e];return s.jsx(d,{ref:l,stroke:t,onClick:o,size:i,...a})}else if(r){const d=r.slice(0,2).toUpperCase();return s.jsx("div",{className:"flex items-center justify-center",style:{width:i,height:i},children:s.jsx(O,{intent:i<=16?"label-sm":"label-md",children:d})})}else return console.error(`Icon ${e} not found`),null});pt.displayName="IconComponent";const _=pt,Lr=Z("!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"}}),xt=w.forwardRef(({children:e,iconLeft:r,iconRight:t,utility:o,intent:i,iconOnly:a,size:l,rounded:d,weight:b,className:c,...u},f)=>{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"},v=o?{utility:o}:{intent:i},x=a?{iconOnly:a}:{size:l};return s.jsxs("span",{ref:f,className:T(Lr({...v,...x,rounded:d,weight:b,className:c}),a&&"px-2.5 py-2"),...u,children:[r&&s.jsx(_,{iconName:r.name,stroke:r.stroke,className:p[l||"xs"]}),!a&&e,t&&s.jsx(_,{iconName:t.name,stroke:t.stroke,className:p[l||"xs"]})]})});xt.displayName="Badge";const vt=xt,Te=({className:e})=>s.jsx(_,{iconName:"IconLoader2",className:`${e} animate-spin`}),Ye="relative flex items-center justify-center gap-2 rounded-sm !border-xs transition-colors",yt=Z(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"}}),wt=Z(`${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"}}),kt=Z(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"}}),jt=w.forwardRef(({className:e,intent:r,size:t,weight:o,rounded:i,children:a,iconLeft:l,iconRight:d,iconTextLeft:b,iconTextRight:c,isLoading:u,isActive:f,disabled:p,...v},x)=>{typeof l=="string"&&(l={name:l}),typeof d=="string"&&(d={name:d});const k={sm:"h-6",md:"h-6",lg:"h-6"};return s.jsxs("button",{ref:x,className:T(u?wt({intent:r,weight:o,size:t,rounded:i,className:e}):f?kt({intent:r,weight:o,size:t,rounded:i,className:e}):yt({intent:r,weight:o,size:t,rounded:i,className:e})),disabled:p||u,...v,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(Te,{className:k[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(_,{iconName:l==null?void 0:l.name,iconText:b,stroke:l==null?void 0:l.stroke,className:k[t||"md"]}):null,a,d||c?s.jsx(_,{iconName:d==null?void 0:d.name,iconText:c,stroke:d==null?void 0:d.stroke,className:k[t||"md"]}):null]})]})});jt.displayName="Button";const Ue="flex items-center justify-center transition-colors relative border !border-xs",Ct=Z(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"}}),St=Z(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"}}),Pt=Z(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"}}),Nt=w.forwardRef(({iconName:e,iconText:r,className:t,intent:o="primary-red",size:i="md",rounded:a,disabled:l,isLoading:d,isActive:b,notification:c,...u},f)=>{typeof e=="string"&&(e={name:e});const p={sm:"h-5",md:"h-6",lg:"h-6"};return s.jsxs("button",{ref:f,className:T(d?St({intent:o,size:i,rounded:a,className:t}):b?Pt({intent:o,size:i,rounded:a,className:t}):Ct({intent:o,size:i,rounded:a,className:t})),disabled:l||d,...u,children:[c&&!d&&s.jsx(_,{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"}`}),d?s.jsx(Te,{className:p[i||"md"]}):s.jsx(s.Fragment,{children:e&&s.jsx(_,{iconName:e.name,stroke:e.stroke,iconText:r,size:24})})]})});Nt.displayName="ButtonIcon";const Xe="flex relative items-center justify-center gap-2 transition-colors py-1",Et=Z(Xe,{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"}}),Kr=Z(`${Xe} 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"}}),Qr=Z(Xe,{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"}}),Mt=w.forwardRef(({className:e,intent:r,size:t,weight:o,children:i,iconLeft:a,iconRight:l,iconTextLeft:d,iconTextRight:b,isLoading:c,disabled:u,...f},p)=>{typeof a=="string"&&(a={name:a}),typeof l=="string"&&(l={name:l});const v={sm:"h-5",md:"h-5",lg:"h-6"};return s.jsxs("button",{ref:p,className:T(c?Kr({intent:r,weight:o,size:t,className:e}):u?Qr({intent:r,weight:o,size:t,className:e}):Et({intent:r,weight:o,size:t,className:e})),disabled:u||c,...f,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(Te,{className:v[t||"md"]})}),s.jsxs("span",{className:`flex items-center justify-center gap-2 ${c?"invisible opacity-0":"visible opacity-100"}`,children:[a||d?s.jsx(_,{iconName:a==null?void 0:a.name,iconText:d,stroke:a==null?void 0:a.stroke,className:v[t||"md"]}):null,i,l||b?s.jsx(_,{iconName:l==null?void 0:l.name,iconText:b,stroke:l==null?void 0:l.stroke,className:v[t||"md"]}):null]})]})});Mt.displayName="ButtonLink";function ue(e){return(r={})=>{const t=r.width?String(r.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}function le(e){return(r,t)=>{const o=t!=null&&t.context?String(t.context):"standalone";let i;if(o==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,d=t!=null&&t.width?String(t.width):l;i=e.formattingValues[d]||e.formattingValues[l]}else{const l=e.defaultWidth,d=t!=null&&t.width?String(t.width):e.defaultWidth;i=e.values[d]||e.values[l]}const a=e.argumentCallback?e.argumentCallback(r):r;return i[a]}}function ie(e){return(r,t={})=>{const o=t.width,i=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],a=r.match(i);if(!a)return null;const l=a[0],d=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],b=Array.isArray(d)?qr(d,f=>f.test(l)):Zr(d,f=>f.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 Zr(e,r){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&r(e[t]))return t}function qr(e,r){for(let t=0;t<e.length;t++)if(r(e[t]))return t}function Tt(e){return(r,t={})=>{const o=r.match(e.matchPattern);if(!o)return null;const i=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 d=r.slice(i.length);return{value:l,rest:d}}}const $r={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"}},Dt=(e,r,t)=>{let o;const i=$r[e];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+o:o+" ago":o},en={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_t=(e,r,t,o)=>en[e],tn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},rn={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nn={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"]},on={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"]},an={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"}},sn={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"}},Rt={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:le({values:tn,defaultWidth:"wide"}),quarter:le({values:rn,defaultWidth:"wide",argumentCallback:e=>e-1}),month:le({values:nn,defaultWidth:"wide"}),day:le({values:on,defaultWidth:"wide"}),dayPeriod:le({values:an,defaultWidth:"wide",formattingValues:sn,defaultFormattingWidth:"wide"})},ln=/^(\d+)(th|st|nd|rd)?/i,dn=/\d+/i,cn={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},un={any:[/^b/i,/^(a|c)/i]},bn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},mn={any:[/1/i,/2/i,/3/i,/4/i]},fn={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},gn={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]},hn={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},pn={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]},xn={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},vn={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}},It={ordinalNumber:Tt({matchPattern:ln,parsePattern:dn,valueCallback:e=>parseInt(e,10)}),era:ie({matchPatterns:cn,defaultMatchWidth:"wide",parsePatterns:un,defaultParseWidth:"any"}),quarter:ie({matchPatterns:bn,defaultMatchWidth:"wide",parsePatterns:mn,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ie({matchPatterns:fn,defaultMatchWidth:"wide",parsePatterns:gn,defaultParseWidth:"any"}),day:ie({matchPatterns:hn,defaultMatchWidth:"wide",parsePatterns:pn,defaultParseWidth:"any"}),dayPeriod:ie({matchPatterns:xn,defaultMatchWidth:"any",parsePatterns:vn,defaultParseWidth:"any"})},yn={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},wn={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},kn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jn={date:ue({formats:yn,defaultWidth:"full"}),time:ue({formats:wn,defaultWidth:"full"}),dateTime:ue({formats:kn,defaultWidth:"full"})},De={code:"en-GB",formatDistance:Dt,formatLong:jn,formatRelative:_t,localize:Rt,match:It,options:{weekStartsOn:1,firstWeekContainsDate:4}},Cn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Sn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nn={date:ue({formats:Cn,defaultWidth:"full"}),time:ue({formats:Sn,defaultWidth:"full"}),dateTime:ue({formats:Pn,defaultWidth:"full"})},_e={code:"en-US",formatDistance:Dt,formatLong:Nn,formatRelative:_t,localize:Rt,match:It,options:{weekStartsOn:0,firstWeekContainsDate:1}},En={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"}},Mn=(e,r,t)=>{let o;const i=En[e];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"en "+o:"hace "+o:o},Tn={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},Dn={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},_n={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rn={date:ue({formats:Tn,defaultWidth:"full"}),time:ue({formats:Dn,defaultWidth:"full"}),dateTime:ue({formats:_n,defaultWidth:"full"})},In={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"},zn={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"},On=(e,r,t,o)=>r.getHours()!==1?zn[e]:In[e],An={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},Wn={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Fn={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"]},Vn={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"]},Bn={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"}},Gn={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"}},Yn={ordinalNumber:(e,r)=>Number(e)+"º",era:le({values:An,defaultWidth:"wide"}),quarter:le({values:Wn,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:le({values:Fn,defaultWidth:"wide"}),day:le({values:Vn,defaultWidth:"wide"}),dayPeriod:le({values:Bn,defaultWidth:"wide",formattingValues:Gn,defaultFormattingWidth:"wide"})},Un=/^(\d+)(º)?/i,Xn=/\d+/i,Hn={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},Jn={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]},Ln={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Kn={any:[/1/i,/2/i,/3/i,/4/i]},Qn={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},Zn={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]},qn={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},$n={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]},eo={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},to={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}},ro={ordinalNumber:Tt({matchPattern:Un,parsePattern:Xn,valueCallback:function(e){return parseInt(e,10)}}),era:ie({matchPatterns:Hn,defaultMatchWidth:"wide",parsePatterns:Jn,defaultParseWidth:"any"}),quarter:ie({matchPatterns:Ln,defaultMatchWidth:"wide",parsePatterns:Kn,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ie({matchPatterns:Qn,defaultMatchWidth:"wide",parsePatterns:Zn,defaultParseWidth:"any"}),day:ie({matchPatterns:qn,defaultMatchWidth:"wide",parsePatterns:$n,defaultParseWidth:"any"}),dayPeriod:ie({matchPatterns:eo,defaultMatchWidth:"any",parsePatterns:to,defaultParseWidth:"any"})},Re={code:"es",formatDistance:Mn,formatLong:Rn,formatRelative:On,localize:Yn,match:ro,options:{weekStartsOn:1,firstWeekContainsDate:1}},no=({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,i)=>{const a=o.value===r;return s.jsx("option",{value:o.value,disabled:o.disabled,className:T("disabled:hidden",{"bg-background-blue-subtle font-semibold text-content-accent-blue":a}),children:o.label},i)})}),oo=({orientation:e="down",size:r=16})=>s.jsx(_,{iconName:e==="left"?"IconChevronLeft":"IconChevronRight",stroke:1,size:r}),zt=({locale:e="enGB",disabledDates:r,enabledDates:t,dropdownsSelectors:o=!0,hideNavigation:i=!1,showOutsideDays:a=!0,minDate:l,maxDate:d,value:b,className:c,onChange:u})=>{const[f,p]=w.useState(),v=F=>F.filter(B=>B!==void 0),k=Array.isArray(t)?t.map(F=>new Date(F)):t?new Date(t):void 0,h=Array.isArray(k)?v(k):k?[k]:[],j=h.length>0?X.min(h):void 0,g=h.length>0?X.max(h):void 0,M=()=>Array.isArray(r)?r.map(F=>new Date(F)):r?new Date(r):void 0,P=Array.isArray(M())?[...M()]:[];if(j&&g){const F=X.startOfMonth(j),B=X.endOfMonth(g);X.eachDayOfInterval({start:F,end:B}).forEach(H=>{h.some(K=>K.setHours(0,0,0,0)===H.setHours(0,0,0,0))||P.push(H)})}w.useEffect(()=>{if(b){const F=new Date(b);isNaN(F.getTime())||p(F)}else p(void 0)},[b]);const E=F=>{p(F),u&&u(F?X.format(F,"yyyy-MM-dd"):void 0)},V=e==="enGB"?De:e==="enUS"?_e:Re;return s.jsx("div",{className:T("p-2",c),children:s.jsx(ot.DayPicker,{mode:"single",captionLayout:o?"dropdown":"label",selected:f,onSelect:E,locale:V,startMonth:l||j||new Date(1900,1,1),endMonth:d||g||new Date(2100,12,31),disabled:P,showOutsideDays:a,hideNavigation:i,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 ${i?"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:no,Chevron:({orientation:F,size:B})=>s.jsx(oo,{orientation:F,size:B})}})})},ao=Z("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"}}),Ot=w.forwardRef(({className:e,intent:r,shadow:t,children:o,...i},a)=>s.jsx("div",{ref:a,className:T(ao({intent:r,shadow:t,className:e})),...i,children:o}));Ot.displayName="Card";const so=Ot,lo=w.forwardRef(({label:e,className:r,helperText:t,error:o,touched:i,...a},l)=>s.jsxs("div",{className:T("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:ne("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(O,{intent:"label-lg",weight:"semibold",className:"text-content-text-subtle",children:e})})]}),t&&s.jsx(O,{intent:"label-md",className:"text-content-text-subtle",children:t}),o&&i&&s.jsx(O,{intent:"label-md",className:"text-content-utility-error",children:o})]})),At=Z("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"}}),He=w.forwardRef(({className:e,intent:r,size:t,weight:o,children:i,iconLeft:a,iconRight:l,notification:d,disabled:b,...c},u)=>(typeof a=="string"&&(a={name:a}),typeof l=="string"&&(l={name:l}),s.jsxs("button",{ref:u,className:T(At({intent:r,size:t,weight:o,className:e})),disabled:b,type:"button",...c,children:[a&&s.jsx(_,{iconName:a==null?void 0:a.name,stroke:a==null?void 0:a.stroke,size:16}),i,l&&s.jsx(_,{iconName:l==null?void 0:l.name,stroke:l==null?void 0:l.stroke,size:16}),d&&s.jsx(_,{iconName:"IconCircleFilled",size:6,className:"text-content-utility-error"})]})));He.displayName="Chip";const Ie=w.forwardRef(({children:e,trigger:r,open:t=!1,placement:o="bottom-start",closeOnAction:i=!1,close:a=!1,className:l,onMouseDown:d,onMouseUp:b,popoverWidth:c="auto"},u)=>{var B;const[f,p]=w.useState(t),v=w.useRef(null),{refs:x,floatingStyles:k,context:h}=W.useFloating({open:f,onOpenChange:p,placement:o,middleware:[W.offset(8),W.flip(),W.shift()],whileElementsMounted:W.autoUpdate}),j=W.useDismiss(h,{outsidePress:!0}),{getReferenceProps:g,getFloatingProps:M}=W.useInteractions([j]),{isMounted:P}=W.useTransitionStatus(h),{styles:E}=W.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=H=>{H.stopPropagation(),p(K=>!K)},F=w.cloneElement(r,{onClick:V,ref:H=>{v.current=H,x.setReference(H)},...g()});return w.useEffect(()=>{a&&p(!1)},[a]),s.jsxs(s.Fragment,{children:[F,P&&s.jsx(W.FloatingPortal,{children:s.jsx("div",{ref:x.setFloating,style:{...k,minWidth:c==="as-trigger"?(B=v.current)==null?void 0:B.offsetWidth:void 0},className:"z-[99999]",...M(),children:s.jsx("div",{style:{...E},ref:u,className:T("rounded-sm bg-background-white p-4 shadow-sm",l),onMouseDown:d,onMouseUp:b,onClick:i?()=>p(!1):void 0,children:e||s.jsx("div",{children:"Your placeholder here"})})})})]})}),Wt=w.forwardRef(({className:e,placeholder:r,placement:t="bottom",label:o,helperText:i,disabledDates:a,enabledDates:l,calendarDropdowns:d=!0,hideNavigation:b=!1,showOutsideDays:c=!0,closeOnAction:u=!0,locale:f="enGB",error:p,touched:v,value:x,minDate:k,onChange:h,maxDate:j,...g},M)=>{const[P,E]=w.useState(),[V,F]=w.useState(!1);function B(){F(!0),setTimeout(()=>{F(!1)},200)}const H=J=>{E(J),h&&h({target:{name:g.name,value:J?X.format(J,"yyyy-MM-dd"):""}}),u&&B()};w.useEffect(()=>{if(x){const J=new Date(x);isNaN(J.getTime())||E(J)}else E(void 0)},[x]);const K=f==="enGB"?De:f==="enUS"?_e:Re;return s.jsxs("div",{ref:M,className:T("flex flex-col gap-3",e),...g,children:[o&&s.jsx("label",{htmlFor:g.id,children:s.jsx(O,{intent:"label-lg",weight:"semibold",children:o})}),s.jsx(Ie,{trigger:s.jsxs("button",{type:"button",className:ne("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":!P,"!border-border-blue bg-background-blue-subtle font-semibold text-content-accent-blue focus:border-border-blue-bolder active:border-border-blue-bolder":P,"border-border-utility-success focus:outline-border-utility-success":v&&!p,"border-border-utility-error focus:outline-border-utility-error":p&&v}),children:[s.jsx(_,{iconName:"IconCalendar",size:20,className:"pointer-events-none"}),P?X.format(P,"PPP",{locale:K}):r||"Select a date",s.jsx("input",{hidden:!0,onChange:()=>null,value:P?X.format(P,"yyyy-MM-dd"):x||""}),s.jsx(_,{iconName:"IconChevronDown",size:16,className:"ml-auto text-content-text-default"})]}),close:V,placement:t,className:"rounded-sm !border-xs border-border-default p-0 shadow-none",children:s.jsx(zt,{locale:f,disabledDates:a,enabledDates:l,hideNavigation:b,dropdownsSelectors:d,showOutsideDays:c,value:P?X.format(P,"yyyy-MM-dd"):x,maxDate:j,minDate:k,onChange:J=>{const I=J?new Date(J):void 0;H(I)},className:"p-0"})}),p&&v?s.jsx(O,{intent:"label-md",className:"text-content-utility-error",children:p}):i?s.jsx(O,{intent:"label-md",children:i}):null]})});Wt.displayName="Datepicker";const io=({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,i)=>{const a=o.value===r;return s.jsx("option",{value:o.value,disabled:o.disabled,className:T("disabled:hidden",{"bg-background-blue-subtle font-semibold text-content-accent-blue":a}),children:o.label},i)})}),co=({orientation:e="down",size:r=16})=>s.jsx(_,{iconName:e==="left"?"IconChevronLeft":"IconChevronRight",stroke:1,size:r}),Ft=w.forwardRef(({className:e,locale:r="enGB",placeholder:t,label:o,disabledDates:i,helperText:a,placement:l="bottom",error:d,touched:b,startDate:c,endDate:u,calendarDropdowns:f=!0,onChange:p,minDate:v,maxDate:x,...k},h)=>{const[j,g]=w.useState({from:c?new Date(c):void 0,to:u?new Date(u):void 0}),M=E=>{if(g(E),p){const V={from:E.from?X.format(E.from,"yyyy-MM-dd"):"",to:E.to?X.format(E.to,"yyyy-MM-dd"):""};p({target:{name:k.name,value:V}})}};w.useEffect(()=>{if(c){const E=new Date(c);isNaN(E.getTime())||g(V=>({...V,from:E}))}if(u){const E=new Date(u);isNaN(E.getTime())||g(V=>({...V,to:E}))}},[c,u]);const P=r==="enGB"?De:r==="enUS"?_e:Re;return s.jsxs("div",{ref:h,className:T("flex flex-col gap-3",e),...k,children:[o&&s.jsx("label",{htmlFor:k.id,children:s.jsx(O,{intent:"label-lg",weight:"semibold",children:o})}),s.jsx(Ie,{trigger:s.jsxs("button",{type:"button",className:ne("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":!j.from&&!j.to,"border-border-blue bg-background-blue-subtle font-semibold text-content-accent-blue focus:border-border-blue-bolder active:border-border-blue-bolder":j.from&&j.to,"border-border-utility-success focus:outline-border-utility-success":b&&!d,"border-border-utility-error focus:outline-border-utility-error":d&&b}),children:[s.jsx(_,{iconName:"IconCalendar",size:20,className:"pointer-events-none"}),j.from&&j.to?`${X.format(j.from,"PPP",{locale:P})} - ${X.format(j.to,"PPP",{locale:P})}`:t||"Select a date range",s.jsx("input",{hidden:!0,onChange:()=>null,value:j.from&&j.to?`${X.format(j.from,"yyyy-MM-dd")} to ${X.format(j.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(ot.DayPicker,{mode:"range",captionLayout:f?"dropdown":"label",selected:j,onSelect:M,locale:P,startMonth:v||new Date(1900,0,1),endMonth:x||new Date(2100,11,31),showOutsideDays:!0,disabled:i,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:io,Chevron:({orientation:E,size:V})=>s.jsx(co,{orientation:E,size:V})}})}),d&&b?s.jsx(O,{intent:"label-md",className:"text-content-utility-error",children:d}):s.jsx(O,{intent:"label-md",children:a})]})});Ft.displayName="DateRangePicker";const Vt={enGB:De,enUS:_e,es:Re},uo=e=>{const r=X.startOfWeek(new Date,{locale:Vt[e]});return X.eachDayOfInterval({start:r,end:X.addMinutes(r,6*24*60)}).map(t=>X.format(t,"EEEE",{locale:Vt[e]}).toUpperCase())},bo=(e,r,t)=>{const o=[];let i=new Date(`1970-01-01T${e}:00`);const a=new Date(`1970-01-01T${r}:00`);for(;i<=a;)o.push(X.format(i,"HH:mm")),i=X.addMinutes(i,t);return o},mo=e=>{if(new Set(e).size!==e.length)throw new Error("Duplicate days found in disabledDays")},fo=({availableHours:e={start:"00:00",end:"23:30"},availableTimes:r,onSelectionChange:t,locale:o="enGB",intervalMinutes:i=30,singleSelection:a=!1,singleSelectionPerDay:l=!0,disabledDays:d=[]})=>{mo(d);const b=w.useMemo(()=>uo(o),[o]),c=w.useMemo(()=>r?Object.keys(r):[],[r]),u=w.useCallback(()=>{for(const g of b)if(!d.includes(g)&&(c.includes(g)||!r))return g;return"MONDAY"},[b,d,c,r]),[f,p]=w.useState(u()),[v,x]=w.useState({});w.useEffect(()=>{p(u())},[]);const k=w.useMemo(()=>{var g;return r&&c.includes(f)?((g=r[f])==null?void 0:g.filter(M=>{const P=new Date(`1970-01-01T${M}:00`),E=new Date(`1970-01-01T${e.start}:00`),V=new Date(`1970-01-01T${e.end}:00`);return P>=E&&P<=V}))||[]:bo(e.start,e.end,i)},[r,c,f,e,i]),h=g=>{if(!c.includes(f)&&r)return;const M={...v};if(a){for(const P in M)M[P]=[];M[f]=[g]}else if(l)M[f]=[g];else{const P=v[f]||[];M[f]=P.includes(g)?P.filter(E=>E!==g):[...P,g]}x(M),t==null||t(M)},j=g=>{d.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 V;const M=f===g,P=(((V=v[g])==null?void 0:V.length)||0)>0,E=(r?!c.includes(g):!1)||d.includes(g);return s.jsxs("button",{type:"button","aria-label":g,onClick:()=>j(g),disabled:E,className:T("flex justify-start gap-1 !border-b-sm bg-background-white p-1 text-left text-sm 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":E}),children:[g.slice(0,3),s.jsx("span",{className:T("rounded-full bg-background-blue p-0.5 text-content-text-inverse",{"opacity-0":!P||E}),children:s.jsx(_,{iconName:"IconCalendarCheck",size:16})})]},g)})}),s.jsx("div",{className:"grid grid-cols-3 gap-3 sm:grid-cols-5",children:k.map(g=>{var E;const M=(E=v[f])==null?void 0:E.includes(g),P=(r?!c.includes(f):!1)||d.includes(f);return s.jsx("button",{type:"button","aria-label":g,className:T("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&&!P,"border-border-default text-content-text-default":!M&&!P,"cursor-not-allowed border-border-subtle opacity-50":P}),onClick:()=>!P&&h(g),children:g},`${f}-${g}`)})})]})},Bt=({ref:e,handler:r})=>{w.useEffect(()=>{const t=o=>{e.current&&!e.current.contains(o.target)&&r()};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[e,r])},Gt=w.forwardRef(({label:e,iconName:r,className:t,helperText:o,error:i,touched:a,options:l=[],placement:d="bottom",placeholder:b="Select an option",searchPlaceholder:c="Search...",canSelectAll:u,selectAllLabel:f="Select All",canSearch:p,multiple:v,value:x,dropdownWidth:k,...h},j)=>{const[g,M]=w.useState(!1),[P,E]=w.useState(l),[V,F]=w.useState(""),[B,H]=w.useState(null),[K,J]=w.useState([]);function I(){M(!0),setTimeout(()=>{M(!1)},200)}w.useEffect(()=>{if(l)if(v){const z=l.filter(U=>x==null?void 0:x.includes(U.value));J(z)}else{const z=l.find(U=>U.value===x)||null;H(z)}},[x,l,v]),w.useEffect(()=>{E(l.filter(z=>z.label.toLowerCase().includes(V.toLowerCase())))},[V,l]);const q=z=>{var U,ae,te,Pe,Ne;if(z===null){v?(J([]),(U=h.onChange)==null||U.call(h,[])):(H(null),(ae=h.onChange)==null||ae.call(h,null),I());return}if(v){let ge=[...K];K.some(he=>he.value===z.value)?ge=ge.filter(he=>he.value!==z.value):ge.push(z),J(ge),(te=h.onChange)==null||te.call(h,ge.map(he=>he.value))}else B&&B.value===z.value?(H(null),(Pe=h.onChange)==null||Pe.call(h,null)):(H(z),(Ne=h.onChange)==null||Ne.call(h,z.value)),I()},$=w.useRef(null);Bt({ref:$,handler:()=>I()});const ee=l.length===K.length,de=v?K.length===0:B===null,fe=()=>{var z,U;ee?(J([]),(z=h.onChange)==null||z.call(h,[])):(J(l),(U=h.onChange)==null||U.call(h,l.map(ae=>ae.value)))};return s.jsxs("div",{ref:j,className:T("flex flex-col gap-3",t),children:[e&&s.jsx("label",{htmlFor:h.id,children:s.jsx(O,{intent:"label-lg",weight:"semibold",children:e})}),s.jsx(Ie,{placement:d,close:g,className:"w-full overflow-hidden rounded-sm !border-xs border-border-bolder p-0 shadow-none",popoverWidth:k,trigger:s.jsxs("div",{ref:$,className:ne("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":!g,"focus:outline-border-default lg:hover:border-border-default":!i,"border-border-utility-error focus:outline-border-utility-error":i&&a,"border-border-utility-success focus:outline-border-utility-success":a&&!i&&(v?K.length!==null:B!==null),"pl-9":r,"!border-border-blue bg-background-blue-subtle text-content-accent-blue":!de}),...h,tabIndex:0,role:"combobox","aria-expanded":!g,"aria-haspopup":"listbox","aria-labelledby":h.id,children:[r&&s.jsx(_,{iconName:r,size:16,className:"absolute left-2 top-1/2 min-h-4 min-w-4 -translate-y-1/2"}),s.jsx(O,{intent:"label-lg",className:ne("flex-1 truncate",{"text-content-text-subtlest":v?K.length===0:!B}),weight:de?"regular":"semibold",children:v?K.map(z=>z.label).join(", ")||b:(B==null?void 0:B.label)||b}),s.jsx(_,{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",placeholder:c,value:V,onChange:z=>F(z.target.value)}),!p&&!v&&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:()=>q(null),tabIndex:g?-1:0,children:s.jsx(O,{intent:"label-md",children:b})}),v&&u&&s.jsx("div",{children:s.jsxs("button",{onClick:fe,className:T("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":ee,"text-content-text-subtle lg:hover:bg-background-blue-subtle lg:hover:text-content-text-default":!ee}),children:[s.jsx(_,{iconName:ee?"IconSquareCheckFilled":"IconSquare",size:20,className:ne("max-h-5 min-h-5 min-w-5 max-w-5",{"text-background-blue":ee,"text-content-text-subtlest":!ee})}),f]})}),P.map(z=>{const U=v?K.some(ae=>ae.value===z.value):(B==null?void 0:B.value)===z.value;return s.jsxs("button",{type:"button",className:T("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":U,"text-content-text-subtle lg:hover:bg-background-blue-subtle lg:hover:text-content-text-default":!U}),onClick:()=>q(z),tabIndex:g?-1:0,children:[s.jsx(_,{iconName:U?"IconSquareCheckFilled":"IconSquare",size:20,className:ne("max-h-5 min-h-5 min-w-5 max-w-5",{"text-background-blue":U,"text-content-text-subtlest":!U})}),s.jsx(O,{intent:"label-md",weight:U?"semibold":"regular",children:z.label})]},z.value)})]})}),i&&a?s.jsx(O,{intent:"label-md",className:"-mt-1 text-content-utility-error",children:i}):o?s.jsx(O,{intent:"label-md",className:"-mt-1 text-content-text-subtle",children:o}):null]})});Gt.displayName="DropdownSelect";const Yt=w.forwardRef(({label:e,iconName:r,className:t,helperText:o,error:i,touched:a,type:l="text",...d},b)=>{typeof r=="string"&&(r={name:r});const[c,u]=w.useState(!1),f=l==="textarea"?"textarea":"input";return s.jsxs("div",{className:"flex flex-col gap-3",children:[e&&s.jsx("label",{htmlFor:d.id,children:s.jsx(O,{intent:"label-lg",weight:"semibold",className:ne({"text-content-text-disabled-bolder":d.disabled}),children:e})}),s.jsxs("div",{className:"relative w-full",children:[r&&l!=="textarea"&&l!=="color"&&s.jsx("span",{className:ne("absolute left-3 top-1/2 -translate-y-1/2",{"text-content-text-subtle":!i&&!a,"text-content-utility-error":i&&a,"text-content-utility-success":a&&!i&&d.value!==void 0,"text-content-text-disabled-bolder":d.disabled}),children:typeof r=="object"?s.jsx(_,{iconName:r.name,stroke:r.stroke,size:20}):s.jsx(_,{iconName:r,size:20})}),i&&a&&l!=="password"&&l!=="color"&&s.jsx(_,{iconName:"IconAlertCircleFilled",size:20,className:"absolute right-2 top-1/2 -translate-y-1/2 text-content-utility-error"}),a&&!i&&d.value!==void 0&&l!=="password"&&l!=="color"&&s.jsx(_,{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(_,{iconName:c?"IconEyeOff":"IconEye",size:20})}),s.jsx(f,{ref:b,className:T("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":i&&a,"!border-border-utility-success pr-9 text-content-utility-success focus:border-border-utility-success focus:outline-border-utility-success":a&&!i&&d.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,...d})]}),i&&a?s.jsx(O,{intent:"label-md",className:"-mt-1 text-content-utility-error",children:i}):o?s.jsx(O,{intent:"label-md",className:ne("-mt-1",{"text-content-text-subtle":!i&&!a,"text-content-utility-error":i&&a,"text-content-utility-success":a&&!i&&d.value!==void 0,"text-content-text-disabled-bolder":d.disabled}),children:o}):null]})});Yt.displayName="Input";const Ut=({className:e,children:r,isOpen:t,setIsOpen:o,canClose:i=!0,intent:a="card",overlay:l="blur",closeButtonAriaLabel:d="Close",closeOnClickOutside:b=!0})=>{const{refs:c,context:u}=W.useFloating({open:t,onOpenChange:o,whileElementsMounted:W.autoUpdate}),f=W.useClick(u),p=W.useDismiss(u,{outsidePress:b,escapeKey:!0}),v=W.useRole(u),{getFloatingProps:x}=W.useInteractions([f,p,v]),{styles:k}=W.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(W.FloatingPortal,{children:s.jsx(W.FloatingOverlay,{lockScroll:!0,className:T("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(W.FloatingFocusManager,{context:u,children:s.jsxs("div",{ref:c.setFloating,...x(),style:{...k},className:T("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:[i&&a!=="wizard"&&o&&s.jsx("button",{"aria-label":d,type:"button",onClick:()=>o(!1),className:"absolute right-4 top-4 cursor-pointer transition-colors lg:hover:text-content-text-subtle",children:s.jsx(_,{iconName:"IconX"})}),r]})})})}):null},Je=({children:e,trigger:r,className:t,placement:o="top",iconName:i="IconInfoCircleFilled",arrow:a})=>{const[l,d]=w.useState(!1),b=w.useRef(null),[c,u]=w.useState(!1);w.useEffect(()=>{u(window.innerWidth<768);const j=()=>u(window.innerWidth<768);return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[]);const{refs:f,floatingStyles:p,context:v}=W.useFloating({placement:o,middleware:[W.offset(8),W.flip(),W.shift(),a?W.arrow({element:b}):void 0],open:l}),{isMounted:x}=W.useTransitionStatus(v),{styles:k}=W.useTransitionStyles(v,{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"}}),h=()=>{c&&d(!0)};return s.jsxs(s.Fragment,{children:[s.jsx("div",{ref:f.setReference,className:"relative inline-flex",onClick:c?h:void 0,onMouseEnter:c?void 0:()=>d(!0),onMouseLeave:c?void 0:()=>d(!1),onFocus:c?void 0:()=>d(!0),onBlur:c?void 0:()=>d(!1),"data-state":l?"open":"closed",role:"tooltip","aria-describedby":"tooltip-content",tabIndex:0,children:r||s.jsx(_,{iconName:i,size:20,className:"min-h-5 min-w-5 text-content-accent-blue-bolder"})}),!c&&x&&s.jsx(W.FloatingPortal,{children:s.jsxs("div",{ref:f.setFloating,style:p,children:[a?s.jsx(W.FloatingArrow,{ref:b,context:v,width:24,height:14,style:{...k},tipRadius:2,className:"z-[51] fill-background-white drop-shadow-sm"}):null,s.jsx("div",{style:{...k},className:T("z-50 rounded-md bg-background-white p-3 text-sm shadow-sm",t),role:"tooltip",id:"tooltip-content",children:e})]})}),c&&s.jsx(Ut,{isOpen:l,setIsOpen:d,intent:"sheet",overlay:"opacity",children:e})]})};Je.displayName="Tooltip";const go=Z("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"}}),Xt=w.forwardRef(({className:e,intent:r,shadow:t,isActive:o,title:i,text:a,helperText:l,badgeText:d,disabled:b,utilityBadge:c,colorBadge:u,badgeSize:f="xs",iconName:p,iconText:v,tooltipIconName:x="IconHelpCircleFilled",tooltipText:k,tooltipTitle:h,tooltipPlacement:j="top",...g},M)=>s.jsxs("div",{ref:M,className:T(go({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:[d||p||v?s.jsxs("div",{className:"flex items-center justify-between",children:[p||v?s.jsx("div",{className:T("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(_,{iconName:p,iconText:v,size:20})}):null,d?s.jsx(vt,{utility:c,intent:u,size:f,weight:"semibold",className:"justify-self-end",children:d}):null,k?s.jsx("div",{className:"w-fit",children:s.jsx(Je,{placement:j,trigger:x?s.jsx(_,{iconName:x,size:20,className:"min-w-5 min-h-5"}):void 0,children:h||k?s.jsxs("div",{className:"flex flex-col gap-1 text-content-text-subtle",children:[h?s.jsx(O,{as:"p",intent:"paragraph-md",weight:"semibold",children:h}):null,k?s.jsx(O,{as:"p",intent:"paragraph-md",children:k}):null]}):null})}):null]}):null,s.jsxs("div",{className:"flex flex-col gap-1",children:[i?s.jsx(O,{intent:"label-xl",weight:"semibold",className:T("text-content-text-default",{"text-content-text-disabled-bolder":b}),children:i}):null,a?s.jsx(O,{intent:"paragraph-md",className:T("text-content-text-subtle",{"text-content-text-disabled-bolder":b}),children:a}):null]}),l?s.jsx(O,{intent:"paragraph-sm",className:T("text-content-text-subtlest",{"text-content-text-disabled-bolder":b}),children:l}):null]}));Xt.displayName="InteractiveCard";const ho=Xt,Ht=Z("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"}}),po=({progress:e,className:r,intent:t,size:o,rounded:i="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(O,{intent:"label-md",weight:"semibold",children:[e,"%"]})}),s.jsx("span",{className:T("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:T(Ht({size:o,rounded:i}),"relative w-full bg-background-disabled"),children:s.jsx("div",{className:T(Ht({intent:t,size:o,rounded:i,className:r})),style:{width:`${e}%`}})})]})},xo=({id:e,label:r,options:t,multiple:o=!1,selectedOptions:i,setSelectedOptions:a,className:l,disabled:d,helperText:b,error:c,touched:u})=>{const f=i,p=x=>{if(!o)return a(x.value),x.value;let k=[];return k=Array.isArray(f)?f.includes(x.value)?f.filter(h=>h!==x.value):[...f,x.value]:[x.value],a(k),k},v=x=>o&&Array.isArray(i)?i.includes(x.value):i===x.value;return t.length===0?null:s.jsxs("div",{className:T("flex flex-col gap-3",l),children:[r&&s.jsx("label",{htmlFor:e,children:s.jsx(O,{intent:"label-lg",weight:"semibold",className:ne({"text-content-text-disabled-bolder":d}),children:r})}),s.jsx("div",{className:"flex flex-wrap gap-2",children:t.map(x=>{const k=v(x);return s.jsx(He,{intent:k?"selected":"unselected",iconLeft:k?"IconCheck":void 0,onClick:()=>p(x),disabled:d,children:x.label},x.label)})}),c&&u?s.jsx(O,{intent:"label-md",className:"-mt-1 text-content-utility-error",children:c}):s.jsx(O,{intent:"label-md",className:ne("-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":d}),children:b})]})},vo=({className:e,...r})=>s.jsx("div",{className:T("before:animate-shimmer 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: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}),yo=Z("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"}}),wo=Z("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"}}),Jt=w.forwardRef(({className:e,defaultChecked:r,checked:t,onCheckedChange:o,disabled:i,switchSize:a,...l},d)=>{const[b,c]=w.useState(r||!1),u=t!==void 0,f=u?t:b,p=()=>{if(i)return;const x=!f;u||c(x),o==null||o(x)},v=x=>{(x.key===" "||x.key==="Enter")&&(x.preventDefault(),p())};return s.jsx("button",{ref:d,type:"button",role:"switch","aria-checked":f,"data-state":f?"checked":"unchecked",onClick:p,onKeyDown:v,disabled:i,className:T(yo({switchSize:a,className:e})),...l,children:s.jsx("span",{"data-state":f?"checked":"unchecked",className:wo({switchSize:a})})})});Jt.displayName="Switch";const ko=Z("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"}}),Le=w.forwardRef(({className:e,title:r,message:t,intent:o,onClose:i,canClose:a,position:l,duration:d,...b},c)=>{const u=l==="top"||l==="top-left"||l==="top-right"?"animate-fade-in-top-to-bottom":"animate-fade-in-bottom-to-top",f=l==="top"||l==="top-left"||l==="top-right"?"animate-fade-out-bottom-to-top":"animate-fade-out-top-to-bottom",[p,v]=w.useState(!1);return w.useEffect(()=>{if(d&&a){const x=setTimeout(()=>{v(!0)},d-250);return()=>clearTimeout(x)}},[d,a]),w.useEffect(()=>{if(p&&i&&a){const x=setTimeout(()=>{i()},250);return()=>clearTimeout(x)}},[p,i,a]),s.jsxs("div",{ref:c,className:T(ko({intent:o}),e,a&&u,p&&a&&f),...b,children:[s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(_,{iconName:o==="info"?"IconInfoCircleFilled":o==="success"?"IconCircleCheckFilled":o==="warning"?"IconAlertTriangleFilled":o==="error"?"IconForbidFilled":"IconHelpCircleFilled",size:16}),r?s.jsx(O,{intent:"label-lg",className:"text-content-text-default",weight:"semibold",children:r}):null,s.jsx(O,{intent:"paragraph-sm",className:"text-content-text-default",children:t})]}),a?s.jsx("button",{"aria-label":"Close",type:"button",onClick:()=>v(!0),children:s.jsx(_,{iconName:"IconX",size:16,className:"min-h-4 min-w-4"})}):null]})});Le.displayName="Toast";const Lt=w.createContext(void 0),jo=()=>{const e=w.useContext(Lt);if(!e)throw new Error("useToasts must be used within a ToastProvider");return e},Co=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,So=({children:e})=>{const[r,t]=w.useState([]),[o,i]=w.useState(!1),[a,l]=w.useState(""),d=w.useCallback(c=>{t(u=>u.filter(f=>f.id!==c))},[r]);w.useEffect(()=>{i(!0)},[]);const b=w.useCallback(({title:c,message:u,intent:f,position:p="bottom-right",canClose:v,duration:x=4e3})=>{const k=Co(),h={id:k,title:c,message:u,intent:f,position:p,canClose:v,duration:x,onClose:()=>d(k)};switch(t(j=>[...j.slice(-2),h]),setTimeout(()=>{t(j=>j.filter(g=>g.id!==k))},x),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}},[d]);return s.jsxs(Lt.Provider,{value:b,children:[e,o?cr.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(Le,{title:c.title,message:c.message,intent:c.intent,canClose:c.canClose,position:c.position,duration:c.duration,onClose:()=>d(c.id)},c.id))})}),document.body):null]})};C.Avatar=gr,C.Badge=vt,C.Button=jt,C.ButtonIcon=Nt,C.ButtonLink=Mt,C.Calendar=zt,C.Card=so,C.Checkbox=lo,C.Chip=He,C.DateRangePicker=Ft,C.Datepicker=Wt,C.DayTimePicker=fo,C.DropdownSelect=Gt,C.IconComponent=_,C.Input=Yt,C.InteractiveCard=ho,C.Modal=Ut,C.Popover=Ie,C.ProgressBar=po,C.SelectableChips=xo,C.Skeleton=vo,C.Spinner=Te,C.Switch=Jt,C.Text=O,C.Toast=Le,C.ToastProvider=So,C.Tooltip=Je,C.buttonActiveStyles=kt,C.buttonIconActiveStyles=Pt,C.buttonIconLoadingStyles=St,C.buttonIconStyles=Ct,C.buttonLinkStyles=Et,C.buttonLoadingStyles=wt,C.buttonStyles=yt,C.chipStyles=At,C.useOutsideClick=Bt,C.useToast=jo,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clasing/ui",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",