sodtrack-web-ui 0.109.2 → 0.109.4

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 (68) hide show
  1. package/dist/chunk-46D7K2YU.js +1 -0
  2. package/dist/chunk-AY7M5GEB.js +1 -0
  3. package/dist/chunk-EMRXOENR.js +1 -0
  4. package/dist/chunk-ES7L2PIL.js +1 -0
  5. package/dist/chunk-JD43K4LQ.js +1 -0
  6. package/dist/chunk-JOGHDTZB.js +1 -0
  7. package/dist/chunk-LV5JZ2AA.js +1 -0
  8. package/dist/chunk-NFHSJ4O6.js +1 -0
  9. package/dist/chunk-RSYSUM3Q.js +1 -0
  10. package/dist/chunk-SD7BX4UU.js +1 -0
  11. package/dist/chunk-SRCJQWFE.js +1 -0
  12. package/dist/chunk-TECBAVUS.js +1 -0
  13. package/dist/{chunk-N5NMVAVZ.js → chunk-UB5XJQF2.js} +1 -1
  14. package/dist/chunk-VIMWKUML.js +1 -0
  15. package/dist/chunk-YCAUNU3X.js +1 -0
  16. package/dist/chunk-YWWEUQOI.js +1 -0
  17. package/dist/chunk-ZJYTJYHK.js +1 -0
  18. package/dist/components/autocomplete-multiple.js +1 -1
  19. package/dist/components/autocomplete-skeleton.d.ts +11 -0
  20. package/dist/components/autocomplete-skeleton.js +1 -1
  21. package/dist/components/autocomplete.d.ts +6 -1
  22. package/dist/components/autocomplete.js +1 -1
  23. package/dist/components/button-active.js +1 -1
  24. package/dist/components/button-menu.js +1 -1
  25. package/dist/components/chip.js +1 -1
  26. package/dist/components/choice-chips.d.ts +56 -0
  27. package/dist/components/choice-chips.js +1 -0
  28. package/dist/components/data-table.d.ts +1 -1
  29. package/dist/components/data-table.js +1 -1
  30. package/dist/components/date-picker.js +1 -1
  31. package/dist/components/empty-state.d.ts +7 -4
  32. package/dist/components/empty-state.js +1 -1
  33. package/dist/components/index.d.ts +5 -3
  34. package/dist/components/index.js +1 -1
  35. package/dist/components/list-item-arrow.js +1 -1
  36. package/dist/components/list-item-button.js +1 -1
  37. package/dist/components/list-item-checkbox-left.js +1 -1
  38. package/dist/components/list-item-checkbox.js +1 -1
  39. package/dist/components/list-item_old.js +1 -1
  40. package/dist/components/select-skeleton.d.ts +4 -0
  41. package/dist/components/select-skeleton.js +1 -1
  42. package/dist/components/select.d.ts +6 -1
  43. package/dist/components/select.js +1 -1
  44. package/dist/components/table.d.ts +1 -1
  45. package/dist/components/text-field.js +1 -1
  46. package/dist/components/textarea.js +1 -1
  47. package/dist/components/time-picker.js +1 -1
  48. package/dist/components/tracker-item.js +1 -1
  49. package/dist/{data-table-zYeC87fw.d.ts → data-table-Df2Rj71Q.d.ts} +7 -0
  50. package/dist/identification-number.js +1 -1
  51. package/dist/input-field-styles-ZaYx46-q.d.ts +4 -0
  52. package/dist/styles/index.css +1 -1
  53. package/dist/styles/variables.css +1 -0
  54. package/package.json +1 -1
  55. package/dist/chunk-333FFK3X.js +0 -1
  56. package/dist/chunk-3AIWAHS6.js +0 -1
  57. package/dist/chunk-7ZTCQMKE.js +0 -1
  58. package/dist/chunk-AWJ56IVY.js +0 -1
  59. package/dist/chunk-FOFHDAZV.js +0 -1
  60. package/dist/chunk-GVAKG6I7.js +0 -1
  61. package/dist/chunk-LUX36G77.js +0 -1
  62. package/dist/chunk-NEIHTDFN.js +0 -1
  63. package/dist/chunk-OUSCZ3CY.js +0 -1
  64. package/dist/chunk-Q62IN2T6.js +0 -1
  65. package/dist/chunk-S746KYN2.js +0 -1
  66. package/dist/chunk-SAEVYIWG.js +0 -1
  67. package/dist/chunk-VJUB2NGE.js +0 -1
  68. package/dist/chunk-YJI7P33E.js +0 -1
@@ -0,0 +1 @@
1
+ import {c,d}from'./chunk-AY7M5GEB.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {a}from'./chunk-VOPVBJKL.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {Field}from'@ark-ui/react/field';import {forwardRef}from'react';import {jsxs,jsx}from'react/jsx-runtime';var g=forwardRef(({className:T,disabled:l,error:r,helperText:c$1,label:f,placeholder:b,readOnly:i,required:p,tooltip:u,...F},v)=>{let t=c({error:r,disabled:l,readOnly:i,multiline:true});return jsxs(Field.Root,{"data-error":r,disabled:l,readOnly:i,className:t.root({className:T}),children:[jsx(a,{as:Field.Label,label:f,required:p,tooltip:u}),jsxs("div",{className:t.control(),children:[jsx(Field.Textarea,{ref:v,required:p,placeholder:b,"aria-invalid":r,className:a$1(t.input(),"no-scrollbar h-20"),...F}),r&&jsx("div",{className:a$1(t.trailing(),"cursor-text"),children:jsx(d,{})})]}),jsx(a$2,{as:Field.HelperText,children:c$1})]})});g.displayName="Textarea";export{g as a};
@@ -0,0 +1 @@
1
+ import {q}from'./chunk-Z6FU5QVL.js';import {tv}from'tailwind-variants';import {jsx}from'react/jsx-runtime';var a=["md","lg"],o="lg",e=tv({slots:{root:"group flex flex-col",control:"rounded-input bg-input-bg after:ring-input-ring relative flex w-full transition-shadow after:pointer-events-none after:absolute after:inset-0 after:z-10 after:rounded-[inherit] after:ring-1 after:content-[''] after:ring-inset",input:"font-inter text-input-text placeholder:text-input-placeholder h-full min-w-0 flex-1 bg-transparent px-3 text-sm leading-[143%] outline-0",trailing:"absolute inset-y-0 right-3 z-20 flex items-center gap-1",errorIcon:"text-input-text-error pointer-events-none size-4.5 shrink-0"},variants:{error:{true:{control:"after:ring-input-ring-error after:ring-2",input:"pr-10.5"},false:{control:"focus-within:after:ring-input-ring-focus focus-within:after:ring-2"}},disabled:{true:{control:"bg-input-bg-disabled",input:"text-input-text-disabled placeholder:text-neutral-400"}},readOnly:{true:{control:"bg-input-bg-disabled pointer-events-none"}},size:{md:{control:"h-(--height-input-md)"},lg:{control:"h-(--height-input)"}},multiline:{true:{control:"h-auto min-h-(--height-input)",input:"resize-none py-3"}}},compoundVariants:[{error:false,disabled:true,class:{control:"after:ring-input-ring-disabled"}},{error:false,readOnly:true,class:{control:"after:ring-input-ring-disabled"}}],defaultVariants:{error:false,size:o}});var f=({className:r})=>{let{errorIcon:n}=e();return jsx(q,{className:n({className:r})})};export{a,o as b,e as c,f as d};
@@ -0,0 +1 @@
1
+ import {b}from'./chunk-SD7BX4UU.js';import {a}from'./chunk-KTD2GEB6.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 {personValidators,entityValidators,stdnum}from'stdnum';var g=/^\d{6,10}$/,s=t=>t.replace(/[\s.]/g,""),N=t=>t.replace(/\B(?=(\d{3})+(?!\d))/g,"."),u={key:"cedula",label:"C\xE9dula",validate(t){return g.test(s(t))},compact(t){return s(t)},format(t){return N(s(t))}};var y="ABCDEFGHJKLMNPQRSTUVWXY",R=[31,28,31,30,31,30,31,31,30,31,30,31],E=/^\d{13}[A-Z]$/,l=t=>t.replace(/[\s-]/g,"").toUpperCase(),O=t=>{let r=Number.parseInt(t.substring(3,5),10),e=Number.parseInt(t.substring(5,7),10),n=Number.parseInt(t.substring(7,9),10);if(e<1||e>12)return false;let i=e===2&&n%4===0?29:R[e-1];return r>=1&&r<=i},S=t=>{let r=t.slice(0,13),e=t.slice(13),n=Number.parseInt(r,10);return y[n%23]===e},T=t=>t.length<=3?t:t.length<=9?`${t.slice(0,3)}-${t.slice(3)}`:`${t.slice(0,3)}-${t.slice(3,9)}-${t.slice(9)}`,c={key:"cedula",label:"C\xE9dula",validate(t){let r=l(t);return !E.test(r)||!O(r)?false:S(r)},compact(t){return l(t)},format(t){return T(l(t))}};var v=/^J\d{13}$/,d=t=>t.replace(/[\s-]/g,"").toUpperCase(),m={key:"ruc",label:"RUC",validate(t){return v.test(d(t))},compact(t){return d(t)}};var F="Enter identification number",b={CO:[u],NI:[c,m]};Array.from(new Set([...Object.keys(personValidators),...Object.keys(entityValidators),...Object.keys(b)])).sort((t,r)=>t.localeCompare(r));var f=new Map,C=t=>t.trim().toUpperCase(),A=t=>typeof t=="object"&&t!==null&&"compact"in t&&typeof t.compact=="function"&&"format"in t&&typeof t.format=="function"&&"validate"in t&&typeof t.validate=="function",U=(t,r)=>r.abbreviation?.trim().toUpperCase()||t.toUpperCase(),_=(t,r)=>({key:t,label:U(t,r),validate:e=>r.validate(e).isValid,compact:e=>r.compact(e),format:e=>r.format(e)}),D=t=>{let r=stdnum[t];if(!r)return [];let e=new Set(personValidators[t]??[]),n=new Set(entityValidators[t]??[]);return Object.entries(r).reduce((i,[o,a])=>(!A(a)||!(e.has(a)||n.has(a))||i.push(_(o,a)),i),[])},I=t=>{let r=C(t),e=f.get(r);if(e)return e;let n=D(r),i=b[r]??[],o=[...n,...i];return f.set(r,o),o},x=t=>Array.from(new Set(t.map(r=>r.label)));var X=t=>{let r=x(I(t));if(r.length!==0)return r.slice(0,2).join(" / ")},P=(t,r)=>{let e=C(t),n=r.trim();if(!e||!n)return {isValid:false};let i=I(e);for(let o of i)if(o.validate(n))return {isValid:true,compact:o.compact(n)};return {isValid:false}},H=(t,r)=>{let e=r.trim();return e&&(P(t,e).compact??e)};export{F as a,X as b,P as c,H as d};
@@ -0,0 +1 @@
1
+ import {b}from'./chunk-YWWEUQOI.js';import {a}from'./chunk-KTD2GEB6.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};
@@ -0,0 +1 @@
1
+ import {e,i,f,a as a$1,b,c,g,h,d,j}from'./chunk-QDSBR67A.js';import {a as a$5,b as b$2,c as c$1}from'./chunk-GTVHYHF4.js';import {b as b$1}from'./chunk-7EQ5IQED.js';import {a as a$3}from'./chunk-KTD2GEB6.js';import {a as a$2}from'./chunk-CM6ALMTT.js';import {e as e$1,A,H,G,q,F,E,D,C,x,y,z,f as f$1,B}from'./chunk-Z6FU5QVL.js';import {a as a$4}from'./chunk-ICF6RQIW.js';import {e as e$2}from'./chunk-5D64Y4FM.js';import {a}from'./chunk-OBZIYJO7.js';import {memo,useMemo,useState,useCallback,useRef,useEffect}from'react';import {flexRender,useReactTable,getCoreRowModel}from'@tanstack/react-table';import {jsx,jsxs}from'react/jsx-runtime';var U={alert:{Icon:B,bgClassName:"bg-orange-50 hover:bg-orange-100",iconClassName:"text-orange-700"},incident:{Icon:f$1,bgClassName:"bg-warning-100 hover:bg-warning-200",iconClassName:"text-warning-900"},"no-address":{Icon:z,bgClassName:"bg-coral-50 hover:bg-coral-100",iconClassName:"text-coral-700"},"email-alert":{Icon:y,bgClassName:"bg-danger-100 hover:bg-danger-200",iconClassName:"text-danger-700"},superadmin:{Icon:x,bgClassName:"bg-orchid-100 hover:bg-orchid-200",iconClassName:"text-orchid-700"},bundle:{Icon:C,bgClassName:"bg-aqua-100 hover:bg-aqua-200",iconClassName:"text-aqua-800"},variants:{Icon:a$4,bgClassName:"bg-bubblegum-50 hover:bg-bubblegum-100",iconClassName:"text-bubblegum-700"},providers:{Icon:D,bgClassName:"bg-pink-50 hover:bg-pink-200",iconClassName:"text-pink-700"},"transaction-request":{Icon:E,bgClassName:"bg-green-100 hover:bg-green-200",iconClassName:"text-green-800"},design:{Icon:F,bgClassName:"bg-orange-50 hover:bg-orange-100",iconClassName:"text-orange-700"},error:{Icon:q,bgClassName:"bg-danger-100 hover:bg-danger-200",iconClassName:"text-danger-700"},draft:{Icon:G,bgClassName:"bg-new-50 hover:bg-new-200",iconClassName:"text-new-700 group-hover/preset:text-new-800"},products:{Icon:H,bgClassName:"bg-bubblegum-200 hover:bg-bubblegum-300",iconClassName:"text-bubblegum-700"},more:{Icon:A,bgClassName:"bg-primary-300 hover:bg-primary-400",iconClassName:"text-primary-700"},empty:{bgClassName:"bg-primary-50 border-b border-b-primary-200 hover:bg-primary-100 data-disabled:border-b-neutral-300"}},Qe=["alert","incident"],Cn=n=>{let a=Qe.map(r=>n.find(c=>c.name===r)).filter(r=>r!==void 0),l=n.filter(r=>!Qe.includes(r.name));return [...a,...l]},Tn=n=>({id:V,size:54,enableResizing:false,header:({table:a})=>{let l=a.getRowModel().rows.some(c=>c.getCanSelect()),r=a.getIsAllPageRowsSelected()?true:a.getIsSomePageRowsSelected()?"indeterminate":false;return jsx(b$1,{checked:r,disabled:!l,className:"ml-1",onCheckedChange:c=>a.toggleAllPageRowsSelected(c===true)})},cell:({row:a})=>{let l=a.getCanSelect(),r=l?a.getIsSelected():typeof n.setDisabledRowState=="function"?n.setDisabledRowState(a.original):n.setDisabledRowState??false,c=jsx(b$1,{checked:r,onCheckedChange:p=>a.toggleSelected(p===true),disabled:!l}),u=n.rowSelectionTooltip?.content(a.original);return u?jsx(a$2,{className:"w-fit",content:u,positioning:n.rowSelectionTooltip?.positioning??{placement:"right"},children:c}):c},enableSorting:false}),ee=["w-3/4","w-1/2","w-2/3","w-5/6","w-3/5"],tn=({columns:n,rows:a$2,hasSelection:l,hasRowActions:r,hasPagination:c$1,className:u,...p})=>jsxs(a$1,{className:u,...p,children:[jsxs(b,{children:[jsx(c,{children:jsxs(g,{children:[r&&jsx(h,{className:a("p-0",Z)}),l&&jsx(h,{className:"w-13.5",children:jsx(a$3,{className:"bg-primary-300 m-0.5 ml-1.5 size-4.5 rounded-sm"})}),Array.from({length:n},(z,h$1)=>jsx(h,{children:jsx(a$3,{className:"bg-primary-300 h-3 w-16"})},h$1))]})}),jsx(d,{className:"[&>tr:not(:last-child)>td]:shadow-[inset_0_-1px_0_0_var(--row-divider-color,var(--color-primary-200))]",children:Array.from({length:a$2},(z,h)=>jsxs(e,{children:[r&&jsx(i,{className:a("bg-primary-50 p-0 align-middle",Z),children:jsxs("div",{className:"grid h-full w-full grid-rows-3",children:[jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"})]})}),l&&jsx(i,{className:"align-middle",children:jsx(a$3,{className:"m-0.5 size-4.5 rounded-sm"})}),Array.from({length:n},(i$1,m)=>jsx(i,{children:jsx(a$3,{className:a("h-4",ee[(h+m)%ee.length])})},m))]},h))})]}),c$1&&jsxs("div",{className:"border-t-primary-200 grid min-h-12 grid-cols-3 items-center gap-6 border-t px-4.5",children:[jsx(a$3,{className:"h-3.5 w-20"}),jsxs("div",{className:"flex items-center justify-center gap-2",children:[jsx(a$3,{className:"size-8 rounded-lg"}),jsx(a$3,{className:"size-8 rounded-lg"})]}),jsx("div",{className:"flex justify-end",children:jsx(a$3,{className:"h-3.5 w-28"})})]})]});tn.displayName="DataTableFullSkeleton";var hn={neutral:"bg-neutral-100",success:"bg-success-20",orange:"bg-orange-20",warning:"bg-warning-20",danger:"bg-danger-20",default:"bg-neutral-50"},M="__row_actions__",V="__select__",Z="w-7.5 min-w-7.5 max-w-7.5",en="grid grid-cols-1 h-full w-full cursor-pointer overflow-hidden border-0 p-0 focus:outline-2 focus:-outline-offset-2 focus:outline-primary-800 focus:rounded-xs disabled:cursor-not-allowed",Y=(n,a$1)=>{let l=n.Icon;return jsx(a$2,{content:a$1?.tooltip??"",disabled:!a$1?.tooltip,className:"h-full w-full",positioning:{placement:"right"},children:jsx("div",{"data-disabled":a$1?.disabled||void 0,className:a("group/preset flex h-full w-full items-center justify-center",n.bgClassName,"data-disabled:cursor-not-allowed data-disabled:bg-neutral-200"),children:l&&jsx(l,{className:a("size-3.5 shrink-0",n.iconClassName,"group-data-disabled/preset:text-neutral-600"),"aria-hidden":true})})},a$1?.key)},be=(n,a)=>typeof n=="function"?n(a):n??false,Sn=({row:n,rowActions:a})=>{let[l,r]=useState(false),c=n.original,u=Cn(a(c));if(u.length===0)return Y(U.empty);let p=u.length>3,z=p?u.slice(0,2):u,h=p?3:z.length;if(u.length===1){let i=u[0],m=be(i.isDisabled,c);return jsx("button",{type:"button","aria-label":i.label,disabled:m,className:en,style:{gridTemplateRows:"repeat(1, minmax(0, 1fr))"},onClick:N=>{N.stopPropagation(),i.onClick(c);},children:Y(U[i.name],{disabled:m,tooltip:i.tooltip})})}return jsxs(a$5,{open:l,onOpenChange:r,modal:false,positioning:{placement:"right-start",gutter:0},children:[jsx(b$2,{asChild:true,children:jsxs("button",{type:"button","aria-label":"Row actions",className:en,style:{gridTemplateRows:`repeat(${h}, minmax(0, 1fr))`},onClick:i=>{i.stopPropagation();},children:[z.map((i,m)=>Y(U[i.name],{key:`${i.name}-${m}`,disabled:be(i.isDisabled,c),tooltip:i.tooltip})),p&&Y(U.more)]})}),jsx(c$1,{className:"min-w-48 overflow-hidden rounded-sm p-0",children:jsx("div",{className:"flex flex-col",children:u.map((i,m)=>{let N=U[i.name];if(!N.Icon)return null;let x=be(i.isDisabled,c);return jsx(e$2,{variant:"ghost",size:"md",disabled:x,StartIcon:N.Icon,className:"h-auto! min-h-0! w-full justify-start gap-2! px-3! py-4! text-neutral-900! hover:text-neutral-900! disabled:text-neutral-900!",onClick:v=>{v.stopPropagation(),i.onClick(c),r(false);},type:"button",children:i.label},`${i.name}-${m}`)})})})]})},wn=({rowActions:n})=>({id:M,header:()=>jsx("span",{className:"sr-only",children:"Actions"}),size:30,minSize:30,maxSize:30,enableResizing:false,cell:({row:a})=>n?jsx(Sn,{row:a,rowActions:n}):null}),on=memo(({row:n,isSelected:a$1,type:l})=>jsx(e,{"data-state":a$1&&"selected",className:a(l&&l!=="default"&&hn[l]),style:l&&l!=="default"?{"--row-divider-color":`var(--color-${l}-100)`}:void 0,children:n.getVisibleCells().map(r=>jsx(i,{className:r.column.id===M?a("p-0 align-middle",Z):void 0,children:flexRender(r.column.columnDef.cell,r.getContext())},r.id))}),(n,a)=>n.isSelected===a.isSelected&&n.row.original===a.row.original&&n.type===a.type);on.displayName="DataTableRow";var Nn=150,Dn=Number.POSITIVE_INFINITY,yn=140,Q=(n,a,l)=>Math.min(Math.max(n,a),l),Rn=20,zn=Number.MAX_SAFE_INTEGER,J=n=>{let a=n.size??Nn,l=n.minSize===void 0||n.minSize===Rn?void 0:n.minSize,r=n.maxSize===void 0||n.maxSize===zn?void 0:n.maxSize;return {size:a,minSize:l??Math.min(a,yn),maxSize:r??Dn}},an="dt-col-sizes-",xn="dt-col-ratios-",Pn=n=>{try{localStorage.removeItem(`${xn}${n}`);let a=localStorage.getItem(`${an}${n}`);if(!a)return {};let l=JSON.parse(a),r={};for(let[c,u]of Object.entries(l))typeof u=="number"&&Number.isFinite(u)&&u>0&&(r[c]=u);return r}catch{return {}}},vn=(n,a)=>{try{localStorage.setItem(`${an}${n}`,JSON.stringify(a));}catch{}},In=(n,a)=>{let l={},r=0,c=[];for(let i of n)if(i.isFixed)l[i.id]=i.weight,r+=i.weight;else if(i.isPinned){let m=Q(i.pinnedPx,i.minSize,i.maxSize);l[i.id]=m,r+=m;}else c.push(i);if(c.length===0)return l;let u=Math.max(a-r,0),p=c.map(i=>({column:i,px:i.minSize,frozen:false})),z=p.length+1;for(;z-- >0;){let i=p.filter(d=>!d.frozen);if(i.length===0)break;let m=p.filter(d=>d.frozen).reduce((d,S)=>d+S.px,0),N=u-m,x=i.reduce((d,S)=>d+S.column.weight,0);if(x<=0)break;let v=false;for(let d of i){let S=d.column.weight/x*N;S<d.column.minSize?(d.px=d.column.minSize,d.frozen=true,v=true):S>d.column.maxSize?(d.px=d.column.maxSize,d.frozen=true,v=true):d.px=S;}if(!v)break}for(let i of p)l[i.column.id]=i.px;let h=p.find(i=>i.column.isFill);if(h){let i=p.filter(m=>m.column.id!==h.column.id).reduce((m,N)=>m+N.px,0);l[h.column.id]=Math.max(u-i,h.column.minSize);}return l};function at({columns:n,data:a$4,rowsCount:l,pagination:r,onPaginationChange:c$1,noResults:u,onNextPageClick:p,onPreviousPageClick:z,disableNextPage:h$1,disablePreviousPage:i$1,className:m,onRowsPerPageChange:N,columnOrder:x,columnVisibility:v,rowsPerPageOptions:d$1,enableRowSelection:S=false,rowSelection:pe,onRowSelectionChange:ln,getRowId:fe,rowSelectionTooltip:Ce,setDisabledRowState:Te,tableId:D,isLoading:L,isInitialLoading:he,skeletonRowCount:sn,skeletonColumns:rn=6,getRowType:Se,rowActions:k,...we}){let F=typeof S=="function"||S,Ne=useMemo(()=>{if(!x)return;let t=[k?M:null,F?V:null].filter(s=>s!=null),o=new Set(t);return [...t,...x.filter(s=>!o.has(s))]},[x,F,k]),j$1=useMemo(()=>{let t=[...n];if(F&&t.unshift(Tn({rowSelectionTooltip:Ce,setDisabledRowState:Te})),k){let o=wn({rowActions:k});t.unshift(o);}return t},[F,n,Ce,Te,k]),[I,cn]=useState(null),un=useCallback(t=>cn(t),[]),[ne,De]=useState(0),ye=useRef(false),[y,te]=useState({}),[Re,ze]=useState(null),oe=useRef(null),ae=useRef(null),f$1=useReactTable({data:a$4,columns:j$1,rowCount:l,state:{pagination:r,...Ne!==void 0&&{columnOrder:Ne},columnVisibility:v,...pe!==void 0&&{rowSelection:pe},...D&&{columnSizing:y}},onPaginationChange:c$1,onRowSelectionChange:ln,...D&&{onColumnSizingChange:te},manualPagination:true,getCoreRowModel:getCoreRowModel(),enableRowSelection:typeof S=="function"?t=>S(t.original):S,getRowId:fe?t=>fe(t):void 0}),ie=f$1.getVisibleLeafColumns().map(t=>t.id).join(","),xe=Re!==null,A=useMemo(()=>{let t=f$1.getVisibleLeafColumns().filter(s=>s.getCanResize());return t.length===0?void 0:(t.find(s=>s.columnDef.isFillColumn)??t[t.length-1]).id},[f$1,ie,j$1]),Pe=useMemo(()=>{if(!ne)return {};let t=f$1.getVisibleLeafColumns().map(o=>{let{size:s,minSize:g,maxSize:C}=J(o.columnDef),P=o.getCanResize(),R=o.id===A;return {id:o.id,isFixed:!P,isPinned:P&&!R&&o.id in y,pinnedPx:y[o.id]??s,weight:s,minSize:g,maxSize:C,isFill:R}});return In(t,ne)},[f$1,ie,j$1,ne,y,A]),mn=useMemo(()=>f$1.getVisibleLeafColumns().reduce((t,o)=>{let{size:s,minSize:g,maxSize:C}=J(o.columnDef);return o.getCanResize()?o.id!==A&&o.id in y?t+Q(y[o.id]??s,g,C):t+g:t+s},0),[f$1,ie,j$1,y,A]),ve=(t,o)=>{let s=t.column.id,{size:g,minSize:C,maxSize:P}=J(t.column.columnDef),R=Pe[s]??g,_="touches"in o?o.touches[0]?.clientX??0:o.clientX;o.preventDefault(),o.stopPropagation(),oe.current=s,ze(s),document.body.style.userSelect="none";let q=W=>{"touches"in W&&W.preventDefault();let dn="touches"in W?W.touches[0]?.clientX??_:W.clientX,ke=Q(R+(dn-_),C,P);te(le=>le[s]===ke?le:{...le,[s]:ke});},H=()=>{oe.current=null,ze(null),document.body.style.userSelect="",document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",H),document.removeEventListener("touchmove",q),document.removeEventListener("touchend",H),ae.current=null,I&&De(I.clientWidth);};ae.current=H,document.addEventListener("mousemove",q),document.addEventListener("mouseup",H),document.addEventListener("touchmove",q,{passive:false}),document.addEventListener("touchend",H);};useEffect(()=>()=>ae.current?.(),[]),useEffect(()=>{D&&te(Pn(D));},[D]),useEffect(()=>{if(!I)return;let t=g=>{g>0&&De(g);};t(I.clientWidth);let o=0,s=new ResizeObserver(([g])=>{if(!g||oe.current!==null)return;cancelAnimationFrame(o);let C=I.clientWidth;o=requestAnimationFrame(()=>t(C));});return s.observe(I),()=>{cancelAnimationFrame(o),s.disconnect();}},[I]),useEffect(()=>{if(D){if(!ye.current){ye.current=true;return}xe||vn(D,y);}},[D,xe,y]);let Ie=sn??r?.pageSize??10;return he?jsx(tn,{columns:rn,rows:Ie,hasSelection:F,hasRowActions:!!k,hasPagination:!!r,className:m,...we}):!L&&!he&&!f$1.getRowModel().rows?.length?jsx(f,{...u}):jsxs(a$1,{ref:un,className:m,...we,children:[jsxs(b,{style:{width:"100%",minWidth:mn,tableLayout:"fixed"},children:[jsx("colgroup",{children:f$1.getHeaderGroups()[0].headers.map(t=>{let o=t.column,s=o.getCanResize(),{size:g,minSize:C,maxSize:P}=J(o.columnDef);if(o.id===A)return jsx("col",{span:1,style:{width:"auto",minWidth:C}},t.id);let R=Pe[o.id]??Q(y[o.id]??g,C,P);return jsx("col",{span:1,style:{width:R,minWidth:s?C:R}},t.id)})}),jsx(c,{children:f$1.getHeaderGroups().map(t=>jsx(g,{children:t.headers.map(o=>{if(o.isPlaceholder)return jsx(h,{},o.id);let s=o.column.columnDef,g=flexRender(s.header,o.getContext()),C=o.column.id!==V&&s.headerTooltip!==false,P=s.headerTooltip&&typeof s.headerTooltip!="boolean"?s.headerTooltip:g,R=jsx("span",{className:"line-clamp-1",children:g});return jsxs(h,{className:o.column.id===M?a("p-0",Z):D?"group/resize relative overflow-clip":void 0,children:[jsxs("div",{className:"flex items-center",children:[C?jsx(a$2,{content:P,contentClassName:"font-normal normal-case",children:R}):R,s.headerInfoTooltip&&jsx(a$2,{content:s.headerInfoTooltip,contentClassName:"font-normal normal-case",children:jsx(e$1,{className:"ml-1 w-[0.875rem] shrink-0"})})]}),D&&o.column.getCanResize()&&o.column.id!==A&&jsx("div",{onMouseDown:_=>ve(o,_),onTouchStart:_=>ve(o,_),className:a("absolute top-0 right-0 h-full w-1 cursor-col-resize touch-none select-none","bg-primary-400 opacity-0 transition-opacity group-hover/resize:opacity-100",Re===o.column.id&&"bg-primary-600 opacity-100")})]},o.id)})},t.id))}),jsx(d,{className:"[&>tr:not(:last-child)>td]:shadow-[inset_0_-1px_0_0_var(--row-divider-color,var(--color-primary-200))]",children:L?Array.from({length:Ie},(t,o)=>jsx(e,{children:f$1.getVisibleLeafColumns().map((s,g)=>{let C=s.columnDef;return jsx(i,{className:s.id===V?"align-middle":s.id===M?a("bg-primary-50 p-0 align-middle",Z):void 0,children:s.id===V?jsx(a$3,{className:"m-0.5 size-4.5 rounded-sm"}):s.id===M?jsxs("div",{className:"grid h-full w-full grid-rows-3",children:[jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"})]}):C.skeleton!=null?C.skeleton:jsx(a$3,{className:a("h-4",ee[(o+g)%ee.length])})},s.id)})},o)):f$1.getRowModel().rows.map(t=>jsx(on,{row:t,isSelected:t.getIsSelected(),type:Se?Se(t.original):"default"},t.id))})]}),r&&c$1&&(a$4.length>0||L)&&jsx(j,{rowsPerPageOptions:d$1,rowsCount:l,pagination:r,onPageSizeChange:t=>{f$1.setPagination({pageIndex:0,pageSize:t}),N?.(t);},onPreviousPageClick:z,onNextPageClick:p,isDisableNextPageButton:L||h$1||!!l&&!f$1.getCanNextPage(),isDisablePreviousPageButton:L||i$1||!!l&&!f$1.getCanPreviousPage(),onPageChange:t=>{f$1.setPageIndex(t-1);}})]})}export{at as a};
@@ -0,0 +1 @@
1
+ import {e}from'./chunk-SRCJQWFE.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {a}from'./chunk-VOPVBJKL.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var q=["vertical","horizontal"],w=(o,{selectedValue:t,isSelected:n})=>t!=null&&!n,V=({label:o,orientation:t="vertical",options:n,value:a$3,onChange:m,required:x,tooltip:v,disabled:p,isOptionDisabled:r,error:f,helperText:c,variant:T,tone:g,size:O,className:S})=>{let d=t==="horizontal";return jsxs("div",{className:a$1("group flex flex-col",S),"data-error":f||void 0,"data-disabled":p||void 0,children:[jsxs("div",{className:a$1("flex",d?"flex-row items-center":"flex-col"),children:[o&&jsx(a,{as:"p",label:o,required:x,tooltip:v,className:d?"mr-3 mb-0":"mb-3"}),jsx("div",{className:"flex flex-wrap gap-3",children:n.map((e$1,y)=>{let s=a$3===e$1.value,z=typeof r=="function"?r(e$1,{selectedValue:a$3,isSelected:s,index:y}):!!r,P=p||e$1.disabled||z;return jsx(e,{selected:s,disabled:P,variant:T,tone:g,size:O,StartIcon:e$1.StartIcon,onClick:()=>m(s?null:e$1.value),children:e$1.label},e$1.value)})})]}),c&&jsx(a$2,{children:c})]})};export{q as a,w as b,V as c};
@@ -0,0 +1 @@
1
+ import {c,d}from'./chunk-AY7M5GEB.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {a}from'./chunk-VOPVBJKL.js';import {a as a$1}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,f=t=>{let e=document.activeElement;if(!e||e.type!=="number")return;document.elementFromPoint(t.clientX,t.clientY)===e&&t.preventDefault();},x=()=>{useEffect(()=>(n===0&&document.addEventListener("wheel",f,{passive:false}),n+=1,()=>{n-=1,n===0&&document.removeEventListener("wheel",f);}),[]);};var L=forwardRef(({className:t,disabled:e,error:o,helperText:v,label:T,readOnly:m,required:s,tooltip:E,...h},b)=>{x();let l=c({error:o,disabled:e,readOnly:m});return jsxs(Field.Root,{"data-error":o,disabled:e,readOnly:m,className:l.root({className:t}),children:[jsx(a,{as:Field.Label,label:T,required:s,tooltip:E}),jsxs("div",{className:l.control(),children:[jsx(Field.Input,{ref:b,required:s,className:l.input(),...h}),o&&jsx("div",{className:a$1(l.trailing(),"cursor-text"),children:jsx(d,{})})]}),jsx(a$2,{as:Field.HelperText,children:v})]})});L.displayName="TextField";export{L as a};
@@ -0,0 +1 @@
1
+ import {a as a$7}from'./chunk-LU2N5UJD.js';import {b as b$2}from'./chunk-JKTBL7WC.js';import {c as c$2,j as j$1}from'./chunk-JCFW6XDL.js';import {a as a$b,b as b$3,c as c$4}from'./chunk-GTVHYHF4.js';import {a as a$d}from'./chunk-GFVJRSZI.js';import {a as a$4}from'./chunk-KFAARODU.js';import {b}from'./chunk-7EQ5IQED.js';import {c as c$5}from'./chunk-JYNJHAGL.js';import {a as a$8}from'./chunk-UIZFLYFP.js';import {a as a$c}from'./chunk-UB5XJQF2.js';import {a as a$6,b as b$1,c as c$3,d as d$3}from'./chunk-ES7L2PIL.js';import {d as d$5}from'./chunk-MP4CHZ2K.js';import {a as a$3}from'./chunk-R6NIURLZ.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {d as d$2}from'./chunk-AVJ4C64A.js';import {a}from'./chunk-FHABUQAH.js';import {a as a$5}from'./chunk-NSF2YRJD.js';import {d,c as c$1}from'./chunk-AY7M5GEB.js';import {a as a$a}from'./chunk-VIMWKUML.js';import {a as a$9}from'./chunk-VOPVBJKL.js';import {a as a$1}from'./chunk-AWRP67K4.js';import {c,s,t,h,d as d$4,p,j,g}from'./chunk-Z6FU5QVL.js';import {e,d as d$1}from'./chunk-5D64Y4FM.js';import {c as c$6}from'./chunk-C7TLKKPT.js';import {a as a$e}from'./chunk-P6B33GL6.js';import {a as a$2}from'./chunk-OBZIYJO7.js';import*as B from'react';import B__default,{createContext,useMemo,useCallback,forwardRef,useRef,useContext,useEffect,useId,useState}from'react';import*as to 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 Yn from'react-phone-number-input/flags';import {getDefaultOptions}from'date-fns';import or from'react-phone-number-input/locale/en.json';import nr from'react-phone-number-input/locale/es.json';import rr 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 {Collapsible}from'@ark-ui/react/collapsible';import {MenuRoot,MenuTrigger,MenuPositioner,MenuContent,MenuItem}from'@ark-ui/react/menu';import {Portal}from'@ark-ui/react/portal';import {tv,cn}from'tailwind-variants';import El,{parsePhoneNumber,getCountryCallingCode}from'react-phone-number-input';import {getExampleNumber}from'libphonenumber-js/mobile';import bl from'libphonenumber-js/mobile/examples';var mn=B__default.memo(({handleSelect:e$1,NoResultsIcon:o,noResultsLabel:t,noResultsDescription:n,noResultsDescriptionLines:r,noResultsAsColumn:i,noResultsButtonOnClick:l,optionDescriptionLines:s,noResultsButtonLabel:a$3,filteredOptions:m,inputRect:p,inputRef:h,popoverPosition:b,optionsListRef:f,selectedOption:C,options:L,setFilteredOptions:y})=>jsx(to.Root,{asChild:true,children:jsxs("div",{ref:f,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==="bottom"?`${p.bottom}px`:void 0,bottom:b==="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:i,descriptionLines:r}),l&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{f.current.style.display="none",h.current.value="",y(L),l();},children:a$3})]})]}),m.map(I=>jsx(be,{title:I.label,disabled:I.disabled,description:I.description,descriptionLines:s,onClick:()=>e$1(I),className:a$2(C?.value===I.value&&"bg-primary-200")},I.key??I.value))]})})),oo=mn;var fn=336,Yl=({options:e,defaultSelectedOption:o,onSelect:t,onClick:n,onInputChange:r,error:i,helperText:l,label:s,placeholder:a,value:m,size:p="md",optionDescriptionLines:h=1,noResultsLabel:b,noResultsIcon:f,noResultsDescription:C,noResultsDescriptionLines:L,noResultsAsColumn:y,noResultsButtonOnClick:I,noResultsButtonLabel:M,className:v,disabled:N})=>{let[g,R]=useState(o??null),E=useRef(null),x=useRef(null),[A,O]=useState(),[V,w]=useState([]),[c,u]=useState("bottom"),[T,D]=useState(),S=fn,G=useCallback(F=>{E.current.style.display="none",x.current.value=F.label,R(F),t?.(F);},[t]),z=useCallback(()=>{if(!x?.current)return;let F=x.current.getBoundingClientRect();O(F);let X=T?T.height:S,Y=window.innerHeight-F.bottom>X,Fe=F.top>X;u(Y?"bottom":Fe?"top":"bottom");},[T?.height]),le=useCallback(()=>{let F=e.filter(X=>X.label.toLowerCase().includes(x?.current?.value.toLowerCase()??""));if(w(F),E?.current){let X=E.current.getBoundingClientRect();D(X);}},[e]);return useEffect(()=>{w(e);},[e]),useEffect(()=>{if(!m){R(null),x.current&&(x.current.value="");return}(!x.current?.value||g?.value!==m.value)&&(R(m),x.current.value=m.label);},[m]),a$d(E,()=>{E.current.style.display="none",g&&x.current&&(x.current.value=g.label);}),useEffect(()=>{if(x?.current)return z(),x.current.addEventListener("mousedown",z),x.current.addEventListener("input",le),window.addEventListener("scroll",z,true),window.addEventListener("resize",z),()=>{x.current?.removeEventListener("mousedown",z),x.current?.removeEventListener("input",le),window.removeEventListener("scroll",z,true),window.removeEventListener("resize",z);}},[z,le]),jsxs("div",{className:a$2("relative",v),children:[jsx(a$4,{ref:x,autoComplete:"off",list:"",selectMode:true,onChange:F=>{F.target.value||(R(null),t?.(null)),r?.(F);},onClean:()=>{R(null),w(e),t?.(null);},onClick:F=>{E.current.style.display="flex",n?.(F);},onBlur:()=>{g&&x.current&&(x.current.value=g.label);},label:s,helperText:l,placeholder:a,size:p,error:i,disabled:N}),jsx(oo,{handleSelect:G,noResultsLabel:b,NoResultsIcon:f,optionDescriptionLines:h,noResultsAsColumn:y,noResultsButtonLabel:M,noResultsButtonOnClick:I,noResultsDescription:C,noResultsDescriptionLines:L,filteredOptions:V,inputRect:A,inputRef:x,popoverPosition:c,optionsListRef:E,selectedOption:g,options:e,setFilteredOptions:w})]})};var hn=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,disabled:i=false,className:l,...s})=>jsxs("div",{className:a$2("flex w-full flex-col gap-1",l),...s,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%]",i?"text-neutral-400":"text-neutral-700"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:n})]}),ce=hn;var be=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:i,endIcon:l,hasDivider:s=false,disabled:a=false,isSelected:m=false,className:p,...h})=>jsxs(ee,{hasDescription:!!n,disabled:a,hasDivider:s,className:p,isSelected:m,...h,children:[i&&B__default.cloneElement(i,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ce,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:a}),l&&B__default.cloneElement(l,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});var ao=({children:e,title:o,titleLines:t=1,description:n="",descriptionLines:r,startIcon:i,hasDivider:l=false,disabled:s=false,checked:a,onCheckedChange:m,className:p,...h})=>jsxs(ee,{hasDescription:!!n,disabled:s,hasDivider:l,...h,className:a$2("pr-6",p),children:[i&&B__default.cloneElement(i,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(ce,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:s}),jsx(b,{checked:a,onCheckedChange:m,className:"ml-4 self-center",disabled:s})]});var ne=336,po=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:ne,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),te=()=>{let e=useContext(po);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},uo=({children:e})=>{let o=useRef(null),t=useRef(null),n=useId(),[r,i]=useState(),[l,s]=useState(true),[a,m]=useState([]),[p,h]=useState(-1),[b,f]=useState("bottom"),[C,L]=useState(),[y,I]=useState(ne);return jsx(po.Provider,{value:{optionsListRef:o,inputRef:t,autocompleteId:n,inputRect:r,showChips:l,filteredOptions:a,currentFocus:p,popoverPosition:b,setFilteredOptions:m,setCurrentFocus:h,setShowChips:s,setPopoverPosition:f,setInputRect:i,optionsListHeight:y,optionsListRect:C,setOptionsListRect:L,setOptionsListHeight:I},children:e})};var Mn=({option:e,onMountWidth:o})=>{let t=useRef(null);return useEffect(()=>{t.current&&o?.(t.current.clientWidth);},[]),jsx(d$2,{variant:"fill",color:"neutral",ref:t,className:"shrink-0",size:"md",hasCloseIcon:false,children:e.label})},mo=Mn;var kn=150,wn=B__default.memo(({selectedOptions:e,error:o,onCleanSelectedOptions:t,disabled:n,size:r})=>{let{autocompleteId:i,inputRect:l,inputRef:s,optionsListRef:a}=te(),m=B__default.useRef(null),[p,h]=B__default.useState(new Map),b=useMemo(()=>{if(!l?.width)return [];let C=0,L=l.width-kn,y=0;for(let I=0;I<e.length&&(y+=p.get(I)??0,!(y>L));I++)C++;return e.slice(0,C)},[l?.width,e,p]),f=useCallback(()=>{n||(s?.current?.focus(),a.current.style.display="flex");},[n]);return jsxs("div",{onClick:f,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:l?.width?l?.width:void 0,height:l?.height?l?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:m,children:b.map((C,L)=>jsx(mo,{option:C,onMountWidth:y=>h(I=>new Map(I).set(L,y))},`chip-input-${i}-${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();}})]})}),fo=wn;var Hn=B__default.memo(({option:e,index:o,onPressOption:t,isSelected:n,optionDescriptionLines:r})=>{let{currentFocus:i,inputRef:l}=te();return jsx(ao,{title:e.label,checked:n,disabled:e.disabled,className:i===o?"bg-primary-200":void 0,onMouseDown:s=>{e.disabled||(l?.current?.value&&s.preventDefault(),t?.(e,s));},description:e.description,descriptionLines:r})}),mt=Hn;var Vn=B__default.memo(({selectedOptions:e$1,handleSelect:o,NoResultsIcon:t,noResultsLabel:n,noResultsDescription:r,noResultsDescriptionLines:i,noResultsAsColumn:l,noResultsButtonOnClick:s,optionDescriptionLines:a$2,noResultsButtonLabel:m})=>{let{popoverPosition:p,optionsListRef:h,filteredOptions:b,inputRect:f,autocompleteId:C,inputRef:L,optionsListHeight:y}=te(),I=useCallback(v=>e$1.some(N=>N.value===v.value),[e$1]),M=useMemo(()=>e$1.filter(v=>v.label.toLowerCase().includes(L?.current?.value.toLowerCase()??"")),[e$1,L?.current?.value]);return jsx(to.Root,{asChild:true,children:jsxs("div",{ref:h,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:f?{width:`${f.width}px`,left:f.left,top:p==="bottom"?`${f.bottom}px`:void 0,bottom:p==="top"?`${window.innerHeight-f.top}px`:void 0,maxHeight:y+"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:l,descriptionLines:i}),s&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{h.current.style.display="none",L.current.value="",s();},children:m})]})]}),M.map((v,N)=>jsx(mt,{option:v,index:N,onPressOption:g=>o(g),isSelected:I(v),optionDescriptionLines:a$2},`autocomplete-option-${C}-${v.key??v.value}`)),b.map((v,N)=>!e$1.some(g=>g.value===v.value)&&jsx(mt,{option:v,index:N,onPressOption:g=>o(g),isSelected:I(v),optionDescriptionLines:a$2},`autocomplete-option-${C}-${v.key??v.value}`))]})})}),ho=Vn;var qn=B__default.memo(({selectedOptions:e,onSelect:o,error:t,helperText:n,label:r,placeholder:i,options:l,onInputChange:s,size:a,disabled:m})=>{let{setCurrentFocus:p,setFilteredOptions:h,optionsListRef:b,inputRef:f}=te();return jsx(a$4,{ref:f,autoComplete:"off",list:"",disabled:m,selectMode:true,onChange:C=>{p(-1),s?.(C.target.value);},onClean:()=>{p(-1),h(l),o?.(null,e);},onClick:()=>{m||(b.current.style.display="flex");},error:t,helperText:n,label:r,placeholder:i,fixedTopLabel:e.length>0,size:a})}),go=qn;var Co=({options:e,defaultSelectedOptions:o,onSelect:t,error:n,helperText:r,label:i,placeholder:l,noResultsLabel:s,noResultsIcon:a,noResultsDescription:m,noResultsDescriptionLines:p,noResultsAsColumn:h,noResultsButtonOnClick:b,noResultsButtonLabel:f,className:C,onInputChange:L,value:y,loading:I,size:M="md",optionDescriptionLines:v=1,disabled:N})=>{let{inputRef:g,optionsListRef:R,setFilteredOptions:E,setShowChips:x,setInputRect:A,setPopoverPosition:O,setCurrentFocus:V,showChips:w,setOptionsListRect:c,optionsListRect:u,setOptionsListHeight:T}=te(),D=useRef(false),[S,G]=useState(o??[]),z=useCallback(K=>{G(Z=>{let se,Re=Z.findIndex(pn=>pn.value===K.value);return Re===-1?(se=Z.concat(K),t?.(K,se),se):(se=Z.toSpliced(Re,1),t?.(K,se),se)});},[t]),le=useCallback(()=>{G([]),E(e),t?.(null,[]);},[]),F=useCallback(()=>{x(false);},[]),X=useCallback(()=>{x(true);},[]),Y=useCallback(()=>{if(!g?.current)return;let K=g.current.getBoundingClientRect();A(K);let Z=u?u.height>ne?ne:u.height:ne,se=window.innerHeight-K.bottom>Z,Re=K.top>Z;O(se?"bottom":Re?"top":"bottom"),T(Re?ne:window.innerHeight-K.bottom>ne?ne:window.innerHeight-K.bottom);},[u?.height]),Fe=useCallback(()=>{let K=e.filter(Z=>Z.label.toLowerCase().includes(g?.current?.value.toLowerCase()??""));if(E(K),R?.current){let Z=R.current.getBoundingClientRect();c(Z);}},[e,R?.current]);return useEffect(()=>{E(e);},[e]),a$d(R,()=>{R.current.style.display="none",V(-1);}),useEffect(()=>{if(g?.current)return Y(),g.current.addEventListener("mousedown",Y),g.current.addEventListener("input",Fe),g.current.addEventListener("focusin",F),g.current.addEventListener("focusout",X),window.addEventListener("scroll",Y,true),window.addEventListener("resize",Y),()=>{g.current?.removeEventListener("mousedown",Y),g.current?.removeEventListener("input",Y),g.current?.removeEventListener("focusout",X),g.current?.removeEventListener("focusin",F),window.removeEventListener("scroll",Y,true),window.removeEventListener("resize",Y);}},[Y,X,F,Fe]),useEffect(()=>{y&&(G(y),x(true));},[y]),useEffect(()=>{I||o&&o.length&&!D.current&&(G(o),D.current=true,x(true));},[o,I]),jsxs("div",{className:a$2("relative",C),children:[jsx(go,{selectedOptions:S,onSelect:t,error:n,helperText:r,label:i,placeholder:l,handleSelect:z,options:e,onInputChange:L,size:M,disabled:N}),w&&jsx(fo,{selectedOptions:S,disabled:N,error:n,onCleanSelectedOptions:le,size:M}),jsx(ho,{handleSelect:z,selectedOptions:S,noResultsLabel:s,NoResultsIcon:a,optionDescriptionLines:v,noResultsAsColumn:h,noResultsButtonLabel:f,noResultsButtonOnClick:b,noResultsDescription:m,noResultsDescriptionLines:p})]})};var xa=e=>jsx(uo,{children:jsx(Co,{...e})});var et=({children:e,className:o,disabled:t,error:n,helperText:r,htmlFor:i,label:l,readOnly:s,required:a,tooltip:m})=>{let{root:p}=c$1({error:n,disabled:t,readOnly:s});return jsxs("div",{className:p({className:o}),"data-error":n||void 0,"data-disabled":t||void 0,"data-readonly":s||void 0,children:[l&&jsx(a$9,{as:"label",htmlFor:i,label:l,required:a,tooltip:m}),e,jsx(a$a,{children:r})]})};var bt=({className:e,country:o,countryName:t})=>{let n=Yn[o];return jsx("span",{className:a$2("flex size-4.5 shrink-0 items-center justify-center overflow-hidden rounded-full border border-white [&_svg:not([class*='size-'])]:h-full [&_svg:not([class*='size-'])]:w-auto [&_svg:not([class*='size-'])]:max-w-none [&_svg:not([class*='size-'])]:shrink-0",e),children:n&&jsx(n,{title:t})})};var er=({code:e,codeClassName:o,label:t})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx(bt,{country:e,countryName:t}),jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",o),children:e})]}),Lo=({className:e,disabled:o,error:t,onChange:n,onOpenChange:r,options:i,readOnly:l,translations:s,value:a})=>{let m=B.useRef(null),[p$1,h]=B.useState(""),[b,f]=B.useState(false),{wrapper:C,input:L,clearIcon:y,searchIcon:I}=b$2({size:"md"}),{contains:M}=useFilter({sensitivity:"base"}),v=B.useMemo(()=>i.map(c=>({...c,key:c.code})),[i]),N=B.useMemo(()=>v.find(c=>c.key===a),[v,a]),{collection:g,filter:R,set:E}=useListCollection({initialItems:v,itemToString:c=>`${c.label} ${c.code}`,itemToValue:c=>c.key,filter:(c,u,T)=>M(c,u)||M(T.code,u.toUpperCase())});B.useEffect(()=>{E(v);},[v,E]);let x=B.useCallback(c=>{f(c),r?.(c);},[r]),A=B.useCallback(({inputValue:c})=>{let u=c??"";h(u),R(u),m.current?.scrollTo({top:0});},[R]),O=B.useCallback(c=>{x(c),c&&(h(""),R(""));},[R,x]),V=B.useCallback(({itemValue:c})=>{if(!c)return;let u=v.find(T=>T.key===c)?.code;u&&(n(u),x(false));},[v,x,n]),w=useCombobox({collection:g,inputBehavior:"autohighlight",inputValue:p$1,open:b,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:N?[N.key]:[],onInputValueChange:A,onOpenChange:({open:c})=>{c||x(false);},onSelect:V});return jsx(Combobox.RootProvider,{value:w,children:jsxs(a$b,{open:b,onOpenChange:O,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||l?"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||l,children:N&&jsx(er,{code:N.code,label:N.label,codeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",l&&"text-input-text-disabled")})})}),jsx(c$4,{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:s.searchCountryPlaceholder,className:L()}),!o&&p$1.length>0&&jsx("button",{type:"button",className:y(),onClick:()=>{w.setInputValue("","clear-trigger");},children:jsx(d$4,{className:"size-4.5"})}),jsx(p,{className:I()})]}),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":g.items.length===0}),children:g.items.length===0?jsx(a$c,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:g.items.map(c=>jsxs(Combobox.Item,{item:c,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(bt,{country:c.code,countryName:c.label}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:c.label}),jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:c.code}),jsx(j,{className:a$2("ml-auto size-4 shrink-0",c.key===a?"opacity-100":"opacity-0")})]},c.key))})})]})})]})})};var gt=B.forwardRef(({className:e,clearLabel:o,disabled:t,error:n,onChange:r,readOnly:i,type:l="text",value:s,...a},m)=>{let p=B.useRef(null),h=`${s??""}`.length>0,b=!t&&!i&&h,f=b||n;B.useImperativeHandle(m,()=>p.current,[]);let C=B.useCallback(y=>{r?.(y.target.value);},[r]),L=B.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: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",f&&!n&&"pr-10.5",b&&n&&"pr-14",n&&!b&&"pr-10.5",t&&"text-input-text-disabled",e),...a,disabled:t,readOnly:i,value:s,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:L}),n&&jsx(d,{})]})]})});gt.displayName="IdInput";var Ct={en:"Clear identification number",es:"Limpiar n\xFAmero de identificaci\xF3n",pt:"Limpar n\xFAmero de identifica\xE7\xE3o"},Ro={en:or,es:nr,pt:rr},ir=Ct.en,lr=Ro.en,sr={es:{clearIdLabel:Ct.es,searchCountryPlaceholder:"Buscar..."},pt:{clearIdLabel:Ct.pt,searchCountryPlaceholder:"Pesquisar..."}},ar={clearIdLabel:ir,searchCountryPlaceholder:"Search..."},To=()=>getDefaultOptions().locale?.code,Po=e=>sr[e]??ar,cr=(e,o)=>(Ro[o]??lr)[e]??e,No=({localeCode:e})=>c$2.map(o=>({code:o,label:cr(o,e)})).sort((o,t)=>o.label.localeCompare(t.label)),Mo=a$6,Eo=b$1,Ao=(e,o)=>{let t=o.trim();return !t||!c$3(e,t).isValid?t:d$3(e,t)};var Oo=()=>{},ko=B.forwardRef(({autoComplete:e,className:o,country:t,disabled:n,error:r,helperText:i,id:l,label:s,name:a,onBlur:m,onChange:p=Oo,onCountryChange:h=Oo,placeholder:b,readOnly:f,required:C,tooltip:L,value:y},I)=>{let[M,v]=B.useState(false),[N,g]=B.useState(y??""),R=B.useId(),E=l??R,x=To(),A=B.useRef(y??"");B.useEffect(()=>{(y??"")!==A.current&&g(y??"");},[y]);let O=B.useMemo(()=>Po(x),[x]),V=B.useMemo(()=>No({localeCode:x}),[x]),w=B.useMemo(()=>Eo(t??"")||b||Mo,[t,b]),c=c$1({error:r,disabled:n,readOnly:f}),u=B.useCallback((S,G)=>{let z=Ao(S,G);A.current=z,p(z);},[p]),T=B.useCallback(S=>{g(S),u(t??"",S);},[t,u]),D=B.useCallback(S=>{h(S),u(S,N);},[N,h,u]);return jsx(et,{disabled:n,error:r,helperText:i,htmlFor:E,label:s,readOnly:f,required:C,tooltip:L,children:jsxs("div",{className:a$2(c.control(),"group/id-field",!r&&!n&&!f&&M&&"after:ring-input-ring-focus after:ring-2",o),children:[jsx(Lo,{disabled:n,error:r,onChange:D,onOpenChange:v,options:V,readOnly:f,translations:O,value:t}),jsx(gt,{autoComplete:e,clearLabel:O.clearIdLabel,disabled:n,error:r,id:E,name:a,onBlur:m,onChange:T,placeholder:w,readOnly:f,required:C,value:N,ref:I})]})})});ko.displayName="IdField";var hc=({children:e$2,title:o,titleLines:t=1,description:n,descriptionLines:r=1,StartIcon:i,hasDivider:l=false,disabled:s=false,actionButton:a,isSelected:m=false,className:p,...h})=>jsxs(ee,{hasDescription:!!n,disabled:s,hasDivider:l,isSelected:m,...h,className:p,children:[i&&jsx(i,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(ce,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:s}),a&&jsx(Fragment,{children:a.isIcon?jsx(e$1,{...a,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:s??a.disabled}):jsx(e,{...a,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:s??a.disabled})})]});var Nc=({title:e,description:o="",descriptionLines:t,hasDivider:n=false,disabled:r=false,checked:i,onCheckedChange:l,className:s,chipStatus:a,chipExpandable:m,...p})=>jsxs(ee,{hasDescription:!!o,disabled:r,hasDivider:n,...p,className:a$2("pr-6",s),children:[jsx(b,{checked:i,onCheckedChange:l,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$5,{...m})}),a&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$5,{...a,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 vt={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"},Lt={headings:["h1","h2","h3"],textFormat:["bold","italic","underline"],lists:true,indent:true,alignment:["left","center","right","justify"],undoRedo:true};var It=({readOnly:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>{o.setEditable(!e);},[o,e]),null};var Rt=({editorRef:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>(e.current=o,()=>{e.current===o&&(e.current=null);}),[o,e]),null};var gr={"ql-align-left":"left","ql-align-center":"center","ql-align-right":"right","ql-align-justify":"justify"},Cr={center:"ql-align-center",right:"ql-align-right",justify:"ql-align-justify"},xr=()=>typeof window<"u"&&typeof window.DOMParser<"u",wo=e=>xr()?new DOMParser().parseFromString(e,"text/html"):null,yr=e=>(e??"").replace(/\s+/g," ").trim(),Pt=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},vr=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=gr[n];r&&(r!=="left"&&(t.style.textAlign=r),t.classList.remove(n));}},Lr=e=>{let o=e.querySelectorAll("[class*='ql-indent-']");for(let t of Array.from(o)){if(t.tagName==="LI")continue;let n=Pt(t);n>0&&(t.style.paddingInlineStart=`${n*3}em`);}},Ir=(e,o)=>{let t=e.getAttribute("data-list");return t==="bullet"?"ul":t==="ordered"?"ol":o},Rr=e=>{let o=e.cloneNode(true);return o.removeAttribute("data-list"),o.removeAttribute("data-checked"),o.removeAttribute("data-indent"),Pt(o),o},Tt=(e,o)=>e.createElement(o),Tr=(e,o)=>{let t=Array.from(e.children).filter(a=>a.tagName==="LI");if(t.length===0||!t.some(a=>a.hasAttribute("data-list")?true:Array.from(a.classList).some(m=>/^ql-indent-\d+$/.test(m))))return;let r=[],i=[],l=e.tagName==="UL"?"ul":"ol";for(let a of t){let m=Pt(a),p=Ir(a,l),h=Rr(a);for(;i.length>0&&i[i.length-1].level>m;)i.pop();if(i.length===0){let f=Tt(o,p);r.push(f),i.push({level:0,kind:p,listElement:f});}let b=i[i.length-1];for(;b.level<m;){let f=b.listElement.lastElementChild;if(!f||f.tagName!=="LI")break;let C=Tt(o,p);f.appendChild(C),b={level:b.level+1,kind:p,listElement:C},i.push(b);}if(b=i[i.length-1],b.kind!==p){let f=Tt(o,p);if(i.length===1)r.push(f),i[0]={level:0,kind:p,listElement:f};else {let L=i[i.length-2].listElement.lastElementChild;L&&L.tagName==="LI"?(L.appendChild(f),i[i.length-1]={level:b.level,kind:p,listElement:f}):(r.push(f),i.length=1,i[0]={level:0,kind:p,listElement:f});}b=i[i.length-1];}b.listElement.appendChild(h);}if(r.length===0)return;let s=o.createDocumentFragment();for(let a of r)s.appendChild(a);e.replaceWith(s);},Pr=(e,o)=>{let t=Array.from(e.querySelectorAll("ol, ul"));for(let n of t)Tr(n,o);},So=(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 l of Array.from(r.classList))/^ql-indent-\d+$/.test(l)&&r.classList.remove(l);o>0&&r.classList.add(`ql-indent-${o}`);let i=Array.from(r.children).filter(l=>l.tagName==="UL"||l.tagName==="OL");for(let l of i)So(l,o+1);}},Nr=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 l of Array.from(n.classList))l.startsWith("ql-align-")&&n.classList.remove(l);let r=n.style.textAlign.trim().toLowerCase(),i=Cr[r];i&&n.classList.add(i);}},xe=e=>yr(e).replace(/>\s+</g,"><").replace(/&nbsp;/g," "),Nt=e=>{let o=e??"";if(!o.trim())return "";let t=wo(o);if(!t)return o;let{body:n}=t;return vr(n),Lr(n),Pr(n,t),n.innerHTML},Mt=e=>{if(!e.trim())return "";let o=wo(e);if(!o)return e;let{body:t}=o,n=Array.from(t.querySelectorAll("ul, ol"));for(let r of n)So(r,0);return Nr(t),t.innerHTML};var tt=e=>{let o="";return e.getEditorState().read(()=>{o=$generateHtmlFromNodes(e,null);}),Mt(o)},Fr=(e,o)=>{let t=Nt(o);e.update(()=>{let n=$getRoot();if(n.clear(),!t.trim()){n.append($createParagraphNode());return}let i=new DOMParser().parseFromString(t,"text/html"),l=$generateNodesFromDOM(e,i);if(l.length===0){n.append($createParagraphNode());return}n.select(),$insertNodes(l);});},Et=({value:e,isSyncingRef:o})=>{let[t]=useLexicalComposerContext(),n=useRef(null);return useEffect(()=>{let r=e??"";if(n.current!==null&&xe(r)===xe(n.current))return;let i=tt(t);xe(i)!==xe(r)&&(o.current=true,Fr(t,r),queueMicrotask(()=>{o.current=false;})),n.current=r;},[t,o,e]),null};var Ho=["left","center","right","justify"];var Do=["bold","italic","underline","strikethrough","code"];var gi={bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough",code:"code"},Ci={left:jsx(AlignLeftIcon,{className:"size-4"}),center:jsx(AlignCenterIcon,{className:"size-4"}),right:jsx(AlignRightIcon,{className:"size-4"}),justify:jsx(AlignJustifyIcon,{className:"size-4"})},xi={left:"Align left",center:"Align center",right:"Align right",justify:"Align justify"},Oe={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:"</>"})},ke={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Inline code"},yi=e=>{let o=e.textFormat;return o===false?[]:Array.isArray(o)?Do.filter(t=>o.includes(t)):["bold","italic","underline"]},vi=e=>{let o=e.alignment;return o===false?[]:Array.isArray(o)?Ho.filter(t=>o.includes(t)):["left","center","right","justify"]},Li=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()}))]},we=()=>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}),kt=({config:e,className:o})=>{let[t]=useLexicalComposerContext(),n=useId(),[r,i]=useState(false),[l,s]=useState(false),[a,m]=useState(false),[p,h]=useState(false),[b,f]=useState(false),[C,L]=useState(false),[y,I]=useState(false),[M,v]=useState("paragraph"),[N,g]=useState("left"),R=useMemo(()=>yi(e),[e]),E=useMemo(()=>vi(e),[e]),x=useMemo(()=>Li(e),[e]),A=useCallback(()=>{let c=$getSelection();if(!$isRangeSelection(c))return;m(c.hasFormat("bold")),h(c.hasFormat("italic")),f(c.hasFormat("underline")),L(c.hasFormat("strikethrough")),I(c.hasFormat("code"));let u=c.anchor.getNode(),T=u.getKey()==="root"?u:u.getTopLevelElementOrThrow();if($isListNode(T))v(T.getListType()==="number"?"ol":"ul");else {let S=$findMatchingParent(T,G=>$isListNode(G));$isListNode(S)?v(S.getListType()==="number"?"ol":"ul"):v($isHeadingNode(T)?T.getTag():T.getType());}let D=$isElementNode(T)?T.getFormatType():"";g(D==="center"||D==="right"||D==="justify"?D:"left");},[]);useEffect(()=>mergeRegister(t.registerUpdateListener(({editorState:c})=>{c.read(()=>{A();});}),t.registerCommand(SELECTION_CHANGE_COMMAND,()=>(A(),false),1),t.registerCommand(CAN_UNDO_COMMAND,c=>(i(c),false),1),t.registerCommand(CAN_REDO_COMMAND,c=>(s(c),false),1)),[t,A]);let O=c=>{t.dispatchCommand(FORMAT_TEXT_COMMAND,gi[c]);},V=c=>{t.update(()=>{let u=$getSelection();if($isRangeSelection(u)){if(c==="paragraph"){$setBlocksType(u,()=>$createParagraphNode());return}$setBlocksType(u,()=>$createHeadingNode(c));}});},w=c=>{if(M===(c==="bullet"?"ul":"ol")){t.dispatchCommand(REMOVE_LIST_COMMAND,void 0);return}t.dispatchCommand(c==="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:!l,icon:jsx(RedoIcon,{className:"size-4"})}),jsx(we,{})]}),x.length>0&&jsxs(Fragment,{children:[jsx("label",{className:"sr-only",htmlFor:n,children:"Text style"}),jsx("select",{id:n,value:M.startsWith("h")?M:"paragraph",onChange:c=>V(c.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:x.map(c=>jsx("option",{value:c.value,children:c.label},c.value))}),jsx(we,{})]}),R.length>0&&jsxs(Fragment,{children:[R.includes("bold")&&jsx(Q,{label:ke.bold,onClick:()=>O("bold"),icon:Oe.bold,active:a}),R.includes("italic")&&jsx(Q,{label:ke.italic,onClick:()=>O("italic"),icon:Oe.italic,active:p}),R.includes("underline")&&jsx(Q,{label:ke.underline,onClick:()=>O("underline"),icon:Oe.underline,active:b}),R.includes("strikethrough")&&jsx(Q,{label:ke.strikethrough,onClick:()=>O("strikethrough"),icon:Oe.strikethrough,active:C}),R.includes("code")&&jsx(Q,{label:ke.code,onClick:()=>O("code"),icon:Oe.code,active:y}),jsx(we,{})]}),e.lists!==false&&jsxs(Fragment,{children:[jsx(Q,{label:"Bulleted list",onClick:()=>w("bullet"),icon:jsx(ListIcon,{className:"size-4"}),active:M==="ul"}),jsx(Q,{label:"Numbered list",onClick:()=>w("number"),icon:jsx(ListOrderedIcon,{className:"size-4"}),active:M==="ol"}),jsx(we,{})]}),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(we,{})]}),E.length>0&&jsx(Fragment,{children:E.map(c=>jsx(Q,{label:xi[c],onClick:()=>t.dispatchCommand(FORMAT_ELEMENT_COMMAND,c),icon:Ci[c],active:N===c},c))})]})};var Vo=e=>{if(e!==void 0)return typeof e=="number"?`${e}px`:e},Di=forwardRef(({value:e,onChange:o,onBlur:t,onError:n,placeholder:r="Write your content...",readOnly:i=false,showToolbar:l=true,toolbarConfig:s=Lt,className:a,editorClassName:m,toolbarClassName:p,autoFocus:h=false,minHeight:b=160,maxHeight:f,error:C=false,errorMessage:L,editorRef:y},I)=>{let M=useRef(false),v=useMemo(()=>({namespace:"SodtrackRichTextEditor",theme:vt,onError:(g,R)=>{if(n){n(g,R);return}console.error("RichTextEditor error",g);},nodes:[HeadingNode,ListNode,ListItemNode]}),[n]),N={minHeight:Vo(b),maxHeight:Vo(f),overflowY:f?"auto":void 0};return jsx(LexicalComposer,{initialConfig:v,children:jsxs("div",{className:"w-full",children:[jsxs("div",{ref:I,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",i&&"border-neutral-300 bg-neutral-50 focus-within:ring-0",a),"data-error":C,"data-readonly":i,children:[l&&!i&&jsx(kt,{config:s,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",i&&"cursor-default",m),style:N,onBlur:t,"aria-invalid":C}),placeholder:i?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(It,{readOnly:i}),jsx(Et,{value:e,isSyncingRef:M}),h&&!i&&jsx(AutoFocusPlugin,{}),y&&jsx(Rt,{editorRef:y}),jsx(OnChangePlugin,{ignoreSelectionChange:true,onChange:(g,R)=>{!o||M.current||o(tt(R),g);}})]}),C&&L&&jsx("p",{className:"text-error-500 mt-1 text-xs leading-[133%]",children:L})]})})});Di.displayName="RichTextEditor";var ot="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 Hp=["sm","md","lg"],Dp=["primary","secondary","ghost"],_p=["primary","neutral"],Gi=tv({extend:d$1,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:{}}}}),qo=({label:e,options:o,onSelect:t,variant:n="primary",size:r="md",disabled:i=false,className:l,tone:s="primary",...a})=>{let m=useCallback(b=>{t?.(b.value);},[t]),{root:p,icon:h}=Gi({variant:n,size:r,tone:s,disabled:i});return jsxs(MenuRoot,{unmountOnExit:true,lazyMount:true,onSelect:m,positioning:{placement:"bottom-start",flip:["bottom-end"]},...a,children:[jsxs(MenuTrigger,{disabled:i,className:p({className:l}),children:[e,jsx(g,{className:h({className:"transition-transform duration-150 group-data-[state=open]:rotate-180"})})]}),jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{className:a$2("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",ot),children:o.map(({label:b,value:f,description:C,startIcon:L,endIcon:y,hasDivider:I,disabled:M,onClick:v})=>jsx(MenuItem,{value:f,disabled:M,onSelect:v,asChild:true,children:jsx(be,{title:b,description:C,startIcon:L,endIcon:y,disabled:M,hasDivider:I,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},f))})})})]})};var Go=createContext(null),Xi=()=>{let e=useContext(Go);if(!e)throw new Error("TrackerItem components must be used within TrackerItem");return e},Zi=({state:e,children:o})=>jsxs("div",{className:"relative",children:[jsx("div",{className:a$2("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")}),o]}),Ji=forwardRef(({label:e,badgeStatus:o,details:t$1,className:n,...r},i)=>{let{state:l,stepNumber:s$1,expandable:a,onHeaderButtonClick:m}=Xi();return jsxs("div",{ref:i,className:a$2("flex min-h-10 items-center gap-3 py-2 pr-1 pl-3",n),...r,children:[jsxs("div",{className:a$2("flex flex-1 gap-2",!o&&(!t$1||t$1.length===0)&&"self-center"),children:[jsx(a$7,{state:l,stepNumber:s$1}),jsxs("div",{className:"mt-0.5 flex min-w-0 flex-1 flex-col gap-1",children:[jsx("span",{className:a$2("font-jakarta text-xs leading-snug font-medium",l==="wait"?"text-neutral-500":"text-neutral-900"),children:e}),o&&o.visible!==false&&(()=>{let{visible:p,...h}=o;return jsx(a$8,{...h})})(),t$1&&jsx("div",{className:"text-2xs flex flex-col gap-1.5 text-neutral-700",children:t$1.map(({Icon:p,text:h},b)=>jsxs("div",{className:"flex items-center gap-1.5",children:[jsx(p,{className:"size-3 shrink-0"}),jsx("span",{className:"font-inter",children:h})]},b))})]})]}),a&&jsx(Collapsible.Context,{children:({open:p})=>jsx(Collapsible.Trigger,{asChild:true,children:jsx(e$1,{Icon:p?s:t,size:"sm",variant:"ghost",tone:"neutral"})})}),!a&&m&&jsx(e$1,{Icon:h,size:"sm",variant:"ghost",tone:"neutral",onClick:m})]})});Ji.displayName="TrackerItemHeader";var el=forwardRef(({children:e,className:o,...t},n)=>jsx(Collapsible.Content,{className:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden",children:jsx("div",{ref:n,className:a$2("border-t border-neutral-300 px-3 py-2",o),...t,children:e})}));el.displayName="TrackerItemExpandableContent";var tl=forwardRef(({buttons:e$1=[],className:o,...t},n)=>jsx("div",{ref:n,className:a$2("flex justify-end gap-2 border-t border-neutral-300 px-3 py-2",o),...t,children:e$1.map((r,i)=>{if(r.visible===false)return null;let{visible:l,...s}=r;return "options"in s?jsx(qo,{...s,size:"sm"},i):jsx(e,{...s,size:"sm"},i)})}));tl.displayName="TrackerItemFooter";var Wo="overflow-hidden rounded-sm border border-neutral-300 bg-neutral-50",ol=forwardRef(({state:e,stepNumber:o,expandable:t=false,defaultExpanded:n,onExpandedChange:r,onHeaderButtonClick:i,className:l,children:s,...a},m)=>{let p=useMemo(()=>({state:e,stepNumber:o,expandable:t,onHeaderButtonClick:i}),[e,o,t,i]),h=useCallback(b=>{r?.(b.open);},[r]);return jsx(Go.Provider,{value:p,children:jsx(Zi,{state:e,children:t?jsx(Collapsible.Root,{ref:m,defaultOpen:n??false,onOpenChange:h,className:a$2(Wo,l),...a,children:s}):jsx("div",{ref:m,className:a$2(Wo,l),...a,children:s})})})});ol.displayName="TrackerItem";var hu=["sm","md","lg"],gu=["semibold","medium"],Cu=["primary","neutral"],ul=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}}),xu=({className:e,label:o,badgeText:t="00",StartIcon:n,options:r,onSelect:i,isSelected:l=false,isLoading:s=false,isDisabled:a=false,hasTrailingBadge:m=false,size:p="lg",weight:h="semibold",tone:b="primary",type:f="button",...C})=>{let L=a||s,y=r.filter(({isHidden:T})=>!T),I=y.length>0,M=s,v=!!n&&!s,N=!s&&m,g$1=I&&!L,R=useCallback(T=>{i?.(T.value);},[i]),E=useCallback(T=>{T?.();},[]),{root:x,label:A,icon:O,chevron:V,trailing:w}=ul({size:p,weight:h,tone:b,loading:M}),c=p,u=jsxs(Fragment,{children:[M&&jsx(c$6,{size:"sm",tone:"neutral",className:O()}),v&&n&&jsx(n,{className:O()}),jsx("span",{className:A(),children:o}),N&&jsx(a$e,{type:"square",variant:"primary",size:c,text:t,className:w()}),g$1&&jsx(g,{className:V()})]});return I?jsxs(MenuRoot,{onSelect:R,lazyMount:true,positioning:{placement:"bottom-start",flip:["bottom-end"]},children:[jsx(MenuTrigger,{...C,type:f,disabled:L,"aria-pressed":l,className:x({className:e}),children:u}),jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{className:cn("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",ot),children:y.map(({label:T,description:D,startIcon:S,endIcon:G,hasDivider:z,isDisabled:le,onClick:F})=>jsx(MenuItem,{value:T,disabled:le,onSelect:()=>E(F),asChild:true,className:"flex items-center",children:jsx(be,{title:T,description:D,startIcon:S,endIcon:G,disabled:le,hasDivider:z,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},T))})})})]}):jsx("button",{...C,type:f,disabled:L,"aria-pressed":l,className:x({className:e}),children:u})};var jo={en:or,es:nr,pt:rr},yl={es:{clearPhoneNumberLabel:"Eliminar n\xFAmero de tel\xE9fono",searchCountryPlaceholder:"Buscar..."},pt:{clearPhoneNumberLabel:"Limpar n\xFAmero de telefone",searchCountryPlaceholder:"Pesquisar..."}},vl={clearPhoneNumberLabel:"Clear phone number",searchCountryPlaceholder:"Search..."},Ll=jo.en,Yo="9 1234 5678",wt="ZZ",Xo=()=>{},it=e=>yl[e]??vl,Zo=e=>jo[e]??Ll,Jo=e=>{if(e)try{let o=parsePhoneNumber(e)?.country;return !o||!j$1(o)?void 0:o}catch{return}},en=e=>{if(e)return getExampleNumber(e,bl)?.formatNational()},lt=e=>e??wt,st=()=>getDefaultOptions().locale?.code;var Nl=({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}`})]}),tn=({className:e,disabled:o,error:t,iconComponent:n,onChange:r,onOpenChange:i,options:l,readOnly:s,translations:a,value:m})=>{let p$1=B.useRef(null),[h,b]=B.useState(""),[f,C]=B.useState(false),{wrapper:L,input:y,clearIcon:I,searchIcon:M}=b$2({size:"md"}),{contains:v}=useFilter({sensitivity:"base"}),N=B.useMemo(()=>l.filter(u=>u.value!==void 0&&j$1(u.value)).map(u=>({callingCode:u.value?getCountryCallingCode(u.value):void 0,country:u.value,key:lt(u.value),label:u.label})),[l]),g=B.useMemo(()=>N.find(u=>u.key===lt(m)),[N,m]),{collection:R,filter:E,set:x}=useListCollection({initialItems:N,itemToString:u=>u.callingCode?`${u.label} +${u.callingCode}`:u.label,itemToValue:u=>u.key,filter:(u,T,D)=>{let S=T.trim().replace(/^\+/,"");return v(u,T)||(D.country?v(D.country,T.toUpperCase()):false)||(D.callingCode?v(D.callingCode,S)||v(`+${D.callingCode}`,T):false)}});B.useEffect(()=>{x(N);},[N,x]);let A=B.useCallback(u=>{C(u),i?.(u);},[i]),O=B.useCallback(({inputValue:u})=>{let T=u??"";b(T),E(T),p$1.current?.scrollTo({top:0});},[E]),V=B.useCallback(u=>{A(u),u&&(b(""),E(""));},[E,A]),w=B.useCallback(({itemValue:u})=>{if(!u||u===wt){r(void 0),A(false);return}j$1(u)&&(r(u),A(false));},[A,r]),c=useCombobox({collection:R,inputBehavior:"autohighlight",inputValue:h,open:f,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:g?[g.key]:[],onInputValueChange:O,onOpenChange:({open:u})=>{u||A(false);},onSelect:w});return jsx(Combobox.RootProvider,{value:c,children:jsxs(a$b,{open:f,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||s?"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&&f&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||s,children:g&&jsx(Nl,{Icon:n,callingCode:g.callingCode,country:g.country,countryName:g.label,callingCodeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",s&&"text-input-text-disabled")})})}),jsx(c$4,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:L({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:a.searchCountryPlaceholder,className:y()}),!o&&h.length>0&&jsx("button",{type:"button",className:I(),onClick:()=>{c.setInputValue("","clear-trigger");},children:jsx(d$4,{className:"size-4.5"})}),jsx(p,{className:M()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:p$1,className:a$2("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":R.items.length===0}),children:R.items.length===0?jsx(a$c,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:R.items.map(u=>jsxs(Combobox.Item,{item:u,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:u.country,label:u.label})}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:u.label}),u.callingCode&&jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:`+${u.callingCode}`}),jsx(j,{className:a$2("ml-auto size-4 shrink-0",u.key===lt(m)?"opacity-100":"opacity-0")})]},u.key))})})]})})]})})};var nn=({className:e,country:o,countryName:t})=>{let n=Yn[o];return jsx("span",{className:a$2("flex size-4.5 shrink-0 items-center justify-center overflow-hidden rounded-full border border-white [&_svg:not([class*='size-'])]:h-full [&_svg:not([class*='size-'])]:w-auto [&_svg:not([class*='size-'])]:max-w-none [&_svg:not([class*='size-'])]:shrink-0",e),children:n&&jsx(n,{title:t})})};var Ft=B.forwardRef(({className:e,disabled:o,error:t,onChange:n,readOnly:r,type:i,value:l,...s},a)=>{let m=st(),p=B.useMemo(()=>it(m),[m]),h=B.useRef(null),f=!o&&!r&&!!l,C=f||t;B.useImperativeHandle(a,()=>h.current,[]);let L=B.useCallback(()=>{let y=h.current;if(!y){n?.({target:{value:""}});return}y.value="",n?.({target:y}),y.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: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",C&&!t&&"pr-10.5",f&&t&&"pr-14",t&&!f&&"pr-10.5",o&&"text-input-text-disabled",e),...s,disabled:o,readOnly:r,value:l,onChange:n,ref:h}),(f||t)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[f&&jsx(a$5,{ariaLabel:p.clearPhoneNumberLabel,onClick:L}),t&&jsx(d,{})]})]})});Ft.displayName="PhoneNumberInputComponent";var Al=El,sn=B.forwardRef(({className:e,defaultCountry:o,disabled:t,error:n,helperText:r,id:i,label:l,onChange:s=Xo,placeholder:a,readOnly:m,required:p,tooltip:h,value:b,...f},C)=>{let[L,y]=B.useState(false),[I,M]=B.useState(()=>Jo(b)??o),v=B.useId(),N=i??v,g=st(),R=B.useMemo(()=>it(g),[g]),E=B.useMemo(()=>Zo(g),[g]),x=B.useMemo(()=>en(I)??a??Yo,[a,I]),A=c$1({error:n,disabled:t,readOnly:m}),O=a$2(A.control(),"group/phone",!n&&!t&&!m&&L&&"after:ring-input-ring-focus after:ring-2",e),V=B.useCallback(w=>{M(w);},[]);return jsx(et,{disabled:t,error:n,helperText:r,htmlFor:N,label:l,readOnly:m,required:p,tooltip:h,children:jsx(Al,{...f,className:O,ref:C,countrySelectComponent:tn,countrySelectProps:{error:n,onOpenChange:y,translations:R},defaultCountry:o,disabled:t,flagComponent:nn,id:N,initialValueFormat:"national",inputComponent:Ft,labels:E,numberInputProps:{error:n,placeholder:x},readOnly:m,required:p,value:b,onChange:s,onCountryChange:V})})});sn.displayName="PhoneInput";var Ol=({children:e,hasDescription:o=false,disabled:t=false,hasDivider:n=false,className:r,isSelected:i,onClick:l,...s})=>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",!!l?"cursor-pointer":"cursor-default"),i&&"bg-primary-200",r),onClick:m=>{t||l?.(m);},...s,children:e}),n&&jsx(a$1,{})]}),ee=Ol;var ef=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:i,badgeContent:l,hasDivider:s=false,disabled:a=false,onSelect:m,className:p,...h$1})=>jsxs(ee,{hasDescription:!!n,disabled:a,onClick:m,hasDivider:s,className:a$2(!a&&"cursor-pointer",p),...h$1,children:[i&&B__default.cloneElement(i,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ce,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:a}),jsxs("div",{className:"ml-4 flex gap-2",children:[l&&jsx(a$3,{content:l,size:"lg",variant:"alert",className:a$2("self-center",a&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});export{_p as A,qo as B,Yl as a,ef as b,ao as c,xa as d,ko as e,hc as f,Nc as g,vt as h,Lt as i,xe as j,Nt as k,Mt as l,Di as m,Xi as n,Ji as o,el as p,tl as q,ol as r,hu as s,gu as t,Cu as u,xu as v,sn as w,be as x,Hp as y,Dp as z};
@@ -0,0 +1 @@
1
+ import {a as a$3}from'./chunk-ZZFG3AKL.js';import {a as a$2}from'./chunk-NSF2YRJD.js';import {b,c,d,a as a$5}from'./chunk-AY7M5GEB.js';import {a as a$4}from'./chunk-VIMWKUML.js';import {a}from'./chunk-VOPVBJKL.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 ce=a$5,W=b;function G(u,P){let{className:A,label:N,required:R,tooltip:z,error:n,isItemDisabled:d$1,value:p,helperText:O,placeholder:D,onValueChange:m,defaultValue:f,options:S,clearable:F=true,disabled:g,readOnly:a$5,size:E=W,...H}=u,i=Object.getOwnPropertyNames(u),b=useMemo(()=>createListCollection({items:S,isItemDisabled:d$1,itemToValue:l=>String(l.value)}),[S,d$1]),L=useCallback(l=>{let q=l.items.at(0);m?.(q?.value??null);},[m]);if(i.includes("defaultValue")&&i.includes("value"))throw new Error("Cannot set both defaultValue and value props on Select. Use one or the other.");let h=c({error:n,disabled:g,readOnly:a$5,size:E}),o=!a$5&&F,r=!!n;return jsxs(Select.Root,{ref:P,"data-error":n,disabled:g,readOnly:a$5,collection:b,className:h.root({className:A}),positioning:{placement:"bottom-end"},onValueChange:L,value:i.includes("value")?p!=null?[String(p)]:[]:void 0,defaultValue:f!=null?[String(f)]:void 0,...H,children:[jsx(a,{as:Select.Label,label:N,required:R,tooltip:z}),jsxs(Select.Control,{className:a$1(h.control(),"relative overflow-hidden"),children:[jsx(Select.Trigger,{className:a$1("text-input-text data-placeholder-shown:text-input-placeholder data-disabled:text-input-text-disabled flex h-full w-full cursor-pointer items-center pl-3 disabled:cursor-not-allowed",o&&r&&"pr-24",o!==r&&"pr-16",!o&&!r&&"pr-10"),children:jsx(Select.ValueText,{className:"font-inter min-w-0 flex-1 truncate text-left text-sm",placeholder:D})}),jsxs("div",{className:"pointer-events-none absolute top-1/2 right-3 flex -translate-y-1/2 items-center gap-2",children:[r&&jsx(d,{}),o&&jsx(a$2,{as:Select.ClearTrigger,className:"pointer-events-auto",onClick:l=>l.stopPropagation()}),jsx(Select.Indicator,{className:"group/chevron-host flex shrink-0 items-center justify-center",children:jsx(a$3,{})})]})]}),jsx(a$4,{children:O}),jsx(Portal,{children:jsx(Select.Positioner,{children:jsx(Select.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 w-(--reference-width) overflow-auto rounded-lg outline-none",children:b.items.map(l=>jsx(Select.Item,{item:l,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:l.label})},l.value))})})}),jsx(Select.HiddenSelect,{})]})}var k=forwardRef(G);k.displayName="Select";var ue=k;export{ce as a,W as b,ue as c};
@@ -0,0 +1 @@
1
+ import {forwardRef}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var N=["ghost","outline"],T=["neutral","primary"],V=["lg","md","sm"],f={variant:"ghost",tone:"neutral",size:"lg"},h=tv({slots:{root:"font-inter enabled:hover:bg-primary-100 focus:ring-primary-800 inline-flex cursor-pointer items-center gap-1.5 rounded-sm px-2 font-medium transition-all ring-inset focus:ring-3",startIcon:""},variants:{variant:{ghost:{root:""},outline:{root:"ring"}},tone:{neutral:{},primary:{}},selected:{true:{},false:{}},disabled:{true:{root:"cursor-not-allowed text-neutral-500 ring-neutral-500"},false:{}},size:{lg:{root:"h-10 py-2.5",startIcon:"size-4.5"},md:{root:"h-8 py-1.5"},sm:{root:"h-6 py-1 text-xs leading-[133%]"}}},compoundVariants:[{disabled:false,variant:["ghost","outline"],tone:"neutral",className:{root:"text-neutral-800 ring-neutral-800"}},{disabled:false,variant:["ghost","outline"],tone:"primary",className:{root:"text-primary-600 ring-primary-600"}},{disabled:false,selected:true,variant:["ghost","outline"],className:{root:"bg-primary-200"}},{disabled:false,selected:true,variant:"outline",tone:"neutral",className:{root:"ring-neutral-900"}},{disabled:false,selected:true,variant:"outline",tone:"primary",className:{root:"ring-primary-700"}},{size:["lg","md"],className:{root:"text-sm leading-[143%]"}},{size:["md","sm"],className:{startIcon:"size-3.5"}}],defaultVariants:f}),y=forwardRef(({className:o,children:r,StartIcon:t,variant:s,selected:a,disabled:e,tone:i,size:n,...l},p)=>{let{root:u,startIcon:m}=h({variant:s,selected:a,disabled:e,tone:i,size:n});return jsxs("button",{ref:p,disabled:e,className:u({className:o}),type:"button",...l,children:[t&&jsx(t,{className:m()}),r]})});y.displayName="Chip";export{N as a,T as b,V as c,f as d,y as e};
@@ -0,0 +1 @@
1
+ import {d}from'./chunk-AVJ4C64A.js';import {a as a$5}from'./chunk-FHABUQAH.js';import {a as a$3}from'./chunk-ZZFG3AKL.js';import {a as a$2}from'./chunk-NSF2YRJD.js';import {c,d as d$1}from'./chunk-AY7M5GEB.js';import {a as a$4}from'./chunk-VIMWKUML.js';import {a}from'./chunk-VOPVBJKL.js';import {a as a$6}from'./chunk-AWRP67K4.js';import {j}from'./chunk-Z6FU5QVL.js';import {e}from'./chunk-5D64Y4FM.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,useState,useCallback,useRef,useEffect}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';function ve(){let s=useComboboxContext(),c=useRef(false);return s.value.length&&s.collection.size&&!c.current&&(s.syncSelectedItems(),c.current=true),null}var Ce=s=>{let{label:c$1,error:C,required:Q,tooltip:X,disabled:m,readOnly:p,options:S,onInputChange:w,onSelect:L,defaultSelectedOptions:a$7,value:d$2,helperText:Y,noResultsLabel:Z,noResultsIcon:$,noResultsDescription:ee,noResultsDescriptionLines:te,noResultsAsColumn:oe,noResultsButtonOnClick:V,noResultsButtonLabel:ne,optionDescriptionLines:k=1,loading:P,clearable:le=true,growable:b=true,className:re,...ie}=s,D=Object.getOwnPropertyNames(s),se=useMemo(()=>({sensitivity:"base"}),[]),{contains:h}=useFilter(se),[g,ae]=useState(""),T=useMemo(()=>createListCollection({items:S,itemToString:e=>e.label,itemToValue:e=>String(e.value)}),[S]),y=useMemo(()=>g?T.filter((e,n,l)=>h(e,g)||!!l.description&&h(l.description,g)):T,[T,g,h]),f=useCallback(e=>{ae(e??"");},[]),x=useRef(a$7??[]),I=useRef(void 0),B=useRef(false),ue=useCallback(e=>{let n=e.items,l=x.current,ce=n.length===0?null:n.find(A=>!l.some(M=>String(M.value)===String(A.value)))??l.find(A=>!n.some(M=>String(M.value)===String(A.value)))??null;x.current=[...n],L?.(ce,n),I.current?.setInputValue(""),f("");},[L,f]),pe=useCallback(e=>{f(e.inputValue),e.reason!==void 0&&w?.(e.inputValue??"");},[f,w]),u=useCombobox({collection:y,multiple:true,inputBehavior:"none",openOnClick:true,onInputValueChange:pe,onValueChange:ue,defaultValue:a$7?.map(e=>String(e.value)),value:D.includes("value")?d$2?.map(e=>String(e.value))??[]:void 0,readOnly:p,disabled:m,...ie});I.current=u,useEffect(()=>{D.includes("value")&&d$2!==void 0&&(x.current=[...d$2]);},[d$2]),useEffect(()=>{P||a$7?.length&&(B.current||(I.current?.setValue(a$7.map(e=>String(e.value))),x.current=[...a$7],B.current=true));},[a$7,P]);let O=c({error:C,disabled:m,readOnly:p,multiline:b});return jsxs(Combobox.RootProvider,{value:u,"data-error":C||void 0,className:O.root({className:re}),children:[jsx(a,{as:Combobox.Label,label:c$1,required:Q,tooltip:X}),jsx(ve,{}),jsxs(Combobox.Control,{className:a$1(O.control(),"group/control",!b&&"overflow-hidden",m&&"cursor-not-allowed"),children:[jsxs("div",{className:a$1("flex flex-1 items-center gap-1 px-3 py-2",b?"flex-wrap py-1.5":"overflow-hidden"),children:[u.selectedItems.map(e=>jsx(d,{color:"neutral",variant:"fill",size:"md",disabled:p||m,onClose:()=>{u.clearValue(String(e.value));},children:e.label},String(e.value))),jsx(Combobox.Input,{className:a$1(O.input(),"h-auto px-0 py-0 disabled:cursor-not-allowed"),placeholder:u.selectedItems.length===0?s.placeholder:""})]}),jsxs("div",{className:a$1("flex shrink-0 items-center gap-2 pr-3",b&&"self-start pt-2.5"),children:[!p&&le&&jsx(a$2,{as:Combobox.ClearTrigger,className:"group-data-disabled/control:hidden",onClick:e=>e.stopPropagation()}),C&&jsx(d$1,{}),jsx(Combobox.Trigger,{className:a$1("group/chevron-host cursor-pointer group-data-disabled/control:cursor-not-allowed",p&&"pointer-events-none"),children:jsx(a$3,{})})]})]}),jsx(a$4,{children:Y}),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:y.items.length>0?y.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:n,disabled:l})=>jsxs("div",{className:a$1("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",l?"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?{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:k,WebkitBoxOrient:"vertical"}:void 0,children:e.description})]}),jsx("div",{className:a$1("ml-4 flex size-4.5 shrink-0 items-center justify-center rounded-sm transition-colors ring-inset",n?"bg-primary-600":"bg-neutral-50 ring-1 ring-neutral-600",l&&(n?"bg-neutral-400":"bg-neutral-100 ring-neutral-300")),children:n&&jsx(j,{className:"size-3.5 text-neutral-50"})})]})})},String(e.value))):jsxs("div",{className:"flex flex-col",children:[jsx(a$5,{title:Z,description:ee,Icon:$,iconAsColumn:oe,descriptionLines:te}),V&&jsxs(Fragment,{children:[jsx(a$6,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{u.setOpen(false),V();},children:ne})]})]})})})})})]})};Ce.displayName="AutocompleteMultiple";export{Ce as a};
@@ -1,2 +1,2 @@
1
- import {e}from'./chunk-5D64Y4FM.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var r='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="116" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.595 118.918c-28.848 0-52.234-23.533-52.234-52.564s23.386-52.563 52.234-52.563 52.234 23.533 52.234 52.563-23.386 52.564-52.234 52.564"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M106.662 24.929q.031-.368.031-.745c0-4.758-3.838-8.62-8.566-8.62-4.068 0-7.478 2.86-8.35 6.688a6.8 6.8 0 0 0-2.112-.333c-3.783 0-6.854 3.09-6.854 6.897s3.071 6.897 6.854 6.897h18.649c2.96 0 5.364-2.418 5.364-5.398 0-2.861-2.218-5.206-5.016-5.386" clip-rule="evenodd"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M115.385 99.846H10.792a.615.615 0 0 1-.613-.618c0-.34.275-.617.613-.617h104.593c.339 0 .614.276.614.617a.616.616 0 0 1-.614.618m-108.693 0H.614A.616.616 0 0 1 0 99.228c0-.34.275-.617.614-.617h6.078c.338 0 .613.276.613.617a.615.615 0 0 1-.613.618" clip-rule="evenodd"/><path fill="%23f3f6f5" fill-rule="evenodd" d="M12.48 12.2a6 6 0 0 1-.02-.475c0-3.035 2.448-5.499 5.464-5.499 2.595 0 4.77 1.824 5.326 4.266a4.4 4.4 0 0 1 1.347-.212c2.413 0 4.372 1.971 4.372 4.4 0 2.428-1.96 4.399-4.372 4.399H12.702c-1.889 0-3.422-1.543-3.422-3.444a3.436 3.436 0 0 1 3.2-3.435" clip-rule="evenodd"/><path fill="%23f3f6f5" d="m94.572 72.734-6.26 10.92-10.218 2.765-11.414 3.073-7.13 1.918-.045-.061a4.43 4.43 0 0 0 3.81-3.282l11.722-44.01-6.26-10.92-9.7-2.614 18.352-4.948c2.348-.638 4.798.787 5.418 3.152z"/><path fill="%23fff" d="m58.553 30.39 10.223 2.755 6.263 10.919-4.013 15.072-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.631 2.372-3.071 3.787-5.425 3.153l-33.04-8.91c-2.353-.632-3.762-3.09-3.132-5.458l5.89-22.116 1.18-4.437 5.795-21.764c.631-2.367 3.073-3.785 5.426-3.152l18.54 5.001Z"/><path fill="%23cfd9d7" d="m88.31 83.66-2.294-8.612 8.557-2.307-6.264 10.92ZM68.776 33.139l-2.295 8.618 8.558 2.307z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m35.057 60.641 23.056 6.217a.808.808 0 0 0 .415-1.56l-23.056-6.216a.808.808 0 0 0-.415 1.56Zm2.197-8.253 23.056 6.215a.8.8 0 0 0 .982-.57.81.81 0 0 0-.567-.99L37.669 50.83a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Zm5.349 19.13 1.666.45a.808.808 0 0 0 .415-1.56l-1.666-.45a.808.808 0 0 0-.415 1.56m-9.743-2.626 5.855 1.578a.808.808 0 0 0 .415-1.56l-5.855-1.577a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="M57.652 39.047a1 1 0 0 1-.234-.031c-3.279-.886-5.232-4.292-4.354-7.591l1.588-5.963.02-.064c.674-2.32 3.063-3.69 5.375-3.07a4.38 4.38 0 0 1 2.672 2.069 4.42 4.42 0 0 1 .443 3.36l-1.588 5.963a2.65 2.65 0 0 1-1.236 1.62 2.62 2.62 0 0 1-2.014.267 2.64 2.64 0 0 1-1.61-1.244 2.66 2.66 0 0 1-.264-2.024l1.587-5.963a.897.897 0 0 1 1.102-.64c.48.129.765.626.636 1.109l-1.587 5.962a.86.86 0 0 0 .602 1.051.855.855 0 0 0 1.046-.607l1.587-5.962a2.62 2.62 0 0 0-.263-1.987 2.6 2.6 0 0 0-1.58-1.224c-1.362-.366-2.828.498-3.199 1.89l-.014.047-1.565 5.879c-.622 2.335.76 4.745 3.082 5.372a.906.906 0 0 1-.232 1.781"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M93.71 72.62 82.07 28.934c-.506-1.936-2.512-3.1-4.432-2.579l-7.466 2.014a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.463-2.012c2.774-.754 5.67.93 6.402 3.722l11.724 44.007a.8.8 0 0 1-.08.613l-6.26 10.92a.8.8 0 0 1-.487.375L78.302 87.2l-11.415 3.073-7.13 1.918a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.13-1.918 11.413-3.072 9.897-2.68z" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m70.252 58.927-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.517 1.943-2.515 3.102-4.443 2.582l-33.04-8.91c-1.927-.518-3.08-2.53-2.564-4.469a.802.802 0 1 0-1.55-.418c-.744 2.797.92 5.7 3.7 6.446l33.039 8.91c2.78.75 5.662-.922 6.408-3.723l3.257-12.233 1.199-4.501.59-2.217 2.66-9.986a.802.802 0 1 0-1.55-.418M28.389 54.95l1.18-4.437 5.795-21.764c.517-1.938 2.516-3.1 4.444-2.58l10.029 2.705a.807.807 0 0 0 .416-1.56l-10.03-2.705c-2.78-.749-5.663.926-6.408 3.722L28.02 50.095l-1.181 4.438c-.114.43.14.873.567.988a.803.803 0 0 0 .983-.57Z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.595" x2="56.595" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116v100H0z"/></clipPath></defs></svg>';var c='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M57.084 118.918c-29.097 0-52.685-23.533-52.685-52.564s23.588-52.563 52.685-52.563 52.685 23.533 52.685 52.564-23.588 52.563-52.685 52.563"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M107.584 24.93q.031-.369.031-.745c0-4.758-3.871-8.62-8.64-8.62a8.644 8.644 0 0 0-8.421 6.688 7 7 0 0 0-2.13-.334c-3.816 0-6.913 3.09-6.913 6.898s3.097 6.897 6.913 6.897h18.809c2.986 0 5.411-2.419 5.411-5.398 0-2.862-2.237-5.207-5.06-5.387M116.38 99.846H10.886a.618.618 0 1 1 0-1.234H116.38c.342 0 .62.276.62.617a.62.62 0 0 1-.62.617M6.75 99.846H.62A.62.62 0 0 1 0 99.23c0-.34.278-.617.62-.617h6.13a.618.618 0 1 1 0 1.234" clip-rule="evenodd"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M12.587 12.2a6 6 0 0 1-.02-.475c0-3.035 2.47-5.499 5.511-5.499a5.51 5.51 0 0 1 5.373 4.266 4.4 4.4 0 0 1 1.358-.212 4.407 4.407 0 0 1 4.41 4.4c0 2.428-1.976 4.399-4.41 4.399H12.811a3.45 3.45 0 0 1-3.451-3.444 3.45 3.45 0 0 1 3.227-3.435" clip-rule="evenodd"/><path fill="%23fff" d="M50.685 25.551c-14.513 0-26.286 11.745-26.286 26.226s11.773 26.211 26.286 26.211c5.137 0 9.913-1.467 13.953-4.004a26.1 26.1 0 0 0 8.32-8.3c2.527-4.031 4-8.808 4-13.907 0-14.481-11.759-26.226-26.273-26.226m-.003 46.986c-11.471 0-20.808-9.314-20.808-20.762 0-11.447 9.336-20.761 20.808-20.761 11.476 0 20.811 9.314 20.811 20.761 0 11.448-9.335 20.762-20.81 20.762"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M50.682 71.627c-10.97 0-19.897-8.906-19.897-19.852s8.927-19.852 19.897-19.852c10.973 0 19.9 8.907 19.9 19.852a.911.911 0 0 0 1.823 0c0-11.949-9.745-21.671-21.723-21.671-11.975 0-21.72 9.722-21.72 21.67 0 11.95 9.746 21.672 21.72 21.672a.91.91 0 0 0 .912-.91.91.91 0 0 0-.912-.91" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M23.487 51.777c0 14.982 12.181 27.12 27.198 27.12a27.04 27.04 0 0 0 14.438-4.143 27.04 27.04 0 0 0 8.609-8.59 27.04 27.04 0 0 0 4.137-14.387c0-14.984-12.167-27.136-27.184-27.136a.91.91 0 0 0-.912.91c0 .502.408.91.911.91 14.011 0 25.362 11.337 25.362 25.316A25.23 25.23 0 0 1 72.185 65.2a25.2 25.2 0 0 1-8.031 8.012 25.23 25.23 0 0 1-13.47 3.865c-14.009 0-25.373-11.324-25.373-25.301a.911.911 0 0 0-1.824 0" clip-rule="evenodd"/><path fill="%23e1e7e6" d="M68.494 80.954 79.17 91.42c3.144 3.136 8.289 3.136 11.435 0 3.145-3.139 3.145-8.272 0-11.41L79.928 69.544z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m69.789 80.949 10.025 9.826c2.79 2.783 7.354 2.783 10.146 0a7.14 7.14 0 0 0 2.059-5.748.91.91 0 0 1 1.815-.172 8.96 8.96 0 0 1-2.585 7.207c-3.501 3.49-9.226 3.49-12.718.006L67.855 81.603a.906.906 0 0 1-.006-1.291L79.283 68.9a.914.914 0 0 1 1.285-.006l3.4 3.334c.359.352.364.928.01 1.286a.914.914 0 0 1-1.288.012l-2.756-2.701z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="m78.495 70.969-8.574 8.567-5.417-5.418.134-.134a26.1 26.1 0 0 0 8.32-8.3l.12-.12z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M73.204 66.977a27.1 27.1 0 0 1-8.084 7.779.91.91 0 1 1-.966-1.543 25.2 25.2 0 0 0 8.03-8.01 1 1 0 0 1 .13-.163l.12-.12a.913.913 0 0 1 1.288.001l5.416 5.404a.91.91 0 0 1 0 1.286l-8.573 8.568a.913.913 0 0 1-1.289.001.91.91 0 0 1-.001-1.287l7.93-7.924z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="57.084" x2="57.084" y1="115.671" y2="13.791" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h117v100H0z"/></clipPath></defs></svg>';var s='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%2396dcb4" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%234fa271" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23bfe9d1" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%236ecf96" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%234fa271" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" fill-rule="evenodd" d="m55.436 65.185 14.64-17.738a2.472 2.472 0 0 1 3.812 3.147L57.518 70.429a2.474 2.474 0 0 1-3.655.174L42.948 59.687a2.47 2.47 0 1 1 3.495-3.495z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23abe3c2"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var p='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%23f18585" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%23d34747" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23f6b4b4" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%23f18585" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%23d34747" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" d="M57.512 45.853a3.5 3.5 0 0 1 1.623.077q1.816.465 2.473 2.203.155.58-.077 2.396l-.889 5.758q-1.081 7.034-1.353 7.266-.27.116-1.855.039-.31 0-.347-.04-.194-.115-.348-.888-.116-.696-1.005-6.377-1.12-7.343-1.044-7.845 0-.077.078-.309.502-1.623 2.357-2.164.194-.078.387-.116m.038 20.25q.657-.154 1.508.078 1.7.425 2.357 2.087.116.193.155.425a3.3 3.3 0 0 1 0 1.739q-.465 1.778-2.165 2.396-.192.078-.347.116a3.3 3.3 0 0 1-1.74 0q-1.777-.464-2.396-2.164a3.318 3.318 0 0 1-.116-2.087q.31-1.16 1.16-1.817.657-.54 1.584-.772"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23f39d9d"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var D=t=>t?.startsWith("es")?{documentsTitle:"Nada por aqu\xED todav\xEDa",documentsDescription:"Agrega un nuevo elemento para comenzar",notFoundTitle:"No se encontraron resultados",notFoundDescription:"Ajusta los criterios e int\xE9ntalo nuevamente",doneTitle:"\xA1Est\xE1s al d\xEDa!",doneDescription:"No hay elementos que completar",contentEmptyAlt:"Contenido vac\xEDo"}:t?.startsWith("pt")?{documentsTitle:"Nada aqui ainda",documentsDescription:"Adicione um novo item para come\xE7ar",notFoundTitle:"N\xE3o foram encontrados resultados",notFoundDescription:"Ajuste os crit\xE9rios e tente novamente",doneTitle:"Voc\xEA est\xE1 em dia!",doneDescription:"N\xE3o h\xE1 itens para concluir",contentEmptyAlt:"Conte\xFAdo vazio"}:{documentsTitle:"Nothing here yet",documentsDescription:"Add a new item to get started",notFoundTitle:"No results were found",notFoundDescription:"Adjust the criteria and try again",doneTitle:"You're all caught up!",doneDescription:"Nothing left to complete",contentEmptyAlt:"Content empty"},H=t=>{switch(t){case "lg":return {width:233.46,height:200};case "md":return {width:175.09,height:150};case "sm":return {width:116,height:100}}},N=tv({slots:{root:"font-inter flex h-fit w-fit flex-col items-center p-6 pt-10 text-neutral-600",title:"mt-4.5 text-center font-semibold",description:"font-inter mt-0.5 text-center"},variants:{size:{lg:{title:"font-jakarta text-lg leading-[156%]",description:"text-base leading-[150%] font-medium"},md:{title:"text-base leading-[150%]",description:"text-sm leading-[143%]"},sm:{title:"text-sm leading-[143%]",description:"text-sm leading-[143%]"}},variant:{empty:{},"not-found":{},done:{title:"text-success-700",description:"text-success-700"},danger:{title:"text-danger-700",description:"text-danger-700"}}}}),P=(t,e)=>{switch(t.variant){case "danger":return {title:t.title,description:t.description,imgUrl:p};case "not-found":return {title:e.notFoundTitle,description:t.description??e.notFoundDescription,imgUrl:c};case "done":return {title:e.doneTitle,description:t.description??e.doneDescription,imgUrl:s};default:return {title:e.documentsTitle,description:t.description??e.documentsDescription,imgUrl:r}}},k=t=>{let{actions:e$1,areActionsHidden:m=false,size:l="sm",className:u}=t,h=t.variant??"empty",{locale:g}=getDefaultOptions(),{root:v,title:y,description:b}=N({size:l,variant:h}),o=D(g?.code),a=P(t,o),{width:S,height:M}=H(l),d=l==="sm"?"sm":"lg";return jsxs("div",{className:v({className:u}),children:[jsx("img",{alt:o.contentEmptyAlt,width:S,height:M,src:a.imgUrl}),jsx("p",{className:y(),children:a.title}),jsx("p",{className:b(),children:a.description}),e$1&&!m&&jsxs("div",{className:"mt-4.5 flex gap-3",children:[e$1.secondary&&jsx(e,{...e$1.secondary,variant:"light",tone:"primary",size:d}),jsx(e,{...e$1.primary,variant:"secondary",tone:"primary",size:d})]})]})};
1
+ import {e}from'./chunk-5D64Y4FM.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var r='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="116" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.595 118.918c-28.848 0-52.234-23.533-52.234-52.564s23.386-52.563 52.234-52.563 52.234 23.533 52.234 52.563-23.386 52.564-52.234 52.564"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M106.662 24.929q.031-.368.031-.745c0-4.758-3.838-8.62-8.566-8.62-4.068 0-7.478 2.86-8.35 6.688a6.8 6.8 0 0 0-2.112-.333c-3.783 0-6.854 3.09-6.854 6.897s3.071 6.897 6.854 6.897h18.649c2.96 0 5.364-2.418 5.364-5.398 0-2.861-2.218-5.206-5.016-5.386" clip-rule="evenodd"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M115.385 99.846H10.792a.615.615 0 0 1-.613-.618c0-.34.275-.617.613-.617h104.593c.339 0 .614.276.614.617a.616.616 0 0 1-.614.618m-108.693 0H.614A.616.616 0 0 1 0 99.228c0-.34.275-.617.614-.617h6.078c.338 0 .613.276.613.617a.615.615 0 0 1-.613.618" clip-rule="evenodd"/><path fill="%23f3f6f5" fill-rule="evenodd" d="M12.48 12.2a6 6 0 0 1-.02-.475c0-3.035 2.448-5.499 5.464-5.499 2.595 0 4.77 1.824 5.326 4.266a4.4 4.4 0 0 1 1.347-.212c2.413 0 4.372 1.971 4.372 4.4 0 2.428-1.96 4.399-4.372 4.399H12.702c-1.889 0-3.422-1.543-3.422-3.444a3.436 3.436 0 0 1 3.2-3.435" clip-rule="evenodd"/><path fill="%23f3f6f5" d="m94.572 72.734-6.26 10.92-10.218 2.765-11.414 3.073-7.13 1.918-.045-.061a4.43 4.43 0 0 0 3.81-3.282l11.722-44.01-6.26-10.92-9.7-2.614 18.352-4.948c2.348-.638 4.798.787 5.418 3.152z"/><path fill="%23fff" d="m58.553 30.39 10.223 2.755 6.263 10.919-4.013 15.072-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.631 2.372-3.071 3.787-5.425 3.153l-33.04-8.91c-2.353-.632-3.762-3.09-3.132-5.458l5.89-22.116 1.18-4.437 5.795-21.764c.631-2.367 3.073-3.785 5.426-3.152l18.54 5.001Z"/><path fill="%23cfd9d7" d="m88.31 83.66-2.294-8.612 8.557-2.307-6.264 10.92ZM68.776 33.139l-2.295 8.618 8.558 2.307z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m35.057 60.641 23.056 6.217a.808.808 0 0 0 .415-1.56l-23.056-6.216a.808.808 0 0 0-.415 1.56Zm2.197-8.253 23.056 6.215a.8.8 0 0 0 .982-.57.81.81 0 0 0-.567-.99L37.669 50.83a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Zm5.349 19.13 1.666.45a.808.808 0 0 0 .415-1.56l-1.666-.45a.808.808 0 0 0-.415 1.56m-9.743-2.626 5.855 1.578a.808.808 0 0 0 .415-1.56l-5.855-1.577a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="M57.652 39.047a1 1 0 0 1-.234-.031c-3.279-.886-5.232-4.292-4.354-7.591l1.588-5.963.02-.064c.674-2.32 3.063-3.69 5.375-3.07a4.38 4.38 0 0 1 2.672 2.069 4.42 4.42 0 0 1 .443 3.36l-1.588 5.963a2.65 2.65 0 0 1-1.236 1.62 2.62 2.62 0 0 1-2.014.267 2.64 2.64 0 0 1-1.61-1.244 2.66 2.66 0 0 1-.264-2.024l1.587-5.963a.897.897 0 0 1 1.102-.64c.48.129.765.626.636 1.109l-1.587 5.962a.86.86 0 0 0 .602 1.051.855.855 0 0 0 1.046-.607l1.587-5.962a2.62 2.62 0 0 0-.263-1.987 2.6 2.6 0 0 0-1.58-1.224c-1.362-.366-2.828.498-3.199 1.89l-.014.047-1.565 5.879c-.622 2.335.76 4.745 3.082 5.372a.906.906 0 0 1-.232 1.781"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M93.71 72.62 82.07 28.934c-.506-1.936-2.512-3.1-4.432-2.579l-7.466 2.014a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.463-2.012c2.774-.754 5.67.93 6.402 3.722l11.724 44.007a.8.8 0 0 1-.08.613l-6.26 10.92a.8.8 0 0 1-.487.375L78.302 87.2l-11.415 3.073-7.13 1.918a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.13-1.918 11.413-3.072 9.897-2.68z" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m70.252 58.927-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.517 1.943-2.515 3.102-4.443 2.582l-33.04-8.91c-1.927-.518-3.08-2.53-2.564-4.469a.802.802 0 1 0-1.55-.418c-.744 2.797.92 5.7 3.7 6.446l33.039 8.91c2.78.75 5.662-.922 6.408-3.723l3.257-12.233 1.199-4.501.59-2.217 2.66-9.986a.802.802 0 1 0-1.55-.418M28.389 54.95l1.18-4.437 5.795-21.764c.517-1.938 2.516-3.1 4.444-2.58l10.029 2.705a.807.807 0 0 0 .416-1.56l-10.03-2.705c-2.78-.749-5.663.926-6.408 3.722L28.02 50.095l-1.181 4.438c-.114.43.14.873.567.988a.803.803 0 0 0 .983-.57Z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.595" x2="56.595" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116v100H0z"/></clipPath></defs></svg>';var c='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M57.084 118.918c-29.097 0-52.685-23.533-52.685-52.564s23.588-52.563 52.685-52.563 52.685 23.533 52.685 52.564-23.588 52.563-52.685 52.563"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M107.584 24.93q.031-.369.031-.745c0-4.758-3.871-8.62-8.64-8.62a8.644 8.644 0 0 0-8.421 6.688 7 7 0 0 0-2.13-.334c-3.816 0-6.913 3.09-6.913 6.898s3.097 6.897 6.913 6.897h18.809c2.986 0 5.411-2.419 5.411-5.398 0-2.862-2.237-5.207-5.06-5.387M116.38 99.846H10.886a.618.618 0 1 1 0-1.234H116.38c.342 0 .62.276.62.617a.62.62 0 0 1-.62.617M6.75 99.846H.62A.62.62 0 0 1 0 99.23c0-.34.278-.617.62-.617h6.13a.618.618 0 1 1 0 1.234" clip-rule="evenodd"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M12.587 12.2a6 6 0 0 1-.02-.475c0-3.035 2.47-5.499 5.511-5.499a5.51 5.51 0 0 1 5.373 4.266 4.4 4.4 0 0 1 1.358-.212 4.407 4.407 0 0 1 4.41 4.4c0 2.428-1.976 4.399-4.41 4.399H12.811a3.45 3.45 0 0 1-3.451-3.444 3.45 3.45 0 0 1 3.227-3.435" clip-rule="evenodd"/><path fill="%23fff" d="M50.685 25.551c-14.513 0-26.286 11.745-26.286 26.226s11.773 26.211 26.286 26.211c5.137 0 9.913-1.467 13.953-4.004a26.1 26.1 0 0 0 8.32-8.3c2.527-4.031 4-8.808 4-13.907 0-14.481-11.759-26.226-26.273-26.226m-.003 46.986c-11.471 0-20.808-9.314-20.808-20.762 0-11.447 9.336-20.761 20.808-20.761 11.476 0 20.811 9.314 20.811 20.761 0 11.448-9.335 20.762-20.81 20.762"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M50.682 71.627c-10.97 0-19.897-8.906-19.897-19.852s8.927-19.852 19.897-19.852c10.973 0 19.9 8.907 19.9 19.852a.911.911 0 0 0 1.823 0c0-11.949-9.745-21.671-21.723-21.671-11.975 0-21.72 9.722-21.72 21.67 0 11.95 9.746 21.672 21.72 21.672a.91.91 0 0 0 .912-.91.91.91 0 0 0-.912-.91" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M23.487 51.777c0 14.982 12.181 27.12 27.198 27.12a27.04 27.04 0 0 0 14.438-4.143 27.04 27.04 0 0 0 8.609-8.59 27.04 27.04 0 0 0 4.137-14.387c0-14.984-12.167-27.136-27.184-27.136a.91.91 0 0 0-.912.91c0 .502.408.91.911.91 14.011 0 25.362 11.337 25.362 25.316A25.23 25.23 0 0 1 72.185 65.2a25.2 25.2 0 0 1-8.031 8.012 25.23 25.23 0 0 1-13.47 3.865c-14.009 0-25.373-11.324-25.373-25.301a.911.911 0 0 0-1.824 0" clip-rule="evenodd"/><path fill="%23e1e7e6" d="M68.494 80.954 79.17 91.42c3.144 3.136 8.289 3.136 11.435 0 3.145-3.139 3.145-8.272 0-11.41L79.928 69.544z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m69.789 80.949 10.025 9.826c2.79 2.783 7.354 2.783 10.146 0a7.14 7.14 0 0 0 2.059-5.748.91.91 0 0 1 1.815-.172 8.96 8.96 0 0 1-2.585 7.207c-3.501 3.49-9.226 3.49-12.718.006L67.855 81.603a.906.906 0 0 1-.006-1.291L79.283 68.9a.914.914 0 0 1 1.285-.006l3.4 3.334c.359.352.364.928.01 1.286a.914.914 0 0 1-1.288.012l-2.756-2.701z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="m78.495 70.969-8.574 8.567-5.417-5.418.134-.134a26.1 26.1 0 0 0 8.32-8.3l.12-.12z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M73.204 66.977a27.1 27.1 0 0 1-8.084 7.779.91.91 0 1 1-.966-1.543 25.2 25.2 0 0 0 8.03-8.01 1 1 0 0 1 .13-.163l.12-.12a.913.913 0 0 1 1.288.001l5.416 5.404a.91.91 0 0 1 0 1.286l-8.573 8.568a.913.913 0 0 1-1.289.001.91.91 0 0 1-.001-1.287l7.93-7.924z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="57.084" x2="57.084" y1="115.671" y2="13.791" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h117v100H0z"/></clipPath></defs></svg>';var s='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%2396dcb4" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%234fa271" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23bfe9d1" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%236ecf96" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%234fa271" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" fill-rule="evenodd" d="m55.436 65.185 14.64-17.738a2.472 2.472 0 0 1 3.812 3.147L57.518 70.429a2.474 2.474 0 0 1-3.655.174L42.948 59.687a2.47 2.47 0 1 1 3.495-3.495z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23abe3c2"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var p='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%23f18585" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%23d34747" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23f6b4b4" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%23f18585" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%23d34747" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" d="M57.512 45.853a3.5 3.5 0 0 1 1.623.077q1.816.465 2.473 2.203.155.58-.077 2.396l-.889 5.758q-1.081 7.034-1.353 7.266-.27.116-1.855.039-.31 0-.347-.04-.194-.115-.348-.888-.116-.696-1.005-6.377-1.12-7.343-1.044-7.845 0-.077.078-.309.502-1.623 2.357-2.164.194-.078.387-.116m.038 20.25q.657-.154 1.508.078 1.7.425 2.357 2.087.116.193.155.425a3.3 3.3 0 0 1 0 1.739q-.465 1.778-2.165 2.396-.192.078-.347.116a3.3 3.3 0 0 1-1.74 0q-1.777-.464-2.396-2.164a3.318 3.318 0 0 1-.116-2.087q.31-1.16 1.16-1.817.657-.54 1.584-.772"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23f39d9d"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var D=t=>t?.startsWith("es")?{documentsTitle:"Nada por aqu\xED todav\xEDa",documentsDescription:"Agrega un nuevo elemento para comenzar",notFoundTitle:"No se encontraron resultados",notFoundDescription:"Ajusta los criterios e int\xE9ntalo nuevamente",doneTitle:"\xA1Est\xE1s al d\xEDa!",doneDescription:"No hay elementos que completar",contentEmptyAlt:"Contenido vac\xEDo"}:t?.startsWith("pt")?{documentsTitle:"Nada aqui ainda",documentsDescription:"Adicione um novo item para come\xE7ar",notFoundTitle:"N\xE3o foram encontrados resultados",notFoundDescription:"Ajuste os crit\xE9rios e tente novamente",doneTitle:"Voc\xEA est\xE1 em dia!",doneDescription:"N\xE3o h\xE1 itens para concluir",contentEmptyAlt:"Conte\xFAdo vazio"}:{documentsTitle:"Nothing here yet",documentsDescription:"Add a new item to get started",notFoundTitle:"No results were found",notFoundDescription:"Adjust the criteria and try again",doneTitle:"You're all caught up!",doneDescription:"Nothing left to complete",contentEmptyAlt:"Content empty"},H=t=>{switch(t){case "lg":return {width:233.46,height:200};case "md":return {width:175.09,height:150};case "sm":return {width:116,height:100}}},N=tv({slots:{root:"font-inter flex h-fit w-fit flex-col items-center p-6 pt-10 text-neutral-600",title:"mt-4.5 text-center font-semibold",description:"font-inter mt-0.5 text-center"},variants:{size:{lg:{title:"font-jakarta text-lg leading-[156%]",description:"text-base leading-[150%] font-medium"},md:{title:"text-base leading-[150%]",description:"text-sm leading-[143%]"},sm:{title:"text-sm leading-[143%]",description:"text-sm leading-[143%]"}},variant:{empty:{},"not-found":{},done:{title:"text-success-700",description:"text-success-700"},danger:{title:"text-danger-700",description:"text-danger-700"}}}}),P=(t,e)=>{switch(t.variant){case "danger":return {title:t.title,description:t.description,imgUrl:p};case "not-found":return {title:e.notFoundTitle,description:t.description??e.notFoundDescription,imgUrl:c};case "done":return {title:t.title??e.doneTitle,description:t.description??e.doneDescription,imgUrl:s};default:return {title:e.documentsTitle,description:t.description??e.documentsDescription,imgUrl:r}}},k=t=>{let{actions:e$1,areActionsHidden:m=false,size:l="sm",className:u}=t,h=t.variant??"empty",{locale:g}=getDefaultOptions(),{root:v,title:y,description:b}=N({size:l,variant:h}),o=D(g?.code),a=P(t,o),{width:M,height:S}=H(l),d=l==="sm"?"sm":"lg";return jsxs("div",{className:v({className:u}),children:[jsx("img",{alt:o.contentEmptyAlt,width:M,height:S,src:a.imgUrl}),jsx("p",{className:y(),children:a.title}),jsx("p",{className:b(),children:a.description}),e$1&&!m&&jsxs("div",{className:"mt-4.5 flex gap-3",children:[e$1.secondary&&jsx(e,{...e$1.secondary,variant:"light",tone:"primary",size:d}),jsx(e,{...e$1.primary,variant:"secondary",tone:"primary",size:d})]})]})};
2
2
  export{k as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-OBZIYJO7.js';import {jsx}from'react/jsx-runtime';var m=({as:t,children:o,className:r,...n})=>jsx(t??"p",{className:a("font-inter text-2xs mt-1 leading-[133.33%] font-normal text-neutral-700","group-data-[error=true]:text-input-text-error","group-data-disabled:text-neutral-400","empty:hidden",r),...n,children:o});export{m as a};
@@ -0,0 +1 @@
1
+ import {a as a$2}from'./chunk-NSF2YRJD.js';import {c,d}from'./chunk-AY7M5GEB.js';import {a as a$3}from'./chunk-VIMWKUML.js';import {a}from'./chunk-VOPVBJKL.js';import {u,i,h}from'./chunk-Z6FU5QVL.js';import {a as a$1}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,Fragment}from'react/jsx-runtime';var H=forwardRef(({className:A,disabled:c$1,error:k,helperText:C,label:w,readOnly:n,required:h,tooltip:v,...N},V)=>{let u$1=c({error:k,disabled:c$1,readOnly:n});return jsxs(DatePicker.Root,{ref:V,...N,disabled:c$1,readOnly:n,positioning:{placement:"bottom-end"},"data-error":k||void 0,className:u$1.root({className:A}),children:[jsx(a,{as:DatePicker.Label,label:w,required:h,tooltip:v}),jsxs(DatePicker.Control,{className:a$1(u$1.control(),"items-center justify-between gap-2 overflow-hidden"),children:[jsx(DatePicker.Input,{className:a$1(u$1.input(),"peer cursor-inherit py-2.5 pl-2"),tabIndex:n?-1:void 0}),!n&&!c$1&&jsx(a$2,{as:DatePicker.ClearTrigger}),k&&jsx(d,{}),jsx(DatePicker.Trigger,{className:a$1("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:n?-1:void 0,children:jsx(u,{className:"size-4.5"})})]}),jsx(a$3,{children:C}),jsx(Portal,{children:jsx(DatePicker.Positioner,{children:jsxs(DatePicker.Content,{className:"elevation-9 z-layer rounded-xl bg-neutral-50 p-3",children:[jsx(DatePicker.View,{view:"day",children:jsx(DatePicker.Context,{children:l=>jsxs(Fragment,{children:[jsx(g,{}),jsxs(DatePicker.Table,{children:[jsx(DatePicker.TableHead,{children:jsx(DatePicker.TableRow,{children:l.weekDays.map((i,o)=>jsx(DatePicker.TableHeader,{className:"font-inter h-10 text-sm font-semibold text-neutral-900",children:i.narrow},o))})}),jsx(DatePicker.TableBody,{children:l.weeks.map((i,o)=>jsx(DatePicker.TableRow,{children:i.map((r,s)=>jsx(DatePicker.TableCell,{value:r,children:jsx(DatePicker.TableCellTrigger,{className:a$1("font-inter mx-0.75 my-1 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full text-center text-sm leading-[142.86%] font-normal text-neutral-900","[&:not([data-today])]:[&:not([data-disabled])]:[&:not([data-selected])]:hover:bg-primary-50","data-outside-range:cursor-not-allowed data-outside-range:text-neutral-400","data-disabled:cursor-not-allowed data-disabled:text-neutral-400","data-selected:bg-primary-500 data-selected:text-neutral-50","data-selected:hover:bg-primary-300 data-selected:hover:text-neutral-900","data-today:ring-primary-500 [&:not([data-selected])]:[&:not([data-disabled])]:data-today:text-primary-500 [&:not([data-selected])]:data-today:ring","[&:not([data-selected])]:[&:not([data-disabled])]:data-today:hover:ring-primary-600 [&:not([data-selected])]:[&:not([data-disabled])]:data-today:hover:text-primary-600","data-disabled:data-today:text-neutral-400 data-disabled:data-today:ring-neutral-400"),children:r.day})},s))},o))})]})]})})}),jsx(DatePicker.View,{view:"month",children:jsx(DatePicker.Context,{children:l=>jsxs(Fragment,{children:[jsx(g,{}),jsx(DatePicker.Table,{children:jsx(DatePicker.TableBody,{children:l.getMonthsGrid({columns:4,format:"short"}).map((i,o)=>jsx(DatePicker.TableRow,{children:i.map((r,s)=>jsx(DatePicker.TableCell,{value:r.value,children:jsx(DatePicker.TableCellTrigger,{className:"font-inter hover:bg-primary-100 data-selected:bg-primary-200 data-selected:text-primary-600 flex h-12 w-16.5 cursor-pointer items-center justify-center rounded-lg text-center text-sm font-normal transition-colors",children:r.label})},s))},o))})})]})})}),jsx(DatePicker.View,{view:"year",children:jsx(DatePicker.Context,{children:l=>jsxs(Fragment,{children:[jsx(g,{}),jsx(DatePicker.Table,{children:jsx(DatePicker.TableBody,{children:l.getYearsGrid({columns:4}).map((i,o)=>jsx(DatePicker.TableRow,{children:i.map((r,s)=>jsx(DatePicker.TableCell,{value:r.value,children:jsx(DatePicker.TableCellTrigger,{className:"font-inter hover:bg-primary-100 data-selected:bg-primary-200 data-selected:text-primary-600 flex h-12 w-16.5 cursor-pointer items-center justify-center rounded-lg text-center text-sm font-normal transition-colors",children:r.label})},s))},o))})})]})})})]})})})]})});H.displayName="DatePicker";var g=()=>jsxs(DatePicker.ViewControl,{className:"my-1 flex items-center justify-between",children:[jsx(DatePicker.PrevTrigger,{className:"cursor-pointer p-1.75",children:jsx(i,{className:"size-4.5"})}),jsx(DatePicker.ViewTrigger,{children:jsx(DatePicker.RangeText,{className:"font-inter cursor-pointer rounded-sm px-2 text-base leading-[150%] font-semibold text-neutral-900 transition-colors"})}),jsx(DatePicker.NextTrigger,{className:"cursor-pointer p-1.75",children:jsx(h,{className:"size-4.5"})})]});export{H as a};
@@ -0,0 +1 @@
1
+ import {a as a$8}from'./chunk-UB5XJQF2.js';import {a as a$6}from'./chunk-JW7HS6NX.js';import {a as a$7}from'./chunk-FHABUQAH.js';import {a as a$4}from'./chunk-ZZFG3AKL.js';import {a as a$3}from'./chunk-NSF2YRJD.js';import {a,b,c,d}from'./chunk-AY7M5GEB.js';import {a as a$5}from'./chunk-VIMWKUML.js';import {a as a$1}from'./chunk-VOPVBJKL.js';import {a as a$2}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 {useRef,useMemo,useState,useCallback,useEffect}from'react';import {jsxs,jsx}from'react/jsx-runtime';function ce(){let n=useComboboxContext(),l=useRef(n);l.current=n;let i=n.value.join("|"),u=n.inputValue.length>0,c=n.collection.size;return useEffect(()=>{if(!i||u||!c)return;let r=l.current.collection.stringify(l.current.value[0]);r&&l.current.setInputValue(r);},[i,u,c]),null}var Pe=a,pe=b,me=n=>{let{label:l,error:i,required:u,tooltip:c$1,disabled:r,readOnly:C,options:p,onInputValueChange:N,onSelect:m,defaultValue:w,helperText:G,noResultsTitle:R,noResultsDescription:K,noResultsIcon:U,noResultsTitleLines:_,noResultsDescriptionLines:J,value:z,size:Q=pe,className:W,emptyState:X,...Y}=n,Z=Object.getOwnPropertyNames(n),d$1=useRef(null),$=useMemo(()=>({sensitivity:"base"}),[]),{contains:h}=useFilter($),[b,ee]=useState(""),T=useMemo(()=>createListCollection({items:p,itemToString:e=>e.label,itemToValue:e=>String(e.value)}),[p]),s=useMemo(()=>b?T.filter((e,y,g)=>h(e,b)||!!g.description&&h(g.description,b)):T,[T,b,h]),f=useCallback(e=>{ee(e??"");},[]),te=useCallback(e=>{let y=p.find(g=>String(g.value)===e.itemValue);y&&m?.(y);},[m,p]),S=useCallback(e=>{f(e.inputValue),e.reason!==void 0&&N?.(e.inputValue??"");},[f,N]),oe=useCombobox({collection:s,defaultValue:w!=null?[String(w)]:void 0,placeholder:n.placeholder,inputValue:n.inputValue,onInputValueChange:S,value:Z.includes("value")?z!=null?[String(z)]:[]:void 0,onSelect:te,inputBehavior:"autocomplete",openOnClick:true,disabled:r,readOnly:C,...Y}),ne=useCallback(()=>{m?.(null),S?.({inputValue:"",reason:"clear-trigger"});},[m,S]);useEffect(()=>{d$1.current&&d$1.current.value===""&&f("");},[f,d$1.current?.value]);let I=c({error:i,disabled:r,readOnly:C,size:Q});return jsxs(Combobox.RootProvider,{value:oe,"data-error":i||void 0,className:I.root({className:W}),children:[jsx(a$1,{as:Combobox.Label,label:l,required:u,tooltip:c$1}),jsx(ce,{}),jsxs(Combobox.Control,{className:a$2(I.control(),"group/control items-center justify-between gap-2 overflow-hidden px-3",r&&"cursor-not-allowed"),children:[jsx(Combobox.Input,{ref:d$1,className:a$2(I.input(),"data-placeholder-shown:text-input-placeholder px-0 text-left disabled:cursor-not-allowed")}),i&&jsx(d,{}),!C&&jsx(a$3,{as:Combobox.ClearTrigger,className:"group-data-disabled/control:hidden",onClick:ne}),jsx(Combobox.Trigger,{className:"group/chevron-host cursor-pointer group-data-disabled/control:cursor-not-allowed",children:jsx(a$4,{})})]}),jsx(a$5,{children:G}),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$2({"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$6,{size:"sm",...e.badgeExpandable})})]}),e.description&&jsx("p",{className:"text-xs leading-[130%]",children:e.description})]})})},e.value)),s.items.length===0&&R&&jsx(a$7,{title:R,description:K,Icon:U,descriptionLines:J,titleLines:_}),s.items.length===0&&jsx(a$8,{size:"sm",variant:"not-found",...X})]})})})})]})};me.displayName="Autocomplete";export{Pe as a,pe as b,me as c};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-NSF2YRJD.js';import {c,d}from'./chunk-AY7M5GEB.js';import {a as a$3}from'./chunk-VIMWKUML.js';import {a}from'./chunk-VOPVBJKL.js';import {v}from'./chunk-Z6FU5QVL.js';import {a as a$2}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 q=["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"],M="00:00",z=forwardRef((s,T)=>{let{className:y,label:S,required:w,tooltip:N,error:o,isItemDisabled:d$1,value:u,helperText:V,placeholder:k=M,onValueChange:c$1,defaultValue:p,disabled:m,readOnly:l,...I}=s,a$4=Object.getOwnPropertyNames(s),g=useMemo(()=>createListCollection({items:q,isItemDisabled:d$1}),[d$1]),D=useCallback(r=>{c$1?.(r.value.at(0)??null);},[c$1]);if(a$4.includes("defaultValue")&&a$4.includes("value"))throw new Error("Cannot set both defaultValue and value props on TimePicker. Use one or the other.");let f=c({error:o,disabled:m,readOnly:l});return jsxs(Select.Root,{ref:T,"data-error":o,disabled:m,readOnly:l,collection:g,className:f.root({className:y}),positioning:{placement:"bottom-end"},onValueChange:D,value:a$4.includes("value")?u?[u]:[]:void 0,defaultValue:p?[p]:void 0,...I,children:[jsx(a,{as:Select.Label,label:S,required:w,tooltip:N}),jsxs(Select.Control,{className:a$2(f.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:k})}),jsxs("div",{className:"pointer-events-none absolute top-0 right-0 flex h-full items-center gap-1",children:[o&&jsx(d,{}),!l&&jsx(a$1,{as:Select.ClearTrigger,className:"pointer-events-auto",onClick:r=>r.stopPropagation()}),jsx(Select.Indicator,{className:a$2("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(v,{className:"size-4.5"})})]})]}),jsx(a$3,{children:V}),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:g.items.map(r=>jsx(Select.Item,{item:r,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:r})},r))})})}),jsx(Select.HiddenSelect,{})]})});z.displayName="TimePicker";export{z as a};
@@ -1 +1 @@
1
- export{a as AutocompleteMultiple}from'../chunk-FOFHDAZV.js';import'../chunk-AVJ4C64A.js';import'../chunk-FHABUQAH.js';import'../chunk-ZZFG3AKL.js';import'../chunk-NSF2YRJD.js';import'../chunk-3AIWAHS6.js';import'../chunk-VOPVBJKL.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-Z6FU5QVL.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
1
+ export{a as AutocompleteMultiple}from'../chunk-TECBAVUS.js';import'../chunk-AVJ4C64A.js';import'../chunk-FHABUQAH.js';import'../chunk-ZZFG3AKL.js';import'../chunk-NSF2YRJD.js';import'../chunk-AY7M5GEB.js';import'../chunk-VIMWKUML.js';import'../chunk-VOPVBJKL.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-Z6FU5QVL.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
@@ -1,6 +1,17 @@
1
1
  import { FC, HTMLAttributes } from 'react';
2
+ import { AutocompleteSize } from './autocomplete.js';
3
+ import 'react/jsx-runtime';
4
+ import '@ark-ui/react/combobox';
5
+ import '../input-field-styles-ZaYx46-q.js';
6
+ import './badge-expandable.js';
7
+ import 'tailwind-variants';
8
+ import 'lucide-react';
9
+ import './empty-state.js';
10
+ import './button.js';
11
+ import './badge-number.js';
2
12
 
3
13
  type AutocompleteSkeletonProps = {
14
+ size?: AutocompleteSize;
4
15
  className?: HTMLAttributes<HTMLDivElement>["className"];
5
16
  };
6
17
  declare const AutocompleteSkeleton: FC<AutocompleteSkeletonProps>;
@@ -1 +1 @@
1
- export{a as AutocompleteSkeleton}from'../chunk-YJI7P33E.js';import'../chunk-KTD2GEB6.js';import'../chunk-OBZIYJO7.js';
1
+ export{a as AutocompleteSkeleton}from'../chunk-JD43K4LQ.js';import'../chunk-YWWEUQOI.js';import'../chunk-UB5XJQF2.js';import'../chunk-JW7HS6NX.js';import'../chunk-KTD2GEB6.js';import'../chunk-FHABUQAH.js';import'../chunk-ZZFG3AKL.js';import'../chunk-NSF2YRJD.js';import'../chunk-AY7M5GEB.js';import'../chunk-VIMWKUML.js';import'../chunk-VOPVBJKL.js';import'../chunk-CM6ALMTT.js';import'../chunk-Z6FU5QVL.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { UseComboboxProps } from '@ark-ui/react/combobox';
3
3
  import { HTMLAttributes } from 'react';
4
+ import { I as InputFieldSize } from '../input-field-styles-ZaYx46-q.js';
4
5
  import { BadgeExpandableProps } from './badge-expandable.js';
5
6
  import { EmptyStateOverrides } from './empty-state.js';
6
7
  import { LucideIcon } from 'lucide-react';
@@ -8,6 +9,9 @@ import 'tailwind-variants';
8
9
  import './button.js';
9
10
  import './badge-number.js';
10
11
 
12
+ declare const AutocompleteSizes: readonly ["md", "lg"];
13
+ type AutocompleteSize = InputFieldSize;
14
+ declare const AutocompleteSizeDefault: "md" | "lg";
11
15
  type AutocompleteOption<T extends string | number = string> = {
12
16
  label: string;
13
17
  description?: string;
@@ -25,6 +29,7 @@ type AutocompleteProps<T extends string | number = string> = Omit<UseComboboxPro
25
29
  defaultValue?: T;
26
30
  helperText?: string;
27
31
  value?: T;
32
+ size?: AutocompleteSize;
28
33
  className?: HTMLAttributes<HTMLDivElement>["className"];
29
34
  emptyState?: EmptyStateOverrides;
30
35
  /**
@@ -53,4 +58,4 @@ declare const Autocomplete: {
53
58
  displayName: string;
54
59
  };
55
60
 
56
- export { Autocomplete, type AutocompleteOption, type AutocompleteProps };
61
+ export { Autocomplete, type AutocompleteOption, type AutocompleteProps, type AutocompleteSize, AutocompleteSizeDefault, AutocompleteSizes };
@@ -1 +1 @@
1
- export{a as Autocomplete}from'../chunk-OUSCZ3CY.js';import'../chunk-N5NMVAVZ.js';import'../chunk-JW7HS6NX.js';import'../chunk-FHABUQAH.js';import'../chunk-ZZFG3AKL.js';import'../chunk-NSF2YRJD.js';import'../chunk-3AIWAHS6.js';import'../chunk-VOPVBJKL.js';import'../chunk-CM6ALMTT.js';import'../chunk-Z6FU5QVL.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
1
+ export{c as Autocomplete,b as AutocompleteSizeDefault,a as AutocompleteSizes}from'../chunk-YWWEUQOI.js';import'../chunk-UB5XJQF2.js';import'../chunk-JW7HS6NX.js';import'../chunk-FHABUQAH.js';import'../chunk-ZZFG3AKL.js';import'../chunk-NSF2YRJD.js';import'../chunk-AY7M5GEB.js';import'../chunk-VIMWKUML.js';import'../chunk-VOPVBJKL.js';import'../chunk-CM6ALMTT.js';import'../chunk-Z6FU5QVL.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{B as ButtonActive,y as ButtonActiveSizes,A as ButtonActiveTones,z as ButtonActiveVariants}from'../chunk-NEIHTDFN.js';import'../chunk-SIA2GA6D.js';import'../chunk-AWJ56IVY.js';import'../chunk-HC47FSC4.js';import'../chunk-ZWCNQTTS.js';import'../chunk-ABJHG7HB.js';import'../chunk-LU2N5UJD.js';import'../chunk-FAWSP26S.js';import'../chunk-GVAKG6I7.js';import'../chunk-7ZTCQMKE.js';import'../chunk-SAEVYIWG.js';import'../chunk-VJUB2NGE.js';import'../chunk-4MOVG3L6.js';import'../chunk-ULG55JO5.js';import'../chunk-H7WXFURI.js';import'../chunk-TAB2HFL4.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-3JRO6GMU.js';import'../chunk-MRAORURS.js';import'../chunk-5T72Q62I.js';import'../chunk-JKTBL7WC.js';import'../chunk-LUX36G77.js';import'../chunk-QDSBR67A.js';import'../chunk-GTVHYHF4.js';import'../chunk-333FFK3X.js';import'../chunk-OBO3JEBX.js';import'../chunk-GFVJRSZI.js';import'../chunk-KFAARODU.js';import'../chunk-T2Q6B32U.js';import'../chunk-G32MOZFP.js';import'../chunk-7SMKN4NT.js';import'../chunk-THL6GYT6.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-S746KYN2.js';import'../chunk-JCFW6XDL.js';import'../chunk-AIZJZNOR.js';import'../chunk-KRDROWBJ.js';import'../chunk-7JM2X4UD.js';import'../chunk-6MPATUAQ.js';import'../chunk-7ATGBD25.js';import'../chunk-2IFCTN77.js';import'../chunk-7EQ5IQED.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-EZ4WR6QU.js';import'../chunk-YJI7P33E.js';import'../chunk-OUSCZ3CY.js';import'../chunk-N5NMVAVZ.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-Q62IN2T6.js';import'../chunk-O4V6WJIM.js';import'../chunk-37DN7NT2.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-G4XY2ICQ.js';import'../chunk-LNMCO4JI.js';import'../chunk-PI7DECIN.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-FOFHDAZV.js';import'../chunk-AVJ4C64A.js';import'../chunk-FHABUQAH.js';import'../chunk-ZZFG3AKL.js';import'../chunk-NSF2YRJD.js';import'../chunk-3AIWAHS6.js';import'../chunk-VOPVBJKL.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-Z6FU5QVL.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
1
+ export{B as ButtonActive,y as ButtonActiveSizes,A as ButtonActiveTones,z as ButtonActiveVariants}from'../chunk-RSYSUM3Q.js';import'../chunk-46D7K2YU.js';import'../chunk-SIA2GA6D.js';import'../chunk-ZJYTJYHK.js';import'../chunk-HC47FSC4.js';import'../chunk-ZWCNQTTS.js';import'../chunk-ABJHG7HB.js';import'../chunk-LU2N5UJD.js';import'../chunk-FAWSP26S.js';import'../chunk-NFHSJ4O6.js';import'../chunk-JKTBL7WC.js';import'../chunk-EMRXOENR.js';import'../chunk-SD7BX4UU.js';import'../chunk-4MOVG3L6.js';import'../chunk-ULG55JO5.js';import'../chunk-H7WXFURI.js';import'../chunk-TAB2HFL4.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-3JRO6GMU.js';import'../chunk-MRAORURS.js';import'../chunk-5T72Q62I.js';import'../chunk-JCFW6XDL.js';import'../chunk-JOGHDTZB.js';import'../chunk-QDSBR67A.js';import'../chunk-GTVHYHF4.js';import'../chunk-YCAUNU3X.js';import'../chunk-OBO3JEBX.js';import'../chunk-GFVJRSZI.js';import'../chunk-KFAARODU.js';import'../chunk-T2Q6B32U.js';import'../chunk-G32MOZFP.js';import'../chunk-7SMKN4NT.js';import'../chunk-THL6GYT6.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-LV5JZ2AA.js';import'../chunk-SRCJQWFE.js';import'../chunk-AIZJZNOR.js';import'../chunk-KRDROWBJ.js';import'../chunk-7JM2X4UD.js';import'../chunk-6MPATUAQ.js';import'../chunk-7ATGBD25.js';import'../chunk-2IFCTN77.js';import'../chunk-7EQ5IQED.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-EZ4WR6QU.js';import'../chunk-JD43K4LQ.js';import'../chunk-YWWEUQOI.js';import'../chunk-UB5XJQF2.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-ES7L2PIL.js';import'../chunk-O4V6WJIM.js';import'../chunk-37DN7NT2.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-G4XY2ICQ.js';import'../chunk-LNMCO4JI.js';import'../chunk-PI7DECIN.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-TECBAVUS.js';import'../chunk-AVJ4C64A.js';import'../chunk-FHABUQAH.js';import'../chunk-ZZFG3AKL.js';import'../chunk-NSF2YRJD.js';import'../chunk-AY7M5GEB.js';import'../chunk-VIMWKUML.js';import'../chunk-VOPVBJKL.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-Z6FU5QVL.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{v as ButtonMenu,s as ButtonMenuSizes,u as ButtonMenuTones,t as ButtonMenuWeights}from'../chunk-NEIHTDFN.js';import'../chunk-SIA2GA6D.js';import'../chunk-AWJ56IVY.js';import'../chunk-HC47FSC4.js';import'../chunk-ZWCNQTTS.js';import'../chunk-ABJHG7HB.js';import'../chunk-LU2N5UJD.js';import'../chunk-FAWSP26S.js';import'../chunk-GVAKG6I7.js';import'../chunk-7ZTCQMKE.js';import'../chunk-SAEVYIWG.js';import'../chunk-VJUB2NGE.js';import'../chunk-4MOVG3L6.js';import'../chunk-ULG55JO5.js';import'../chunk-H7WXFURI.js';import'../chunk-TAB2HFL4.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-3JRO6GMU.js';import'../chunk-MRAORURS.js';import'../chunk-5T72Q62I.js';import'../chunk-JKTBL7WC.js';import'../chunk-LUX36G77.js';import'../chunk-QDSBR67A.js';import'../chunk-GTVHYHF4.js';import'../chunk-333FFK3X.js';import'../chunk-OBO3JEBX.js';import'../chunk-GFVJRSZI.js';import'../chunk-KFAARODU.js';import'../chunk-T2Q6B32U.js';import'../chunk-G32MOZFP.js';import'../chunk-7SMKN4NT.js';import'../chunk-THL6GYT6.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-S746KYN2.js';import'../chunk-JCFW6XDL.js';import'../chunk-AIZJZNOR.js';import'../chunk-KRDROWBJ.js';import'../chunk-7JM2X4UD.js';import'../chunk-6MPATUAQ.js';import'../chunk-7ATGBD25.js';import'../chunk-2IFCTN77.js';import'../chunk-7EQ5IQED.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-EZ4WR6QU.js';import'../chunk-YJI7P33E.js';import'../chunk-OUSCZ3CY.js';import'../chunk-N5NMVAVZ.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-Q62IN2T6.js';import'../chunk-O4V6WJIM.js';import'../chunk-37DN7NT2.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-G4XY2ICQ.js';import'../chunk-LNMCO4JI.js';import'../chunk-PI7DECIN.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-FOFHDAZV.js';import'../chunk-AVJ4C64A.js';import'../chunk-FHABUQAH.js';import'../chunk-ZZFG3AKL.js';import'../chunk-NSF2YRJD.js';import'../chunk-3AIWAHS6.js';import'../chunk-VOPVBJKL.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-Z6FU5QVL.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
1
+ export{v as ButtonMenu,s as ButtonMenuSizes,u as ButtonMenuTones,t as ButtonMenuWeights}from'../chunk-RSYSUM3Q.js';import'../chunk-46D7K2YU.js';import'../chunk-SIA2GA6D.js';import'../chunk-ZJYTJYHK.js';import'../chunk-HC47FSC4.js';import'../chunk-ZWCNQTTS.js';import'../chunk-ABJHG7HB.js';import'../chunk-LU2N5UJD.js';import'../chunk-FAWSP26S.js';import'../chunk-NFHSJ4O6.js';import'../chunk-JKTBL7WC.js';import'../chunk-EMRXOENR.js';import'../chunk-SD7BX4UU.js';import'../chunk-4MOVG3L6.js';import'../chunk-ULG55JO5.js';import'../chunk-H7WXFURI.js';import'../chunk-TAB2HFL4.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-3JRO6GMU.js';import'../chunk-MRAORURS.js';import'../chunk-5T72Q62I.js';import'../chunk-JCFW6XDL.js';import'../chunk-JOGHDTZB.js';import'../chunk-QDSBR67A.js';import'../chunk-GTVHYHF4.js';import'../chunk-YCAUNU3X.js';import'../chunk-OBO3JEBX.js';import'../chunk-GFVJRSZI.js';import'../chunk-KFAARODU.js';import'../chunk-T2Q6B32U.js';import'../chunk-G32MOZFP.js';import'../chunk-7SMKN4NT.js';import'../chunk-THL6GYT6.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-LV5JZ2AA.js';import'../chunk-SRCJQWFE.js';import'../chunk-AIZJZNOR.js';import'../chunk-KRDROWBJ.js';import'../chunk-7JM2X4UD.js';import'../chunk-6MPATUAQ.js';import'../chunk-7ATGBD25.js';import'../chunk-2IFCTN77.js';import'../chunk-7EQ5IQED.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-EZ4WR6QU.js';import'../chunk-JD43K4LQ.js';import'../chunk-YWWEUQOI.js';import'../chunk-UB5XJQF2.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-ES7L2PIL.js';import'../chunk-O4V6WJIM.js';import'../chunk-37DN7NT2.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-G4XY2ICQ.js';import'../chunk-LNMCO4JI.js';import'../chunk-PI7DECIN.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-TECBAVUS.js';import'../chunk-AVJ4C64A.js';import'../chunk-FHABUQAH.js';import'../chunk-ZZFG3AKL.js';import'../chunk-NSF2YRJD.js';import'../chunk-AY7M5GEB.js';import'../chunk-VIMWKUML.js';import'../chunk-VOPVBJKL.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-Z6FU5QVL.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{e as Chip,d as ChipDefaults,c as ChipSizes,b as ChipTones,a as ChipVariants}from'../chunk-S746KYN2.js';
1
+ export{e as Chip,d as ChipDefaults,c as ChipSizes,b as ChipTones,a as ChipVariants}from'../chunk-SRCJQWFE.js';
@@ -0,0 +1,56 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { LucideIcon } from 'lucide-react';
3
+ import { ChipProps } from './chip.js';
4
+ import 'react';
5
+ import 'tailwind-variants';
6
+
7
+ type ChoiceChipOption<T extends string | number> = {
8
+ value: T;
9
+ label: string;
10
+ /** Static, data-driven disable for a single option (e.g. no availability). */
11
+ disabled?: boolean;
12
+ StartIcon?: LucideIcon;
13
+ };
14
+ type ChoiceChipsState<T extends string | number> = {
15
+ selectedValue: T | null;
16
+ isSelected: boolean;
17
+ index: number;
18
+ };
19
+ declare const ChoiceChipsOrientations: readonly ["vertical", "horizontal"];
20
+ type ChoiceChipsOrientation = (typeof ChoiceChipsOrientations)[number];
21
+ type ChoiceChipsProps<T extends string | number> = {
22
+ label?: string;
23
+ orientation?: ChoiceChipsOrientation;
24
+ options: ChoiceChipOption<T>[];
25
+ value: T | null;
26
+ onChange: (value: T | null) => void;
27
+ required?: boolean;
28
+ tooltip?: string;
29
+ /** Disables the whole group. */
30
+ disabled?: boolean;
31
+ /**
32
+ * Dynamic disable. Pass a boolean to disable every option, or a predicate
33
+ * resolved per option with the current selection state — use it to express
34
+ * behaviours like "disable the others once one is selected".
35
+ */
36
+ isOptionDisabled?: boolean | ((option: ChoiceChipOption<T>, state: ChoiceChipsState<T>) => boolean);
37
+ error?: boolean;
38
+ helperText?: string;
39
+ variant?: ChipProps["variant"];
40
+ tone?: ChipProps["tone"];
41
+ size?: ChipProps["size"];
42
+ className?: string;
43
+ };
44
+ /**
45
+ * Ready-made `isOptionDisabled` predicate that disables every option other than
46
+ * the selected one — i.e. selecting a chip locks the rest.
47
+ */
48
+ declare const disableUnselected: <T extends string | number>(_option: ChoiceChipOption<T>, { selectedValue, isSelected }: ChoiceChipsState<T>) => boolean;
49
+ /**
50
+ * Group of selectable `Chip`s with a `FormLabel`. Behaves like a radio group
51
+ * but the selected chip can be toggled off (clicking it again clears the
52
+ * selection). The amount of options is variable (min 2).
53
+ */
54
+ declare const ChoiceChips: <T extends string | number>({ label, orientation, options, value, onChange, required, tooltip, disabled, isOptionDisabled, error, helperText, variant, tone, size, className, }: ChoiceChipsProps<T>) => react_jsx_runtime.JSX.Element;
55
+
56
+ export { type ChoiceChipOption, ChoiceChips, type ChoiceChipsOrientation, ChoiceChipsOrientations, type ChoiceChipsProps, type ChoiceChipsState, disableUnselected };
@@ -0,0 +1 @@
1
+ export{c as ChoiceChips,a as ChoiceChipsOrientations,b as disableUnselected}from'../chunk-LV5JZ2AA.js';import'../chunk-SRCJQWFE.js';import'../chunk-VIMWKUML.js';import'../chunk-VOPVBJKL.js';import'../chunk-CM6ALMTT.js';import'../chunk-Z6FU5QVL.js';import'../chunk-ICF6RQIW.js';import'../chunk-OBZIYJO7.js';