sodtrack-web-ui 0.101.2 → 0.102.0

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 (46) hide show
  1. package/dist/chunk-5XHPD6B7.js +1 -0
  2. package/dist/chunk-6QA2JM6W.js +1 -0
  3. package/dist/{chunk-SLKFBCVC.js → chunk-AGILGHTN.js} +1 -1
  4. package/dist/chunk-F2GFU3W7.js +1 -0
  5. package/dist/{chunk-PRMEXLPY.js → chunk-FSDUNXCV.js} +1 -1
  6. package/dist/{chunk-LABFGCUJ.js → chunk-H7YX3UOO.js} +1 -1
  7. package/dist/{chunk-IUFS4MIW.js → chunk-SIA2GA6D.js} +1 -1
  8. package/dist/components/badge-expandable.d.ts +1 -1
  9. package/dist/components/button-active.js +1 -1
  10. package/dist/components/button-menu.js +1 -1
  11. package/dist/components/calendar_old.d.ts +9 -0
  12. package/dist/components/calendar_old.js +1 -0
  13. package/dist/components/date-picker_old.d.ts +21 -0
  14. package/dist/components/date-picker_old.js +1 -0
  15. package/dist/components/index.d.ts +24 -24
  16. package/dist/components/index.js +1 -1
  17. package/dist/components/list-item-arrow.js +1 -1
  18. package/dist/components/list-item-button.js +1 -1
  19. package/dist/components/list-item-checkbox-left.js +1 -1
  20. package/dist/components/list-item-checkbox.js +1 -1
  21. package/dist/components/list-item.js +1 -1
  22. package/dist/components/select-new.d.ts +1 -1
  23. package/dist/components/select_old.d.ts +23 -0
  24. package/dist/components/select_old.js +1 -0
  25. package/dist/components/signature-pad.d.ts +1 -1
  26. package/dist/components/{text-field.d.ts → text-field_old.d.ts} +3 -3
  27. package/dist/components/text-field_old.js +1 -0
  28. package/dist/components/{textarea.d.ts → textarea_old.d.ts} +5 -5
  29. package/dist/components/textarea_old.js +1 -0
  30. package/dist/components/time-picker-new.d.ts +1 -1
  31. package/dist/components/{time-picker.d.ts → time-picker_old.d.ts} +11 -11
  32. package/dist/components/time-picker_old.js +1 -0
  33. package/dist/components/tracker-item.js +1 -1
  34. package/package.json +1 -1
  35. package/dist/chunk-3TL4YHUJ.js +0 -1
  36. package/dist/chunk-4NTXEKGN.js +0 -1
  37. package/dist/chunk-GNEH3JEX.js +0 -1
  38. package/dist/components/calendar.d.ts +0 -9
  39. package/dist/components/calendar.js +0 -1
  40. package/dist/components/date-picker.d.ts +0 -21
  41. package/dist/components/date-picker.js +0 -1
  42. package/dist/components/select.d.ts +0 -23
  43. package/dist/components/select.js +0 -1
  44. package/dist/components/text-field.js +0 -1
  45. package/dist/components/textarea.js +0 -1
  46. package/dist/components/time-picker.js +0 -1
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-GFVJRSZI.js';import {a as a$1}from'./chunk-AGILGHTN.js';import {a as a$2}from'./chunk-FSDUNXCV.js';import {n}from'./chunk-BKVZDB3V.js';import {a as a$3}from'./chunk-OBZIYJO7.js';import {useState,useRef,useMemo,useCallback,useEffect}from'react';import*as g from'@radix-ui/react-portal';import {format}from'date-fns';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var S=({value:a$4,onChange:m,locale:x,disabledDates:w,disabled:D,...E})=>{let[c,f]=useState(false),[s,u]=useState(a$4),[n$1,P]=useState(),[L,R]=useState("bottom"),[F,k]=useState(0),r=useRef(null),o=useRef(null);a(r,()=>{f(false);});let y=t=>{u(t),m?.(t);},H=useMemo(()=>s?format(s,"P"):"",[s]),z=()=>{u(void 0),m?.(void 0);},e=useCallback(()=>{if(!o.current)return;let t=o.current.getBoundingClientRect();if(!r.current)return;let l=r.current.getBoundingClientRect().height;k(l),P(t);let I=window.innerHeight-t.bottom>l,N=t.top+t.height>l;R(I?"bottom":N?"top":"bottom");},[o.current,r.current]);return useEffect(()=>{u(a$4);},[a$4]),useEffect(()=>{if(o?.current)return e(),o.current.addEventListener("mousedown",e),o.current.addEventListener("input",e),window.addEventListener("scroll",e,true),window.addEventListener("resize",e),()=>{o.current?.removeEventListener("mousedown",e),o.current?.removeEventListener("input",e),window.removeEventListener("scroll",e,true),window.removeEventListener("resize",e);}},[o.current,e]),useEffect(()=>{if(c&&r.current){let t=setTimeout(()=>{e();},0);return ()=>clearTimeout(t)}},[c,e]),jsxs(Fragment,{children:[jsx(a$1,{disabled:D,ref:o,startIcon:jsx(n,{}),onClean:z,readOnly:true,value:H,onClick:t=>{P(t.currentTarget.getBoundingClientRect()),f(l=>!l);},...E}),jsx(g.Root,{asChild:true,children:jsx("div",{ref:r,className:a$3("pointer-events-auto fixed z-50 hidden",c&&"block"),style:n$1?{top:L==="bottom"?`${n$1.height+n$1.y}px`:n$1.top-F,left:n$1?.left}:void 0,children:jsx(a$2,{className:"w-[20rem] max-w-full",mode:"single",selected:s,onSelect:y,locale:x,disabled:w})})})]})};S.displayName="DatePicker_old";export{S as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-AGILGHTN.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import k,{useId,useRef,useState,useEffect}from'react';import*as h from'@radix-ui/react-portal';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var b=56,s=6,D=({options:n,noResults:m,selectedOption:x,onSelect:y,onChange:O,onClick:E,className:S,..._})=>{let P=useId(),l=useRef(null),t=useRef(null),[R,L]=useState("bottom"),[o,C]=useState(),[p,f]=useState(x??null),N=e=>{l.current.style.display="none",t.current.value=e.label,f(e),y?.(e);};return useEffect(()=>{if(!t.current)return;let e=()=>{if(!t.current)return;let r=b*(n.length<s?n.length:s)+16,i=t.current.getBoundingClientRect();C(i);let I=window.innerHeight-i.bottom>r,T=i.top>r;L(I?"bottom":T?"top":"bottom");};return e(),t.current.addEventListener("mousedown",e),window.addEventListener("scroll",e,true),window.addEventListener("resize",e),()=>{t.current?.removeEventListener("mousedown",e),window.removeEventListener("scroll",e,true),window.removeEventListener("resize",e);}},[t.current]),useEffect(()=>{function e(r){l.current&&!l.current.contains(r.target)&&(l.current.style.display="none");}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e);}},[l.current]),jsxs(Fragment,{children:[jsx(a,{className:a$1("w-full cursor-pointer!",S),readOnly:true,ref:t,autoComplete:"off",list:"",selectMode:true,value:p?.label,showClearButton:false,onClick:e=>{l.current.style.display="flex",E?.(e);},onChange:e=>{f(null),O?.(e);},..._}),jsx(h.Root,{asChild:true,children:jsxs("ul",{ref:l,className:"elevation-8 pointer-events-auto absolute z-10000 my-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:o?{width:`${o.width}px`,left:o.left,top:R==="bottom"?`${o.height+o.top+window.scrollY}px`:window.scrollY+o.top-(n.length<s?n.length:s)*b-16}:void 0,children:[n.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col items-center justify-center rounded-lg bg-neutral-50 px-8 py-6",children:[k.cloneElement(m.icon,{className:"mb-2 h-8 w-8 text-neutral-300"}),jsx("p",{className:"text-center text-sm leading-[120%] text-neutral-500",children:m.message})]}),n.map(e=>jsx("li",{onClick:()=>{e.disabled||N(e);},className:a$1("w-full shrink-0 py-4 pr-6 pl-4 text-left",p?.value===e.value&&"bg-primary-200",e.disabled?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 cursor-pointer"),children:e.label},`select-option-${P}-${e.key??e.value}`))]})})]})};export{D as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-T2Q6B32U.js';import {q,d,g as g$1}from'./chunk-BKVZDB3V.js';import {a}from'./chunk-OBZIYJO7.js';import g,{forwardRef,useId,useRef,useState,useCallback,useEffect}from'react';import {Label}from'@radix-ui/react-label';import {jsxs,jsx}from'react/jsx-runtime';var W=forwardRef(({label:x,placeholder:R,error:t,selectMode:b=false,showClearButton:H=true,helperText:M,className:I,size:e="md",onClean:P,onChange:f,startIcon:u,endIcon:p,startComponent:c,fixedTopLabel:C,startText:i,disabled:o,required:v,...D},m)=>{let w=useId(),l=useRef(null),[s,h]=useState(false),T=!l.current?.value,F=useCallback(()=>{if(l.current&&!o){l.current.value="",h(false),P?.();let a={target:l.current,currentTarget:l.current,type:"change",bubbles:true,cancelable:false,defaultPrevented:false,eventPhase:0,isTrusted:true,preventDefault:()=>{},stopPropagation:()=>{},persist:()=>{},isDefaultPrevented:()=>false,isPropagationStopped:()=>false,timeStamp:Date.now(),nativeEvent:new Event("change")};f?.(a);}},[o,f,l.current]);return useEffect(()=>{l.current&&h(l.current.value.length>0);},[]),jsxs("div",{className:a("flex flex-col",I),children:[jsxs("div",{className:a("relative flex flex-col rounded-lg bg-neutral-50",e==="lg"&&"h-12",e==="md"&&"h-10",e==="sm"&&"h-8"),children:[jsx("input",{id:w,disabled:o,required:v,className:a("hover:caret-neutral-text-neutral-600 hover:ring-neutral-text-neutral-600 hover:text-neutral no-spinner peer focus:placeholder-opacity-100 focus:caret-primary-800 focus:ring-primary-800 disabled:bg-neutral-80 absolute z-20 h-full w-full rounded-lg bg-neutral-50/0 text-left tracking-normal text-neutral-900 placeholder-neutral-500 caret-neutral-900 ring-1 ring-neutral-400 outline-0 transition-all ease-linear ring-inset not-placeholder-shown:z-10 focus:text-neutral-900 focus:placeholder-neutral-500 focus:ring-2 disabled:text-neutral-400 disabled:ring-neutral-100",x&&"placeholder-neutral-500/0",t&&"placeholder-error-700/0 ring-error-700 hover:ring-error-700 focus:ring-error-700 hover:text-neutral-900",e==="lg"&&"text-base",e==="md"&&"text-sm",e==="sm"&&"text-sm",u?e==="lg"?"pl-[2.75rem]":"pl-[2.38rem]":c?"pl-[6.5rem]":"pl-4",i&&"pl-[1.94rem]",p?e==="lg"?"pr-[2.75rem]":"pr-[2.38rem]":"pr-4"),placeholder:R??"",ref:a=>{typeof m=="function"?m(a):m&&(m.current=a),l.current=a;},onChange:a=>{h(a.target.value.length>0),f?.(a);},...D}),c&&g.cloneElement(c,{className:a("absolute z-20 flex left-3 top-1/2 transform -translate-y-1/2 items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),u&&g.cloneElement(u,{size:18,className:a("absolute flex peer-focus:text-neutral-900 z-20 text-neutral-500 left-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),i&&jsx("div",{className:"flex h-full items-center pl-3",children:jsx("p",{className:a("text-neutral-700",t&&"text-error-700"),children:i})}),x&&jsxs(Label,{htmlFor:w,className:a("peer-hover:text-primary-800 absolute -top-[0.5625rem] z-10 ml-3 bg-neutral-50 px-1 tracking-normal text-neutral-50 transition-all duration-75 ease-linear peer-disabled:z-20 peer-disabled:text-neutral-400","peer-focus:text-primary-800 peer-disabled:peer-not-focus:peer-placeholder-shown:bg-neutral-80 peer-focus:-top-[0.5625rem] peer-focus:z-20 peer-focus:ml-3 peer-focus:text-xs",!t&&"peer-not-disabled:peer-not-focus:text-neutral-400 peer-not-disabled:peer-not-focus:peer-not-placeholder-shown:text-neutral-900",s&&"peer-disabled:bg-neutral-80",e==="lg"?"text-base peer-placeholder-shown:top-3 placeholder-shown:text-xs":e==="md"?"text-sm peer-placeholder-shown:top-2.5 placeholder-shown:text-xs":"text-sm peer-placeholder-shown:top-1.5 placeholder-shown:text-xs",!T&&"text-xs",t&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",u?e==="lg"?"peer-placeholder-shown:ml-[2.75rem]":"peer-placeholder-shown:ml-[2.38rem]":c?"peer-placeholder-shown:ml-[6rem]":"ml-3",C&&"-top-[0.375rem]! z-20 ml-3 text-xs! transition-none!",i&&"peer-placeholder-shown:ml-[1.94rem]"),children:[v&&"*",x]}),(H&&(!T||s)||t)&&jsxs("div",{className:a("absolute z-10 hidden h-full items-center peer-focus:flex",t&&!o&&"flex",b||p?e==="lg"?"right-[2.81rem]":e==="md"?"right-[2.125rem]":"right-[1.875rem]":"right-4"),children:[t&&jsx(q,{size:e==="sm"?14:18,className:"text-error-700"}),!t&&jsx(d,{onMouseDown:F,size:e==="sm"?14:18,className:"cursor-pointer text-neutral-900"})]}),p&&g.cloneElement(p,{size:e==="sm"?14:18,className:a("absolute peer-focus:text-neutral-900 z-20 text-neutral-500 flex right-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),b&&jsx("div",{className:a("peer-hover:text-neutral peer-focus:text-primary-900 absolute right-4 z-20 flex h-full items-center rounded-full transition-all ease-linear peer-focus:rotate-180 peer-disabled:text-neutral-400"),children:jsx(g$1,{className:e==="lg"?"h-6 w-6":"h-4.5 w-4.5"})})]}),jsx(a$1,{helperText:M,error:t,disabled:o})]})});export{W as a};
1
+ import {a as a$1}from'./chunk-T2Q6B32U.js';import {q,d,g as g$1}from'./chunk-BKVZDB3V.js';import {a}from'./chunk-OBZIYJO7.js';import g,{forwardRef,useId,useRef,useState,useCallback,useEffect}from'react';import {Label}from'@radix-ui/react-label';import {jsxs,jsx}from'react/jsx-runtime';var U=forwardRef(({label:x,placeholder:R,error:t,selectMode:b=false,showClearButton:H=true,helperText:M,className:I,size:e="md",onClean:P,onChange:f,startIcon:u,endIcon:p,startComponent:c,fixedTopLabel:C,startText:i,disabled:o,required:v,...D},m)=>{let w=useId(),l=useRef(null),[s,h]=useState(false),T=!l.current?.value,F=useCallback(()=>{if(l.current&&!o){l.current.value="",h(false),P?.();let a={target:l.current,currentTarget:l.current,type:"change",bubbles:true,cancelable:false,defaultPrevented:false,eventPhase:0,isTrusted:true,preventDefault:()=>{},stopPropagation:()=>{},persist:()=>{},isDefaultPrevented:()=>false,isPropagationStopped:()=>false,timeStamp:Date.now(),nativeEvent:new Event("change")};f?.(a);}},[o,f,l.current]);return useEffect(()=>{l.current&&h(l.current.value.length>0);},[]),jsxs("div",{className:a("flex flex-col",I),children:[jsxs("div",{className:a("relative flex flex-col rounded-lg bg-neutral-50",e==="lg"&&"h-12",e==="md"&&"h-10",e==="sm"&&"h-8"),children:[jsx("input",{id:w,disabled:o,required:v,className:a("hover:caret-neutral-text-neutral-600 hover:ring-neutral-text-neutral-600 hover:text-neutral no-spinner peer focus:placeholder-opacity-100 focus:caret-primary-800 focus:ring-primary-800 disabled:bg-neutral-80 absolute z-20 h-full w-full rounded-lg bg-neutral-50/0 text-left tracking-normal text-neutral-900 placeholder-neutral-500 caret-neutral-900 ring-1 ring-neutral-400 outline-0 transition-all ease-linear ring-inset not-placeholder-shown:z-10 focus:text-neutral-900 focus:placeholder-neutral-500 focus:ring-2 disabled:text-neutral-400 disabled:ring-neutral-100",x&&"placeholder-neutral-500/0",t&&"placeholder-error-700/0 ring-error-700 hover:ring-error-700 focus:ring-error-700 hover:text-neutral-900",e==="lg"&&"text-base",e==="md"&&"text-sm",e==="sm"&&"text-sm",u?e==="lg"?"pl-[2.75rem]":"pl-[2.38rem]":c?"pl-[6.5rem]":"pl-4",i&&"pl-[1.94rem]",p?e==="lg"?"pr-[2.75rem]":"pr-[2.38rem]":"pr-4"),placeholder:R??"",ref:a=>{typeof m=="function"?m(a):m&&(m.current=a),l.current=a;},onChange:a=>{h(a.target.value.length>0),f?.(a);},...D}),c&&g.cloneElement(c,{className:a("absolute z-20 flex left-3 top-1/2 transform -translate-y-1/2 items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),u&&g.cloneElement(u,{size:18,className:a("absolute flex peer-focus:text-neutral-900 z-20 text-neutral-500 left-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),i&&jsx("div",{className:"flex h-full items-center pl-3",children:jsx("p",{className:a("text-neutral-700",t&&"text-error-700"),children:i})}),x&&jsxs(Label,{htmlFor:w,className:a("peer-hover:text-primary-800 absolute -top-[0.5625rem] z-10 ml-3 bg-neutral-50 px-1 tracking-normal text-neutral-50 transition-all duration-75 ease-linear peer-disabled:z-20 peer-disabled:text-neutral-400","peer-focus:text-primary-800 peer-disabled:peer-not-focus:peer-placeholder-shown:bg-neutral-80 peer-focus:-top-[0.5625rem] peer-focus:z-20 peer-focus:ml-3 peer-focus:text-xs",!t&&"peer-not-disabled:peer-not-focus:text-neutral-400 peer-not-disabled:peer-not-focus:peer-not-placeholder-shown:text-neutral-900",s&&"peer-disabled:bg-neutral-80",e==="lg"?"text-base peer-placeholder-shown:top-3 placeholder-shown:text-xs":e==="md"?"text-sm peer-placeholder-shown:top-2.5 placeholder-shown:text-xs":"text-sm peer-placeholder-shown:top-1.5 placeholder-shown:text-xs",!T&&"text-xs",t&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",u?e==="lg"?"peer-placeholder-shown:ml-[2.75rem]":"peer-placeholder-shown:ml-[2.38rem]":c?"peer-placeholder-shown:ml-[6rem]":"ml-3",C&&"-top-[0.375rem]! z-20 ml-3 text-xs! transition-none!",i&&"peer-placeholder-shown:ml-[1.94rem]"),children:[v&&"*",x]}),(H&&(!T||s)||t)&&jsxs("div",{className:a("absolute z-10 hidden h-full items-center peer-focus:flex",t&&!o&&"flex",b||p?e==="lg"?"right-[2.81rem]":e==="md"?"right-[2.125rem]":"right-[1.875rem]":"right-4"),children:[t&&jsx(q,{size:e==="sm"?14:18,className:"text-error-700"}),!t&&jsx(d,{onMouseDown:F,size:e==="sm"?14:18,className:"cursor-pointer text-neutral-900"})]}),p&&g.cloneElement(p,{size:e==="sm"?14:18,className:a("absolute peer-focus:text-neutral-900 z-20 text-neutral-500 flex right-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),b&&jsx("div",{className:a("peer-hover:text-neutral peer-focus:text-primary-900 absolute right-4 z-20 flex h-full items-center rounded-full transition-all ease-linear peer-focus:rotate-180 peer-disabled:text-neutral-400"),children:jsx(g$1,{className:e==="lg"?"h-6 w-6":"h-4.5 w-4.5"})})]}),jsx(a$1,{helperText:M,error:t,disabled:o})]})});export{U as a};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-GFVJRSZI.js';import {a as a$2}from'./chunk-AGILGHTN.js';import {o}from'./chunk-BKVZDB3V.js';import {a as a$3}from'./chunk-OBZIYJO7.js';import {useState,useRef,useMemo,useEffect}from'react';import*as L from'@radix-ui/react-portal';import {format}from'date-fns';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var B=["00:00:00","00:30:00","01:00:00","01:30:00","02:00:00","02:30:00","03:00:00","03:30:00","04:00:00","04:30:00","05:00:00","05:30:00","06:00:00","06:30:00","07:00:00","07:30:00","08:00:00","08:30:00","09:00:00","09:30:00","10:00:00","10:30:00","11:00:00","11:30:00","12:00:00","12:30:00","13:00:00","13:30:00","14:00:00","14:30:00","15:00:00","15:30:00","16:00:00","16:30:00","17:00:00","17:30:00","18:00:00","18:30:00","19:00:00","19:30:00","20:00:00","20:30:00","21:00:00","21:30:00","22:00:00","22:30:00","23:00:00","23:30:00"],v=56,a=6,D=({value:c,onChange:h,locale:b,minTime:p,maxTime:u,...k})=>{let[R,m]=useState(false),[l,f]=useState(c),[t,P]=useState(),[F,O]=useState("bottom"),w=useRef(null),o$1=useRef(null),M=e=>{f(e),h?.(e),m(false);},N=useMemo(()=>l?format(new Date("2024-01-01T"+l),"p"):"",[l,b]),z=()=>{f(void 0),h?.(void 0);},n=useMemo(()=>B.map(e=>({value:e,label:format(new Date("2024-01-01T"+e),"p"),disabled:p&&e<p||u&&e>u})),[b,p,u]);return useEffect(()=>{f(c);},[c]),a$1(w,()=>{m(false);}),useEffect(()=>{if(!o$1.current)return;let e=()=>{if(!o$1.current)return;let i=v*(n.length<a?n.length:a)+16,s=o$1.current.getBoundingClientRect();P(s);let H=window.innerHeight-s.bottom>i,S=s.top+s.height>i;O(H?"bottom":S?"top":"bottom");};return e(),o$1.current.addEventListener("mousedown",e),window.addEventListener("scroll",e,true),window.addEventListener("resize",e),()=>{o$1.current?.removeEventListener("mousedown",e),window.removeEventListener("scroll",e,true),window.removeEventListener("resize",e);}},[o$1.current]),jsxs(Fragment,{children:[jsx(a$2,{ref:o$1,autoComplete:"off",startIcon:jsx(o,{}),onClean:z,readOnly:true,value:N,onClick:e=>{P(e.currentTarget.getBoundingClientRect()),m(i=>!i);},...k}),jsx(L.Root,{children:jsx("div",{ref:w,className:a$3("elevation-8 pointer-events-auto fixed z-50 my-2 hidden max-h-84 w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",R&&"block"),style:t?{width:`${t.width}px`,top:F==="bottom"?`${t.height+t.top}px`:t.top-(n.length<a?n.length:a)*v-16,left:t?.left}:void 0,children:n.map(e=>jsx("div",{onClick:()=>!e.disabled&&M(e.value),className:a$3("flex w-full items-center px-2 hover:cursor-pointer",!e.disabled&&"hover:bg-primary-100",l===e.value&&"bg-primary-200",e.disabled&&"text-neutral-500 hover:cursor-not-allowed"),style:{height:v},children:e.label},e.value))})})]})};D.displayName="TimePicker_old";export{D as a};
@@ -1 +1 @@
1
- import {i,h}from'./chunk-BKVZDB3V.js';import {a}from'./chunk-OBZIYJO7.js';import {DayPicker,UI}from'react-day-picker';import {jsx}from'react/jsx-runtime';var p=({classNames:t,...l})=>jsx(DayPicker,{classNames:{[UI.Dropdowns]:a("flex",t?.dropdowns),[UI.Months]:a("flex flex-col relative",t?.months),[UI.Month]:a("overflow-hidden w-full rounded-[1.75rem] px-3 pb-7 bg-neutral-100",t?.month),[UI.MonthGrid]:a("w-full",t?.month_grid),[UI.MonthCaption]:a("flex ml-4 h-8 justify-between items-center my-1.5",t?.month_caption),[UI.Nav]:a("flex absolute right-0 top-1.5",t?.nav),[UI.PreviousMonthButton]:a("m-1.75",t?.button_previous),[UI.NextMonthButton]:a("m-1.75",t?.button_next),caption_label:a("capitalize text-sm font-semibold text-neutral-700",t?.caption_label),[UI.Weekdays]:a("flex",t?.weekdays),[UI.Weekday]:a("capitalize text-neutral-700 w-[14.3%] aspect-square font-normal flex justify-center items-center",t?.weekday),[UI.Week]:a("flex w-full text-neutral-700",t?.week),[UI.Day]:a(" w-[14.3%] aspect-square data-[outside=true]:text-neutral-500 hover:bg-neutral-200 h-full ring-inset rounded-full hover:cursor-pointer flex justify-center items-center text-small",t?.day),[UI.DayButton]:a("w-full h-full",t?.day_button),range_end:"day-range-end",today:a("ring-1 ring-primary-500 hover:bg-primary-100 hover:ring-0 text-primary-500",t?.today),selected:a("bg-primary-500 text-neutral-50! hover:text-primary-500! hover:bg-primary-200",t?.selected),disabled:a("text-neutral-500 hover:bg-opacity-0",t?.disabled),hidden:a("hidden",t?.hidden)},formatters:{formatWeekdayName:(o,d)=>d?.locale?.localize.day(o.getDay(),{width:"narrow"})??""},components:{Chevron:o=>o.orientation==="left"?jsx(i,{size:18,...o}):jsx(h,{size:18,...o})},showOutsideDays:true,mode:"single",...l});p.displayName="Calendar";export{p as a};
1
+ import {i,h}from'./chunk-BKVZDB3V.js';import {a}from'./chunk-OBZIYJO7.js';import {DayPicker,UI}from'react-day-picker';import {jsx}from'react/jsx-runtime';var p=({classNames:t,...d})=>jsx(DayPicker,{classNames:{[UI.Dropdowns]:a("flex",t?.dropdowns),[UI.Months]:a("flex flex-col relative",t?.months),[UI.Month]:a("overflow-hidden w-full rounded-[1.75rem] px-3 pb-7 bg-neutral-100",t?.month),[UI.MonthGrid]:a("w-full",t?.month_grid),[UI.MonthCaption]:a("flex ml-4 h-8 justify-between items-center my-1.5",t?.month_caption),[UI.Nav]:a("flex absolute right-0 top-1.5",t?.nav),[UI.PreviousMonthButton]:a("m-1.75",t?.button_previous),[UI.NextMonthButton]:a("m-1.75",t?.button_next),caption_label:a("capitalize text-sm font-semibold text-neutral-700",t?.caption_label),[UI.Weekdays]:a("flex",t?.weekdays),[UI.Weekday]:a("capitalize text-neutral-700 w-[14.3%] aspect-square font-normal flex justify-center items-center",t?.weekday),[UI.Week]:a("flex w-full text-neutral-700",t?.week),[UI.Day]:a(" w-[14.3%] aspect-square data-[outside=true]:text-neutral-500 hover:bg-neutral-200 h-full ring-inset rounded-full hover:cursor-pointer flex justify-center items-center text-small",t?.day),[UI.DayButton]:a("w-full h-full",t?.day_button),range_end:"day-range-end",today:a("ring-1 ring-primary-500 hover:bg-primary-100 hover:ring-0 text-primary-500",t?.today),selected:a("bg-primary-500 text-neutral-50! hover:text-primary-500! hover:bg-primary-200",t?.selected),disabled:a("text-neutral-500 hover:bg-opacity-0",t?.disabled),hidden:a("hidden",t?.hidden)},formatters:{formatWeekdayName:(r,a)=>a?.locale?.localize.day(r.getDay(),{width:"narrow"})??""},components:{Chevron:r=>r.orientation==="left"?jsx(i,{size:18,...r}):jsx(h,{size:18,...r})},showOutsideDays:true,mode:"single",...d});p.displayName="Calendar_old";export{p as a};
@@ -1 +1 @@
1
- import {a as a$7}from'./chunk-LU2N5UJD.js';import {b as b$2}from'./chunk-QDIGGJWI.js';import {c as c$8}from'./chunk-XPR5NR6A.js';import {c as c$3,j as j$1}from'./chunk-FRWCCOOJ.js';import {a as a$9,b as b$3,c as c$5}from'./chunk-4RJVZ7FN.js';import {a as a$b}from'./chunk-GFVJRSZI.js';import {a as a$4}from'./chunk-SLKFBCVC.js';import {b}from'./chunk-EX6MBO76.js';import {c as c$7}from'./chunk-JYNJHAGL.js';import {a as a$8}from'./chunk-UIZFLYFP.js';import {a as a$c}from'./chunk-SKMTTF6M.js';import {a as a$5,b as b$1,c as c$4,d as d$2}from'./chunk-I6O2YZVS.js';import {d as d$3}from'./chunk-MP4CHZ2K.js';import {a as a$3}from'./chunk-R6NIURLZ.js';import {c as c$2}from'./chunk-WQPZV6HK.js';import {d as d$1}from'./chunk-RJM4SNGE.js';import {a}from'./chunk-FHABUQAH.js';import {a as a$6}from'./chunk-CJ6G2MPU.js';import {a as a$1}from'./chunk-4CM257A2.js';import {c}from'./chunk-AAV7R2IG.js';import {c as c$6,a as a$a}from'./chunk-5EP3PIED.js';import {c as c$1,d,q,s,t,h,p,j,g}from'./chunk-BKVZDB3V.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 Zt 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 Wn from'react-phone-number-input/flags';import {getDefaultOptions}from'date-fns';import Yn from'react-phone-number-input/locale/en.json';import Zn from'react-phone-number-input/locale/es.json';import Jn 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 Il,{parsePhoneNumber,getCountryCallingCode}from'react-phone-number-input';import {getExampleNumber}from'libphonenumber-js/mobile';import cl from'libphonenumber-js/mobile/examples';var an=B__default.memo(({handleSelect:e,NoResultsIcon:t,noResultsLabel:o,noResultsDescription:n,noResultsDescriptionLines:r,noResultsAsColumn:i,noResultsButtonOnClick:l,optionDescriptionLines:s,noResultsButtonLabel:a$3,filteredOptions:m,inputRect:u,inputRef:g,popoverPosition:b,optionsListRef:f,selectedOption:x,options:I,setFilteredOptions:v})=>jsx(Zt.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:u?{width:`${u.width}px`,left:u.left,top:b==="bottom"?`${u.bottom}px`:void 0,bottom:b==="top"?`${window.innerHeight-u.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:o,description:n,Icon:t,iconAsColumn:i,descriptionLines:r}),l&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{f.current.style.display="none",g.current.value="",v(I),l();},children:a$3})]})]}),m.map(C=>jsx(he,{title:C.label,disabled:C.disabled,description:C.description,descriptionLines:s,onClick:()=>e(C),className:a$2(x?.value===C.value&&"bg-primary-200")},C.key??C.value))]})})),Jt=an;var un=336,Wl=({options:e,defaultSelectedOption:t,onSelect:o,onClick:n,onInputChange:r,error:i,helperText:l,label:s,placeholder:a,value:m,size:u="md",optionDescriptionLines:g=1,noResultsLabel:b,noResultsIcon:f,noResultsDescription:x,noResultsDescriptionLines:I,noResultsAsColumn:v,noResultsButtonOnClick:C,noResultsButtonLabel:E,className:L,disabled:N})=>{let[h,P]=useState(t??null),M=useRef(null),y=useRef(null),[A,k]=useState(),[V,z]=useState([]),[c,p]=useState("bottom"),[R,D]=useState(),w=un,j=useCallback(S=>{M.current.style.display="none",y.current.value=S.label,P(S),o?.(S);},[o]),_=useCallback(()=>{if(!y?.current)return;let S=y.current.getBoundingClientRect();k(S);let Z=R?R.height:w,X=window.innerHeight-S.bottom>Z,Fe=S.top>Z;p(X?"bottom":Fe?"top":"bottom");},[R?.height]),le=useCallback(()=>{let S=e.filter(Z=>Z.label.toLowerCase().includes(y?.current?.value.toLowerCase()??""));if(z(S),M?.current){let Z=M.current.getBoundingClientRect();D(Z);}},[e]);return useEffect(()=>{z(e);},[e]),useEffect(()=>{if(!m){P(null),y.current&&(y.current.value="");return}(!y.current?.value||h?.value!==m.value)&&(P(m),y.current.value=m.label);},[m]),a$b(M,()=>{M.current.style.display="none",h&&y.current&&(y.current.value=h.label);}),useEffect(()=>{if(y?.current)return _(),y.current.addEventListener("mousedown",_),y.current.addEventListener("input",le),window.addEventListener("scroll",_,true),window.addEventListener("resize",_),()=>{y.current?.removeEventListener("mousedown",_),y.current?.removeEventListener("input",le),window.removeEventListener("scroll",_,true),window.removeEventListener("resize",_);}},[_,le]),jsxs("div",{className:a$2("relative",L),children:[jsx(a$4,{ref:y,autoComplete:"off",list:"",selectMode:true,onChange:S=>{S.target.value||(P(null),o?.(null)),r?.(S);},onClean:()=>{P(null),z(e),o?.(null);},onClick:S=>{M.current.style.display="flex",n?.(S);},onBlur:()=>{h&&y.current&&(y.current.value=h.label);},label:s,helperText:l,placeholder:a,size:u,error:i,disabled:N}),jsx(Jt,{handleSelect:j,noResultsLabel:b,NoResultsIcon:f,optionDescriptionLines:g,noResultsAsColumn:v,noResultsButtonLabel:E,noResultsButtonOnClick:C,noResultsDescription:x,noResultsDescriptionLines:I,filteredOptions:V,inputRect:A,inputRef:y,popoverPosition:c,optionsListRef:M,selectedOption:h,options:e,setFilteredOptions:z})]})};var mn=({children:e,title:t,titleLines:o,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:o?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:void 0,children:t}),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})]}),ue=mn;var he=({children:e,title:t,titleLines:o,description:n="",descriptionLines:r,startIcon:i,endIcon:l,hasDivider:s=false,disabled:a=false,isSelected:m=false,className:u,...g})=>jsxs(te,{hasDescription:!!n,disabled:a,hasDivider:s,className:u,isSelected:m,...g,children:[i&&B__default.cloneElement(i,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ue,{title:t,titleLines:o,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 io=({children:e,title:t,titleLines:o=1,description:n="",descriptionLines:r,startIcon:i,hasDivider:l=false,disabled:s=false,checked:a,onCheckedChange:m,className:u,...g})=>jsxs(te,{hasDescription:!!n,disabled:s,hasDivider:l,...g,className:a$2("pr-6",u),children:[i&&B__default.cloneElement(i,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(ue,{title:t,titleLines:o,description:n,descriptionLines:r,disabled:s}),jsx(b,{checked:a,onCheckedChange:m,className:"ml-4 self-center",disabled:s})]});var re=336,so=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:re,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),oe=()=>{let e=useContext(so);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},ao=({children:e})=>{let t=useRef(null),o=useRef(null),n=useId(),[r,i]=useState(),[l,s]=useState(true),[a,m]=useState([]),[u,g]=useState(-1),[b,f]=useState("bottom"),[x,I]=useState(),[v,C]=useState(re);return jsx(so.Provider,{value:{optionsListRef:t,inputRef:o,autocompleteId:n,inputRect:r,showChips:l,filteredOptions:a,currentFocus:u,popoverPosition:b,setFilteredOptions:m,setCurrentFocus:g,setShowChips:s,setPopoverPosition:f,setInputRect:i,optionsListHeight:v,optionsListRect:x,setOptionsListRect:I,setOptionsListHeight:C},children:e})};var Rn=({option:e,onMountWidth:t,size:o})=>{let n=useRef(null);return useEffect(()=>{n.current&&t?.(n.current.clientWidth);},[]),jsx(d$1,{type:"fill",variant:"standard",ref:n,className:"shrink-0",size:o==="md"?"xs":"sm",hasCloseIcon:false,children:e.label})},co=Rn;var Mn=150,En=B__default.memo(({selectedOptions:e,error:t,onCleanSelectedOptions:o,disabled:n,size:r})=>{let{autocompleteId:i,inputRect:l,inputRef:s,optionsListRef:a}=oe(),m=B__default.useRef(null),[u,g]=B__default.useState(new Map),b=useMemo(()=>{if(!l?.width)return [];let x=0,I=l.width-Mn,v=0;for(let C=0;C<e.length&&(v+=u.get(C)??0,!(v>I));C++)x++;return e.slice(0,x)},[l?.width,e,u]),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((x,I)=>jsx(co,{option:x,onMountWidth:v=>g(C=>new Map(C).set(I,v)),size:r},`chip-input-${i}-${x.value}`))}),e.length>b.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!t&&jsx(a$3,{content:String(e.length),size:r}),t&&e.length>0&&jsx(c$1,{className:"text-error-700 h-6 w-6",onClick:x=>{x.stopPropagation(),o();}})]})}),uo=En;var kn=B__default.memo(({option:e,index:t,onPressOption:o,isSelected:n,optionDescriptionLines:r})=>{let{currentFocus:i,inputRef:l}=oe();return jsx(io,{title:e.label,checked:n,disabled:e.disabled,className:i===t?"bg-primary-200":void 0,onMouseDown:s=>{e.disabled||(l?.current?.value&&s.preventDefault(),o?.(e,s));},description:e.description,descriptionLines:r})}),mt=kn;var Dn=B__default.memo(({selectedOptions:e,handleSelect:t,NoResultsIcon:o,noResultsLabel:n,noResultsDescription:r,noResultsDescriptionLines:i,noResultsAsColumn:l,noResultsButtonOnClick:s,optionDescriptionLines:a$2,noResultsButtonLabel:m})=>{let{popoverPosition:u,optionsListRef:g,filteredOptions:b,inputRect:f,autocompleteId:x,inputRef:I,optionsListHeight:v}=oe(),C=useCallback(L=>e.some(N=>N.value===L.value),[e]),E=useMemo(()=>e.filter(L=>L.label.toLowerCase().includes(I?.current?.value.toLowerCase()??"")),[e,I?.current?.value]);return jsx(Zt.Root,{asChild:true,children:jsxs("div",{ref:g,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:f?{width:`${f.width}px`,left:f.left,top:u==="bottom"?`${f.bottom}px`:void 0,bottom:u==="top"?`${window.innerHeight-f.top}px`:void 0,maxHeight:v+"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:o,iconAsColumn:l,descriptionLines:i}),s&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{g.current.style.display="none",I.current.value="",s();},children:m})]})]}),E.map((L,N)=>jsx(mt,{option:L,index:N,onPressOption:h=>t(h),isSelected:C(L),optionDescriptionLines:a$2},`autocomplete-option-${x}-${L.key??L.value}`)),b.map((L,N)=>!e.some(h=>h.value===L.value)&&jsx(mt,{option:L,index:N,onPressOption:h=>t(h),isSelected:C(L),optionDescriptionLines:a$2},`autocomplete-option-${x}-${L.key??L.value}`))]})})}),mo=Dn;var _n=B__default.memo(({selectedOptions:e,onSelect:t,error:o,helperText:n,label:r,placeholder:i,options:l,onInputChange:s,size:a,disabled:m})=>{let{setCurrentFocus:u,setFilteredOptions:g,optionsListRef:b,inputRef:f}=oe();return jsx(a$4,{ref:f,autoComplete:"off",list:"",disabled:m,selectMode:true,onChange:x=>{u(-1),s?.(x.target.value);},onClean:()=>{u(-1),g(l),t?.(null,e);},onClick:()=>{m||(b.current.style.display="flex");},error:o,helperText:n,label:r,placeholder:i,fixedTopLabel:e.length>0,size:a})}),fo=_n;var bo=({options:e,defaultSelectedOptions:t,onSelect:o,error:n,helperText:r,label:i,placeholder:l,noResultsLabel:s,noResultsIcon:a,noResultsDescription:m,noResultsDescriptionLines:u,noResultsAsColumn:g,noResultsButtonOnClick:b,noResultsButtonLabel:f,className:x,onInputChange:I,value:v,loading:C,size:E="md",optionDescriptionLines:L=1,disabled:N})=>{let{inputRef:h,optionsListRef:P,setFilteredOptions:M,setShowChips:y,setInputRect:A,setPopoverPosition:k,setCurrentFocus:V,showChips:z,setOptionsListRect:c,optionsListRect:p,setOptionsListHeight:R}=oe(),D=useRef(false),[w,j]=useState(t??[]),_=useCallback(G=>{j(J=>{let se,Re=J.findIndex(ln=>ln.value===G.value);return Re===-1?(se=J.concat(G),o?.(G,se),se):(se=J.toSpliced(Re,1),o?.(G,se),se)});},[o]),le=useCallback(()=>{j([]),M(e),o?.(null,[]);},[]),S=useCallback(()=>{y(false);},[]),Z=useCallback(()=>{y(true);},[]),X=useCallback(()=>{if(!h?.current)return;let G=h.current.getBoundingClientRect();A(G);let J=p?p.height>re?re:p.height:re,se=window.innerHeight-G.bottom>J,Re=G.top>J;k(se?"bottom":Re?"top":"bottom"),R(Re?re:window.innerHeight-G.bottom>re?re:window.innerHeight-G.bottom);},[p?.height]),Fe=useCallback(()=>{let G=e.filter(J=>J.label.toLowerCase().includes(h?.current?.value.toLowerCase()??""));if(M(G),P?.current){let J=P.current.getBoundingClientRect();c(J);}},[e,P?.current]);return useEffect(()=>{M(e);},[e]),a$b(P,()=>{P.current.style.display="none",V(-1);}),useEffect(()=>{if(h?.current)return X(),h.current.addEventListener("mousedown",X),h.current.addEventListener("input",Fe),h.current.addEventListener("focusin",S),h.current.addEventListener("focusout",Z),window.addEventListener("scroll",X,true),window.addEventListener("resize",X),()=>{h.current?.removeEventListener("mousedown",X),h.current?.removeEventListener("input",X),h.current?.removeEventListener("focusout",Z),h.current?.removeEventListener("focusin",S),window.removeEventListener("scroll",X,true),window.removeEventListener("resize",X);}},[X,Z,S,Fe]),useEffect(()=>{v&&(j(v),y(true));},[v]),useEffect(()=>{C||t&&t.length&&!D.current&&(j(t),D.current=true,y(true));},[t,C]),jsxs("div",{className:a$2("relative",x),children:[jsx(fo,{selectedOptions:w,onSelect:o,error:n,helperText:r,label:i,placeholder:l,handleSelect:_,options:e,onInputChange:I,size:E,disabled:N}),z&&jsx(uo,{selectedOptions:w,disabled:N,error:n,onCleanSelectedOptions:le,size:E}),jsx(mo,{handleSelect:_,selectedOptions:w,noResultsLabel:s,NoResultsIcon:a,optionDescriptionLines:L,noResultsAsColumn:g,noResultsButtonLabel:f,noResultsButtonOnClick:b,noResultsDescription:m,noResultsDescriptionLines:u})]})};var da=e=>jsx(ao,{children:jsx(bo,{...e})});var bt=({className:e,country:t,countryName:o})=>{let n=Wn[t];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:o})})};var Qn=({code:e,codeClassName:t,label:o})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx(bt,{country:e,countryName:o}),jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",t),children:e})]}),Co=({className:e,disabled:t,error:o,onChange:n,onOpenChange:r,options:i,readOnly:l,translations:s,value:a})=>{let m=B.useRef(null),[u,g]=B.useState(""),[b,f]=B.useState(false),{wrapper:x,input:I,clearIcon:v,searchIcon:C}=b$2({size:"md"}),{contains:E}=useFilter({sensitivity:"base"}),L=B.useMemo(()=>i.map(c=>({...c,key:c.code})),[i]),N=B.useMemo(()=>L.find(c=>c.key===a),[L,a]),{collection:h,filter:P,set:M}=useListCollection({initialItems:L,itemToString:c=>`${c.label} ${c.code}`,itemToValue:c=>c.key,filter:(c,p,R)=>E(c,p)||E(R.code,p.toUpperCase())});B.useEffect(()=>{M(L);},[L,M]);let y=B.useCallback(c=>{f(c),r?.(c);},[r]),A=B.useCallback(({inputValue:c})=>{let p=c??"";g(p),P(p),m.current?.scrollTo({top:0});},[P]),k=B.useCallback(c=>{y(c),c&&(g(""),P(""));},[P,y]),V=B.useCallback(({itemValue:c})=>{if(!c)return;let p=L.find(R=>R.key===c)?.code;p&&(n(p),y(false));},[L,y,n]),z=useCombobox({collection:h,inputBehavior:"autohighlight",inputValue:u,open:b,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:N?[N.key]:[],onInputValueChange:A,onOpenChange:({open:c})=>{c||y(false);},onSelect:V});return jsx(Combobox.RootProvider,{value:z,children:jsxs(a$9,{open:b,onOpenChange:k,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-['']",o?"bg-danger-20 after:bg-danger-500 after:w-0.5":t||l?"bg-neutral-200 after:bg-neutral-300":"group-focus-within/id-field:after:bg-primary-800 bg-neutral-200 after:bg-neutral-600 group-focus-within/id-field:after:w-0.5",!o&&b&&"after:bg-primary-800 after:w-0.5",e),disabled:t||l,children:N&&jsx(Qn,{code:N.code,label:N.label,codeClassName:a$2(o?"text-danger-600":void 0,t&&"text-neutral-600",l&&"text-neutral-600")})})}),jsx(c$5,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:x({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:s.searchCountryPlaceholder,className:I()}),!t&&u.length>0&&jsx("button",{type:"button",className:v(),onClick:()=>{z.setInputValue("","clear-trigger");},children:jsx(d,{className:"size-4.5"})}),jsx(p,{className:C()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:m,className:"h-72 overflow-auto outline-none",children:h.items.length===0?jsxs("div",{className:"flex h-full flex-1 flex-col items-center justify-center text-center text-sm",children:[jsx("p",{className:"text-neutral-700",children:s.noCountryFound}),jsx("p",{className:"text-neutral-600",children:s.noCountryFoundSubtitle})]}):jsx(Combobox.ItemGroup,{children:h.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:t,disabled:o,error:n,onChange:r,readOnly:i,type:l="text",value:s,...a},m)=>{let u=B.useRef(null),g=`${s??""}`.length>0,b=!o&&!i&&g,f=b||n;B.useImperativeHandle(m,()=>u.current,[]);let x=B.useCallback(C=>{r?.(C.target.value);},[r]),I=B.useCallback(C=>{C.preventDefault();},[]),v=B.useCallback(()=>{r?.(""),u.current?.focus();},[r]);return jsxs("div",{className:a$2("relative flex h-full min-w-0 flex-1 rounded-r bg-neutral-50",o&&"bg-neutral-100"),children:[jsx("input",{type:l,"data-slot":"input",className:a$2("h-full min-w-0 flex-1 rounded-r bg-transparent px-3 text-sm leading-[143%] text-neutral-900 placeholder-neutral-600 focus-visible:outline-0",f&&!n&&"pr-10.5",b&&n&&"pr-14",n&&!b&&"pr-10.5",o&&"text-neutral-600",e),...a,disabled:o,readOnly:i,value:s,onChange:x,ref:u}),(b||n)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[b&&jsx("button",{type:"button","aria-label":t,className:"flex items-center justify-center text-neutral-900",onMouseDown:I,onClick:v,children:jsx(d,{className:"size-4.5"})}),n&&jsx(q,{className:"text-danger-500 pointer-events-none size-4.5 shrink-0"})]})]})});gt.displayName="IdInput";var ht={en:"Clear identification number",es:"Limpiar n\xFAmero de identificaci\xF3n",pt:"Limpar n\xFAmero de identifica\xE7\xE3o"},yo={en:Yn,es:Zn,pt:Jn},er=ht.en,tr=yo.en,or={es:{clearIdLabel:ht.es,noCountryFound:"No se encontraron resultados.",noCountryFoundSubtitle:"Ajusta los criterios e int\xE9ntalo nuevamente.",searchCountryPlaceholder:"Buscar..."},pt:{clearIdLabel:ht.pt,noCountryFound:"N\xE3o foram encontrados resultados.",noCountryFoundSubtitle:"Ajuste os crit\xE9rios e tente novamente.",searchCountryPlaceholder:"Pesquisar..."}},nr={clearIdLabel:er,noCountryFound:"No results were found.",noCountryFoundSubtitle:"Adjust the criteria and try again.",searchCountryPlaceholder:"Search..."},vo=()=>getDefaultOptions().locale?.code,Lo=e=>or[e]??nr,rr=(e,t)=>(yo[t]??tr)[e]??e,Io=({localeCode:e})=>c$3.map(t=>({code:t,label:rr(t,e)})).sort((t,o)=>t.label.localeCompare(o.label)),Ro=a$5,To=b$1,Po=(e,t)=>{let o=t.trim();return !o||!c$4(e,o).isValid?o:d$2(e,o)};var No=()=>{},Eo=B.forwardRef(({autoComplete:e,className:t,country:o,disabled:n,error:r,helperText:i,id:l,label:s,name:a,onBlur:m,onChange:u=No,onCountryChange:g=No,placeholder:b,readOnly:f,required:x,tooltip:I,value:v},C)=>{let[E,L]=B.useState(false),[N,h]=B.useState(v??""),P=B.useId(),M=l??P,y=vo(),A=B.useRef(v??"");B.useEffect(()=>{(v??"")!==A.current&&h(v??"");},[v]);let k=B.useMemo(()=>Lo(y),[y]),V=B.useMemo(()=>Io({localeCode:y}),[y]),z=B.useMemo(()=>To(o??"")||b||Ro,[o,b]),c=a$2("group/id-field relative flex h-10 rounded after:pointer-events-none after:absolute after:inset-0 after:z-10 after:rounded-[inherit] after:ring-1 after:content-[''] after:ring-inset",r?"after:ring-danger-500 after:ring-2":n||f?"after:ring-neutral-300":"focus-within:after:ring-primary-800 after:ring-neutral-600 focus-within:after:ring-2",!r&&!n&&!f&&E&&"after:ring-primary-800 after:ring-2",t),p=B.useCallback((w,j)=>{let _=Po(w,j);A.current=_,u(_);},[u]),R=B.useCallback(w=>{h(w),p(o??"",w);},[o,p]),D=B.useCallback(w=>{g(w),p(w,N);},[N,g,p]);return jsxs("div",{className:"group flex flex-col","data-disabled":n||void 0,"data-error":r||void 0,"data-readonly":f||void 0,children:[s&&jsx(a$6,{as:"label",htmlFor:M,label:s,required:x,tooltip:I}),jsxs("div",{className:c,children:[jsx(Co,{disabled:n,error:r,onChange:D,onOpenChange:L,options:V,readOnly:f,translations:k,value:o}),jsx(gt,{autoComplete:e,clearLabel:k.clearIdLabel,disabled:n,error:r,id:M,name:a,onBlur:m,onChange:R,placeholder:z,readOnly:f,required:x,value:N,ref:C})]}),jsx("p",{className:"font-inter text-2xs group-data-[error=true]:text-danger-500 mt-1 leading-[133.33%] font-normal text-neutral-700 group-data-disabled:text-neutral-400 empty:hidden",children:i})]})});Eo.displayName="IdField";var oc=({children:e,title:t,titleLines:o=1,description:n,descriptionLines:r=1,StartIcon:i,hasDivider:l=false,disabled:s=false,actionButton:a,isSelected:m=false,className:u,...g})=>jsxs(te,{hasDescription:!!n,disabled:s,hasDivider:l,isSelected:m,...g,className:u,children:[i&&jsx(i,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(ue,{title:t,titleLines:o,description:n,descriptionLines:r,disabled:s}),a&&jsx(Fragment,{children:a.isIcon?jsx(c$2,{...a,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:s??a.disabled}):jsx(c,{...a,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:s??a.disabled})})]});var dc=({title:e,description:t="",descriptionLines:o,hasDivider:n=false,disabled:r=false,checked:i,onCheckedChange:l,className:s,chipStatus:a,chipExpandable:m,...u})=>jsxs(te,{hasDescription:!!t,disabled:r,hasDivider:n,...u,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",!!t&&"font-medium"),children:e}),m&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$7,{...m})}),a&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$3,{...a,size:"xs",className:"shrink-0"})})]}),t&&jsx("p",{className:a$2("text-xs leading-[130%]",r?"text-neutral-400":"text-neutral-700",{"line-clamp-1":o===1,"line-clamp-2":o===2,"line-clamp-3":o===3,"line-clamp-4":o===4}),children:t})]})]});var xt={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"},yt={headings:["h1","h2","h3"],textFormat:["bold","italic","underline"],lists:true,indent:true,alignment:["left","center","right","justify"],undoRedo:true};var vt=({readOnly:e})=>{let[t]=useLexicalComposerContext();return useEffect(()=>{t.setEditable(!e);},[t,e]),null};var Lt=({editorRef:e})=>{let[t]=useLexicalComposerContext();return useEffect(()=>(e.current=t,()=>{e.current===t&&(e.current=null);}),[t,e]),null};var pr={"ql-align-left":"left","ql-align-center":"center","ql-align-right":"right","ql-align-justify":"justify"},mr={center:"ql-align-center",right:"ql-align-right",justify:"ql-align-justify"},dr=()=>typeof window<"u"&&typeof window.DOMParser<"u",Ao=e=>dr()?new DOMParser().parseFromString(e,"text/html"):null,fr=e=>(e??"").replace(/\s+/g," ").trim(),Rt=e=>{let t=0;for(let o of Array.from(e.classList)){let n=o.match(/^ql-indent-(\d+)$/);if(!n)continue;let r=Number.parseInt(n[1],10);Number.isFinite(r)&&(t=Math.max(t,r)),e.classList.remove(o);}return t},br=e=>{let t=e.querySelectorAll("[class*='ql-align-']");for(let o of Array.from(t))for(let n of Array.from(o.classList)){let r=pr[n];r&&(r!=="left"&&(o.style.textAlign=r),o.classList.remove(n));}},gr=e=>{let t=e.querySelectorAll("[class*='ql-indent-']");for(let o of Array.from(t)){if(o.tagName==="LI")continue;let n=Rt(o);n>0&&(o.style.paddingInlineStart=`${n*3}em`);}},hr=(e,t)=>{let o=e.getAttribute("data-list");return o==="bullet"?"ul":o==="ordered"?"ol":t},Cr=e=>{let t=e.cloneNode(true);return t.removeAttribute("data-list"),t.removeAttribute("data-checked"),t.removeAttribute("data-indent"),Rt(t),t},It=(e,t)=>e.createElement(t),xr=(e,t)=>{let o=Array.from(e.children).filter(a=>a.tagName==="LI");if(o.length===0||!o.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 o){let m=Rt(a),u=hr(a,l),g=Cr(a);for(;i.length>0&&i[i.length-1].level>m;)i.pop();if(i.length===0){let f=It(t,u);r.push(f),i.push({level:0,kind:u,listElement:f});}let b=i[i.length-1];for(;b.level<m;){let f=b.listElement.lastElementChild;if(!f||f.tagName!=="LI")break;let x=It(t,u);f.appendChild(x),b={level:b.level+1,kind:u,listElement:x},i.push(b);}if(b=i[i.length-1],b.kind!==u){let f=It(t,u);if(i.length===1)r.push(f),i[0]={level:0,kind:u,listElement:f};else {let I=i[i.length-2].listElement.lastElementChild;I&&I.tagName==="LI"?(I.appendChild(f),i[i.length-1]={level:b.level,kind:u,listElement:f}):(r.push(f),i.length=1,i[0]={level:0,kind:u,listElement:f});}b=i[i.length-1];}b.listElement.appendChild(g);}if(r.length===0)return;let s=t.createDocumentFragment();for(let a of r)s.appendChild(a);e.replaceWith(s);},yr=(e,t)=>{let o=Array.from(e.querySelectorAll("ol, ul"));for(let n of o)xr(n,t);},Oo=(e,t)=>{let o=e.tagName==="UL"?"bullet":"ordered",n=Array.from(e.children).filter(r=>r.tagName==="LI");for(let r of n){r.setAttribute("data-list",o);for(let l of Array.from(r.classList))/^ql-indent-\d+$/.test(l)&&r.classList.remove(l);t>0&&r.classList.add(`ql-indent-${t}`);let i=Array.from(r.children).filter(l=>l.tagName==="UL"||l.tagName==="OL");for(let l of i)Oo(l,t+1);}},vr=e=>{let t=e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li");for(let o of Array.from(t)){let n=o;for(let l of Array.from(n.classList))l.startsWith("ql-align-")&&n.classList.remove(l);let r=n.style.textAlign.trim().toLowerCase(),i=mr[r];i&&n.classList.add(i);}},ye=e=>fr(e).replace(/>\s+</g,"><").replace(/&nbsp;/g," "),Tt=e=>{let t=e??"";if(!t.trim())return "";let o=Ao(t);if(!o)return t;let{body:n}=o;return br(n),gr(n),yr(n,o),n.innerHTML},Pt=e=>{if(!e.trim())return "";let t=Ao(e);if(!t)return e;let{body:o}=t,n=Array.from(o.querySelectorAll("ul, ol"));for(let r of n)Oo(r,0);return vr(o),o.innerHTML};var et=e=>{let t="";return e.getEditorState().read(()=>{t=$generateHtmlFromNodes(e,null);}),Pt(t)},Er=(e,t)=>{let o=Tt(t);e.update(()=>{let n=$getRoot();if(n.clear(),!o.trim()){n.append($createParagraphNode());return}let i=new DOMParser().parseFromString(o,"text/html"),l=$generateNodesFromDOM(e,i);if(l.length===0){n.append($createParagraphNode());return}n.select(),$insertNodes(l);});},Nt=({value:e,isSyncingRef:t})=>{let[o]=useLexicalComposerContext(),n=useRef(null);return useEffect(()=>{let r=e??"";if(n.current!==null&&ye(r)===ye(n.current))return;let i=et(o);ye(i)!==ye(r)&&(t.current=true,Er(o,r),queueMicrotask(()=>{t.current=false;})),n.current=r;},[o,t,e]),null};var wo=["left","center","right","justify"];var So=["bold","italic","underline","strikethrough","code"];var pi={bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough",code:"code"},mi={left:jsx(AlignLeftIcon,{className:"size-4"}),center:jsx(AlignCenterIcon,{className:"size-4"}),right:jsx(AlignRightIcon,{className:"size-4"}),justify:jsx(AlignJustifyIcon,{className:"size-4"})},di={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"},fi=e=>{let t=e.textFormat;return t===false?[]:Array.isArray(t)?So.filter(o=>t.includes(o)):["bold","italic","underline"]},bi=e=>{let t=e.alignment;return t===false?[]:Array.isArray(t)?wo.filter(o=>t.includes(o)):["left","center","right","justify"]},gi=e=>{if(e.headings===false)return [];let t=Array.isArray(e.headings)?e.headings:["h1","h2","h3"];return [{value:"paragraph",label:"Normal"},...t.map(o=>({value:o,label:o.toUpperCase()}))]},we=()=>jsx("div",{className:"mx-1 h-5 w-px bg-neutral-300"}),K=({label:e,onClick:t,icon:o,active:n=false,disabled:r=false})=>jsx("button",{type:"button","aria-label":e,title:e,disabled:r,onClick:t,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:o}),At=({config:e,className:t})=>{let[o]=useLexicalComposerContext(),n=useId(),[r,i]=useState(false),[l,s]=useState(false),[a,m]=useState(false),[u,g]=useState(false),[b,f]=useState(false),[x,I]=useState(false),[v,C]=useState(false),[E,L]=useState("paragraph"),[N,h]=useState("left"),P=useMemo(()=>fi(e),[e]),M=useMemo(()=>bi(e),[e]),y=useMemo(()=>gi(e),[e]),A=useCallback(()=>{let c=$getSelection();if(!$isRangeSelection(c))return;m(c.hasFormat("bold")),g(c.hasFormat("italic")),f(c.hasFormat("underline")),I(c.hasFormat("strikethrough")),C(c.hasFormat("code"));let p=c.anchor.getNode(),R=p.getKey()==="root"?p:p.getTopLevelElementOrThrow();if($isListNode(R))L(R.getListType()==="number"?"ol":"ul");else {let w=$findMatchingParent(R,j=>$isListNode(j));$isListNode(w)?L(w.getListType()==="number"?"ol":"ul"):L($isHeadingNode(R)?R.getTag():R.getType());}let D=$isElementNode(R)?R.getFormatType():"";h(D==="center"||D==="right"||D==="justify"?D:"left");},[]);useEffect(()=>mergeRegister(o.registerUpdateListener(({editorState:c})=>{c.read(()=>{A();});}),o.registerCommand(SELECTION_CHANGE_COMMAND,()=>(A(),false),1),o.registerCommand(CAN_UNDO_COMMAND,c=>(i(c),false),1),o.registerCommand(CAN_REDO_COMMAND,c=>(s(c),false),1)),[o,A]);let k=c=>{o.dispatchCommand(FORMAT_TEXT_COMMAND,pi[c]);},V=c=>{o.update(()=>{let p=$getSelection();if($isRangeSelection(p)){if(c==="paragraph"){$setBlocksType(p,()=>$createParagraphNode());return}$setBlocksType(p,()=>$createHeadingNode(c));}});},z=c=>{if(E===(c==="bullet"?"ul":"ol")){o.dispatchCommand(REMOVE_LIST_COMMAND,void 0);return}o.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",t),children:[e.undoRedo!==false&&jsxs(Fragment,{children:[jsx(K,{label:"Undo",onClick:()=>o.dispatchCommand(UNDO_COMMAND,void 0),disabled:!r,icon:jsx(UndoIcon,{className:"size-4"})}),jsx(K,{label:"Redo",onClick:()=>o.dispatchCommand(REDO_COMMAND,void 0),disabled:!l,icon:jsx(RedoIcon,{className:"size-4"})}),jsx(we,{})]}),y.length>0&&jsxs(Fragment,{children:[jsx("label",{className:"sr-only",htmlFor:n,children:"Text style"}),jsx("select",{id:n,value:E.startsWith("h")?E:"paragraph",onChange: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:y.map(c=>jsx("option",{value:c.value,children:c.label},c.value))}),jsx(we,{})]}),P.length>0&&jsxs(Fragment,{children:[P.includes("bold")&&jsx(K,{label:ke.bold,onClick:()=>k("bold"),icon:Oe.bold,active:a}),P.includes("italic")&&jsx(K,{label:ke.italic,onClick:()=>k("italic"),icon:Oe.italic,active:u}),P.includes("underline")&&jsx(K,{label:ke.underline,onClick:()=>k("underline"),icon:Oe.underline,active:b}),P.includes("strikethrough")&&jsx(K,{label:ke.strikethrough,onClick:()=>k("strikethrough"),icon:Oe.strikethrough,active:x}),P.includes("code")&&jsx(K,{label:ke.code,onClick:()=>k("code"),icon:Oe.code,active:v}),jsx(we,{})]}),e.lists!==false&&jsxs(Fragment,{children:[jsx(K,{label:"Bulleted list",onClick:()=>z("bullet"),icon:jsx(ListIcon,{className:"size-4"}),active:E==="ul"}),jsx(K,{label:"Numbered list",onClick:()=>z("number"),icon:jsx(ListOrderedIcon,{className:"size-4"}),active:E==="ol"}),jsx(we,{})]}),e.indent!==false&&jsxs(Fragment,{children:[jsx(K,{label:"Decrease indent",onClick:()=>o.dispatchCommand(OUTDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentDecreaseIcon,{className:"size-4"})}),jsx(K,{label:"Increase indent",onClick:()=>o.dispatchCommand(INDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentIncreaseIcon,{className:"size-4"})}),jsx(we,{})]}),M.length>0&&jsx(Fragment,{children:M.map(c=>jsx(K,{label:di[c],onClick:()=>o.dispatchCommand(FORMAT_ELEMENT_COMMAND,c),icon:mi[c],active:N===c},c))})]})};var Bo=e=>{if(e!==void 0)return typeof e=="number"?`${e}px`:e},Oi=forwardRef(({value:e,onChange:t,onBlur:o,onError:n,placeholder:r="Write your content...",readOnly:i=false,showToolbar:l=true,toolbarConfig:s=yt,className:a,editorClassName:m,toolbarClassName:u,autoFocus:g=false,minHeight:b=160,maxHeight:f,error:x=false,errorMessage:I,editorRef:v},C)=>{let E=useRef(false),L=useMemo(()=>({namespace:"SodtrackRichTextEditor",theme:xt,onError:(h,P)=>{if(n){n(h,P);return}console.error("RichTextEditor error",h);},nodes:[HeadingNode,ListNode,ListItemNode]}),[n]),N={minHeight:Bo(b),maxHeight:Bo(f),overflowY:f?"auto":void 0};return jsx(LexicalComposer,{initialConfig:L,children:jsxs("div",{className:"w-full",children:[jsxs("div",{ref:C,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",x?"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":x,"data-readonly":i,children:[l&&!i&&jsx(At,{config:s,className:u}),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:o,"aria-invalid":x}),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(vt,{readOnly:i}),jsx(Nt,{value:e,isSyncingRef:E}),g&&!i&&jsx(AutoFocusPlugin,{}),v&&jsx(Lt,{editorRef:v}),jsx(OnChangePlugin,{ignoreSelectionChange:true,onChange:(h,P)=>{!t||E.current||t(et(P),h);}})]}),x&&I&&jsx("p",{className:"text-error-500 mt-1 text-xs leading-[133%]",children:I})]})})});Oi.displayName="RichTextEditor";var tt="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 Lu=["sm","md","lg"],Iu=a$a,zi={lg:"h-10 gap-2 px-4 text-sm leading-[142%] rounded-md",md:"h-8 gap-1 px-3 text-sm leading-[142%] rounded-md",sm:"h-6 gap-1 px-3 text-xs leading-[142%] rounded-sm"},_i={lg:"size-4.5",md:"size-3.5",sm:"size-3"},Vo=({label:e,options:t,onSelect:o,variant:n="contained",size:r="md",disabled:i=false,className:l,...s})=>{let a=useCallback(u=>{o?.(u.value);},[o]),{root:m}=c$6({variant:n,disabled:i});return jsxs(MenuRoot,{unmountOnExit:true,lazyMount:true,onSelect:a,positioning:{placement:"bottom-start",flip:["bottom-end"]},...s,children:[jsxs(MenuTrigger,{disabled:i,className:a$2(m(),"group data-[state=open]:ring-primary-800 ease-linear outline-none data-[state=open]:ring-3 data-[state=open]:ring-inset",zi[r],l),children:[e,jsx(g,{className:a$2(_i[r],"transition-transform duration-150 group-data-[state=open]:rotate-180")})]}),jsx(Portal,{children:jsx(MenuPositioner,{className:"z-(--z-button-active-options)",children:jsx(MenuContent,{className:a$2("elevation-9 max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",tt),children:t.map(({label:u,value:g,description:b,startIcon:f,endIcon:x,hasDivider:I,disabled:v,onClick:C})=>jsx(MenuItem,{value:g,disabled:v,onSelect:C,asChild:true,children:jsx(he,{title:u,description:b,startIcon:f,endIcon:x,disabled:v,hasDivider:I,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},g))})})})]})};var $o=createContext(null),Wi=()=>{let e=useContext($o);if(!e)throw new Error("TrackerItem components must be used within TrackerItem");return e},ji=({state:e,children:t})=>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")}),t]}),Gi=forwardRef(({label:e,badgeStatus:t$1,details:o,className:n,...r},i)=>{let{state:l,stepNumber:s$1,expandable:a,onHeaderButtonClick:m}=Wi();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",!t$1&&(!o||o.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}),t$1&&t$1.visible!==false&&(()=>{let{visible:u,...g}=t$1;return jsx(a$8,{...g})})(),o&&jsx("div",{className:"text-2xs flex flex-col gap-1.5 text-neutral-700",children:o.map(({Icon:u,text:g},b)=>jsxs("div",{className:"flex items-center gap-1.5",children:[jsx(u,{className:"size-3 shrink-0"}),jsx("span",{className:"font-inter",children:g})]},b))})]})]}),a&&jsx(Collapsible.Context,{children:({open:u})=>jsx(Collapsible.Trigger,{asChild:true,children:jsx(c$2,{Icon:u?s:t,size:"sm",variant:"standard"})})}),!a&&m&&jsx(c$2,{Icon:h,size:"sm",variant:"standard",onClick:m})]})});Gi.displayName="TrackerItemHeader";var Ki=forwardRef(({children:e,className:t,...o},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",t),...o,children:e})}));Ki.displayName="TrackerItemExpandableContent";var Qi=forwardRef(({buttons:e=[],className:t,...o},n)=>jsx("div",{ref:n,className:a$2("flex justify-end gap-2 border-t border-neutral-300 px-3 py-2",t),...o,children:e.map((r,i)=>{if(r.visible===false)return null;let{visible:l,...s}=r;return "options"in s?jsx(Vo,{...s,size:"sm"},i):jsx(c,{...s,size:"sm"},i)})}));Qi.displayName="TrackerItemFooter";var Uo="overflow-hidden rounded-sm border border-neutral-300 bg-neutral-50",Xi=forwardRef(({state:e,stepNumber:t,expandable:o=false,defaultExpanded:n,onExpandedChange:r,onHeaderButtonClick:i,className:l,children:s,...a},m)=>{let u=useMemo(()=>({state:e,stepNumber:t,expandable:o,onHeaderButtonClick:i}),[e,t,o,i]),g=useCallback(b=>{r?.(b.open);},[r]);return jsx($o.Provider,{value:u,children:jsx(ji,{state:e,children:o?jsx(Collapsible.Root,{ref:m,defaultOpen:n??false,onOpenChange:g,className:a$2(Uo,l),...a,children:s}):jsx("div",{ref:m,className:a$2(Uo,l),...a,children:s})})})});Xi.displayName="TrackerItem";var tp=["sm","md","lg"],op=["semibold","medium"],np=["primary","neutral"],il=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}}),rp=({className:e,label:t,badgeText:o="00",StartIcon:n,options:r,onSelect:i,isSelected:l=false,isLoading:s=false,isDisabled:a=false,hasTrailingBadge:m=false,size:u="lg",weight:g$1="semibold",tone:b="primary",type:f="button",...x})=>{let I=a||s,v=r.filter(({isHidden:R})=>!R),C=v.length>0,E=s,L=!!n&&!s,N=!s&&m,h=C&&!I,P=useCallback(R=>{i?.(R.value);},[i]),M=useCallback(R=>{R?.();},[]),{root:y,label:A,icon:k,chevron:V,trailing:z}=il({size:u,weight:g$1,tone:b,loading:E}),c=u,p=jsxs(Fragment,{children:[E&&jsx(c$8,{size:"sm",variant:"black",className:k()}),L&&n&&jsx(n,{className:k()}),jsx("span",{className:A(),children:t}),N&&jsx(a$c,{type:"square",variant:"primary",size:c,text:o,className:z()}),h&&jsx(g,{className:V()})]});return C?jsxs(MenuRoot,{onSelect:P,lazyMount:true,positioning:{placement:"bottom-start",flip:["bottom-end"]},children:[jsx(MenuTrigger,{...x,type:f,disabled:I,"aria-pressed":l,className:y({className:e}),children:p}),jsx(Portal,{children:jsx(MenuPositioner,{className:"z-(--z-button-active-options)",children:jsx(MenuContent,{className:cn("elevation-9 max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",tt),children:v.map(({label:R,description:D,startIcon:w,endIcon:j,hasDivider:_,isDisabled:le,onClick:S})=>jsx(MenuItem,{value:R,disabled:le,onSelect:()=>M(S),asChild:true,className:"flex items-center",children:jsx(he,{title:R,description:D,startIcon:w,endIcon:j,disabled:le,hasDivider:_,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},R))})})})]}):jsx("button",{...x,type:f,disabled:I,"aria-pressed":l,className:y({className:e}),children:p})};var jo={en:Yn,es:Zn,pt:Jn},fl={es:{clearPhoneNumberLabel:"Eliminar n\xFAmero de tel\xE9fono",noCountryFound:"No se encontraron resultados.",noCountryFoundSubtitle:"Ajusta los criterios e int\xE9ntalo nuevamente.",searchCountryPlaceholder:"Buscar..."},pt:{clearPhoneNumberLabel:"Limpar n\xFAmero de telefone",noCountryFound:"N\xE3o foram encontrados resultados.",noCountryFoundSubtitle:"Ajuste os crit\xE9rios e tente novamente.",searchCountryPlaceholder:"Pesquisar..."}},bl={clearPhoneNumberLabel:"Clear phone number",noCountryFound:"No results were found.",noCountryFoundSubtitle:"Adjust the criteria and try again.",searchCountryPlaceholder:"Search..."},gl=jo.en,Go="9 1234 5678",Ot="ZZ",Ko=()=>{},rt=e=>fl[e]??bl,Qo=e=>jo[e]??gl,Xo=e=>{if(e)try{let t=parsePhoneNumber(e)?.country;return !t||!j$1(t)?void 0:t}catch{return}},Yo=e=>{if(e)return getExampleNumber(e,cl)?.formatNational()},it=e=>e??Ot,lt=()=>getDefaultOptions().locale?.code;var vl=({Icon:e,callingCode:t,country:o,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:o,label:n})}),t&&jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",r),children:`+${t}`})]}),Zo=({className:e,disabled:t,error:o,iconComponent:n,onChange:r,onOpenChange:i,options:l,readOnly:s,translations:a,value:m})=>{let u=B.useRef(null),[g,b]=B.useState(""),[f,x]=B.useState(false),{wrapper:I,input:v,clearIcon:C,searchIcon:E}=b$2({size:"md"}),{contains:L}=useFilter({sensitivity:"base"}),N=B.useMemo(()=>l.filter(p=>p.value!==void 0&&j$1(p.value)).map(p=>({callingCode:p.value?getCountryCallingCode(p.value):void 0,country:p.value,key:it(p.value),label:p.label})),[l]),h=B.useMemo(()=>N.find(p=>p.key===it(m)),[N,m]),{collection:P,filter:M,set:y}=useListCollection({initialItems:N,itemToString:p=>p.callingCode?`${p.label} +${p.callingCode}`:p.label,itemToValue:p=>p.key,filter:(p,R,D)=>{let w=R.trim().replace(/^\+/,"");return L(p,R)||(D.country?L(D.country,R.toUpperCase()):false)||(D.callingCode?L(D.callingCode,w)||L(`+${D.callingCode}`,R):false)}});B.useEffect(()=>{y(N);},[N,y]);let A=B.useCallback(p=>{x(p),i?.(p);},[i]),k=B.useCallback(({inputValue:p})=>{let R=p??"";b(R),M(R),u.current?.scrollTo({top:0});},[M]),V=B.useCallback(p=>{A(p),p&&(b(""),M(""));},[M,A]),z=B.useCallback(({itemValue:p})=>{if(!p||p===Ot){r(void 0),A(false);return}j$1(p)&&(r(p),A(false));},[A,r]),c=useCombobox({collection:P,inputBehavior:"autohighlight",inputValue:g,open:f,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:h?[h.key]:[],onInputValueChange:k,onOpenChange:({open:p})=>{p||A(false);},onSelect:z});return jsx(Combobox.RootProvider,{value:c,children:jsxs(a$9,{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-['']",o?"bg-danger-20 after:bg-danger-500 after:w-0.5":t||s?"bg-neutral-200 after:bg-neutral-300":"group-focus-within/phone:after:bg-primary-800 bg-neutral-200 after:bg-neutral-600 group-focus-within/phone:after:w-0.5",!o&&f&&"after:bg-primary-800 after:w-0.5",e),disabled:t||s,children:h&&jsx(vl,{Icon:n,callingCode:h.callingCode,country:h.country,countryName:h.label,callingCodeClassName:a$2(o?"text-danger-600":void 0,t&&"text-neutral-600",s&&"text-neutral-600")})})}),jsx(c$5,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:I({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:a.searchCountryPlaceholder,className:v()}),!t&&g.length>0&&jsx("button",{type:"button",className:C(),onClick:()=>{c.setInputValue("","clear-trigger");},children:jsx(d,{className:"size-4.5"})}),jsx(p,{className:E()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:u,className:"h-72 overflow-auto outline-none",children:P.items.length===0?jsxs("div",{className:"flex h-full flex-1 flex-col items-center justify-center text-center text-sm",children:[jsx("p",{className:"text-neutral-700",children:a.noCountryFound}),jsx("p",{className:"text-neutral-600",children:a.noCountryFoundSubtitle})]}):jsx(Combobox.ItemGroup,{children:P.items.map(p=>jsxs(Combobox.Item,{item:p,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:p.country,label:p.label})}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:p.label}),p.callingCode&&jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:`+${p.callingCode}`}),jsx(j,{className:a$2("ml-auto size-4 shrink-0",p.key===it(m)?"opacity-100":"opacity-0")})]},p.key))})})]})})]})})};var en=({className:e,country:t,countryName:o})=>{let n=Wn[t];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:o})})};var kt=B.forwardRef(({className:e,disabled:t,error:o,onChange:n,readOnly:r,type:i,value:l,...s},a)=>{let m=lt(),u=B.useMemo(()=>rt(m),[m]),g=B.useRef(null),f=!t&&!r&&!!l,x=f||o;B.useImperativeHandle(a,()=>g.current,[]);let I=B.useCallback(C=>{C.preventDefault();},[]),v=B.useCallback(()=>{let C=g.current;if(!C){n?.({target:{value:""}});return}C.value="",n?.({target:C}),C.focus();},[n]);return jsxs("div",{className:a$2("relative flex h-full min-w-0 flex-1 rounded-r bg-neutral-50",t&&"bg-neutral-100"),children:[jsx("input",{type:i,"data-slot":"input",className:a$2("h-full min-w-0 flex-1 rounded-r bg-transparent px-3 text-sm leading-[143%] text-neutral-900 placeholder-neutral-600 focus-visible:outline-0",x&&!o&&"pr-10.5",f&&o&&"pr-14",o&&!f&&"pr-10.5",t&&"text-neutral-600",e),...s,disabled:t,readOnly:r,value:l,onChange:n,ref:g}),(f||o)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[f&&jsx("button",{type:"button","aria-label":u.clearPhoneNumberLabel,className:"flex items-center justify-center text-neutral-900",onMouseDown:I,onClick:v,children:jsx(d,{className:"size-4.5"})}),o&&jsx(q,{className:"text-danger-500 pointer-events-none size-4.5 shrink-0"})]})]})});kt.displayName="PhoneNumberInputComponent";var Rl=Il,on=B.forwardRef(({className:e,defaultCountry:t,disabled:o,error:n,helperText:r,id:i,label:l,onChange:s=Ko,placeholder:a,readOnly:m,required:u,tooltip:g,value:b,...f},x)=>{let[I,v]=B.useState(false),[C,E]=B.useState(()=>Xo(b)??t),L=B.useId(),N=i??L,h=lt(),P=B.useMemo(()=>rt(h),[h]),M=B.useMemo(()=>Qo(h),[h]),y=B.useMemo(()=>Yo(C)??a??Go,[a,C]),A=a$2("relative flex h-10 rounded after:pointer-events-none after:absolute after:inset-0 after:z-10 after:rounded-[inherit] after:ring-1 after:content-[''] after:ring-inset",n?"after:ring-danger-500 after:ring-2":o||m?"after:ring-neutral-300":"focus-within:after:ring-primary-800 after:ring-neutral-600 focus-within:after:ring-2",!n&&!o&&!m&&I&&"after:ring-primary-800 after:ring-2",e),k=B.useCallback(V=>{E(V);},[]);return jsxs("div",{className:"group flex flex-col","data-disabled":o||void 0,"data-error":n||void 0,"data-readonly":m||void 0,children:[l&&jsx(a$6,{as:"label",htmlFor:N,label:l,required:u,tooltip:g}),jsx(Rl,{...f,className:A,ref:x,countrySelectComponent:Zo,countrySelectProps:{error:n,onOpenChange:v,translations:P},defaultCountry:t,disabled:o,flagComponent:en,id:N,initialValueFormat:"national",inputComponent:kt,labels:M,numberInputProps:{error:n,placeholder:y},readOnly:m,required:u,value:b,onChange:s,onCountryChange:k}),jsx("p",{className:"font-inter text-2xs group-data-[error=true]:text-error-500 mt-1 leading-[133.33%] font-normal text-neutral-700 group-data-disabled:text-neutral-400 empty:hidden",children:r})]})});on.displayName="PhoneInput";var Pl=({children:e,hasDescription:t=false,disabled:o=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",t?"py-3":"py-3.5",o?"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=>{o||l?.(m);},...s,children:e}),n&&jsx(a$1,{})]}),te=Pl;var Ed=({children:e,title:t,titleLines:o,description:n="",descriptionLines:r,startIcon:i,badgeContent:l,hasDivider:s=false,disabled:a=false,onSelect:m,className:u,...g})=>jsxs(te,{hasDescription:!!n,disabled:a,onClick:m,hasDivider:s,className:a$2(!a&&"cursor-pointer",u),...g,children:[i&&B__default.cloneElement(i,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ue,{title:t,titleLines:o,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{Vo as A,Wl as a,Ed as b,io as c,da as d,Eo as e,oc as f,dc as g,xt as h,yt as i,ye as j,Tt as k,Pt as l,Oi as m,Wi as n,Gi as o,Ki as p,Qi as q,Xi as r,tp as s,op as t,np as u,rp as v,on as w,he as x,Lu as y,Iu as z};
1
+ import {a as a$7}from'./chunk-LU2N5UJD.js';import {b as b$2}from'./chunk-QDIGGJWI.js';import {c as c$8}from'./chunk-XPR5NR6A.js';import {c as c$3,j as j$1}from'./chunk-FRWCCOOJ.js';import {a as a$9,b as b$3,c as c$5}from'./chunk-4RJVZ7FN.js';import {a as a$b}from'./chunk-GFVJRSZI.js';import {a as a$4}from'./chunk-AGILGHTN.js';import {b}from'./chunk-EX6MBO76.js';import {c as c$7}from'./chunk-JYNJHAGL.js';import {a as a$8}from'./chunk-UIZFLYFP.js';import {a as a$c}from'./chunk-SKMTTF6M.js';import {a as a$5,b as b$1,c as c$4,d as d$2}from'./chunk-I6O2YZVS.js';import {d as d$3}from'./chunk-MP4CHZ2K.js';import {a as a$3}from'./chunk-R6NIURLZ.js';import {c as c$2}from'./chunk-WQPZV6HK.js';import {d as d$1}from'./chunk-RJM4SNGE.js';import {a}from'./chunk-FHABUQAH.js';import {a as a$6}from'./chunk-CJ6G2MPU.js';import {a as a$1}from'./chunk-4CM257A2.js';import {c}from'./chunk-AAV7R2IG.js';import {c as c$6,a as a$a}from'./chunk-5EP3PIED.js';import {c as c$1,d,q,s,t,h,p,j,g}from'./chunk-BKVZDB3V.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 Zt 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 Wn from'react-phone-number-input/flags';import {getDefaultOptions}from'date-fns';import Yn from'react-phone-number-input/locale/en.json';import Zn from'react-phone-number-input/locale/es.json';import Jn 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 Il,{parsePhoneNumber,getCountryCallingCode}from'react-phone-number-input';import {getExampleNumber}from'libphonenumber-js/mobile';import cl from'libphonenumber-js/mobile/examples';var an=B__default.memo(({handleSelect:e,NoResultsIcon:t,noResultsLabel:o,noResultsDescription:n,noResultsDescriptionLines:r,noResultsAsColumn:i,noResultsButtonOnClick:l,optionDescriptionLines:s,noResultsButtonLabel:a$3,filteredOptions:m,inputRect:u,inputRef:g,popoverPosition:b,optionsListRef:f,selectedOption:x,options:I,setFilteredOptions:v})=>jsx(Zt.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:u?{width:`${u.width}px`,left:u.left,top:b==="bottom"?`${u.bottom}px`:void 0,bottom:b==="top"?`${window.innerHeight-u.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:o,description:n,Icon:t,iconAsColumn:i,descriptionLines:r}),l&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{f.current.style.display="none",g.current.value="",v(I),l();},children:a$3})]})]}),m.map(C=>jsx(he,{title:C.label,disabled:C.disabled,description:C.description,descriptionLines:s,onClick:()=>e(C),className:a$2(x?.value===C.value&&"bg-primary-200")},C.key??C.value))]})})),Jt=an;var un=336,Wl=({options:e,defaultSelectedOption:t,onSelect:o,onClick:n,onInputChange:r,error:i,helperText:l,label:s,placeholder:a,value:m,size:u="md",optionDescriptionLines:g=1,noResultsLabel:b,noResultsIcon:f,noResultsDescription:x,noResultsDescriptionLines:I,noResultsAsColumn:v,noResultsButtonOnClick:C,noResultsButtonLabel:E,className:L,disabled:N})=>{let[h,P]=useState(t??null),M=useRef(null),y=useRef(null),[A,k]=useState(),[V,_]=useState([]),[c,p]=useState("bottom"),[R,D]=useState(),w=un,j=useCallback(S=>{M.current.style.display="none",y.current.value=S.label,P(S),o?.(S);},[o]),z=useCallback(()=>{if(!y?.current)return;let S=y.current.getBoundingClientRect();k(S);let Z=R?R.height:w,X=window.innerHeight-S.bottom>Z,Fe=S.top>Z;p(X?"bottom":Fe?"top":"bottom");},[R?.height]),le=useCallback(()=>{let S=e.filter(Z=>Z.label.toLowerCase().includes(y?.current?.value.toLowerCase()??""));if(_(S),M?.current){let Z=M.current.getBoundingClientRect();D(Z);}},[e]);return useEffect(()=>{_(e);},[e]),useEffect(()=>{if(!m){P(null),y.current&&(y.current.value="");return}(!y.current?.value||h?.value!==m.value)&&(P(m),y.current.value=m.label);},[m]),a$b(M,()=>{M.current.style.display="none",h&&y.current&&(y.current.value=h.label);}),useEffect(()=>{if(y?.current)return z(),y.current.addEventListener("mousedown",z),y.current.addEventListener("input",le),window.addEventListener("scroll",z,true),window.addEventListener("resize",z),()=>{y.current?.removeEventListener("mousedown",z),y.current?.removeEventListener("input",le),window.removeEventListener("scroll",z,true),window.removeEventListener("resize",z);}},[z,le]),jsxs("div",{className:a$2("relative",L),children:[jsx(a$4,{ref:y,autoComplete:"off",list:"",selectMode:true,onChange:S=>{S.target.value||(P(null),o?.(null)),r?.(S);},onClean:()=>{P(null),_(e),o?.(null);},onClick:S=>{M.current.style.display="flex",n?.(S);},onBlur:()=>{h&&y.current&&(y.current.value=h.label);},label:s,helperText:l,placeholder:a,size:u,error:i,disabled:N}),jsx(Jt,{handleSelect:j,noResultsLabel:b,NoResultsIcon:f,optionDescriptionLines:g,noResultsAsColumn:v,noResultsButtonLabel:E,noResultsButtonOnClick:C,noResultsDescription:x,noResultsDescriptionLines:I,filteredOptions:V,inputRect:A,inputRef:y,popoverPosition:c,optionsListRef:M,selectedOption:h,options:e,setFilteredOptions:_})]})};var mn=({children:e,title:t,titleLines:o,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:o?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:void 0,children:t}),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})]}),ue=mn;var he=({children:e,title:t,titleLines:o,description:n="",descriptionLines:r,startIcon:i,endIcon:l,hasDivider:s=false,disabled:a=false,isSelected:m=false,className:u,...g})=>jsxs(te,{hasDescription:!!n,disabled:a,hasDivider:s,className:u,isSelected:m,...g,children:[i&&B__default.cloneElement(i,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ue,{title:t,titleLines:o,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 io=({children:e,title:t,titleLines:o=1,description:n="",descriptionLines:r,startIcon:i,hasDivider:l=false,disabled:s=false,checked:a,onCheckedChange:m,className:u,...g})=>jsxs(te,{hasDescription:!!n,disabled:s,hasDivider:l,...g,className:a$2("pr-6",u),children:[i&&B__default.cloneElement(i,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(ue,{title:t,titleLines:o,description:n,descriptionLines:r,disabled:s}),jsx(b,{checked:a,onCheckedChange:m,className:"ml-4 self-center",disabled:s})]});var re=336,so=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:re,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),oe=()=>{let e=useContext(so);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},ao=({children:e})=>{let t=useRef(null),o=useRef(null),n=useId(),[r,i]=useState(),[l,s]=useState(true),[a,m]=useState([]),[u,g]=useState(-1),[b,f]=useState("bottom"),[x,I]=useState(),[v,C]=useState(re);return jsx(so.Provider,{value:{optionsListRef:t,inputRef:o,autocompleteId:n,inputRect:r,showChips:l,filteredOptions:a,currentFocus:u,popoverPosition:b,setFilteredOptions:m,setCurrentFocus:g,setShowChips:s,setPopoverPosition:f,setInputRect:i,optionsListHeight:v,optionsListRect:x,setOptionsListRect:I,setOptionsListHeight:C},children:e})};var Rn=({option:e,onMountWidth:t,size:o})=>{let n=useRef(null);return useEffect(()=>{n.current&&t?.(n.current.clientWidth);},[]),jsx(d$1,{type:"fill",variant:"standard",ref:n,className:"shrink-0",size:o==="md"?"xs":"sm",hasCloseIcon:false,children:e.label})},co=Rn;var Mn=150,En=B__default.memo(({selectedOptions:e,error:t,onCleanSelectedOptions:o,disabled:n,size:r})=>{let{autocompleteId:i,inputRect:l,inputRef:s,optionsListRef:a}=oe(),m=B__default.useRef(null),[u,g]=B__default.useState(new Map),b=useMemo(()=>{if(!l?.width)return [];let x=0,I=l.width-Mn,v=0;for(let C=0;C<e.length&&(v+=u.get(C)??0,!(v>I));C++)x++;return e.slice(0,x)},[l?.width,e,u]),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((x,I)=>jsx(co,{option:x,onMountWidth:v=>g(C=>new Map(C).set(I,v)),size:r},`chip-input-${i}-${x.value}`))}),e.length>b.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!t&&jsx(a$3,{content:String(e.length),size:r}),t&&e.length>0&&jsx(c$1,{className:"text-error-700 h-6 w-6",onClick:x=>{x.stopPropagation(),o();}})]})}),uo=En;var kn=B__default.memo(({option:e,index:t,onPressOption:o,isSelected:n,optionDescriptionLines:r})=>{let{currentFocus:i,inputRef:l}=oe();return jsx(io,{title:e.label,checked:n,disabled:e.disabled,className:i===t?"bg-primary-200":void 0,onMouseDown:s=>{e.disabled||(l?.current?.value&&s.preventDefault(),o?.(e,s));},description:e.description,descriptionLines:r})}),mt=kn;var Dn=B__default.memo(({selectedOptions:e,handleSelect:t,NoResultsIcon:o,noResultsLabel:n,noResultsDescription:r,noResultsDescriptionLines:i,noResultsAsColumn:l,noResultsButtonOnClick:s,optionDescriptionLines:a$2,noResultsButtonLabel:m})=>{let{popoverPosition:u,optionsListRef:g,filteredOptions:b,inputRect:f,autocompleteId:x,inputRef:I,optionsListHeight:v}=oe(),C=useCallback(L=>e.some(N=>N.value===L.value),[e]),E=useMemo(()=>e.filter(L=>L.label.toLowerCase().includes(I?.current?.value.toLowerCase()??"")),[e,I?.current?.value]);return jsx(Zt.Root,{asChild:true,children:jsxs("div",{ref:g,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:f?{width:`${f.width}px`,left:f.left,top:u==="bottom"?`${f.bottom}px`:void 0,bottom:u==="top"?`${window.innerHeight-f.top}px`:void 0,maxHeight:v+"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:o,iconAsColumn:l,descriptionLines:i}),s&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{g.current.style.display="none",I.current.value="",s();},children:m})]})]}),E.map((L,N)=>jsx(mt,{option:L,index:N,onPressOption:h=>t(h),isSelected:C(L),optionDescriptionLines:a$2},`autocomplete-option-${x}-${L.key??L.value}`)),b.map((L,N)=>!e.some(h=>h.value===L.value)&&jsx(mt,{option:L,index:N,onPressOption:h=>t(h),isSelected:C(L),optionDescriptionLines:a$2},`autocomplete-option-${x}-${L.key??L.value}`))]})})}),mo=Dn;var zn=B__default.memo(({selectedOptions:e,onSelect:t,error:o,helperText:n,label:r,placeholder:i,options:l,onInputChange:s,size:a,disabled:m})=>{let{setCurrentFocus:u,setFilteredOptions:g,optionsListRef:b,inputRef:f}=oe();return jsx(a$4,{ref:f,autoComplete:"off",list:"",disabled:m,selectMode:true,onChange:x=>{u(-1),s?.(x.target.value);},onClean:()=>{u(-1),g(l),t?.(null,e);},onClick:()=>{m||(b.current.style.display="flex");},error:o,helperText:n,label:r,placeholder:i,fixedTopLabel:e.length>0,size:a})}),fo=zn;var bo=({options:e,defaultSelectedOptions:t,onSelect:o,error:n,helperText:r,label:i,placeholder:l,noResultsLabel:s,noResultsIcon:a,noResultsDescription:m,noResultsDescriptionLines:u,noResultsAsColumn:g,noResultsButtonOnClick:b,noResultsButtonLabel:f,className:x,onInputChange:I,value:v,loading:C,size:E="md",optionDescriptionLines:L=1,disabled:N})=>{let{inputRef:h,optionsListRef:P,setFilteredOptions:M,setShowChips:y,setInputRect:A,setPopoverPosition:k,setCurrentFocus:V,showChips:_,setOptionsListRect:c,optionsListRect:p,setOptionsListHeight:R}=oe(),D=useRef(false),[w,j]=useState(t??[]),z=useCallback(G=>{j(J=>{let se,Re=J.findIndex(ln=>ln.value===G.value);return Re===-1?(se=J.concat(G),o?.(G,se),se):(se=J.toSpliced(Re,1),o?.(G,se),se)});},[o]),le=useCallback(()=>{j([]),M(e),o?.(null,[]);},[]),S=useCallback(()=>{y(false);},[]),Z=useCallback(()=>{y(true);},[]),X=useCallback(()=>{if(!h?.current)return;let G=h.current.getBoundingClientRect();A(G);let J=p?p.height>re?re:p.height:re,se=window.innerHeight-G.bottom>J,Re=G.top>J;k(se?"bottom":Re?"top":"bottom"),R(Re?re:window.innerHeight-G.bottom>re?re:window.innerHeight-G.bottom);},[p?.height]),Fe=useCallback(()=>{let G=e.filter(J=>J.label.toLowerCase().includes(h?.current?.value.toLowerCase()??""));if(M(G),P?.current){let J=P.current.getBoundingClientRect();c(J);}},[e,P?.current]);return useEffect(()=>{M(e);},[e]),a$b(P,()=>{P.current.style.display="none",V(-1);}),useEffect(()=>{if(h?.current)return X(),h.current.addEventListener("mousedown",X),h.current.addEventListener("input",Fe),h.current.addEventListener("focusin",S),h.current.addEventListener("focusout",Z),window.addEventListener("scroll",X,true),window.addEventListener("resize",X),()=>{h.current?.removeEventListener("mousedown",X),h.current?.removeEventListener("input",X),h.current?.removeEventListener("focusout",Z),h.current?.removeEventListener("focusin",S),window.removeEventListener("scroll",X,true),window.removeEventListener("resize",X);}},[X,Z,S,Fe]),useEffect(()=>{v&&(j(v),y(true));},[v]),useEffect(()=>{C||t&&t.length&&!D.current&&(j(t),D.current=true,y(true));},[t,C]),jsxs("div",{className:a$2("relative",x),children:[jsx(fo,{selectedOptions:w,onSelect:o,error:n,helperText:r,label:i,placeholder:l,handleSelect:z,options:e,onInputChange:I,size:E,disabled:N}),_&&jsx(uo,{selectedOptions:w,disabled:N,error:n,onCleanSelectedOptions:le,size:E}),jsx(mo,{handleSelect:z,selectedOptions:w,noResultsLabel:s,NoResultsIcon:a,optionDescriptionLines:L,noResultsAsColumn:g,noResultsButtonLabel:f,noResultsButtonOnClick:b,noResultsDescription:m,noResultsDescriptionLines:u})]})};var da=e=>jsx(ao,{children:jsx(bo,{...e})});var bt=({className:e,country:t,countryName:o})=>{let n=Wn[t];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:o})})};var Qn=({code:e,codeClassName:t,label:o})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx(bt,{country:e,countryName:o}),jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",t),children:e})]}),Co=({className:e,disabled:t,error:o,onChange:n,onOpenChange:r,options:i,readOnly:l,translations:s,value:a})=>{let m=B.useRef(null),[u,g]=B.useState(""),[b,f]=B.useState(false),{wrapper:x,input:I,clearIcon:v,searchIcon:C}=b$2({size:"md"}),{contains:E}=useFilter({sensitivity:"base"}),L=B.useMemo(()=>i.map(c=>({...c,key:c.code})),[i]),N=B.useMemo(()=>L.find(c=>c.key===a),[L,a]),{collection:h,filter:P,set:M}=useListCollection({initialItems:L,itemToString:c=>`${c.label} ${c.code}`,itemToValue:c=>c.key,filter:(c,p,R)=>E(c,p)||E(R.code,p.toUpperCase())});B.useEffect(()=>{M(L);},[L,M]);let y=B.useCallback(c=>{f(c),r?.(c);},[r]),A=B.useCallback(({inputValue:c})=>{let p=c??"";g(p),P(p),m.current?.scrollTo({top:0});},[P]),k=B.useCallback(c=>{y(c),c&&(g(""),P(""));},[P,y]),V=B.useCallback(({itemValue:c})=>{if(!c)return;let p=L.find(R=>R.key===c)?.code;p&&(n(p),y(false));},[L,y,n]),_=useCombobox({collection:h,inputBehavior:"autohighlight",inputValue:u,open:b,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:N?[N.key]:[],onInputValueChange:A,onOpenChange:({open:c})=>{c||y(false);},onSelect:V});return jsx(Combobox.RootProvider,{value:_,children:jsxs(a$9,{open:b,onOpenChange:k,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-['']",o?"bg-danger-20 after:bg-danger-500 after:w-0.5":t||l?"bg-neutral-200 after:bg-neutral-300":"group-focus-within/id-field:after:bg-primary-800 bg-neutral-200 after:bg-neutral-600 group-focus-within/id-field:after:w-0.5",!o&&b&&"after:bg-primary-800 after:w-0.5",e),disabled:t||l,children:N&&jsx(Qn,{code:N.code,label:N.label,codeClassName:a$2(o?"text-danger-600":void 0,t&&"text-neutral-600",l&&"text-neutral-600")})})}),jsx(c$5,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:x({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:s.searchCountryPlaceholder,className:I()}),!t&&u.length>0&&jsx("button",{type:"button",className:v(),onClick:()=>{_.setInputValue("","clear-trigger");},children:jsx(d,{className:"size-4.5"})}),jsx(p,{className:C()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:m,className:"h-72 overflow-auto outline-none",children:h.items.length===0?jsxs("div",{className:"flex h-full flex-1 flex-col items-center justify-center text-center text-sm",children:[jsx("p",{className:"text-neutral-700",children:s.noCountryFound}),jsx("p",{className:"text-neutral-600",children:s.noCountryFoundSubtitle})]}):jsx(Combobox.ItemGroup,{children:h.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:t,disabled:o,error:n,onChange:r,readOnly:i,type:l="text",value:s,...a},m)=>{let u=B.useRef(null),g=`${s??""}`.length>0,b=!o&&!i&&g,f=b||n;B.useImperativeHandle(m,()=>u.current,[]);let x=B.useCallback(C=>{r?.(C.target.value);},[r]),I=B.useCallback(C=>{C.preventDefault();},[]),v=B.useCallback(()=>{r?.(""),u.current?.focus();},[r]);return jsxs("div",{className:a$2("relative flex h-full min-w-0 flex-1 rounded-r bg-neutral-50",o&&"bg-neutral-100"),children:[jsx("input",{type:l,"data-slot":"input",className:a$2("h-full min-w-0 flex-1 rounded-r bg-transparent px-3 text-sm leading-[143%] text-neutral-900 placeholder-neutral-600 focus-visible:outline-0",f&&!n&&"pr-10.5",b&&n&&"pr-14",n&&!b&&"pr-10.5",o&&"text-neutral-600",e),...a,disabled:o,readOnly:i,value:s,onChange:x,ref:u}),(b||n)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[b&&jsx("button",{type:"button","aria-label":t,className:"flex items-center justify-center text-neutral-900",onMouseDown:I,onClick:v,children:jsx(d,{className:"size-4.5"})}),n&&jsx(q,{className:"text-danger-500 pointer-events-none size-4.5 shrink-0"})]})]})});gt.displayName="IdInput";var ht={en:"Clear identification number",es:"Limpiar n\xFAmero de identificaci\xF3n",pt:"Limpar n\xFAmero de identifica\xE7\xE3o"},yo={en:Yn,es:Zn,pt:Jn},er=ht.en,tr=yo.en,or={es:{clearIdLabel:ht.es,noCountryFound:"No se encontraron resultados.",noCountryFoundSubtitle:"Ajusta los criterios e int\xE9ntalo nuevamente.",searchCountryPlaceholder:"Buscar..."},pt:{clearIdLabel:ht.pt,noCountryFound:"N\xE3o foram encontrados resultados.",noCountryFoundSubtitle:"Ajuste os crit\xE9rios e tente novamente.",searchCountryPlaceholder:"Pesquisar..."}},nr={clearIdLabel:er,noCountryFound:"No results were found.",noCountryFoundSubtitle:"Adjust the criteria and try again.",searchCountryPlaceholder:"Search..."},vo=()=>getDefaultOptions().locale?.code,Lo=e=>or[e]??nr,rr=(e,t)=>(yo[t]??tr)[e]??e,Io=({localeCode:e})=>c$3.map(t=>({code:t,label:rr(t,e)})).sort((t,o)=>t.label.localeCompare(o.label)),Ro=a$5,To=b$1,Po=(e,t)=>{let o=t.trim();return !o||!c$4(e,o).isValid?o:d$2(e,o)};var No=()=>{},Eo=B.forwardRef(({autoComplete:e,className:t,country:o,disabled:n,error:r,helperText:i,id:l,label:s,name:a,onBlur:m,onChange:u=No,onCountryChange:g=No,placeholder:b,readOnly:f,required:x,tooltip:I,value:v},C)=>{let[E,L]=B.useState(false),[N,h]=B.useState(v??""),P=B.useId(),M=l??P,y=vo(),A=B.useRef(v??"");B.useEffect(()=>{(v??"")!==A.current&&h(v??"");},[v]);let k=B.useMemo(()=>Lo(y),[y]),V=B.useMemo(()=>Io({localeCode:y}),[y]),_=B.useMemo(()=>To(o??"")||b||Ro,[o,b]),c=a$2("group/id-field relative flex h-10 rounded after:pointer-events-none after:absolute after:inset-0 after:z-10 after:rounded-[inherit] after:ring-1 after:content-[''] after:ring-inset",r?"after:ring-danger-500 after:ring-2":n||f?"after:ring-neutral-300":"focus-within:after:ring-primary-800 after:ring-neutral-600 focus-within:after:ring-2",!r&&!n&&!f&&E&&"after:ring-primary-800 after:ring-2",t),p=B.useCallback((w,j)=>{let z=Po(w,j);A.current=z,u(z);},[u]),R=B.useCallback(w=>{h(w),p(o??"",w);},[o,p]),D=B.useCallback(w=>{g(w),p(w,N);},[N,g,p]);return jsxs("div",{className:"group flex flex-col","data-disabled":n||void 0,"data-error":r||void 0,"data-readonly":f||void 0,children:[s&&jsx(a$6,{as:"label",htmlFor:M,label:s,required:x,tooltip:I}),jsxs("div",{className:c,children:[jsx(Co,{disabled:n,error:r,onChange:D,onOpenChange:L,options:V,readOnly:f,translations:k,value:o}),jsx(gt,{autoComplete:e,clearLabel:k.clearIdLabel,disabled:n,error:r,id:M,name:a,onBlur:m,onChange:R,placeholder:_,readOnly:f,required:x,value:N,ref:C})]}),jsx("p",{className:"font-inter text-2xs group-data-[error=true]:text-danger-500 mt-1 leading-[133.33%] font-normal text-neutral-700 group-data-disabled:text-neutral-400 empty:hidden",children:i})]})});Eo.displayName="IdField";var oc=({children:e,title:t,titleLines:o=1,description:n,descriptionLines:r=1,StartIcon:i,hasDivider:l=false,disabled:s=false,actionButton:a,isSelected:m=false,className:u,...g})=>jsxs(te,{hasDescription:!!n,disabled:s,hasDivider:l,isSelected:m,...g,className:u,children:[i&&jsx(i,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(ue,{title:t,titleLines:o,description:n,descriptionLines:r,disabled:s}),a&&jsx(Fragment,{children:a.isIcon?jsx(c$2,{...a,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:s??a.disabled}):jsx(c,{...a,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:s??a.disabled})})]});var dc=({title:e,description:t="",descriptionLines:o,hasDivider:n=false,disabled:r=false,checked:i,onCheckedChange:l,className:s,chipStatus:a,chipExpandable:m,...u})=>jsxs(te,{hasDescription:!!t,disabled:r,hasDivider:n,...u,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",!!t&&"font-medium"),children:e}),m&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$7,{...m})}),a&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$3,{...a,size:"xs",className:"shrink-0"})})]}),t&&jsx("p",{className:a$2("text-xs leading-[130%]",r?"text-neutral-400":"text-neutral-700",{"line-clamp-1":o===1,"line-clamp-2":o===2,"line-clamp-3":o===3,"line-clamp-4":o===4}),children:t})]})]});var xt={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"},yt={headings:["h1","h2","h3"],textFormat:["bold","italic","underline"],lists:true,indent:true,alignment:["left","center","right","justify"],undoRedo:true};var vt=({readOnly:e})=>{let[t]=useLexicalComposerContext();return useEffect(()=>{t.setEditable(!e);},[t,e]),null};var Lt=({editorRef:e})=>{let[t]=useLexicalComposerContext();return useEffect(()=>(e.current=t,()=>{e.current===t&&(e.current=null);}),[t,e]),null};var pr={"ql-align-left":"left","ql-align-center":"center","ql-align-right":"right","ql-align-justify":"justify"},mr={center:"ql-align-center",right:"ql-align-right",justify:"ql-align-justify"},dr=()=>typeof window<"u"&&typeof window.DOMParser<"u",Ao=e=>dr()?new DOMParser().parseFromString(e,"text/html"):null,fr=e=>(e??"").replace(/\s+/g," ").trim(),Rt=e=>{let t=0;for(let o of Array.from(e.classList)){let n=o.match(/^ql-indent-(\d+)$/);if(!n)continue;let r=Number.parseInt(n[1],10);Number.isFinite(r)&&(t=Math.max(t,r)),e.classList.remove(o);}return t},br=e=>{let t=e.querySelectorAll("[class*='ql-align-']");for(let o of Array.from(t))for(let n of Array.from(o.classList)){let r=pr[n];r&&(r!=="left"&&(o.style.textAlign=r),o.classList.remove(n));}},gr=e=>{let t=e.querySelectorAll("[class*='ql-indent-']");for(let o of Array.from(t)){if(o.tagName==="LI")continue;let n=Rt(o);n>0&&(o.style.paddingInlineStart=`${n*3}em`);}},hr=(e,t)=>{let o=e.getAttribute("data-list");return o==="bullet"?"ul":o==="ordered"?"ol":t},Cr=e=>{let t=e.cloneNode(true);return t.removeAttribute("data-list"),t.removeAttribute("data-checked"),t.removeAttribute("data-indent"),Rt(t),t},It=(e,t)=>e.createElement(t),xr=(e,t)=>{let o=Array.from(e.children).filter(a=>a.tagName==="LI");if(o.length===0||!o.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 o){let m=Rt(a),u=hr(a,l),g=Cr(a);for(;i.length>0&&i[i.length-1].level>m;)i.pop();if(i.length===0){let f=It(t,u);r.push(f),i.push({level:0,kind:u,listElement:f});}let b=i[i.length-1];for(;b.level<m;){let f=b.listElement.lastElementChild;if(!f||f.tagName!=="LI")break;let x=It(t,u);f.appendChild(x),b={level:b.level+1,kind:u,listElement:x},i.push(b);}if(b=i[i.length-1],b.kind!==u){let f=It(t,u);if(i.length===1)r.push(f),i[0]={level:0,kind:u,listElement:f};else {let I=i[i.length-2].listElement.lastElementChild;I&&I.tagName==="LI"?(I.appendChild(f),i[i.length-1]={level:b.level,kind:u,listElement:f}):(r.push(f),i.length=1,i[0]={level:0,kind:u,listElement:f});}b=i[i.length-1];}b.listElement.appendChild(g);}if(r.length===0)return;let s=t.createDocumentFragment();for(let a of r)s.appendChild(a);e.replaceWith(s);},yr=(e,t)=>{let o=Array.from(e.querySelectorAll("ol, ul"));for(let n of o)xr(n,t);},Oo=(e,t)=>{let o=e.tagName==="UL"?"bullet":"ordered",n=Array.from(e.children).filter(r=>r.tagName==="LI");for(let r of n){r.setAttribute("data-list",o);for(let l of Array.from(r.classList))/^ql-indent-\d+$/.test(l)&&r.classList.remove(l);t>0&&r.classList.add(`ql-indent-${t}`);let i=Array.from(r.children).filter(l=>l.tagName==="UL"||l.tagName==="OL");for(let l of i)Oo(l,t+1);}},vr=e=>{let t=e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li");for(let o of Array.from(t)){let n=o;for(let l of Array.from(n.classList))l.startsWith("ql-align-")&&n.classList.remove(l);let r=n.style.textAlign.trim().toLowerCase(),i=mr[r];i&&n.classList.add(i);}},ye=e=>fr(e).replace(/>\s+</g,"><").replace(/&nbsp;/g," "),Tt=e=>{let t=e??"";if(!t.trim())return "";let o=Ao(t);if(!o)return t;let{body:n}=o;return br(n),gr(n),yr(n,o),n.innerHTML},Pt=e=>{if(!e.trim())return "";let t=Ao(e);if(!t)return e;let{body:o}=t,n=Array.from(o.querySelectorAll("ul, ol"));for(let r of n)Oo(r,0);return vr(o),o.innerHTML};var et=e=>{let t="";return e.getEditorState().read(()=>{t=$generateHtmlFromNodes(e,null);}),Pt(t)},Er=(e,t)=>{let o=Tt(t);e.update(()=>{let n=$getRoot();if(n.clear(),!o.trim()){n.append($createParagraphNode());return}let i=new DOMParser().parseFromString(o,"text/html"),l=$generateNodesFromDOM(e,i);if(l.length===0){n.append($createParagraphNode());return}n.select(),$insertNodes(l);});},Nt=({value:e,isSyncingRef:t})=>{let[o]=useLexicalComposerContext(),n=useRef(null);return useEffect(()=>{let r=e??"";if(n.current!==null&&ye(r)===ye(n.current))return;let i=et(o);ye(i)!==ye(r)&&(t.current=true,Er(o,r),queueMicrotask(()=>{t.current=false;})),n.current=r;},[o,t,e]),null};var wo=["left","center","right","justify"];var So=["bold","italic","underline","strikethrough","code"];var pi={bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough",code:"code"},mi={left:jsx(AlignLeftIcon,{className:"size-4"}),center:jsx(AlignCenterIcon,{className:"size-4"}),right:jsx(AlignRightIcon,{className:"size-4"}),justify:jsx(AlignJustifyIcon,{className:"size-4"})},di={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"},fi=e=>{let t=e.textFormat;return t===false?[]:Array.isArray(t)?So.filter(o=>t.includes(o)):["bold","italic","underline"]},bi=e=>{let t=e.alignment;return t===false?[]:Array.isArray(t)?wo.filter(o=>t.includes(o)):["left","center","right","justify"]},gi=e=>{if(e.headings===false)return [];let t=Array.isArray(e.headings)?e.headings:["h1","h2","h3"];return [{value:"paragraph",label:"Normal"},...t.map(o=>({value:o,label:o.toUpperCase()}))]},we=()=>jsx("div",{className:"mx-1 h-5 w-px bg-neutral-300"}),K=({label:e,onClick:t,icon:o,active:n=false,disabled:r=false})=>jsx("button",{type:"button","aria-label":e,title:e,disabled:r,onClick:t,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:o}),At=({config:e,className:t})=>{let[o]=useLexicalComposerContext(),n=useId(),[r,i]=useState(false),[l,s]=useState(false),[a,m]=useState(false),[u,g]=useState(false),[b,f]=useState(false),[x,I]=useState(false),[v,C]=useState(false),[E,L]=useState("paragraph"),[N,h]=useState("left"),P=useMemo(()=>fi(e),[e]),M=useMemo(()=>bi(e),[e]),y=useMemo(()=>gi(e),[e]),A=useCallback(()=>{let c=$getSelection();if(!$isRangeSelection(c))return;m(c.hasFormat("bold")),g(c.hasFormat("italic")),f(c.hasFormat("underline")),I(c.hasFormat("strikethrough")),C(c.hasFormat("code"));let p=c.anchor.getNode(),R=p.getKey()==="root"?p:p.getTopLevelElementOrThrow();if($isListNode(R))L(R.getListType()==="number"?"ol":"ul");else {let w=$findMatchingParent(R,j=>$isListNode(j));$isListNode(w)?L(w.getListType()==="number"?"ol":"ul"):L($isHeadingNode(R)?R.getTag():R.getType());}let D=$isElementNode(R)?R.getFormatType():"";h(D==="center"||D==="right"||D==="justify"?D:"left");},[]);useEffect(()=>mergeRegister(o.registerUpdateListener(({editorState:c})=>{c.read(()=>{A();});}),o.registerCommand(SELECTION_CHANGE_COMMAND,()=>(A(),false),1),o.registerCommand(CAN_UNDO_COMMAND,c=>(i(c),false),1),o.registerCommand(CAN_REDO_COMMAND,c=>(s(c),false),1)),[o,A]);let k=c=>{o.dispatchCommand(FORMAT_TEXT_COMMAND,pi[c]);},V=c=>{o.update(()=>{let p=$getSelection();if($isRangeSelection(p)){if(c==="paragraph"){$setBlocksType(p,()=>$createParagraphNode());return}$setBlocksType(p,()=>$createHeadingNode(c));}});},_=c=>{if(E===(c==="bullet"?"ul":"ol")){o.dispatchCommand(REMOVE_LIST_COMMAND,void 0);return}o.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",t),children:[e.undoRedo!==false&&jsxs(Fragment,{children:[jsx(K,{label:"Undo",onClick:()=>o.dispatchCommand(UNDO_COMMAND,void 0),disabled:!r,icon:jsx(UndoIcon,{className:"size-4"})}),jsx(K,{label:"Redo",onClick:()=>o.dispatchCommand(REDO_COMMAND,void 0),disabled:!l,icon:jsx(RedoIcon,{className:"size-4"})}),jsx(we,{})]}),y.length>0&&jsxs(Fragment,{children:[jsx("label",{className:"sr-only",htmlFor:n,children:"Text style"}),jsx("select",{id:n,value:E.startsWith("h")?E:"paragraph",onChange: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:y.map(c=>jsx("option",{value:c.value,children:c.label},c.value))}),jsx(we,{})]}),P.length>0&&jsxs(Fragment,{children:[P.includes("bold")&&jsx(K,{label:ke.bold,onClick:()=>k("bold"),icon:Oe.bold,active:a}),P.includes("italic")&&jsx(K,{label:ke.italic,onClick:()=>k("italic"),icon:Oe.italic,active:u}),P.includes("underline")&&jsx(K,{label:ke.underline,onClick:()=>k("underline"),icon:Oe.underline,active:b}),P.includes("strikethrough")&&jsx(K,{label:ke.strikethrough,onClick:()=>k("strikethrough"),icon:Oe.strikethrough,active:x}),P.includes("code")&&jsx(K,{label:ke.code,onClick:()=>k("code"),icon:Oe.code,active:v}),jsx(we,{})]}),e.lists!==false&&jsxs(Fragment,{children:[jsx(K,{label:"Bulleted list",onClick:()=>_("bullet"),icon:jsx(ListIcon,{className:"size-4"}),active:E==="ul"}),jsx(K,{label:"Numbered list",onClick:()=>_("number"),icon:jsx(ListOrderedIcon,{className:"size-4"}),active:E==="ol"}),jsx(we,{})]}),e.indent!==false&&jsxs(Fragment,{children:[jsx(K,{label:"Decrease indent",onClick:()=>o.dispatchCommand(OUTDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentDecreaseIcon,{className:"size-4"})}),jsx(K,{label:"Increase indent",onClick:()=>o.dispatchCommand(INDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentIncreaseIcon,{className:"size-4"})}),jsx(we,{})]}),M.length>0&&jsx(Fragment,{children:M.map(c=>jsx(K,{label:di[c],onClick:()=>o.dispatchCommand(FORMAT_ELEMENT_COMMAND,c),icon:mi[c],active:N===c},c))})]})};var Bo=e=>{if(e!==void 0)return typeof e=="number"?`${e}px`:e},Oi=forwardRef(({value:e,onChange:t,onBlur:o,onError:n,placeholder:r="Write your content...",readOnly:i=false,showToolbar:l=true,toolbarConfig:s=yt,className:a,editorClassName:m,toolbarClassName:u,autoFocus:g=false,minHeight:b=160,maxHeight:f,error:x=false,errorMessage:I,editorRef:v},C)=>{let E=useRef(false),L=useMemo(()=>({namespace:"SodtrackRichTextEditor",theme:xt,onError:(h,P)=>{if(n){n(h,P);return}console.error("RichTextEditor error",h);},nodes:[HeadingNode,ListNode,ListItemNode]}),[n]),N={minHeight:Bo(b),maxHeight:Bo(f),overflowY:f?"auto":void 0};return jsx(LexicalComposer,{initialConfig:L,children:jsxs("div",{className:"w-full",children:[jsxs("div",{ref:C,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",x?"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":x,"data-readonly":i,children:[l&&!i&&jsx(At,{config:s,className:u}),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:o,"aria-invalid":x}),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(vt,{readOnly:i}),jsx(Nt,{value:e,isSyncingRef:E}),g&&!i&&jsx(AutoFocusPlugin,{}),v&&jsx(Lt,{editorRef:v}),jsx(OnChangePlugin,{ignoreSelectionChange:true,onChange:(h,P)=>{!t||E.current||t(et(P),h);}})]}),x&&I&&jsx("p",{className:"text-error-500 mt-1 text-xs leading-[133%]",children:I})]})})});Oi.displayName="RichTextEditor";var tt="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 Lu=["sm","md","lg"],Iu=a$a,_i={lg:"h-10 gap-2 px-4 text-sm leading-[142%] rounded-md",md:"h-8 gap-1 px-3 text-sm leading-[142%] rounded-md",sm:"h-6 gap-1 px-3 text-xs leading-[142%] rounded-sm"},zi={lg:"size-4.5",md:"size-3.5",sm:"size-3"},Vo=({label:e,options:t,onSelect:o,variant:n="contained",size:r="md",disabled:i=false,className:l,...s})=>{let a=useCallback(u=>{o?.(u.value);},[o]),{root:m}=c$6({variant:n,disabled:i});return jsxs(MenuRoot,{unmountOnExit:true,lazyMount:true,onSelect:a,positioning:{placement:"bottom-start",flip:["bottom-end"]},...s,children:[jsxs(MenuTrigger,{disabled:i,className:a$2(m(),"group data-[state=open]:ring-primary-800 ease-linear outline-none data-[state=open]:ring-3 data-[state=open]:ring-inset",_i[r],l),children:[e,jsx(g,{className:a$2(zi[r],"transition-transform duration-150 group-data-[state=open]:rotate-180")})]}),jsx(Portal,{children:jsx(MenuPositioner,{className:"z-(--z-button-active-options)",children:jsx(MenuContent,{className:a$2("elevation-9 max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",tt),children:t.map(({label:u,value:g,description:b,startIcon:f,endIcon:x,hasDivider:I,disabled:v,onClick:C})=>jsx(MenuItem,{value:g,disabled:v,onSelect:C,asChild:true,children:jsx(he,{title:u,description:b,startIcon:f,endIcon:x,disabled:v,hasDivider:I,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},g))})})})]})};var $o=createContext(null),Wi=()=>{let e=useContext($o);if(!e)throw new Error("TrackerItem components must be used within TrackerItem");return e},ji=({state:e,children:t})=>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")}),t]}),Gi=forwardRef(({label:e,badgeStatus:t$1,details:o,className:n,...r},i)=>{let{state:l,stepNumber:s$1,expandable:a,onHeaderButtonClick:m}=Wi();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",!t$1&&(!o||o.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}),t$1&&t$1.visible!==false&&(()=>{let{visible:u,...g}=t$1;return jsx(a$8,{...g})})(),o&&jsx("div",{className:"text-2xs flex flex-col gap-1.5 text-neutral-700",children:o.map(({Icon:u,text:g},b)=>jsxs("div",{className:"flex items-center gap-1.5",children:[jsx(u,{className:"size-3 shrink-0"}),jsx("span",{className:"font-inter",children:g})]},b))})]})]}),a&&jsx(Collapsible.Context,{children:({open:u})=>jsx(Collapsible.Trigger,{asChild:true,children:jsx(c$2,{Icon:u?s:t,size:"sm",variant:"standard"})})}),!a&&m&&jsx(c$2,{Icon:h,size:"sm",variant:"standard",onClick:m})]})});Gi.displayName="TrackerItemHeader";var Ki=forwardRef(({children:e,className:t,...o},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",t),...o,children:e})}));Ki.displayName="TrackerItemExpandableContent";var Qi=forwardRef(({buttons:e=[],className:t,...o},n)=>jsx("div",{ref:n,className:a$2("flex justify-end gap-2 border-t border-neutral-300 px-3 py-2",t),...o,children:e.map((r,i)=>{if(r.visible===false)return null;let{visible:l,...s}=r;return "options"in s?jsx(Vo,{...s,size:"sm"},i):jsx(c,{...s,size:"sm"},i)})}));Qi.displayName="TrackerItemFooter";var Uo="overflow-hidden rounded-sm border border-neutral-300 bg-neutral-50",Xi=forwardRef(({state:e,stepNumber:t,expandable:o=false,defaultExpanded:n,onExpandedChange:r,onHeaderButtonClick:i,className:l,children:s,...a},m)=>{let u=useMemo(()=>({state:e,stepNumber:t,expandable:o,onHeaderButtonClick:i}),[e,t,o,i]),g=useCallback(b=>{r?.(b.open);},[r]);return jsx($o.Provider,{value:u,children:jsx(ji,{state:e,children:o?jsx(Collapsible.Root,{ref:m,defaultOpen:n??false,onOpenChange:g,className:a$2(Uo,l),...a,children:s}):jsx("div",{ref:m,className:a$2(Uo,l),...a,children:s})})})});Xi.displayName="TrackerItem";var tp=["sm","md","lg"],op=["semibold","medium"],np=["primary","neutral"],il=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}}),rp=({className:e,label:t,badgeText:o="00",StartIcon:n,options:r,onSelect:i,isSelected:l=false,isLoading:s=false,isDisabled:a=false,hasTrailingBadge:m=false,size:u="lg",weight:g$1="semibold",tone:b="primary",type:f="button",...x})=>{let I=a||s,v=r.filter(({isHidden:R})=>!R),C=v.length>0,E=s,L=!!n&&!s,N=!s&&m,h=C&&!I,P=useCallback(R=>{i?.(R.value);},[i]),M=useCallback(R=>{R?.();},[]),{root:y,label:A,icon:k,chevron:V,trailing:_}=il({size:u,weight:g$1,tone:b,loading:E}),c=u,p=jsxs(Fragment,{children:[E&&jsx(c$8,{size:"sm",variant:"black",className:k()}),L&&n&&jsx(n,{className:k()}),jsx("span",{className:A(),children:t}),N&&jsx(a$c,{type:"square",variant:"primary",size:c,text:o,className:_()}),h&&jsx(g,{className:V()})]});return C?jsxs(MenuRoot,{onSelect:P,lazyMount:true,positioning:{placement:"bottom-start",flip:["bottom-end"]},children:[jsx(MenuTrigger,{...x,type:f,disabled:I,"aria-pressed":l,className:y({className:e}),children:p}),jsx(Portal,{children:jsx(MenuPositioner,{className:"z-(--z-button-active-options)",children:jsx(MenuContent,{className:cn("elevation-9 max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",tt),children:v.map(({label:R,description:D,startIcon:w,endIcon:j,hasDivider:z,isDisabled:le,onClick:S})=>jsx(MenuItem,{value:R,disabled:le,onSelect:()=>M(S),asChild:true,className:"flex items-center",children:jsx(he,{title:R,description:D,startIcon:w,endIcon:j,disabled:le,hasDivider:z,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},R))})})})]}):jsx("button",{...x,type:f,disabled:I,"aria-pressed":l,className:y({className:e}),children:p})};var jo={en:Yn,es:Zn,pt:Jn},fl={es:{clearPhoneNumberLabel:"Eliminar n\xFAmero de tel\xE9fono",noCountryFound:"No se encontraron resultados.",noCountryFoundSubtitle:"Ajusta los criterios e int\xE9ntalo nuevamente.",searchCountryPlaceholder:"Buscar..."},pt:{clearPhoneNumberLabel:"Limpar n\xFAmero de telefone",noCountryFound:"N\xE3o foram encontrados resultados.",noCountryFoundSubtitle:"Ajuste os crit\xE9rios e tente novamente.",searchCountryPlaceholder:"Pesquisar..."}},bl={clearPhoneNumberLabel:"Clear phone number",noCountryFound:"No results were found.",noCountryFoundSubtitle:"Adjust the criteria and try again.",searchCountryPlaceholder:"Search..."},gl=jo.en,Go="9 1234 5678",Ot="ZZ",Ko=()=>{},rt=e=>fl[e]??bl,Qo=e=>jo[e]??gl,Xo=e=>{if(e)try{let t=parsePhoneNumber(e)?.country;return !t||!j$1(t)?void 0:t}catch{return}},Yo=e=>{if(e)return getExampleNumber(e,cl)?.formatNational()},it=e=>e??Ot,lt=()=>getDefaultOptions().locale?.code;var vl=({Icon:e,callingCode:t,country:o,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:o,label:n})}),t&&jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",r),children:`+${t}`})]}),Zo=({className:e,disabled:t,error:o,iconComponent:n,onChange:r,onOpenChange:i,options:l,readOnly:s,translations:a,value:m})=>{let u=B.useRef(null),[g,b]=B.useState(""),[f,x]=B.useState(false),{wrapper:I,input:v,clearIcon:C,searchIcon:E}=b$2({size:"md"}),{contains:L}=useFilter({sensitivity:"base"}),N=B.useMemo(()=>l.filter(p=>p.value!==void 0&&j$1(p.value)).map(p=>({callingCode:p.value?getCountryCallingCode(p.value):void 0,country:p.value,key:it(p.value),label:p.label})),[l]),h=B.useMemo(()=>N.find(p=>p.key===it(m)),[N,m]),{collection:P,filter:M,set:y}=useListCollection({initialItems:N,itemToString:p=>p.callingCode?`${p.label} +${p.callingCode}`:p.label,itemToValue:p=>p.key,filter:(p,R,D)=>{let w=R.trim().replace(/^\+/,"");return L(p,R)||(D.country?L(D.country,R.toUpperCase()):false)||(D.callingCode?L(D.callingCode,w)||L(`+${D.callingCode}`,R):false)}});B.useEffect(()=>{y(N);},[N,y]);let A=B.useCallback(p=>{x(p),i?.(p);},[i]),k=B.useCallback(({inputValue:p})=>{let R=p??"";b(R),M(R),u.current?.scrollTo({top:0});},[M]),V=B.useCallback(p=>{A(p),p&&(b(""),M(""));},[M,A]),_=B.useCallback(({itemValue:p})=>{if(!p||p===Ot){r(void 0),A(false);return}j$1(p)&&(r(p),A(false));},[A,r]),c=useCombobox({collection:P,inputBehavior:"autohighlight",inputValue:g,open:f,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:h?[h.key]:[],onInputValueChange:k,onOpenChange:({open:p})=>{p||A(false);},onSelect:_});return jsx(Combobox.RootProvider,{value:c,children:jsxs(a$9,{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-['']",o?"bg-danger-20 after:bg-danger-500 after:w-0.5":t||s?"bg-neutral-200 after:bg-neutral-300":"group-focus-within/phone:after:bg-primary-800 bg-neutral-200 after:bg-neutral-600 group-focus-within/phone:after:w-0.5",!o&&f&&"after:bg-primary-800 after:w-0.5",e),disabled:t||s,children:h&&jsx(vl,{Icon:n,callingCode:h.callingCode,country:h.country,countryName:h.label,callingCodeClassName:a$2(o?"text-danger-600":void 0,t&&"text-neutral-600",s&&"text-neutral-600")})})}),jsx(c$5,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:I({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:a.searchCountryPlaceholder,className:v()}),!t&&g.length>0&&jsx("button",{type:"button",className:C(),onClick:()=>{c.setInputValue("","clear-trigger");},children:jsx(d,{className:"size-4.5"})}),jsx(p,{className:E()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:u,className:"h-72 overflow-auto outline-none",children:P.items.length===0?jsxs("div",{className:"flex h-full flex-1 flex-col items-center justify-center text-center text-sm",children:[jsx("p",{className:"text-neutral-700",children:a.noCountryFound}),jsx("p",{className:"text-neutral-600",children:a.noCountryFoundSubtitle})]}):jsx(Combobox.ItemGroup,{children:P.items.map(p=>jsxs(Combobox.Item,{item:p,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:p.country,label:p.label})}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:p.label}),p.callingCode&&jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:`+${p.callingCode}`}),jsx(j,{className:a$2("ml-auto size-4 shrink-0",p.key===it(m)?"opacity-100":"opacity-0")})]},p.key))})})]})})]})})};var en=({className:e,country:t,countryName:o})=>{let n=Wn[t];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:o})})};var kt=B.forwardRef(({className:e,disabled:t,error:o,onChange:n,readOnly:r,type:i,value:l,...s},a)=>{let m=lt(),u=B.useMemo(()=>rt(m),[m]),g=B.useRef(null),f=!t&&!r&&!!l,x=f||o;B.useImperativeHandle(a,()=>g.current,[]);let I=B.useCallback(C=>{C.preventDefault();},[]),v=B.useCallback(()=>{let C=g.current;if(!C){n?.({target:{value:""}});return}C.value="",n?.({target:C}),C.focus();},[n]);return jsxs("div",{className:a$2("relative flex h-full min-w-0 flex-1 rounded-r bg-neutral-50",t&&"bg-neutral-100"),children:[jsx("input",{type:i,"data-slot":"input",className:a$2("h-full min-w-0 flex-1 rounded-r bg-transparent px-3 text-sm leading-[143%] text-neutral-900 placeholder-neutral-600 focus-visible:outline-0",x&&!o&&"pr-10.5",f&&o&&"pr-14",o&&!f&&"pr-10.5",t&&"text-neutral-600",e),...s,disabled:t,readOnly:r,value:l,onChange:n,ref:g}),(f||o)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[f&&jsx("button",{type:"button","aria-label":u.clearPhoneNumberLabel,className:"flex items-center justify-center text-neutral-900",onMouseDown:I,onClick:v,children:jsx(d,{className:"size-4.5"})}),o&&jsx(q,{className:"text-danger-500 pointer-events-none size-4.5 shrink-0"})]})]})});kt.displayName="PhoneNumberInputComponent";var Rl=Il,on=B.forwardRef(({className:e,defaultCountry:t,disabled:o,error:n,helperText:r,id:i,label:l,onChange:s=Ko,placeholder:a,readOnly:m,required:u,tooltip:g,value:b,...f},x)=>{let[I,v]=B.useState(false),[C,E]=B.useState(()=>Xo(b)??t),L=B.useId(),N=i??L,h=lt(),P=B.useMemo(()=>rt(h),[h]),M=B.useMemo(()=>Qo(h),[h]),y=B.useMemo(()=>Yo(C)??a??Go,[a,C]),A=a$2("relative flex h-10 rounded after:pointer-events-none after:absolute after:inset-0 after:z-10 after:rounded-[inherit] after:ring-1 after:content-[''] after:ring-inset",n?"after:ring-danger-500 after:ring-2":o||m?"after:ring-neutral-300":"focus-within:after:ring-primary-800 after:ring-neutral-600 focus-within:after:ring-2",!n&&!o&&!m&&I&&"after:ring-primary-800 after:ring-2",e),k=B.useCallback(V=>{E(V);},[]);return jsxs("div",{className:"group flex flex-col","data-disabled":o||void 0,"data-error":n||void 0,"data-readonly":m||void 0,children:[l&&jsx(a$6,{as:"label",htmlFor:N,label:l,required:u,tooltip:g}),jsx(Rl,{...f,className:A,ref:x,countrySelectComponent:Zo,countrySelectProps:{error:n,onOpenChange:v,translations:P},defaultCountry:t,disabled:o,flagComponent:en,id:N,initialValueFormat:"national",inputComponent:kt,labels:M,numberInputProps:{error:n,placeholder:y},readOnly:m,required:u,value:b,onChange:s,onCountryChange:k}),jsx("p",{className:"font-inter text-2xs group-data-[error=true]:text-error-500 mt-1 leading-[133.33%] font-normal text-neutral-700 group-data-disabled:text-neutral-400 empty:hidden",children:r})]})});on.displayName="PhoneInput";var Pl=({children:e,hasDescription:t=false,disabled:o=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",t?"py-3":"py-3.5",o?"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=>{o||l?.(m);},...s,children:e}),n&&jsx(a$1,{})]}),te=Pl;var Ed=({children:e,title:t,titleLines:o,description:n="",descriptionLines:r,startIcon:i,badgeContent:l,hasDivider:s=false,disabled:a=false,onSelect:m,className:u,...g})=>jsxs(te,{hasDescription:!!n,disabled:a,onClick:m,hasDivider:s,className:a$2(!a&&"cursor-pointer",u),...g,children:[i&&B__default.cloneElement(i,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ue,{title:t,titleLines:o,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{Vo as A,Wl as a,Ed as b,io as c,da as d,Eo as e,oc as f,dc as g,xt as h,yt as i,ye as j,Tt as k,Pt as l,Oi as m,Wi as n,Gi as o,Ki as p,Qi as q,Xi as r,tp as s,op as t,np as u,rp as v,on as w,he as x,Lu as y,Iu as z};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-T2Q6B32U.js';import {a}from'./chunk-OBZIYJO7.js';import {forwardRef,useRef,useState,useImperativeHandle,useEffect}from'react';import {Label}from'@radix-ui/react-label';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var O=["sm","md","lg"],C=tv({slots:{container:"relative flex flex-col rounded-lg bg-neutral-50",textarea:"no-scrollbar peer z-20 h-full w-full resize-none rounded-lg bg-neutral-50/0 p-3 text-sm leading-[130%] text-neutral-900 placeholder-neutral-500 ring-1 outline-0 transition-all ease-linear ring-inset not-placeholder-shown:z-10 focus:ring-2",label:"peer-focus:text-primary-800 absolute -top-[0.375rem] z-10 mx-3 bg-neutral-50 px-1 text-xs text-neutral-900 transition-all duration-75 ease-linear peer-placeholder-shown:top-2.5 peer-placeholder-shown:text-sm peer-focus:-top-[0.375rem] peer-focus:z-20 peer-focus:text-xs"},variants:{size:{lg:{textarea:"h-22"},md:{textarea:"h-20"},sm:{textarea:"h-18"}},error:{true:{}},disabled:{true:{}}},compoundVariants:[{error:false,disabled:false,className:{textarea:"focus:placeholder-opacity-100 focus:caret-primary-800 focus:ring-primary-800 caret-neutral-900 ring-neutral-400 hover:ring-neutral-600 focus:placeholder-neutral-600",label:"peer-not-focus:text-neutral-500 peer-not-focus:peer-not-placeholder-shown:text-neutral-900"}},{error:true,className:{textarea:"placeholder-error-700/0 ring-error-700 hover:ring-error-700 focus:ring-error-700",label:"text-error-700 peer-focus:text-error-700"}},{error:false,disabled:true,className:{textarea:"bg-neutral-80 text-neutral-400 placeholder-neutral-400 ring-0",label:"peer bg-neutral-80 peer-not-focus:peer-placeholder-shown:bg-neutral-80 text-neutral-50 peer-not-focus:text-neutral-400 peer-disabled:z-20"}}],defaultVariants:{error:false,disabled:false,size:"md"}}),Q=forwardRef(({className:h,placeholder:b,helperText:g,disabled:l,error:u,size:T="md",label:n,maxLengthText:v="characters",onChange:L,enableMaxLengthValidation:t=true,maxLength:a$2=340,...H},y)=>{let e=useRef(null),[z,E]=useState(0),[i,c]=useState(false),p=useRef(null),{container:w,textarea:A,label:M}=C({error:i||u,size:T,disabled:l});return useImperativeHandle(y,()=>e.current,[e]),useEffect(()=>{let r=()=>{if(e.current?.value.length===a$2){if(!t)return;c(true),clearTimeout(p.current),p.current=setTimeout(()=>{c(false);},1e3);}};return e.current?.addEventListener("beforeinput",r),()=>{e.current?.removeEventListener("beforeinput",r);}},[t,a$2]),jsxs("div",{children:[jsxs("div",{className:a(w(),h),children:[jsx("textarea",{ref:e,maxLength:t?a$2:void 0,className:a(A(),n&&"placeholder-neutral-500/0"),placeholder:b??"",disabled:l,onChange:r=>{E(r.target.value.length),L?.(r);},...H}),n&&jsx(Label,{className:M(),children:n})]}),jsx(a$1,{helperText:`${t?`${z}/${a$2} ${v}.`:""} ${g||""}`.trim(),error:i||u,disabled:l})]})});export{O as a,Q as b};
1
+ import {a as a$1}from'./chunk-T2Q6B32U.js';import {a}from'./chunk-OBZIYJO7.js';import {forwardRef,useRef,useState,useImperativeHandle,useEffect}from'react';import {Label}from'@radix-ui/react-label';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var K=["sm","md","lg"],C=tv({slots:{container:"relative flex flex-col rounded-lg bg-neutral-50",textarea:"no-scrollbar peer z-20 h-full w-full resize-none rounded-lg bg-neutral-50/0 p-3 text-sm leading-[130%] text-neutral-900 placeholder-neutral-500 ring-1 outline-0 transition-all ease-linear ring-inset not-placeholder-shown:z-10 focus:ring-2",label:"peer-focus:text-primary-800 absolute -top-[0.375rem] z-10 mx-3 bg-neutral-50 px-1 text-xs text-neutral-900 transition-all duration-75 ease-linear peer-placeholder-shown:top-2.5 peer-placeholder-shown:text-sm peer-focus:-top-[0.375rem] peer-focus:z-20 peer-focus:text-xs"},variants:{size:{lg:{textarea:"h-22"},md:{textarea:"h-20"},sm:{textarea:"h-18"}},error:{true:{}},disabled:{true:{}}},compoundVariants:[{error:false,disabled:false,className:{textarea:"focus:placeholder-opacity-100 focus:caret-primary-800 focus:ring-primary-800 caret-neutral-900 ring-neutral-400 hover:ring-neutral-600 focus:placeholder-neutral-600",label:"peer-not-focus:text-neutral-500 peer-not-focus:peer-not-placeholder-shown:text-neutral-900"}},{error:true,className:{textarea:"placeholder-error-700/0 ring-error-700 hover:ring-error-700 focus:ring-error-700",label:"text-error-700 peer-focus:text-error-700"}},{error:false,disabled:true,className:{textarea:"bg-neutral-80 text-neutral-400 placeholder-neutral-400 ring-0",label:"peer bg-neutral-80 peer-not-focus:peer-placeholder-shown:bg-neutral-80 text-neutral-50 peer-not-focus:text-neutral-400 peer-disabled:z-20"}}],defaultVariants:{error:false,disabled:false,size:"md"}}),O=forwardRef(({className:h,placeholder:b,helperText:g,disabled:l,error:u,size:T="md",label:o,maxLengthText:v="characters",onChange:L,enableMaxLengthValidation:t=true,maxLength:a$2=340,...H},y)=>{let e=useRef(null),[z,E]=useState(0),[i,c]=useState(false),p=useRef(null),{container:w,textarea:A,label:M}=C({error:i||u,size:T,disabled:l});return useImperativeHandle(y,()=>e.current,[e]),useEffect(()=>{let r=()=>{if(e.current?.value.length===a$2){if(!t)return;c(true),clearTimeout(p.current),p.current=setTimeout(()=>{c(false);},1e3);}};return e.current?.addEventListener("beforeinput",r),()=>{e.current?.removeEventListener("beforeinput",r);}},[t,a$2]),jsxs("div",{children:[jsxs("div",{className:a(w(),h),children:[jsx("textarea",{ref:e,maxLength:t?a$2:void 0,className:a(A(),o&&"placeholder-neutral-500/0"),placeholder:b??"",disabled:l,onChange:r=>{E(r.target.value.length),L?.(r);},...H}),o&&jsx(Label,{className:M(),children:o})]}),jsx(a$1,{helperText:`${t?`${z}/${a$2} ${v}.`:""} ${g||""}`.trim(),error:i||u,disabled:l})]})});export{K as a,O as b};
@@ -1039,6 +1039,6 @@ declare const BadgeExpandable: React.ForwardRefExoticComponent<Omit<HTMLAttribut
1039
1039
  text: string;
1040
1040
  dot: string;
1041
1041
  leadingSymbolContainer: string;
1042
- }, undefined, unknown, unknown, undefined>>>, "color" | "size"> & React.RefAttributes<HTMLDivElement>>;
1042
+ }, undefined, unknown, unknown, undefined>>>, "size" | "color"> & React.RefAttributes<HTMLDivElement>>;
1043
1043
 
1044
1044
  export { BadgeExpandable, type BadgeExpandableColor, type BadgeExpandableLeading, type BadgeExpandableProps, type BadgeExpandableSize };
@@ -1 +1 @@
1
- export{A as ButtonActive,y as ButtonActiveSizes,z as ButtonActiveVariants}from'../chunk-LABFGCUJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-IUFS4MIW.js';import'../chunk-GD6I2OKP.js';import'../chunk-3TL4YHUJ.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-4NTXEKGN.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-GNEH3JEX.js';import'../chunk-GFVJRSZI.js';import'../chunk-SLKFBCVC.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-PRMEXLPY.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
1
+ export{A as ButtonActive,y as ButtonActiveSizes,z as ButtonActiveVariants}from'../chunk-H7YX3UOO.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-SIA2GA6D.js';import'../chunk-GD6I2OKP.js';import'../chunk-F2GFU3W7.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-6QA2JM6W.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-5XHPD6B7.js';import'../chunk-GFVJRSZI.js';import'../chunk-AGILGHTN.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-FSDUNXCV.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{v as ButtonMenu,s as ButtonMenuSizes,u as ButtonMenuTones,t as ButtonMenuWeights}from'../chunk-LABFGCUJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-IUFS4MIW.js';import'../chunk-GD6I2OKP.js';import'../chunk-3TL4YHUJ.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-4NTXEKGN.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-GNEH3JEX.js';import'../chunk-GFVJRSZI.js';import'../chunk-SLKFBCVC.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-PRMEXLPY.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
1
+ export{v as ButtonMenu,s as ButtonMenuSizes,u as ButtonMenuTones,t as ButtonMenuWeights}from'../chunk-H7YX3UOO.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-SIA2GA6D.js';import'../chunk-GD6I2OKP.js';import'../chunk-F2GFU3W7.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-6QA2JM6W.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-5XHPD6B7.js';import'../chunk-GFVJRSZI.js';import'../chunk-AGILGHTN.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-FSDUNXCV.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { FC } from 'react';
3
+ import { DayPicker } from 'react-day-picker';
4
+
5
+ type CalendarProps_old = React.ComponentProps<typeof DayPicker>;
6
+ type Locale_old = CalendarProps_old["locale"];
7
+ declare const Calendar_old: FC<CalendarProps_old>;
8
+
9
+ export { type CalendarProps_old, Calendar_old, type Locale_old };
@@ -0,0 +1 @@
1
+ export{a as Calendar_old}from'../chunk-FSDUNXCV.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -0,0 +1,21 @@
1
+ import { FC } from 'react';
2
+ import { TextFieldProps_old } from './text-field_old.js';
3
+ import { Locale_old, CalendarProps_old } from './calendar_old.js';
4
+ import 'react-day-picker';
5
+
6
+ type DatePickerProps_old = {
7
+ value?: Date;
8
+ locale?: Locale_old;
9
+ onChange?: (day: Date | undefined) => void;
10
+ placeholder?: TextFieldProps_old["placeholder"];
11
+ label?: TextFieldProps_old["label"];
12
+ className?: TextFieldProps_old["className"];
13
+ size?: TextFieldProps_old["size"];
14
+ helperText?: TextFieldProps_old["helperText"];
15
+ error?: TextFieldProps_old["error"];
16
+ disabledDates?: CalendarProps_old["disabled"];
17
+ disabled?: TextFieldProps_old["disabled"];
18
+ };
19
+ declare const DatePicker_old: FC<DatePickerProps_old>;
20
+
21
+ export { type DatePickerProps_old, DatePicker_old };
@@ -0,0 +1 @@
1
+ export{a as DatePicker_old}from'../chunk-5XHPD6B7.js';import'../chunk-GFVJRSZI.js';import'../chunk-AGILGHTN.js';import'../chunk-T2Q6B32U.js';import'../chunk-FSDUNXCV.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -2,7 +2,7 @@ export { Button, ButtonProps, ButtonSizes, ButtonVariants } from './button.js';
2
2
  export { AlertMessage, AlertMessageProps } from './alert-message.js';
3
3
  export { IconButton, IconButtonProps, IconButtonSizes, IconButtonVariants } from './icon-button.js';
4
4
  export { Tabs, TabsContent, TabsList, TabsSizes, TabsSizesType, TabsTrigger, TabsVariants, TabsVariantsType } from './tab.js';
5
- export { CoinsStartText, TextField, TextFieldProps } from './text-field.js';
5
+ export { CoinsStartText, TextFieldProps_old, TextField_old } from './text-field_old.js';
6
6
  import { IdCountryCode, PhoneCountryCode } from './country-code.js';
7
7
  export { BUSINESS_COUNTRY_CODES, BusinessCountryCode, BusinessCountryEnum, ID_COUNTRY_CODES, ISO_COUNTRY_CODES, IdCountryEnum, IsoCountryCode, IsoCountryEnum, PHONE_COUNTRY_CODES, PhoneCountryEnum, isBusinessCountryCode, isIdCountryCode, isIsoCountryCode, isPhoneCountryCode } from './country-code.js';
8
8
  export { Spinner, SpinnerSize, SpinnerSizes, SpinnerVariant, SpinnerVariants } from './spinner.js';
@@ -17,11 +17,11 @@ export { Separator } from './separator.js';
17
17
  export { AlertDialog, AlertDialogActionButton, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogDescription, AlertDialogExtraButton, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from './alert-dialog.js';
18
18
  import { LucideProps } from 'lucide-react';
19
19
  import * as React$1 from 'react';
20
- import React__default, { FC, HTMLAttributes, RefObject } from 'react';
20
+ import React__default, { HTMLAttributes, FC, RefObject } from 'react';
21
21
  export { Accordion, AccordionContent, AccordionItem, AccordionSizes, AccordionTrigger, AccordionTriggerEmpty } from './accordion.js';
22
- export { Textarea, TextareaProps, TextareaSizes } from './textarea.js';
22
+ export { TextareaProps_old, TextareaSizes_old, Textarea_old } from './textarea_old.js';
23
23
  export { Rating, RatingProps, RatingSizes } from './rating.js';
24
- export { Select, SelectOption, SelectProps } from './select.js';
24
+ export { SelectOption_old, SelectProps_old, Select_old } from './select_old.js';
25
25
  export { Skeleton, SkeletonProps } from './skeleton.js';
26
26
  export { PopoverContent_old, PopoverTrigger_old, Popover_old } from './popover_old.js';
27
27
  export { ChipInput, ChipInputSizes, ChipInputTypes, ChipInputVariants } from './chip-input.js';
@@ -30,9 +30,9 @@ export { ListItem } from './list-item.js';
30
30
  export { ListItemArrow } from './list-item-arrow.js';
31
31
  export { ListItemCheckbox } from './list-item-checkbox.js';
32
32
  export { ChipStatusTable, ChipStatusTableProps, ChipStatusTableVariants } from './chip-status-table.js';
33
- export { Calendar, CalendarProps, Locale } from './calendar.js';
34
- export { DatePicker, DatePickerProps } from './date-picker.js';
35
- export { Time, TimePicker, TimePickerProps } from './time-picker.js';
33
+ export { CalendarProps_old, Calendar_old, Locale_old } from './calendar_old.js';
34
+ export { DatePickerProps_old, DatePicker_old } from './date-picker_old.js';
35
+ export { Time, TimePickerProps_old, TimePicker_old } from './time-picker_old.js';
36
36
  export { Avatar, AvatarProps, AvatarSizes } from './avatar.js';
37
37
  export { SearchBar, SearchBarProps, SearchBarSizeOptions, searchBarStyles } from './search-bar.js';
38
38
  export { ChipFormComplementary, ChipFormComplementaryVariants, ChipFormComplementaryVariantsClassNames, ChipFormComplementaryVariantsType } from './chip-form-complementary.js';
@@ -109,17 +109,17 @@ import './step-item.js';
109
109
  import '@ark-ui/react/menu';
110
110
  import './base-button-styles.js';
111
111
 
112
- type AutocompleteOption = {
112
+ type AutocompleteOption_old = {
113
113
  key?: string | number;
114
114
  label: string;
115
115
  value: string | number;
116
116
  disabled?: boolean;
117
117
  description?: string;
118
118
  };
119
- type AutocompleteProps = {
120
- options: AutocompleteOption[];
121
- defaultSelectedOption?: AutocompleteOption | null;
122
- onSelect?: (option: AutocompleteOption | null) => void;
119
+ type AutocompleteProps_old = {
120
+ options: AutocompleteOption_old[];
121
+ defaultSelectedOption?: AutocompleteOption_old | null;
122
+ onSelect?: (option: AutocompleteOption_old | null) => void;
123
123
  error?: boolean;
124
124
  helperText?: string;
125
125
  label?: string;
@@ -131,7 +131,7 @@ type AutocompleteProps = {
131
131
  noResultsAsColumn?: boolean;
132
132
  noResultsButtonOnClick?: () => void;
133
133
  className?: HTMLAttributes<HTMLDivElement>["className"];
134
- value?: AutocompleteOption;
134
+ value?: AutocompleteOption_old;
135
135
  size?: "md" | "lg";
136
136
  optionDescriptionLines?: number;
137
137
  noResultsButtonLabel?: string;
@@ -139,12 +139,12 @@ type AutocompleteProps = {
139
139
  onInputChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
140
140
  disabled?: boolean;
141
141
  };
142
- declare const Autocomplete: FC<AutocompleteProps>;
142
+ declare const Autocomplete_old: FC<AutocompleteProps_old>;
143
143
 
144
144
  type AutocompleteMultipleProps = {
145
- options: AutocompleteMultipleOption[];
146
- defaultSelectedOptions?: AutocompleteMultipleOption[] | null;
147
- onSelect?: (option: AutocompleteMultipleOption | null, selectedOptions: AutocompleteMultipleOption[]) => void;
145
+ options: AutocompleteMultipleOption_old[];
146
+ defaultSelectedOptions?: AutocompleteMultipleOption_old[] | null;
147
+ onSelect?: (option: AutocompleteMultipleOption_old | null, selectedOptions: AutocompleteMultipleOption_old[]) => void;
148
148
  error?: boolean;
149
149
  helperText?: string;
150
150
  label?: string;
@@ -157,7 +157,7 @@ type AutocompleteMultipleProps = {
157
157
  noResultsButtonOnClick?: () => void;
158
158
  className?: HTMLAttributes<HTMLDivElement>["className"];
159
159
  onInputChange?: (value: string) => void;
160
- value?: AutocompleteMultipleOption[];
160
+ value?: AutocompleteMultipleOption_old[];
161
161
  loading?: boolean;
162
162
  size?: "md" | "lg";
163
163
  optionDescriptionLines?: number;
@@ -165,20 +165,20 @@ type AutocompleteMultipleProps = {
165
165
  disabled?: boolean;
166
166
  };
167
167
 
168
- type AutocompleteMultipleOption = {
168
+ type AutocompleteMultipleOption_old = {
169
169
  key?: string | number;
170
170
  label: string;
171
171
  value: string | number | null;
172
172
  disabled?: boolean;
173
173
  description?: string;
174
174
  };
175
- declare const AutocompleteMultiple: FC<AutocompleteMultipleProps>;
175
+ declare const AutocompleteMultiple_old: FC<AutocompleteMultipleProps>;
176
176
 
177
177
  declare const IdField: React$1.ForwardRefExoticComponent<{
178
- id?: string | undefined | undefined;
179
- onBlur?: React$1.FocusEventHandler<HTMLInputElement> | undefined;
180
178
  disabled?: boolean | undefined | undefined;
179
+ id?: string | undefined | undefined;
181
180
  name?: string | undefined | undefined;
181
+ onBlur?: React$1.FocusEventHandler<HTMLInputElement> | undefined;
182
182
  required?: boolean | undefined | undefined;
183
183
  readOnly?: boolean | undefined | undefined;
184
184
  placeholder?: string | undefined | undefined;
@@ -268,7 +268,7 @@ type PhoneInputProps = PhoneInputAllowedProps & {
268
268
  value?: Value | string;
269
269
  };
270
270
 
271
- declare const PhoneInput: React$1.ForwardRefExoticComponent<Pick<Props<PhoneNumberInputComponentProps>, "id" | "onBlur" | "disabled" | "name" | "required" | "readOnly" | "placeholder" | "autoComplete"> & {
271
+ declare const PhoneInput: React$1.ForwardRefExoticComponent<Pick<Props<PhoneNumberInputComponentProps>, "disabled" | "id" | "name" | "onBlur" | "required" | "readOnly" | "placeholder" | "autoComplete"> & {
272
272
  defaultCountry?: PhoneCountryCode;
273
273
  } & {
274
274
  className?: React$1.HTMLAttributes<HTMLDivElement>["className"];
@@ -280,4 +280,4 @@ declare const PhoneInput: React$1.ForwardRefExoticComponent<Pick<Props<PhoneNumb
280
280
  value?: react_phone_number_input.Value | string;
281
281
  } & React$1.RefAttributes<HTMLInputElement>>;
282
282
 
283
- export { Autocomplete, AutocompleteMultiple, type AutocompleteMultipleOption, type AutocompleteOption, type AutocompleteProps, IdCountryCode, IdField, type IdFieldProps, PhoneCountryCode, PhoneInput, type PhoneInputProps, type RichTextAlignment, RichTextEditor, type RichTextEditorChangeHandler, type RichTextEditorProps, type RichTextHeadingLevel, type RichTextTextFormat, type RichTextToolbarConfig, convertHtmlToQuillCompatible, defaultToolbarConfig, lexicalTheme, normalizeHtmlForComparison, normalizeQuillHtmlForLexical };
283
+ export { type AutocompleteMultipleOption_old, AutocompleteMultiple_old, type AutocompleteOption_old, type AutocompleteProps_old, Autocomplete_old, IdCountryCode, IdField, type IdFieldProps, PhoneCountryCode, PhoneInput, type PhoneInputProps, type RichTextAlignment, RichTextEditor, type RichTextEditorChangeHandler, type RichTextEditorProps, type RichTextHeadingLevel, type RichTextTextFormat, type RichTextToolbarConfig, convertHtmlToQuillCompatible, defaultToolbarConfig, lexicalTheme, normalizeHtmlForComparison, normalizeQuillHtmlForLexical };
@@ -1 +1 @@
1
- export{a as Autocomplete,d as AutocompleteMultiple,A as ButtonActive,y as ButtonActiveSizes,z as ButtonActiveVariants,v as ButtonMenu,s as ButtonMenuSizes,u as ButtonMenuTones,t as ButtonMenuWeights,e as IdField,x as ListItem,b as ListItemArrow,f as ListItemButton,c as ListItemCheckbox,g as ListItemCheckboxLeft,w as PhoneInput,m as RichTextEditor,r as TrackerItem,p as TrackerItemExpandableContent,q as TrackerItemFooter,o as TrackerItemHeader,l as convertHtmlToQuillCompatible,i as defaultToolbarConfig,h as lexicalTheme,j as normalizeHtmlForComparison,k as normalizeQuillHtmlForLexical,n as useTrackerItem}from'../chunk-LABFGCUJ.js';export{c as getSelectedCount,b as getSelectedIds,a as syncSelectionDataMap,d as useRowSelectionWithData}from'../chunk-ABJHG7HB.js';export{a as TextFieldNew}from'../chunk-7TFTX3SD.js';export{a as TextareaNew}from'../chunk-YTHJR43W.js';export{b as Textarea,a as TextareaSizes}from'../chunk-IUFS4MIW.js';export{a as TimePickerNew}from'../chunk-GD6I2OKP.js';export{a as TimePicker}from'../chunk-3TL4YHUJ.js';export{a as ToastTypes,c as Toaster,b as toast}from'../chunk-VLGLJZY7.js';export{b as SnackbarProvider,a as snackbar}from'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';export{d as Switch,a as SwitchSizes,b as SwitchTypes,c as SwitchVariants}from'../chunk-7JM2X4UD.js';export{c as Tabs,f as TabsContent,d as TabsList,b as TabsSizes,e as TabsTrigger,a as TabsVariants}from'../chunk-L5N4JYES.js';export{b as Rating,a as RatingSizes}from'../chunk-FKX22R3G.js';export{a as ScrollArea,b as ScrollBar}from'../chunk-5T72Q62I.js';export{c as SearchBar,a as SearchBarSizeOptions,b as searchBarStyles}from'../chunk-QDIGGJWI.js';export{a as SelectNew}from'../chunk-UIMI4JKR.js';export{a as Select}from'../chunk-4NTXEKGN.js';export{c as Sidebar,e as SidebarBody,f as SidebarFooter,d as SidebarHeader,b as SidebarProvider,a as useSidebar}from'../chunk-XOREOUHD.js';export{a as SignaturePad}from'../chunk-SDD7J42R.js';export{a as PhoneInputSkeleton}from'../chunk-FURFUBTJ.js';export{c as PopoverContent_old,b as PopoverTrigger_old,a as Popover_old}from'../chunk-XNBXUXHQ.js';export{b as RadioGroup,c as RadioGroupItem,a as RadioGroupOrientation}from'../chunk-FTMDOU3O.js';export{a as Dialog,i as DialogActionButton,f as DialogBody,j as DialogCloseButton,c as DialogContent,h as DialogDescription,k as DialogExtraButton,e as DialogFooter,d as DialogHeader,g as DialogTitle,b as DialogTrigger}from'../chunk-GE3JXP4V.js';export{a as Drawer,g as DrawerBody,h as DrawerCloseTrigger,d as DrawerContent,f as DrawerFooter,e as DrawerHeader,c as DrawerSizes,b as DrawerTrigger}from'../chunk-LWFUFYPY.js';export{c as Dropzone,a as DropzoneAcceptedFileTypes,b as DropzoneSizes}from'../chunk-FRRDTCYK.js';export{c as Spinner,a as SpinnerSizes,b as SpinnerVariants}from'../chunk-XPR5NR6A.js';export{c as ChipStatusComplementary,b as ChipStatusComplementarySizes,a as ChipStatusComplementaryVariants}from'../chunk-AUMOOT6L.js';export{a as ChipStatusTable}from'../chunk-Y73ZUBRE.js';export{d as BUSINESS_COUNTRY_CODES,h as BusinessCountryEnum,c as ID_COUNTRY_CODES,b as ISO_COUNTRY_CODES,g as IdCountryEnum,e as IsoCountryEnum,a as PHONE_COUNTRY_CODES,f as PhoneCountryEnum,l as isBusinessCountryCode,k as isIdCountryCode,i as isIsoCountryCode,j as isPhoneCountryCode}from'../chunk-FRWCCOOJ.js';export{a as DataTable}from'../chunk-D3NJBXNU.js';export{b as Table,d as TableBody,e as TableBodyRow,i as TableCell,a as TableContainer,h as TableHead,c as TableHeader,g as TableHeaderRow,f as TableNoResults,j as TablePagination}from'../chunk-TUDRPGP5.js';export{a as Popover,c as PopoverContent,b as PopoverTrigger}from'../chunk-4RJVZ7FN.js';export{a as DatePickerNew}from'../chunk-VN6SU2T6.js';export{a as DatePicker}from'../chunk-GNEH3JEX.js';import'../chunk-GFVJRSZI.js';export{a as TextField}from'../chunk-SLKFBCVC.js';import'../chunk-T2Q6B32U.js';export{d as CardExpandable,b as CardExpandableContent,c as CardExpandableFixedContent,a as CardExpandableHeader}from'../chunk-SH5QNG46.js';export{a as CardForm,c as CardFormBody,d as CardFormFooter,b as CardFormHeader}from'../chunk-MJNHFM5Y.js';export{j as Carousel,j as CarouselComponent,b as CarouselControl,f as CarouselIndicator,e as CarouselIndicatorGroup,h as CarouselItem,g as CarouselItemGroup,d as CarouselNextTrigger,c as CarouselPrevTrigger,a as CarouselRoot,i as CarouselViewport}from'../chunk-UJPAEQXZ.js';export{b as Checkbox,a as CheckboxCheckedStates}from'../chunk-EX6MBO76.js';export{d as ChipContext,c as ChipContextColors,b as ChipContextSizes,a as ChipContextVariants}from'../chunk-JA7GAJ6P.js';export{c as ChipExpandable,b as ChipExpandableTypes,a as ChipExpandableVariants}from'../chunk-JYNJHAGL.js';export{c as ChipFormComplementary,a as ChipFormComplementaryVariants,b as ChipFormComplementaryVariantsClassNames}from'../chunk-QONM4Q4J.js';export{d as ChipForm,c as ChipFormSizes,b as ChipFormTypes,a as ChipFormVariants}from'../chunk-3HZUH4JJ.js';export{a as BadgeStatus}from'../chunk-UIZFLYFP.js';export{e as CalendarNew,a as CalendarNewProvider,d as LocaleProvider,c as parseDate,b as useCalendar}from'../chunk-RVIJTSS5.js';export{a as Calendar}from'../chunk-PRMEXLPY.js';export{a as AutocompleteNew}from'../chunk-2FAROIBF.js';export{b as Avatar,a as AvatarSizes}from'../chunk-GB2SAYAL.js';export{a as BadgeCategorySkeleton}from'../chunk-RQQJYDAY.js';export{a as BadgeCategory}from'../chunk-SY5G3KQF.js';export{a as BadgeExpandableSkeleton}from'../chunk-DL3P7FK4.js';export{a as BadgeExpandable}from'../chunk-JW7HS6NX.js';export{a as BadgeNumber}from'../chunk-SKMTTF6M.js';export{a as BadgeStatusSkeleton}from'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';export{b as AccordionForm,e as AccordionFormContent,c as AccordionFormItem,a as AccordionFormSizes,d as AccordionFormTrigger}from'../chunk-JHIRF35R.js';export{c as Accordion,g as AccordionContent,d as AccordionItem,a as AccordionPrimitive,b as AccordionSizes,f as AccordionTrigger,e as AccordionTriggerEmpty}from'../chunk-HMQQW3AR.js';export{d as ChipStatus,b as ChipStatusSizes,c as ChipStatusTypes,a as ChipStatusVariants}from'../chunk-MP4CHZ2K.js';export{a as Badge}from'../chunk-R6NIURLZ.js';export{a as AlertDialog,f as AlertDialogActionButton,m as AlertDialogBody,g as AlertDialogCloseButton,e as AlertDialogContent,l as AlertDialogDescription,h as AlertDialogExtraButton,j as AlertDialogFooter,i as AlertDialogHeader,d as AlertDialogOverlay,c as AlertDialogPortal,k as AlertDialogTitle,b as AlertDialogTrigger}from'../chunk-UK47DRCQ.js';export{a as AlertMessage}from'../chunk-FVKJ7N2Q.js';export{c as IconButton,a as IconButtonSizes,b as IconButtonVariants}from'../chunk-WQPZV6HK.js';export{a as Skeleton}from'../chunk-KTD2GEB6.js';export{a as AutocompleteMultipleNew}from'../chunk-M4HK3QBQ.js';export{d as ChipInput,a as ChipInputSizes,c as ChipInputTypes,b as ChipInputVariants}from'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';export{a as Tooltip}from'../chunk-CM6ALMTT.js';export{a as Separator}from'../chunk-4CM257A2.js';export{c as Button,a as ButtonSizes,b as ButtonVariants}from'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
1
+ export{d as AutocompleteMultiple_old,a as Autocomplete_old,A as ButtonActive,y as ButtonActiveSizes,z as ButtonActiveVariants,v as ButtonMenu,s as ButtonMenuSizes,u as ButtonMenuTones,t as ButtonMenuWeights,e as IdField,x as ListItem,b as ListItemArrow,f as ListItemButton,c as ListItemCheckbox,g as ListItemCheckboxLeft,w as PhoneInput,m as RichTextEditor,r as TrackerItem,p as TrackerItemExpandableContent,q as TrackerItemFooter,o as TrackerItemHeader,l as convertHtmlToQuillCompatible,i as defaultToolbarConfig,h as lexicalTheme,j as normalizeHtmlForComparison,k as normalizeQuillHtmlForLexical,n as useTrackerItem}from'../chunk-H7YX3UOO.js';export{c as getSelectedCount,b as getSelectedIds,a as syncSelectionDataMap,d as useRowSelectionWithData}from'../chunk-ABJHG7HB.js';export{a as TextFieldNew}from'../chunk-7TFTX3SD.js';export{a as TextareaNew}from'../chunk-YTHJR43W.js';export{a as TextareaSizes_old,b as Textarea_old}from'../chunk-SIA2GA6D.js';export{a as TimePickerNew}from'../chunk-GD6I2OKP.js';export{a as TimePicker_old}from'../chunk-F2GFU3W7.js';export{a as ToastTypes,c as Toaster,b as toast}from'../chunk-VLGLJZY7.js';export{b as SnackbarProvider,a as snackbar}from'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';export{d as Switch,a as SwitchSizes,b as SwitchTypes,c as SwitchVariants}from'../chunk-7JM2X4UD.js';export{c as Tabs,f as TabsContent,d as TabsList,b as TabsSizes,e as TabsTrigger,a as TabsVariants}from'../chunk-L5N4JYES.js';export{b as Rating,a as RatingSizes}from'../chunk-FKX22R3G.js';export{a as ScrollArea,b as ScrollBar}from'../chunk-5T72Q62I.js';export{c as SearchBar,a as SearchBarSizeOptions,b as searchBarStyles}from'../chunk-QDIGGJWI.js';export{a as SelectNew}from'../chunk-UIMI4JKR.js';export{a as Select_old}from'../chunk-6QA2JM6W.js';export{c as Sidebar,e as SidebarBody,f as SidebarFooter,d as SidebarHeader,b as SidebarProvider,a as useSidebar}from'../chunk-XOREOUHD.js';export{a as SignaturePad}from'../chunk-SDD7J42R.js';export{a as PhoneInputSkeleton}from'../chunk-FURFUBTJ.js';export{c as PopoverContent_old,b as PopoverTrigger_old,a as Popover_old}from'../chunk-XNBXUXHQ.js';export{b as RadioGroup,c as RadioGroupItem,a as RadioGroupOrientation}from'../chunk-FTMDOU3O.js';export{a as Dialog,i as DialogActionButton,f as DialogBody,j as DialogCloseButton,c as DialogContent,h as DialogDescription,k as DialogExtraButton,e as DialogFooter,d as DialogHeader,g as DialogTitle,b as DialogTrigger}from'../chunk-GE3JXP4V.js';export{a as Drawer,g as DrawerBody,h as DrawerCloseTrigger,d as DrawerContent,f as DrawerFooter,e as DrawerHeader,c as DrawerSizes,b as DrawerTrigger}from'../chunk-LWFUFYPY.js';export{c as Dropzone,a as DropzoneAcceptedFileTypes,b as DropzoneSizes}from'../chunk-FRRDTCYK.js';export{c as Spinner,a as SpinnerSizes,b as SpinnerVariants}from'../chunk-XPR5NR6A.js';export{c as ChipStatusComplementary,b as ChipStatusComplementarySizes,a as ChipStatusComplementaryVariants}from'../chunk-AUMOOT6L.js';export{a as ChipStatusTable}from'../chunk-Y73ZUBRE.js';export{d as BUSINESS_COUNTRY_CODES,h as BusinessCountryEnum,c as ID_COUNTRY_CODES,b as ISO_COUNTRY_CODES,g as IdCountryEnum,e as IsoCountryEnum,a as PHONE_COUNTRY_CODES,f as PhoneCountryEnum,l as isBusinessCountryCode,k as isIdCountryCode,i as isIsoCountryCode,j as isPhoneCountryCode}from'../chunk-FRWCCOOJ.js';export{a as DataTable}from'../chunk-D3NJBXNU.js';export{b as Table,d as TableBody,e as TableBodyRow,i as TableCell,a as TableContainer,h as TableHead,c as TableHeader,g as TableHeaderRow,f as TableNoResults,j as TablePagination}from'../chunk-TUDRPGP5.js';export{a as Popover,c as PopoverContent,b as PopoverTrigger}from'../chunk-4RJVZ7FN.js';export{a as DatePickerNew}from'../chunk-VN6SU2T6.js';export{a as DatePicker_old}from'../chunk-5XHPD6B7.js';import'../chunk-GFVJRSZI.js';export{a as TextField_old}from'../chunk-AGILGHTN.js';import'../chunk-T2Q6B32U.js';export{d as CardExpandable,b as CardExpandableContent,c as CardExpandableFixedContent,a as CardExpandableHeader}from'../chunk-SH5QNG46.js';export{a as CardForm,c as CardFormBody,d as CardFormFooter,b as CardFormHeader}from'../chunk-MJNHFM5Y.js';export{j as Carousel,j as CarouselComponent,b as CarouselControl,f as CarouselIndicator,e as CarouselIndicatorGroup,h as CarouselItem,g as CarouselItemGroup,d as CarouselNextTrigger,c as CarouselPrevTrigger,a as CarouselRoot,i as CarouselViewport}from'../chunk-UJPAEQXZ.js';export{b as Checkbox,a as CheckboxCheckedStates}from'../chunk-EX6MBO76.js';export{d as ChipContext,c as ChipContextColors,b as ChipContextSizes,a as ChipContextVariants}from'../chunk-JA7GAJ6P.js';export{c as ChipExpandable,b as ChipExpandableTypes,a as ChipExpandableVariants}from'../chunk-JYNJHAGL.js';export{c as ChipFormComplementary,a as ChipFormComplementaryVariants,b as ChipFormComplementaryVariantsClassNames}from'../chunk-QONM4Q4J.js';export{d as ChipForm,c as ChipFormSizes,b as ChipFormTypes,a as ChipFormVariants}from'../chunk-3HZUH4JJ.js';export{a as BadgeStatus}from'../chunk-UIZFLYFP.js';export{e as CalendarNew,a as CalendarNewProvider,d as LocaleProvider,c as parseDate,b as useCalendar}from'../chunk-RVIJTSS5.js';export{a as Calendar_old}from'../chunk-FSDUNXCV.js';export{a as AutocompleteNew}from'../chunk-2FAROIBF.js';export{b as Avatar,a as AvatarSizes}from'../chunk-GB2SAYAL.js';export{a as BadgeCategorySkeleton}from'../chunk-RQQJYDAY.js';export{a as BadgeCategory}from'../chunk-SY5G3KQF.js';export{a as BadgeExpandableSkeleton}from'../chunk-DL3P7FK4.js';export{a as BadgeExpandable}from'../chunk-JW7HS6NX.js';export{a as BadgeNumber}from'../chunk-SKMTTF6M.js';export{a as BadgeStatusSkeleton}from'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';export{b as AccordionForm,e as AccordionFormContent,c as AccordionFormItem,a as AccordionFormSizes,d as AccordionFormTrigger}from'../chunk-JHIRF35R.js';export{c as Accordion,g as AccordionContent,d as AccordionItem,a as AccordionPrimitive,b as AccordionSizes,f as AccordionTrigger,e as AccordionTriggerEmpty}from'../chunk-HMQQW3AR.js';export{d as ChipStatus,b as ChipStatusSizes,c as ChipStatusTypes,a as ChipStatusVariants}from'../chunk-MP4CHZ2K.js';export{a as Badge}from'../chunk-R6NIURLZ.js';export{a as AlertDialog,f as AlertDialogActionButton,m as AlertDialogBody,g as AlertDialogCloseButton,e as AlertDialogContent,l as AlertDialogDescription,h as AlertDialogExtraButton,j as AlertDialogFooter,i as AlertDialogHeader,d as AlertDialogOverlay,c as AlertDialogPortal,k as AlertDialogTitle,b as AlertDialogTrigger}from'../chunk-UK47DRCQ.js';export{a as AlertMessage}from'../chunk-FVKJ7N2Q.js';export{c as IconButton,a as IconButtonSizes,b as IconButtonVariants}from'../chunk-WQPZV6HK.js';export{a as Skeleton}from'../chunk-KTD2GEB6.js';export{a as AutocompleteMultipleNew}from'../chunk-M4HK3QBQ.js';export{d as ChipInput,a as ChipInputSizes,c as ChipInputTypes,b as ChipInputVariants}from'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';export{a as Tooltip}from'../chunk-CM6ALMTT.js';export{a as Separator}from'../chunk-4CM257A2.js';export{c as Button,a as ButtonSizes,b as ButtonVariants}from'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{b as ListItemArrow}from'../chunk-LABFGCUJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-IUFS4MIW.js';import'../chunk-GD6I2OKP.js';import'../chunk-3TL4YHUJ.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-4NTXEKGN.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-GNEH3JEX.js';import'../chunk-GFVJRSZI.js';import'../chunk-SLKFBCVC.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-PRMEXLPY.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
1
+ export{b as ListItemArrow}from'../chunk-H7YX3UOO.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-SIA2GA6D.js';import'../chunk-GD6I2OKP.js';import'../chunk-F2GFU3W7.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-6QA2JM6W.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-5XHPD6B7.js';import'../chunk-GFVJRSZI.js';import'../chunk-AGILGHTN.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-FSDUNXCV.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{f as ListItemButton}from'../chunk-LABFGCUJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-IUFS4MIW.js';import'../chunk-GD6I2OKP.js';import'../chunk-3TL4YHUJ.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-4NTXEKGN.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-GNEH3JEX.js';import'../chunk-GFVJRSZI.js';import'../chunk-SLKFBCVC.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-PRMEXLPY.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
1
+ export{f as ListItemButton}from'../chunk-H7YX3UOO.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-SIA2GA6D.js';import'../chunk-GD6I2OKP.js';import'../chunk-F2GFU3W7.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-6QA2JM6W.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-5XHPD6B7.js';import'../chunk-GFVJRSZI.js';import'../chunk-AGILGHTN.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-FSDUNXCV.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{g as ListItemCheckboxLeft}from'../chunk-LABFGCUJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-IUFS4MIW.js';import'../chunk-GD6I2OKP.js';import'../chunk-3TL4YHUJ.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-4NTXEKGN.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-GNEH3JEX.js';import'../chunk-GFVJRSZI.js';import'../chunk-SLKFBCVC.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-PRMEXLPY.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
1
+ export{g as ListItemCheckboxLeft}from'../chunk-H7YX3UOO.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-SIA2GA6D.js';import'../chunk-GD6I2OKP.js';import'../chunk-F2GFU3W7.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-6QA2JM6W.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-5XHPD6B7.js';import'../chunk-GFVJRSZI.js';import'../chunk-AGILGHTN.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-FSDUNXCV.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{c as ListItemCheckbox}from'../chunk-LABFGCUJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-IUFS4MIW.js';import'../chunk-GD6I2OKP.js';import'../chunk-3TL4YHUJ.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-4NTXEKGN.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-GNEH3JEX.js';import'../chunk-GFVJRSZI.js';import'../chunk-SLKFBCVC.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-PRMEXLPY.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
1
+ export{c as ListItemCheckbox}from'../chunk-H7YX3UOO.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-SIA2GA6D.js';import'../chunk-GD6I2OKP.js';import'../chunk-F2GFU3W7.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-6QA2JM6W.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-5XHPD6B7.js';import'../chunk-GFVJRSZI.js';import'../chunk-AGILGHTN.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-FSDUNXCV.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{x as ListItem}from'../chunk-LABFGCUJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-IUFS4MIW.js';import'../chunk-GD6I2OKP.js';import'../chunk-3TL4YHUJ.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-4NTXEKGN.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-GNEH3JEX.js';import'../chunk-GFVJRSZI.js';import'../chunk-SLKFBCVC.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-PRMEXLPY.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
1
+ export{x as ListItem}from'../chunk-H7YX3UOO.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-SIA2GA6D.js';import'../chunk-GD6I2OKP.js';import'../chunk-F2GFU3W7.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-6QA2JM6W.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-5XHPD6B7.js';import'../chunk-GFVJRSZI.js';import'../chunk-AGILGHTN.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-FSDUNXCV.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -32,6 +32,6 @@ declare const SelectNew: React.ForwardRefExoticComponent<{
32
32
  defaultValue?: string | null;
33
33
  options: SelectNewOption[];
34
34
  clearable?: boolean;
35
- } & Omit<Select.RootProps<SelectNewOption>, "defaultValue" | "value" | "onValueChange" | "collection"> & React.RefAttributes<HTMLDivElement>>;
35
+ } & Omit<Select.RootProps<SelectNewOption>, "value" | "defaultValue" | "onValueChange" | "collection"> & React.RefAttributes<HTMLDivElement>>;
36
36
 
37
37
  export { SelectNew, type SelectNewOption, type SelectNewProps };
@@ -0,0 +1,23 @@
1
+ import { ReactElement, FC } from 'react';
2
+ import { TextFieldProps_old } from './text-field_old.js';
3
+
4
+ type SelectOption_old = {
5
+ key?: string | number;
6
+ label: string;
7
+ value: string | number | boolean;
8
+ disabled?: boolean;
9
+ };
10
+ type SelectProps_old = {
11
+ options: SelectOption_old[];
12
+ noResults: {
13
+ icon: ReactElement<{
14
+ className?: string;
15
+ }>;
16
+ message: string;
17
+ };
18
+ selectedOption?: SelectOption_old | null;
19
+ onSelect?: (option: SelectOption_old) => void;
20
+ } & Omit<TextFieldProps_old, "onSelect">;
21
+ declare const Select_old: FC<SelectProps_old>;
22
+
23
+ export { type SelectOption_old, type SelectProps_old, Select_old };
@@ -0,0 +1 @@
1
+ export{a as Select_old}from'../chunk-6QA2JM6W.js';import'../chunk-AGILGHTN.js';import'../chunk-T2Q6B32U.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -11,7 +11,7 @@ type SignaturePadProps = Omit<SignaturePadRootProps, "onDrawEnd" | "value" | "de
11
11
  onChange?: (file: File | null) => void;
12
12
  rootClassName?: string;
13
13
  };
14
- declare const SignaturePad: React.ForwardRefExoticComponent<Omit<SignaturePad$1.RootProps, "defaultValue" | "onChange" | "value" | "onDrawEnd"> & {
14
+ declare const SignaturePad: React.ForwardRefExoticComponent<Omit<SignaturePad$1.RootProps, "onChange" | "value" | "defaultValue" | "onDrawEnd"> & {
15
15
  label?: string;
16
16
  required?: boolean;
17
17
  tooltip?: string;
@@ -1,7 +1,7 @@
1
1
  import React__default, { DetailedHTMLProps, InputHTMLAttributes, FC } from 'react';
2
2
 
3
3
  type CoinsStartText = "$" | "Q" | "S/";
4
- type TextFieldProps = {
4
+ type TextFieldProps_old = {
5
5
  label?: string;
6
6
  error?: boolean;
7
7
  helperText?: string;
@@ -24,6 +24,6 @@ type TextFieldProps = {
24
24
  startText?: CoinsStartText;
25
25
  disabled?: boolean;
26
26
  } & DetailedHTMLProps<Omit<InputHTMLAttributes<HTMLInputElement>, "size">, HTMLInputElement>;
27
- declare const TextField: FC<TextFieldProps>;
27
+ declare const TextField_old: FC<TextFieldProps_old>;
28
28
 
29
- export { type CoinsStartText, TextField, type TextFieldProps };
29
+ export { type CoinsStartText, type TextFieldProps_old, TextField_old };
@@ -0,0 +1 @@
1
+ export{a as TextField_old}from'../chunk-AGILGHTN.js';import'../chunk-T2Q6B32U.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -1,8 +1,8 @@
1
1
  import * as tailwind_variants from 'tailwind-variants';
2
2
  import { VariantProps } from 'tailwind-variants';
3
- import { FC, DetailedHTMLProps, TextareaHTMLAttributes } from 'react';
3
+ import { DetailedHTMLProps, TextareaHTMLAttributes, FC } from 'react';
4
4
 
5
- declare const TextareaSizes: readonly ["sm", "md", "lg"];
5
+ declare const TextareaSizes_old: readonly ["sm", "md", "lg"];
6
6
  declare const textareaStyles: tailwind_variants.TVReturnType<{
7
7
  size: {
8
8
  lg: {
@@ -70,12 +70,12 @@ declare const textareaStyles: tailwind_variants.TVReturnType<{
70
70
  textarea: string;
71
71
  label: string;
72
72
  }, undefined, unknown, unknown, undefined>>;
73
- type TextareaProps = {
73
+ type TextareaProps_old = {
74
74
  label?: string;
75
75
  helperText?: string;
76
76
  maxLengthText?: string;
77
77
  enableMaxLengthValidation?: boolean;
78
78
  } & DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> & VariantProps<typeof textareaStyles>;
79
- declare const Textarea: FC<TextareaProps>;
79
+ declare const Textarea_old: FC<TextareaProps_old>;
80
80
 
81
- export { Textarea, type TextareaProps, TextareaSizes };
81
+ export { type TextareaProps_old, TextareaSizes_old, Textarea_old };
@@ -0,0 +1 @@
1
+ export{a as TextareaSizes_old,b as Textarea_old}from'../chunk-SIA2GA6D.js';import'../chunk-T2Q6B32U.js';import'../chunk-OBZIYJO7.js';
@@ -24,6 +24,6 @@ declare const TimePickerNew: React.ForwardRefExoticComponent<{
24
24
  placeholder?: string;
25
25
  value?: string | null;
26
26
  defaultValue?: string | null;
27
- } & Omit<Select.RootProps<string>, "defaultValue" | "value" | "onValueChange" | "collection"> & React.RefAttributes<HTMLDivElement>>;
27
+ } & Omit<Select.RootProps<string>, "value" | "defaultValue" | "onValueChange" | "collection"> & React.RefAttributes<HTMLDivElement>>;
28
28
 
29
29
  export { TimePickerNew, type TimePickerNewProps };
@@ -1,23 +1,23 @@
1
1
  import { FC } from 'react';
2
- import { TextFieldProps } from './text-field.js';
3
- import { Locale } from './calendar.js';
2
+ import { TextFieldProps_old } from './text-field_old.js';
3
+ import { Locale_old } from './calendar_old.js';
4
4
  import 'react-day-picker';
5
5
 
6
6
  declare const TIMES: readonly ["00:00:00", "00:30:00", "01:00:00", "01:30:00", "02:00:00", "02:30:00", "03:00:00", "03:30:00", "04:00:00", "04:30:00", "05:00:00", "05:30:00", "06:00:00", "06:30:00", "07:00:00", "07:30:00", "08:00:00", "08:30:00", "09:00:00", "09:30:00", "10:00:00", "10:30:00", "11:00:00", "11:30:00", "12:00:00", "12:30:00", "13:00:00", "13:30:00", "14:00:00", "14:30:00", "15:00:00", "15:30:00", "16:00:00", "16:30:00", "17:00:00", "17:30:00", "18:00:00", "18:30:00", "19:00:00", "19:30:00", "20:00:00", "20:30:00", "21:00:00", "21:30:00", "22:00:00", "22:30:00", "23:00:00", "23:30:00"];
7
7
  type Time = (typeof TIMES)[number];
8
- type TimePickerProps = {
9
- disabled?: TextFieldProps["disabled"];
10
- className?: TextFieldProps["className"];
11
- label?: TextFieldProps["label"];
12
- placeholder?: TextFieldProps["placeholder"];
13
- size?: TextFieldProps["size"];
8
+ type TimePickerProps_old = {
9
+ disabled?: TextFieldProps_old["disabled"];
10
+ className?: TextFieldProps_old["className"];
11
+ label?: TextFieldProps_old["label"];
12
+ placeholder?: TextFieldProps_old["placeholder"];
13
+ size?: TextFieldProps_old["size"];
14
14
  value?: Time;
15
15
  onChange?: (day: Time | undefined) => void;
16
- locale?: Locale;
16
+ locale?: Locale_old;
17
17
  minTime?: Time;
18
18
  maxTime?: Time;
19
19
  showClearButton?: boolean;
20
20
  };
21
- declare const TimePicker: FC<TimePickerProps>;
21
+ declare const TimePicker_old: FC<TimePickerProps_old>;
22
22
 
23
- export { type Time, TimePicker, type TimePickerProps };
23
+ export { type Time, type TimePickerProps_old, TimePicker_old };
@@ -0,0 +1 @@
1
+ export{a as TimePicker_old}from'../chunk-F2GFU3W7.js';import'../chunk-GFVJRSZI.js';import'../chunk-AGILGHTN.js';import'../chunk-T2Q6B32U.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{r as TrackerItem,p as TrackerItemExpandableContent,q as TrackerItemFooter,o as TrackerItemHeader,n as useTrackerItem}from'../chunk-LABFGCUJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-IUFS4MIW.js';import'../chunk-GD6I2OKP.js';import'../chunk-3TL4YHUJ.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-4NTXEKGN.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-GNEH3JEX.js';import'../chunk-GFVJRSZI.js';import'../chunk-SLKFBCVC.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-PRMEXLPY.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
1
+ export{r as TrackerItem,p as TrackerItemExpandableContent,q as TrackerItemFooter,o as TrackerItemHeader,n as useTrackerItem}from'../chunk-H7YX3UOO.js';import'../chunk-ABJHG7HB.js';import'../chunk-7TFTX3SD.js';import'../chunk-YTHJR43W.js';import'../chunk-SIA2GA6D.js';import'../chunk-GD6I2OKP.js';import'../chunk-F2GFU3W7.js';import'../chunk-VLGLJZY7.js';import'../chunk-NPHTXEED.js';import'../chunk-LU2N5UJD.js';import'../chunk-7JM2X4UD.js';import'../chunk-L5N4JYES.js';import'../chunk-FKX22R3G.js';import'../chunk-5T72Q62I.js';import'../chunk-QDIGGJWI.js';import'../chunk-UIMI4JKR.js';import'../chunk-6QA2JM6W.js';import'../chunk-XOREOUHD.js';import'../chunk-SDD7J42R.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-FTMDOU3O.js';import'../chunk-GE3JXP4V.js';import'../chunk-LWFUFYPY.js';import'../chunk-FRRDTCYK.js';import'../chunk-XPR5NR6A.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FRWCCOOJ.js';import'../chunk-D3NJBXNU.js';import'../chunk-TUDRPGP5.js';import'../chunk-4RJVZ7FN.js';import'../chunk-VN6SU2T6.js';import'../chunk-5XHPD6B7.js';import'../chunk-GFVJRSZI.js';import'../chunk-AGILGHTN.js';import'../chunk-T2Q6B32U.js';import'../chunk-SH5QNG46.js';import'../chunk-MJNHFM5Y.js';import'../chunk-UJPAEQXZ.js';import'../chunk-EX6MBO76.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-UIZFLYFP.js';import'../chunk-RVIJTSS5.js';import'../chunk-FSDUNXCV.js';import'../chunk-2FAROIBF.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-SY5G3KQF.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-SKMTTF6M.js';import'../chunk-PIMSGQMD.js';import'../chunk-I6O2YZVS.js';import'../chunk-JHIRF35R.js';import'../chunk-HMQQW3AR.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-UK47DRCQ.js';import'../chunk-FVKJ7N2Q.js';import'../chunk-WQPZV6HK.js';import'../chunk-KTD2GEB6.js';import'../chunk-M4HK3QBQ.js';import'../chunk-RJM4SNGE.js';import'../chunk-FHABUQAH.js';import'../chunk-CJ6G2MPU.js';import'../chunk-CM6ALMTT.js';import'../chunk-4CM257A2.js';import'../chunk-AAV7R2IG.js';import'../chunk-5EP3PIED.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sodtrack-web-ui",
3
- "version": "0.101.2",
3
+ "version": "0.102.0",
4
4
  "type": "module",
5
5
  "description": "UI components for Sodtrack Web",
6
6
  "exports": {
@@ -1 +0,0 @@
1
- import {a as a$1}from'./chunk-GFVJRSZI.js';import {a as a$2}from'./chunk-SLKFBCVC.js';import {o}from'./chunk-BKVZDB3V.js';import {a as a$3}from'./chunk-OBZIYJO7.js';import {useState,useRef,useMemo,useEffect}from'react';import*as k from'@radix-ui/react-portal';import {format}from'date-fns';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var D=["00:00:00","00:30:00","01:00:00","01:30:00","02:00:00","02:30:00","03:00:00","03:30:00","04:00:00","04:30:00","05:00:00","05:30:00","06:00:00","06:30:00","07:00:00","07:30:00","08:00:00","08:30:00","09:00:00","09:30:00","10:00:00","10:30:00","11:00:00","11:30:00","12:00:00","12:30:00","13:00:00","13:30:00","14:00:00","14:30:00","15:00:00","15:30:00","16:00:00","16:30:00","17:00:00","17:30:00","18:00:00","18:30:00","19:00:00","19:30:00","20:00:00","20:30:00","21:00:00","21:30:00","22:00:00","22:30:00","23:00:00","23:30:00"],v=56,a=6,_=({value:c,onChange:h,locale:b,minTime:p,maxTime:u,...R})=>{let[F,m]=useState(false),[i,f]=useState(c),[o$1,P]=useState(),[O,M]=useState("bottom"),w=useRef(null),t=useRef(null),N=e=>{f(e),h?.(e),m(false);},z=useMemo(()=>i?format(new Date("2024-01-01T"+i),"p"):"",[i,b]),H=()=>{f(void 0),h?.(void 0);},n=useMemo(()=>D.map(e=>({value:e,label:format(new Date("2024-01-01T"+e),"p"),disabled:p&&e<p||u&&e>u})),[b,p,u]);return useEffect(()=>{f(c);},[c]),a$1(w,()=>{m(false);}),useEffect(()=>{if(!t.current)return;let e=()=>{if(!t.current)return;let l=v*(n.length<a?n.length:a)+16,s=t.current.getBoundingClientRect();P(s);let S=window.innerHeight-s.bottom>l,B=s.top+s.height>l;M(S?"bottom":B?"top":"bottom");};return e(),t.current.addEventListener("mousedown",e),window.addEventListener("scroll",e,true),window.addEventListener("resize",e),()=>{t.current?.removeEventListener("mousedown",e),window.removeEventListener("scroll",e,true),window.removeEventListener("resize",e);}},[t.current]),jsxs(Fragment,{children:[jsx(a$2,{ref:t,autoComplete:"off",startIcon:jsx(o,{}),onClean:H,readOnly:true,value:z,onClick:e=>{P(e.currentTarget.getBoundingClientRect()),m(l=>!l);},...R}),jsx(k.Root,{children:jsx("div",{ref:w,className:a$3("elevation-8 pointer-events-auto fixed z-50 my-2 hidden max-h-84 w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",F&&"block"),style:o$1?{width:`${o$1.width}px`,top:O==="bottom"?`${o$1.height+o$1.top}px`:o$1.top-(n.length<a?n.length:a)*v-16,left:o$1?.left}:void 0,children:n.map(e=>jsx("div",{onClick:()=>!e.disabled&&N(e.value),className:a$3("flex w-full items-center px-2 hover:cursor-pointer",!e.disabled&&"hover:bg-primary-100",i===e.value&&"bg-primary-200",e.disabled&&"text-neutral-500 hover:cursor-not-allowed"),style:{height:v},children:e.label},e.value))})})]})};_.displayName="TimePicker";export{_ as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-SLKFBCVC.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import H,{useId,useRef,useState,useEffect}from'react';import*as h from'@radix-ui/react-portal';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var b=56,s=6,D=({options:l,noResults:m,selectedOption:x,onSelect:y,onChange:O,onClick:E,className:S,...P})=>{let R=useId(),n=useRef(null),t=useRef(null),[L,C]=useState("bottom"),[o,N]=useState(),[p,f]=useState(x??null),I=e=>{n.current.style.display="none",t.current.value=e.label,f(e),y?.(e);};return useEffect(()=>{if(!t.current)return;let e=()=>{if(!t.current)return;let r=b*(l.length<s?l.length:s)+16,i=t.current.getBoundingClientRect();N(i);let T=window.innerHeight-i.bottom>r,k=i.top>r;C(T?"bottom":k?"top":"bottom");};return e(),t.current.addEventListener("mousedown",e),window.addEventListener("scroll",e,true),window.addEventListener("resize",e),()=>{t.current?.removeEventListener("mousedown",e),window.removeEventListener("scroll",e,true),window.removeEventListener("resize",e);}},[t.current]),useEffect(()=>{function e(r){n.current&&!n.current.contains(r.target)&&(n.current.style.display="none");}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e);}},[n.current]),jsxs(Fragment,{children:[jsx(a,{className:a$1("w-full cursor-pointer!",S),readOnly:true,ref:t,autoComplete:"off",list:"",selectMode:true,value:p?.label,showClearButton:false,onClick:e=>{n.current.style.display="flex",E?.(e);},onChange:e=>{f(null),O?.(e);},...P}),jsx(h.Root,{asChild:true,children:jsxs("ul",{ref:n,className:"elevation-8 pointer-events-auto absolute z-10000 my-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:o?{width:`${o.width}px`,left:o.left,top:L==="bottom"?`${o.height+o.top+window.scrollY}px`:window.scrollY+o.top-(l.length<s?l.length:s)*b-16}:void 0,children:[l.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col items-center justify-center rounded-lg bg-neutral-50 px-8 py-6",children:[H.cloneElement(m.icon,{className:"mb-2 h-8 w-8 text-neutral-300"}),jsx("p",{className:"text-center text-sm leading-[120%] text-neutral-500",children:m.message})]}),l.map(e=>jsx("li",{onClick:()=>{e.disabled||I(e);},className:a$1("w-full shrink-0 py-4 pr-6 pl-4 text-left",p?.value===e.value&&"bg-primary-200",e.disabled?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 cursor-pointer"),children:e.label},`select-option-${R}-${e.key??e.value}`))]})})]})};export{D as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-GFVJRSZI.js';import {a as a$1}from'./chunk-SLKFBCVC.js';import {a as a$2}from'./chunk-PRMEXLPY.js';import {n}from'./chunk-BKVZDB3V.js';import {a as a$3}from'./chunk-OBZIYJO7.js';import {useState,useRef,useMemo,useCallback,useEffect}from'react';import*as x from'@radix-ui/react-portal';import {format}from'date-fns';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var $=({value:d,onChange:m,locale:w,disabledDates:D,disabled:E,...L})=>{let[c,f]=useState(false),[a$4,u]=useState(d),[n$1,P]=useState(),[R,F]=useState("bottom"),[k,y]=useState(0),o=useRef(null),r=useRef(null);a(o,()=>{f(false);});let H=t=>{u(t),m?.(t);},z=useMemo(()=>a$4?format(a$4,"P"):"",[a$4]),I=()=>{u(void 0),m?.(void 0);},e=useCallback(()=>{if(!r.current)return;let t=r.current.getBoundingClientRect();if(!o.current)return;let i=o.current.getBoundingClientRect().height;y(i),P(t);let N=window.innerHeight-t.bottom>i,B=t.top+t.height>i;F(N?"bottom":B?"top":"bottom");},[r.current,o.current]);return useEffect(()=>{u(d);},[d]),useEffect(()=>{if(r?.current)return e(),r.current.addEventListener("mousedown",e),r.current.addEventListener("input",e),window.addEventListener("scroll",e,true),window.addEventListener("resize",e),()=>{r.current?.removeEventListener("mousedown",e),r.current?.removeEventListener("input",e),window.removeEventListener("scroll",e,true),window.removeEventListener("resize",e);}},[r.current,e]),useEffect(()=>{if(c&&o.current){let t=setTimeout(()=>{e();},0);return ()=>clearTimeout(t)}},[c,e]),jsxs(Fragment,{children:[jsx(a$1,{disabled:E,ref:r,startIcon:jsx(n,{}),onClean:I,readOnly:true,value:z,onClick:t=>{P(t.currentTarget.getBoundingClientRect()),f(i=>!i);},...L}),jsx(x.Root,{asChild:true,children:jsx("div",{ref:o,className:a$3("pointer-events-auto fixed z-50 hidden",c&&"block"),style:n$1?{top:R==="bottom"?`${n$1.height+n$1.y}px`:n$1.top-k,left:n$1?.left}:void 0,children:jsx(a$2,{className:"w-[20rem] max-w-full",mode:"single",selected:a$4,onSelect:H,locale:w,disabled:D})})})]})};$.displayName="DatePicker";export{$ as a};
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { FC } from 'react';
3
- import { DayPicker } from 'react-day-picker';
4
-
5
- type CalendarProps = React.ComponentProps<typeof DayPicker>;
6
- type Locale = CalendarProps["locale"];
7
- declare const Calendar: FC<CalendarProps>;
8
-
9
- export { Calendar, type CalendarProps, type Locale };
@@ -1 +0,0 @@
1
- export{a as Calendar}from'../chunk-PRMEXLPY.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -1,21 +0,0 @@
1
- import { FC } from 'react';
2
- import { TextFieldProps } from './text-field.js';
3
- import { Locale, CalendarProps } from './calendar.js';
4
- import 'react-day-picker';
5
-
6
- type DatePickerProps = {
7
- value?: Date;
8
- locale?: Locale;
9
- onChange?: (day: Date | undefined) => void;
10
- placeholder?: TextFieldProps["placeholder"];
11
- label?: TextFieldProps["label"];
12
- className?: TextFieldProps["className"];
13
- size?: TextFieldProps["size"];
14
- helperText?: TextFieldProps["helperText"];
15
- error?: TextFieldProps["error"];
16
- disabledDates?: CalendarProps["disabled"];
17
- disabled?: TextFieldProps["disabled"];
18
- };
19
- declare const DatePicker: FC<DatePickerProps>;
20
-
21
- export { DatePicker, type DatePickerProps };
@@ -1 +0,0 @@
1
- export{a as DatePicker}from'../chunk-GNEH3JEX.js';import'../chunk-GFVJRSZI.js';import'../chunk-SLKFBCVC.js';import'../chunk-T2Q6B32U.js';import'../chunk-PRMEXLPY.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -1,23 +0,0 @@
1
- import { FC, ReactElement } from 'react';
2
- import { TextFieldProps } from './text-field.js';
3
-
4
- type SelectOption = {
5
- key?: string | number;
6
- label: string;
7
- value: string | number | boolean;
8
- disabled?: boolean;
9
- };
10
- type SelectProps = {
11
- options: SelectOption[];
12
- noResults: {
13
- icon: ReactElement<{
14
- className?: string;
15
- }>;
16
- message: string;
17
- };
18
- selectedOption?: SelectOption | null;
19
- onSelect?: (option: SelectOption) => void;
20
- } & Omit<TextFieldProps, "onSelect">;
21
- declare const Select: FC<SelectProps>;
22
-
23
- export { Select, type SelectOption, type SelectProps };
@@ -1 +0,0 @@
1
- export{a as Select}from'../chunk-4NTXEKGN.js';import'../chunk-SLKFBCVC.js';import'../chunk-T2Q6B32U.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -1 +0,0 @@
1
- export{a as TextField}from'../chunk-SLKFBCVC.js';import'../chunk-T2Q6B32U.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';
@@ -1 +0,0 @@
1
- export{b as Textarea,a as TextareaSizes}from'../chunk-IUFS4MIW.js';import'../chunk-T2Q6B32U.js';import'../chunk-OBZIYJO7.js';
@@ -1 +0,0 @@
1
- export{a as TimePicker}from'../chunk-3TL4YHUJ.js';import'../chunk-GFVJRSZI.js';import'../chunk-SLKFBCVC.js';import'../chunk-T2Q6B32U.js';import'../chunk-BKVZDB3V.js';import'../chunk-IPXXNHZ4.js';import'../chunk-OBZIYJO7.js';