sodtrack-web-ui 0.115.0 → 0.115.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/chunk-23G2RUJ6.js +1 -0
  2. package/dist/{chunk-D22S2MCI.js → chunk-3L7WYNV4.js} +1 -1
  3. package/dist/chunk-3M37GYCH.js +1 -0
  4. package/dist/chunk-4LLZKI7O.js +1 -0
  5. package/dist/{chunk-PDTAPAIU.js → chunk-5FW2US3I.js} +1 -1
  6. package/dist/chunk-CCNBH6FM.js +2 -0
  7. package/dist/{chunk-RA7JT6A7.js → chunk-DKESWED4.js} +1 -1
  8. package/dist/{chunk-3ZKC3JEV.js → chunk-F2URA376.js} +1 -1
  9. package/dist/chunk-G4MLC3EG.js +1 -0
  10. package/dist/chunk-IX3IQQ4Y.js +1 -0
  11. package/dist/chunk-JXKCR6BG.js +1 -0
  12. package/dist/chunk-LJNEBCBI.js +1 -0
  13. package/dist/{chunk-6JU7PZ2E.js → chunk-PJZVBKAK.js} +1 -1
  14. package/dist/{chunk-BZSVUE6P.js → chunk-QKM6Q2CN.js} +1 -1
  15. package/dist/chunk-QUZFNVVQ.js +1 -0
  16. package/dist/chunk-QYVBU3YK.js +1 -0
  17. package/dist/chunk-RLXDCCHW.js +1 -0
  18. package/dist/chunk-RTNWQFSN.js +1 -0
  19. package/dist/chunk-SJJ7IABX.js +1 -0
  20. package/dist/{chunk-SOAQVANY.js → chunk-SYHPQA3E.js} +1 -1
  21. package/dist/{chunk-P6LEAWO4.js → chunk-VHPQRQLD.js} +1 -1
  22. package/dist/{chunk-6R4QD7UB.js → chunk-XJ2YYVZX.js} +1 -1
  23. package/dist/chunk-YBNOVFMN.js +1 -0
  24. package/dist/components/autocomplete-multiple.d.ts +4 -0
  25. package/dist/components/autocomplete-multiple.js +1 -1
  26. package/dist/components/autocomplete-skeleton.d.ts +2 -1
  27. package/dist/components/autocomplete-skeleton.js +1 -1
  28. package/dist/components/autocomplete.d.ts +3 -0
  29. package/dist/components/autocomplete.js +1 -1
  30. package/dist/components/button-active.js +1 -1
  31. package/dist/components/button-menu.js +1 -1
  32. package/dist/components/choice-chips.d.ts +5 -2
  33. package/dist/components/choice-chips.js +1 -1
  34. package/dist/components/date-picker.d.ts +7 -0
  35. package/dist/components/date-picker.js +1 -1
  36. package/dist/components/drawer-bar.d.ts +1 -0
  37. package/dist/components/drawer-bar.js +1 -1
  38. package/dist/components/dropzone.d.ts +6 -1
  39. package/dist/components/dropzone.js +1 -1
  40. package/dist/components/index.d.ts +11 -28
  41. package/dist/components/index.js +1 -1
  42. package/dist/components/list-item-arrow.js +1 -1
  43. package/dist/components/list-item-button.js +1 -1
  44. package/dist/components/list-item-checkbox-left.js +1 -1
  45. package/dist/components/list-item-checkbox.js +1 -1
  46. package/dist/components/list-item.d.ts +2 -0
  47. package/dist/components/list-item.js +1 -1
  48. package/dist/components/list-item_old.js +1 -1
  49. package/dist/components/menu.d.ts +5 -4
  50. package/dist/components/menu.js +1 -1
  51. package/dist/components/multi-select-chips.d.ts +43 -0
  52. package/dist/components/multi-select-chips.js +1 -0
  53. package/dist/components/number-field.d.ts +7 -0
  54. package/dist/components/number-field.js +1 -1
  55. package/dist/components/radio.d.ts +6 -0
  56. package/dist/components/radio.js +1 -1
  57. package/dist/components/select-skeleton.d.ts +3 -0
  58. package/dist/components/select-skeleton.js +1 -1
  59. package/dist/components/select.d.ts +5 -0
  60. package/dist/components/select.js +1 -1
  61. package/dist/components/signature-pad.d.ts +7 -0
  62. package/dist/components/signature-pad.js +1 -1
  63. package/dist/components/text-field.d.ts +7 -0
  64. package/dist/components/text-field.js +1 -1
  65. package/dist/components/textarea.d.ts +7 -0
  66. package/dist/components/textarea.js +1 -1
  67. package/dist/components/time-picker.d.ts +7 -0
  68. package/dist/components/time-picker.js +1 -1
  69. package/dist/components/tracker-item.js +1 -1
  70. package/dist/label-9gkh212G.d.ts +86 -0
  71. package/dist/preferences.js +1 -1
  72. package/dist/styles/index.css +1 -1
  73. package/package.json +1 -1
  74. package/dist/chunk-26H6YVZC.js +0 -1
  75. package/dist/chunk-5BWDWSAE.js +0 -1
  76. package/dist/chunk-7CJMO5NP.js +0 -1
  77. package/dist/chunk-AAG6PKX4.js +0 -1
  78. package/dist/chunk-BGUGHVZE.js +0 -1
  79. package/dist/chunk-KXZ7WJDS.js +0 -1
  80. package/dist/chunk-NZ4NWU2A.js +0 -1
  81. package/dist/chunk-Q2KEE7CU.js +0 -1
  82. package/dist/chunk-S2MRTQV3.js +0 -1
  83. package/dist/chunk-T5NU5E4O.js +0 -1
  84. package/dist/chunk-UZSVWBCF.js +0 -2
  85. package/dist/chunk-ZK7M4IJV.js +0 -1
  86. package/dist/chunk-ZZSDE7IY.js +0 -1
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-3RNV3YTB.js';import {r}from'./chunk-QMPBFFFC.js';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var L=["regular","medium","semibold"],x=["sm","md","lg"],d=tv({base:"font-inter mb-2 flex items-center text-neutral-900",variants:{variant:{regular:"font-normal",medium:"font-medium",semibold:"font-semibold"},size:{sm:"text-xs leading-[133.33%]",md:"text-sm leading-[142.86%]",lg:"text-base leading-[150%]"}},defaultVariants:{variant:"medium",size:"sm"}}),y=({as:n,label:t,required:l,tooltip:a$1,className:i,htmlFor:m,variant:p,size:b})=>jsxs(n,{className:d({variant:p,size:b,className:i}),htmlFor:m,children:[l?jsxs("span",{className:"flex items-center gap-0.5",children:[jsx("span",{className:"text-danger-500",children:"*"}),t]}):t,a$1&&jsx(a,{content:a$1,className:"ml-2",children:jsx(r,{className:"size-3.5"})})]}),z=L,F=x,V=y;export{L as a,x as b,y as c,z as d,F as e,V as f};
@@ -1 +1 @@
1
- import {c}from'./chunk-3J3A5ETC.js';import {c as c$1}from'./chunk-NZ4NWU2A.js';import {d}from'./chunk-WAUY2MS6.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {L}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-AWRP67K4.js';import {e}from'./chunk-P7NW2XNB.js';import {a as a$2}from'./chunk-P6B33GL6.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsx,jsxs}from'react/jsx-runtime';var t=tv({slots:{root:"ring-drawer-bar-border @container flex w-full flex-col rounded-md bg-neutral-100 ring ring-inset",header:"border-drawer-bar-border py-3.125 flex flex-wrap items-center gap-3 border-b px-4 last:border-b-0 @md:gap-2",main:"border-drawer-bar-border py-1.875 flex flex-col items-stretch gap-2 border-b px-2 last:border-b-0 @md:flex-row @md:items-center",actions:"flex shrink-0 items-center gap-3 @max-md:flex-wrap",selection:"ml-auto flex items-center gap-3",selectionLabel:"text-sm leading-[143%] font-medium text-neutral-900",divider:"h-4 @max-md:h-px @max-md:w-full",filters:"flex flex-col gap-2 px-2 pt-3 pb-2 @md:flex-row @md:justify-between"}}),z=r=>r?.startsWith("es")?"Seleccionados":r?.startsWith("pt")?"Selecionados":"Selected",W=r=>r?.startsWith("es")?"Limpiar todo":r?.startsWith("pt")?"Limpar tudo":"Clear all",D=r=>{let{header:e}=t();return jsx("div",{...r,className:e()})};D.displayName="DrawerBarHeader";var f=({label:r,...e})=>{let{locale:o}=getDefaultOptions(),{selectionLabel:i,selection:s}=t();return jsxs("div",{className:s(),children:[jsx("span",{className:i(),children:r??z(o?.code)}),jsx(a$2,{...e,size:"md",variant:"primary",type:"square"})]})};f.displayName="DrawerBarSelection";var C=r=>jsx(c$1,{...r,variant:"outline",orientation:"horizontal",size:"sm"});C.displayName="DrawerBarChoiceChips";var v=r=>{let{main:e}=t();return jsx("div",{...r,className:e()})};v.displayName="DrawerBarMain";var P=r=>jsx(c,{size:"lg",...r});P.displayName="DrawerBarSearchBar";var N=({children:r})=>{let{actions:e}=t();return jsx("div",{className:e(),children:r})};N.displayName="DrawerBarActions";var b=({className:r,...e$1})=>jsx(e,{...e$1,className:a$1("@max-md:w-full",r),variant:"ghost",size:"md"});b.displayName="DrawerBarActionButton";var y=r=>jsx(e$1,{...r,variant:"ghost",size:"md"});y.displayName="DrawerBarActionIconButton";var g=()=>{let{divider:r}=t();return jsx(a,{orientation:"vertical",variant:"400",className:r()})};g.displayName="DrawerBarDivider";var x=({children:r,onClear:e$1,clearLabel:o})=>{let{locale:i}=getDefaultOptions(),{filters:s}=t();return jsxs("div",{className:s(),children:[jsx("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:r}),e$1&&jsx(e,{size:"sm",variant:"ghost",StartIcon:L,onClick:e$1,children:o??W(i?.code)})]})};x.displayName="DrawerBarFilters";var F=r=>jsx(d,{size:"md",variant:"fill",color:"neutral",...r});F.displayName="DrawerBarFilterChipInput";var S=({children:r,className:e,...o})=>{let{root:i}=t();return jsx("div",{className:i({className:e}),...o,children:r})};S.displayName="DrawerBar";var Y=Object.assign(S,{Header:D,Selection:f,ChoiceChips:C,Main:v,SearchBar:P,Actions:N,ActionButton:b,ActionIconButton:y,Divider:g,Filters:x,FilterChipInput:F});export{Y as a};
1
+ import {c}from'./chunk-3J3A5ETC.js';import {c as c$1}from'./chunk-4LLZKI7O.js';import {d}from'./chunk-WAUY2MS6.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {L}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-AWRP67K4.js';import {e}from'./chunk-P7NW2XNB.js';import {a as a$2}from'./chunk-P6B33GL6.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsx,jsxs}from'react/jsx-runtime';var t=tv({slots:{root:"ring-drawer-bar-border @container flex w-full flex-col rounded-md bg-neutral-100 ring ring-inset",header:"border-drawer-bar-border py-3.125 flex flex-wrap items-center gap-3 border-b px-4 last:border-b-0 @md:gap-2",main:"border-drawer-bar-border py-1.875 flex flex-col items-stretch gap-2 border-b px-2 last:border-b-0 @md:flex-row @md:items-center",actions:"flex shrink-0 items-center gap-3 @max-md:flex-wrap",selection:"ml-auto flex items-center gap-3",selectionLabel:"text-sm leading-[143%] font-medium text-neutral-900",divider:"h-4 @max-md:h-px @max-md:w-full",filters:"flex flex-col gap-2 px-2 pt-3 pb-2 @md:flex-row @md:justify-between"}}),z=r=>r?.startsWith("es")?"Seleccionados":r?.startsWith("pt")?"Selecionados":"Selected",W=r=>r?.startsWith("es")?"Limpiar todo":r?.startsWith("pt")?"Limpar tudo":"Clear all",D=r=>{let{header:e}=t();return jsx("div",{...r,className:e()})};D.displayName="DrawerBarHeader";var f=({label:r,...e})=>{let{locale:o}=getDefaultOptions(),{selectionLabel:i,selection:s}=t();return jsxs("div",{className:s(),children:[jsx("span",{className:i(),children:r??z(o?.code)}),jsx(a$2,{...e,size:"md",variant:"primary",type:"square"})]})};f.displayName="DrawerBarSelection";var C=r=>jsx(c$1,{...r,variant:"outline",orientation:"horizontal",size:"sm"});C.displayName="DrawerBarChoiceChips";var v=r=>{let{main:e}=t();return jsx("div",{...r,className:e()})};v.displayName="DrawerBarMain";var P=r=>jsx(c,{size:"lg",...r});P.displayName="DrawerBarSearchBar";var N=({children:r})=>{let{actions:e}=t();return jsx("div",{className:e(),children:r})};N.displayName="DrawerBarActions";var b=({className:r,...e$1})=>jsx(e,{...e$1,className:a$1("@max-md:w-full",r),variant:"ghost",size:"md"});b.displayName="DrawerBarActionButton";var y=r=>jsx(e$1,{...r,variant:"ghost",size:"md"});y.displayName="DrawerBarActionIconButton";var g=()=>{let{divider:r}=t();return jsx(a,{orientation:"vertical",variant:"400",className:r()})};g.displayName="DrawerBarDivider";var x=({children:r,onClear:e$1,clearLabel:o})=>{let{locale:i}=getDefaultOptions(),{filters:s}=t();return jsxs("div",{className:s(),children:[jsx("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:r}),e$1&&jsx(e,{size:"sm",variant:"ghost",StartIcon:L,onClick:e$1,children:o??W(i?.code)})]})};x.displayName="DrawerBarFilters";var F=r=>jsx(d,{size:"md",variant:"fill",color:"neutral",...r});F.displayName="DrawerBarFilterChipInput";var S=({children:r,className:e,...o})=>{let{root:i}=t();return jsx("div",{className:i({className:e}),...o,children:r})};S.displayName="DrawerBar";var Y=Object.assign(S,{Header:D,Selection:f,ChoiceChips:C,Main:v,SearchBar:P,Actions:N,ActionButton:b,ActionIconButton:y,Divider:g,Filters:x,FilterChipInput:F});export{Y as a};
@@ -0,0 +1 @@
1
+ import {a as a$7}from'./chunk-4UUTVKB5.js';import {a as a$6}from'./chunk-FHABUQAH.js';import {a as a$5}from'./chunk-JW7HS6NX.js';import {a as a$3}from'./chunk-XYBXEU3T.js';import {a as a$2}from'./chunk-NGC5DGW6.js';import {a,b,c,d}from'./chunk-TW4CJXQY.js';import {a as a$4}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-23G2RUJ6.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {createListCollection,useCombobox,Combobox,useComboboxContext}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import {Portal}from'@ark-ui/react/portal';import {useMemo,useRef,useState,useCallback,useEffect}from'react';import {jsxs,jsx}from'react/jsx-runtime';function de(){let l=useComboboxContext(),i=useRef(l);i.current=l;let a=l.value.join("|"),r=l.inputValue.length>0,m=l.collection.size;return useEffect(()=>{if(!a||r||!m)return;let d=i.current.collection.stringify(i.current.value[0]);d&&i.current.setInputValue(d);},[a,r,m]),null}var Fe=a,be=b,fe=l=>{let{label:i,labelProps:a,error:r,required:m,tooltip:d$1,disabled:y,readOnly:S,options:u,onInputValueChange:I,onSelect:b,defaultValue:O,helperText:U,noResultsTitle:L,noResultsDescription:_,noResultsIcon:J,noResultsTitleLines:Q,noResultsDescriptionLines:W,value:n,size:X=be,className:Y,emptyState:Z,...$}=l,ee=Object.getOwnPropertyNames(l),P=typeof n=="object"&&n!==null?n.value:n,f=useMemo(()=>typeof n!="object"||n===null||u.some(e=>e.value===n.value)?u:[n,...u],[u,n]),g=useRef(null),te=useMemo(()=>({sensitivity:"base"}),[]),{contains:V}=useFilter(te),[x,oe]=useState(""),N=useMemo(()=>createListCollection({items:f,itemToString:e=>e.label,itemToValue:e=>String(e.value)}),[f]),s=useMemo(()=>x?N.filter((e,A,v)=>V(e,x)||!!v.description&&V(v.description,x)):N,[N,x,V]),p=useCallback(e=>{oe(e??"");},[]),le=useCallback(e=>{let A=f.find(v=>String(v.value)===e.itemValue);A&&b?.(A);},[b,f]),ne=useCallback(e=>{if(e.reason==="input-change"){p(e.inputValue),I?.(e.inputValue??"");return}p(""),e.reason==="clear-trigger"&&I?.("");},[p,I]),ie=useCombobox({collection:s,defaultValue:O!=null?[String(O)]:void 0,placeholder:l.placeholder,inputValue:l.inputValue,onInputValueChange:ne,value:ee.includes("value")?P!=null?[String(P)]:[]:void 0,onSelect:le,inputBehavior:"autocomplete",openOnClick:true,disabled:y,readOnly:S,...$}),re=useCallback(()=>{b?.(null);},[b]);useEffect(()=>{g.current&&g.current.value===""&&p("");},[p,g.current?.value]);let w=c({error:r,disabled:y,readOnly:S,size:X});return jsxs(Combobox.RootProvider,{value:ie,"data-error":r||void 0,className:w.root({className:Y}),children:[jsx(c$1,{...a,as:Combobox.Label,label:i,required:m,tooltip:a?.tooltip??d$1}),jsx(de,{}),jsxs(Combobox.Control,{className:a$1(w.control(),"group/control items-center justify-between gap-2 overflow-hidden px-3",y&&"cursor-not-allowed"),children:[jsx(Combobox.Input,{ref:g,className:a$1(w.input(),"data-placeholder-shown:text-input-placeholder px-0 text-left disabled:cursor-not-allowed")}),r&&jsx(d,{}),!S&&jsx(a$2,{as:Combobox.ClearTrigger,className:"group-data-disabled/control:hidden",onClick:re}),jsx(Combobox.Trigger,{className:"group/chevron-host cursor-pointer group-data-disabled/control:cursor-not-allowed",children:jsx(a$3,{})})]}),jsx(a$4,{children:U}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsx(Combobox.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 min-w-27.5 overflow-auto rounded-lg",children:jsxs(Combobox.ItemGroup,{className:a$1({"flex flex-col items-center justify-center":s.items.length===0}),children:[s.items.length>0&&s.items.map(e=>jsx(Combobox.Item,{item:e,className:"font-inter data-highlighted:bg-primary-100 block w-full cursor-pointer p-3 data-disabled:cursor-not-allowed data-disabled:text-neutral-400",children:jsx(Combobox.ItemText,{className:"flex w-full min-w-0 flex-col gap-1",asChild:true,children:jsxs("div",{className:"w-full min-w-0",children:[jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[jsx("p",{className:"min-w-0 flex-1 truncate text-sm leading-[130%] font-medium",children:e.label}),e.badgeExpandable&&jsx("div",{className:"flex shrink-0 justify-end overflow-visible",children:jsx(a$5,{size:"sm",...e.badgeExpandable})})]}),e.description&&jsx("p",{className:"text-xs leading-[130%]",children:e.description})]})})},e.value)),s.items.length===0&&L&&jsx(a$6,{title:L,description:_,Icon:J,descriptionLines:W,titleLines:Q}),s.items.length===0&&jsx(a$7,{size:"sm",variant:"not-found",...Z})]})})})})]})};fe.displayName="Autocomplete";export{Fe as a,be as b,fe as c};
@@ -0,0 +1 @@
1
+ import {e}from'./chunk-SRCJQWFE.js';import {a as a$1}from'./chunk-VIMWKUML.js';import {c}from'./chunk-23G2RUJ6.js';import {a}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var w=["vertical","horizontal"],V=(t,{selectedValue:i,isSelected:n})=>i!=null&&!n,D=({label:t,labelProps:i,orientation:n="vertical",options:m,value:a$2,onChange:x,required:v,tooltip:f,disabled:p,isOptionDisabled:r,error:T,helperText:c$1,variant:g,tone:O,size:y,className:S})=>{let d=n==="horizontal";return jsxs("div",{className:a("group flex flex-col",S),"data-error":T||void 0,"data-disabled":p||void 0,children:[jsxs("div",{className:a("flex",d?"flex-row items-center":"flex-col"),children:[t&&jsx(c,{...i,as:"p",label:t,required:v,tooltip:i?.tooltip??f,className:d?"mr-3 mb-0":"mb-3"}),jsx("div",{className:"flex flex-wrap gap-3",children:m.map((e$1,z)=>{let s=a$2===e$1.value,P=typeof r=="function"?r(e$1,{selectedValue:a$2,isSelected:s,index:z}):!!r,I=p||e$1.disabled||P;return jsx(e,{selected:s,disabled:I,variant:g,tone:O,size:y,StartIcon:e$1.StartIcon,onClick:()=>x(s?null:e$1.value),children:e$1.label},e$1.value)})})]}),c$1&&jsx(a$1,{children:c$1})]})};export{w as a,V as b,D as c};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-RA7JT6A7.js';import {g}from'./chunk-QMPBFFFC.js';import {c}from'./chunk-C7TLKKPT.js';import {a}from'./chunk-P6B33GL6.js';import {useCallback}from'react';import {tv}from'tailwind-variants';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var Y=["sm","md","lg"],Z=["semibold","medium"],_=["primary","neutral"],W=tv({slots:{root:"group relative inline-flex cursor-pointer items-center justify-center overflow-clip border border-solid bg-transparent transition-colors outline-none",label:"font-inter relative overflow-hidden text-center leading-[0] text-ellipsis whitespace-nowrap",icon:"mr-1.5 shrink-0",chevron:"ml-1.5 shrink-0 transition-transform duration-150 group-data-[state=open]:rotate-180",trailing:"ml-2 flex shrink-0 items-center justify-center"},variants:{size:{lg:{root:"h-10 min-h-10 rounded-md px-2 py-2",label:"text-sm leading-[142%]",icon:"size-4",chevron:"size-4"},md:{root:"h-8 min-h-8 rounded-md px-2 py-1",label:"text-sm leading-[142%]",icon:"size-4",chevron:"size-4"},sm:{root:"h-6 max-h-6 rounded-sm px-2 py-1",label:"text-xs leading-[134%]",icon:"size-3",chevron:"size-3"}},weight:{semibold:{label:"font-semibold"},medium:{label:"font-medium"}},tone:{primary:{root:"border-primary-600 text-primary-600 hover:bg-primary-100 focus-visible:ring-primary-800 aria-[pressed=true]:border-primary-700 aria-[pressed=true]:bg-primary-200 aria-[pressed=true]:text-primary-700 data-[state=open]:border-primary-700 data-[state=open]:bg-primary-200 data-[state=open]:text-primary-700 focus-visible:ring-3 focus-visible:ring-inset disabled:cursor-not-allowed disabled:border-neutral-600 disabled:bg-transparent disabled:text-neutral-600"},neutral:{root:"hover:bg-primary-100 aria-[pressed=true]:border-primary-700 aria-[pressed=true]:bg-primary-200 data-[state=open]:border-primary-700 data-[state=open]:bg-primary-200 border-neutral-800 text-neutral-800 focus-visible:ring-3 focus-visible:ring-neutral-800 focus-visible:ring-inset disabled:cursor-not-allowed disabled:border-neutral-500 disabled:bg-transparent disabled:text-neutral-500"}},loading:{true:{root:"!cursor-wait !border-neutral-600 !text-neutral-600"},false:{}}},defaultVariants:{size:"lg",weight:"semibold",tone:"primary",loading:false}}),$=({className:s,label:B,badgeText:S="00",StartIcon:o,options:z,onSelect:i,isSelected:l=false,isLoading:n=false,isDisabled:R=false,hasTrailingBadge:T=false,size:d="lg",weight:N="semibold",tone:w="primary",type:u="button",...p})=>{let a$2=R||n,m=z.filter(({isHidden:e})=>!e),b=m.length>0,c$1=n,C=!!o&&!n,I=!n&&T,D=b&&!a$2,k=useCallback(e=>{i?.(e);},[i]),{root:g$1,label:O,icon:y,chevron:E,trailing:H}=W({size:d,weight:N,tone:w,loading:c$1}),P=d,h=jsxs(Fragment,{children:[c$1&&jsx(c,{size:"sm",tone:"neutral",className:y()}),C&&o&&jsx(o,{className:y()}),jsx("span",{className:O(),children:B}),I&&jsx(a,{type:"square",variant:"primary",size:P,text:S,className:H()}),D&&jsx(g,{className:E()})]});return b?jsxs(a$1.Root,{onSelect:k,children:[jsx(a$1.Trigger,{...p,type:u,disabled:a$2,"aria-pressed":l,className:g$1({className:s}),children:h}),jsx(a$1.Content,{children:m.map(e=>jsx(a$1.Option,{value:e.label,label:e.label,description:e.description,startIcon:e.startIcon,endIcon:e.endIcon,hasDivider:e.hasDivider,disabled:e.isDisabled,onSelect:e.onClick},e.label))})]}):jsx("button",{...p,type:u,disabled:a$2,"aria-pressed":l,className:g$1({className:s}),children:h})};export{Y as a,Z as b,_ as c,$ as d};
1
+ import {a as a$1}from'./chunk-DKESWED4.js';import {g}from'./chunk-QMPBFFFC.js';import {c}from'./chunk-C7TLKKPT.js';import {a}from'./chunk-P6B33GL6.js';import {useCallback}from'react';import {tv}from'tailwind-variants';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var Y=["sm","md","lg"],Z=["semibold","medium"],_=["primary","neutral"],W=tv({slots:{root:"group relative inline-flex cursor-pointer items-center justify-center overflow-clip border border-solid bg-transparent transition-colors outline-none",label:"font-inter relative overflow-hidden text-center leading-[0] text-ellipsis whitespace-nowrap",icon:"mr-1.5 shrink-0",chevron:"ml-1.5 shrink-0 transition-transform duration-150 group-data-[state=open]:rotate-180",trailing:"ml-2 flex shrink-0 items-center justify-center"},variants:{size:{lg:{root:"h-10 min-h-10 rounded-md px-2 py-2",label:"text-sm leading-[142%]",icon:"size-4",chevron:"size-4"},md:{root:"h-8 min-h-8 rounded-md px-2 py-1",label:"text-sm leading-[142%]",icon:"size-4",chevron:"size-4"},sm:{root:"h-6 max-h-6 rounded-sm px-2 py-1",label:"text-xs leading-[134%]",icon:"size-3",chevron:"size-3"}},weight:{semibold:{label:"font-semibold"},medium:{label:"font-medium"}},tone:{primary:{root:"border-primary-600 text-primary-600 hover:bg-primary-100 focus-visible:ring-primary-800 aria-[pressed=true]:border-primary-700 aria-[pressed=true]:bg-primary-200 aria-[pressed=true]:text-primary-700 data-[state=open]:border-primary-700 data-[state=open]:bg-primary-200 data-[state=open]:text-primary-700 focus-visible:ring-3 focus-visible:ring-inset disabled:cursor-not-allowed disabled:border-neutral-600 disabled:bg-transparent disabled:text-neutral-600"},neutral:{root:"hover:bg-primary-100 aria-[pressed=true]:border-primary-700 aria-[pressed=true]:bg-primary-200 data-[state=open]:border-primary-700 data-[state=open]:bg-primary-200 border-neutral-800 text-neutral-800 focus-visible:ring-3 focus-visible:ring-neutral-800 focus-visible:ring-inset disabled:cursor-not-allowed disabled:border-neutral-500 disabled:bg-transparent disabled:text-neutral-500"}},loading:{true:{root:"!cursor-wait !border-neutral-600 !text-neutral-600"},false:{}}},defaultVariants:{size:"lg",weight:"semibold",tone:"primary",loading:false}}),$=({className:s,label:B,badgeText:S="00",StartIcon:o,options:z,onSelect:i,isSelected:l=false,isLoading:n=false,isDisabled:R=false,hasTrailingBadge:T=false,size:d="lg",weight:N="semibold",tone:w="primary",type:u="button",...p})=>{let a$2=R||n,m=z.filter(({isHidden:e})=>!e),b=m.length>0,c$1=n,C=!!o&&!n,I=!n&&T,D=b&&!a$2,k=useCallback(e=>{i?.(e);},[i]),{root:g$1,label:O,icon:y,chevron:E,trailing:H}=W({size:d,weight:N,tone:w,loading:c$1}),P=d,h=jsxs(Fragment,{children:[c$1&&jsx(c,{size:"sm",tone:"neutral",className:y()}),C&&o&&jsx(o,{className:y()}),jsx("span",{className:O(),children:B}),I&&jsx(a,{type:"square",variant:"primary",size:P,text:S,className:H()}),D&&jsx(g,{className:E()})]});return b?jsxs(a$1.Root,{onSelect:k,children:[jsx(a$1.Trigger,{...p,type:u,disabled:a$2,"aria-pressed":l,className:g$1({className:s}),children:h}),jsx(a$1.Content,{children:m.map(e=>jsx(a$1.Option,{value:e.label,label:e.label,description:e.description,startIcon:e.startIcon,endIcon:e.endIcon,hasDivider:e.hasDivider,disabled:e.isDisabled,onSelect:e.onClick},e.label))})]}):jsx("button",{...p,type:u,disabled:a$2,"aria-pressed":l,className:g$1({className:s}),children:h})};export{Y as a,Z as b,_ as c,$ as d};
@@ -0,0 +1,2 @@
1
+ import {c as c$2}from'./chunk-C5TMH5GT.js';import {e as e$2}from'./chunk-PI7DECIN.js';import {c}from'./chunk-23G2RUJ6.js';import {e,x as x$1}from'./chunk-QMPBFFFC.js';import {e as e$1}from'./chunk-P7NW2XNB.js';import {c as c$1}from'./chunk-C7TLKKPT.js';import {a}from'./chunk-OBZIYJO7.js';import {FileUpload}from'@ark-ui/react';import {getDefaultOptions}from'date-fns';import {useState,useCallback}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var R='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%2301756A" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%2301756A" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.8 9H9.2a.8.8 0 0 0-.8.8v5.6a.8.8 0 0 0 .8.8h5.6a.8.8 0 0 0 .8-.8V9.8a.8.8 0 0 0-.8-.8Z"/><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="m15.6 13.8-2-2-4.4 4.4M10.6 11.8a.6.6 0 1 0 0-1.2.6.6 0 0 0 0 1.2Z"/></svg>';var P='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%2301756A" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%2301756A" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><g stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" clip-path="url(%23b)"><path d="M12 16.6a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"/><path d="m11.2 11 2.4 1.6-2.4 1.6V11Z"/></g><defs><clipPath id="b"><path fill="%23fff" d="M7.2 7.8h9.6v9.6H7.2z"/></clipPath></defs></svg>';var S='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%2301756A" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%2301756A" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M9.6 16.2a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4Z"/><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M10.8 15V9.8l4.8-.8v5.2"/><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.4 15.4a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4Z"/></svg>';var U='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%2301756A" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%2301756A" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%2301A797" d="M15.045 13.178c-.599 0-1.348.105-1.594.141-1.014-1.06-1.303-1.662-1.368-1.822a7.115 7.115 0 0 0 .438-2.189c.021-.552-.096-.965-.347-1.226a.913.913 0 0 0-.643-.282c-.306 0-.818.155-.818 1.19 0 .899.418 1.852.534 2.098-.61 1.776-1.265 2.992-1.404 3.242C7.392 15.253 7.2 16.146 7.2 16.4c0 .454.324.725.866.725 1.317 0 2.52-2.211 2.718-2.595.936-.373 2.188-.604 2.506-.659.913.87 1.97 1.102 2.408 1.102.33 0 1.102 0 1.102-.794 0-.738-.945-1-1.755-1Zm-.064.522c.712 0 .9.235.9.36 0 .077-.03.332-.411.332-.342 0-.933-.197-1.513-.626.242-.032.6-.066 1.024-.066Zm-3.487-5.394c.065 0 .107.02.143.07.204.283.04 1.211-.162 1.937-.193-.623-.339-1.578-.134-1.914.04-.065.086-.093.153-.093Zm-.346 5.557c.258-.52.547-1.279.704-1.708.315.527.738 1.016.983 1.281-.763.16-1.34.321-1.687.427Zm-3.436 2.605c-.017-.02-.02-.063-.007-.113.027-.107.232-.636 1.714-1.3-.212.335-.544.813-.908 1.17-.257.24-.457.361-.594.361-.05 0-.117-.013-.205-.118Z"/></svg>';var O='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%2301756A" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%2301756A" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14 15H8.4M15.6 13.4H8.4M14 11.8H8.4M15.6 10.2H8.4"/></svg>';var _='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%2301756A" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%2301756A" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M8.4 12.6h7.2m-7.2 0V9.8a.8.8 0 0 1 .8-.8h5.6a.8.8 0 0 1 .8.8v2.8H8.4Zm0 0v2.8a.8.8 0 0 0 .8.8h5.6a.8.8 0 0 0 .8-.8v-2.8H8.4Z"/></svg>';var x='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%2301756A" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%2301756A" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><g clip-path="url(%23b)"><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16 15.4a.8.8 0 0 1-.8.8H8.8a.8.8 0 0 1-.8-.8V9.8a.8.8 0 0 1 .8-.8h2l.8 1.2h3.6a.8.8 0 0 1 .8.8v4.4Z"/></g><defs><clipPath id="b"><path fill="%23fff" d="M7.2 7.8h9.6v9.6H7.2z"/></clipPath></defs></svg>';var D='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/></svg>';var q='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h12.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.95 19.067c-.144 0-.282-.017-.413-.053a2.51 2.51 0 0 1-.37-.13v-.782c.113.08.213.148.303.202a.5.5 0 0 0 .26.082c.12 0 .218-.03.292-.092.077-.064.115-.166.115-.307v-2.189h.874v2.228c0 .198-.032.364-.096.499a.836.836 0 0 1-.245.321.873.873 0 0 1-.34.168 1.39 1.39 0 0 1-.38.053Zm2.584-1.08V19h-.869v-3.202h1.503c.377 0 .675.085.893.255.22.17.33.437.33.801 0 .362-.11.642-.33.84-.218.196-.516.293-.893.293h-.634Zm0-.662h.528c.061 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865Zm3.81 1.742a1.96 1.96 0 0 1-.825-.163 1.2 1.2 0 0 1-.557-.528c-.131-.246-.197-.571-.197-.974 0-.394.066-.714.197-.96.135-.25.32-.432.557-.548.237-.115.51-.172.82-.172.209 0 .41.02.605.062.199.042.39.1.572.173v.782a4.255 4.255 0 0 0-.552-.254 1.382 1.382 0 0 0-.51-.096c-.165 0-.31.03-.431.091a.58.58 0 0 0-.274.307c-.064.144-.096.347-.096.61 0 .256.034.459.101.61a.64.64 0 0 0 .269.311.81.81 0 0 0 .384.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662h1.349v1.516a2.84 2.84 0 0 1-.643.274 2.52 2.52 0 0 1-.672.091Z"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/></svg>';var $='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h15.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.023 19.067c-.144 0-.282-.017-.413-.053a2.51 2.51 0 0 1-.37-.13v-.782c.112.08.213.148.303.202a.5.5 0 0 0 .259.082c.121 0 .219-.03.293-.092.076-.064.115-.166.115-.307v-2.189h.873v2.228c0 .198-.032.364-.096.499a.836.836 0 0 1-.244.321.873.873 0 0 1-.341.168 1.39 1.39 0 0 1-.38.053Zm2.584-1.08V19h-.869v-3.202H7.24c.378 0 .676.085.893.255.221.17.331.437.331.801 0 .362-.11.642-.33.84-.218.196-.516.293-.894.293h-.633Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM8.977 19v-3.202h2.232v.663H9.851v.605h1.17v.662H9.847v.61h1.363V19H8.977Zm4.295.067a1.96 1.96 0 0 1-.826-.163 1.2 1.2 0 0 1-.557-.528c-.13-.246-.196-.571-.196-.974 0-.394.065-.714.196-.96.135-.25.32-.432.557-.548.237-.115.51-.172.82-.172.209 0 .41.02.606.062.198.042.389.1.57.173v.782a4.255 4.255 0 0 0-.551-.254 1.382 1.382 0 0 0-.509-.096c-.166 0-.31.03-.432.091a.58.58 0 0 0-.273.307c-.064.144-.096.347-.096.61 0 .256.033.459.1.61a.64.64 0 0 0 .27.311.81.81 0 0 0 .383.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662h1.349v1.516a2.84 2.84 0 0 1-.643.274 2.52 2.52 0 0 1-.672.091Z"/></svg>';var G='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.633 17.987V19h-.87v-3.202h1.503c.378 0 .675.085.893.255.22.17.331.437.331.801 0 .362-.11.642-.331.84-.218.196-.515.293-.893.293h-.633Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM7.003 19v-3.202h.72l1.574 2.088-.264.557v-2.645h.797V19h-.634l-1.584-2.035.183-.394V19h-.792Zm4.918.067a1.96 1.96 0 0 1-.826-.163 1.2 1.2 0 0 1-.556-.528c-.132-.246-.197-.571-.197-.974 0-.394.065-.714.197-.96.134-.25.32-.432.556-.548.237-.115.51-.172.821-.172.208 0 .41.02.605.062.198.042.389.1.571.173v.782a4.255 4.255 0 0 0-.552-.254 1.382 1.382 0 0 0-.509-.096c-.166 0-.31.03-.432.091a.58.58 0 0 0-.273.307c-.064.144-.096.347-.096.61 0 .256.033.459.1.61a.64.64 0 0 0 .27.311.81.81 0 0 0 .383.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662h1.35v1.516a2.84 2.84 0 0 1-.644.274 2.52 2.52 0 0 1-.672.091Z"/></svg>';var Y='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h18.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="m4.37 19-.868-3.202h.95l.485 2.4h-.13l.687-2.4h.658l.69 2.43h-.138l.484-2.43h.956L7.274 19h-.858l-.663-2.194h.149L5.225 19h-.854Zm4.218 0v-3.202h2.232v.663H9.462v.605h1.17v.662H9.458v.61h1.363V19H8.588Zm2.855 0v-3.202h1.42c.225 0 .423.03.596.087a.82.82 0 0 1 .417.278c.106.128.159.304.159.528a.578.578 0 0 1-.116.365.88.88 0 0 1-.278.23 2.274 2.274 0 0 1-.297.13l-.101-.197c.195.007.363.043.504.11.14.065.25.156.326.274.08.115.12.255.12.418 0 .224-.056.41-.168.557a.972.972 0 0 1-.437.321c-.179.067-.376.101-.59.101h-1.555Zm.873-.662h.61a.475.475 0 0 0 .182-.034.27.27 0 0 0 .135-.11.373.373 0 0 0 .053-.207.32.32 0 0 0-.034-.153.248.248 0 0 0-.082-.106.323.323 0 0 0-.12-.058.575.575 0 0 0-.149-.019h-.595v.687Zm-.005-1.306h.586c.045 0 .085-.01.12-.029a.29.29 0 0 0 .096-.091.278.278 0 0 0 .039-.149c0-.112-.03-.19-.092-.235a.347.347 0 0 0-.21-.067h-.538v.571Zm3.263.955V19h-.869v-3.202h1.503c.377 0 .675.085.892.255.221.17.332.437.332.801 0 .362-.11.642-.332.84-.217.196-.515.293-.892.293h-.634Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865Z"/></svg>';var W='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h11.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.915 19.067a1.96 1.96 0 0 1-.825-.163 1.2 1.2 0 0 1-.557-.528c-.131-.246-.197-.571-.197-.974 0-.394.066-.714.197-.96.135-.25.32-.432.557-.548.237-.115.51-.172.82-.172.209 0 .41.02.606.062.198.042.388.1.57.173v.782a4.255 4.255 0 0 0-.551-.254 1.382 1.382 0 0 0-.51-.096c-.166 0-.31.03-.431.091a.58.58 0 0 0-.274.307c-.064.144-.096.347-.096.61 0 .256.034.459.101.61a.64.64 0 0 0 .269.311.81.81 0 0 0 .384.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662H6.23v1.516a2.84 2.84 0 0 1-.643.274 2.52 2.52 0 0 1-.673.091ZM6.883 19v-3.202h.874V19h-.874Zm1.528 0v-3.202h2.223v.663H9.28v.686h1.167v.667H9.28V19h-.869Z"/></svg>';var K='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%233749A2" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12 16.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="m11.1 10.2 2.7 1.8-2.7 1.8v-3.6Z"/><path fill="%234B61D1" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.67 19v-3.202h.878l1.08 1.47-.456.009 1.114-1.479h.854V19h-.868v-2.563l.148.297-1.041 1.373-1.056-1.406.173-.106V19H3.67Zm4.994-1.013V19h-.869v-3.202h1.502c.378 0 .676.085.893.255.221.17.331.437.331.801 0 .362-.11.642-.33.84-.218.196-.516.293-.894.293h-.633Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM12.234 19v-.84h-1.34v-.59l1.417-1.772h.797v1.719h.398v.643h-.398V19h-.874Zm-.62-1.483h.62v-.773l-.62.773Z"/></svg>';var J='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%233749A2" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12 16.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="m11.1 10.2 2.7 1.8-2.7 1.8v-3.6Z"/><path fill="%234B61D1" d="M.6 13.2h17.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.513 19v-3.202h.878l1.08 1.47-.456.009 1.114-1.479h.854V19h-.868v-2.563l.148.297-1.041 1.373-1.056-1.406.173-.106V19h-.826Zm4.994-1.013V19h-.869v-3.202H9.14c.378 0 .676.085.893.255.221.17.331.437.331.801 0 .362-.11.642-.33.84-.218.196-.516.293-.894.293h-.633Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM10.877 19v-3.202h2.232v.663h-1.358v.605h1.17v.662h-1.175v.61h1.363V19h-2.232Zm4.295.067a1.96 1.96 0 0 1-.826-.163 1.2 1.2 0 0 1-.557-.528c-.13-.246-.197-.571-.197-.974 0-.394.066-.714.197-.96.135-.25.32-.432.557-.548.237-.115.51-.172.82-.172.209 0 .41.02.606.062.198.042.388.1.57.173v.782a4.255 4.255 0 0 0-.551-.254 1.382 1.382 0 0 0-.509-.096c-.166 0-.31.03-.432.091a.58.58 0 0 0-.274.307c-.064.144-.096.347-.096.61 0 .256.034.459.101.61a.64.64 0 0 0 .27.311.81.81 0 0 0 .383.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662h1.349v1.516a2.84 2.84 0 0 1-.643.274 2.52 2.52 0 0 1-.672.091Z"/></svg>';var X='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%233749A2" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12 16.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="m11.1 10.2 2.7 1.8-2.7 1.8v-3.6Z"/><path fill="%234B61D1" d="M.6 13.2h12.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="m3.552 19 1.195-3.202h.955L6.806 19h-.892L4.91 15.947l.447-.038L4.358 19h-.806Zm.706-.629.163-.619h1.43l.082.62H4.258Zm3.47.629-1.185-3.202H7.55l.864 2.684h-.279l.86-2.684h.926L8.659 19h-.93Zm2.576 0v-3.202h.873V19h-.873Z"/></svg>';var Q='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%233749A2" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12 16.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="m11.1 10.2 2.7 1.8-2.7 1.8v-3.6Z"/><path fill="%234B61D1" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.351 19v-3.202h.879l1.08 1.47-.456.009 1.113-1.479h.855V19h-.869v-2.563l.149.297-1.042 1.373-1.056-1.406.173-.106V19h-.826Zm4.96-.95-.316-.504 1.219-1.748h1.094L8.312 18.05Zm-.835.95v-3.202h.874V19h-.874Zm1.565-2.02L10.4 19H9.32l-.95-1.469.671-.552ZM11.726 19l-1.186-3.202h1.008l.864 2.684h-.278l.86-2.684h.926L12.657 19h-.931Z"/></svg>';var e1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23593AD1" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.5 15.45a1.35 1.35 0 1 0 0-2.7 1.35 1.35 0 0 0 0 2.7Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M8.85 14.1V8.25l5.4-.9v5.85"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12.9 14.55a1.35 1.35 0 1 0 0-2.7 1.35 1.35 0 0 0 0 2.7Z"/><path fill="%238161FF" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.712 19v-3.202h.879l1.08 1.47-.456.009 1.113-1.479h.855V19h-.87v-2.563l.15.297-1.042 1.373-1.056-1.406.173-.106V19h-.826Zm4.994-1.013V19h-.869v-3.202H9.34c.377 0 .675.085.892.255.221.17.332.437.332.801 0 .362-.11.642-.332.84-.217.196-.515.293-.892.293h-.634Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865Zm3.335 1.713c-.173 0-.34-.025-.504-.076a3.162 3.162 0 0 1-.451-.183v-.725c.15.09.3.17.446.24.15.07.31.106.476.106a.753.753 0 0 0 .388-.086.279.279 0 0 0 .144-.255.36.36 0 0 0-.115-.278c-.077-.074-.22-.11-.432-.11h-.5v-.634h.51c.137 0 .236-.03.297-.091a.283.283 0 0 0 .096-.212c0-.086-.022-.152-.067-.196a.381.381 0 0 0-.178-.096.91.91 0 0 0-.23-.03c-.105 0-.216.014-.331.04a1.926 1.926 0 0 0-.442.162v-.643c.122-.064.256-.115.404-.153a1.651 1.651 0 0 1 .854-.015c.137.029.262.079.374.149a.761.761 0 0 1 .326.917.694.694 0 0 1-.278.326.442.442 0 0 1-.163.067c.08.023.157.06.23.11.074.049.14.108.197.178a.81.81 0 0 1 .197.552c0 .18-.037.33-.11.452a.828.828 0 0 1-.293.283c-.122.07-.256.121-.403.153a2.03 2.03 0 0 1-.442.048Z"/></svg>';var a1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 5.7h-4.5a1.2 1.2 0 0 1-1.2-1.2h5.7v1.2Zm-4.5 0a1.2 1.2 0 0 1-1.2-1.2V.6h1.2v5.7ZM20.1.6v5.1V.6Z" mask="url(%23a)"/><path fill="%23593AD1" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.5 15.45a1.35 1.35 0 1 0 0-2.7 1.35 1.35 0 0 0 0 2.7Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M8.85 14.1V8.25l5.4-.9v5.85"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12.9 14.55a1.35 1.35 0 1 0 0-2.7 1.35 1.35 0 0 0 0 2.7Z"/><path fill="%238161FF" d="M.6 13.2h15.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="m4.488 19-.869-3.202h.95l.485 2.4h-.13l.687-2.4h.658l.691 2.43h-.14l.486-2.43h.955L7.392 19h-.86l-.662-2.194h.15L5.341 19h-.854Zm3.588 0 1.195-3.202h.955L11.33 19h-.893l-1.003-3.053.446-.038L8.882 19h-.806Zm.705-.629.163-.619h1.43l.082.62H8.781Zm3.47.629-1.185-3.202h1.008l.864 2.684h-.278l.859-2.684h.926L13.183 19h-.931Z"/></svg>';var t1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23730D0D" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.25 14.7h-6.3M16.05 12.9h-8.1M14.25 11.1h-6.3M16.05 9.3h-8.1"/><path fill="%23BB3939" d="M.6 13.2h13.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.463 17.987V19h-.869v-3.202h1.503c.377 0 .675.085.892.255.221.17.332.437.332.801 0 .362-.11.642-.332.84-.217.196-.515.293-.892.293h-.634Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM6.833 19v-3.202h1.344c.554 0 .959.136 1.215.408.259.272.389.67.389 1.196 0 .521-.13.918-.39 1.19-.255.272-.66.408-1.214.408H6.833Zm.87-.662h.369c.265 0 .467-.074.605-.221.14-.15.21-.389.21-.715 0-.33-.07-.568-.21-.716-.138-.15-.34-.225-.605-.225h-.37v1.877Zm2.59.662v-3.202h2.222v.663h-1.354v.686h1.167v.667h-1.166V19h-.87Z"/></svg>';var l1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23074856" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.25 14.7h-6.3M16.05 12.9h-8.1M14.25 11.1h-6.3M16.05 9.3h-8.1"/><path fill="%232D9AB2" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.806 19v-3.202H5.15c.554 0 .958.136 1.214.408.26.272.39.67.39 1.196 0 .521-.13.918-.39 1.19-.256.272-.66.408-1.214.408H3.806Zm.869-.662h.37c.265 0 .467-.074.604-.221.141-.15.211-.389.211-.715 0-.33-.07-.568-.21-.716-.138-.15-.34-.225-.606-.225h-.37v1.877Zm4.04.73c-.317 0-.595-.06-.835-.178a1.276 1.276 0 0 1-.557-.548c-.131-.246-.197-.56-.197-.94 0-.55.14-.967.418-1.248.281-.282.672-.423 1.17-.423.318 0 .595.06.831.178.24.118.426.3.557.547.134.243.202.557.202.94 0 .551-.14.967-.418 1.249-.278.281-.669.422-1.171.422Zm0-.702c.144 0 .267-.03.37-.09a.576.576 0 0 0 .235-.303c.057-.144.086-.338.086-.581 0-.24-.029-.43-.086-.571a.552.552 0 0 0-.235-.298.711.711 0 0 0-.37-.091.683.683 0 0 0-.37.096.6.6 0 0 0-.24.302c-.054.141-.081.333-.081.576 0 .24.027.43.081.572a.6.6 0 0 0 .24.297c.103.061.226.091.37.091Zm3.539.701c-.519 0-.915-.134-1.19-.403-.273-.269-.409-.69-.409-1.262 0-.554.13-.972.39-1.253.261-.285.665-.427 1.209-.427.17 0 .34.02.513.062.176.042.348.1.514.173v.749a1.94 1.94 0 0 0-.49-.245 1.334 1.334 0 0 0-.417-.077.938.938 0 0 0-.442.096.619.619 0 0 0-.283.312c-.064.147-.096.352-.096.614 0 .253.033.453.1.6a.613.613 0 0 0 .289.312c.128.058.284.087.47.087.109 0 .237-.024.384-.072.15-.048.312-.128.485-.24v.749a1.759 1.759 0 0 1-.307.12 3.057 3.057 0 0 1-.365.076 2.34 2.34 0 0 1-.355.03Z"/></svg>';var i1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23074856" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.25 14.7h-6.3M16.05 12.9h-8.1M14.25 11.1h-6.3M16.05 9.3h-8.1"/><path fill="%232D9AB2" d="M.6 13.2h17.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.628 19v-3.202h1.344c.553 0 .958.136 1.214.408.26.272.389.67.389 1.196 0 .521-.13.918-.389 1.19-.256.272-.66.408-1.214.408H3.628Zm.869-.662h.37c.265 0 .466-.074.604-.221.14-.15.211-.389.211-.715 0-.33-.07-.568-.211-.716-.138-.15-.34-.225-.605-.225h-.37v1.877Zm4.04.73c-.317 0-.595-.06-.835-.178a1.276 1.276 0 0 1-.557-.548c-.131-.246-.197-.56-.197-.94 0-.55.14-.967.418-1.248.281-.282.672-.423 1.17-.423.318 0 .594.06.831.178.24.118.426.3.557.547.134.243.202.557.202.94 0 .551-.14.967-.418 1.249-.278.281-.669.422-1.171.422Zm0-.702c.144 0 .267-.03.37-.09a.576.576 0 0 0 .235-.303c.057-.144.086-.338.086-.581 0-.24-.029-.43-.086-.571a.552.552 0 0 0-.236-.298.711.711 0 0 0-.37-.091.683.683 0 0 0-.369.096.6.6 0 0 0-.24.302c-.054.141-.081.333-.081.576 0 .24.027.43.081.572a.6.6 0 0 0 .24.297c.103.061.226.091.37.091Zm3.538.701c-.518 0-.915-.134-1.19-.403-.272-.269-.408-.69-.408-1.262 0-.554.13-.972.389-1.253.262-.285.665-.427 1.21-.427.17 0 .34.02.513.062.176.042.347.1.514.173v.749a1.94 1.94 0 0 0-.49-.245 1.334 1.334 0 0 0-.418-.077.938.938 0 0 0-.441.096.619.619 0 0 0-.283.312c-.064.147-.096.352-.096.614 0 .253.033.453.1.6a.613.613 0 0 0 .289.312c.128.058.284.087.47.087.109 0 .237-.024.384-.072.15-.048.312-.128.485-.24v.749a1.759 1.759 0 0 1-.307.12 3.057 3.057 0 0 1-.365.076 2.34 2.34 0 0 1-.355.03Zm4.57-.067H15.56l-2.165-3.202h1.085L16.645 19Zm-1.633-2.05.649-1.152h.945l-1.147 1.79-.447-.638Zm.125.735L14.38 19h-.936l1.262-1.92.432.605Z"/></svg>';var o1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23124E46" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.25 14.7h-6.3M16.05 12.9h-8.1M14.25 11.1h-6.3M16.05 9.3h-8.1"/><path fill="%2301756A" d="M.6 13.2h12.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.974 19v-2.54H3.12v-.662h2.587v.663h-.869V19h-.864Zm5.15 0H8.04l-2.164-3.202h1.084L9.124 19Zm-1.632-2.05.648-1.152h.946l-1.147 1.79-.447-.638Zm.125.735L6.86 19h-.936l1.262-1.92.432.605ZM10.147 19v-2.54h-.854v-.662h2.588v.663h-.87V19h-.863Z"/></svg>';var r1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23793304" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path fill="%23E1E7E6" d="M15.1 8.9H8.3v4.25a.425.425 0 0 0 .425.425h5.95a.425.425 0 0 0 .425-.425V8.9Zm.85 4.25a1.275 1.275 0 0 1-1.275 1.275h-1.949l1.4 1.4a.425.425 0 1 1-.601.6L11.7 14.601l-1.824 1.824a.425.425 0 1 1-.601-.6l1.399-1.4H8.725A1.275 1.275 0 0 1 7.45 13.15V8.9a.425.425 0 0 1 0-.85h8.5a.425.425 0 0 1 0 .85v4.25Z"/></g><path fill="%23C66727" d="M.6 13.2h13.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.547 17.987V19H3.68v-3.202H5.18c.378 0 .675.085.893.255.22.17.331.437.331.801 0 .362-.11.642-.331.84-.218.196-.515.293-.893.293h-.634Zm0-.662h.528c.061 0 .116-.008.164-.024a.314.314 0 0 0 .124-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.124-.09.436.436 0 0 0-.164-.03h-.528v.865Zm3.24.662V19h-.87v-3.202H8.42c.378 0 .675.085.893.255.22.17.331.437.331.801 0 .362-.11.642-.331.84-.218.196-.515.293-.893.293h-.634Zm0-.662h.527c.061 0 .116-.008.164-.024a.314.314 0 0 0 .124-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.124-.09.436.436 0 0 0-.164-.03h-.528v.865ZM10.8 19v-2.54h-.854v-.662h2.587v.663h-.87V19H10.8Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 7.2h10.2v10.2H6.6z"/></clipPath></defs></svg>';var h1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23793304" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path fill="%23E1E7E6" d="M15.1 8.9H8.3v4.25a.425.425 0 0 0 .425.425h5.95a.425.425 0 0 0 .425-.425V8.9Zm.85 4.25a1.275 1.275 0 0 1-1.275 1.275h-1.949l1.4 1.4a.425.425 0 1 1-.601.6L11.7 14.601l-1.824 1.824a.425.425 0 1 1-.601-.6l1.399-1.4H8.725A1.275 1.275 0 0 1 7.45 13.15V8.9a.425.425 0 0 1 0-.85h8.5a.425.425 0 0 1 0 .85v4.25Z"/></g><path fill="%23C66727" d="M.6 13.2h16.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.37 17.987V19H3.5v-3.202h1.503c.377 0 .675.085.893.255.22.17.33.437.33.801 0 .362-.11.642-.33.84-.218.196-.516.293-.893.293h-.634Zm0-.662h.527c.061 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.124-.09.436.436 0 0 0-.164-.03H4.37v.865Zm3.238.662V19H6.74v-3.202h1.502c.378 0 .675.085.893.255.22.17.331.437.331.801 0 .362-.11.642-.331.84-.218.196-.515.293-.893.293h-.634Zm0-.662h.528c.061 0 .116-.008.164-.024a.314.314 0 0 0 .124-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.124-.09.436.436 0 0 0-.164-.03h-.528v.865ZM10.622 19v-2.54h-.855v-.662h2.588v.663h-.87V19h-.863Zm5.15 0h-1.085l-2.165-3.202h1.085L15.772 19Zm-1.632-2.05.648-1.152h.945l-1.147 1.79-.446-.638Zm.125.735L13.506 19h-.936l1.263-1.92.432.605Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 7.2h10.2v10.2H6.6z"/></clipPath></defs></svg>';var s1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%232B8B51" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.95 11.4h8.1m-8.1 0V8.25a.9.9 0 0 1 .9-.9h6.3a.9.9 0 0 1 .9.9v3.15h-8.1Zm0 0v3.15a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9V11.4h-8.1Z"/></g><path fill="%2331A15E" d="M.6 13.2h13.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M5.107 19.067c-.519 0-.915-.134-1.19-.403-.273-.269-.409-.69-.409-1.262 0-.554.13-.972.39-1.253.262-.285.665-.427 1.209-.427.17 0 .34.02.513.062.176.042.348.1.514.173v.749a1.94 1.94 0 0 0-.49-.245 1.334 1.334 0 0 0-.417-.077.938.938 0 0 0-.442.096.619.619 0 0 0-.283.312c-.064.147-.096.352-.096.614 0 .253.034.453.1.6a.613.613 0 0 0 .289.312c.128.058.285.087.47.087.109 0 .237-.024.384-.072.15-.048.312-.128.485-.24v.749a1.759 1.759 0 0 1-.307.12 3.057 3.057 0 0 1-.365.076 2.34 2.34 0 0 1-.355.03Zm2.702 0c-.16 0-.31-.006-.447-.019a2.674 2.674 0 0 1-.384-.062 1.96 1.96 0 0 1-.331-.125v-.816c.16.125.334.217.523.278.189.058.36.087.514.087.121 0 .219-.023.293-.068.073-.044.11-.121.11-.23 0-.074-.037-.133-.11-.178a1.019 1.019 0 0 0-.288-.124 29.641 29.641 0 0 1-.404-.135 2.128 2.128 0 0 1-.264-.115.963.963 0 0 1-.225-.168.768.768 0 0 1-.163-.25.93.93 0 0 1-.063-.36c0-.14.026-.275.077-.403a1.002 1.002 0 0 1 .643-.571c.163-.058.354-.086.571-.086.132 0 .25.008.356.024.105.012.204.035.297.067a2.2 2.2 0 0 1 .288.12v.825a1.89 1.89 0 0 0-.542-.312 1.06 1.06 0 0 0-.307-.067.872.872 0 0 0-.245.024.38.38 0 0 0-.183.091.246.246 0 0 0-.067.183c0 .08.026.144.077.192a.71.71 0 0 0 .22.115c.097.029.202.06.318.091.134.039.256.082.364.13.112.048.208.107.288.177a.73.73 0 0 1 .188.26c.044.099.067.22.067.364 0 .205-.048.388-.144.548-.096.16-.232.286-.408.379a1.33 1.33 0 0 1-.62.134ZM10.406 19 9.22 15.798h1.008l.864 2.684h-.278l.859-2.684h.926L11.337 19h-.931Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 16.8V6h10.8v10.8z"/></clipPath></defs></svg>';var n1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%232B8B51" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.95 11.4h8.1m-8.1 0V8.25a.9.9 0 0 1 .9-.9h6.3a.9.9 0 0 1 .9.9v3.15h-8.1Zm0 0v3.15a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9V11.4h-8.1Z"/></g><path fill="%2331A15E" d="M.6 13.2h12.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M6.384 19H5.3l-2.165-3.202H4.22L6.384 19Zm-1.632-2.05.648-1.152h.946l-1.147 1.79-.447-.638Zm.125.735L4.12 19h-.936l1.262-1.92.432.605ZM6.765 19v-3.202h.873v2.535h1.335V19H6.765Zm3.799.067c-.16 0-.309-.006-.446-.019a2.674 2.674 0 0 1-.384-.062 1.96 1.96 0 0 1-.332-.125v-.816c.16.125.335.217.524.278.188.058.36.087.513.087.122 0 .22-.023.293-.068.074-.044.11-.121.11-.23 0-.074-.036-.133-.11-.178a1.019 1.019 0 0 0-.288-.124 29.641 29.641 0 0 1-.403-.135 2.127 2.127 0 0 1-.264-.115.963.963 0 0 1-.226-.168.768.768 0 0 1-.163-.25.93.93 0 0 1-.062-.36c0-.14.025-.275.076-.403a1.002 1.002 0 0 1 .644-.571c.163-.058.353-.086.57-.086.132 0 .25.008.356.024.106.012.205.035.298.067a2.2 2.2 0 0 1 .288.12v.825a1.89 1.89 0 0 0-.542-.312 1.06 1.06 0 0 0-.308-.067.872.872 0 0 0-.245.024.38.38 0 0 0-.182.091.246.246 0 0 0-.067.183c0 .08.025.144.076.192a.71.71 0 0 0 .221.115c.096.029.202.06.317.091.134.039.256.082.365.13.112.048.208.107.288.177a.73.73 0 0 1 .187.26c.045.099.067.22.067.364 0 .205-.048.388-.144.548-.096.16-.232.286-.408.379a1.33 1.33 0 0 1-.619.134Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 16.8V6h10.8v10.8z"/></clipPath></defs></svg>';var d1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%232B8B51" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.95 11.4h8.1m-8.1 0V8.25a.9.9 0 0 1 .9-.9h6.3a.9.9 0 0 1 .9.9v3.15h-8.1Zm0 0v3.15a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9V11.4h-8.1Z"/></g><path fill="%2331A15E" d="M.6 13.2h15.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M6.232 19h-.965l-2.184-3.202h.965L6.232 19Zm-1.589-2.016.696-1.186h.86L5.045 17.56l-.403-.576Zm.13.677L3.962 19h-.84l1.243-1.872.408.533ZM6.624 19v-3.202h.778v2.592h1.392V19h-2.17Zm3.738.067c-.163 0-.31-.008-.442-.024a2.375 2.375 0 0 1-.364-.072 2.017 2.017 0 0 1-.327-.125v-.739c.147.119.314.208.5.269.185.06.361.091.527.091.148 0 .26-.027.336-.081.08-.058.12-.144.12-.26a.24.24 0 0 0-.11-.206.934.934 0 0 0-.283-.14c-.119-.04-.251-.087-.399-.138a1.812 1.812 0 0 1-.273-.11.784.784 0 0 1-.408-.422.944.944 0 0 1-.063-.366c0-.131.024-.258.072-.38a.923.923 0 0 1 .221-.326c.103-.096.232-.17.389-.225a1.6 1.6 0 0 1 .552-.087c.131 0 .246.008.346.024.102.016.2.04.292.072.093.03.188.068.284.116v.748a1.617 1.617 0 0 0-.25-.168 1.53 1.53 0 0 0-.283-.134 1.016 1.016 0 0 0-.576-.029.376.376 0 0 0-.187.11.263.263 0 0 0-.068.188c0 .09.028.16.082.211.054.051.13.094.226.13l.321.105c.131.039.251.082.36.13.112.045.21.102.293.173.083.07.147.156.192.259a.919.919 0 0 1 .067.37c0 .191-.045.367-.134.527a.975.975 0 0 1-.389.375c-.17.09-.378.134-.624.134Zm4.56-.067h-.964l-2.184-3.202h.965L14.923 19Zm-1.588-2.016.696-1.186h.86l-1.153 1.762-.403-.576Zm.13.677L12.652 19h-.84l1.244-1.872.408.533Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 16.8V6h10.8v10.8z"/></clipPath></defs></svg>';var t0=["image","video","audio","pdf","text","spreadsheet","all"],z5=["extended","compact"],l0={image:R,video:P,audio:S,pdf:U,text:O,spreadsheet:_,all:x},V={jpg:{fileType:"image",mimeType:"image/jpeg",badge:q},jpeg:{fileType:"image",mimeType:"image/jpeg",badge:$},png:{fileType:"image",mimeType:"image/png",badge:G},webp:{fileType:"image",mimeType:"image/webp",badge:Y},gif:{fileType:"image",mimeType:"image/gif",badge:W},mp4:{fileType:"video",mimeType:"video/mp4",badge:K},mpeg:{fileType:"video",mimeType:"video/mpeg",badge:J},avi:{fileType:"video",mimeType:"video/x-msvideo",badge:X},mkv:{fileType:"video",mimeType:"video/x-matroska",badge:Q},mp3:{fileType:"audio",mimeType:"audio/mpeg",badge:e1},wav:{fileType:"audio",mimeType:"audio/wav",badge:a1},pdf:{fileType:"pdf",mimeType:"application/pdf",badge:t1},doc:{fileType:"text",mimeType:"application/msword",badge:l1},docx:{fileType:"text",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",badge:i1},txt:{fileType:"text",mimeType:"text/plain",badge:o1},ppt:{fileType:"text",mimeType:"application/vnd.ms-powerpoint",badge:r1},pptx:{fileType:"text",mimeType:"application/vnd.openxmlformats-officedocument.presentationml.presentation",badge:h1},csv:{fileType:"spreadsheet",mimeType:"text/csv",badge:s1},xls:{fileType:"spreadsheet",mimeType:"application/vnd.ms-excel",badge:n1},xlsx:{fileType:"spreadsheet",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",badge:d1}},c1=t0.reduce((a,e)=>{let l=Object.values(V).filter(o=>o.fileType===e).map(o=>o.mimeType);return a[e]={mimeTypes:Array.from(new Set(l)),icon:l0[e]},a},{}),i0=a=>a in V,o0=a=>[...a].sort((o,T)=>o.extension.localeCompare(T.extension))[0]?.badge||D,r0=Object.entries(V).reduce((a,[e,l])=>{let o=l.mimeType.toLowerCase();return a[o]=[...a[o]||[],{extension:e.toLowerCase(),badge:l.badge}],a},{}),h0=Object.entries(r0).reduce((a,[e,l])=>(a[e]=o0(l),a),{}),s0=a=>{let e=a.lastIndexOf(".");return e<=0||e===a.length-1?"":a.slice(e+1).toLowerCase()},n0=a=>{let e=s0(a.name),l=i0(e)?V[e].badge:"",o=a.type?h0[a.type.toLowerCase()]:"";return {extension:e,badgeIcon:l||o||D}},d0="FILE_TOO_LARGE",m0=a=>a?.startsWith("es")?{loading:"Cargando..",dragText:"Arrastra tus archivos hasta aqu\xED",selectText:"O selecciona desde tu dispositivo",selectButton:"Seleccionar",maxFilesTitle:"L\xEDmite de archivos alcanzado",maxFilesDescription:"Has alcanzado el m\xE1ximo permitido. Elimina un archivo para continuar cargando",maxImagesTitle:"L\xEDmite de im\xE1genes alcanzado",maxImagesDescription:"Has alcanzado el m\xE1ximo permitido. Elimina una imagen para continuar cargando",maxFilesAllowed:e=>`M\xE1ximo permitido: ${e} ${e===1?"archivo":"archivos"}`,maxImagesAllowed:e=>`M\xE1ximo permitido: ${e} ${e===1?"imagen":"im\xE1genes"}`,dragSpreadsheetText:e=>e===1?"Arrastra tu hoja de c\xE1lculo hasta aqu\xED":"Arrastra tus hojas de c\xE1lculo hasta aqu\xED",dragImageText:e=>e===1?"Arrastra tu imagen hasta aqu\xED":"Arrastra tus im\xE1genes hasta aqu\xED",fileExceedsMaxSize:"El archivo excede el tama\xF1o permitido"}:a?.startsWith("pt")?{loading:"Carregando..",dragText:"Arraste seus arquivos at\xE9 aqui",selectText:"Ou selecione do seu dispositivo",selectButton:"Selecionar",maxFilesTitle:"Limite de arquivos atingido",maxFilesDescription:"Voc\xEA atingiu o m\xE1ximo permitido. Exclua um arquivo para continuar carregando",maxImagesTitle:"Limite de imagens atingido",maxImagesDescription:"Voc\xEA atingiu o m\xE1ximo permitido. Exclua uma imagem para continuar carregando",maxFilesAllowed:e=>`M\xE1ximo permitido: ${e} ${e===1?"arquivo":"arquivos"}`,maxImagesAllowed:e=>`M\xE1ximo permitido: ${e} ${e===1?"imagem":"imagens"}`,dragSpreadsheetText:e=>e===1?"Arraste sua planilha at\xE9 aqui":"Arraste suas planilhas at\xE9 aqui",dragImageText:e=>e===1?"Arraste sua imagem at\xE9 aqui":"Arraste suas imagens at\xE9 aqui",fileExceedsMaxSize:"O arquivo excede o tamanho permitido"}:{loading:"Loading..",dragText:"Drag your files here",selectText:"Or select from your device",selectButton:"Select",maxFilesTitle:"File limit reached",maxFilesDescription:"You have reached the maximum allowed. Delete a file to continue uploading",maxImagesTitle:"Maximum images reached",maxImagesDescription:"You have reached the maximum allowed. Delete an image to continue uploading",maxFilesAllowed:e=>`Maximum allowed: ${e} ${e===1?"file":"files"}`,maxImagesAllowed:e=>`Maximum allowed: ${e} ${e===1?"image":"images"}`,dragSpreadsheetText:e=>e===1?"Drag your spreadsheet here":"Drag your spreadsheets here",dragImageText:e=>e===1?"Drag your image here":"Drag your images here",fileExceedsMaxSize:"The file exceeds the allowed size"},p0=a=>Array.isArray(a)?a:[a],A=a=>a.length===1?a[0]:null,f0=(a,e)=>A(a)===e,c0=a=>a.flatMap(e=>c1[e]?.mimeTypes||[]),v0=a=>{let e=A(a);return e?c1[e]?.icon||x:x},g0=(a,e,l)=>{let o=A(a);return o==="image"?e.dragImageText(l):o==="spreadsheet"?e.dragSpreadsheetText(l):e.dragText},Z0=a=>a.errors.includes(d0),k0=a=>a.map(e=>({...e,id:crypto.randomUUID()})),p1=a=>a.map(e=>jsx(FileUpload.Item,{file:e,className:"aspect-square size-16",children:jsxs(FileUpload.ItemPreview,{type:"image",className:"relative h-full w-full",children:[jsx(FileUpload.ItemPreviewImage,{className:"h-full w-full rounded-lg object-cover"}),jsx(FileUpload.ItemDeleteTrigger,{asChild:true,className:"absolute -top-1 -right-1",children:jsx(e$2,{Icon:x$1,variant:"light",tone:"neutral",size:"sm"})})]})},`${e.name}-${e.size}-${e.lastModified}`)),u0=({file:a,errorMessage:e$1,onDelete:l})=>jsxs("div",{className:"border-danger-300 bg-danger-50 flex h-13 shrink-0 items-center rounded-md border-2 pr-2 pl-4",children:[jsx("div",{className:"bg-danger-100 ring-danger-200 shrink-0 rounded-full p-2 ring ring-inset",children:jsx(e,{className:"text-danger-600 size-5.5"})}),jsxs("div",{className:"mr-6 ml-2 flex min-w-0 flex-1 flex-col gap-0.5",children:[jsx("span",{className:"font-inter line-clamp-1 text-xs leading-[133%] font-medium text-neutral-900",children:a.name}),jsx("span",{className:"text-2xs font-inter text-danger-600 leading-[133%]",children:e$1})]}),jsx(e$2,{Icon:x$1,variant:"ghost",tone:"neutral",size:"sm",className:"ml-auto shrink-0",onClick:l})]}),L5=({acceptedFileTypes:a$1,acceptedFiles:e$3,maxFiles:l=5,maxFileSize:o=15728640,minFileSize:T,isLoading:c$3=false,isDisabled:v1=false,hasError:p=false,label:y,labelProps:E,size:f="compact",tooltip:g1,required:Z1=false,onFileAccept:k1,onFileReject:b,onFileChange:F,className:u1})=>{let M1=Array.isArray(a$1)&&a$1.length===0,k=p0(a$1),v=f0(k,"image"),C=c0(k),w1=v0(k),{locale:x1}=getDefaultOptions(),d=m0(x1?.code),V1=g0(k,d,l),[B,I]=useState([]),T1=useCallback(r=>{let h=r.files.filter(Z0);h.length>0&&I(g=>[...g,...k0(h)]),b?.(r);},[b]),H1=useCallback(r=>{F?.(r);},[F]),u=B.length>0;return jsxs(FileUpload.Root,{acceptedFiles:e$3,maxFiles:l,maxFileSize:o,minFileSize:T,disabled:v1||c$3,accept:C.length>0?C.join(", "):void 0,validate:M1?()=>["FILE_INVALID_TYPE"]:void 0,onFileAccept:k1,onFileReject:T1,onFileChange:H1,className:u1,children:[y&&jsx(c,{...E,as:FileUpload.Label,label:y,tooltip:E?.tooltip??g1,required:Z1}),jsx(FileUpload.Context,{children:({dragging:r,disabled:h,acceptedFiles:g})=>{let Z=g.length>=l,s=h||Z;return jsxs(Fragment,{children:[jsxs(FileUpload.Dropzone,{disableClick:s,className:a("flex w-full items-center justify-center rounded-lg border border-dashed transition-colors",{"h-52 flex-col px-10":f==="extended","items-center px-4 py-4":f==="compact","border-neutral-500 bg-neutral-100":c$3,"border-danger-300 bg-danger-50 border-2":!c$3&&p,"bg-primary-100 ring-primary-400 border-transparent ring-2 ring-inset":!c$3&&!p&&r&&!s,"cursor-not-allowed border border-neutral-600 bg-neutral-100":!c$3&&!p&&!r&&s,"pointer-events-none":s,"hover:border-primary-400 hover:bg-primary-50 border-neutral-600 bg-neutral-100":!c$3&&!p&&!r&&!s}),children:[c$3&&jsxs("div",{className:a("flex items-center gap-3",{"flex-col":f==="extended"}),children:[jsx(c$1,{size:"lg"}),jsx("span",{className:"text-sm leading-[143%] font-medium text-neutral-800",children:d.loading})]}),!c$3&&jsxs(Fragment,{children:[jsx("div",{className:a("shrink-0 rounded-full p-2 ring ring-inset",{"bg-neutral-200 ring-neutral-300":s,"bg-primary-100 ring-primary-200":!s,"bg-danger-100 ring-danger-200":p}),children:p?jsx(e,{className:"text-danger-600 size-5.5"}):jsx("img",{src:w1,alt:"file type",className:a("size-6",s&&"grayscale")})}),jsxs("div",{className:a("flex flex-col gap-0.5",{"mt-3":f==="extended","ml-3":f==="compact"}),children:[jsx("span",{className:a("font-inter text-sm leading-[143%] font-semibold",{"text-neutral-500":s,"text-neutral-800":!s,"text-neutral-900":p,"text-center":f==="extended"}),children:V1}),jsx("span",{className:a("font-inter text-xs leading-[133%]",{"text-neutral-500":s,"text-neutral-700":!s,"text-neutral-900":p,"text-center":f==="extended"}),children:d.selectText})]}),jsx(FileUpload.Trigger,{asChild:true,children:jsx(e$1,{variant:"secondary",tone:p?"danger":"primary",className:a({"mx-auto mt-4":f==="extended","ml-auto":f==="compact"}),size:"sm",disabled:s,children:d.selectButton})})]})]}),l>0&&Number.isFinite(l)&&jsx("p",{className:"text-2xs mt-2 leading-[133%] font-medium text-neutral-600",children:v?d.maxImagesAllowed(l):d.maxFilesAllowed(l)})]})}}),jsx(FileUpload.Context,{children:({acceptedFiles:r})=>r.length<l?null:jsx(c$2,{hasCloseButton:false,variant:"warning",title:v?d.maxImagesTitle:d.maxFilesTitle,description:v?d.maxImagesDescription:d.maxFilesDescription,className:"mt-3"})}),jsx(FileUpload.Context,{children:({acceptedFiles:r})=>jsxs(FileUpload.ItemGroup,{className:a("mt-3 flex empty:hidden",{"flex-wrap gap-3":v&&!u,"flex-col gap-3":!v||u}),children:[B.map(h=>jsx(u0,{file:h.file,errorMessage:d.fileExceedsMaxSize,onDelete:()=>{I(g=>g.filter(Z=>Z.id!==h.id));}},h.id)),v&&u&&r.length>0&&jsx("div",{className:"flex flex-wrap gap-3",children:p1(r)}),v&&!u&&p1(r),!v&&r.map(h=>{let{badgeIcon:g,extension:Z}=n0(h);return jsxs(FileUpload.Item,{file:h,className:"flex h-13 shrink-0 items-center rounded-md bg-neutral-50 pr-2 pl-4 ring ring-neutral-300 ring-inset",children:[jsx(FileUpload.ItemPreview,{type:".*",children:jsx("img",{src:g,alt:Z?`${Z} file`:"unknown file",className:"size-6"})}),jsxs("div",{className:"mr-6 ml-2 flex flex-col gap-0.5",children:[jsx(FileUpload.ItemName,{className:"font-inter line-clamp-1 text-xs leading-[133%] font-medium text-neutral-900"}),jsx(FileUpload.ItemSizeText,{className:"text-2xs font-inter leading-[133%] text-neutral-700"})]}),jsx(FileUpload.ItemDeleteTrigger,{asChild:true,className:"ml-auto",children:jsx(e$2,{Icon:x$1,variant:"ghost",tone:"neutral",size:"sm"})})]},`${h.name}-${h.size}-${h.lastModified}`)})]})}),jsx(FileUpload.HiddenInput,{})]})};
2
+ export{t0 as a,z5 as b,L5 as c};
@@ -1 +1 @@
1
- import {b as b$1}from'./chunk-P6LEAWO4.js';import {a as a$1}from'./chunk-AWRP67K4.js';import {a}from'./chunk-OBZIYJO7.js';import {MenuPositioner,MenuContent,MenuItem,MenuTrigger,MenuRoot}from'@ark-ui/react/menu';import {Portal}from'@ark-ui/react/portal';import {forwardRef}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var c="data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0 data-[state=open]:duration-150 data-[state=closed]:duration-100 data-[state=open]:ease-out data-[state=closed]:ease-in data-[state=open]:data-[side=bottom]:slide-in-from-top-1 data-[state=closed]:data-[side=bottom]:slide-out-to-top-1 data-[state=open]:data-[side=top]:slide-in-from-bottom-1 data-[state=closed]:data-[side=top]:slide-out-to-bottom-1 data-[state=open]:data-[side=left]:slide-in-from-right-1 data-[state=closed]:data-[side=left]:slide-out-to-right-1 data-[state=open]:data-[side=right]:slide-in-from-left-1 data-[state=closed]:data-[side=right]:slide-out-to-left-1 motion-reduce:data-[state=open]:animate-none motion-reduce:data-[state=closed]:animate-none";var b={placement:"bottom-start",flip:["bottom-end"]},A=({lazyMount:n=true,unmountOnExit:i=true,positioning:a=b,onSelect:o,...s})=>jsx(MenuRoot,{lazyMount:n,unmountOnExit:i,positioning:a,...s,onSelect:o?r=>o(r.value):void 0}),k=MenuTrigger,v=MenuItem,L=a("elevation-9 z-layer max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",c),g=forwardRef(({className:n,children:i,...a$1},o)=>jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{ref:o,className:a(L,n),...a$1,children:i})})}));g.displayName="MenuContent";var x="data-highlighted:bg-primary-100 outline-none [&_p]:break-normal",h=({value:n,label:i,description:a,startIcon:o,endIcon:s,hasDivider:r,disabled:p,onSelect:l})=>jsxs(Fragment,{children:[jsx(MenuItem,{value:n,disabled:p,onSelect:l?()=>l(n):void 0,asChild:true,children:jsxs(b$1.Root,{disabled:p,className:x,children:[o&&jsx(b$1.Leading,{children:jsx(b$1.Icon,{children:o})}),jsxs(b$1.Content,{children:[jsx(b$1.Headline,{children:i}),a&&jsx(b$1.Description,{children:a})]}),s&&jsx(b$1.Trailing,{children:jsx(b$1.Icon,{children:s})})]})}),r&&jsx(a$1,{})]}),z={Root:A,Trigger:k,Content:g,Item:v,Option:h};export{z as a};
1
+ import {b as b$1}from'./chunk-VHPQRQLD.js';import {a as a$1}from'./chunk-AWRP67K4.js';import {a}from'./chunk-OBZIYJO7.js';import {MenuPositioner,MenuContent,MenuItem,MenuTrigger,MenuRoot}from'@ark-ui/react/menu';import {Portal}from'@ark-ui/react/portal';import {forwardRef}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var c="data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0 data-[state=open]:duration-150 data-[state=closed]:duration-100 data-[state=open]:ease-out data-[state=closed]:ease-in data-[state=open]:data-[side=bottom]:slide-in-from-top-1 data-[state=closed]:data-[side=bottom]:slide-out-to-top-1 data-[state=open]:data-[side=top]:slide-in-from-bottom-1 data-[state=closed]:data-[side=top]:slide-out-to-bottom-1 data-[state=open]:data-[side=left]:slide-in-from-right-1 data-[state=closed]:data-[side=left]:slide-out-to-right-1 data-[state=open]:data-[side=right]:slide-in-from-left-1 data-[state=closed]:data-[side=right]:slide-out-to-left-1 motion-reduce:data-[state=open]:animate-none motion-reduce:data-[state=closed]:animate-none";var b={placement:"bottom-start",flip:["bottom-end"]},A=({lazyMount:n=true,unmountOnExit:s=true,positioning:a=b,onSelect:o,...i})=>jsx(MenuRoot,{lazyMount:n,unmountOnExit:s,positioning:a,...i,onSelect:o?r=>o(r.value):void 0}),k=MenuTrigger,v=MenuItem,x=a("elevation-9 z-layer max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",c),g=forwardRef(({className:n,children:s,...a$1},o)=>jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{ref:o,className:a(x,n),...a$1,children:s})})}));g.displayName="MenuContent";var L="data-highlighted:bg-primary-100 outline-none [&_p]:break-normal",T=({value:n,label:s,description:a,startIcon:o,endIcon:i,hasDivider:r,disabled:l,onSelect:u})=>jsxs(Fragment,{children:[jsx(MenuItem,{value:n,disabled:l,onSelect:u?()=>u(n):void 0,asChild:true,children:jsxs(b$1.Root,{disabled:l,className:L,children:[o&&jsx(b$1.Leading,{children:jsx(b$1.Icon,{children:o})}),jsxs(b$1.Content,{children:[jsx(b$1.Headline,{children:s}),a&&jsx(b$1.Description,{children:a})]}),i&&jsx(b$1.Trailing,{children:jsx(b$1.Icon,{children:i})})]})}),r&&jsx(a$1,{})]}),S={Root:A,Trigger:k,Content:g,Item:v,Option:T};export{S as a};
@@ -1 +1 @@
1
- import {c,b,a as a$3}from'./chunk-U6RH2BZO.js';import {d}from'./chunk-SOAQVANY.js';import {a}from'./chunk-RA7JT6A7.js';import {a as a$2}from'./chunk-UIZFLYFP.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {J as J$1,t,u,h}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-P7NW2XNB.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {createContext,forwardRef,useMemo,useCallback,useContext}from'react';import {Collapsible}from'@ark-ui/react/collapsible';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var j=(e,n,a,o)=>{if(n==="icon"){if(e==="success")return {state:"success",variant:"icon"};if(!a$3(a))throw new Error('TrackerItem: `content` (LucideIcon) is required when `variant` is "icon" and `state` is not "success".');return {state:e,variant:"icon",content:a}}if(n==="number"){if(typeof a!="number")throw new Error('TrackerItem: `content` (number) is required when `variant` is "number".');return {state:e,variant:"number",content:a}}if(o===void 0)throw new Error("TrackerItem: `stepNumber` is required when `variant` is omitted (legacy API).");return {state:e,stepNumber:o}},G=e=>e.variant==="icon"?e.state==="success"?{variant:"icon",content:b("success")}:{variant:"icon",content:b(e.state,e.content)}:e.variant==="number"?{variant:"number",content:e.content}:{variant:"number",content:e.stepNumber},R=createContext(null),J=()=>{let e=useContext(R);if(!e)throw new Error("TrackerItem components must be used within TrackerItem");return e},K=({state:e,children:n})=>jsxs("div",{className:"relative",children:[jsx("div",{className:a$1("absolute top-1/2 z-10 h-[70%] w-0.5 -translate-y-1/2 rounded-sm",e==="active"&&"bg-primary-400",e==="success"&&"bg-success-500",e==="wait"&&"bg-neutral-400",e==="current"&&"bg-primary-500",e==="complete"&&"bg-primary-600")}),n]}),O="flex min-h-10 w-full items-center gap-3 py-2 pr-1 pl-3",Q=forwardRef((e,n)=>{let{state:a$3,indicator:o,expandable:m,isClickable:c$1,headerMenu:d,onHeaderButtonClick:s}=J(),{label:f,badgeStatus:u$1,details:p,className:v,...b}=e,k=()=>jsxs(Fragment,{children:[jsxs("div",{className:a$1("flex flex-1 gap-2",!u$1&&(!p||p.length===0)&&"self-center"),children:[o.variant==="icon"?a$3==="success"?jsx(c,{state:"success",variant:"icon"}):jsx(c,{state:a$3,variant:"icon",content:o.content}):jsx(c,{state:a$3,variant:"number",content:o.content}),jsxs("div",{className:"mt-0.5 flex min-w-0 flex-1 flex-col gap-1",children:[jsx("span",{className:a$1("font-jakarta text-xs leading-snug font-medium",a$3==="wait"?"text-neutral-500":"text-neutral-900"),children:f}),u$1&&u$1.visible!==false&&(()=>{let{visible:r,...l}=u$1;return jsx(a$2,{...l})})(),p&&jsx("div",{className:"text-2xs flex flex-col gap-1.5 text-neutral-700",children:p.map(({Icon:r,text:l},C)=>jsxs("div",{className:"flex items-center gap-1.5",children:[jsx(r,{className:"size-3 shrink-0"}),jsx("span",{className:"font-inter",children:l})]},C))})]})]}),c$1&&d&&jsx(J$1,{className:"size-3.5 shrink-0 text-neutral-800"}),!c$1&&m&&jsx(Collapsible.Context,{children:({open:r})=>jsx(Collapsible.Trigger,{asChild:true,children:jsx(e$1,{Icon:r?t:u,size:"sm",variant:"ghost",tone:"neutral"})})}),!c$1&&!m&&s&&jsx(e$1,{Icon:h,size:"sm",variant:"ghost",tone:"neutral",onClick:s})]});return c$1&&d?jsxs(a.Root,{positioning:{placement:"bottom-end",flip:["bottom-start"]},children:[jsx(a.Trigger,{asChild:true,children:jsx("div",{ref:n,className:a$1(O,"group cursor-pointer outline-none hover:bg-neutral-100 focus-visible:ring-3 focus-visible:ring-neutral-800 focus-visible:ring-inset",v),...b,children:k()})}),jsx(a.Content,{children:d.options.map(r=>jsx(a.Option,{value:r.value,label:r.label,description:r.description,startIcon:r.startIcon,endIcon:r.endIcon,hasDivider:r.hasDivider,disabled:r.disabled,onSelect:r.onClick},r.value))})]}):jsx("div",{ref:n,className:a$1(O,v),...b,children:k()})});Q.displayName="TrackerItemHeader";var W=forwardRef(({children:e,className:n,...a},o)=>jsx(Collapsible.Content,{className:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden",children:jsx("div",{ref:o,className:a$1("border-t border-neutral-300 px-3 py-2",n),...a,children:e})}));W.displayName="TrackerItemExpandableContent";var X=forwardRef(({buttons:e$1=[],className:n,...a},o)=>jsx("div",{ref:o,className:a$1("flex justify-end gap-2 border-t border-neutral-300 px-3 py-2",n),...a,children:e$1.map((m,c)=>{if(m.visible===false)return null;let{visible:d$1,...s}=m;return "options"in s?jsx(d,{...s,size:"sm"},c):jsx(e,{...s,size:"sm"},c)})}));X.displayName="TrackerItemFooter";var A="overflow-hidden rounded-sm border border-neutral-300 bg-neutral-50",Y=forwardRef(({state:e,variant:n,content:a,stepNumber:o,expandable:m,isClickable:c,headerMenu:d,defaultExpanded:s,onExpandedChange:f,onHeaderButtonClick:u,className:p,children:v,...b},k)=>{let r=m===true,l=c===true,C=useMemo(()=>G(j(e,n,a,o)),[e,n,a,o]),z=useMemo(()=>({state:e,indicator:C,expandable:r,isClickable:l,headerMenu:l?d:void 0,onHeaderButtonClick:l?void 0:u}),[e,C,r,l,d,u]),V=useCallback(F=>{f?.(F.open);},[f]);return jsx(R.Provider,{value:z,children:jsx(K,{state:e,children:r?jsx(Collapsible.Root,{ref:k,defaultOpen:s??false,onOpenChange:V,className:a$1(A,p),...b,children:v}):jsx("div",{ref:k,className:a$1(A,p),...b,children:v})})})});Y.displayName="TrackerItem";export{J as a,Q as b,W as c,X as d,Y as e};
1
+ import {c,b,a as a$3}from'./chunk-U6RH2BZO.js';import {d}from'./chunk-SYHPQA3E.js';import {a}from'./chunk-DKESWED4.js';import {a as a$2}from'./chunk-UIZFLYFP.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {J as J$1,t,u,h}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-P7NW2XNB.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {createContext,forwardRef,useMemo,useCallback,useContext}from'react';import {Collapsible}from'@ark-ui/react/collapsible';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var j=(e,n,a,o)=>{if(n==="icon"){if(e==="success")return {state:"success",variant:"icon"};if(!a$3(a))throw new Error('TrackerItem: `content` (LucideIcon) is required when `variant` is "icon" and `state` is not "success".');return {state:e,variant:"icon",content:a}}if(n==="number"){if(typeof a!="number")throw new Error('TrackerItem: `content` (number) is required when `variant` is "number".');return {state:e,variant:"number",content:a}}if(o===void 0)throw new Error("TrackerItem: `stepNumber` is required when `variant` is omitted (legacy API).");return {state:e,stepNumber:o}},G=e=>e.variant==="icon"?e.state==="success"?{variant:"icon",content:b("success")}:{variant:"icon",content:b(e.state,e.content)}:e.variant==="number"?{variant:"number",content:e.content}:{variant:"number",content:e.stepNumber},R=createContext(null),J=()=>{let e=useContext(R);if(!e)throw new Error("TrackerItem components must be used within TrackerItem");return e},K=({state:e,children:n})=>jsxs("div",{className:"relative",children:[jsx("div",{className:a$1("absolute top-1/2 z-10 h-[70%] w-0.5 -translate-y-1/2 rounded-sm",e==="active"&&"bg-primary-400",e==="success"&&"bg-success-500",e==="wait"&&"bg-neutral-400",e==="current"&&"bg-primary-500",e==="complete"&&"bg-primary-600")}),n]}),O="flex min-h-10 w-full items-center gap-3 py-2 pr-1 pl-3",Q=forwardRef((e,n)=>{let{state:a$3,indicator:o,expandable:m,isClickable:c$1,headerMenu:d,onHeaderButtonClick:s}=J(),{label:f,badgeStatus:u$1,details:p,className:v,...b}=e,k=()=>jsxs(Fragment,{children:[jsxs("div",{className:a$1("flex flex-1 gap-2",!u$1&&(!p||p.length===0)&&"self-center"),children:[o.variant==="icon"?a$3==="success"?jsx(c,{state:"success",variant:"icon"}):jsx(c,{state:a$3,variant:"icon",content:o.content}):jsx(c,{state:a$3,variant:"number",content:o.content}),jsxs("div",{className:"mt-0.5 flex min-w-0 flex-1 flex-col gap-1",children:[jsx("span",{className:a$1("font-jakarta text-xs leading-snug font-medium",a$3==="wait"?"text-neutral-500":"text-neutral-900"),children:f}),u$1&&u$1.visible!==false&&(()=>{let{visible:r,...l}=u$1;return jsx(a$2,{...l})})(),p&&jsx("div",{className:"text-2xs flex flex-col gap-1.5 text-neutral-700",children:p.map(({Icon:r,text:l},C)=>jsxs("div",{className:"flex items-center gap-1.5",children:[jsx(r,{className:"size-3 shrink-0"}),jsx("span",{className:"font-inter",children:l})]},C))})]})]}),c$1&&d&&jsx(J$1,{className:"size-3.5 shrink-0 text-neutral-800"}),!c$1&&m&&jsx(Collapsible.Context,{children:({open:r})=>jsx(Collapsible.Trigger,{asChild:true,children:jsx(e$1,{Icon:r?t:u,size:"sm",variant:"ghost",tone:"neutral"})})}),!c$1&&!m&&s&&jsx(e$1,{Icon:h,size:"sm",variant:"ghost",tone:"neutral",onClick:s})]});return c$1&&d?jsxs(a.Root,{positioning:{placement:"bottom-end",flip:["bottom-start"]},children:[jsx(a.Trigger,{asChild:true,children:jsx("div",{ref:n,className:a$1(O,"group cursor-pointer outline-none hover:bg-neutral-100 focus-visible:ring-3 focus-visible:ring-neutral-800 focus-visible:ring-inset",v),...b,children:k()})}),jsx(a.Content,{children:d.options.map(r=>jsx(a.Option,{value:r.value,label:r.label,description:r.description,startIcon:r.startIcon,endIcon:r.endIcon,hasDivider:r.hasDivider,disabled:r.disabled,onSelect:r.onClick},r.value))})]}):jsx("div",{ref:n,className:a$1(O,v),...b,children:k()})});Q.displayName="TrackerItemHeader";var W=forwardRef(({children:e,className:n,...a},o)=>jsx(Collapsible.Content,{className:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden",children:jsx("div",{ref:o,className:a$1("border-t border-neutral-300 px-3 py-2",n),...a,children:e})}));W.displayName="TrackerItemExpandableContent";var X=forwardRef(({buttons:e$1=[],className:n,...a},o)=>jsx("div",{ref:o,className:a$1("flex justify-end gap-2 border-t border-neutral-300 px-3 py-2",n),...a,children:e$1.map((m,c)=>{if(m.visible===false)return null;let{visible:d$1,...s}=m;return "options"in s?jsx(d,{...s,size:"sm"},c):jsx(e,{...s,size:"sm"},c)})}));X.displayName="TrackerItemFooter";var A="overflow-hidden rounded-sm border border-neutral-300 bg-neutral-50",Y=forwardRef(({state:e,variant:n,content:a,stepNumber:o,expandable:m,isClickable:c,headerMenu:d,defaultExpanded:s,onExpandedChange:f,onHeaderButtonClick:u,className:p,children:v,...b},k)=>{let r=m===true,l=c===true,C=useMemo(()=>G(j(e,n,a,o)),[e,n,a,o]),z=useMemo(()=>({state:e,indicator:C,expandable:r,isClickable:l,headerMenu:l?d:void 0,onHeaderButtonClick:l?void 0:u}),[e,C,r,l,d,u]),V=useCallback(F=>{f?.(F.open);},[f]);return jsx(R.Provider,{value:z,children:jsx(K,{state:e,children:r?jsx(Collapsible.Root,{ref:k,defaultOpen:s??false,onOpenChange:V,className:a$1(A,p),...b,children:v}):jsx("div",{ref:k,className:a$1(A,p),...b,children:v})})})});Y.displayName="TrackerItem";export{J as a,Q as b,W as c,X as d,Y as e};
@@ -0,0 +1 @@
1
+ import {b,c,e}from'./chunk-SRCJQWFE.js';import {a}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-23G2RUJ6.js';import {useMemo}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var E=["vertical","horizontal"],F=b,G=c,S={tone:"neutral",size:"lg"},H=tv({slots:{root:"group flex flex-col",field:"flex",label:"",options:"flex flex-wrap gap-3"},variants:{orientation:{vertical:{field:"flex-col",label:"mb-3"},horizontal:{field:"flex-row items-center",label:"mr-3 mb-0"}}},defaultVariants:{orientation:"vertical"}}),J=({options:h,value:t,onChange:C,label:s,labelProps:n,orientation:x="vertical",StartIcon:v,required:M,disabled:r,error:T,helperText:a$1,tone:g=S.tone,size:y=S.size,className:z})=>{let{root:O,field:L,label:N,options:I}=H({orientation:x}),p=useMemo(()=>new Set(t),[t]),w=(e,i)=>{if(i)return;let V=p.has(e.value)?t.filter(k=>k!==e.value):[...t,e.value];C(V);};return jsxs("div",{className:O({className:z}),"data-error":T||void 0,"data-disabled":r||void 0,role:"group","aria-label":s,children:[jsxs("div",{className:L(),children:[s&&jsx(c$1,{...n,as:"p",label:s,required:M,size:n?.size??"md",className:N()}),jsx("div",{className:I(),children:h.map(e$1=>{let i=p.has(e$1.value),o=!!r||!!e$1.disabled;return jsx(e,{variant:"outline",tone:g,size:y,StartIcon:v,selected:i,disabled:o,"aria-pressed":i,onClick:()=>w(e$1,o),children:e$1.label},e$1.value)})})]}),a$1&&jsx(a,{children:a$1})]})};export{E as a,F as b,G as c,S as d,J as e};
@@ -0,0 +1 @@
1
+ import {c}from'./chunk-23G2RUJ6.js';import {d}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-OBZIYJO7.js';import {SignaturePad}from'@ark-ui/react/signature-pad';import {forwardRef,useState,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var I=forwardRef((D,v)=>{let{rootClassName:V,className:k,label:m,labelProps:b,required:A,tooltip:E,helperText:f,error:u,hasValue:h,onChange:P,readOnly:n,disabled:e,...T}=D,[F,H]=useState(false),d$1=h!==void 0,L=d$1?h:F,w=useCallback(async a=>{let[l,g]=a.split(","),y=l.match(/:(.*?);/),U=y?y[1]:"image/png",p=atob(g),S=new Uint8Array(p.length);for(let i=0;i<p.length;i++)S[i]=p.charCodeAt(i);return new File([S],"signature.png",{type:U})},[]),o=useCallback(a=>{d$1||H(!!a),P?.(a);},[d$1,P]),O=useCallback(async a=>{if(n||e)return;let l=await a.getDataUrl("image/png");if(!l){o(null);return}let g=await w(l);o(g);},[o,w,n,e]),R=L&&!n&&!e;return jsxs(SignaturePad.Root,{ref:v,"data-error":u,className:a("group flex flex-col",V),onDrawEnd:O,readOnly:n,disabled:e,...T,children:[m&&jsx(c,{...b,as:SignaturePad.Label,label:m,required:A,tooltip:b?.tooltip??E}),jsxs(SignaturePad.Control,{className:a("group/control","relative h-40 w-full overflow-hidden","rounded-lg bg-white p-4","border border-dashed border-neutral-300",u&&"border-error-500",n&&"pointer-events-none border-neutral-300 bg-neutral-100",e&&"pointer-events-none opacity-60",k),children:[jsx(SignaturePad.Segment,{className:"h-full w-full"}),jsx(SignaturePad.Guide,{className:"absolute inset-0 opacity-20"}),R&&jsx(SignaturePad.ClearTrigger,{className:"absolute top-2 right-2 z-20 cursor-pointer rounded-lg bg-neutral-100 p-1 ring-1 ring-neutral-500",onClick:()=>o(null),children:jsx(d,{className:"size-4 text-neutral-700"})})]}),f&&jsx("p",{className:a("font-inter text-2xs mt-1 leading-[133.33%] font-normal",u?"text-error-500":"text-neutral-700",e&&"text-neutral-400"),children:f})]})});I.displayName="SignaturePad";export{I as a};
@@ -0,0 +1 @@
1
+ import {c,d}from'./chunk-TW4CJXQY.js';import {a as a$1}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-23G2RUJ6.js';import {a}from'./chunk-OBZIYJO7.js';import {Field}from'@ark-ui/react/field';import {forwardRef}from'react';import {jsxs,jsx}from'react/jsx-runtime';var N=forwardRef(({className:c$2,disabled:l,error:r,helperText:f,label:b,labelProps:i,placeholder:u,readOnly:p,required:s,tooltip:v,...y},F)=>{let t=c({error:r,disabled:l,readOnly:p,multiline:true});return jsxs(Field.Root,{"data-error":r,disabled:l,readOnly:p,className:t.root({className:c$2}),children:[jsx(c$1,{...i,as:Field.Label,label:b,required:s,tooltip:i?.tooltip??v}),jsxs("div",{className:t.control(),children:[jsx(Field.Textarea,{ref:F,required:s,placeholder:u,"aria-invalid":r,className:a(t.input(),"no-scrollbar h-20"),...y}),r&&jsx("div",{className:a(t.trailing(),"cursor-text"),children:jsx(d,{})})]}),jsx(a$1,{as:Field.HelperText,children:f})]})});N.displayName="Textarea";export{N as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-NGC5DGW6.js';import {c,d}from'./chunk-TW4CJXQY.js';import {a as a$1}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-23G2RUJ6.js';import {j,g}from'./chunk-QMPBFFFC.js';import {NumberInput}from'@ark-ui/react/number-input';import {useLocaleContext}from'@ark-ui/react/locale';import {forwardRef,useId,useCallback,useState,useRef,useEffect}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var P={useGrouping:false,maximumFractionDigits:10},S=new Map,Z=e=>{let t=S.get(e);return t||(t=new Intl.NumberFormat(e,P),S.set(e,t)),t},_=(e,t)=>Number.isNaN(e)?"":Z(t).format(e),$=e=>e?.startsWith("es")?"Ej: 123":e?.startsWith("pt")?"Ex: 123":"e.g. 123",ee=tv({extend:c,slots:{control:"items-center justify-between gap-2 overflow-hidden",input:"peer",segment:["ring-input-ring rounded-r-input flex h-(--height-input) w-8 shrink-0 flex-col bg-neutral-200 text-neutral-800 ring transition-shadow","divide-input-ring divide-y"],segmentTrigger:["flex flex-1 cursor-pointer transition-colors outline-none","enabled:hover:bg-primary-200","disabled:cursor-not-allowed disabled:text-neutral-600"],segmentIcon:"mt-1 ml-2.25 size-3",adornments:"flex items-center gap-1"},variants:{error:{true:{input:"pr-3",segment:"ring-input-ring-error divide-input-ring-error bg-danger-20 text-danger-600",segmentTrigger:"enabled:hover:bg-danger-50"}},readOnly:{true:{segment:"ring-input-ring-disabled divide-input-ring-disabled"}},disabled:{true:{segment:"ring-input-ring-disabled divide-input-ring-disabled"}}},compoundVariants:[{error:true,readOnly:true,class:{segment:"ring-input-ring-error divide-input-ring-error"}},{error:true,disabled:true,class:{segment:"ring-input-ring-error divide-input-ring-error"}}]}),te=e=>{if(e.key!=="Home"&&e.key!=="End"||e.ctrlKey||e.metaKey||e.altKey)return;e.preventDefault();let t=e.currentTarget,{selectionStart:o,selectionEnd:d,value:u}=t;e.key==="Home"?t.setSelectionRange(0,e.shiftKey?d??0:0):t.setSelectionRange(e.shiftKey?o??u.length:u.length,u.length);},H=e=>e==null||e===""?"":String(e),re=forwardRef(({className:e,disabled:t,error:o,helperText:d$1,label:u,labelProps:f,onValueChange:N,placeholder:z,readOnly:p,required:I,tooltip:M,value:l,...h},W)=>{let y=useId(),i=ee({error:o,disabled:t,readOnly:p}),{locale:q}=useLocaleContext(),a$2=h.locale??q,C=useCallback(r=>r==null||r===""?"":_(Number(r),a$2),[a$2]),[F,j$1]=useState(l!==void 0);l!==void 0&&!F&&j$1(true);let x=F||l!==void 0,c=x?l??"":void 0,[B,D]=useState(()=>C(l)),b=useRef(H(l)),k=useRef(a$2);useEffect(()=>{if(c===void 0)return;let r=k.current!==a$2;k.current=a$2;let m=H(c);!r&&m===b.current||(b.current=m,D(C(c)));});let G=useCallback(r=>{D(r.value),b.current=Number.isNaN(r.valueAsNumber)?"":String(r.valueAsNumber),N?.(r);},[N]);return jsxs(NumberInput.Root,{...h,value:x?B:void 0,onValueChange:G,formatOptions:P,disabled:t,readOnly:p,required:I,invalid:!!o,"data-error":o||void 0,className:i.root({className:e}),children:[u&&jsx(c$1,{...f,as:NumberInput.Label,label:u,required:I,tooltip:f?.tooltip??M}),jsxs(NumberInput.Control,{className:i.control(),children:[jsx(NumberInput.Input,{ref:W,placeholder:z??$(a$2),className:i.input(),"aria-describedby":d$1?y:void 0,onKeyDown:te}),jsx(NumberInput.Context,{children:r=>{let m=!p&&!t&&!r.empty;return !m&&!o?null:jsxs("div",{className:i.adornments(),children:[m&&jsx(a,{onClick:()=>r.clearValue()}),o&&jsx(d,{})]})}}),jsxs("div",{className:i.segment(),children:[jsx(NumberInput.IncrementTrigger,{className:i.segmentTrigger(),children:jsx(j,{className:i.segmentIcon()})}),jsx(NumberInput.DecrementTrigger,{className:i.segmentTrigger(),children:jsx(g,{className:i.segmentIcon()})})]})]}),jsx(a$1,{id:y,children:d$1})]})});re.displayName="NumberField";export{P as a,re as b};
@@ -1 +1 @@
1
- import {a}from'./chunk-KTD2GEB6.js';import {b}from'./chunk-7CJMO5NP.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var i={md:"h-(--height-input-md)",lg:"h-(--height-input)"},n=({size:m=b,className:p})=>jsxs("div",{className:a$1("flex w-full flex-col gap-2",p),children:[jsx(a,{className:"h-4 w-15 rounded-sm"}),jsx(a,{className:a$1(i[m],"w-full rounded-lg")})]});export{n as a};
1
+ import {a}from'./chunk-KTD2GEB6.js';import {b}from'./chunk-3M37GYCH.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var i={md:"h-(--height-input-md)",lg:"h-(--height-input)"},n=({size:m=b,className:p})=>jsxs("div",{className:a$1("flex w-full flex-col gap-2",p),children:[jsx(a,{className:"h-4 w-15 rounded-sm"}),jsx(a,{className:a$1(i[m],"w-full rounded-lg")})]});export{n as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-KTD2GEB6.js';import {b}from'./chunk-Q2KEE7CU.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var s={md:"h-(--height-input-md)",lg:"h-(--height-input)"},p=({size:i=b,className:r})=>jsxs("div",{className:a$1("flex w-full flex-col gap-2",r),children:[jsx(a,{className:"h-4 w-15 rounded-sm"}),jsx(a,{className:a$1(s[i],"w-full rounded-lg")})]});export{p as a};
1
+ import {a}from'./chunk-KTD2GEB6.js';import {b}from'./chunk-YBNOVFMN.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var s={md:"h-(--height-input-md)",lg:"h-(--height-input)"},p=({size:i=b,className:r})=>jsxs("div",{className:a$1("flex w-full flex-col gap-2",r),children:[jsx(a,{className:"h-4 w-15 rounded-sm"}),jsx(a,{className:a$1(s[i],"w-full rounded-lg")})]});export{p as a};
@@ -0,0 +1 @@
1
+ import {d}from'./chunk-WAUY2MS6.js';import {a as a$4}from'./chunk-FHABUQAH.js';import {a as a$2}from'./chunk-XYBXEU3T.js';import {a as a$1}from'./chunk-NGC5DGW6.js';import {c,d as d$1}from'./chunk-TW4CJXQY.js';import {a as a$3}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-23G2RUJ6.js';import {k}from'./chunk-QMPBFFFC.js';import {a as a$5}from'./chunk-AWRP67K4.js';import {e}from'./chunk-P7NW2XNB.js';import {a}from'./chunk-OBZIYJO7.js';import {createListCollection,useCombobox,Combobox,useComboboxContext}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import {Portal}from'@ark-ui/react/portal';import {useMemo,useState,useCallback,useRef,useEffect}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';function he(){let s=useComboboxContext(),d=useRef(false);return s.value.length&&s.collection.size&&!d.current&&(s.syncSelectedItems(),d.current=true),null}var Te=s=>{let{label:d$2,labelProps:w,error:T,required:Y,tooltip:Z,disabled:b,readOnly:c$2,options:m,onInputChange:L,onSelect:V,defaultSelectedOptions:u,value:a$6,helperText:$,noResultsLabel:ee,noResultsIcon:te,noResultsDescription:oe,noResultsDescriptionLines:ne,noResultsAsColumn:le,noResultsButtonOnClick:P,noResultsButtonLabel:ie,optionDescriptionLines:k$1=1,loading:D,clearable:re=true,growable:g=true,className:se,...ae}=s,B=Object.getOwnPropertyNames(s),ue=useMemo(()=>({sensitivity:"base"}),[]),{contains:O}=useFilter(ue),[f,pe]=useState(""),z=useMemo(()=>{if(!a$6?.length)return m;let e=new Set(m.map(n=>n.value)),o=[];for(let n of a$6)e.has(n.value)||(e.add(n.value),o.push(n));return o.length?[...o,...m]:m},[m,a$6]),y=useMemo(()=>createListCollection({items:z,itemToString:e=>e.label,itemToValue:e=>String(e.value)}),[z]),I=useMemo(()=>f?y.filter((e,o,n)=>O(e,f)||!!n.description&&O(n.description,f)):y,[y,f,O]),x=useCallback(e=>{pe(e??"");},[]),v=useRef(u??[]),A=useRef(void 0),H=useRef(false),ce=useCallback(e=>{let o=e.items,n=v.current,de=o.length===0?null:o.find(N=>!n.some(S=>String(S.value)===String(N.value)))??n.find(N=>!o.some(S=>String(S.value)===String(N.value)))??null;v.current=[...o],V?.(de,o),A.current?.setInputValue(""),x("");},[V,x]),me=useCallback(e=>{x(e.inputValue),e.reason!==void 0&&L?.(e.inputValue??"");},[x,L]),p=useCombobox({collection:I,multiple:true,inputBehavior:"none",openOnClick:true,onInputValueChange:me,onValueChange:ce,defaultValue:u?.map(e=>String(e.value)),value:B.includes("value")?a$6?.map(e=>String(e.value))??[]:void 0,readOnly:c$2,disabled:b,...ae});A.current=p,useEffect(()=>{B.includes("value")&&a$6!==void 0&&(v.current=[...a$6]);},[a$6]),useEffect(()=>{D||u?.length&&(H.current||(A.current?.setValue(u.map(e=>String(e.value))),v.current=[...u],H.current=true));},[u,D]);let M=c({error:T,disabled:b,readOnly:c$2,multiline:g});return jsxs(Combobox.RootProvider,{value:p,"data-error":T||void 0,className:M.root({className:se}),children:[jsx(c$1,{...w,as:Combobox.Label,label:d$2,required:Y,tooltip:w?.tooltip??Z}),jsx(he,{}),jsxs(Combobox.Control,{className:a(M.control(),"group/control",!g&&"overflow-hidden",b&&"cursor-not-allowed"),children:[jsxs("div",{className:a("flex flex-1 items-center gap-1 px-3 py-2",g?"flex-wrap py-1.5":"overflow-hidden"),children:[p.selectedItems.map(e=>jsx(d,{color:"neutral",variant:"fill",size:"md",disabled:c$2||b,onClose:()=>{p.clearValue(String(e.value));},children:e.label},String(e.value))),jsx(Combobox.Input,{className:a(M.input(),"h-auto px-0 py-0 disabled:cursor-not-allowed"),placeholder:p.selectedItems.length===0?s.placeholder:""})]}),jsxs("div",{className:a("flex shrink-0 items-center gap-2 pr-3",g&&"self-start pt-2.5"),children:[!c$2&&re&&jsx(a$1,{as:Combobox.ClearTrigger,className:"group-data-disabled/control:hidden",onClick:e=>e.stopPropagation()}),T&&jsx(d$1,{}),jsx(Combobox.Trigger,{className:a("group/chevron-host cursor-pointer group-data-disabled/control:cursor-not-allowed",c$2&&"pointer-events-none"),children:jsx(a$2,{})})]})]}),jsx(a$3,{children:$}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsx(Combobox.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 w-(--reference-width) overflow-auto rounded-lg",children:jsx(Combobox.ItemGroup,{children:I.items.length>0?I.items.map(e=>jsx(Combobox.Item,{item:e,className:"data-highlighted:bg-primary-100 cursor-pointer data-disabled:cursor-not-allowed",children:jsx(Combobox.ItemContext,{children:({selected:o,disabled:n})=>jsxs("div",{className:a("font-inter flex flex-row items-center px-3 py-3.5 text-neutral-900 transition-colors","data-highlighted:bg-primary-100",e.description&&"py-3",n?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100"),children:[jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[jsx(Combobox.ItemText,{className:"text-sm leading-[130%] font-medium",children:e.label}),e.description&&jsx("p",{className:"text-xs leading-[130%] text-neutral-700",style:k$1?{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:k$1,WebkitBoxOrient:"vertical"}:void 0,children:e.description})]}),jsx("div",{className:a("ml-4 flex size-4.5 shrink-0 items-center justify-center rounded-sm transition-colors ring-inset",o?"bg-primary-600":"bg-neutral-50 ring-1 ring-neutral-600",n&&(o?"bg-neutral-400":"bg-neutral-100 ring-neutral-300")),children:o&&jsx(k,{className:"size-3.5 text-neutral-50"})})]})})},String(e.value))):jsxs("div",{className:"flex flex-col",children:[jsx(a$4,{title:ee,description:oe,Icon:te,iconAsColumn:le,descriptionLines:ne}),P&&jsxs(Fragment,{children:[jsx(a$5,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{p.setOpen(false),P();},children:ie})]})]})})})})})]})};Te.displayName="AutocompleteMultiple";export{Te as a};
@@ -0,0 +1 @@
1
+ import {a as a$9,b as b$3,c as c$5}from'./chunk-GTVHYHF4.js';import {a as a$b}from'./chunk-GFVJRSZI.js';import {a as a$4}from'./chunk-ORDWXBDZ.js';import {b as b$2}from'./chunk-3J3A5ETC.js';import {c as c$2,j}from'./chunk-3X2MEX7P.js';import {a as a$7}from'./chunk-B5KKVXLE.js';import {c as c$7}from'./chunk-JYNJHAGL.js';import {b}from'./chunk-VHPQRQLD.js';import {d as d$1}from'./chunk-WAUY2MS6.js';import {a as a$a}from'./chunk-4UUTVKB5.js';import {a}from'./chunk-FHABUQAH.js';import {a as a$6,b as b$1,c as c$3,d as d$2}from'./chunk-NYURVOJI.js';import {c as c$6}from'./chunk-ZCMXCZC2.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {a as a$5}from'./chunk-NGC5DGW6.js';import {d,c as c$1}from'./chunk-TW4CJXQY.js';import {a as a$8}from'./chunk-VIMWKUML.js';import {c as c$4}from'./chunk-23G2RUJ6.js';import {d as d$4}from'./chunk-MP4CHZ2K.js';import {a as a$3}from'./chunk-R6NIURLZ.js';import {c,d as d$3,q,k as k$1,h}from'./chunk-QMPBFFFC.js';import {a as a$1}from'./chunk-AWRP67K4.js';import {e}from'./chunk-P7NW2XNB.js';import {a as a$2}from'./chunk-OBZIYJO7.js';import*as k from'react';import k__default,{createContext,useMemo,useCallback,forwardRef,useRef,useContext,useEffect,useId,useState}from'react';import*as Vt from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useListCollection,useCombobox,Combobox}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import {getDefaultOptions}from'date-fns';import Mn from'react-phone-number-input/locale/en.json';import On from'react-phone-number-input/locale/es.json';import Fn from'react-phone-number-input/locale/pt.json';import {LexicalComposer}from'@lexical/react/LexicalComposer';import {RichTextPlugin}from'@lexical/react/LexicalRichTextPlugin';import {ContentEditable}from'@lexical/react/LexicalContentEditable';import {HistoryPlugin}from'@lexical/react/LexicalHistoryPlugin';import {ListPlugin}from'@lexical/react/LexicalListPlugin';import {AutoFocusPlugin}from'@lexical/react/LexicalAutoFocusPlugin';import {OnChangePlugin}from'@lexical/react/LexicalOnChangePlugin';import {LexicalErrorBoundary}from'@lexical/react/LexicalErrorBoundary';import {HeadingNode,$isHeadingNode,$createHeadingNode}from'@lexical/rich-text';import {ListNode,ListItemNode,$isListNode,REMOVE_LIST_COMMAND,INSERT_UNORDERED_LIST_COMMAND,INSERT_ORDERED_LIST_COMMAND}from'@lexical/list';import {useLexicalComposerContext}from'@lexical/react/LexicalComposerContext';import {$generateHtmlFromNodes,$generateNodesFromDOM}from'@lexical/html';import {$getSelection,$isRangeSelection,$isElementNode,SELECTION_CHANGE_COMMAND,CAN_UNDO_COMMAND,CAN_REDO_COMMAND,UNDO_COMMAND,REDO_COMMAND,OUTDENT_CONTENT_COMMAND,INDENT_CONTENT_COMMAND,FORMAT_ELEMENT_COMMAND,$createParagraphNode,FORMAT_TEXT_COMMAND,$getRoot,$insertNodes}from'lexical';import {$setBlocksType}from'@lexical/selection';import {$findMatchingParent,mergeRegister}from'@lexical/utils';import {AlignJustifyIcon,AlignRightIcon,AlignCenterIcon,AlignLeftIcon,UnderlineIcon,ItalicIcon,BoldIcon,UndoIcon,RedoIcon,ListIcon,ListOrderedIcon,IndentDecreaseIcon,IndentIncreaseIcon}from'lucide-react';import Nl,{parsePhoneNumber,getCountryCallingCode}from'react-phone-number-input';import {getExampleNumber}from'libphonenumber-js/mobile';import fl from'libphonenumber-js/mobile/examples';var Uo=k__default.memo(({handleSelect:e$1,NoResultsIcon:o,noResultsLabel:t,noResultsDescription:n,noResultsDescriptionLines:r,noResultsAsColumn:l,noResultsButtonOnClick:i,optionDescriptionLines:u,noResultsButtonLabel:c,filteredOptions:m,inputRect:p,inputRef:g,popoverPosition:b$1,optionsListRef:d,selectedOption:C,options:v,setFilteredOptions:P})=>jsx(Vt.Root,{asChild:true,children:jsxs("div",{ref:d,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:p?{width:`${p.width}px`,left:p.left,top:b$1==="bottom"?`${p.bottom}px`:void 0,bottom:b$1==="top"?`${window.innerHeight-p.top}px`:void 0}:void 0,children:[m.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:t,description:n,Icon:o,iconAsColumn:l,descriptionLines:r}),i&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{d.current.style.display="none",g.current.value="",P(v),i();},children:c})]})]}),m.map(y=>jsx(b.Root,{disabled:y.disabled,selected:C?.value===y.value,onClick:()=>e$1(y),children:jsxs(b.Content,{children:[jsx(b.Headline,{children:y.label}),y.description&&jsx(b.Description,{className:a$2({"line-clamp-1":u===1,"line-clamp-2":u===2,"line-clamp-3":u===3,"line-clamp-4":u===4}),children:y.description})]})},y.key??y.value))]})})),Ut=Uo;var qo=336,jl=({options:e,defaultSelectedOption:o,onSelect:t,onClick:n,onInputChange:r,error:l,helperText:i,label:u,placeholder:c,value:m,size:p="md",optionDescriptionLines:g=1,noResultsLabel:b,noResultsIcon:d,noResultsDescription:C,noResultsDescriptionLines:v,noResultsAsColumn:P,noResultsButtonOnClick:y,noResultsButtonLabel:E,className:x,disabled:N})=>{let[h,I]=useState(o??null),A=useRef(null),L=useRef(null),[M,w]=useState(),[V,H]=useState([]),[s,a]=useState("bottom"),[T,D]=useState(),W=qo,_=useCallback(S=>{A.current.style.display="none",L.current.value=S.label,I(S),t?.(S);},[t]),U=useCallback(()=>{if(!L?.current)return;let S=L.current.getBoundingClientRect();w(S);let Y=T?T.height:W,j=window.innerHeight-S.bottom>Y,Oe=S.top>Y;a(j?"bottom":Oe?"top":"bottom");},[T?.height]),le=useCallback(()=>{let S=e.filter(Y=>Y.label.toLowerCase().includes(L?.current?.value.toLowerCase()??""));if(H(S),A?.current){let Y=A.current.getBoundingClientRect();D(Y);}},[e]);return useEffect(()=>{H(e);},[e]),useEffect(()=>{if(!m){I(null),L.current&&(L.current.value="");return}(!L.current?.value||h?.value!==m.value)&&(I(m),L.current.value=m.label);},[m]),a$b(A,()=>{A.current.style.display="none",h&&L.current&&(L.current.value=h.label);}),useEffect(()=>{if(L?.current)return U(),L.current.addEventListener("mousedown",U),L.current.addEventListener("input",le),window.addEventListener("scroll",U,true),window.addEventListener("resize",U),()=>{L.current?.removeEventListener("mousedown",U),L.current?.removeEventListener("input",le),window.removeEventListener("scroll",U,true),window.removeEventListener("resize",U);}},[U,le]),jsxs("div",{className:a$2("relative",x),children:[jsx(a$4,{ref:L,autoComplete:"off",list:"",selectMode:true,onChange:S=>{S.target.value||(I(null),t?.(null)),r?.(S);},onClean:()=>{I(null),H(e),t?.(null);},onClick:S=>{A.current.style.display="flex",n?.(S);},onBlur:()=>{h&&L.current&&(L.current.value=h.label);},label:u,helperText:i,placeholder:c,size:p,error:l,disabled:N}),jsx(Ut,{handleSelect:_,noResultsLabel:b,NoResultsIcon:d,optionDescriptionLines:g,noResultsAsColumn:P,noResultsButtonLabel:E,noResultsButtonOnClick:y,noResultsDescription:C,noResultsDescriptionLines:v,filteredOptions:V,inputRect:M,inputRef:L,popoverPosition:s,optionsListRef:A,selectedOption:h,options:e,setFilteredOptions:H})]})};var Go=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,disabled:l=false,className:i,...u})=>jsxs("div",{className:a$2("flex w-full flex-col gap-1",i),...u,children:[jsx("p",{className:a$2("text-sm leading-[130%] break-all",!!n&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:o}),n&&jsx("p",{className:a$2("text-xs leading-[130%]",l?"text-neutral-400":"text-neutral-700"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:n})]}),se=Go;var si=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:l,badgeContent:i,hasDivider:u=false,disabled:c=false,onSelect:m,className:p,...g})=>jsxs(J,{hasDescription:!!n,disabled:c,onClick:m,hasDivider:u,className:a$2(!c&&"cursor-pointer",p),...g,children:[l&&k__default.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(se,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:c}),jsxs("div",{className:"ml-4 flex gap-2",children:[i&&jsx(a$3,{content:i,size:"lg",variant:"alert",className:a$2("self-center",c&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var bi=({children:e,title:o,titleLines:t=1,description:n="",descriptionLines:r,startIcon:l,hasDivider:i=false,disabled:u=false,checked:c,onCheckedChange:m,className:p,...g})=>jsxs(J,{hasDescription:!!n,disabled:u,hasDivider:i,...g,className:a$2("pr-6",p),children:[l&&k__default.cloneElement(l,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(se,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:u}),jsx(c$6,{checked:c,onCheckedChange:m,className:"ml-4 self-center",disabled:u})]});var oe=336,jt=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:oe,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),ee=()=>{let e=useContext(jt);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},Yt=({children:e})=>{let o=useRef(null),t=useRef(null),n=useId(),[r,l]=useState(),[i,u]=useState(true),[c,m]=useState([]),[p,g]=useState(-1),[b,d]=useState("bottom"),[C,v]=useState(),[P,y]=useState(oe);return jsx(jt.Provider,{value:{optionsListRef:o,inputRef:t,autocompleteId:n,inputRect:r,showChips:i,filteredOptions:c,currentFocus:p,popoverPosition:b,setFilteredOptions:m,setCurrentFocus:g,setShowChips:u,setPopoverPosition:d,setInputRect:l,optionsListHeight:P,optionsListRect:C,setOptionsListRect:v,setOptionsListHeight:y},children:e})};var nn=({option:e,onMountWidth:o})=>{let t=useRef(null);return useEffect(()=>{t.current&&o?.(t.current.clientWidth);},[]),jsx(d$1,{variant:"fill",color:"neutral",ref:t,className:"shrink-0",size:"md",hasCloseIcon:false,children:e.label})},Xt=nn;var an=150,cn=k__default.memo(({selectedOptions:e,error:o,onCleanSelectedOptions:t,disabled:n,size:r})=>{let{autocompleteId:l,inputRect:i,inputRef:u,optionsListRef:c$1}=ee(),m=k__default.useRef(null),[p,g]=k__default.useState(new Map),b=useMemo(()=>{if(!i?.width)return [];let C=0,v=i.width-an,P=0;for(let y=0;y<e.length&&(P+=p.get(y)??0,!(P>v));y++)C++;return e.slice(0,C)},[i?.width,e,p]),d=useCallback(()=>{n||(u?.current?.focus(),c$1.current.style.display="flex");},[n]);return jsxs("div",{onClick:d,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pr-12 pl-3",n&&"cursor-not-allowed"),style:{maxWidth:i?.width?i?.width:void 0,height:i?.height?i?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:m,children:b.map((C,v)=>jsx(Xt,{option:C,onMountWidth:P=>g(y=>new Map(y).set(v,P))},`chip-input-${l}-${C.value}`))}),e.length>b.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!o&&jsx(a$3,{content:String(e.length),size:r}),o&&e.length>0&&jsx(c,{className:"text-error-700 h-6 w-6",onClick:C=>{C.stopPropagation(),t();}})]})}),Zt=cn;var mn=k__default.memo(({option:e,index:o,onPressOption:t,isSelected:n,optionDescriptionLines:r})=>{let{currentFocus:l,inputRef:i}=ee();return jsxs(b.Root,{selected:l===o,disabled:e.disabled,onMouseDown:u=>{e.disabled||(i?.current?.value&&u.preventDefault(),t?.(e,u));},children:[jsxs(b.Content,{children:[jsx(b.Headline,{children:e.label}),e.description&&jsx(b.Description,{className:a$2({"line-clamp-1":r===1,"line-clamp-2":r===2,"line-clamp-3":r===3,"line-clamp-4":r===4}),children:e.description})]}),jsx(b.Trailing,{children:jsx(b.CheckboxControl,{checked:n})})]})}),lt=mn;var bn=k__default.memo(({selectedOptions:e$1,handleSelect:o,NoResultsIcon:t,noResultsLabel:n,noResultsDescription:r,noResultsDescriptionLines:l,noResultsAsColumn:i,noResultsButtonOnClick:u,optionDescriptionLines:c,noResultsButtonLabel:m})=>{let{popoverPosition:p,optionsListRef:g,filteredOptions:b,inputRect:d,autocompleteId:C,inputRef:v,optionsListHeight:P}=ee(),y=useCallback(x=>e$1.some(N=>N.value===x.value),[e$1]),E=useMemo(()=>e$1.filter(x=>x.label.toLowerCase().includes(v?.current?.value.toLowerCase()??"")),[e$1,v?.current?.value]);return jsx(Vt.Root,{asChild:true,children:jsxs("div",{ref:g,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:d?{width:`${d.width}px`,left:d.left,top:p==="bottom"?`${d.bottom}px`:void 0,bottom:p==="top"?`${window.innerHeight-d.top}px`:void 0,maxHeight:P+"px"}:void 0,children:[b.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:n,description:r,Icon:t,iconAsColumn:i,descriptionLines:l}),u&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{g.current.style.display="none",v.current.value="",u();},children:m})]})]}),E.map((x,N)=>jsx(lt,{option:x,index:N,onPressOption:h=>o(h),isSelected:y(x),optionDescriptionLines:c},`autocomplete-option-${C}-${x.key??x.value}`)),b.map((x,N)=>!e$1.some(h=>h.value===x.value)&&jsx(lt,{option:x,index:N,onPressOption:h=>o(h),isSelected:y(x),optionDescriptionLines:c},`autocomplete-option-${C}-${x.key??x.value}`))]})})}),to=bn;var xn=k__default.memo(({selectedOptions:e,onSelect:o,error:t,helperText:n,label:r,placeholder:l,options:i,onInputChange:u,size:c,disabled:m})=>{let{setCurrentFocus:p,setFilteredOptions:g,optionsListRef:b,inputRef:d}=ee();return jsx(a$4,{ref:d,autoComplete:"off",list:"",disabled:m,selectMode:true,onChange:C=>{p(-1),u?.(C.target.value);},onClean:()=>{p(-1),g(i),o?.(null,e);},onClick:()=>{m||(b.current.style.display="flex");},error:t,helperText:n,label:r,placeholder:l,fixedTopLabel:e.length>0,size:c})}),oo=xn;var no=({options:e,defaultSelectedOptions:o,onSelect:t,error:n,helperText:r,label:l,placeholder:i,noResultsLabel:u,noResultsIcon:c,noResultsDescription:m,noResultsDescriptionLines:p,noResultsAsColumn:g,noResultsButtonOnClick:b,noResultsButtonLabel:d,className:C,onInputChange:v,value:P,loading:y,size:E="md",optionDescriptionLines:x=1,disabled:N})=>{let{inputRef:h,optionsListRef:I,setFilteredOptions:A,setShowChips:L,setInputRect:M,setPopoverPosition:w,setCurrentFocus:V,showChips:H,setOptionsListRect:s,optionsListRect:a,setOptionsListHeight:T}=ee(),D=useRef(false),[W,_]=useState(o??[]),U=useCallback(G=>{_(X=>{let ie,Ie=X.findIndex(zo=>zo.value===G.value);return Ie===-1?(ie=X.concat(G),t?.(G,ie),ie):(ie=X.toSpliced(Ie,1),t?.(G,ie),ie)});},[t]),le=useCallback(()=>{_([]),A(e),t?.(null,[]);},[]),S=useCallback(()=>{L(false);},[]),Y=useCallback(()=>{L(true);},[]),j=useCallback(()=>{if(!h?.current)return;let G=h.current.getBoundingClientRect();M(G);let X=a?a.height>oe?oe:a.height:oe,ie=window.innerHeight-G.bottom>X,Ie=G.top>X;w(ie?"bottom":Ie?"top":"bottom"),T(Ie?oe:window.innerHeight-G.bottom>oe?oe:window.innerHeight-G.bottom);},[a?.height]),Oe=useCallback(()=>{let G=e.filter(X=>X.label.toLowerCase().includes(h?.current?.value.toLowerCase()??""));if(A(G),I?.current){let X=I.current.getBoundingClientRect();s(X);}},[e,I?.current]);return useEffect(()=>{A(e);},[e]),a$b(I,()=>{I.current.style.display="none",V(-1);}),useEffect(()=>{if(h?.current)return j(),h.current.addEventListener("mousedown",j),h.current.addEventListener("input",Oe),h.current.addEventListener("focusin",S),h.current.addEventListener("focusout",Y),window.addEventListener("scroll",j,true),window.addEventListener("resize",j),()=>{h.current?.removeEventListener("mousedown",j),h.current?.removeEventListener("input",j),h.current?.removeEventListener("focusout",Y),h.current?.removeEventListener("focusin",S),window.removeEventListener("scroll",j,true),window.removeEventListener("resize",j);}},[j,Y,S,Oe]),useEffect(()=>{P&&(_(P),L(true));},[P]),useEffect(()=>{y||o&&o.length&&!D.current&&(_(o),D.current=true,L(true));},[o,y]),jsxs("div",{className:a$2("relative",C),children:[jsx(oo,{selectedOptions:W,onSelect:t,error:n,helperText:r,label:l,placeholder:i,handleSelect:U,options:e,onInputChange:v,size:E,disabled:N}),H&&jsx(Zt,{selectedOptions:W,disabled:N,error:n,onCleanSelectedOptions:le,size:E}),jsx(to,{handleSelect:U,selectedOptions:W,noResultsLabel:u,NoResultsIcon:c,optionDescriptionLines:x,noResultsAsColumn:g,noResultsButtonLabel:d,noResultsButtonOnClick:b,noResultsDescription:m,noResultsDescriptionLines:p})]})};var vs=e=>jsx(Yt,{children:jsx(no,{...e})});var Ye=({children:e,className:o,disabled:t,error:n,helperText:r,htmlFor:l,label:i,labelProps:u,readOnly:c,required:m,tooltip:p})=>{let{root:g}=c$1({error:n,disabled:t,readOnly:c});return jsxs("div",{className:g({className:o}),"data-error":n||void 0,"data-disabled":t||void 0,"data-readonly":c||void 0,children:[i&&jsx(c$4,{...u,as:"label",htmlFor:l,label:i,required:m,tooltip:u?.tooltip??p}),e,jsx(a$8,{children:r})]})};var En=({code:e,codeClassName:o})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx(a$7,{country:e,className:"size-4.5"}),jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",o),children:e})]}),io=({className:e,disabled:o,error:t,onChange:n,onOpenChange:r,options:l,readOnly:i,translations:u,value:c})=>{let m=k.useRef(null),[p,g]=k.useState(""),[b,d]=k.useState(false),{wrapper:C,input:v,clearIcon:P,searchIcon:y}=b$2({size:"md"}),{contains:E}=useFilter({sensitivity:"base"}),x=k.useMemo(()=>l.map(s=>({...s,key:s.code})),[l]),N=k.useMemo(()=>x.find(s=>s.key===c),[x,c]),{collection:h,filter:I,set:A}=useListCollection({initialItems:x,itemToString:s=>`${s.label} ${s.code}`,itemToValue:s=>s.key,filter:(s,a,T)=>E(s,a)||E(T.code,a.toUpperCase())});k.useEffect(()=>{A(x);},[x,A]);let L=k.useCallback(s=>{d(s),r?.(s);},[r]),M=k.useCallback(({inputValue:s})=>{let a=s??"";g(a),I(a),m.current?.scrollTo({top:0});},[I]),w=k.useCallback(s=>{L(s),s&&(g(""),I(""));},[I,L]),V=k.useCallback(({itemValue:s})=>{if(!s)return;let a=x.find(T=>T.key===s)?.code;a&&(n(a),L(false));},[x,L,n]),H=useCombobox({collection:h,inputBehavior:"autohighlight",inputValue:p,open:b,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:N?[N.key]:[],onInputValueChange:M,onOpenChange:({open:s})=>{s||L(false);},onSelect:V});return jsx(Combobox.RootProvider,{value:H,children:jsxs(a$9,{open:b,onOpenChange:w,children:[jsx(b$3,{asChild:true,children:jsx("button",{type:"button",className:a$2("relative flex h-full w-19.5 shrink-0 items-center justify-center rounded-l after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:w-px after:content-['']",t?"bg-danger-20 after:bg-input-ring-error after:w-0.5":o||i?"after:bg-input-ring-disabled bg-neutral-200":"group-focus-within/id-field:after:bg-input-ring-focus after:bg-input-ring bg-neutral-200 group-focus-within/id-field:after:w-0.5",!t&&b&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||i,children:N&&jsx(En,{code:N.code,codeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",i&&"text-input-text-disabled")})})}),jsx(c$5,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:C({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:u.searchCountryPlaceholder,className:v()}),!o&&p.length>0&&jsx("button",{type:"button",className:P(),onClick:()=>{H.setInputValue("","clear-trigger");},children:jsx(d$3,{className:"size-4.5"})}),jsx(q,{className:y()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:m,className:a$2("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":h.items.length===0}),children:h.items.length===0?jsx(a$a,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:h.items.map(s=>jsxs(Combobox.Item,{item:s,className:"data-highlighted:bg-primary-100 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-neutral-900 outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",children:[jsx(a$7,{country:s.code,className:"size-4.5"}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:s.label}),jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:s.code}),jsx(k$1,{className:a$2("ml-auto size-4 shrink-0",s.key===c?"opacity-100":"opacity-0")})]},s.key))})})]})})]})})};var ct=k.forwardRef(({className:e,clearLabel:o,disabled:t,error:n,onChange:r,readOnly:l,type:i="text",value:u,...c},m)=>{let p=k.useRef(null),g=`${u??""}`.length>0,b=!t&&!l&&g,d$1=b||n;k.useImperativeHandle(m,()=>p.current,[]);let C=k.useCallback(P=>{r?.(P.target.value);},[r]),v=k.useCallback(()=>{r?.(""),p.current?.focus();},[r]);return jsxs("div",{className:a$2("bg-input-bg relative flex h-full min-w-0 flex-1 rounded-r",t&&"bg-input-bg-disabled"),children:[jsx("input",{type:i,"data-slot":"input",className:a$2("text-input-text placeholder:text-input-placeholder h-full min-w-0 flex-1 rounded-r bg-transparent px-3 text-sm leading-[143%] focus-visible:outline-0",d$1&&!n&&"pr-10.5",b&&n&&"pr-14",n&&!b&&"pr-10.5",t&&"text-input-text-disabled",e),...c,disabled:t,readOnly:l,value:u,onChange:C,ref:p}),(b||n)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[b&&jsx(a$5,{ariaLabel:o,onClick:v}),n&&jsx(d,{})]})]})});ct.displayName="IdInput";var pt={en:"Clear identification number",es:"Limpiar n\xFAmero de identificaci\xF3n",pt:"Limpar n\xFAmero de identifica\xE7\xE3o"},ao={en:Mn,es:On,pt:Fn},kn=pt.en,wn=ao.en,Hn={es:{clearIdLabel:pt.es,searchCountryPlaceholder:"Buscar..."},pt:{clearIdLabel:pt.pt,searchCountryPlaceholder:"Pesquisar..."}},Sn={clearIdLabel:kn,searchCountryPlaceholder:"Search..."},co=()=>getDefaultOptions().locale?.code,po=e=>Hn[e]??Sn,Dn=(e,o)=>(ao[o]??wn)[e]??e,uo=({localeCode:e})=>c$2.map(o=>({code:o,label:Dn(o,e)})).sort((o,t)=>o.label.localeCompare(t.label)),mo=a$6,fo=b$1,ho=(e,o)=>{let t=o.trim();return !t||!c$3(e,t).isValid?t:d$2(e,t)};var bo=()=>{},go=k.forwardRef(({autoComplete:e,className:o,country:t,disabled:n,error:r,helperText:l,id:i,label:u,labelProps:c,name:m,onBlur:p,onChange:g=bo,onCountryChange:b=bo,placeholder:d,readOnly:C,required:v,tooltip:P,value:y},E)=>{let[x,N]=k.useState(false),[h,I]=k.useState(y??""),A=k.useId(),L=i??A,M=co(),w=k.useRef(y??"");k.useEffect(()=>{(y??"")!==w.current&&I(y??"");},[y]);let V=k.useMemo(()=>po(M),[M]),H=k.useMemo(()=>uo({localeCode:M}),[M]),s=k.useMemo(()=>fo(t??"")||d||mo,[t,d]),a=c$1({error:r,disabled:n,readOnly:C}),T=k.useCallback((_,U)=>{let le=ho(_,U);w.current=le,g(le);},[g]),D=k.useCallback(_=>{I(_),T(t??"",_);},[t,T]),W=k.useCallback(_=>{b(_),T(_,h);},[h,b,T]);return jsx(Ye,{className:o,disabled:n,error:r,helperText:l,htmlFor:L,label:u,labelProps:c,readOnly:C,required:v,tooltip:P,children:jsxs("div",{className:a$2(a.control(),"group/id-field",!r&&!n&&!C&&x&&"after:ring-input-ring-focus after:ring-2"),children:[jsx(io,{disabled:n,error:r,onChange:W,onOpenChange:N,options:H,readOnly:C,translations:V,value:t}),jsx(ct,{autoComplete:e,clearLabel:V.clearIdLabel,disabled:n,error:r,id:L,name:m,onBlur:p,onChange:D,placeholder:s,readOnly:C,required:v,value:h,ref:E})]})})});go.displayName="IdField";var ga=({children:e$2,title:o,titleLines:t=1,description:n,descriptionLines:r=1,StartIcon:l,hasDivider:i=false,disabled:u=false,actionButton:c,isSelected:m=false,className:p,...g})=>jsxs(J,{hasDescription:!!n,disabled:u,hasDivider:i,isSelected:m,...g,className:p,children:[l&&jsx(l,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(se,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:u}),c&&jsx(Fragment,{children:c.isIcon?jsx(e$1,{...c,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:u??c.disabled}):jsx(e,{...c,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:u??c.disabled})})]});var Ea=({title:e,description:o="",descriptionLines:t,hasDivider:n=false,disabled:r=false,checked:l,onCheckedChange:i,className:u,chipStatus:c,chipExpandable:m,...p})=>jsxs(J,{hasDescription:!!o,disabled:r,hasDivider:n,...p,className:a$2("pr-6",u),children:[jsx(c$6,{checked:l,onCheckedChange:i,className:"mr-4 self-center",disabled:r}),jsxs("div",{className:"flex-1",children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsx("p",{className:a$2("line-clamp-1 text-sm leading-[130%] break-all",!!o&&"font-medium"),children:e}),m&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$7,{...m})}),c&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$4,{...c,size:"xs",className:"shrink-0"})})]}),o&&jsx("p",{className:a$2("text-xs leading-[130%]",r?"text-neutral-400":"text-neutral-700",{"line-clamp-1":t===1,"line-clamp-2":t===2,"line-clamp-3":t===3,"line-clamp-4":t===4}),children:o})]})]});var dt={paragraph:"m-0",ltr:"text-left",rtl:"text-right",heading:{h1:"mb-2 text-2xl leading-[130%] font-semibold text-neutral-900",h2:"mb-2 text-xl leading-[130%] font-semibold text-neutral-900",h3:"mb-2 text-lg leading-[130%] font-semibold text-neutral-900",h4:"mb-2 text-base leading-[130%] font-semibold text-neutral-900",h5:"mb-2 text-sm leading-[130%] font-semibold text-neutral-900",h6:"mb-2 text-xs leading-[130%] font-semibold text-neutral-900"},list:{ul:"my-2 list-disc pl-5",ol:"my-2 list-decimal pl-5",listitem:"my-1",nested:{listitem:"my-1"}},text:{bold:"font-semibold",italic:"italic",underline:"underline",strikethrough:"line-through",code:"rounded bg-neutral-100 px-1 py-0.5 font-mono text-xs"},code:"rounded bg-neutral-100 p-2 font-mono text-xs",quote:"border-l-2 border-neutral-300 pl-3 italic text-neutral-700",link:"text-primary-700 underline hover:text-primary-800"},ft={headings:["h1","h2","h3"],textFormat:["bold","italic","underline"],lists:true,indent:true,alignment:["left","center","right","justify"],undoRedo:true};var ht=({readOnly:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>{o.setEditable(!e);},[o,e]),null};var bt=({editorRef:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>(e.current=o,()=>{e.current===o&&(e.current=null);}),[o,e]),null};var Wn={"ql-align-left":"left","ql-align-center":"center","ql-align-right":"right","ql-align-justify":"justify"},Gn={center:"ql-align-center",right:"ql-align-right",justify:"ql-align-justify"},Kn=()=>typeof window<"u"&&typeof window.DOMParser<"u",Co=e=>Kn()?new DOMParser().parseFromString(e,"text/html"):null,Qn=e=>(e??"").replace(/\s+/g," ").trim(),Ct=e=>{let o=0;for(let t of Array.from(e.classList)){let n=t.match(/^ql-indent-(\d+)$/);if(!n)continue;let r=Number.parseInt(n[1],10);Number.isFinite(r)&&(o=Math.max(o,r)),e.classList.remove(t);}return o},jn=e=>{let o=e.querySelectorAll("[class*='ql-align-']");for(let t of Array.from(o))for(let n of Array.from(t.classList)){let r=Wn[n];r&&(r!=="left"&&(t.style.textAlign=r),t.classList.remove(n));}},Yn=e=>{let o=e.querySelectorAll("[class*='ql-indent-']");for(let t of Array.from(o)){if(t.tagName==="LI")continue;let n=Ct(t);n>0&&(t.style.paddingInlineStart=`${n*3}em`);}},Xn=(e,o)=>{let t=e.getAttribute("data-list");return t==="bullet"?"ul":t==="ordered"?"ol":o},Zn=e=>{let o=e.cloneNode(true);return o.removeAttribute("data-list"),o.removeAttribute("data-checked"),o.removeAttribute("data-indent"),Ct(o),o},gt=(e,o)=>e.createElement(o),Jn=(e,o)=>{let t=Array.from(e.children).filter(c=>c.tagName==="LI");if(t.length===0||!t.some(c=>c.hasAttribute("data-list")?true:Array.from(c.classList).some(m=>/^ql-indent-\d+$/.test(m))))return;let r=[],l=[],i=e.tagName==="UL"?"ul":"ol";for(let c of t){let m=Ct(c),p=Xn(c,i),g=Zn(c);for(;l.length>0&&l[l.length-1].level>m;)l.pop();if(l.length===0){let d=gt(o,p);r.push(d),l.push({level:0,kind:p,listElement:d});}let b=l[l.length-1];for(;b.level<m;){let d=b.listElement.lastElementChild;if(!d||d.tagName!=="LI")break;let C=gt(o,p);d.appendChild(C),b={level:b.level+1,kind:p,listElement:C},l.push(b);}if(b=l[l.length-1],b.kind!==p){let d=gt(o,p);if(l.length===1)r.push(d),l[0]={level:0,kind:p,listElement:d};else {let v=l[l.length-2].listElement.lastElementChild;v&&v.tagName==="LI"?(v.appendChild(d),l[l.length-1]={level:b.level,kind:p,listElement:d}):(r.push(d),l.length=1,l[0]={level:0,kind:p,listElement:d});}b=l[l.length-1];}b.listElement.appendChild(g);}if(r.length===0)return;let u=o.createDocumentFragment();for(let c of r)u.appendChild(c);e.replaceWith(u);},er=(e,o)=>{let t=Array.from(e.querySelectorAll("ol, ul"));for(let n of t)Jn(n,o);},xo=(e,o)=>{let t=e.tagName==="UL"?"bullet":"ordered",n=Array.from(e.children).filter(r=>r.tagName==="LI");for(let r of n){r.setAttribute("data-list",t);for(let i of Array.from(r.classList))/^ql-indent-\d+$/.test(i)&&r.classList.remove(i);o>0&&r.classList.add(`ql-indent-${o}`);let l=Array.from(r.children).filter(i=>i.tagName==="UL"||i.tagName==="OL");for(let i of l)xo(i,o+1);}},tr=e=>{let o=e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li");for(let t of Array.from(o)){let n=t;for(let i of Array.from(n.classList))i.startsWith("ql-align-")&&n.classList.remove(i);let r=n.style.textAlign.trim().toLowerCase(),l=Gn[r];l&&n.classList.add(l);}},Ce=e=>Qn(e).replace(/>\s+</g,"><").replace(/&nbsp;/g," "),xt=e=>{let o=e??"";if(!o.trim())return "";let t=Co(o);if(!t)return o;let{body:n}=t;return jn(n),Yn(n),er(n,t),n.innerHTML},Lt=e=>{if(!e.trim())return "";let o=Co(e);if(!o)return e;let{body:t}=o,n=Array.from(t.querySelectorAll("ul, ol"));for(let r of n)xo(r,0);return tr(t),t.innerHTML};var Xe=e=>{let o="";return e.getEditorState().read(()=>{o=$generateHtmlFromNodes(e,null);}),Lt(o)},cr=(e,o)=>{let t=xt(o);e.update(()=>{let n=$getRoot();if(n.clear(),!t.trim()){n.append($createParagraphNode());return}let l=new DOMParser().parseFromString(t,"text/html"),i=$generateNodesFromDOM(e,l);if(i.length===0){n.append($createParagraphNode());return}n.select(),$insertNodes(i);});},yt=({value:e,isSyncingRef:o})=>{let[t]=useLexicalComposerContext(),n=useRef(null);return useEffect(()=>{let r=e??"";if(n.current!==null&&Ce(r)===Ce(n.current))return;let l=Xe(t);Ce(l)!==Ce(r)&&(o.current=true,cr(t,r),queueMicrotask(()=>{o.current=false;})),n.current=r;},[t,o,e]),null};var yo=["left","center","right","justify"];var Io=["bold","italic","underline","strikethrough","code"];var Wr={bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough",code:"code"},Gr={left:jsx(AlignLeftIcon,{className:"size-4"}),center:jsx(AlignCenterIcon,{className:"size-4"}),right:jsx(AlignRightIcon,{className:"size-4"}),justify:jsx(AlignJustifyIcon,{className:"size-4"})},Kr={left:"Align left",center:"Align center",right:"Align right",justify:"Align justify"},Ee={bold:jsx(BoldIcon,{className:"size-4"}),italic:jsx(ItalicIcon,{className:"size-4"}),underline:jsx(UnderlineIcon,{className:"size-4"}),strikethrough:jsx("span",{className:"text-xs font-semibold",children:"S"}),code:jsx("span",{className:"font-mono text-xs",children:"</>"})},Ae={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Inline code"},Qr=e=>{let o=e.textFormat;return o===false?[]:Array.isArray(o)?Io.filter(t=>o.includes(t)):["bold","italic","underline"]},jr=e=>{let o=e.alignment;return o===false?[]:Array.isArray(o)?yo.filter(t=>o.includes(t)):["left","center","right","justify"]},Yr=e=>{if(e.headings===false)return [];let o=Array.isArray(e.headings)?e.headings:["h1","h2","h3"];return [{value:"paragraph",label:"Normal"},...o.map(t=>({value:t,label:t.toUpperCase()}))]},Me=()=>jsx("div",{className:"mx-1 h-5 w-px bg-neutral-300"}),Q=({label:e,onClick:o,icon:t,active:n=false,disabled:r=false})=>jsx("button",{type:"button","aria-label":e,title:e,disabled:r,onClick:o,className:a$2("inline-flex size-8 items-center justify-center rounded-md border border-transparent text-neutral-700 transition-colors","focus-visible:ring-primary-800 hover:bg-neutral-200 focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-40",n&&"border-neutral-300 bg-neutral-200 text-neutral-900"),children:t}),vt=({config:e,className:o})=>{let[t]=useLexicalComposerContext(),n=useId(),[r,l]=useState(false),[i,u]=useState(false),[c,m]=useState(false),[p,g]=useState(false),[b,d]=useState(false),[C,v]=useState(false),[P,y]=useState(false),[E,x]=useState("paragraph"),[N,h]=useState("left"),I=useMemo(()=>Qr(e),[e]),A=useMemo(()=>jr(e),[e]),L=useMemo(()=>Yr(e),[e]),M=useCallback(()=>{let s=$getSelection();if(!$isRangeSelection(s))return;m(s.hasFormat("bold")),g(s.hasFormat("italic")),d(s.hasFormat("underline")),v(s.hasFormat("strikethrough")),y(s.hasFormat("code"));let a=s.anchor.getNode(),T=a.getKey()==="root"?a:a.getTopLevelElementOrThrow();if($isListNode(T))x(T.getListType()==="number"?"ol":"ul");else {let W=$findMatchingParent(T,_=>$isListNode(_));$isListNode(W)?x(W.getListType()==="number"?"ol":"ul"):x($isHeadingNode(T)?T.getTag():T.getType());}let D=$isElementNode(T)?T.getFormatType():"";h(D==="center"||D==="right"||D==="justify"?D:"left");},[]);useEffect(()=>mergeRegister(t.registerUpdateListener(({editorState:s})=>{s.read(()=>{M();});}),t.registerCommand(SELECTION_CHANGE_COMMAND,()=>(M(),false),1),t.registerCommand(CAN_UNDO_COMMAND,s=>(l(s),false),1),t.registerCommand(CAN_REDO_COMMAND,s=>(u(s),false),1)),[t,M]);let w=s=>{t.dispatchCommand(FORMAT_TEXT_COMMAND,Wr[s]);},V=s=>{t.update(()=>{let a=$getSelection();if($isRangeSelection(a)){if(s==="paragraph"){$setBlocksType(a,()=>$createParagraphNode());return}$setBlocksType(a,()=>$createHeadingNode(s));}});},H=s=>{if(E===(s==="bullet"?"ul":"ol")){t.dispatchCommand(REMOVE_LIST_COMMAND,void 0);return}t.dispatchCommand(s==="bullet"?INSERT_UNORDERED_LIST_COMMAND:INSERT_ORDERED_LIST_COMMAND,void 0);};return jsxs("div",{className:a$2("flex flex-wrap items-center gap-1 border-b border-neutral-300 bg-neutral-100 px-2 py-1.5",o),children:[e.undoRedo!==false&&jsxs(Fragment,{children:[jsx(Q,{label:"Undo",onClick:()=>t.dispatchCommand(UNDO_COMMAND,void 0),disabled:!r,icon:jsx(UndoIcon,{className:"size-4"})}),jsx(Q,{label:"Redo",onClick:()=>t.dispatchCommand(REDO_COMMAND,void 0),disabled:!i,icon:jsx(RedoIcon,{className:"size-4"})}),jsx(Me,{})]}),L.length>0&&jsxs(Fragment,{children:[jsx("label",{className:"sr-only",htmlFor:n,children:"Text style"}),jsx("select",{id:n,value:E.startsWith("h")?E:"paragraph",onChange:s=>V(s.target.value),className:a$2("h-8 rounded-md border border-neutral-300 bg-white px-2 text-xs font-medium text-neutral-800","focus-visible:ring-primary-800 focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:outline-none"),children:L.map(s=>jsx("option",{value:s.value,children:s.label},s.value))}),jsx(Me,{})]}),I.length>0&&jsxs(Fragment,{children:[I.includes("bold")&&jsx(Q,{label:Ae.bold,onClick:()=>w("bold"),icon:Ee.bold,active:c}),I.includes("italic")&&jsx(Q,{label:Ae.italic,onClick:()=>w("italic"),icon:Ee.italic,active:p}),I.includes("underline")&&jsx(Q,{label:Ae.underline,onClick:()=>w("underline"),icon:Ee.underline,active:b}),I.includes("strikethrough")&&jsx(Q,{label:Ae.strikethrough,onClick:()=>w("strikethrough"),icon:Ee.strikethrough,active:C}),I.includes("code")&&jsx(Q,{label:Ae.code,onClick:()=>w("code"),icon:Ee.code,active:P}),jsx(Me,{})]}),e.lists!==false&&jsxs(Fragment,{children:[jsx(Q,{label:"Bulleted list",onClick:()=>H("bullet"),icon:jsx(ListIcon,{className:"size-4"}),active:E==="ul"}),jsx(Q,{label:"Numbered list",onClick:()=>H("number"),icon:jsx(ListOrderedIcon,{className:"size-4"}),active:E==="ol"}),jsx(Me,{})]}),e.indent!==false&&jsxs(Fragment,{children:[jsx(Q,{label:"Decrease indent",onClick:()=>t.dispatchCommand(OUTDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentDecreaseIcon,{className:"size-4"})}),jsx(Q,{label:"Increase indent",onClick:()=>t.dispatchCommand(INDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentIncreaseIcon,{className:"size-4"})}),jsx(Me,{})]}),A.length>0&&jsx(Fragment,{children:A.map(s=>jsx(Q,{label:Kr[s],onClick:()=>t.dispatchCommand(FORMAT_ELEMENT_COMMAND,s),icon:Gr[s],active:N===s},s))})]})};var To=e=>{if(e!==void 0)return typeof e=="number"?`${e}px`:e},ul=forwardRef(({value:e,onChange:o,onBlur:t,onError:n,placeholder:r="Write your content...",readOnly:l=false,showToolbar:i=true,toolbarConfig:u=ft,className:c,editorClassName:m,toolbarClassName:p,autoFocus:g=false,minHeight:b=160,maxHeight:d,error:C=false,errorMessage:v,editorRef:P},y)=>{let E=useRef(false),x=useMemo(()=>({namespace:"SodtrackRichTextEditor",theme:dt,onError:(h,I)=>{if(n){n(h,I);return}console.error("RichTextEditor error",h);},nodes:[HeadingNode,ListNode,ListItemNode]}),[n]),N={minHeight:To(b),maxHeight:To(d),overflowY:d?"auto":void 0};return jsx(LexicalComposer,{initialConfig:x,children:jsxs("div",{className:"w-full",children:[jsxs("div",{ref:y,className:a$2("group flex w-full flex-col overflow-hidden rounded-lg border bg-white transition-colors","focus-within:ring-primary-800 focus-within:ring-2 focus-within:ring-offset-0",C?"border-error-500 focus-within:border-error-500 focus-within:ring-error-500":"border-neutral-500",l&&"border-neutral-300 bg-neutral-50 focus-within:ring-0",c),"data-error":C,"data-readonly":l,children:[i&&!l&&jsx(vt,{config:u,className:p}),jsx(RichTextPlugin,{contentEditable:jsx(ContentEditable,{className:a$2("relative w-full px-4 py-3 text-sm leading-[142%] text-neutral-900 outline-none","[&_h1]:mt-2 [&_h1]:mb-2 [&_h2]:mt-2 [&_h2]:mb-2 [&_h3]:mt-2 [&_h3]:mb-2","[&_li]:my-1 [&_ol]:my-2 [&_ul]:my-2","[&_a]:text-primary-700 [&_a]:underline",l&&"cursor-default",m),style:N,onBlur:t,"aria-invalid":C}),placeholder:l?null:jsx("div",{className:"pointer-events-none absolute top-3 left-4 text-sm text-neutral-500",children:r}),ErrorBoundary:LexicalErrorBoundary}),jsx(HistoryPlugin,{}),jsx(ListPlugin,{}),jsx(ht,{readOnly:l}),jsx(yt,{value:e,isSyncingRef:E}),g&&!l&&jsx(AutoFocusPlugin,{}),P&&jsx(bt,{editorRef:P}),jsx(OnChangePlugin,{ignoreSelectionChange:true,onChange:(h,I)=>{!o||E.current||o(Xe(I),h);}})]}),C&&v&&jsx("p",{className:"text-error-500 mt-1 text-xs leading-[133%]",children:v})]})})});ul.displayName="RichTextEditor";var Eo={en:Mn,es:On,pt:Fn},xl={es:{clearPhoneNumberLabel:"Eliminar n\xFAmero de tel\xE9fono",searchCountryPlaceholder:"Buscar..."},pt:{clearPhoneNumberLabel:"Limpar n\xFAmero de telefone",searchCountryPlaceholder:"Pesquisar..."}},Ll={clearPhoneNumberLabel:"Clear phone number",searchCountryPlaceholder:"Search..."},yl=Eo.en,Ao="9 1234 5678",Pt="ZZ",Mo=()=>{},Ze=e=>xl[e]??Ll,Oo=e=>Eo[e]??yl,Fo=e=>{if(e)try{let o=parsePhoneNumber(e)?.country;return !o||!j(o)?void 0:o}catch{return}},ko=e=>{if(e)return getExampleNumber(e,fl)?.formatNational()},Je=e=>e??Pt,et=()=>getDefaultOptions().locale?.code;var Tl=({Icon:e,callingCode:o,country:t,countryName:n,callingCodeClassName:r})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx("span",{className:"flex size-4.5 shrink-0 items-center justify-center",children:jsx(e,{"aria-hidden":true,country:t,label:n})}),o&&jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",r),children:`+${o}`})]}),wo=({className:e,disabled:o,error:t,iconComponent:n,onChange:r,onOpenChange:l,options:i,readOnly:u,translations:c,value:m})=>{let p=k.useRef(null),[g,b]=k.useState(""),[d,C]=k.useState(false),{wrapper:v,input:P,clearIcon:y,searchIcon:E}=b$2({size:"md"}),{contains:x}=useFilter({sensitivity:"base"}),N=k.useMemo(()=>i.filter(a=>a.value!==void 0&&j(a.value)).map(a=>({callingCode:a.value?getCountryCallingCode(a.value):void 0,country:a.value,key:Je(a.value),label:a.label})),[i]),h=k.useMemo(()=>N.find(a=>a.key===Je(m)),[N,m]),{collection:I,filter:A,set:L}=useListCollection({initialItems:N,itemToString:a=>a.callingCode?`${a.label} +${a.callingCode}`:a.label,itemToValue:a=>a.key,filter:(a,T,D)=>{let W=T.trim().replace(/^\+/,"");return x(a,T)||(D.country?x(D.country,T.toUpperCase()):false)||(D.callingCode?x(D.callingCode,W)||x(`+${D.callingCode}`,T):false)}});k.useEffect(()=>{L(N);},[N,L]);let M=k.useCallback(a=>{C(a),l?.(a);},[l]),w=k.useCallback(({inputValue:a})=>{let T=a??"";b(T),A(T),p.current?.scrollTo({top:0});},[A]),V=k.useCallback(a=>{M(a),a&&(b(""),A(""));},[A,M]),H=k.useCallback(({itemValue:a})=>{if(!a||a===Pt){r(void 0),M(false);return}j(a)&&(r(a),M(false));},[M,r]),s=useCombobox({collection:I,inputBehavior:"autohighlight",inputValue:g,open:d,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:h?[h.key]:[],onInputValueChange:w,onOpenChange:({open:a})=>{a||M(false);},onSelect:H});return jsx(Combobox.RootProvider,{value:s,children:jsxs(a$9,{open:d,onOpenChange:V,children:[jsx(b$3,{asChild:true,children:jsx("button",{type:"button",className:a$2("relative flex h-full w-19.5 shrink-0 items-center justify-center rounded-l after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:w-px after:content-['']",t?"bg-danger-20 after:bg-input-ring-error after:w-0.5":o||u?"after:bg-input-ring-disabled bg-neutral-200":"group-focus-within/phone:after:bg-input-ring-focus after:bg-input-ring bg-neutral-200 group-focus-within/phone:after:w-0.5",!t&&d&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||u,children:h&&jsx(Tl,{Icon:n,callingCode:h.callingCode,country:h.country,countryName:h.label,callingCodeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",u&&"text-input-text-disabled")})})}),jsx(c$5,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:v({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:c.searchCountryPlaceholder,className:P()}),!o&&g.length>0&&jsx("button",{type:"button",className:y(),onClick:()=>{s.setInputValue("","clear-trigger");},children:jsx(d$3,{className:"size-4.5"})}),jsx(q,{className:E()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:p,className:a$2("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":I.items.length===0}),children:I.items.length===0?jsx(a$a,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:I.items.map(a=>jsxs(Combobox.Item,{item:a,className:"data-highlighted:bg-primary-100 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-neutral-900 outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",children:[jsx("span",{className:"flex size-4.5 shrink-0 items-center justify-center",children:jsx(n,{"aria-hidden":true,country:a.country,label:a.label})}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:a.label}),a.callingCode&&jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:`+${a.callingCode}`}),jsx(k$1,{className:a$2("ml-auto size-4 shrink-0",a.key===Je(m)?"opacity-100":"opacity-0")})]},a.key))})})]})})]})})};var Nt=k.forwardRef(({className:e,disabled:o,error:t,onChange:n,readOnly:r,type:l,value:i,...u},c)=>{let m=et(),p=k.useMemo(()=>Ze(m),[m]),g=k.useRef(null),d$1=!o&&!r&&!!i,C=d$1||t;k.useImperativeHandle(c,()=>g.current,[]);let v=k.useCallback(()=>{let P=g.current;if(!P){n?.({target:{value:""}});return}P.value="",n?.({target:P}),P.focus();},[n]);return jsxs("div",{className:a$2("bg-input-bg relative flex h-full min-w-0 flex-1 rounded-r",o&&"bg-input-bg-disabled"),children:[jsx("input",{type:l,"data-slot":"input",className:a$2("text-input-text placeholder:text-input-placeholder h-full min-w-0 flex-1 rounded-r bg-transparent px-3 text-sm leading-[143%] focus-visible:outline-0",C&&!t&&"pr-10.5",d$1&&t&&"pr-14",t&&!d$1&&"pr-10.5",o&&"text-input-text-disabled",e),...u,disabled:o,readOnly:r,value:i,onChange:n,ref:g}),(d$1||t)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[d$1&&jsx(a$5,{ariaLabel:p.clearPhoneNumberLabel,onClick:v}),t&&jsx(d,{})]})]})});Nt.displayName="PhoneNumberInputComponent";var El=Nl,Do=k.forwardRef(({className:e,defaultCountry:o,disabled:t,error:n,helperText:r,id:l,label:i,labelProps:u,onChange:c=Mo,placeholder:m,readOnly:p,required:g,tooltip:b,value:d,...C},v)=>{let[P,y]=k.useState(false),[E,x]=k.useState(()=>Fo(d)??o),N=k.useId(),h=l??N,I=et(),A=k.useMemo(()=>Ze(I),[I]),L=k.useMemo(()=>Oo(I),[I]),M=k.useMemo(()=>ko(E)??m??Ao,[m,E]),w=c$1({error:n,disabled:t,readOnly:p}),V=a$2(w.control(),"group/phone [&_.PhoneInputCountryIconImg]:size-4.5!",!n&&!t&&!p&&P&&"after:ring-input-ring-focus after:ring-2"),H=k.useCallback(s=>{x(s);},[]);return jsx(Ye,{className:e,disabled:t,error:n,helperText:r,htmlFor:h,label:i,labelProps:u,readOnly:p,required:g,tooltip:b,children:jsx(El,{...C,className:V,ref:v,countrySelectComponent:wo,countrySelectProps:{error:n,onOpenChange:y,translations:A},defaultCountry:o,disabled:t,flagComponent:a$7,id:h,initialValueFormat:"national",inputComponent:Nt,labels:L,numberInputProps:{error:n,placeholder:M},readOnly:p,required:g,value:d,onChange:c,onCountryChange:H})})});Do.displayName="PhoneInput";var Al=({children:e,hasDescription:o=false,disabled:t=false,hasDivider:n=false,className:r,isSelected:l,onClick:i,...u})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("flex flex-row px-3 py-4 text-neutral-900 transition-colors",o?"py-3":"py-3.5",t?"cursor-not-allowed text-neutral-400":a$2("hover:bg-primary-100 focus:bg-primary-200",!!i?"cursor-pointer":"cursor-default"),l&&"bg-primary-200",r),onClick:m=>{t||i?.(m);},...u,children:e}),n&&jsx(a$1,{})]}),J=Al;var dm=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:l,endIcon:i,hasDivider:u=false,disabled:c=false,isSelected:m=false,className:p,...g})=>jsxs(J,{hasDescription:!!n,disabled:c,hasDivider:u,className:p,isSelected:m,...g,children:[l&&k__default.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(se,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:c}),i&&k__default.cloneElement(i,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{jl as a,dm as b,si as c,bi as d,vs as e,go as f,ga as g,Ea as h,dt as i,ft as j,Ce as k,xt as l,Lt as m,ul as n,Do as o};
@@ -0,0 +1 @@
1
+ import {c,d}from'./chunk-TW4CJXQY.js';import {a as a$1}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-23G2RUJ6.js';import {a}from'./chunk-OBZIYJO7.js';import {Field}from'@ark-ui/react/field';import {forwardRef,useEffect}from'react';import {jsxs,jsx}from'react/jsx-runtime';var n=0,x=t=>{let e=document.activeElement;if(!e||e.type!=="number")return;document.elementFromPoint(t.clientX,t.clientY)===e&&t.preventDefault();},v=()=>{useEffect(()=>(n===0&&document.addEventListener("wheel",x,{passive:false}),n+=1,()=>{n-=1,n===0&&document.removeEventListener("wheel",x);}),[]);};var y=forwardRef(({className:t,disabled:e,error:r,helperText:T,label:b,labelProps:s,readOnly:p,required:m,tooltip:E,...h},L)=>{v();let l=c({error:r,disabled:e,readOnly:p});return jsxs(Field.Root,{"data-error":r,disabled:e,readOnly:p,className:l.root({className:t}),children:[jsx(c$1,{...s,as:Field.Label,label:b,required:m,tooltip:s?.tooltip??E}),jsxs("div",{className:l.control(),children:[jsx(Field.Input,{ref:L,required:m,className:l.input(),...h}),r&&jsx("div",{className:a(l.trailing(),"cursor-text"),children:jsx(d,{})})]}),jsx(a$1,{as:Field.HelperText,children:T})]})});y.displayName="TextField";export{y as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-NGC5DGW6.js';import {c,d}from'./chunk-TW4CJXQY.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-23G2RUJ6.js';import {w}from'./chunk-QMPBFFFC.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {Portal}from'@ark-ui/react/portal';import {createListCollection,Select}from'@ark-ui/react/select';import {forwardRef,useMemo,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var M=["00:00","00:30","01:00","01:30","02:00","02:30","03:00","03:30","04:00","04:30","05:00","05:30","06:00","06:30","07:00","07:30","08:00","08:30","09:00","09:30","10:00","10:30","11:00","11:30","12:00","12:30","13:00","13:30","14:00","14:30","15:00","15:30","16:00","16:30","17:00","17:30","18:00","18:30","19:00","19:30","20:00","20:30","21:00","21:30","22:00","22:30","23:00","23:30"],z="00:00",A=forwardRef((s,T)=>{let{className:S,label:w$1,labelProps:d$1,required:N,tooltip:V,error:r,isItemDisabled:u,value:c$2,helperText:k,placeholder:I=z,onValueChange:p,defaultValue:m,disabled:g,readOnly:l,...L}=s,a$3=Object.getOwnPropertyNames(s),f=useMemo(()=>createListCollection({items:M,isItemDisabled:u}),[u]),O=useCallback(o=>{p?.(o.value.at(0)??null);},[p]);if(a$3.includes("defaultValue")&&a$3.includes("value"))throw new Error("Cannot set both defaultValue and value props on TimePicker. Use one or the other.");let b=c({error:r,disabled:g,readOnly:l});return jsxs(Select.Root,{ref:T,"data-error":r,disabled:g,readOnly:l,collection:f,className:b.root({className:S}),positioning:{placement:"bottom-end"},onValueChange:O,value:a$3.includes("value")?c$2?[c$2]:[]:void 0,defaultValue:m?[m]:void 0,...L,children:[jsx(c$1,{...d$1,as:Select.Label,label:w$1,required:N,tooltip:d$1?.tooltip??V}),jsxs(Select.Control,{className:a$1(b.control(),"group/control relative overflow-hidden"),children:[jsx(Select.Trigger,{className:"text-input-text data-placeholder-shown:text-input-placeholder data-disabled:text-input-text-disabled flex w-full cursor-pointer items-center pr-16 disabled:cursor-not-allowed",children:jsx(Select.ValueText,{className:"font-inter min-w-0 flex-1 py-2.5 pl-3 text-left text-sm",placeholder:I})}),jsxs("div",{className:"pointer-events-none absolute top-0 right-0 flex h-full items-center gap-1",children:[r&&jsx(d,{}),!l&&jsx(a,{as:Select.ClearTrigger,className:"pointer-events-auto",onClick:o=>o.stopPropagation()}),jsx(Select.Indicator,{className:a$1("ring-input-ring rounded-r-input ml-1 flex h-full w-10 shrink-0 items-center justify-center bg-neutral-100 text-neutral-700 ring transition-shadow","group-data-focus/control:ring-input-ring-focus group-data-focus/control:ring-2","group-data-[error=true]:ring-input-ring-error group-data-[error=true]:ring-2","group-data-disabled/control:ring-input-ring-disabled group-data-disabled/control:text-neutral-400","group-data-readonly/control:ring-input-ring-disabled group-data-readonly/control:text-neutral-400"),children:jsx(w,{className:"size-4.5"})})]})]}),jsx(a$2,{children:k}),jsx(Portal,{children:jsx(Select.Positioner,{children:jsx(Select.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 min-w-27.5 overflow-auto rounded-lg outline-none",children:f.items.map(o=>jsx(Select.Item,{item:o,className:"font-inter data-highlighted:bg-primary-100 cursor-pointer py-3 pr-2.5 pl-3 text-sm font-medium data-disabled:cursor-not-allowed data-disabled:text-neutral-400",children:jsx(Select.ItemText,{children:o})},o))})})}),jsx(Select.HiddenSelect,{})]})});A.displayName="TimePicker";export{A as a};
@@ -0,0 +1 @@
1
+ import {b}from'./chunk-S5L3GKMK.js';import {a as a$1}from'./chunk-NGC5DGW6.js';import {c,d}from'./chunk-TW4CJXQY.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-23G2RUJ6.js';import {v}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-OBZIYJO7.js';import {DatePicker}from'@ark-ui/react/date-picker';import {Portal}from'@ark-ui/react/portal';import {forwardRef}from'react';import {jsxs,jsx}from'react/jsx-runtime';var V=forwardRef(({className:d$1,disabled:o,error:a$3,helperText:P,label:f,labelProps:s,readOnly:t,required:h,tooltip:b$1,...C},x)=>{let n=c({error:a$3,disabled:o,readOnly:t});return jsxs(DatePicker.Root,{ref:x,...C,disabled:o,readOnly:t,positioning:{placement:"bottom-end"},"data-error":a$3||void 0,className:n.root({className:d$1}),children:[jsx(c$1,{...s,as:DatePicker.Label,label:f,required:h,tooltip:s?.tooltip??b$1}),jsxs(DatePicker.Control,{className:a(n.control(),"items-center justify-between gap-2 overflow-hidden"),children:[jsx(DatePicker.Input,{className:a(n.input(),"peer cursor-inherit py-2.5 pl-2"),tabIndex:t?-1:void 0}),!t&&!o&&jsx(a$1,{as:DatePicker.ClearTrigger}),a$3&&jsx(d,{}),jsx(DatePicker.Trigger,{className:a("ring-input-ring rounded-r-input flex h-(--height-input) w-(--height-input) shrink-0 cursor-pointer items-center justify-center bg-neutral-100 text-neutral-700 ring transition-shadow focus:outline-none","peer-focus:ring-input-ring-focus focus:ring-input-ring-focus peer-focus:ring-2 focus:ring-2","group-data-[error=true]:ring-input-ring-error group-data-[error=true]:ring-2","group-data-readonly:ring-input-ring-disabled peer-read-only:text-neutral-400","disabled:ring-input-ring-disabled group-data-disabled:cursor-not-allowed"),tabIndex:t?-1:void 0,children:jsx(v,{className:"size-4.5"})})]}),jsx(a$2,{children:P}),jsx(Portal,{children:jsx(DatePicker.Positioner,{children:jsx(DatePicker.Content,{className:"elevation-9 z-layer rounded-xl bg-neutral-50 p-3",children:jsx(b,{})})})})]})});V.displayName="DatePicker";export{V as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-RA7JT6A7.js';import {g}from'./chunk-QMPBFFFC.js';import {d}from'./chunk-P7NW2XNB.js';import {useCallback}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var O=["sm","md","lg"],S=["primary","secondary","ghost"],R=["primary","neutral"],A=tv({extend:d,slots:{root:"group data-[state=open]:ring-primary-800 gap-2 outline-none data-[state=open]:ring-3 data-[state=open]:ring-inset"},variants:{disabled:{true:{},false:{}}}}),h=({label:u,StartIcon:o,options:p,onSelect:s,variant:m="primary",size:d="md",disabled:a$1=false,className:v,tone:g$1="primary",...b})=>{let y=useCallback(t=>{s?.(t);},[s]),{root:f,icon:r}=A({variant:m,size:d,tone:g$1,disabled:a$1});return jsxs(a.Root,{onSelect:y,...b,children:[jsxs(a.Trigger,{disabled:a$1,className:f({className:v}),children:[o&&jsx(o,{className:r()}),u,jsx(g,{className:r({className:"transition-transform duration-150 group-data-[state=open]:rotate-180"})})]}),jsx(a.Content,{children:p.map(t=>jsx(a.Option,{value:t.value,label:t.label,description:t.description,startIcon:t.startIcon,endIcon:t.endIcon,hasDivider:t.hasDivider,disabled:t.disabled,onSelect:t.onClick},t.value))})]})};export{O as a,S as b,R as c,h as d};
1
+ import {a}from'./chunk-DKESWED4.js';import {g}from'./chunk-QMPBFFFC.js';import {d}from'./chunk-P7NW2XNB.js';import {useCallback}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var O=["sm","md","lg"],S=["primary","secondary","ghost"],R=["primary","neutral"],A=tv({extend:d,slots:{root:"group data-[state=open]:ring-primary-800 gap-2 outline-none data-[state=open]:ring-3 data-[state=open]:ring-inset"},variants:{disabled:{true:{},false:{}}}}),h=({label:u,StartIcon:o,options:p,onSelect:s,variant:m="primary",size:d="md",disabled:a$1=false,className:v,tone:g$1="primary",...b})=>{let y=useCallback(t=>{s?.(t);},[s]),{root:f,icon:r}=A({variant:m,size:d,tone:g$1,disabled:a$1});return jsxs(a.Root,{onSelect:y,...b,children:[jsxs(a.Trigger,{disabled:a$1,className:f({className:v}),children:[o&&jsx(o,{className:r()}),u,jsx(g,{className:r({className:"transition-transform duration-150 group-data-[state=open]:rotate-180"})})]}),jsx(a.Content,{children:p.map(t=>jsx(a.Option,{value:t.value,label:t.label,description:t.description,startIcon:t.startIcon,endIcon:t.endIcon,hasDivider:t.hasDivider,disabled:t.disabled,onSelect:t.onClick},t.value))})]})};export{O as a,S as b,R as c,h as d};
@@ -1 +1 @@
1
- import {b}from'./chunk-ZZSDE7IY.js';import {a as a$1}from'./chunk-UIZFLYFP.js';import {b as b$2}from'./chunk-6R4QD7UB.js';import {b as b$1}from'./chunk-ZCMXCZC2.js';import {a as a$2}from'./chunk-JW7HS6NX.js';import {k,l}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-P7NW2XNB.js';import {a}from'./chunk-OBZIYJO7.js';import {Checkbox}from'@ark-ui/react/checkbox';import {RadioGroupRoot,RadioGroupItem,RadioGroupItemText,RadioGroupItemControl,RadioGroupItemHiddenInput}from'@ark-ui/react/radio-group';import {createContext,useContext,isValidElement,cloneElement,useCallback}from'react';import {tv}from'tailwind-variants';import {jsx,jsxs}from'react/jsx-runtime';var m=createContext(false),vt=()=>useContext(m),x=createContext(void 0),c=tv({slots:{root:["group/list-item flex flex-row px-3 py-4 text-neutral-900 transition-colors","not-data-disabled:hover:bg-primary-100 not-data-disabled:focus:bg-primary-200","not-data-disabled:data-focus-visible:bg-primary-200","data-disabled:cursor-not-allowed data-disabled:text-neutral-600","[&:has([data-part=list-item-headline]:only-child)]:items-center"],leading:"mr-2 flex shrink-0 items-start gap-2",content:"flex w-full min-w-0 flex-col gap-1",headline:["font-inter text-sm leading-[143%] break-all","line-clamp-1"],description:["text-xs leading-[133%] text-neutral-700","line-clamp-2 group-data-disabled/list-item:text-neutral-600"],characteristics:"flex min-w-0 flex-col gap-1",characteristic:["text-xs leading-[133%] text-neutral-700","line-clamp-1 group-data-disabled/list-item:text-neutral-600"],trailing:"ml-4 flex shrink-0 items-center gap-2 self-center",icon:"size-4.5 shrink-0 group-data-disabled/list-item:text-neutral-600",control:"self-center"},variants:{selected:{true:{root:"bg-primary-200"},false:{}},interactive:{true:{root:"not-data-disabled:cursor-pointer"},false:{root:"not-data-disabled:cursor-default"}},status:{default:{},success:{root:["bg-success-20 text-success-800","not-data-disabled:hover:bg-success-50","not-data-disabled:focus:bg-success-100 not-data-disabled:data-focus-visible:bg-success-100"],description:"text-success-800",characteristic:"text-success-800"},warning:{root:["bg-warning-20 text-warning-800","not-data-disabled:hover:bg-warning-50","not-data-disabled:focus:bg-warning-100 not-data-disabled:data-focus-visible:bg-warning-100"],description:"text-warning-800",characteristic:"text-warning-800"},danger:{root:["bg-danger-20 text-danger-800","not-data-disabled:hover:bg-danger-50","not-data-disabled:focus:bg-danger-100 not-data-disabled:data-focus-visible:bg-danger-100"],description:"text-danger-800",characteristic:"text-danger-800"}}},compoundVariants:[{status:"success",selected:true,class:{root:"bg-success-100"}},{status:"warning",selected:true,class:{root:"bg-warning-100"}},{status:"danger",selected:true,class:{root:"bg-danger-100"}}],defaultVariants:{selected:false,interactive:false,status:"default"}}),V=({disabled:t=false,selected:o=false,status:s,className:a,onClick:i,children:p,...d})=>{let l=c({selected:o,interactive:!!i,status:s});return jsx("div",{className:l.root({className:a}),"data-disabled":t||void 0,onClick:C=>{t||i?.(C);},...d,children:jsx(m.Provider,{value:t,children:jsx(x.Provider,{value:s,children:p})})})},O=({className:t,...o})=>jsx("div",{className:c().leading({className:t}),...o}),M=({className:t,...o})=>jsx("div",{className:c().content({className:t}),...o}),z=({icon:t,className:o,children:s})=>{let a$1=c().icon({className:o});return t?jsx(t,{className:a$1}):isValidElement(s)?cloneElement(s,{className:a(a$1,s.props.className)}):null},A=({className:t,...o})=>jsx("div",{className:c().characteristics({className:t}),...o}),q=({className:t,...o})=>jsx("div",{className:c().trailing({className:t}),...o}),J=({disabled:t,className:o,...s})=>{let a$1=useContext(m);return jsx(e,{size:"sm",variant:"ghost",tone:"primary",disabled:t??a$1,className:a("self-center",o),...s})},K=({disabled:t,className:o,...s})=>{let a$1=useContext(m);return jsx(b,{disabled:t??a$1,className:a("w-35 self-center",o),...s})},Q=t=>jsx(a$1,{...t,type:"fill",size:"md"}),U=t=>jsx(a$2,{...t,size:"md"}),W=({className:t,...o})=>jsx("p",{"data-part":"list-item-headline",className:c().headline({className:t}),...o}),X=({className:t,...o})=>{let s=useContext(x);return jsx("p",{"data-part":"list-item-description",className:c({status:s}).description({className:t}),...o})},Y=({className:t,...o})=>{let s=useContext(x);return jsx("p",{"data-part":"list-item-characteristic",className:c({status:s}).characteristic({className:t}),...o})},Z=({disabled:t=false,selected:o=false,status:s,className:a$1,onCheckedChange:i,children:p,...d})=>{let l$1=c({selected:o,interactive:true,status:s}),C=b$1(),S=useCallback(B=>{i?.(B.checked);},[i]);return jsxs(Checkbox.Root,{className:a(l$1.root(),"group",a$1),disabled:t,onCheckedChange:S,...d,children:[jsx(Checkbox.Label,{className:"contents",children:jsx(m.Provider,{value:t,children:jsx(x.Provider,{value:s,children:p})})}),jsxs(Checkbox.Control,{className:C.control({className:a(l$1.control(),"ml-4.5 shrink-0")}),children:[jsx(Checkbox.Indicator,{children:jsx(k,{className:C.icon()})}),jsx(Checkbox.Indicator,{indeterminate:true,children:jsx(l,{className:C.icon()})})]}),jsx(Checkbox.HiddenInput,{})]})},_=({className:t,onValueChange:o,...s})=>{let a$1=useCallback(i=>{o?.(i.value);},[o]);return jsx(RadioGroupRoot,{className:a("flex flex-col",t),onValueChange:a$1,...s})},$=({disabled:t=false,selected:o=false,status:s,className:a$1,children:i,...p})=>{let d=c({selected:o,interactive:true,status:s}),l=b$2();return jsxs(RadioGroupItem,{className:a(d.root(),"group/item",a$1),disabled:t,...p,children:[jsx(RadioGroupItemText,{className:"contents",children:jsx(m.Provider,{value:t,children:jsx(x.Provider,{value:s,children:i})})}),jsx(RadioGroupItemControl,{className:l.control({className:a(d.control(),"ml-4 shrink-0")})}),jsx(RadioGroupItemHiddenInput,{})]})},j=({disabled:t,className:o,...s})=>{let a$1=b$2(),i=useContext(m);return jsxs(RadioGroupItem,{disabled:t??i,className:a$1.item({className:a("shrink-0",o)}),...s,children:[jsx(RadioGroupItemControl,{className:a$1.control()}),jsx(RadioGroupItemHiddenInput,{})]})},tt=({className:t,disabled:o,onCheckedChange:s,...a$1})=>{let i=b$1(),p=useContext(m),d=useCallback(l=>{s?.(l.checked);},[s]);return jsxs(Checkbox.Root,{className:i.root({className:a("shrink-0",t)}),disabled:o??p,onCheckedChange:d,...a$1,children:[jsxs(Checkbox.Control,{className:i.control(),children:[jsx(Checkbox.Indicator,{children:jsx(k,{className:i.icon()})}),jsx(Checkbox.Indicator,{indeterminate:true,children:jsx(l,{className:i.icon()})})]}),jsx(Checkbox.HiddenInput,{})]})},kt={Root:V,Leading:O,Icon:z,Content:M,Headline:W,Description:X,Characteristics:A,Characteristic:Y,Trailing:q,Button:J,NumberField:K,BadgeStatus:Q,BadgeExpandable:U,Checkbox:Z,RadioGroup:_,RadioItem:$,RadioControl:j,CheckboxControl:tt};export{vt as a,kt as b};
1
+ import {b}from'./chunk-LJNEBCBI.js';import {a as a$1}from'./chunk-UIZFLYFP.js';import {b as b$2}from'./chunk-XJ2YYVZX.js';import {b as b$1}from'./chunk-ZCMXCZC2.js';import {a as a$2}from'./chunk-JW7HS6NX.js';import {k,l}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-P7NW2XNB.js';import {a}from'./chunk-OBZIYJO7.js';import {Checkbox}from'@ark-ui/react/checkbox';import {RadioGroupRoot,RadioGroupItem,RadioGroupItemText,RadioGroupItemControl,RadioGroupItemHiddenInput}from'@ark-ui/react/radio-group';import {createContext,useContext,isValidElement,cloneElement,useCallback}from'react';import {tv}from'tailwind-variants';import {jsx,jsxs}from'react/jsx-runtime';var m=createContext(false),vt=()=>useContext(m),x=createContext(void 0),c=tv({slots:{root:["group/list-item flex flex-row px-3 py-4 text-neutral-900 transition-colors","not-data-disabled:hover:bg-primary-100 not-data-disabled:focus:bg-primary-200","not-data-disabled:data-focus-visible:bg-primary-200","data-disabled:cursor-not-allowed data-disabled:text-neutral-600","[&:has([data-part=list-item-headline]:only-child)]:items-center"],leading:"mr-2 flex shrink-0 items-start gap-2",content:"flex w-full min-w-0 flex-col gap-1",headline:["font-inter text-sm leading-[143%] break-all","line-clamp-1"],description:["text-xs leading-[133%] text-neutral-700","line-clamp-2 group-data-disabled/list-item:text-neutral-600"],characteristics:"flex min-w-0 flex-col gap-1",characteristic:["text-xs leading-[133%] text-neutral-700","line-clamp-1 group-data-disabled/list-item:text-neutral-600"],trailing:"ml-4 flex shrink-0 items-center gap-2 self-center",icon:"size-4.5 shrink-0 group-data-disabled/list-item:text-neutral-600",control:"self-center"},variants:{selected:{true:{root:"bg-primary-200"},false:{}},interactive:{true:{root:"not-data-disabled:cursor-pointer"},false:{root:"not-data-disabled:cursor-default"}},status:{default:{},success:{root:["bg-success-20 text-success-800","not-data-disabled:hover:bg-success-50","not-data-disabled:focus:bg-success-100 not-data-disabled:data-focus-visible:bg-success-100"],description:"text-success-800",characteristic:"text-success-800"},warning:{root:["bg-warning-20 text-warning-800","not-data-disabled:hover:bg-warning-50","not-data-disabled:focus:bg-warning-100 not-data-disabled:data-focus-visible:bg-warning-100"],description:"text-warning-800",characteristic:"text-warning-800"},danger:{root:["bg-danger-20 text-danger-800","not-data-disabled:hover:bg-danger-50","not-data-disabled:focus:bg-danger-100 not-data-disabled:data-focus-visible:bg-danger-100"],description:"text-danger-800",characteristic:"text-danger-800"}}},compoundVariants:[{status:"success",selected:true,class:{root:"bg-success-100"}},{status:"warning",selected:true,class:{root:"bg-warning-100"}},{status:"danger",selected:true,class:{root:"bg-danger-100"}}],defaultVariants:{selected:false,interactive:false,status:"default"}}),V=({disabled:t=false,selected:o=false,status:s,className:a,onClick:i,children:p,...d})=>{let l=c({selected:o,interactive:!!i,status:s});return jsx("div",{className:l.root({className:a}),"data-disabled":t||void 0,onClick:C=>{t||i?.(C);},...d,children:jsx(m.Provider,{value:t,children:jsx(x.Provider,{value:s,children:p})})})},O=({className:t,...o})=>jsx("div",{className:c().leading({className:t}),...o}),M=({className:t,...o})=>jsx("div",{className:c().content({className:t}),...o}),z=({icon:t,className:o,children:s})=>{let a$1=c().icon({className:o});return t?jsx(t,{className:a$1}):isValidElement(s)?cloneElement(s,{className:a(a$1,s.props.className)}):null},A=({className:t,...o})=>jsx("div",{className:c().characteristics({className:t}),...o}),q=({className:t,...o})=>jsx("div",{className:c().trailing({className:t}),...o}),J=({disabled:t,className:o,...s})=>{let a$1=useContext(m);return jsx(e,{size:"sm",variant:"ghost",tone:"primary",disabled:t??a$1,className:a("self-center",o),...s})},K=({disabled:t,className:o,...s})=>{let a$1=useContext(m);return jsx(b,{disabled:t??a$1,className:a("w-35 self-center",o),...s})},Q=t=>jsx(a$1,{...t,type:"fill",size:"md"}),U=t=>jsx(a$2,{...t,size:"md"}),W=({className:t,...o})=>jsx("p",{"data-part":"list-item-headline",className:c().headline({className:t}),...o}),X=({className:t,...o})=>{let s=useContext(x);return jsx("p",{"data-part":"list-item-description",className:c({status:s}).description({className:t}),...o})},Y=({className:t,...o})=>{let s=useContext(x);return jsx("p",{"data-part":"list-item-characteristic",className:c({status:s}).characteristic({className:t}),...o})},Z=({disabled:t=false,selected:o=false,status:s,className:a$1,onCheckedChange:i,children:p,...d})=>{let l$1=c({selected:o,interactive:true,status:s}),C=b$1(),S=useCallback(B=>{i?.(B.checked);},[i]);return jsxs(Checkbox.Root,{className:a(l$1.root(),"group",a$1),disabled:t,onCheckedChange:S,...d,children:[jsx(Checkbox.Label,{className:"contents",children:jsx(m.Provider,{value:t,children:jsx(x.Provider,{value:s,children:p})})}),jsxs(Checkbox.Control,{className:C.control({className:a(l$1.control(),"ml-4.5 shrink-0")}),children:[jsx(Checkbox.Indicator,{children:jsx(k,{className:C.icon()})}),jsx(Checkbox.Indicator,{indeterminate:true,children:jsx(l,{className:C.icon()})})]}),jsx(Checkbox.HiddenInput,{})]})},_=({className:t,onValueChange:o,...s})=>{let a$1=useCallback(i=>{o?.(i.value);},[o]);return jsx(RadioGroupRoot,{className:a("flex flex-col",t),onValueChange:a$1,...s})},$=({disabled:t=false,selected:o=false,status:s,className:a$1,children:i,...p})=>{let d=c({selected:o,interactive:true,status:s}),l=b$2();return jsxs(RadioGroupItem,{className:a(d.root(),"group/item",a$1),disabled:t,...p,children:[jsx(RadioGroupItemText,{className:"contents",children:jsx(m.Provider,{value:t,children:jsx(x.Provider,{value:s,children:i})})}),jsx(RadioGroupItemControl,{className:l.control({className:a(d.control(),"ml-4 shrink-0")})}),jsx(RadioGroupItemHiddenInput,{})]})},j=({disabled:t,className:o,...s})=>{let a$1=b$2(),i=useContext(m);return jsxs(RadioGroupItem,{disabled:t??i,className:a$1.item({className:a("shrink-0",o)}),...s,children:[jsx(RadioGroupItemControl,{className:a$1.control()}),jsx(RadioGroupItemHiddenInput,{})]})},tt=({className:t,disabled:o,onCheckedChange:s,...a$1})=>{let i=b$1(),p=useContext(m),d=useCallback(l=>{s?.(l.checked);},[s]);return jsxs(Checkbox.Root,{className:i.root({className:a("shrink-0",t)}),disabled:o??p,onCheckedChange:d,...a$1,children:[jsxs(Checkbox.Control,{className:i.control(),children:[jsx(Checkbox.Indicator,{children:jsx(k,{className:i.icon()})}),jsx(Checkbox.Indicator,{indeterminate:true,children:jsx(l,{className:i.icon()})})]}),jsx(Checkbox.HiddenInput,{})]})},kt={Root:V,Leading:O,Icon:z,Content:M,Headline:W,Description:X,Characteristics:A,Characteristic:Y,Trailing:q,Button:J,NumberField:K,BadgeStatus:Q,BadgeExpandable:U,Checkbox:Z,RadioGroup:_,RadioItem:$,RadioControl:j,CheckboxControl:tt};export{vt as a,kt as b};
@@ -1 +1 @@
1
- import {a}from'./chunk-T5NU5E4O.js';import {RadioGroupRoot,RadioGroupLabel,RadioGroupItem,RadioGroupItemControl,RadioGroupItemText,RadioGroupItemHiddenInput}from'@ark-ui/react/radio-group';import {forwardRef,useCallback}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var E=["horizontal","vertical"];var N=tv({slots:{item:["group/item flex w-fit items-center gap-1.5","data-disabled:cursor-not-allowed"],control:["relative size-4.5 rounded-full border ring-inset","before:absolute before:h-full before:w-full before:rounded-full before:border-3 before:border-transparent","border-neutral-700 bg-neutral-50","data-[state=unchecked]:group-hover/item:[&:not([data-disabled])]:border-primary-700","data-[state=unchecked]:group-hover/item:[&:not([data-disabled])]:bg-primary-200","data-[state=checked]:border-primary-600","data-[state=checked]:bg-primary-600","data-[state=checked]:before:border-neutral-50","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:border-primary-700","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:bg-primary-700","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:before:ring-transparent-primary-400-40","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:before:ring-3","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:after:absolute","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:after:h-full","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:after:w-full","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:after:rounded-full","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:after:border-3","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:after:border-transparent-primary-400-40","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:after:bg-transparent","focus:border-2","focus:border-primary-800","data-[state=checked]:focus:before:bg-primary-800","data-disabled:border-neutral-300","data-disabled:bg-neutral-100","data-disabled:data-[state=checked]:border-neutral-300","data-disabled:data-[state=checked]:bg-neutral-100","data-disabled:data-[state=checked]:before:bg-neutral-300"],text:["font-inter text-sm leading-[143%]","text-neutral-900","group-data-[error=true]:text-error-500","data-disabled:text-neutral-400"]}}),C=tv({base:"group",variants:{labelOrientation:{horizontal:"flex gap-4",vertical:"flex flex-col gap-3"}}}),L=tv({base:"flex",variants:{orientation:{horizontal:"flex-wrap gap-8",vertical:"flex-col gap-4"}}}),w=forwardRef(({className:d,innerClassName:a$1,orientation:t="horizontal",labelOrientation:i="vertical",onValueChange:r,error:l,label:o,required:s,tooltip:c,children:b,...f},h)=>{let g=useCallback(R=>{r?.(R.value);},[r]);return jsxs(RadioGroupRoot,{"data-error":l,className:C({className:d,labelOrientation:i}),orientation:t,ref:h,onValueChange:g,...f,children:[o&&jsx(a,{as:RadioGroupLabel,label:o,required:s,tooltip:c,className:"mb-0"}),jsx("div",{className:L({orientation:t,className:a$1}),children:b})]})});w.displayName="RadioGroup";var z=forwardRef(({value:d,label:a,className:t,...i},r)=>{let{item:l,control:o,text:s}=N();return jsxs(RadioGroupItem,{value:d,className:l({className:t}),ref:r,...i,children:[jsx(RadioGroupItemControl,{className:o()}),a&&jsx(RadioGroupItemText,{className:s(),children:a}),jsx(RadioGroupItemHiddenInput,{})]})});z.displayName="RadioGroupItem";export{E as a,N as b,w as c,z as d};
1
+ import {c}from'./chunk-23G2RUJ6.js';import {RadioGroupRoot,RadioGroupLabel,RadioGroupItem,RadioGroupItemControl,RadioGroupItemText,RadioGroupItemHiddenInput}from'@ark-ui/react/radio-group';import {forwardRef,useCallback}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var M=["horizontal","vertical"];var C=tv({slots:{item:["group/item flex w-fit items-center gap-1.5","data-disabled:cursor-not-allowed"],control:["relative size-4.5 rounded-full border ring-inset","before:absolute before:h-full before:w-full before:rounded-full before:border-3 before:border-transparent","border-neutral-700 bg-neutral-50","data-[state=unchecked]:group-hover/item:[&:not([data-disabled])]:border-primary-700","data-[state=unchecked]:group-hover/item:[&:not([data-disabled])]:bg-primary-200","data-[state=checked]:border-primary-600","data-[state=checked]:bg-primary-600","data-[state=checked]:before:border-neutral-50","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:border-primary-700","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:bg-primary-700","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:before:ring-transparent-primary-400-40","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:before:ring-3","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:after:absolute","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:after:h-full","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:after:w-full","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:after:rounded-full","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:after:border-3","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:after:border-transparent-primary-400-40","data-[state=checked]:group-hover/item:[&:not([data-disabled])]:after:bg-transparent","focus:border-2","focus:border-primary-800","data-[state=checked]:focus:before:bg-primary-800","data-disabled:border-neutral-300","data-disabled:bg-neutral-100","data-disabled:data-[state=checked]:border-neutral-300","data-disabled:data-[state=checked]:bg-neutral-100","data-disabled:data-[state=checked]:before:bg-neutral-300"],text:["font-inter text-sm leading-[143%]","text-neutral-900","group-data-[error=true]:text-error-500","data-disabled:text-neutral-400"]}}),L=tv({base:"group",variants:{labelOrientation:{horizontal:"flex gap-4",vertical:"flex flex-col gap-3"}}}),O=tv({base:"flex",variants:{orientation:{horizontal:"flex-wrap gap-8",vertical:"flex-col gap-4"}}}),w=forwardRef(({className:i,innerClassName:a,orientation:t="horizontal",labelOrientation:l="vertical",onValueChange:r,error:s,label:o,labelProps:d,required:c$1,tooltip:m,children:f,...h},g)=>{let R=useCallback(v=>{r?.(v.value);},[r]);return jsxs(RadioGroupRoot,{"data-error":s,className:L({className:i,labelOrientation:l}),orientation:t,ref:g,onValueChange:R,...h,children:[o&&jsx(c,{...d,as:RadioGroupLabel,label:o,required:c$1,tooltip:d?.tooltip??m,className:"mb-0"}),jsx("div",{className:O({orientation:t,className:a}),children:f})]})});w.displayName="RadioGroup";var z=forwardRef(({value:i,label:a,className:t,...l},r)=>{let{item:s,control:o,text:d}=C();return jsxs(RadioGroupItem,{value:i,className:s({className:t}),ref:r,...l,children:[jsx(RadioGroupItemControl,{className:o()}),a&&jsx(RadioGroupItemText,{className:d(),children:a}),jsx(RadioGroupItemHiddenInput,{})]})});z.displayName="RadioGroupItem";export{M as a,C as b,w as c,z as d};