sodtrack-web-ui 0.109.10 → 0.109.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-4BOVNDZG.js +1 -0
- package/dist/chunk-V7KUCX6U.js +1 -0
- package/dist/components/badge-expandable.d.ts +1 -1
- package/dist/components/button-active.js +1 -1
- package/dist/components/button-menu.js +1 -1
- package/dist/components/chip-input.d.ts +2 -2
- package/dist/components/index.d.ts +4 -4
- package/dist/components/index.js +1 -1
- package/dist/components/list-item-arrow.js +1 -1
- package/dist/components/list-item-button.js +1 -1
- package/dist/components/list-item-checkbox-left.js +1 -1
- package/dist/components/list-item-checkbox.js +1 -1
- package/dist/components/list-item_old.js +1 -1
- package/dist/components/signature-pad.d.ts +1 -1
- package/dist/components/step-item.d.ts +82 -5
- package/dist/components/step-item.js +1 -1
- package/dist/components/time-picker.d.ts +1 -1
- package/dist/components/tracker-item.d.ts +134 -8
- package/dist/components/tracker-item.js +1 -1
- package/package.json +18 -17
- package/dist/chunk-RTFCQMSB.js +0 -1
- package/dist/chunk-ZB6RYLYL.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {c as c$5,b as b$4,a as a$c}from'./chunk-V7KUCX6U.js';import {b as b$2}from'./chunk-T3FB2JLM.js';import {c as c$2,j as j$1}from'./chunk-3X2MEX7P.js';import {a as a$9,b as b$3,c as c$4}from'./chunk-GTVHYHF4.js';import {a as a$d}from'./chunk-GFVJRSZI.js';import {a as a$4}from'./chunk-WIITAOD5.js';import {b}from'./chunk-5RKO7FZ7.js';import {c as c$6}from'./chunk-JYNJHAGL.js';import {a as a$b}from'./chunk-UIZFLYFP.js';import {a as a$a}from'./chunk-UB5XJQF2.js';import {a as a$6,b as b$1,c as c$3,d as d$3}from'./chunk-U4NJK7JM.js';import {d as d$5}from'./chunk-MP4CHZ2K.js';import {a as a$3}from'./chunk-R6NIURLZ.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {d as d$2}from'./chunk-44FJVOTD.js';import {a}from'./chunk-FHABUQAH.js';import {a as a$5}from'./chunk-DESMZNRN.js';import {d,c as c$1}from'./chunk-XZALFC6K.js';import {a as a$8}from'./chunk-VIMWKUML.js';import {a as a$7}from'./chunk-XKMQ2LPV.js';import {a as a$1}from'./chunk-AWRP67K4.js';import {c,d as d$4,p,j,I,s,t,h,g}from'./chunk-TPE6CVKA.js';import {e,d as d$1}from'./chunk-5D64Y4FM.js';import {c as c$7}from'./chunk-C7TLKKPT.js';import {a as a$e}from'./chunk-P6B33GL6.js';import {a as a$2}from'./chunk-OBZIYJO7.js';import*as _ from'react';import ___default,{createContext,useMemo,useCallback,forwardRef,useRef,useContext,useEffect,useId,useState}from'react';import*as ro 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 tr from'react-phone-number-input/flags';import {getDefaultOptions}from'date-fns';import sr from'react-phone-number-input/locale/en.json';import ar from'react-phone-number-input/locale/es.json';import cr 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 as cn$1}from'tailwind-variants';import Ul,{parsePhoneNumber,getCountryCallingCode}from'react-phone-number-input';import {getExampleNumber}from'libphonenumber-js/mobile';import Ml from'libphonenumber-js/mobile/examples';var gn=___default.memo(({handleSelect:e$1,NoResultsIcon:o,noResultsLabel:t,noResultsDescription:n,noResultsDescriptionLines:r,noResultsAsColumn:i,noResultsButtonOnClick:l,optionDescriptionLines:s,noResultsButtonLabel:p,filteredOptions:m,inputRect:a$3,inputRef:C,popoverPosition:b,optionsListRef:d,selectedOption:h,options:x,setFilteredOptions:v})=>jsx(ro.Root,{asChild:true,children:jsxs("div",{ref:d,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:a$3?{width:`${a$3.width}px`,left:a$3.left,top:b==="bottom"?`${a$3.bottom}px`:void 0,bottom:b==="top"?`${window.innerHeight-a$3.top}px`:void 0}:void 0,children:[m.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:t,description:n,Icon:o,iconAsColumn:i,descriptionLines:r}),l&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{d.current.style.display="none",C.current.value="",v(x),l();},children:p})]})]}),m.map(L=>jsx(ce,{title:L.label,disabled:L.disabled,description:L.description,descriptionLines:s,onClick:()=>e$1(L),className:a$2(h?.value===L.value&&"bg-primary-200")},L.key??L.value))]})})),io=gn;var xn=336,cs=({options:e,defaultSelectedOption:o,onSelect:t,onClick:n,onInputChange:r,error:i,helperText:l,label:s,placeholder:p,value:m,size:a="md",optionDescriptionLines:C=1,noResultsLabel:b,noResultsIcon:d,noResultsDescription:h,noResultsDescriptionLines:x,noResultsAsColumn:v,noResultsButtonOnClick:L,noResultsButtonLabel:M,className:I,disabled:T})=>{let[g,R]=useState(o??null),A=useRef(null),y=useRef(null),[k,O]=useState(),[V,S]=useState([]),[c,u]=useState("bottom"),[P,D]=useState(),H=xn,G=useCallback(F=>{A.current.style.display="none",y.current.value=F.label,R(F),t?.(F);},[t]),z=useCallback(()=>{if(!y?.current)return;let F=y.current.getBoundingClientRect();O(F);let X=P?P.height:H,Y=window.innerHeight-F.bottom>X,Fe=F.top>X;u(Y?"bottom":Fe?"top":"bottom");},[P?.height]),le=useCallback(()=>{let F=e.filter(X=>X.label.toLowerCase().includes(y?.current?.value.toLowerCase()??""));if(S(F),A?.current){let X=A.current.getBoundingClientRect();D(X);}},[e]);return useEffect(()=>{S(e);},[e]),useEffect(()=>{if(!m){R(null),y.current&&(y.current.value="");return}(!y.current?.value||g?.value!==m.value)&&(R(m),y.current.value=m.label);},[m]),a$d(A,()=>{A.current.style.display="none",g&&y.current&&(y.current.value=g.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",I),children:[jsx(a$4,{ref:y,autoComplete:"off",list:"",selectMode:true,onChange:F=>{F.target.value||(R(null),t?.(null)),r?.(F);},onClean:()=>{R(null),S(e),t?.(null);},onClick:F=>{A.current.style.display="flex",n?.(F);},onBlur:()=>{g&&y.current&&(y.current.value=g.label);},label:s,helperText:l,placeholder:p,size:a,error:i,disabled:T}),jsx(io,{handleSelect:G,noResultsLabel:b,NoResultsIcon:d,optionDescriptionLines:C,noResultsAsColumn:v,noResultsButtonLabel:M,noResultsButtonOnClick:L,noResultsDescription:h,noResultsDescriptionLines:x,filteredOptions:V,inputRect:k,inputRef:y,popoverPosition:c,optionsListRef:A,selectedOption:g,options:e,setFilteredOptions:S})]})};var In=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,disabled:i=false,className:l,...s})=>jsxs("div",{className:a$2("flex w-full flex-col gap-1",l),...s,children:[jsx("p",{className:a$2("text-sm leading-[130%] break-all",!!n&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:o}),n&&jsx("p",{className:a$2("text-xs leading-[130%]",i?"text-neutral-400":"text-neutral-700"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:n})]}),pe=In;var ce=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:i,endIcon:l,hasDivider:s=false,disabled:p=false,isSelected:m=false,className:a,...C})=>jsxs(ee,{hasDescription:!!n,disabled:p,hasDivider:s,className:a,isSelected:m,...C,children:[i&&___default.cloneElement(i,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(pe,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:p}),l&&___default.cloneElement(l,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});var uo=({children:e,title:o,titleLines:t=1,description:n="",descriptionLines:r,startIcon:i,hasDivider:l=false,disabled:s=false,checked:p,onCheckedChange:m,className:a,...C})=>jsxs(ee,{hasDescription:!!n,disabled:s,hasDivider:l,...C,className:a$2("pr-6",a),children:[i&&___default.cloneElement(i,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(pe,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:s}),jsx(b,{checked:p,onCheckedChange:m,className:"ml-4 self-center",disabled:s})]});var ne=336,fo=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:ne,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),te=()=>{let e=useContext(fo);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},bo=({children:e})=>{let o=useRef(null),t=useRef(null),n=useId(),[r,i]=useState(),[l,s]=useState(true),[p,m]=useState([]),[a,C]=useState(-1),[b,d]=useState("bottom"),[h,x]=useState(),[v,L]=useState(ne);return jsx(fo.Provider,{value:{optionsListRef:o,inputRef:t,autocompleteId:n,inputRect:r,showChips:l,filteredOptions:p,currentFocus:a,popoverPosition:b,setFilteredOptions:m,setCurrentFocus:C,setShowChips:s,setPopoverPosition:d,setInputRect:i,optionsListHeight:v,optionsListRect:h,setOptionsListRect:x,setOptionsListHeight:L},children:e})};var wn=({option:e,onMountWidth:o})=>{let t=useRef(null);return useEffect(()=>{t.current&&o?.(t.current.clientWidth);},[]),jsx(d$2,{variant:"fill",color:"neutral",ref:t,className:"shrink-0",size:"md",hasCloseIcon:false,children:e.label})},ho=wn;var Dn=150,Bn=___default.memo(({selectedOptions:e,error:o,onCleanSelectedOptions:t,disabled:n,size:r})=>{let{autocompleteId:i,inputRect:l,inputRef:s,optionsListRef:p}=te(),m=___default.useRef(null),[a,C]=___default.useState(new Map),b=useMemo(()=>{if(!l?.width)return [];let h=0,x=l.width-Dn,v=0;for(let L=0;L<e.length&&(v+=a.get(L)??0,!(v>x));L++)h++;return e.slice(0,h)},[l?.width,e,a]),d=useCallback(()=>{n||(s?.current?.focus(),p.current.style.display="flex");},[n]);return jsxs("div",{onClick:d,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pr-12 pl-3",n&&"cursor-not-allowed"),style:{maxWidth: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((h,x)=>jsx(ho,{option:h,onMountWidth:v=>C(L=>new Map(L).set(x,v))},`chip-input-${i}-${h.value}`))}),e.length>b.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!o&&jsx(a$3,{content:String(e.length),size:r}),o&&e.length>0&&jsx(c,{className:"text-error-700 h-6 w-6",onClick:h=>{h.stopPropagation(),t();}})]})}),go=Bn;var Vn=___default.memo(({option:e,index:o,onPressOption:t,isSelected:n,optionDescriptionLines:r})=>{let{currentFocus:i,inputRef:l}=te();return jsx(uo,{title:e.label,checked:n,disabled:e.disabled,className:i===o?"bg-primary-200":void 0,onMouseDown:s=>{e.disabled||(l?.current?.value&&s.preventDefault(),t?.(e,s));},description:e.description,descriptionLines:r})}),ft=Vn;var Gn=___default.memo(({selectedOptions:e$1,handleSelect:o,NoResultsIcon:t,noResultsLabel:n,noResultsDescription:r,noResultsDescriptionLines:i,noResultsAsColumn:l,noResultsButtonOnClick:s,optionDescriptionLines:p,noResultsButtonLabel:m})=>{let{popoverPosition:a$2,optionsListRef:C,filteredOptions:b,inputRect:d,autocompleteId:h,inputRef:x,optionsListHeight:v}=te(),L=useCallback(I=>e$1.some(T=>T.value===I.value),[e$1]),M=useMemo(()=>e$1.filter(I=>I.label.toLowerCase().includes(x?.current?.value.toLowerCase()??"")),[e$1,x?.current?.value]);return jsx(ro.Root,{asChild:true,children:jsxs("div",{ref:C,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:d?{width:`${d.width}px`,left:d.left,top:a$2==="bottom"?`${d.bottom}px`:void 0,bottom:a$2==="top"?`${window.innerHeight-d.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:t,iconAsColumn:l,descriptionLines:i}),s&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{C.current.style.display="none",x.current.value="",s();},children:m})]})]}),M.map((I,T)=>jsx(ft,{option:I,index:T,onPressOption:g=>o(g),isSelected:L(I),optionDescriptionLines:p},`autocomplete-option-${h}-${I.key??I.value}`)),b.map((I,T)=>!e$1.some(g=>g.value===I.value)&&jsx(ft,{option:I,index:T,onPressOption:g=>o(g),isSelected:L(I),optionDescriptionLines:p},`autocomplete-option-${h}-${I.key??I.value}`))]})})}),xo=Gn;var jn=___default.memo(({selectedOptions:e,onSelect:o,error:t,helperText:n,label:r,placeholder:i,options:l,onInputChange:s,size:p,disabled:m})=>{let{setCurrentFocus:a,setFilteredOptions:C,optionsListRef:b,inputRef:d}=te();return jsx(a$4,{ref:d,autoComplete:"off",list:"",disabled:m,selectMode:true,onChange:h=>{a(-1),s?.(h.target.value);},onClean:()=>{a(-1),C(l),o?.(null,e);},onClick:()=>{m||(b.current.style.display="flex");},error:t,helperText:n,label:r,placeholder:i,fixedTopLabel:e.length>0,size:p})}),vo=jn;var Io=({options:e,defaultSelectedOptions:o,onSelect:t,error:n,helperText:r,label:i,placeholder:l,noResultsLabel:s,noResultsIcon:p,noResultsDescription:m,noResultsDescriptionLines:a,noResultsAsColumn:C,noResultsButtonOnClick:b,noResultsButtonLabel:d,className:h,onInputChange:x,value:v,loading:L,size:M="md",optionDescriptionLines:I=1,disabled:T})=>{let{inputRef:g,optionsListRef:R,setFilteredOptions:A,setShowChips:y,setInputRect:k,setPopoverPosition:O,setCurrentFocus:V,showChips:S,setOptionsListRect:c,optionsListRect:u,setOptionsListHeight:P}=te(),D=useRef(false),[H,G]=useState(o??[]),z=useCallback(K=>{G(Z=>{let se,Pe=Z.findIndex(bn=>bn.value===K.value);return Pe===-1?(se=Z.concat(K),t?.(K,se),se):(se=Z.toSpliced(Pe,1),t?.(K,se),se)});},[t]),le=useCallback(()=>{G([]),A(e),t?.(null,[]);},[]),F=useCallback(()=>{y(false);},[]),X=useCallback(()=>{y(true);},[]),Y=useCallback(()=>{if(!g?.current)return;let K=g.current.getBoundingClientRect();k(K);let Z=u?u.height>ne?ne:u.height:ne,se=window.innerHeight-K.bottom>Z,Pe=K.top>Z;O(se?"bottom":Pe?"top":"bottom"),P(Pe?ne:window.innerHeight-K.bottom>ne?ne:window.innerHeight-K.bottom);},[u?.height]),Fe=useCallback(()=>{let K=e.filter(Z=>Z.label.toLowerCase().includes(g?.current?.value.toLowerCase()??""));if(A(K),R?.current){let Z=R.current.getBoundingClientRect();c(Z);}},[e,R?.current]);return useEffect(()=>{A(e);},[e]),a$d(R,()=>{R.current.style.display="none",V(-1);}),useEffect(()=>{if(g?.current)return Y(),g.current.addEventListener("mousedown",Y),g.current.addEventListener("input",Fe),g.current.addEventListener("focusin",F),g.current.addEventListener("focusout",X),window.addEventListener("scroll",Y,true),window.addEventListener("resize",Y),()=>{g.current?.removeEventListener("mousedown",Y),g.current?.removeEventListener("input",Y),g.current?.removeEventListener("focusout",X),g.current?.removeEventListener("focusin",F),window.removeEventListener("scroll",Y,true),window.removeEventListener("resize",Y);}},[Y,X,F,Fe]),useEffect(()=>{v&&(G(v),y(true));},[v]),useEffect(()=>{L||o&&o.length&&!D.current&&(G(o),D.current=true,y(true));},[o,L]),jsxs("div",{className:a$2("relative",h),children:[jsx(vo,{selectedOptions:H,onSelect:t,error:n,helperText:r,label:i,placeholder:l,handleSelect:z,options:e,onInputChange:x,size:M,disabled:T}),S&&jsx(go,{selectedOptions:H,disabled:T,error:n,onCleanSelectedOptions:le,size:M}),jsx(xo,{handleSelect:z,selectedOptions:H,noResultsLabel:s,NoResultsIcon:p,optionDescriptionLines:I,noResultsAsColumn:C,noResultsButtonLabel:d,noResultsButtonOnClick:b,noResultsDescription:m,noResultsDescriptionLines:a})]})};var Oa=e=>jsx(bo,{children:jsx(Io,{...e})});var ot=({children:e,className:o,disabled:t,error:n,helperText:r,htmlFor:i,label:l,readOnly:s,required:p,tooltip:m})=>{let{root:a}=c$1({error:n,disabled:t,readOnly:s});return jsxs("div",{className:a({className:o}),"data-error":n||void 0,"data-disabled":t||void 0,"data-readonly":s||void 0,children:[l&&jsx(a$7,{as:"label",htmlFor:i,label:l,required:p,tooltip:m}),e,jsx(a$8,{children:r})]})};var gt=({className:e,country:o,countryName:t})=>{let n=tr[o];return jsx("span",{className:a$2("flex size-4.5 shrink-0 items-center justify-center overflow-hidden rounded-full border border-white [&_svg:not([class*='size-'])]:h-full [&_svg:not([class*='size-'])]:w-auto [&_svg:not([class*='size-'])]:max-w-none [&_svg:not([class*='size-'])]:shrink-0",e),children:n&&jsx(n,{title:t})})};var ir=({code:e,codeClassName:o,label:t})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx(gt,{country:e,countryName:t}),jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",o),children:e})]}),Ro=({className:e,disabled:o,error:t,onChange:n,onOpenChange:r,options:i,readOnly:l,translations:s,value:p$1})=>{let m=_.useRef(null),[a,C]=_.useState(""),[b,d]=_.useState(false),{wrapper:h,input:x,clearIcon:v,searchIcon:L}=b$2({size:"md"}),{contains:M}=useFilter({sensitivity:"base"}),I=_.useMemo(()=>i.map(c=>({...c,key:c.code})),[i]),T=_.useMemo(()=>I.find(c=>c.key===p$1),[I,p$1]),{collection:g,filter:R,set:A}=useListCollection({initialItems:I,itemToString:c=>`${c.label} ${c.code}`,itemToValue:c=>c.key,filter:(c,u,P)=>M(c,u)||M(P.code,u.toUpperCase())});_.useEffect(()=>{A(I);},[I,A]);let y=_.useCallback(c=>{d(c),r?.(c);},[r]),k=_.useCallback(({inputValue:c})=>{let u=c??"";C(u),R(u),m.current?.scrollTo({top:0});},[R]),O=_.useCallback(c=>{y(c),c&&(C(""),R(""));},[R,y]),V=_.useCallback(({itemValue:c})=>{if(!c)return;let u=I.find(P=>P.key===c)?.code;u&&(n(u),y(false));},[I,y,n]),S=useCombobox({collection:g,inputBehavior:"autohighlight",inputValue:a,open:b,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:T?[T.key]:[],onInputValueChange:k,onOpenChange:({open:c})=>{c||y(false);},onSelect:V});return jsx(Combobox.RootProvider,{value:S,children:jsxs(a$9,{open:b,onOpenChange:O,children:[jsx(b$3,{asChild:true,children:jsx("button",{type:"button",className:a$2("relative flex h-full w-19.5 shrink-0 items-center justify-center rounded-l after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:w-px after:content-['']",t?"bg-danger-20 after:bg-input-ring-error after:w-0.5":o||l?"after:bg-input-ring-disabled bg-neutral-200":"group-focus-within/id-field:after:bg-input-ring-focus after:bg-input-ring bg-neutral-200 group-focus-within/id-field:after:w-0.5",!t&&b&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||l,children:T&&jsx(ir,{code:T.code,label:T.label,codeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",l&&"text-input-text-disabled")})})}),jsx(c$4,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:h({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:s.searchCountryPlaceholder,className:x()}),!o&&a.length>0&&jsx("button",{type:"button",className:v(),onClick:()=>{S.setInputValue("","clear-trigger");},children:jsx(d$4,{className:"size-4.5"})}),jsx(p,{className:L()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:m,className:a$2("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":g.items.length===0}),children:g.items.length===0?jsx(a$a,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:g.items.map(c=>jsxs(Combobox.Item,{item:c,className:"data-highlighted:bg-primary-100 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-neutral-900 outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",children:[jsx(gt,{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===p$1?"opacity-100":"opacity-0")})]},c.key))})})]})})]})})};var xt=_.forwardRef(({className:e,clearLabel:o,disabled:t,error:n,onChange:r,readOnly:i,type:l="text",value:s,...p},m)=>{let a=_.useRef(null),C=`${s??""}`.length>0,b=!t&&!i&&C,d$1=b||n;_.useImperativeHandle(m,()=>a.current,[]);let h=_.useCallback(v=>{r?.(v.target.value);},[r]),x=_.useCallback(()=>{r?.(""),a.current?.focus();},[r]);return jsxs("div",{className:a$2("bg-input-bg relative flex h-full min-w-0 flex-1 rounded-r",t&&"bg-input-bg-disabled"),children:[jsx("input",{type:l,"data-slot":"input",className:a$2("text-input-text placeholder:text-input-placeholder h-full min-w-0 flex-1 rounded-r bg-transparent px-3 text-sm leading-[143%] focus-visible:outline-0",d$1&&!n&&"pr-10.5",b&&n&&"pr-14",n&&!b&&"pr-10.5",t&&"text-input-text-disabled",e),...p,disabled:t,readOnly:i,value:s,onChange:h,ref:a}),(b||n)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[b&&jsx(a$5,{ariaLabel:o,onClick:x}),n&&jsx(d,{})]})]})});xt.displayName="IdInput";var vt={en:"Clear identification number",es:"Limpiar n\xFAmero de identificaci\xF3n",pt:"Limpar n\xFAmero de identifica\xE7\xE3o"},No={en:sr,es:ar,pt:cr},pr=vt.en,ur=No.en,mr={es:{clearIdLabel:vt.es,searchCountryPlaceholder:"Buscar..."},pt:{clearIdLabel:vt.pt,searchCountryPlaceholder:"Pesquisar..."}},dr={clearIdLabel:pr,searchCountryPlaceholder:"Search..."},Mo=()=>getDefaultOptions().locale?.code,Eo=e=>mr[e]??dr,fr=(e,o)=>(No[o]??ur)[e]??e,Ao=({localeCode:e})=>c$2.map(o=>({code:o,label:fr(o,e)})).sort((o,t)=>o.label.localeCompare(t.label)),ko=a$6,Oo=b$1,wo=(e,o)=>{let t=o.trim();return !t||!c$3(e,t).isValid?t:d$3(e,t)};var So=()=>{},Ho=_.forwardRef(({autoComplete:e,className:o,country:t,disabled:n,error:r,helperText:i,id:l,label:s,name:p,onBlur:m,onChange:a=So,onCountryChange:C=So,placeholder:b,readOnly:d,required:h,tooltip:x,value:v},L)=>{let[M,I]=_.useState(false),[T,g]=_.useState(v??""),R=_.useId(),A=l??R,y=Mo(),k=_.useRef(v??"");_.useEffect(()=>{(v??"")!==k.current&&g(v??"");},[v]);let O=_.useMemo(()=>Eo(y),[y]),V=_.useMemo(()=>Ao({localeCode:y}),[y]),S=_.useMemo(()=>Oo(t??"")||b||ko,[t,b]),c=c$1({error:r,disabled:n,readOnly:d}),u=_.useCallback((H,G)=>{let z=wo(H,G);k.current=z,a(z);},[a]),P=_.useCallback(H=>{g(H),u(t??"",H);},[t,u]),D=_.useCallback(H=>{C(H),u(H,T);},[T,C,u]);return jsx(ot,{disabled:n,error:r,helperText:i,htmlFor:A,label:s,readOnly:d,required:h,tooltip:x,children:jsxs("div",{className:a$2(c.control(),"group/id-field",!r&&!n&&!d&&M&&"after:ring-input-ring-focus after:ring-2",o),children:[jsx(Ro,{disabled:n,error:r,onChange:D,onOpenChange:I,options:V,readOnly:d,translations:O,value:t}),jsx(xt,{autoComplete:e,clearLabel:O.clearIdLabel,disabled:n,error:r,id:A,name:p,onBlur:m,onChange:P,placeholder:S,readOnly:d,required:h,value:T,ref:L})]})})});Ho.displayName="IdField";var Ec=({children:e$2,title:o,titleLines:t=1,description:n,descriptionLines:r=1,StartIcon:i,hasDivider:l=false,disabled:s=false,actionButton:p,isSelected:m=false,className:a,...C})=>jsxs(ee,{hasDescription:!!n,disabled:s,hasDivider:l,isSelected:m,...C,className:a,children:[i&&jsx(i,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(pe,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:s}),p&&jsx(Fragment,{children:p.isIcon?jsx(e$1,{...p,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:s??p.disabled}):jsx(e,{...p,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:s??p.disabled})})]});var zc=({title:e,description:o="",descriptionLines:t,hasDivider:n=false,disabled:r=false,checked:i,onCheckedChange:l,className:s,chipStatus:p,chipExpandable:m,...a})=>jsxs(ee,{hasDescription:!!o,disabled:r,hasDivider:n,...a,className:a$2("pr-6",s),children:[jsx(b,{checked:i,onCheckedChange:l,className:"mr-4 self-center",disabled:r}),jsxs("div",{className:"flex-1",children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsx("p",{className:a$2("line-clamp-1 text-sm leading-[130%] break-all",!!o&&"font-medium"),children:e}),m&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$6,{...m})}),p&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$5,{...p,size:"xs",className:"shrink-0"})})]}),o&&jsx("p",{className:a$2("text-xs leading-[130%]",r?"text-neutral-400":"text-neutral-700",{"line-clamp-1":t===1,"line-clamp-2":t===2,"line-clamp-3":t===3,"line-clamp-4":t===4}),children:o})]})]});var Lt={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"},Tt={headings:["h1","h2","h3"],textFormat:["bold","italic","underline"],lists:true,indent:true,alignment:["left","center","right","justify"],undoRedo:true};var Rt=({readOnly:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>{o.setEditable(!e);},[o,e]),null};var Pt=({editorRef:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>(e.current=o,()=>{e.current===o&&(e.current=null);}),[o,e]),null};var yr={"ql-align-left":"left","ql-align-center":"center","ql-align-right":"right","ql-align-justify":"justify"},Lr={center:"ql-align-center",right:"ql-align-right",justify:"ql-align-justify"},Tr=()=>typeof window<"u"&&typeof window.DOMParser<"u",Fo=e=>Tr()?new DOMParser().parseFromString(e,"text/html"):null,Rr=e=>(e??"").replace(/\s+/g," ").trim(),Mt=e=>{let o=0;for(let t of Array.from(e.classList)){let n=t.match(/^ql-indent-(\d+)$/);if(!n)continue;let r=Number.parseInt(n[1],10);Number.isFinite(r)&&(o=Math.max(o,r)),e.classList.remove(t);}return o},Pr=e=>{let o=e.querySelectorAll("[class*='ql-align-']");for(let t of Array.from(o))for(let n of Array.from(t.classList)){let r=yr[n];r&&(r!=="left"&&(t.style.textAlign=r),t.classList.remove(n));}},Nr=e=>{let o=e.querySelectorAll("[class*='ql-indent-']");for(let t of Array.from(o)){if(t.tagName==="LI")continue;let n=Mt(t);n>0&&(t.style.paddingInlineStart=`${n*3}em`);}},Mr=(e,o)=>{let t=e.getAttribute("data-list");return t==="bullet"?"ul":t==="ordered"?"ol":o},Er=e=>{let o=e.cloneNode(true);return o.removeAttribute("data-list"),o.removeAttribute("data-checked"),o.removeAttribute("data-indent"),Mt(o),o},Nt=(e,o)=>e.createElement(o),Ar=(e,o)=>{let t=Array.from(e.children).filter(p=>p.tagName==="LI");if(t.length===0||!t.some(p=>p.hasAttribute("data-list")?true:Array.from(p.classList).some(m=>/^ql-indent-\d+$/.test(m))))return;let r=[],i=[],l=e.tagName==="UL"?"ul":"ol";for(let p of t){let m=Mt(p),a=Mr(p,l),C=Er(p);for(;i.length>0&&i[i.length-1].level>m;)i.pop();if(i.length===0){let d=Nt(o,a);r.push(d),i.push({level:0,kind:a,listElement:d});}let b=i[i.length-1];for(;b.level<m;){let d=b.listElement.lastElementChild;if(!d||d.tagName!=="LI")break;let h=Nt(o,a);d.appendChild(h),b={level:b.level+1,kind:a,listElement:h},i.push(b);}if(b=i[i.length-1],b.kind!==a){let d=Nt(o,a);if(i.length===1)r.push(d),i[0]={level:0,kind:a,listElement:d};else {let x=i[i.length-2].listElement.lastElementChild;x&&x.tagName==="LI"?(x.appendChild(d),i[i.length-1]={level:b.level,kind:a,listElement:d}):(r.push(d),i.length=1,i[0]={level:0,kind:a,listElement:d});}b=i[i.length-1];}b.listElement.appendChild(C);}if(r.length===0)return;let s=o.createDocumentFragment();for(let p of r)s.appendChild(p);e.replaceWith(s);},kr=(e,o)=>{let t=Array.from(e.querySelectorAll("ol, ul"));for(let n of t)Ar(n,o);},Do=(e,o)=>{let t=e.tagName==="UL"?"bullet":"ordered",n=Array.from(e.children).filter(r=>r.tagName==="LI");for(let r of n){r.setAttribute("data-list",t);for(let l of Array.from(r.classList))/^ql-indent-\d+$/.test(l)&&r.classList.remove(l);o>0&&r.classList.add(`ql-indent-${o}`);let i=Array.from(r.children).filter(l=>l.tagName==="UL"||l.tagName==="OL");for(let l of i)Do(l,o+1);}},Or=e=>{let o=e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li");for(let t of Array.from(o)){let n=t;for(let l of Array.from(n.classList))l.startsWith("ql-align-")&&n.classList.remove(l);let r=n.style.textAlign.trim().toLowerCase(),i=Lr[r];i&&n.classList.add(i);}},xe=e=>Rr(e).replace(/>\s+</g,"><").replace(/ /g," "),Et=e=>{let o=e??"";if(!o.trim())return "";let t=Fo(o);if(!t)return o;let{body:n}=t;return Pr(n),Nr(n),kr(n,t),n.innerHTML},At=e=>{if(!e.trim())return "";let o=Fo(e);if(!o)return e;let{body:t}=o,n=Array.from(t.querySelectorAll("ul, ol"));for(let r of n)Do(r,0);return Or(t),t.innerHTML};var nt=e=>{let o="";return e.getEditorState().read(()=>{o=$generateHtmlFromNodes(e,null);}),At(o)},zr=(e,o)=>{let t=Et(o);e.update(()=>{let n=$getRoot();if(n.clear(),!t.trim()){n.append($createParagraphNode());return}let i=new DOMParser().parseFromString(t,"text/html"),l=$generateNodesFromDOM(e,i);if(l.length===0){n.append($createParagraphNode());return}n.select(),$insertNodes(l);});},kt=({value:e,isSyncingRef:o})=>{let[t]=useLexicalComposerContext(),n=useRef(null);return useEffect(()=>{let r=e??"";if(n.current!==null&&xe(r)===xe(n.current))return;let i=nt(t);xe(i)!==xe(r)&&(o.current=true,zr(t,r),queueMicrotask(()=>{o.current=false;})),n.current=r;},[t,o,e]),null};var _o=["left","center","right","justify"];var zo=["bold","italic","underline","strikethrough","code"];var yi={bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough",code:"code"},Li={left:jsx(AlignLeftIcon,{className:"size-4"}),center:jsx(AlignCenterIcon,{className:"size-4"}),right:jsx(AlignRightIcon,{className:"size-4"}),justify:jsx(AlignJustifyIcon,{className:"size-4"})},Ti={left:"Align left",center:"Align center",right:"Align right",justify:"Align justify"},we={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:"</>"})},Se={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Inline code"},Ri=e=>{let o=e.textFormat;return o===false?[]:Array.isArray(o)?zo.filter(t=>o.includes(t)):["bold","italic","underline"]},Pi=e=>{let o=e.alignment;return o===false?[]:Array.isArray(o)?_o.filter(t=>o.includes(t)):["left","center","right","justify"]},Ni=e=>{if(e.headings===false)return [];let o=Array.isArray(e.headings)?e.headings:["h1","h2","h3"];return [{value:"paragraph",label:"Normal"},...o.map(t=>({value:t,label:t.toUpperCase()}))]},He=()=>jsx("div",{className:"mx-1 h-5 w-px bg-neutral-300"}),Q=({label:e,onClick:o,icon:t,active:n=false,disabled:r=false})=>jsx("button",{type:"button","aria-label":e,title:e,disabled:r,onClick:o,className:a$2("inline-flex size-8 items-center justify-center rounded-md border border-transparent text-neutral-700 transition-colors","focus-visible:ring-primary-800 hover:bg-neutral-200 focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-40",n&&"border-neutral-300 bg-neutral-200 text-neutral-900"),children:t}),St=({config:e,className:o})=>{let[t]=useLexicalComposerContext(),n=useId(),[r,i]=useState(false),[l,s]=useState(false),[p,m]=useState(false),[a,C]=useState(false),[b,d]=useState(false),[h,x]=useState(false),[v,L]=useState(false),[M,I]=useState("paragraph"),[T,g]=useState("left"),R=useMemo(()=>Ri(e),[e]),A=useMemo(()=>Pi(e),[e]),y=useMemo(()=>Ni(e),[e]),k=useCallback(()=>{let c=$getSelection();if(!$isRangeSelection(c))return;m(c.hasFormat("bold")),C(c.hasFormat("italic")),d(c.hasFormat("underline")),x(c.hasFormat("strikethrough")),L(c.hasFormat("code"));let u=c.anchor.getNode(),P=u.getKey()==="root"?u:u.getTopLevelElementOrThrow();if($isListNode(P))I(P.getListType()==="number"?"ol":"ul");else {let H=$findMatchingParent(P,G=>$isListNode(G));$isListNode(H)?I(H.getListType()==="number"?"ol":"ul"):I($isHeadingNode(P)?P.getTag():P.getType());}let D=$isElementNode(P)?P.getFormatType():"";g(D==="center"||D==="right"||D==="justify"?D:"left");},[]);useEffect(()=>mergeRegister(t.registerUpdateListener(({editorState:c})=>{c.read(()=>{k();});}),t.registerCommand(SELECTION_CHANGE_COMMAND,()=>(k(),false),1),t.registerCommand(CAN_UNDO_COMMAND,c=>(i(c),false),1),t.registerCommand(CAN_REDO_COMMAND,c=>(s(c),false),1)),[t,k]);let O=c=>{t.dispatchCommand(FORMAT_TEXT_COMMAND,yi[c]);},V=c=>{t.update(()=>{let u=$getSelection();if($isRangeSelection(u)){if(c==="paragraph"){$setBlocksType(u,()=>$createParagraphNode());return}$setBlocksType(u,()=>$createHeadingNode(c));}});},S=c=>{if(M===(c==="bullet"?"ul":"ol")){t.dispatchCommand(REMOVE_LIST_COMMAND,void 0);return}t.dispatchCommand(c==="bullet"?INSERT_UNORDERED_LIST_COMMAND:INSERT_ORDERED_LIST_COMMAND,void 0);};return jsxs("div",{className:a$2("flex flex-wrap items-center gap-1 border-b border-neutral-300 bg-neutral-100 px-2 py-1.5",o),children:[e.undoRedo!==false&&jsxs(Fragment,{children:[jsx(Q,{label:"Undo",onClick:()=>t.dispatchCommand(UNDO_COMMAND,void 0),disabled:!r,icon:jsx(UndoIcon,{className:"size-4"})}),jsx(Q,{label:"Redo",onClick:()=>t.dispatchCommand(REDO_COMMAND,void 0),disabled:!l,icon:jsx(RedoIcon,{className:"size-4"})}),jsx(He,{})]}),y.length>0&&jsxs(Fragment,{children:[jsx("label",{className:"sr-only",htmlFor:n,children:"Text style"}),jsx("select",{id:n,value:M.startsWith("h")?M:"paragraph",onChange:c=>V(c.target.value),className:a$2("h-8 rounded-md border border-neutral-300 bg-white px-2 text-xs font-medium text-neutral-800","focus-visible:ring-primary-800 focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:outline-none"),children:y.map(c=>jsx("option",{value:c.value,children:c.label},c.value))}),jsx(He,{})]}),R.length>0&&jsxs(Fragment,{children:[R.includes("bold")&&jsx(Q,{label:Se.bold,onClick:()=>O("bold"),icon:we.bold,active:p}),R.includes("italic")&&jsx(Q,{label:Se.italic,onClick:()=>O("italic"),icon:we.italic,active:a}),R.includes("underline")&&jsx(Q,{label:Se.underline,onClick:()=>O("underline"),icon:we.underline,active:b}),R.includes("strikethrough")&&jsx(Q,{label:Se.strikethrough,onClick:()=>O("strikethrough"),icon:we.strikethrough,active:h}),R.includes("code")&&jsx(Q,{label:Se.code,onClick:()=>O("code"),icon:we.code,active:v}),jsx(He,{})]}),e.lists!==false&&jsxs(Fragment,{children:[jsx(Q,{label:"Bulleted list",onClick:()=>S("bullet"),icon:jsx(ListIcon,{className:"size-4"}),active:M==="ul"}),jsx(Q,{label:"Numbered list",onClick:()=>S("number"),icon:jsx(ListOrderedIcon,{className:"size-4"}),active:M==="ol"}),jsx(He,{})]}),e.indent!==false&&jsxs(Fragment,{children:[jsx(Q,{label:"Decrease indent",onClick:()=>t.dispatchCommand(OUTDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentDecreaseIcon,{className:"size-4"})}),jsx(Q,{label:"Increase indent",onClick:()=>t.dispatchCommand(INDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentIncreaseIcon,{className:"size-4"})}),jsx(He,{})]}),A.length>0&&jsx(Fragment,{children:A.map(c=>jsx(Q,{label:Ti[c],onClick:()=>t.dispatchCommand(FORMAT_ELEMENT_COMMAND,c),icon:Li[c],active:T===c},c))})]})};var qo=e=>{if(e!==void 0)return typeof e=="number"?`${e}px`:e},Ui=forwardRef(({value:e,onChange:o,onBlur:t,onError:n,placeholder:r="Write your content...",readOnly:i=false,showToolbar:l=true,toolbarConfig:s=Tt,className:p,editorClassName:m,toolbarClassName:a,autoFocus:C=false,minHeight:b=160,maxHeight:d,error:h=false,errorMessage:x,editorRef:v},L)=>{let M=useRef(false),I=useMemo(()=>({namespace:"SodtrackRichTextEditor",theme:Lt,onError:(g,R)=>{if(n){n(g,R);return}console.error("RichTextEditor error",g);},nodes:[HeadingNode,ListNode,ListItemNode]}),[n]),T={minHeight:qo(b),maxHeight:qo(d),overflowY:d?"auto":void 0};return jsx(LexicalComposer,{initialConfig:I,children:jsxs("div",{className:"w-full",children:[jsxs("div",{ref:L,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",h?"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",p),"data-error":h,"data-readonly":i,children:[l&&!i&&jsx(St,{config:s,className:a}),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:T,onBlur:t,"aria-invalid":h}),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(Rt,{readOnly:i}),jsx(kt,{value:e,isSyncingRef:M}),C&&!i&&jsx(AutoFocusPlugin,{}),v&&jsx(Pt,{editorRef:v}),jsx(OnChangePlugin,{ignoreSelectionChange:true,onChange:(g,R)=>{!o||M.current||o(nt(R),g);}})]}),h&&x&&jsx("p",{className:"text-error-500 mt-1 text-xs leading-[133%]",children:x})]})})});Ui.displayName="RichTextEditor";var ye="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 jp=["sm","md","lg"],Yp=["primary","secondary","ghost"],Xp=["primary","neutral"],Xi=tv({extend:d$1,slots:{root:"group data-[state=open]:ring-primary-800 gap-2 outline-none data-[state=open]:ring-3 data-[state=open]:ring-inset"},variants:{disabled:{true:{},false:{}}}}),Ko=({label:e,options:o,onSelect:t,variant:n="primary",size:r="md",disabled:i=false,className:l,tone:s="primary",...p})=>{let m=useCallback(b=>{t?.(b.value);},[t]),{root:a,icon:C}=Xi({variant:n,size:r,tone:s,disabled:i});return jsxs(MenuRoot,{unmountOnExit:true,lazyMount:true,onSelect:m,positioning:{placement:"bottom-start",flip:["bottom-end"]},...p,children:[jsxs(MenuTrigger,{disabled:i,className:a({className:l}),children:[e,jsx(g,{className:C({className:"transition-transform duration-150 group-data-[state=open]:rotate-180"})})]}),jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{className:a$2("elevation-9 z-layer max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",ye),children:o.map(({label:b,value:d,description:h,startIcon:x,endIcon:v,hasDivider:L,disabled:M,onClick:I})=>jsx(MenuItem,{value:d,disabled:M,onSelect:I,asChild:true,children:jsx(ce,{title:b,description:h,startIcon:x,endIcon:v,disabled:M,hasDivider:L,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},d))})})})]})};var sl=(e,o,t,n)=>{if(o==="icon"){if(e==="success")return {state:"success",variant:"icon"};if(!a$c(t))throw new Error('TrackerItem: `content` (LucideIcon) is required when `variant` is "icon" and `state` is not "success".');return {state:e,variant:"icon",content:t}}if(o==="number"){if(typeof t!="number")throw new Error('TrackerItem: `content` (number) is required when `variant` is "number".');return {state:e,variant:"number",content:t}}if(n===void 0)throw new Error("TrackerItem: `stepNumber` is required when `variant` is omitted (legacy API).");return {state:e,stepNumber:n}},al=e=>e.variant==="icon"?e.state==="success"?{variant:"icon",content:b$4("success")}:{variant:"icon",content:b$4(e.state,e.content)}:e.variant==="number"?{variant:"number",content:e.content}:{variant:"number",content:e.stepNumber},Xo=createContext(null),cl=()=>{let e=useContext(Xo);if(!e)throw new Error("TrackerItem components must be used within TrackerItem");return e},pl=({state:e,children:o})=>jsxs("div",{className:"relative",children:[jsx("div",{className:a$2("absolute top-1/2 z-10 h-[70%] w-0.5 -translate-y-1/2 rounded-sm",e==="active"&&"bg-primary-400",e==="success"&&"bg-success-500",e==="wait"&&"bg-neutral-400",e==="current"&&"bg-primary-500",e==="complete"&&"bg-primary-600")}),o]}),jo="flex min-h-10 w-full items-center gap-3 py-2 pr-1 pl-3",ul=forwardRef((e,o)=>{let{state:t$1,indicator:n,expandable:r,isClickable:i,headerMenu:l,onHeaderButtonClick:s$1}=cl(),{label:p,badgeStatus:m,details:a,className:C,...b}=e,d=()=>jsxs(Fragment,{children:[jsxs("div",{className:a$2("flex flex-1 gap-2",!m&&(!a||a.length===0)&&"self-center"),children:[n.variant==="icon"?t$1==="success"?jsx(c$5,{state:"success",variant:"icon"}):jsx(c$5,{state:t$1,variant:"icon",content:n.content}):jsx(c$5,{state:t$1,variant:"number",content:n.content}),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",t$1==="wait"?"text-neutral-500":"text-neutral-900"),children:p}),m&&m.visible!==false&&(()=>{let{visible:h,...x}=m;return jsx(a$b,{...x})})(),a&&jsx("div",{className:"text-2xs flex flex-col gap-1.5 text-neutral-700",children:a.map(({Icon:h,text:x},v)=>jsxs("div",{className:"flex items-center gap-1.5",children:[jsx(h,{className:"size-3 shrink-0"}),jsx("span",{className:"font-inter",children:x})]},v))})]})]}),i&&l&&jsx(I,{className:"size-3.5 shrink-0 text-neutral-800"}),!i&&r&&jsx(Collapsible.Context,{children:({open:h})=>jsx(Collapsible.Trigger,{asChild:true,children:jsx(e$1,{Icon:h?s:t,size:"sm",variant:"ghost",tone:"neutral"})})}),!i&&!r&&s$1&&jsx(e$1,{Icon:h,size:"sm",variant:"ghost",tone:"neutral",onClick:s$1})]});return i&&l?jsxs(MenuRoot,{unmountOnExit:true,lazyMount:true,positioning:{placement:"bottom-end",flip:["bottom-start"]},children:[jsx(MenuTrigger,{asChild:true,children:jsx("div",{ref:o,className:a$2(jo,"group cursor-pointer outline-none hover:bg-neutral-100 focus-visible:ring-3 focus-visible:ring-neutral-800 focus-visible:ring-inset",C),...b,children:d()})}),jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{className:a$2("elevation-9 z-layer max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",ye),children:l.options.map(({label:h,value:x,description:v,startIcon:L,endIcon:M,hasDivider:I,disabled:T,onClick:g})=>jsx(MenuItem,{value:x,disabled:T,onSelect:g,asChild:true,children:jsx(ce,{title:h,description:v,startIcon:L,endIcon:M,disabled:T,hasDivider:I,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},x))})})})]}):jsx("div",{ref:o,className:a$2(jo,C),...b,children:d()})});ul.displayName="TrackerItemHeader";var ml=forwardRef(({children:e,className:o,...t},n)=>jsx(Collapsible.Content,{className:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden",children:jsx("div",{ref:n,className:a$2("border-t border-neutral-300 px-3 py-2",o),...t,children:e})}));ml.displayName="TrackerItemExpandableContent";var dl=forwardRef(({buttons:e$1=[],className:o,...t},n)=>jsx("div",{ref:n,className:a$2("flex justify-end gap-2 border-t border-neutral-300 px-3 py-2",o),...t,children:e$1.map((r,i)=>{if(r.visible===false)return null;let{visible:l,...s}=r;return "options"in s?jsx(Ko,{...s,size:"sm"},i):jsx(e,{...s,size:"sm"},i)})}));dl.displayName="TrackerItemFooter";var Yo="overflow-hidden rounded-sm border border-neutral-300 bg-neutral-50",fl=forwardRef(({state:e,variant:o,content:t,stepNumber:n,expandable:r,isClickable:i,headerMenu:l,defaultExpanded:s,onExpandedChange:p,onHeaderButtonClick:m,className:a,children:C,...b},d)=>{let h=r===true,x=i===true,v=useMemo(()=>al(sl(e,o,t,n)),[e,o,t,n]),L=useMemo(()=>({state:e,indicator:v,expandable:h,isClickable:x,headerMenu:x?l:void 0,onHeaderButtonClick:x?void 0:m}),[e,v,h,x,l,m]),M=useCallback(I=>{p?.(I.open);},[p]);return jsx(Xo.Provider,{value:L,children:jsx(pl,{state:e,children:h?jsx(Collapsible.Root,{ref:d,defaultOpen:s??false,onOpenChange:M,className:a$2(Yo,a),...b,children:C}):jsx("div",{ref:d,className:a$2(Yo,a),...b,children:C})})})});fl.displayName="TrackerItem";var Fu=["sm","md","lg"],Du=["semibold","medium"],Bu=["primary","neutral"],Tl=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}}),_u=({className:e,label:o,badgeText:t="00",StartIcon:n,options:r,onSelect:i,isSelected:l=false,isLoading:s=false,isDisabled:p=false,hasTrailingBadge:m=false,size:a="lg",weight:C="semibold",tone:b="primary",type:d="button",...h})=>{let x=p||s,v=r.filter(({isHidden:P})=>!P),L=v.length>0,M=s,I=!!n&&!s,T=!s&&m,g$1=L&&!x,R=useCallback(P=>{i?.(P.value);},[i]),A=useCallback(P=>{P?.();},[]),{root:y,label:k,icon:O,chevron:V,trailing:S}=Tl({size:a,weight:C,tone:b,loading:M}),c=a,u=jsxs(Fragment,{children:[M&&jsx(c$7,{size:"sm",tone:"neutral",className:O()}),I&&n&&jsx(n,{className:O()}),jsx("span",{className:k(),children:o}),T&&jsx(a$e,{type:"square",variant:"primary",size:c,text:t,className:S()}),g$1&&jsx(g,{className:V()})]});return L?jsxs(MenuRoot,{onSelect:R,lazyMount:true,positioning:{placement:"bottom-start",flip:["bottom-end"]},children:[jsx(MenuTrigger,{...h,type:d,disabled:x,"aria-pressed":l,className:y({className:e}),children:u}),jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{className:cn$1("elevation-9 z-layer max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",ye),children:v.map(({label:P,description:D,startIcon:H,endIcon:G,hasDivider:z,isDisabled:le,onClick:F})=>jsx(MenuItem,{value:P,disabled:le,onSelect:()=>A(F),asChild:true,className:"flex items-center",children:jsx(ce,{title:P,description:D,startIcon:H,endIcon:G,disabled:le,hasDivider:z,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},P))})})})]}):jsx("button",{...h,type:d,disabled:x,"aria-pressed":l,className:y({className:e}),children:u})};var en={en:sr,es:ar,pt:cr},wl={es:{clearPhoneNumberLabel:"Eliminar n\xFAmero de tel\xE9fono",searchCountryPlaceholder:"Buscar..."},pt:{clearPhoneNumberLabel:"Limpar n\xFAmero de telefone",searchCountryPlaceholder:"Pesquisar..."}},Sl={clearPhoneNumberLabel:"Clear phone number",searchCountryPlaceholder:"Search..."},Hl=en.en,tn="9 1234 5678",Ht="ZZ",on=()=>{},lt=e=>wl[e]??Sl,nn=e=>en[e]??Hl,rn=e=>{if(e)try{let o=parsePhoneNumber(e)?.country;return !o||!j$1(o)?void 0:o}catch{return}},ln=e=>{if(e)return getExampleNumber(e,Ml)?.formatNational()},st=e=>e??Ht,at=()=>getDefaultOptions().locale?.code;var zl=({Icon:e,callingCode:o,country:t,countryName:n,callingCodeClassName:r})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx("span",{className:"flex size-4.5 shrink-0 items-center justify-center",children:jsx(e,{"aria-hidden":true,country:t,label:n})}),o&&jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",r),children:`+${o}`})]}),sn=({className:e,disabled:o,error:t,iconComponent:n,onChange:r,onOpenChange:i,options:l,readOnly:s,translations:p$1,value:m})=>{let a=_.useRef(null),[C,b]=_.useState(""),[d,h]=_.useState(false),{wrapper:x,input:v,clearIcon:L,searchIcon:M}=b$2({size:"md"}),{contains:I}=useFilter({sensitivity:"base"}),T=_.useMemo(()=>l.filter(u=>u.value!==void 0&&j$1(u.value)).map(u=>({callingCode:u.value?getCountryCallingCode(u.value):void 0,country:u.value,key:st(u.value),label:u.label})),[l]),g=_.useMemo(()=>T.find(u=>u.key===st(m)),[T,m]),{collection:R,filter:A,set:y}=useListCollection({initialItems:T,itemToString:u=>u.callingCode?`${u.label} +${u.callingCode}`:u.label,itemToValue:u=>u.key,filter:(u,P,D)=>{let H=P.trim().replace(/^\+/,"");return I(u,P)||(D.country?I(D.country,P.toUpperCase()):false)||(D.callingCode?I(D.callingCode,H)||I(`+${D.callingCode}`,P):false)}});_.useEffect(()=>{y(T);},[T,y]);let k=_.useCallback(u=>{h(u),i?.(u);},[i]),O=_.useCallback(({inputValue:u})=>{let P=u??"";b(P),A(P),a.current?.scrollTo({top:0});},[A]),V=_.useCallback(u=>{k(u),u&&(b(""),A(""));},[A,k]),S=_.useCallback(({itemValue:u})=>{if(!u||u===Ht){r(void 0),k(false);return}j$1(u)&&(r(u),k(false));},[k,r]),c=useCombobox({collection:R,inputBehavior:"autohighlight",inputValue:C,open:d,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:g?[g.key]:[],onInputValueChange:O,onOpenChange:({open:u})=>{u||k(false);},onSelect:S});return jsx(Combobox.RootProvider,{value:c,children:jsxs(a$9,{open:d,onOpenChange:V,children:[jsx(b$3,{asChild:true,children:jsx("button",{type:"button",className:a$2("relative flex h-full w-19.5 shrink-0 items-center justify-center rounded-l after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:w-px after:content-['']",t?"bg-danger-20 after:bg-input-ring-error after:w-0.5":o||s?"after:bg-input-ring-disabled bg-neutral-200":"group-focus-within/phone:after:bg-input-ring-focus after:bg-input-ring bg-neutral-200 group-focus-within/phone:after:w-0.5",!t&&d&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||s,children:g&&jsx(zl,{Icon:n,callingCode:g.callingCode,country:g.country,countryName:g.label,callingCodeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",s&&"text-input-text-disabled")})})}),jsx(c$4,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:x({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:p$1.searchCountryPlaceholder,className:v()}),!o&&C.length>0&&jsx("button",{type:"button",className:L(),onClick:()=>{c.setInputValue("","clear-trigger");},children:jsx(d$4,{className:"size-4.5"})}),jsx(p,{className:M()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:a,className:a$2("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":R.items.length===0}),children:R.items.length===0?jsx(a$a,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:R.items.map(u=>jsxs(Combobox.Item,{item:u,className:"data-highlighted:bg-primary-100 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-neutral-900 outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",children:[jsx("span",{className:"flex size-4.5 shrink-0 items-center justify-center",children:jsx(n,{"aria-hidden":true,country:u.country,label:u.label})}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:u.label}),u.callingCode&&jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:`+${u.callingCode}`}),jsx(j,{className:a$2("ml-auto size-4 shrink-0",u.key===st(m)?"opacity-100":"opacity-0")})]},u.key))})})]})})]})})};var cn=({className:e,country:o,countryName:t})=>{let n=tr[o];return jsx("span",{className:a$2("flex size-4.5 shrink-0 items-center justify-center overflow-hidden rounded-full border border-white [&_svg:not([class*='size-'])]:h-full [&_svg:not([class*='size-'])]:w-auto [&_svg:not([class*='size-'])]:max-w-none [&_svg:not([class*='size-'])]:shrink-0",e),children:n&&jsx(n,{title:t})})};var Dt=_.forwardRef(({className:e,disabled:o,error:t,onChange:n,readOnly:r,type:i,value:l,...s},p)=>{let m=at(),a=_.useMemo(()=>lt(m),[m]),C=_.useRef(null),d$1=!o&&!r&&!!l,h=d$1||t;_.useImperativeHandle(p,()=>C.current,[]);let x=_.useCallback(()=>{let v=C.current;if(!v){n?.({target:{value:""}});return}v.value="",n?.({target:v}),v.focus();},[n]);return jsxs("div",{className:a$2("bg-input-bg relative flex h-full min-w-0 flex-1 rounded-r",o&&"bg-input-bg-disabled"),children:[jsx("input",{type:i,"data-slot":"input",className:a$2("text-input-text placeholder:text-input-placeholder h-full min-w-0 flex-1 rounded-r bg-transparent px-3 text-sm leading-[143%] focus-visible:outline-0",h&&!t&&"pr-10.5",d$1&&t&&"pr-14",t&&!d$1&&"pr-10.5",o&&"text-input-text-disabled",e),...s,disabled:o,readOnly:r,value:l,onChange:n,ref:C}),(d$1||t)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[d$1&&jsx(a$5,{ariaLabel:a.clearPhoneNumberLabel,onClick:x}),t&&jsx(d,{})]})]})});Dt.displayName="PhoneNumberInputComponent";var $l=Ul,mn=_.forwardRef(({className:e,defaultCountry:o,disabled:t,error:n,helperText:r,id:i,label:l,onChange:s=on,placeholder:p,readOnly:m,required:a,tooltip:C,value:b,...d},h)=>{let[x,v]=_.useState(false),[L,M]=_.useState(()=>rn(b)??o),I=_.useId(),T=i??I,g=at(),R=_.useMemo(()=>lt(g),[g]),A=_.useMemo(()=>nn(g),[g]),y=_.useMemo(()=>ln(L)??p??tn,[p,L]),k=c$1({error:n,disabled:t,readOnly:m}),O=a$2(k.control(),"group/phone",!n&&!t&&!m&&x&&"after:ring-input-ring-focus after:ring-2",e),V=_.useCallback(S=>{M(S);},[]);return jsx(ot,{disabled:t,error:n,helperText:r,htmlFor:T,label:l,readOnly:m,required:a,tooltip:C,children:jsx($l,{...d,className:O,ref:h,countrySelectComponent:sn,countrySelectProps:{error:n,onOpenChange:v,translations:R},defaultCountry:o,disabled:t,flagComponent:cn,id:T,initialValueFormat:"national",inputComponent:Dt,labels:A,numberInputProps:{error:n,placeholder:y},readOnly:m,required:a,value:b,onChange:s,onCountryChange:V})})});mn.displayName="PhoneInput";var ql=({children:e,hasDescription:o=false,disabled:t=false,hasDivider:n=false,className:r,isSelected:i,onClick:l,...s})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("flex flex-row px-3 py-4 text-neutral-900 transition-colors",o?"py-3":"py-3.5",t?"cursor-not-allowed text-neutral-400":a$2("hover:bg-primary-100 focus:bg-primary-200",!!l?"cursor-pointer":"cursor-default"),i&&"bg-primary-200",r),onClick:m=>{t||l?.(m);},...s,children:e}),n&&jsx(a$1,{})]}),ee=ql;var If=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:i,badgeContent:l,hasDivider:s=false,disabled:p=false,onSelect:m,className:a,...C})=>jsxs(ee,{hasDescription:!!n,disabled:p,onClick:m,hasDivider:s,className:a$2(!p&&"cursor-pointer",a),...C,children:[i&&___default.cloneElement(i,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(pe,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:p}),jsxs("div",{className:"ml-4 flex gap-2",children:[l&&jsx(a$3,{content:l,size:"lg",variant:"alert",className:a$2("self-center",p&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});export{Xp as A,Ko as B,cs as a,If as b,uo as c,Oa as d,Ho as e,Ec as f,zc as g,Lt as h,Tt as i,xe as j,Et as k,At as l,Ui as m,cl as n,ul as o,ml as p,dl as q,fl as r,Fu as s,Du as t,Bu as u,_u as v,mn as w,ce as x,jp as y,Yp as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {j}from'./chunk-TPE6CVKA.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var I=e=>e==null||typeof e=="number"||typeof e=="string"?false:typeof e=="function"?true:typeof e=="object"&&"$$typeof"in e&&typeof e.render=="function";var l=tv({base:"font-jakarta text-2xs flex size-full items-center justify-center rounded-full border font-medium ring-1 ring-offset-1 ring-offset-white",variants:{state:{wait:"border-neutral-400 bg-neutral-100 text-neutral-600 ring-neutral-300",active:"border-primary-400 bg-primary-50 text-primary-500 ring-primary-300",success:"border-success-500 bg-success-300 text-success-800 ring-success-300",current:"border-primary-400 bg-primary-100 text-primary-600 ring-transparent",complete:"border-primary-600 bg-primary-600 ring-primary-600 text-neutral-50"}},defaultVariants:{state:"wait"}}),G=12,h=1.5,c=28,S=c/2,D={x:S,y:S},f=216,P=7,x=15,a=10,g=f+a,R=g+P,y=R+a,_=y+x,E=_+a,w=E+P,L=[{startDeg:0,endDeg:f},{startDeg:g,endDeg:R},{startDeg:y,endDeg:_},{startDeg:E,endDeg:w}],d=(e,t,n)=>{let r=(n-90)*Math.PI/180;return {x:e.x+t*Math.cos(r),y:e.y+t*Math.sin(r)}},O=(e,t,n,r)=>{let o=d(e,t,n),i=d(e,t,r),v=r-n>180?1:0;return `M ${o.x} ${o.y} A ${t} ${t} 0 ${v} 1 ${i.x} ${i.y}`},A=()=>jsx("svg",{"aria-hidden":true,viewBox:`0 0 ${c} ${c}`,className:"text-primary-500 pointer-events-none absolute -inset-1 size-7",children:L.map(({startDeg:e,endDeg:t},n)=>jsx("path",{d:O(D,G,e,t),fill:"none",stroke:"currentColor",strokeWidth:h,strokeLinecap:"round"},n))}),b=(e,t)=>{if(e==="success")return j;if(!t)throw new Error('StepItem: `content` (LucideIcon) is required when `variant` is "icon" and `state` is not "success".');return t},$=(e,t,n,r)=>{if(t==="icon"){if(e==="success")return {state:"success",variant:"icon"};if(!I(n))throw new Error('StepItem: `content` (LucideIcon) is required when `variant` is "icon" and `state` is not "success".');return {state:e,variant:"icon",content:n}}if(t==="number"){if(typeof n!="number")throw new Error('StepItem: `content` (number) is required when `variant` is "number".');return {state:e,variant:"number",content:n}}if(r===void 0)throw new Error("StepItem: `stepNumber` is required when `variant` is omitted (legacy API).");return {state:e,stepNumber:r}},k=e=>e.variant==="icon"?e.state==="success"?{variant:"icon",content:b("success")}:{variant:"icon",content:b(e.state,e.content)}:e.variant==="number"?{variant:"number",content:e.content}:{variant:"number",content:e.stepNumber},T=({variant:e,content:t})=>e==="icon"?jsx(t,{className:"size-3 shrink-0","aria-hidden":true}):t,z=({state:e,variant:t,content:n,stepNumber:r,className:o,...i})=>{let m=k($(e,t,n,r));return jsxs("div",{className:a$1("relative inline-flex size-5 shrink-0",o),...i,children:[jsx("div",{className:l({state:e}),children:T(m)}),e==="current"&&jsx(A,{})]})};export{I as a,b,z as c};
|
|
@@ -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>>>, "
|
|
1042
|
+
}, undefined, unknown, unknown, undefined>>>, "color" | "size"> & React.RefAttributes<HTMLDivElement>>;
|
|
1043
1043
|
|
|
1044
1044
|
export { BadgeExpandable, type BadgeExpandableColor, type BadgeExpandableLeading, type BadgeExpandableProps, type BadgeExpandableSize };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as ButtonActive,y as ButtonActiveSizes,A as ButtonActiveTones,z as ButtonActiveVariants}from'../chunk-
|
|
1
|
+
export{B as ButtonActive,y as ButtonActiveSizes,A as ButtonActiveTones,z as ButtonActiveVariants}from'../chunk-4BOVNDZG.js';import'../chunk-5BU2PJB5.js';import'../chunk-SIA2GA6D.js';import'../chunk-NBVRYDFS.js';import'../chunk-SXK4QICM.js';import'../chunk-FFJQVKM6.js';import'../chunk-ABJHG7HB.js';import'../chunk-V7KUCX6U.js';import'../chunk-2C2AKMJ2.js';import'../chunk-GL7UB65W.js';import'../chunk-T3FB2JLM.js';import'../chunk-BFOGZRXP.js';import'../chunk-RNA2OUHJ.js';import'../chunk-VAPHEFRD.js';import'../chunk-ULG55JO5.js';import'../chunk-3AMZEC2R.js';import'../chunk-YFRMZVE4.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-OI2QU3S3.js';import'../chunk-GBK2AJ2O.js';import'../chunk-5T72Q62I.js';import'../chunk-3X2MEX7P.js';import'../chunk-GJQRQC2R.js';import'../chunk-UXA4LNOV.js';import'../chunk-GTVHYHF4.js';import'../chunk-P2SYYWF3.js';import'../chunk-2ACXDJSE.js';import'../chunk-GFVJRSZI.js';import'../chunk-WIITAOD5.js';import'../chunk-T2Q6B32U.js';import'../chunk-NC6RO3YF.js';import'../chunk-3YSQPXNK.js';import'../chunk-K7YUM4ZN.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FKW2YKFZ.js';import'../chunk-SRCJQWFE.js';import'../chunk-C35EAYXN.js';import'../chunk-YWEQO6XJ.js';import'../chunk-7JM2X4UD.js';import'../chunk-I4727M54.js';import'../chunk-7ATGBD25.js';import'../chunk-FRHYY6ZQ.js';import'../chunk-5RKO7FZ7.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-YY4EZ4C5.js';import'../chunk-YC6ECYQ6.js';import'../chunk-ZB4KJVYD.js';import'../chunk-UB5XJQF2.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';import'../chunk-SCBJQNKR.js';import'../chunk-BTNV7IKI.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-G4XY2ICQ.js';import'../chunk-CLGNIZFZ.js';import'../chunk-PI7DECIN.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-5ROE6BPZ.js';import'../chunk-44FJVOTD.js';import'../chunk-FHABUQAH.js';import'../chunk-24L2VSWG.js';import'../chunk-DESMZNRN.js';import'../chunk-XZALFC6K.js';import'../chunk-VIMWKUML.js';import'../chunk-XKMQ2LPV.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-TPE6CVKA.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{v as ButtonMenu,s as ButtonMenuSizes,u as ButtonMenuTones,t as ButtonMenuWeights}from'../chunk-
|
|
1
|
+
export{v as ButtonMenu,s as ButtonMenuSizes,u as ButtonMenuTones,t as ButtonMenuWeights}from'../chunk-4BOVNDZG.js';import'../chunk-5BU2PJB5.js';import'../chunk-SIA2GA6D.js';import'../chunk-NBVRYDFS.js';import'../chunk-SXK4QICM.js';import'../chunk-FFJQVKM6.js';import'../chunk-ABJHG7HB.js';import'../chunk-V7KUCX6U.js';import'../chunk-2C2AKMJ2.js';import'../chunk-GL7UB65W.js';import'../chunk-T3FB2JLM.js';import'../chunk-BFOGZRXP.js';import'../chunk-RNA2OUHJ.js';import'../chunk-VAPHEFRD.js';import'../chunk-ULG55JO5.js';import'../chunk-3AMZEC2R.js';import'../chunk-YFRMZVE4.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-OI2QU3S3.js';import'../chunk-GBK2AJ2O.js';import'../chunk-5T72Q62I.js';import'../chunk-3X2MEX7P.js';import'../chunk-GJQRQC2R.js';import'../chunk-UXA4LNOV.js';import'../chunk-GTVHYHF4.js';import'../chunk-P2SYYWF3.js';import'../chunk-2ACXDJSE.js';import'../chunk-GFVJRSZI.js';import'../chunk-WIITAOD5.js';import'../chunk-T2Q6B32U.js';import'../chunk-NC6RO3YF.js';import'../chunk-3YSQPXNK.js';import'../chunk-K7YUM4ZN.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FKW2YKFZ.js';import'../chunk-SRCJQWFE.js';import'../chunk-C35EAYXN.js';import'../chunk-YWEQO6XJ.js';import'../chunk-7JM2X4UD.js';import'../chunk-I4727M54.js';import'../chunk-7ATGBD25.js';import'../chunk-FRHYY6ZQ.js';import'../chunk-5RKO7FZ7.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-YY4EZ4C5.js';import'../chunk-YC6ECYQ6.js';import'../chunk-ZB4KJVYD.js';import'../chunk-UB5XJQF2.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';import'../chunk-SCBJQNKR.js';import'../chunk-BTNV7IKI.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-G4XY2ICQ.js';import'../chunk-CLGNIZFZ.js';import'../chunk-PI7DECIN.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-5ROE6BPZ.js';import'../chunk-44FJVOTD.js';import'../chunk-FHABUQAH.js';import'../chunk-24L2VSWG.js';import'../chunk-DESMZNRN.js';import'../chunk-XZALFC6K.js';import'../chunk-VIMWKUML.js';import'../chunk-XKMQ2LPV.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-TPE6CVKA.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -112,7 +112,7 @@ declare const ChipInput: React__default.ForwardRefExoticComponent<{
|
|
|
112
112
|
startIcon: string;
|
|
113
113
|
closeButton: string;
|
|
114
114
|
closeIcon: string;
|
|
115
|
-
}, undefined, unknown, unknown, undefined>>>, "
|
|
115
|
+
}, undefined, unknown, unknown, undefined>>>, "color" | "variant"> & Required<Pick<VariantProps<tailwind_variants.TVReturnType<{
|
|
116
116
|
color: {
|
|
117
117
|
neutral: {};
|
|
118
118
|
primary: {};
|
|
@@ -214,6 +214,6 @@ declare const ChipInput: React__default.ForwardRefExoticComponent<{
|
|
|
214
214
|
startIcon: string;
|
|
215
215
|
closeButton: string;
|
|
216
216
|
closeIcon: string;
|
|
217
|
-
}, undefined, unknown, unknown, undefined>>>, "
|
|
217
|
+
}, undefined, unknown, unknown, undefined>>>, "color" | "variant">> & React__default.RefAttributes<HTMLSpanElement>>;
|
|
218
218
|
|
|
219
219
|
export { ChipInput, ChipInputColors, ChipInputSizes, ChipInputVariants };
|
|
@@ -73,7 +73,7 @@ export { SignaturePad, SignaturePadProps } from './signature-pad.js';
|
|
|
73
73
|
export { Dropzone, DropzoneAcceptedFileType, DropzoneAcceptedFileTypeWithoutAll, DropzoneAcceptedFileTypes, DropzoneFileAcceptDetails, DropzoneFileChangeDetails, DropzoneFileRejectDetails, DropzoneProps, DropzoneSize, DropzoneSizes } from './dropzone.js';
|
|
74
74
|
import { EditorState, LexicalEditor, EditorThemeClasses } from 'lexical';
|
|
75
75
|
export { Sidebar, SidebarBody, SidebarFooter, SidebarFooterProps, SidebarHeader, SidebarHeaderProps, SidebarProps, SidebarProvider, SidebarProviderProps, useSidebar } from './sidebar.js';
|
|
76
|
-
export { TrackerItem, TrackerItemExpandableContent, TrackerItemFooter, TrackerItemFooterButton, TrackerItemFooterProps, TrackerItemHeader, TrackerItemHeaderDetailsItemProps, TrackerItemHeaderMenuProps, TrackerItemHeaderProps, TrackerItemProps, TrackerItemState, useTrackerItem } from './tracker-item.js';
|
|
76
|
+
export { TrackerItem, TrackerItemExpandableContent, TrackerItemFooter, TrackerItemFooterButton, TrackerItemFooterProps, TrackerItemHeader, TrackerItemHeaderDetailsItemProps, TrackerItemHeaderMenuProps, TrackerItemHeaderProps, TrackerItemIndicatorProps, TrackerItemProps, TrackerItemState, TrackerItemVariant, useTrackerItem } from './tracker-item.js';
|
|
77
77
|
export { ButtonActive, ButtonActiveOption, ButtonActiveProps, ButtonActiveSizes, ButtonActiveTones, ButtonActiveVariants } from './button-active.js';
|
|
78
78
|
export { ButtonMenu, ButtonMenuOption, ButtonMenuProps, ButtonMenuSize, ButtonMenuSizes, ButtonMenuTone, ButtonMenuTones, ButtonMenuWeight, ButtonMenuWeights } from './button-menu.js';
|
|
79
79
|
import * as react_phone_number_input from 'react-phone-number-input';
|
|
@@ -181,10 +181,10 @@ type AutocompleteMultipleOption_old = {
|
|
|
181
181
|
declare const AutocompleteMultiple_old: FC<AutocompleteMultipleProps>;
|
|
182
182
|
|
|
183
183
|
declare const IdField: React$1.ForwardRefExoticComponent<{
|
|
184
|
-
disabled?: boolean | undefined | undefined;
|
|
185
184
|
id?: string | undefined | undefined;
|
|
186
|
-
name?: string | undefined | undefined;
|
|
187
185
|
onBlur?: React$1.FocusEventHandler<HTMLInputElement> | undefined;
|
|
186
|
+
disabled?: boolean | undefined | undefined;
|
|
187
|
+
name?: string | undefined | undefined;
|
|
188
188
|
autoComplete?: React$1.HTMLInputAutoCompleteAttribute | undefined;
|
|
189
189
|
readOnly?: boolean | undefined | undefined;
|
|
190
190
|
required?: boolean | undefined | undefined;
|
|
@@ -274,7 +274,7 @@ type PhoneInputProps = PhoneInputAllowedProps & {
|
|
|
274
274
|
value?: Value | string;
|
|
275
275
|
};
|
|
276
276
|
|
|
277
|
-
declare const PhoneInput: React$1.ForwardRefExoticComponent<Pick<Props<PhoneNumberInputComponentProps>, "
|
|
277
|
+
declare const PhoneInput: React$1.ForwardRefExoticComponent<Pick<Props<PhoneNumberInputComponentProps>, "id" | "onBlur" | "disabled" | "name" | "autoComplete" | "readOnly" | "required" | "placeholder"> & {
|
|
278
278
|
defaultCountry?: PhoneCountryCode;
|
|
279
279
|
} & {
|
|
280
280
|
className?: React$1.HTMLAttributes<HTMLDivElement>["className"];
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as AutocompleteMultiple_old,a as Autocomplete_old,B as ButtonActive,y as ButtonActiveSizes,A as ButtonActiveTones,z as ButtonActiveVariants,v as ButtonMenu,s as ButtonMenuSizes,u as ButtonMenuTones,t as ButtonMenuWeights,e as IdField,b as ListItemArrow,f as ListItemButton,c as ListItemCheckbox,g as ListItemCheckboxLeft,x as ListItem_old,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-
|
|
1
|
+
export{d as AutocompleteMultiple_old,a as Autocomplete_old,B as ButtonActive,y as ButtonActiveSizes,A as ButtonActiveTones,z as ButtonActiveVariants,v as ButtonMenu,s as ButtonMenuSizes,u as ButtonMenuTones,t as ButtonMenuWeights,e as IdField,b as ListItemArrow,f as ListItemButton,c as ListItemCheckbox,g as ListItemCheckboxLeft,x as ListItem_old,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-4BOVNDZG.js';export{a as Textarea}from'../chunk-5BU2PJB5.js';export{a as TextareaSizes_old,b as Textarea_old}from'../chunk-SIA2GA6D.js';export{a as TimePicker}from'../chunk-NBVRYDFS.js';export{a as TimePicker_old}from'../chunk-SXK4QICM.js';export{a as ToastTypes,c as Toaster,b as toast}from'../chunk-FFJQVKM6.js';export{c as getSelectedCount,b as getSelectedIds,a as syncSelectionDataMap,d as useRowSelectionWithData}from'../chunk-ABJHG7HB.js';import'../chunk-V7KUCX6U.js';export{c as Tabs,f as TabsContent,d as TabsList,b as TabsSizes,e as TabsTrigger,a as TabsVariants}from'../chunk-2C2AKMJ2.js';export{a as TextField}from'../chunk-GL7UB65W.js';export{c as SearchBar,a as SearchBarSizeOptions,b as searchBarStyles}from'../chunk-T3FB2JLM.js';export{a as SelectSkeleton}from'../chunk-BFOGZRXP.js';export{c as Select,b as SelectSizeDefault,a as SelectSizes}from'../chunk-RNA2OUHJ.js';export{a as Select_old}from'../chunk-VAPHEFRD.js';export{c as Sidebar,e as SidebarBody,f as SidebarFooter,d as SidebarHeader,b as SidebarProvider,a as useSidebar}from'../chunk-ULG55JO5.js';export{a as SignaturePad}from'../chunk-3AMZEC2R.js';export{b as SnackbarProvider,a as snackbar}from'../chunk-YFRMZVE4.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-OI2QU3S3.js';export{b as Rating,a as RatingSizes}from'../chunk-GBK2AJ2O.js';export{a as ScrollArea,b as ScrollBar}from'../chunk-5T72Q62I.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-3X2MEX7P.js';export{a as DataTable}from'../chunk-GJQRQC2R.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-UXA4LNOV.js';export{a as Popover,c as PopoverContent,b as PopoverTrigger}from'../chunk-GTVHYHF4.js';export{a as DatePicker}from'../chunk-P2SYYWF3.js';export{a as DatePicker_old}from'../chunk-2ACXDJSE.js';import'../chunk-GFVJRSZI.js';export{a as TextField_old}from'../chunk-WIITAOD5.js';import'../chunk-T2Q6B32U.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-NC6RO3YF.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-3YSQPXNK.js';export{c as Dropzone,a as DropzoneAcceptedFileTypes,b as DropzoneSizes}from'../chunk-K7YUM4ZN.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{c as ChipStatusComplementary,b as ChipStatusComplementarySizes,a as ChipStatusComplementaryVariants}from'../chunk-AUMOOT6L.js';export{a as ChipStatusTable}from'../chunk-Y73ZUBRE.js';export{c as ChoiceChips,a as ChoiceChipsOrientations,b as disableUnselected}from'../chunk-FKW2YKFZ.js';export{e as Chip,d as ChipDefaults,c as ChipSizes,b as ChipTones,a as ChipVariants}from'../chunk-SRCJQWFE.js';export{a as Calendar_old}from'../chunk-C35EAYXN.js';export{d as CardBasic,b as CardBasicBody,c as CardBasicFooter,a as CardBasicHeader}from'../chunk-YWEQO6XJ.js';export{d as Switch,a as SwitchSizes,b as SwitchTypes,c as SwitchVariants}from'../chunk-7JM2X4UD.js';export{d as CardExpandable,b as CardExpandableContent,c as CardExpandableFixedContent,a as CardExpandableHeader}from'../chunk-I4727M54.js';export{a as CardForm,c as CardFormBody,d as CardFormFooter,b as CardFormHeader}from'../chunk-7ATGBD25.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-FRHYY6ZQ.js';export{b as Checkbox,a as CheckboxCheckedStates}from'../chunk-5RKO7FZ7.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{a as BadgeStatusSkeleton}from'../chunk-PIMSGQMD.js';export{a as BadgeStatus}from'../chunk-UIZFLYFP.js';export{e as Calendar,a as CalendarProvider,d as LocaleProvider,c as parseDate,b as useCalendar}from'../chunk-YY4EZ4C5.js';export{a as AutocompleteSkeleton}from'../chunk-YC6ECYQ6.js';export{c as Autocomplete,b as AutocompleteSizeDefault,a as AutocompleteSizes}from'../chunk-ZB4KJVYD.js';export{a as EmptyState}from'../chunk-UB5XJQF2.js';export{b as Avatar,a as AvatarSizes}from'../chunk-GB2SAYAL.js';export{a as BadgeCategorySkeleton}from'../chunk-RQQJYDAY.js';export{d as BadgeCategory,a as BadgeCategoryColors,c as BadgeCategorySizes,b as BadgeCategoryVariants}from'../chunk-YFDUDY6Y.js';export{a as BadgeExpandableSkeleton}from'../chunk-DL3P7FK4.js';export{a as BadgeExpandable}from'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';export{b as AccordionForm,e as AccordionFormContent,c as AccordionFormItem,a as AccordionFormSizes,d as AccordionFormTrigger}from'../chunk-SCBJQNKR.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-BTNV7IKI.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-G4XY2ICQ.js';export{a as AlertMessage}from'../chunk-CLGNIZFZ.js';export{e as IconButton,d as IconButtonShapes,a as IconButtonSizes,c as IconButtonTones,b as IconButtonVariants}from'../chunk-PI7DECIN.js';export{a as AutocompleteMultipleSkeleton}from'../chunk-N6BWYHOE.js';export{a as Skeleton}from'../chunk-KTD2GEB6.js';export{a as AutocompleteMultiple}from'../chunk-5ROE6BPZ.js';export{d as ChipInput,b as ChipInputColors,a as ChipInputSizes,c as ChipInputVariants}from'../chunk-44FJVOTD.js';import'../chunk-FHABUQAH.js';import'../chunk-24L2VSWG.js';import'../chunk-DESMZNRN.js';import'../chunk-XZALFC6K.js';import'../chunk-VIMWKUML.js';import'../chunk-XKMQ2LPV.js';export{a as Tooltip}from'../chunk-CM6ALMTT.js';export{a as Divider,b as Separator}from'../chunk-AWRP67K4.js';import'../chunk-TPE6CVKA.js';import'../chunk-ICF6RQIW.js';export{e as Button,a as ButtonSizes,c as ButtonTones,b as ButtonVariants,d as buttonStyles}from'../chunk-5D64Y4FM.js';export{c as Spinner,a as SpinnerSizes,b as SpinnerTones}from'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';export{a as BadgeNumber}from'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as ListItemArrow}from'../chunk-
|
|
1
|
+
export{b as ListItemArrow}from'../chunk-4BOVNDZG.js';import'../chunk-5BU2PJB5.js';import'../chunk-SIA2GA6D.js';import'../chunk-NBVRYDFS.js';import'../chunk-SXK4QICM.js';import'../chunk-FFJQVKM6.js';import'../chunk-ABJHG7HB.js';import'../chunk-V7KUCX6U.js';import'../chunk-2C2AKMJ2.js';import'../chunk-GL7UB65W.js';import'../chunk-T3FB2JLM.js';import'../chunk-BFOGZRXP.js';import'../chunk-RNA2OUHJ.js';import'../chunk-VAPHEFRD.js';import'../chunk-ULG55JO5.js';import'../chunk-3AMZEC2R.js';import'../chunk-YFRMZVE4.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-OI2QU3S3.js';import'../chunk-GBK2AJ2O.js';import'../chunk-5T72Q62I.js';import'../chunk-3X2MEX7P.js';import'../chunk-GJQRQC2R.js';import'../chunk-UXA4LNOV.js';import'../chunk-GTVHYHF4.js';import'../chunk-P2SYYWF3.js';import'../chunk-2ACXDJSE.js';import'../chunk-GFVJRSZI.js';import'../chunk-WIITAOD5.js';import'../chunk-T2Q6B32U.js';import'../chunk-NC6RO3YF.js';import'../chunk-3YSQPXNK.js';import'../chunk-K7YUM4ZN.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FKW2YKFZ.js';import'../chunk-SRCJQWFE.js';import'../chunk-C35EAYXN.js';import'../chunk-YWEQO6XJ.js';import'../chunk-7JM2X4UD.js';import'../chunk-I4727M54.js';import'../chunk-7ATGBD25.js';import'../chunk-FRHYY6ZQ.js';import'../chunk-5RKO7FZ7.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-YY4EZ4C5.js';import'../chunk-YC6ECYQ6.js';import'../chunk-ZB4KJVYD.js';import'../chunk-UB5XJQF2.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';import'../chunk-SCBJQNKR.js';import'../chunk-BTNV7IKI.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-G4XY2ICQ.js';import'../chunk-CLGNIZFZ.js';import'../chunk-PI7DECIN.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-5ROE6BPZ.js';import'../chunk-44FJVOTD.js';import'../chunk-FHABUQAH.js';import'../chunk-24L2VSWG.js';import'../chunk-DESMZNRN.js';import'../chunk-XZALFC6K.js';import'../chunk-VIMWKUML.js';import'../chunk-XKMQ2LPV.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-TPE6CVKA.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{f as ListItemButton}from'../chunk-
|
|
1
|
+
export{f as ListItemButton}from'../chunk-4BOVNDZG.js';import'../chunk-5BU2PJB5.js';import'../chunk-SIA2GA6D.js';import'../chunk-NBVRYDFS.js';import'../chunk-SXK4QICM.js';import'../chunk-FFJQVKM6.js';import'../chunk-ABJHG7HB.js';import'../chunk-V7KUCX6U.js';import'../chunk-2C2AKMJ2.js';import'../chunk-GL7UB65W.js';import'../chunk-T3FB2JLM.js';import'../chunk-BFOGZRXP.js';import'../chunk-RNA2OUHJ.js';import'../chunk-VAPHEFRD.js';import'../chunk-ULG55JO5.js';import'../chunk-3AMZEC2R.js';import'../chunk-YFRMZVE4.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-OI2QU3S3.js';import'../chunk-GBK2AJ2O.js';import'../chunk-5T72Q62I.js';import'../chunk-3X2MEX7P.js';import'../chunk-GJQRQC2R.js';import'../chunk-UXA4LNOV.js';import'../chunk-GTVHYHF4.js';import'../chunk-P2SYYWF3.js';import'../chunk-2ACXDJSE.js';import'../chunk-GFVJRSZI.js';import'../chunk-WIITAOD5.js';import'../chunk-T2Q6B32U.js';import'../chunk-NC6RO3YF.js';import'../chunk-3YSQPXNK.js';import'../chunk-K7YUM4ZN.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FKW2YKFZ.js';import'../chunk-SRCJQWFE.js';import'../chunk-C35EAYXN.js';import'../chunk-YWEQO6XJ.js';import'../chunk-7JM2X4UD.js';import'../chunk-I4727M54.js';import'../chunk-7ATGBD25.js';import'../chunk-FRHYY6ZQ.js';import'../chunk-5RKO7FZ7.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-YY4EZ4C5.js';import'../chunk-YC6ECYQ6.js';import'../chunk-ZB4KJVYD.js';import'../chunk-UB5XJQF2.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';import'../chunk-SCBJQNKR.js';import'../chunk-BTNV7IKI.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-G4XY2ICQ.js';import'../chunk-CLGNIZFZ.js';import'../chunk-PI7DECIN.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-5ROE6BPZ.js';import'../chunk-44FJVOTD.js';import'../chunk-FHABUQAH.js';import'../chunk-24L2VSWG.js';import'../chunk-DESMZNRN.js';import'../chunk-XZALFC6K.js';import'../chunk-VIMWKUML.js';import'../chunk-XKMQ2LPV.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-TPE6CVKA.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as ListItemCheckboxLeft}from'../chunk-
|
|
1
|
+
export{g as ListItemCheckboxLeft}from'../chunk-4BOVNDZG.js';import'../chunk-5BU2PJB5.js';import'../chunk-SIA2GA6D.js';import'../chunk-NBVRYDFS.js';import'../chunk-SXK4QICM.js';import'../chunk-FFJQVKM6.js';import'../chunk-ABJHG7HB.js';import'../chunk-V7KUCX6U.js';import'../chunk-2C2AKMJ2.js';import'../chunk-GL7UB65W.js';import'../chunk-T3FB2JLM.js';import'../chunk-BFOGZRXP.js';import'../chunk-RNA2OUHJ.js';import'../chunk-VAPHEFRD.js';import'../chunk-ULG55JO5.js';import'../chunk-3AMZEC2R.js';import'../chunk-YFRMZVE4.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-OI2QU3S3.js';import'../chunk-GBK2AJ2O.js';import'../chunk-5T72Q62I.js';import'../chunk-3X2MEX7P.js';import'../chunk-GJQRQC2R.js';import'../chunk-UXA4LNOV.js';import'../chunk-GTVHYHF4.js';import'../chunk-P2SYYWF3.js';import'../chunk-2ACXDJSE.js';import'../chunk-GFVJRSZI.js';import'../chunk-WIITAOD5.js';import'../chunk-T2Q6B32U.js';import'../chunk-NC6RO3YF.js';import'../chunk-3YSQPXNK.js';import'../chunk-K7YUM4ZN.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FKW2YKFZ.js';import'../chunk-SRCJQWFE.js';import'../chunk-C35EAYXN.js';import'../chunk-YWEQO6XJ.js';import'../chunk-7JM2X4UD.js';import'../chunk-I4727M54.js';import'../chunk-7ATGBD25.js';import'../chunk-FRHYY6ZQ.js';import'../chunk-5RKO7FZ7.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-YY4EZ4C5.js';import'../chunk-YC6ECYQ6.js';import'../chunk-ZB4KJVYD.js';import'../chunk-UB5XJQF2.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';import'../chunk-SCBJQNKR.js';import'../chunk-BTNV7IKI.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-G4XY2ICQ.js';import'../chunk-CLGNIZFZ.js';import'../chunk-PI7DECIN.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-5ROE6BPZ.js';import'../chunk-44FJVOTD.js';import'../chunk-FHABUQAH.js';import'../chunk-24L2VSWG.js';import'../chunk-DESMZNRN.js';import'../chunk-XZALFC6K.js';import'../chunk-VIMWKUML.js';import'../chunk-XKMQ2LPV.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-TPE6CVKA.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as ListItemCheckbox}from'../chunk-
|
|
1
|
+
export{c as ListItemCheckbox}from'../chunk-4BOVNDZG.js';import'../chunk-5BU2PJB5.js';import'../chunk-SIA2GA6D.js';import'../chunk-NBVRYDFS.js';import'../chunk-SXK4QICM.js';import'../chunk-FFJQVKM6.js';import'../chunk-ABJHG7HB.js';import'../chunk-V7KUCX6U.js';import'../chunk-2C2AKMJ2.js';import'../chunk-GL7UB65W.js';import'../chunk-T3FB2JLM.js';import'../chunk-BFOGZRXP.js';import'../chunk-RNA2OUHJ.js';import'../chunk-VAPHEFRD.js';import'../chunk-ULG55JO5.js';import'../chunk-3AMZEC2R.js';import'../chunk-YFRMZVE4.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-OI2QU3S3.js';import'../chunk-GBK2AJ2O.js';import'../chunk-5T72Q62I.js';import'../chunk-3X2MEX7P.js';import'../chunk-GJQRQC2R.js';import'../chunk-UXA4LNOV.js';import'../chunk-GTVHYHF4.js';import'../chunk-P2SYYWF3.js';import'../chunk-2ACXDJSE.js';import'../chunk-GFVJRSZI.js';import'../chunk-WIITAOD5.js';import'../chunk-T2Q6B32U.js';import'../chunk-NC6RO3YF.js';import'../chunk-3YSQPXNK.js';import'../chunk-K7YUM4ZN.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FKW2YKFZ.js';import'../chunk-SRCJQWFE.js';import'../chunk-C35EAYXN.js';import'../chunk-YWEQO6XJ.js';import'../chunk-7JM2X4UD.js';import'../chunk-I4727M54.js';import'../chunk-7ATGBD25.js';import'../chunk-FRHYY6ZQ.js';import'../chunk-5RKO7FZ7.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-YY4EZ4C5.js';import'../chunk-YC6ECYQ6.js';import'../chunk-ZB4KJVYD.js';import'../chunk-UB5XJQF2.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';import'../chunk-SCBJQNKR.js';import'../chunk-BTNV7IKI.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-G4XY2ICQ.js';import'../chunk-CLGNIZFZ.js';import'../chunk-PI7DECIN.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-5ROE6BPZ.js';import'../chunk-44FJVOTD.js';import'../chunk-FHABUQAH.js';import'../chunk-24L2VSWG.js';import'../chunk-DESMZNRN.js';import'../chunk-XZALFC6K.js';import'../chunk-VIMWKUML.js';import'../chunk-XKMQ2LPV.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-TPE6CVKA.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{x as ListItem_old}from'../chunk-
|
|
1
|
+
export{x as ListItem_old}from'../chunk-4BOVNDZG.js';import'../chunk-5BU2PJB5.js';import'../chunk-SIA2GA6D.js';import'../chunk-NBVRYDFS.js';import'../chunk-SXK4QICM.js';import'../chunk-FFJQVKM6.js';import'../chunk-ABJHG7HB.js';import'../chunk-V7KUCX6U.js';import'../chunk-2C2AKMJ2.js';import'../chunk-GL7UB65W.js';import'../chunk-T3FB2JLM.js';import'../chunk-BFOGZRXP.js';import'../chunk-RNA2OUHJ.js';import'../chunk-VAPHEFRD.js';import'../chunk-ULG55JO5.js';import'../chunk-3AMZEC2R.js';import'../chunk-YFRMZVE4.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-OI2QU3S3.js';import'../chunk-GBK2AJ2O.js';import'../chunk-5T72Q62I.js';import'../chunk-3X2MEX7P.js';import'../chunk-GJQRQC2R.js';import'../chunk-UXA4LNOV.js';import'../chunk-GTVHYHF4.js';import'../chunk-P2SYYWF3.js';import'../chunk-2ACXDJSE.js';import'../chunk-GFVJRSZI.js';import'../chunk-WIITAOD5.js';import'../chunk-T2Q6B32U.js';import'../chunk-NC6RO3YF.js';import'../chunk-3YSQPXNK.js';import'../chunk-K7YUM4ZN.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FKW2YKFZ.js';import'../chunk-SRCJQWFE.js';import'../chunk-C35EAYXN.js';import'../chunk-YWEQO6XJ.js';import'../chunk-7JM2X4UD.js';import'../chunk-I4727M54.js';import'../chunk-7ATGBD25.js';import'../chunk-FRHYY6ZQ.js';import'../chunk-5RKO7FZ7.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-YY4EZ4C5.js';import'../chunk-YC6ECYQ6.js';import'../chunk-ZB4KJVYD.js';import'../chunk-UB5XJQF2.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';import'../chunk-SCBJQNKR.js';import'../chunk-BTNV7IKI.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-G4XY2ICQ.js';import'../chunk-CLGNIZFZ.js';import'../chunk-PI7DECIN.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-5ROE6BPZ.js';import'../chunk-44FJVOTD.js';import'../chunk-FHABUQAH.js';import'../chunk-24L2VSWG.js';import'../chunk-DESMZNRN.js';import'../chunk-XZALFC6K.js';import'../chunk-VIMWKUML.js';import'../chunk-XKMQ2LPV.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-TPE6CVKA.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -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, "
|
|
14
|
+
declare const SignaturePad: React.ForwardRefExoticComponent<Omit<SignaturePad$1.RootProps, "defaultValue" | "onChange" | "value" | "onDrawEnd"> & {
|
|
15
15
|
label?: string;
|
|
16
16
|
required?: boolean;
|
|
17
17
|
tooltip?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { HTMLAttributes } from 'react';
|
|
3
|
+
import { LucideIcon } from 'lucide-react';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Visual state of a step:
|
|
@@ -10,10 +11,86 @@ import { HTMLAttributes } from 'react';
|
|
|
10
11
|
* - "complete": completed step with filled primary indicator
|
|
11
12
|
*/
|
|
12
13
|
type StepItemState = "wait" | "active" | "success" | "current" | "complete";
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Indicator display mode for {@link StepItem}.
|
|
16
|
+
*
|
|
17
|
+
* - `"number"`: renders a numeric value via `content` (type `number`). Prefer this over deprecated `stepNumber`.
|
|
18
|
+
* - `"icon"`: renders a Lucide icon via `content`, except when `state` is `"success"` —
|
|
19
|
+
* that combination always uses `CheckIcon` and does not accept `content`.
|
|
20
|
+
*/
|
|
21
|
+
type StepItemVariant = "number" | "icon";
|
|
22
|
+
type StepItemLegacyProps = {
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Use `variant="number"` with `content` (type `number`) instead.
|
|
25
|
+
* @example Migration — before: `<StepItem state="active" stepNumber={2} />`
|
|
26
|
+
* After: `<StepItem state="active" variant="number" content={2} />`
|
|
27
|
+
*/
|
|
15
28
|
stepNumber: number;
|
|
16
|
-
|
|
17
|
-
|
|
29
|
+
variant?: never;
|
|
30
|
+
content?: never;
|
|
31
|
+
};
|
|
32
|
+
type StepItemNumberProps = {
|
|
33
|
+
variant: "number";
|
|
34
|
+
/** Step index or label rendered inside the indicator. */
|
|
35
|
+
content: number;
|
|
36
|
+
stepNumber?: never;
|
|
37
|
+
};
|
|
38
|
+
/** `variant="icon"` with `state="success"`. Always renders `CheckIcon`; `content` is not allowed. */
|
|
39
|
+
type StepItemIconSuccessProps = {
|
|
40
|
+
state: "success";
|
|
41
|
+
variant: "icon";
|
|
42
|
+
content?: never;
|
|
43
|
+
stepNumber?: never;
|
|
44
|
+
};
|
|
45
|
+
type StepItemIconProps = {
|
|
46
|
+
state: Exclude<StepItemState, "success">;
|
|
47
|
+
variant: "icon";
|
|
48
|
+
/** Lucide icon rendered inside the indicator. */
|
|
49
|
+
content: LucideIcon;
|
|
50
|
+
stepNumber?: never;
|
|
51
|
+
};
|
|
52
|
+
type StepItemProps = ((StepItemLegacyProps & {
|
|
53
|
+
state: StepItemState;
|
|
54
|
+
}) | (StepItemNumberProps & {
|
|
55
|
+
state: StepItemState;
|
|
56
|
+
}) | StepItemIconSuccessProps | StepItemIconProps) & Omit<HTMLAttributes<HTMLDivElement>, "children" | "content">;
|
|
57
|
+
/**
|
|
58
|
+
* Resolves the Lucide icon for `variant="icon"`.
|
|
59
|
+
* - `state="success"` → always `CheckIcon` (`content` is ignored).
|
|
60
|
+
* - any other state → `content` is required; throws if missing.
|
|
61
|
+
*/
|
|
62
|
+
declare const resolveStepItemIcon: (state: StepItemState, content?: LucideIcon) => LucideIcon;
|
|
63
|
+
/**
|
|
64
|
+
* Circular step indicator used in trackers and timelines.
|
|
65
|
+
*
|
|
66
|
+
* **Deprecated:** `stepNumber` — use `variant="number"` with `content` (type `number`) instead.
|
|
67
|
+
*
|
|
68
|
+
* @example Number indicator (preferred)
|
|
69
|
+
* ```tsx
|
|
70
|
+
* <StepItem state="active" variant="number" content={2} />
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @example Icon variant (non-success)
|
|
74
|
+
* ```tsx
|
|
75
|
+
* <StepItem state="active" variant="icon" content={InfoIcon} />
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* @example Icon variant with success — fixed CheckIcon, no content prop
|
|
79
|
+
* ```tsx
|
|
80
|
+
* <StepItem state="success" variant="icon" />
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @example Inside an iterator — branch when `state` is `"success"`
|
|
84
|
+
* ```tsx
|
|
85
|
+
* {steps.map((step) =>
|
|
86
|
+
* step.state === "success" ? (
|
|
87
|
+
* <StepItem key={step.id} state="success" variant="icon" />
|
|
88
|
+
* ) : (
|
|
89
|
+
* <StepItem key={step.id} state={step.state} variant="icon" content={step.icon} />
|
|
90
|
+
* ),
|
|
91
|
+
* )}
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
declare const StepItem: ({ state, variant, content, stepNumber, className, ...props }: StepItemProps) => react_jsx_runtime.JSX.Element;
|
|
18
95
|
|
|
19
|
-
export { StepItem, type StepItemState };
|
|
96
|
+
export { StepItem, type StepItemState, type StepItemVariant, resolveStepItemIcon };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{c as StepItem,b as resolveStepItemIcon}from'../chunk-V7KUCX6U.js';import'../chunk-TPE6CVKA.js';import'../chunk-ICF6RQIW.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -24,6 +24,6 @@ declare const TimePicker: React.ForwardRefExoticComponent<{
|
|
|
24
24
|
placeholder?: string;
|
|
25
25
|
value?: string | null;
|
|
26
26
|
defaultValue?: string | null;
|
|
27
|
-
} & Omit<Select.RootProps<string>, "
|
|
27
|
+
} & Omit<Select.RootProps<string>, "defaultValue" | "value" | "onValueChange" | "collection"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
28
|
|
|
29
29
|
export { TimePicker, type TimePickerProps };
|
|
@@ -4,19 +4,62 @@ import { LucideIcon } from 'lucide-react';
|
|
|
4
4
|
import { BadgeStatusProps } from './badge-status.js';
|
|
5
5
|
import { ButtonProps } from './button.js';
|
|
6
6
|
import { ButtonActiveOption, ButtonActiveProps } from './button-active.js';
|
|
7
|
-
import { StepItemState } from './step-item.js';
|
|
7
|
+
import { StepItemState, StepItemVariant } from './step-item.js';
|
|
8
8
|
import 'tailwind-variants';
|
|
9
9
|
import './badge-number.js';
|
|
10
10
|
import 'react/jsx-runtime';
|
|
11
11
|
import '@ark-ui/react/menu';
|
|
12
12
|
|
|
13
13
|
type TrackerItemState = StepItemState;
|
|
14
|
+
type TrackerItemVariant = StepItemVariant;
|
|
15
|
+
type TrackerItemResolvedIndicator = {
|
|
16
|
+
variant: "number";
|
|
17
|
+
content: number;
|
|
18
|
+
} | {
|
|
19
|
+
variant: "icon";
|
|
20
|
+
content: LucideIcon;
|
|
21
|
+
};
|
|
22
|
+
type TrackerItemLegacyIndicatorProps = {
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Use `variant="number"` with `content` (type `number`) instead.
|
|
25
|
+
* @example Migration — before: `<TrackerItem state="active" stepNumber={2}>…</TrackerItem>`
|
|
26
|
+
* After: `<TrackerItem state="active" variant="number" content={2}>…</TrackerItem>`
|
|
27
|
+
*/
|
|
28
|
+
stepNumber: number;
|
|
29
|
+
variant?: never;
|
|
30
|
+
content?: never;
|
|
31
|
+
};
|
|
32
|
+
type TrackerItemNumberIndicatorProps = {
|
|
33
|
+
variant: "number";
|
|
34
|
+
/** Step index or label rendered inside the indicator. */
|
|
35
|
+
content: number;
|
|
36
|
+
stepNumber?: never;
|
|
37
|
+
};
|
|
38
|
+
/** `variant="icon"` with `state="success"`. Always renders `CheckIcon`; `content` is not allowed. */
|
|
39
|
+
type TrackerItemIconSuccessIndicatorProps = {
|
|
40
|
+
state: "success";
|
|
41
|
+
variant: "icon";
|
|
42
|
+
content?: never;
|
|
43
|
+
stepNumber?: never;
|
|
44
|
+
};
|
|
45
|
+
type TrackerItemIconIndicatorProps = {
|
|
46
|
+
state: Exclude<TrackerItemState, "success">;
|
|
47
|
+
variant: "icon";
|
|
48
|
+
/** Lucide icon rendered inside the indicator. */
|
|
49
|
+
content: LucideIcon;
|
|
50
|
+
stepNumber?: never;
|
|
51
|
+
};
|
|
52
|
+
type TrackerItemIndicatorProps = (TrackerItemLegacyIndicatorProps & {
|
|
53
|
+
state: TrackerItemState;
|
|
54
|
+
}) | (TrackerItemNumberIndicatorProps & {
|
|
55
|
+
state: TrackerItemState;
|
|
56
|
+
}) | TrackerItemIconSuccessIndicatorProps | TrackerItemIconIndicatorProps;
|
|
14
57
|
type TrackerItemHeaderMenuProps = {
|
|
15
58
|
options: readonly [ButtonActiveOption, ...ButtonActiveOption[]];
|
|
16
59
|
};
|
|
17
60
|
type TrackerItemContextValue = {
|
|
18
61
|
state: TrackerItemState;
|
|
19
|
-
|
|
62
|
+
indicator: TrackerItemResolvedIndicator;
|
|
20
63
|
expandable: boolean;
|
|
21
64
|
isClickable: boolean;
|
|
22
65
|
headerMenu?: TrackerItemHeaderMenuProps;
|
|
@@ -53,12 +96,47 @@ type TrackerItemFooterProps = {
|
|
|
53
96
|
declare const TrackerItemFooter: React$1.ForwardRefExoticComponent<{
|
|
54
97
|
buttons: TrackerItemFooterButton[];
|
|
55
98
|
} & Omit<HTMLAttributes<HTMLDivElement>, "children"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
56
|
-
type
|
|
57
|
-
state: TrackerItemState;
|
|
58
|
-
stepNumber: number;
|
|
99
|
+
type TrackerItemSharedProps = {
|
|
59
100
|
children?: React.ReactNode;
|
|
60
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "children">;
|
|
61
|
-
|
|
101
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "children" | "content">;
|
|
102
|
+
/**
|
|
103
|
+
* Props for the root `TrackerItem` compound component.
|
|
104
|
+
*
|
|
105
|
+
* Indicator props:
|
|
106
|
+
* - `variant="number"` — pass `content` as a number (preferred).
|
|
107
|
+
* - `stepNumber` — **deprecated**; use `variant="number"` with `content` instead. Still supported
|
|
108
|
+
* for backward compatibility.
|
|
109
|
+
* - `variant="icon"` — pass `content` as a Lucide icon for all states **except** `"success"`.
|
|
110
|
+
* - `state="success"` + `variant="icon"` — always renders `CheckIcon`; `content` must be omitted
|
|
111
|
+
* and cannot be customized.
|
|
112
|
+
*
|
|
113
|
+
* @example Number indicator (preferred)
|
|
114
|
+
* ```tsx
|
|
115
|
+
* <TrackerItem state="active" variant="number" content={2}>
|
|
116
|
+
* <TrackerItemHeader label="Step name" />
|
|
117
|
+
* </TrackerItem>
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* @example Inside an iterator — branch when `state` is `"success"`
|
|
121
|
+
* ```tsx
|
|
122
|
+
* {steps.map((step) =>
|
|
123
|
+
* step.state === "success" ? (
|
|
124
|
+
* <TrackerItem key={step.id} state="success" variant="icon">
|
|
125
|
+
* <TrackerItemHeader label={step.label} />
|
|
126
|
+
* </TrackerItem>
|
|
127
|
+
* ) : (
|
|
128
|
+
* <TrackerItem key={step.id} state={step.state} variant="icon" content={step.icon}>
|
|
129
|
+
* <TrackerItemHeader label={step.label} />
|
|
130
|
+
* </TrackerItem>
|
|
131
|
+
* ),
|
|
132
|
+
* )}
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
135
|
+
type TrackerItemProps = TrackerItemSharedProps & ((TrackerItemLegacyIndicatorProps & {
|
|
136
|
+
state: TrackerItemState;
|
|
137
|
+
}) | (TrackerItemNumberIndicatorProps & {
|
|
138
|
+
state: TrackerItemState;
|
|
139
|
+
}) | TrackerItemIconSuccessIndicatorProps | TrackerItemIconIndicatorProps) & ({
|
|
62
140
|
expandable: true;
|
|
63
141
|
defaultExpanded?: boolean;
|
|
64
142
|
onExpandedChange?: (isExpanded: boolean) => void;
|
|
@@ -80,6 +158,54 @@ type TrackerItemProps = TrackerItemBaseProps & ({
|
|
|
80
158
|
defaultExpanded?: never;
|
|
81
159
|
onExpandedChange?: never;
|
|
82
160
|
});
|
|
161
|
+
/**
|
|
162
|
+
* Compound component for individual step cards in a tracker or timeline.
|
|
163
|
+
*
|
|
164
|
+
* Composed of `TrackerItem` (root), `TrackerItemHeader`, `TrackerItemExpandableContent`,
|
|
165
|
+
* and `TrackerItemFooter`.
|
|
166
|
+
*
|
|
167
|
+
* **Deprecated:** `stepNumber` — use `variant="number"` with `content` (type `number`) instead.
|
|
168
|
+
*
|
|
169
|
+
* **Icon indicator + success state:** when `variant` is `"icon"` and `state` is `"success"`,
|
|
170
|
+
* the step indicator always shows `CheckIcon`. Do not pass `content` — a custom icon cannot
|
|
171
|
+
* be provided for this combination.
|
|
172
|
+
*
|
|
173
|
+
* @example Number indicator (preferred)
|
|
174
|
+
* ```tsx
|
|
175
|
+
* <TrackerItem state="active" variant="number" content={2}>
|
|
176
|
+
* <TrackerItemHeader label="Step name" />
|
|
177
|
+
* </TrackerItem>
|
|
178
|
+
* ```
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```tsx
|
|
182
|
+
* <TrackerItem state="active" variant="icon" content={InfoIcon}>
|
|
183
|
+
* <TrackerItemHeader label="Step name" />
|
|
184
|
+
* </TrackerItem>
|
|
185
|
+
* ```
|
|
186
|
+
*
|
|
187
|
+
* @example Success with icon variant — fixed CheckIcon
|
|
188
|
+
* ```tsx
|
|
189
|
+
* <TrackerItem state="success" variant="icon">
|
|
190
|
+
* <TrackerItemHeader label="Completed step" />
|
|
191
|
+
* </TrackerItem>
|
|
192
|
+
* ```
|
|
193
|
+
*
|
|
194
|
+
* @example Inside an iterator — branch when `state` is `"success"`
|
|
195
|
+
* ```tsx
|
|
196
|
+
* {steps.map((step) =>
|
|
197
|
+
* step.state === "success" ? (
|
|
198
|
+
* <TrackerItem key={step.id} state="success" variant="icon">
|
|
199
|
+
* <TrackerItemHeader label={step.label} />
|
|
200
|
+
* </TrackerItem>
|
|
201
|
+
* ) : (
|
|
202
|
+
* <TrackerItem key={step.id} state={step.state} variant="icon" content={step.icon}>
|
|
203
|
+
* <TrackerItemHeader label={step.label} />
|
|
204
|
+
* </TrackerItem>
|
|
205
|
+
* ),
|
|
206
|
+
* )}
|
|
207
|
+
* ```
|
|
208
|
+
*/
|
|
83
209
|
declare const TrackerItem: React$1.ForwardRefExoticComponent<TrackerItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
84
210
|
|
|
85
|
-
export { TrackerItem, TrackerItemExpandableContent, TrackerItemFooter, type TrackerItemFooterButton, type TrackerItemFooterProps, TrackerItemHeader, type TrackerItemHeaderDetailsItemProps, type TrackerItemHeaderMenuProps, type TrackerItemHeaderProps, type TrackerItemProps, type TrackerItemState, useTrackerItem };
|
|
211
|
+
export { TrackerItem, TrackerItemExpandableContent, TrackerItemFooter, type TrackerItemFooterButton, type TrackerItemFooterProps, TrackerItemHeader, type TrackerItemHeaderDetailsItemProps, type TrackerItemHeaderMenuProps, type TrackerItemHeaderProps, type TrackerItemIndicatorProps, type TrackerItemProps, type TrackerItemState, type TrackerItemVariant, useTrackerItem };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{r as TrackerItem,p as TrackerItemExpandableContent,q as TrackerItemFooter,o as TrackerItemHeader,n as useTrackerItem}from'../chunk-
|
|
1
|
+
export{r as TrackerItem,p as TrackerItemExpandableContent,q as TrackerItemFooter,o as TrackerItemHeader,n as useTrackerItem}from'../chunk-4BOVNDZG.js';import'../chunk-5BU2PJB5.js';import'../chunk-SIA2GA6D.js';import'../chunk-NBVRYDFS.js';import'../chunk-SXK4QICM.js';import'../chunk-FFJQVKM6.js';import'../chunk-ABJHG7HB.js';import'../chunk-V7KUCX6U.js';import'../chunk-2C2AKMJ2.js';import'../chunk-GL7UB65W.js';import'../chunk-T3FB2JLM.js';import'../chunk-BFOGZRXP.js';import'../chunk-RNA2OUHJ.js';import'../chunk-VAPHEFRD.js';import'../chunk-ULG55JO5.js';import'../chunk-3AMZEC2R.js';import'../chunk-YFRMZVE4.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-OI2QU3S3.js';import'../chunk-GBK2AJ2O.js';import'../chunk-5T72Q62I.js';import'../chunk-3X2MEX7P.js';import'../chunk-GJQRQC2R.js';import'../chunk-UXA4LNOV.js';import'../chunk-GTVHYHF4.js';import'../chunk-P2SYYWF3.js';import'../chunk-2ACXDJSE.js';import'../chunk-GFVJRSZI.js';import'../chunk-WIITAOD5.js';import'../chunk-T2Q6B32U.js';import'../chunk-NC6RO3YF.js';import'../chunk-3YSQPXNK.js';import'../chunk-K7YUM4ZN.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-FKW2YKFZ.js';import'../chunk-SRCJQWFE.js';import'../chunk-C35EAYXN.js';import'../chunk-YWEQO6XJ.js';import'../chunk-7JM2X4UD.js';import'../chunk-I4727M54.js';import'../chunk-7ATGBD25.js';import'../chunk-FRHYY6ZQ.js';import'../chunk-5RKO7FZ7.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-YY4EZ4C5.js';import'../chunk-YC6ECYQ6.js';import'../chunk-ZB4KJVYD.js';import'../chunk-UB5XJQF2.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';import'../chunk-SCBJQNKR.js';import'../chunk-BTNV7IKI.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-G4XY2ICQ.js';import'../chunk-CLGNIZFZ.js';import'../chunk-PI7DECIN.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-5ROE6BPZ.js';import'../chunk-44FJVOTD.js';import'../chunk-FHABUQAH.js';import'../chunk-24L2VSWG.js';import'../chunk-DESMZNRN.js';import'../chunk-XZALFC6K.js';import'../chunk-VIMWKUML.js';import'../chunk-XKMQ2LPV.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-TPE6CVKA.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sodtrack-web-ui",
|
|
3
|
-
"version": "0.109.
|
|
3
|
+
"version": "0.109.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "UI components for Sodtrack Web",
|
|
6
6
|
"exports": {
|
|
@@ -33,6 +33,20 @@
|
|
|
33
33
|
"files": [
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
38
|
+
"prepare": "husky",
|
|
39
|
+
"check:trust-policy": "pnpm install --frozen-lockfile --config.trustPolicy=no-downgrade",
|
|
40
|
+
"check": "pnpm run format && pnpm run lint:strict",
|
|
41
|
+
"build": "tsup --publicDir",
|
|
42
|
+
"storybook": "storybook dev -p 6006",
|
|
43
|
+
"build-storybook": "storybook build",
|
|
44
|
+
"format": "prettier --check .",
|
|
45
|
+
"format:fix": "prettier --write .",
|
|
46
|
+
"lint": "oxlint",
|
|
47
|
+
"lint:fix": "oxlint --fix",
|
|
48
|
+
"lint:strict": "oxlint --deny-warnings"
|
|
49
|
+
},
|
|
36
50
|
"author": "",
|
|
37
51
|
"license": "ISC",
|
|
38
52
|
"engines": {
|
|
@@ -92,9 +106,9 @@
|
|
|
92
106
|
"tsup": "8.5.1",
|
|
93
107
|
"typescript": "5.8.3",
|
|
94
108
|
"vite": "7.3.1",
|
|
95
|
-
"vite-plugin-svgr": "4.5.0"
|
|
96
|
-
"node": "runtime:22.22.1"
|
|
109
|
+
"vite-plugin-svgr": "4.5.0"
|
|
97
110
|
},
|
|
111
|
+
"packageManager": "pnpm@10.32.1",
|
|
98
112
|
"devEngines": {
|
|
99
113
|
"runtime": {
|
|
100
114
|
"name": "node",
|
|
@@ -111,18 +125,5 @@
|
|
|
111
125
|
"*.{json,md,css,yml,yaml}": [
|
|
112
126
|
"prettier --write"
|
|
113
127
|
]
|
|
114
|
-
},
|
|
115
|
-
"scripts": {
|
|
116
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
117
|
-
"check:trust-policy": "pnpm install --frozen-lockfile --config.trustPolicy=no-downgrade",
|
|
118
|
-
"check": "pnpm run format && pnpm run lint:strict",
|
|
119
|
-
"build": "tsup --publicDir",
|
|
120
|
-
"storybook": "storybook dev -p 6006",
|
|
121
|
-
"build-storybook": "storybook build",
|
|
122
|
-
"format": "prettier --check .",
|
|
123
|
-
"format:fix": "prettier --write .",
|
|
124
|
-
"lint": "oxlint",
|
|
125
|
-
"lint:fix": "oxlint --fix",
|
|
126
|
-
"lint:strict": "oxlint --deny-warnings"
|
|
127
128
|
}
|
|
128
|
-
}
|
|
129
|
+
}
|
package/dist/chunk-RTFCQMSB.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$b}from'./chunk-ZB6RYLYL.js';import {b as b$2}from'./chunk-T3FB2JLM.js';import {c as c$2,j as j$1}from'./chunk-3X2MEX7P.js';import {a as a$9,b as b$3,c as c$4}from'./chunk-GTVHYHF4.js';import {a as a$d}from'./chunk-GFVJRSZI.js';import {a as a$4}from'./chunk-WIITAOD5.js';import {b}from'./chunk-5RKO7FZ7.js';import {c as c$5}from'./chunk-JYNJHAGL.js';import {a as a$c}from'./chunk-UIZFLYFP.js';import {a as a$a}from'./chunk-UB5XJQF2.js';import {a as a$6,b as b$1,c as c$3,d as d$3}from'./chunk-U4NJK7JM.js';import {d as d$5}from'./chunk-MP4CHZ2K.js';import {a as a$3}from'./chunk-R6NIURLZ.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {d as d$2}from'./chunk-44FJVOTD.js';import {a}from'./chunk-FHABUQAH.js';import {a as a$5}from'./chunk-DESMZNRN.js';import {d,c as c$1}from'./chunk-XZALFC6K.js';import {a as a$8}from'./chunk-VIMWKUML.js';import {a as a$7}from'./chunk-XKMQ2LPV.js';import {a as a$1}from'./chunk-AWRP67K4.js';import {c,d as d$4,p,j,I,s,t,h,g}from'./chunk-TPE6CVKA.js';import {e,d as d$1}from'./chunk-5D64Y4FM.js';import {c as c$6}from'./chunk-C7TLKKPT.js';import {a as a$e}from'./chunk-P6B33GL6.js';import {a as a$2}from'./chunk-OBZIYJO7.js';import*as _ from'react';import ___default,{createContext,useMemo,useCallback,forwardRef,useRef,useContext,useEffect,useId,useState}from'react';import*as oo 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 Zn from'react-phone-number-input/flags';import {getDefaultOptions}from'date-fns';import rr from'react-phone-number-input/locale/en.json';import ir from'react-phone-number-input/locale/es.json';import lr 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 as cn$1}from'tailwind-variants';import Bl,{parsePhoneNumber,getCountryCallingCode}from'react-phone-number-input';import {getExampleNumber}from'libphonenumber-js/mobile';import Rl from'libphonenumber-js/mobile/examples';var fn=___default.memo(({handleSelect:e$1,NoResultsIcon:o,noResultsLabel:t,noResultsDescription:n,noResultsDescriptionLines:r,noResultsAsColumn:i,noResultsButtonOnClick:l,optionDescriptionLines:s,noResultsButtonLabel:p,filteredOptions:m,inputRect:a$3,inputRef:C,popoverPosition:b,optionsListRef:d,selectedOption:g,options:x,setFilteredOptions:v})=>jsx(oo.Root,{asChild:true,children:jsxs("div",{ref:d,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:a$3?{width:`${a$3.width}px`,left:a$3.left,top:b==="bottom"?`${a$3.bottom}px`:void 0,bottom:b==="top"?`${window.innerHeight-a$3.top}px`:void 0}:void 0,children:[m.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:t,description:n,Icon:o,iconAsColumn:i,descriptionLines:r}),l&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{d.current.style.display="none",C.current.value="",v(x),l();},children:p})]})]}),m.map(I=>jsx(ce,{title:I.label,disabled:I.disabled,description:I.description,descriptionLines:s,onClick:()=>e$1(I),className:a$2(g?.value===I.value&&"bg-primary-200")},I.key??I.value))]})})),no=fn;var gn=336,is=({options:e,defaultSelectedOption:o,onSelect:t,onClick:n,onInputChange:r,error:i,helperText:l,label:s,placeholder:p,value:m,size:a="md",optionDescriptionLines:C=1,noResultsLabel:b,noResultsIcon:d,noResultsDescription:g,noResultsDescriptionLines:x,noResultsAsColumn:v,noResultsButtonOnClick:I,noResultsButtonLabel:M,className:y,disabled:R})=>{let[h,T]=useState(o??null),E=useRef(null),L=useRef(null),[O,k]=useState(),[V,S]=useState([]),[c,u]=useState("bottom"),[P,D]=useState(),H=gn,G=useCallback(F=>{E.current.style.display="none",L.current.value=F.label,T(F),t?.(F);},[t]),z=useCallback(()=>{if(!L?.current)return;let F=L.current.getBoundingClientRect();k(F);let X=P?P.height:H,Y=window.innerHeight-F.bottom>X,Fe=F.top>X;u(Y?"bottom":Fe?"top":"bottom");},[P?.height]),le=useCallback(()=>{let F=e.filter(X=>X.label.toLowerCase().includes(L?.current?.value.toLowerCase()??""));if(S(F),E?.current){let X=E.current.getBoundingClientRect();D(X);}},[e]);return useEffect(()=>{S(e);},[e]),useEffect(()=>{if(!m){T(null),L.current&&(L.current.value="");return}(!L.current?.value||h?.value!==m.value)&&(T(m),L.current.value=m.label);},[m]),a$d(E,()=>{E.current.style.display="none",h&&L.current&&(L.current.value=h.label);}),useEffect(()=>{if(L?.current)return z(),L.current.addEventListener("mousedown",z),L.current.addEventListener("input",le),window.addEventListener("scroll",z,true),window.addEventListener("resize",z),()=>{L.current?.removeEventListener("mousedown",z),L.current?.removeEventListener("input",le),window.removeEventListener("scroll",z,true),window.removeEventListener("resize",z);}},[z,le]),jsxs("div",{className:a$2("relative",y),children:[jsx(a$4,{ref:L,autoComplete:"off",list:"",selectMode:true,onChange:F=>{F.target.value||(T(null),t?.(null)),r?.(F);},onClean:()=>{T(null),S(e),t?.(null);},onClick:F=>{E.current.style.display="flex",n?.(F);},onBlur:()=>{h&&L.current&&(L.current.value=h.label);},label:s,helperText:l,placeholder:p,size:a,error:i,disabled:R}),jsx(no,{handleSelect:G,noResultsLabel:b,NoResultsIcon:d,optionDescriptionLines:C,noResultsAsColumn:v,noResultsButtonLabel:M,noResultsButtonOnClick:I,noResultsDescription:g,noResultsDescriptionLines:x,filteredOptions:V,inputRect:O,inputRef:L,popoverPosition:c,optionsListRef:E,selectedOption:h,options:e,setFilteredOptions:S})]})};var Cn=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,disabled:i=false,className:l,...s})=>jsxs("div",{className:a$2("flex w-full flex-col gap-1",l),...s,children:[jsx("p",{className:a$2("text-sm leading-[130%] break-all",!!n&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:o}),n&&jsx("p",{className:a$2("text-xs leading-[130%]",i?"text-neutral-400":"text-neutral-700"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:n})]}),pe=Cn;var ce=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:i,endIcon:l,hasDivider:s=false,disabled:p=false,isSelected:m=false,className:a,...C})=>jsxs(ee,{hasDescription:!!n,disabled:p,hasDivider:s,className:a,isSelected:m,...C,children:[i&&___default.cloneElement(i,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(pe,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:p}),l&&___default.cloneElement(l,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});var co=({children:e,title:o,titleLines:t=1,description:n="",descriptionLines:r,startIcon:i,hasDivider:l=false,disabled:s=false,checked:p,onCheckedChange:m,className:a,...C})=>jsxs(ee,{hasDescription:!!n,disabled:s,hasDivider:l,...C,className:a$2("pr-6",a),children:[i&&___default.cloneElement(i,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(pe,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:s}),jsx(b,{checked:p,onCheckedChange:m,className:"ml-4 self-center",disabled:s})]});var ne=336,uo=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:ne,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),te=()=>{let e=useContext(uo);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},mo=({children:e})=>{let o=useRef(null),t=useRef(null),n=useId(),[r,i]=useState(),[l,s]=useState(true),[p,m]=useState([]),[a,C]=useState(-1),[b,d]=useState("bottom"),[g,x]=useState(),[v,I]=useState(ne);return jsx(uo.Provider,{value:{optionsListRef:o,inputRef:t,autocompleteId:n,inputRect:r,showChips:l,filteredOptions:p,currentFocus:a,popoverPosition:b,setFilteredOptions:m,setCurrentFocus:C,setShowChips:s,setPopoverPosition:d,setInputRect:i,optionsListHeight:v,optionsListRect:g,setOptionsListRect:x,setOptionsListHeight:I},children:e})};var An=({option:e,onMountWidth:o})=>{let t=useRef(null);return useEffect(()=>{t.current&&o?.(t.current.clientWidth);},[]),jsx(d$2,{variant:"fill",color:"neutral",ref:t,className:"shrink-0",size:"md",hasCloseIcon:false,children:e.label})},fo=An;var Sn=150,Hn=___default.memo(({selectedOptions:e,error:o,onCleanSelectedOptions:t,disabled:n,size:r})=>{let{autocompleteId:i,inputRect:l,inputRef:s,optionsListRef:p}=te(),m=___default.useRef(null),[a,C]=___default.useState(new Map),b=useMemo(()=>{if(!l?.width)return [];let g=0,x=l.width-Sn,v=0;for(let I=0;I<e.length&&(v+=a.get(I)??0,!(v>x));I++)g++;return e.slice(0,g)},[l?.width,e,a]),d=useCallback(()=>{n||(s?.current?.focus(),p.current.style.display="flex");},[n]);return jsxs("div",{onClick:d,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pr-12 pl-3",n&&"cursor-not-allowed"),style:{maxWidth: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((g,x)=>jsx(fo,{option:g,onMountWidth:v=>C(I=>new Map(I).set(x,v))},`chip-input-${i}-${g.value}`))}),e.length>b.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!o&&jsx(a$3,{content:String(e.length),size:r}),o&&e.length>0&&jsx(c,{className:"text-error-700 h-6 w-6",onClick:g=>{g.stopPropagation(),t();}})]})}),bo=Hn;var Bn=___default.memo(({option:e,index:o,onPressOption:t,isSelected:n,optionDescriptionLines:r})=>{let{currentFocus:i,inputRef:l}=te();return jsx(co,{title:e.label,checked:n,disabled:e.disabled,className:i===o?"bg-primary-200":void 0,onMouseDown:s=>{e.disabled||(l?.current?.value&&s.preventDefault(),t?.(e,s));},description:e.description,descriptionLines:r})}),mt=Bn;var $n=___default.memo(({selectedOptions:e$1,handleSelect:o,NoResultsIcon:t,noResultsLabel:n,noResultsDescription:r,noResultsDescriptionLines:i,noResultsAsColumn:l,noResultsButtonOnClick:s,optionDescriptionLines:p,noResultsButtonLabel:m})=>{let{popoverPosition:a$2,optionsListRef:C,filteredOptions:b,inputRect:d,autocompleteId:g,inputRef:x,optionsListHeight:v}=te(),I=useCallback(y=>e$1.some(R=>R.value===y.value),[e$1]),M=useMemo(()=>e$1.filter(y=>y.label.toLowerCase().includes(x?.current?.value.toLowerCase()??"")),[e$1,x?.current?.value]);return jsx(oo.Root,{asChild:true,children:jsxs("div",{ref:C,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:d?{width:`${d.width}px`,left:d.left,top:a$2==="bottom"?`${d.bottom}px`:void 0,bottom:a$2==="top"?`${window.innerHeight-d.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:t,iconAsColumn:l,descriptionLines:i}),s&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{C.current.style.display="none",x.current.value="",s();},children:m})]})]}),M.map((y,R)=>jsx(mt,{option:y,index:R,onPressOption:h=>o(h),isSelected:I(y),optionDescriptionLines:p},`autocomplete-option-${g}-${y.key??y.value}`)),b.map((y,R)=>!e$1.some(h=>h.value===y.value)&&jsx(mt,{option:y,index:R,onPressOption:h=>o(h),isSelected:I(y),optionDescriptionLines:p},`autocomplete-option-${g}-${y.key??y.value}`))]})})}),ho=$n;var Gn=___default.memo(({selectedOptions:e,onSelect:o,error:t,helperText:n,label:r,placeholder:i,options:l,onInputChange:s,size:p,disabled:m})=>{let{setCurrentFocus:a,setFilteredOptions:C,optionsListRef:b,inputRef:d}=te();return jsx(a$4,{ref:d,autoComplete:"off",list:"",disabled:m,selectMode:true,onChange:g=>{a(-1),s?.(g.target.value);},onClean:()=>{a(-1),C(l),o?.(null,e);},onClick:()=>{m||(b.current.style.display="flex");},error:t,helperText:n,label:r,placeholder:i,fixedTopLabel:e.length>0,size:p})}),Co=Gn;var xo=({options:e,defaultSelectedOptions:o,onSelect:t,error:n,helperText:r,label:i,placeholder:l,noResultsLabel:s,noResultsIcon:p,noResultsDescription:m,noResultsDescriptionLines:a,noResultsAsColumn:C,noResultsButtonOnClick:b,noResultsButtonLabel:d,className:g,onInputChange:x,value:v,loading:I,size:M="md",optionDescriptionLines:y=1,disabled:R})=>{let{inputRef:h,optionsListRef:T,setFilteredOptions:E,setShowChips:L,setInputRect:O,setPopoverPosition:k,setCurrentFocus:V,showChips:S,setOptionsListRect:c,optionsListRect:u,setOptionsListHeight:P}=te(),D=useRef(false),[H,G]=useState(o??[]),z=useCallback(K=>{G(Z=>{let se,Pe=Z.findIndex(mn=>mn.value===K.value);return Pe===-1?(se=Z.concat(K),t?.(K,se),se):(se=Z.toSpliced(Pe,1),t?.(K,se),se)});},[t]),le=useCallback(()=>{G([]),E(e),t?.(null,[]);},[]),F=useCallback(()=>{L(false);},[]),X=useCallback(()=>{L(true);},[]),Y=useCallback(()=>{if(!h?.current)return;let K=h.current.getBoundingClientRect();O(K);let Z=u?u.height>ne?ne:u.height:ne,se=window.innerHeight-K.bottom>Z,Pe=K.top>Z;k(se?"bottom":Pe?"top":"bottom"),P(Pe?ne:window.innerHeight-K.bottom>ne?ne:window.innerHeight-K.bottom);},[u?.height]),Fe=useCallback(()=>{let K=e.filter(Z=>Z.label.toLowerCase().includes(h?.current?.value.toLowerCase()??""));if(E(K),T?.current){let Z=T.current.getBoundingClientRect();c(Z);}},[e,T?.current]);return useEffect(()=>{E(e);},[e]),a$d(T,()=>{T.current.style.display="none",V(-1);}),useEffect(()=>{if(h?.current)return Y(),h.current.addEventListener("mousedown",Y),h.current.addEventListener("input",Fe),h.current.addEventListener("focusin",F),h.current.addEventListener("focusout",X),window.addEventListener("scroll",Y,true),window.addEventListener("resize",Y),()=>{h.current?.removeEventListener("mousedown",Y),h.current?.removeEventListener("input",Y),h.current?.removeEventListener("focusout",X),h.current?.removeEventListener("focusin",F),window.removeEventListener("scroll",Y,true),window.removeEventListener("resize",Y);}},[Y,X,F,Fe]),useEffect(()=>{v&&(G(v),L(true));},[v]),useEffect(()=>{I||o&&o.length&&!D.current&&(G(o),D.current=true,L(true));},[o,I]),jsxs("div",{className:a$2("relative",g),children:[jsx(Co,{selectedOptions:H,onSelect:t,error:n,helperText:r,label:i,placeholder:l,handleSelect:z,options:e,onInputChange:x,size:M,disabled:R}),S&&jsx(bo,{selectedOptions:H,disabled:R,error:n,onCleanSelectedOptions:le,size:M}),jsx(ho,{handleSelect:z,selectedOptions:H,noResultsLabel:s,NoResultsIcon:p,optionDescriptionLines:y,noResultsAsColumn:C,noResultsButtonLabel:d,noResultsButtonOnClick:b,noResultsDescription:m,noResultsDescriptionLines:a})]})};var Ma=e=>jsx(mo,{children:jsx(xo,{...e})});var tt=({children:e,className:o,disabled:t,error:n,helperText:r,htmlFor:i,label:l,readOnly:s,required:p,tooltip:m})=>{let{root:a}=c$1({error:n,disabled:t,readOnly:s});return jsxs("div",{className:a({className:o}),"data-error":n||void 0,"data-disabled":t||void 0,"data-readonly":s||void 0,children:[l&&jsx(a$7,{as:"label",htmlFor:i,label:l,required:p,tooltip:m}),e,jsx(a$8,{children:r})]})};var bt=({className:e,country:o,countryName:t})=>{let n=Zn[o];return jsx("span",{className:a$2("flex size-4.5 shrink-0 items-center justify-center overflow-hidden rounded-full border border-white [&_svg:not([class*='size-'])]:h-full [&_svg:not([class*='size-'])]:w-auto [&_svg:not([class*='size-'])]:max-w-none [&_svg:not([class*='size-'])]:shrink-0",e),children:n&&jsx(n,{title:t})})};var or=({code:e,codeClassName:o,label:t})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx(bt,{country:e,countryName:t}),jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",o),children:e})]}),Io=({className:e,disabled:o,error:t,onChange:n,onOpenChange:r,options:i,readOnly:l,translations:s,value:p$1})=>{let m=_.useRef(null),[a,C]=_.useState(""),[b,d]=_.useState(false),{wrapper:g,input:x,clearIcon:v,searchIcon:I}=b$2({size:"md"}),{contains:M}=useFilter({sensitivity:"base"}),y=_.useMemo(()=>i.map(c=>({...c,key:c.code})),[i]),R=_.useMemo(()=>y.find(c=>c.key===p$1),[y,p$1]),{collection:h,filter:T,set:E}=useListCollection({initialItems:y,itemToString:c=>`${c.label} ${c.code}`,itemToValue:c=>c.key,filter:(c,u,P)=>M(c,u)||M(P.code,u.toUpperCase())});_.useEffect(()=>{E(y);},[y,E]);let L=_.useCallback(c=>{d(c),r?.(c);},[r]),O=_.useCallback(({inputValue:c})=>{let u=c??"";C(u),T(u),m.current?.scrollTo({top:0});},[T]),k=_.useCallback(c=>{L(c),c&&(C(""),T(""));},[T,L]),V=_.useCallback(({itemValue:c})=>{if(!c)return;let u=y.find(P=>P.key===c)?.code;u&&(n(u),L(false));},[y,L,n]),S=useCombobox({collection:h,inputBehavior:"autohighlight",inputValue:a,open:b,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:R?[R.key]:[],onInputValueChange:O,onOpenChange:({open:c})=>{c||L(false);},onSelect:V});return jsx(Combobox.RootProvider,{value:S,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-['']",t?"bg-danger-20 after:bg-input-ring-error after:w-0.5":o||l?"after:bg-input-ring-disabled bg-neutral-200":"group-focus-within/id-field:after:bg-input-ring-focus after:bg-input-ring bg-neutral-200 group-focus-within/id-field:after:w-0.5",!t&&b&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||l,children:R&&jsx(or,{code:R.code,label:R.label,codeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",l&&"text-input-text-disabled")})})}),jsx(c$4,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:g({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:s.searchCountryPlaceholder,className:x()}),!o&&a.length>0&&jsx("button",{type:"button",className:v(),onClick:()=>{S.setInputValue("","clear-trigger");},children:jsx(d$4,{className:"size-4.5"})}),jsx(p,{className:I()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:m,className:a$2("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":h.items.length===0}),children:h.items.length===0?jsx(a$a,{size:"sm",variant:"not-found"}):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===p$1?"opacity-100":"opacity-0")})]},c.key))})})]})})]})})};var ht=_.forwardRef(({className:e,clearLabel:o,disabled:t,error:n,onChange:r,readOnly:i,type:l="text",value:s,...p},m)=>{let a=_.useRef(null),C=`${s??""}`.length>0,b=!t&&!i&&C,d$1=b||n;_.useImperativeHandle(m,()=>a.current,[]);let g=_.useCallback(v=>{r?.(v.target.value);},[r]),x=_.useCallback(()=>{r?.(""),a.current?.focus();},[r]);return jsxs("div",{className:a$2("bg-input-bg relative flex h-full min-w-0 flex-1 rounded-r",t&&"bg-input-bg-disabled"),children:[jsx("input",{type:l,"data-slot":"input",className:a$2("text-input-text placeholder:text-input-placeholder h-full min-w-0 flex-1 rounded-r bg-transparent px-3 text-sm leading-[143%] focus-visible:outline-0",d$1&&!n&&"pr-10.5",b&&n&&"pr-14",n&&!b&&"pr-10.5",t&&"text-input-text-disabled",e),...p,disabled:t,readOnly:i,value:s,onChange:g,ref:a}),(b||n)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[b&&jsx(a$5,{ariaLabel:o,onClick:x}),n&&jsx(d,{})]})]})});ht.displayName="IdInput";var Ct={en:"Clear identification number",es:"Limpiar n\xFAmero de identificaci\xF3n",pt:"Limpar n\xFAmero de identifica\xE7\xE3o"},To={en:rr,es:ir,pt:lr},sr=Ct.en,ar=To.en,cr={es:{clearIdLabel:Ct.es,searchCountryPlaceholder:"Buscar..."},pt:{clearIdLabel:Ct.pt,searchCountryPlaceholder:"Pesquisar..."}},pr={clearIdLabel:sr,searchCountryPlaceholder:"Search..."},Po=()=>getDefaultOptions().locale?.code,No=e=>cr[e]??pr,ur=(e,o)=>(To[o]??ar)[e]??e,Mo=({localeCode:e})=>c$2.map(o=>({code:o,label:ur(o,e)})).sort((o,t)=>o.label.localeCompare(t.label)),Eo=a$6,Ao=b$1,Oo=(e,o)=>{let t=o.trim();return !t||!c$3(e,t).isValid?t:d$3(e,t)};var ko=()=>{},wo=_.forwardRef(({autoComplete:e,className:o,country:t,disabled:n,error:r,helperText:i,id:l,label:s,name:p,onBlur:m,onChange:a=ko,onCountryChange:C=ko,placeholder:b,readOnly:d,required:g,tooltip:x,value:v},I)=>{let[M,y]=_.useState(false),[R,h]=_.useState(v??""),T=_.useId(),E=l??T,L=Po(),O=_.useRef(v??"");_.useEffect(()=>{(v??"")!==O.current&&h(v??"");},[v]);let k=_.useMemo(()=>No(L),[L]),V=_.useMemo(()=>Mo({localeCode:L}),[L]),S=_.useMemo(()=>Ao(t??"")||b||Eo,[t,b]),c=c$1({error:r,disabled:n,readOnly:d}),u=_.useCallback((H,G)=>{let z=Oo(H,G);O.current=z,a(z);},[a]),P=_.useCallback(H=>{h(H),u(t??"",H);},[t,u]),D=_.useCallback(H=>{C(H),u(H,R);},[R,C,u]);return jsx(tt,{disabled:n,error:r,helperText:i,htmlFor:E,label:s,readOnly:d,required:g,tooltip:x,children:jsxs("div",{className:a$2(c.control(),"group/id-field",!r&&!n&&!d&&M&&"after:ring-input-ring-focus after:ring-2",o),children:[jsx(Io,{disabled:n,error:r,onChange:D,onOpenChange:y,options:V,readOnly:d,translations:k,value:t}),jsx(ht,{autoComplete:e,clearLabel:k.clearIdLabel,disabled:n,error:r,id:E,name:p,onBlur:m,onChange:P,placeholder:S,readOnly:d,required:g,value:R,ref:I})]})})});wo.displayName="IdField";var Tc=({children:e$2,title:o,titleLines:t=1,description:n,descriptionLines:r=1,StartIcon:i,hasDivider:l=false,disabled:s=false,actionButton:p,isSelected:m=false,className:a,...C})=>jsxs(ee,{hasDescription:!!n,disabled:s,hasDivider:l,isSelected:m,...C,className:a,children:[i&&jsx(i,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(pe,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:s}),p&&jsx(Fragment,{children:p.isIcon?jsx(e$1,{...p,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:s??p.disabled}):jsx(e,{...p,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:s??p.disabled})})]});var Fc=({title:e,description:o="",descriptionLines:t,hasDivider:n=false,disabled:r=false,checked:i,onCheckedChange:l,className:s,chipStatus:p,chipExpandable:m,...a})=>jsxs(ee,{hasDescription:!!o,disabled:r,hasDivider:n,...a,className:a$2("pr-6",s),children:[jsx(b,{checked:i,onCheckedChange:l,className:"mr-4 self-center",disabled:r}),jsxs("div",{className:"flex-1",children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsx("p",{className:a$2("line-clamp-1 text-sm leading-[130%] break-all",!!o&&"font-medium"),children:e}),m&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$5,{...m})}),p&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$5,{...p,size:"xs",className:"shrink-0"})})]}),o&&jsx("p",{className:a$2("text-xs leading-[130%]",r?"text-neutral-400":"text-neutral-700",{"line-clamp-1":t===1,"line-clamp-2":t===2,"line-clamp-3":t===3,"line-clamp-4":t===4}),children:o})]})]});var yt={paragraph:"m-0",ltr:"text-left",rtl:"text-right",heading:{h1:"mb-2 text-2xl leading-[130%] font-semibold text-neutral-900",h2:"mb-2 text-xl leading-[130%] font-semibold text-neutral-900",h3:"mb-2 text-lg leading-[130%] font-semibold text-neutral-900",h4:"mb-2 text-base leading-[130%] font-semibold text-neutral-900",h5:"mb-2 text-sm leading-[130%] font-semibold text-neutral-900",h6:"mb-2 text-xs leading-[130%] font-semibold text-neutral-900"},list:{ul:"my-2 list-disc pl-5",ol:"my-2 list-decimal pl-5",listitem:"my-1",nested:{listitem:"my-1"}},text:{bold:"font-semibold",italic:"italic",underline:"underline",strikethrough:"line-through",code:"rounded bg-neutral-100 px-1 py-0.5 font-mono text-xs"},code:"rounded bg-neutral-100 p-2 font-mono text-xs",quote:"border-l-2 border-neutral-300 pl-3 italic text-neutral-700",link:"text-primary-700 underline hover:text-primary-800"},Lt={headings:["h1","h2","h3"],textFormat:["bold","italic","underline"],lists:true,indent:true,alignment:["left","center","right","justify"],undoRedo:true};var It=({readOnly:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>{o.setEditable(!e);},[o,e]),null};var Rt=({editorRef:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>(e.current=o,()=>{e.current===o&&(e.current=null);}),[o,e]),null};var xr={"ql-align-left":"left","ql-align-center":"center","ql-align-right":"right","ql-align-justify":"justify"},vr={center:"ql-align-center",right:"ql-align-right",justify:"ql-align-justify"},yr=()=>typeof window<"u"&&typeof window.DOMParser<"u",So=e=>yr()?new DOMParser().parseFromString(e,"text/html"):null,Lr=e=>(e??"").replace(/\s+/g," ").trim(),Pt=e=>{let o=0;for(let t of Array.from(e.classList)){let n=t.match(/^ql-indent-(\d+)$/);if(!n)continue;let r=Number.parseInt(n[1],10);Number.isFinite(r)&&(o=Math.max(o,r)),e.classList.remove(t);}return o},Ir=e=>{let o=e.querySelectorAll("[class*='ql-align-']");for(let t of Array.from(o))for(let n of Array.from(t.classList)){let r=xr[n];r&&(r!=="left"&&(t.style.textAlign=r),t.classList.remove(n));}},Rr=e=>{let o=e.querySelectorAll("[class*='ql-indent-']");for(let t of Array.from(o)){if(t.tagName==="LI")continue;let n=Pt(t);n>0&&(t.style.paddingInlineStart=`${n*3}em`);}},Tr=(e,o)=>{let t=e.getAttribute("data-list");return t==="bullet"?"ul":t==="ordered"?"ol":o},Pr=e=>{let o=e.cloneNode(true);return o.removeAttribute("data-list"),o.removeAttribute("data-checked"),o.removeAttribute("data-indent"),Pt(o),o},Tt=(e,o)=>e.createElement(o),Nr=(e,o)=>{let t=Array.from(e.children).filter(p=>p.tagName==="LI");if(t.length===0||!t.some(p=>p.hasAttribute("data-list")?true:Array.from(p.classList).some(m=>/^ql-indent-\d+$/.test(m))))return;let r=[],i=[],l=e.tagName==="UL"?"ul":"ol";for(let p of t){let m=Pt(p),a=Tr(p,l),C=Pr(p);for(;i.length>0&&i[i.length-1].level>m;)i.pop();if(i.length===0){let d=Tt(o,a);r.push(d),i.push({level:0,kind:a,listElement:d});}let b=i[i.length-1];for(;b.level<m;){let d=b.listElement.lastElementChild;if(!d||d.tagName!=="LI")break;let g=Tt(o,a);d.appendChild(g),b={level:b.level+1,kind:a,listElement:g},i.push(b);}if(b=i[i.length-1],b.kind!==a){let d=Tt(o,a);if(i.length===1)r.push(d),i[0]={level:0,kind:a,listElement:d};else {let x=i[i.length-2].listElement.lastElementChild;x&&x.tagName==="LI"?(x.appendChild(d),i[i.length-1]={level:b.level,kind:a,listElement:d}):(r.push(d),i.length=1,i[0]={level:0,kind:a,listElement:d});}b=i[i.length-1];}b.listElement.appendChild(C);}if(r.length===0)return;let s=o.createDocumentFragment();for(let p of r)s.appendChild(p);e.replaceWith(s);},Mr=(e,o)=>{let t=Array.from(e.querySelectorAll("ol, ul"));for(let n of t)Nr(n,o);},Ho=(e,o)=>{let t=e.tagName==="UL"?"bullet":"ordered",n=Array.from(e.children).filter(r=>r.tagName==="LI");for(let r of n){r.setAttribute("data-list",t);for(let l of Array.from(r.classList))/^ql-indent-\d+$/.test(l)&&r.classList.remove(l);o>0&&r.classList.add(`ql-indent-${o}`);let i=Array.from(r.children).filter(l=>l.tagName==="UL"||l.tagName==="OL");for(let l of i)Ho(l,o+1);}},Er=e=>{let o=e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li");for(let t of Array.from(o)){let n=t;for(let l of Array.from(n.classList))l.startsWith("ql-align-")&&n.classList.remove(l);let r=n.style.textAlign.trim().toLowerCase(),i=vr[r];i&&n.classList.add(i);}},xe=e=>Lr(e).replace(/>\s+</g,"><").replace(/ /g," "),Nt=e=>{let o=e??"";if(!o.trim())return "";let t=So(o);if(!t)return o;let{body:n}=t;return Ir(n),Rr(n),Mr(n,t),n.innerHTML},Mt=e=>{if(!e.trim())return "";let o=So(e);if(!o)return e;let{body:t}=o,n=Array.from(t.querySelectorAll("ul, ol"));for(let r of n)Ho(r,0);return Er(t),t.innerHTML};var ot=e=>{let o="";return e.getEditorState().read(()=>{o=$generateHtmlFromNodes(e,null);}),Mt(o)},Dr=(e,o)=>{let t=Nt(o);e.update(()=>{let n=$getRoot();if(n.clear(),!t.trim()){n.append($createParagraphNode());return}let i=new DOMParser().parseFromString(t,"text/html"),l=$generateNodesFromDOM(e,i);if(l.length===0){n.append($createParagraphNode());return}n.select(),$insertNodes(l);});},Et=({value:e,isSyncingRef:o})=>{let[t]=useLexicalComposerContext(),n=useRef(null);return useEffect(()=>{let r=e??"";if(n.current!==null&&xe(r)===xe(n.current))return;let i=ot(t);xe(i)!==xe(r)&&(o.current=true,Dr(t,r),queueMicrotask(()=>{o.current=false;})),n.current=r;},[t,o,e]),null};var Do=["left","center","right","justify"];var Bo=["bold","italic","underline","strikethrough","code"];var xi={bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough",code:"code"},vi={left:jsx(AlignLeftIcon,{className:"size-4"}),center:jsx(AlignCenterIcon,{className:"size-4"}),right:jsx(AlignRightIcon,{className:"size-4"}),justify:jsx(AlignJustifyIcon,{className:"size-4"})},yi={left:"Align left",center:"Align center",right:"Align right",justify:"Align justify"},we={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:"</>"})},Se={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Inline code"},Li=e=>{let o=e.textFormat;return o===false?[]:Array.isArray(o)?Bo.filter(t=>o.includes(t)):["bold","italic","underline"]},Ii=e=>{let o=e.alignment;return o===false?[]:Array.isArray(o)?Do.filter(t=>o.includes(t)):["left","center","right","justify"]},Ri=e=>{if(e.headings===false)return [];let o=Array.isArray(e.headings)?e.headings:["h1","h2","h3"];return [{value:"paragraph",label:"Normal"},...o.map(t=>({value:t,label:t.toUpperCase()}))]},He=()=>jsx("div",{className:"mx-1 h-5 w-px bg-neutral-300"}),Q=({label:e,onClick:o,icon:t,active:n=false,disabled:r=false})=>jsx("button",{type:"button","aria-label":e,title:e,disabled:r,onClick:o,className:a$2("inline-flex size-8 items-center justify-center rounded-md border border-transparent text-neutral-700 transition-colors","focus-visible:ring-primary-800 hover:bg-neutral-200 focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-40",n&&"border-neutral-300 bg-neutral-200 text-neutral-900"),children:t}),kt=({config:e,className:o})=>{let[t]=useLexicalComposerContext(),n=useId(),[r,i]=useState(false),[l,s]=useState(false),[p,m]=useState(false),[a,C]=useState(false),[b,d]=useState(false),[g,x]=useState(false),[v,I]=useState(false),[M,y]=useState("paragraph"),[R,h]=useState("left"),T=useMemo(()=>Li(e),[e]),E=useMemo(()=>Ii(e),[e]),L=useMemo(()=>Ri(e),[e]),O=useCallback(()=>{let c=$getSelection();if(!$isRangeSelection(c))return;m(c.hasFormat("bold")),C(c.hasFormat("italic")),d(c.hasFormat("underline")),x(c.hasFormat("strikethrough")),I(c.hasFormat("code"));let u=c.anchor.getNode(),P=u.getKey()==="root"?u:u.getTopLevelElementOrThrow();if($isListNode(P))y(P.getListType()==="number"?"ol":"ul");else {let H=$findMatchingParent(P,G=>$isListNode(G));$isListNode(H)?y(H.getListType()==="number"?"ol":"ul"):y($isHeadingNode(P)?P.getTag():P.getType());}let D=$isElementNode(P)?P.getFormatType():"";h(D==="center"||D==="right"||D==="justify"?D:"left");},[]);useEffect(()=>mergeRegister(t.registerUpdateListener(({editorState:c})=>{c.read(()=>{O();});}),t.registerCommand(SELECTION_CHANGE_COMMAND,()=>(O(),false),1),t.registerCommand(CAN_UNDO_COMMAND,c=>(i(c),false),1),t.registerCommand(CAN_REDO_COMMAND,c=>(s(c),false),1)),[t,O]);let k=c=>{t.dispatchCommand(FORMAT_TEXT_COMMAND,xi[c]);},V=c=>{t.update(()=>{let u=$getSelection();if($isRangeSelection(u)){if(c==="paragraph"){$setBlocksType(u,()=>$createParagraphNode());return}$setBlocksType(u,()=>$createHeadingNode(c));}});},S=c=>{if(M===(c==="bullet"?"ul":"ol")){t.dispatchCommand(REMOVE_LIST_COMMAND,void 0);return}t.dispatchCommand(c==="bullet"?INSERT_UNORDERED_LIST_COMMAND:INSERT_ORDERED_LIST_COMMAND,void 0);};return jsxs("div",{className:a$2("flex flex-wrap items-center gap-1 border-b border-neutral-300 bg-neutral-100 px-2 py-1.5",o),children:[e.undoRedo!==false&&jsxs(Fragment,{children:[jsx(Q,{label:"Undo",onClick:()=>t.dispatchCommand(UNDO_COMMAND,void 0),disabled:!r,icon:jsx(UndoIcon,{className:"size-4"})}),jsx(Q,{label:"Redo",onClick:()=>t.dispatchCommand(REDO_COMMAND,void 0),disabled:!l,icon:jsx(RedoIcon,{className:"size-4"})}),jsx(He,{})]}),L.length>0&&jsxs(Fragment,{children:[jsx("label",{className:"sr-only",htmlFor:n,children:"Text style"}),jsx("select",{id:n,value:M.startsWith("h")?M:"paragraph",onChange:c=>V(c.target.value),className:a$2("h-8 rounded-md border border-neutral-300 bg-white px-2 text-xs font-medium text-neutral-800","focus-visible:ring-primary-800 focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:outline-none"),children:L.map(c=>jsx("option",{value:c.value,children:c.label},c.value))}),jsx(He,{})]}),T.length>0&&jsxs(Fragment,{children:[T.includes("bold")&&jsx(Q,{label:Se.bold,onClick:()=>k("bold"),icon:we.bold,active:p}),T.includes("italic")&&jsx(Q,{label:Se.italic,onClick:()=>k("italic"),icon:we.italic,active:a}),T.includes("underline")&&jsx(Q,{label:Se.underline,onClick:()=>k("underline"),icon:we.underline,active:b}),T.includes("strikethrough")&&jsx(Q,{label:Se.strikethrough,onClick:()=>k("strikethrough"),icon:we.strikethrough,active:g}),T.includes("code")&&jsx(Q,{label:Se.code,onClick:()=>k("code"),icon:we.code,active:v}),jsx(He,{})]}),e.lists!==false&&jsxs(Fragment,{children:[jsx(Q,{label:"Bulleted list",onClick:()=>S("bullet"),icon:jsx(ListIcon,{className:"size-4"}),active:M==="ul"}),jsx(Q,{label:"Numbered list",onClick:()=>S("number"),icon:jsx(ListOrderedIcon,{className:"size-4"}),active:M==="ol"}),jsx(He,{})]}),e.indent!==false&&jsxs(Fragment,{children:[jsx(Q,{label:"Decrease indent",onClick:()=>t.dispatchCommand(OUTDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentDecreaseIcon,{className:"size-4"})}),jsx(Q,{label:"Increase indent",onClick:()=>t.dispatchCommand(INDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentIncreaseIcon,{className:"size-4"})}),jsx(He,{})]}),E.length>0&&jsx(Fragment,{children:E.map(c=>jsx(Q,{label:yi[c],onClick:()=>t.dispatchCommand(FORMAT_ELEMENT_COMMAND,c),icon:vi[c],active:R===c},c))})]})};var Uo=e=>{if(e!==void 0)return typeof e=="number"?`${e}px`:e},_i=forwardRef(({value:e,onChange:o,onBlur:t,onError:n,placeholder:r="Write your content...",readOnly:i=false,showToolbar:l=true,toolbarConfig:s=Lt,className:p,editorClassName:m,toolbarClassName:a,autoFocus:C=false,minHeight:b=160,maxHeight:d,error:g=false,errorMessage:x,editorRef:v},I)=>{let M=useRef(false),y=useMemo(()=>({namespace:"SodtrackRichTextEditor",theme:yt,onError:(h,T)=>{if(n){n(h,T);return}console.error("RichTextEditor error",h);},nodes:[HeadingNode,ListNode,ListItemNode]}),[n]),R={minHeight:Uo(b),maxHeight:Uo(d),overflowY:d?"auto":void 0};return jsx(LexicalComposer,{initialConfig:y,children:jsxs("div",{className:"w-full",children:[jsxs("div",{ref:I,className:a$2("group flex w-full flex-col overflow-hidden rounded-lg border bg-white transition-colors","focus-within:ring-primary-800 focus-within:ring-2 focus-within:ring-offset-0",g?"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",p),"data-error":g,"data-readonly":i,children:[l&&!i&&jsx(kt,{config:s,className:a}),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:R,onBlur:t,"aria-invalid":g}),placeholder:i?null:jsx("div",{className:"pointer-events-none absolute top-3 left-4 text-sm text-neutral-500",children:r}),ErrorBoundary:LexicalErrorBoundary}),jsx(HistoryPlugin,{}),jsx(ListPlugin,{}),jsx(It,{readOnly:i}),jsx(Et,{value:e,isSyncingRef:M}),C&&!i&&jsx(AutoFocusPlugin,{}),v&&jsx(Rt,{editorRef:v}),jsx(OnChangePlugin,{ignoreSelectionChange:true,onChange:(h,T)=>{!o||M.current||o(ot(T),h);}})]}),g&&x&&jsx("p",{className:"text-error-500 mt-1 text-xs leading-[133%]",children:x})]})})});_i.displayName="RichTextEditor";var Le="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 Wp=["sm","md","lg"],Gp=["primary","secondary","ghost"],Kp=["primary","neutral"],Qi=tv({extend:d$1,slots:{root:"group data-[state=open]:ring-primary-800 gap-2 outline-none data-[state=open]:ring-3 data-[state=open]:ring-inset"},variants:{disabled:{true:{},false:{}}}}),Wo=({label:e,options:o,onSelect:t,variant:n="primary",size:r="md",disabled:i=false,className:l,tone:s="primary",...p})=>{let m=useCallback(b=>{t?.(b.value);},[t]),{root:a,icon:C}=Qi({variant:n,size:r,tone:s,disabled:i});return jsxs(MenuRoot,{unmountOnExit:true,lazyMount:true,onSelect:m,positioning:{placement:"bottom-start",flip:["bottom-end"]},...p,children:[jsxs(MenuTrigger,{disabled:i,className:a({className:l}),children:[e,jsx(g,{className:C({className:"transition-transform duration-150 group-data-[state=open]:rotate-180"})})]}),jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{className:a$2("elevation-9 z-layer max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",Le),children:o.map(({label:b,value:d,description:g,startIcon:x,endIcon:v,hasDivider:I,disabled:M,onClick:y})=>jsx(MenuItem,{value:d,disabled:M,onSelect:y,asChild:true,children:jsx(ce,{title:b,description:g,startIcon:x,endIcon:v,disabled:M,hasDivider:I,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},d))})})})]})};var Qo=createContext(null),il=()=>{let e=useContext(Qo);if(!e)throw new Error("TrackerItem components must be used within TrackerItem");return e},ll=({state:e,children:o})=>jsxs("div",{className:"relative",children:[jsx("div",{className:a$2("absolute top-1/2 z-10 h-[70%] w-0.5 -translate-y-1/2 rounded-sm",e==="active"&&"bg-primary-400",e==="success"&&"bg-success-500",e==="wait"&&"bg-neutral-400",e==="current"&&"bg-primary-500",e==="complete"&&"bg-primary-600")}),o]}),Go="flex min-h-10 w-full items-center gap-3 py-2 pr-1 pl-3",sl=forwardRef((e,o)=>{let{state:t$1,stepNumber:n,expandable:r,isClickable:i,headerMenu:l,onHeaderButtonClick:s$1}=il(),{label:p,badgeStatus:m,details:a,className:C,...b}=e,d=()=>jsxs(Fragment,{children:[jsxs("div",{className:a$2("flex flex-1 gap-2",!m&&(!a||a.length===0)&&"self-center"),children:[jsx(a$b,{state:t$1,stepNumber:n}),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",t$1==="wait"?"text-neutral-500":"text-neutral-900"),children:p}),m&&m.visible!==false&&(()=>{let{visible:g,...x}=m;return jsx(a$c,{...x})})(),a&&jsx("div",{className:"text-2xs flex flex-col gap-1.5 text-neutral-700",children:a.map(({Icon:g,text:x},v)=>jsxs("div",{className:"flex items-center gap-1.5",children:[jsx(g,{className:"size-3 shrink-0"}),jsx("span",{className:"font-inter",children:x})]},v))})]})]}),i&&l&&jsx(I,{className:"size-3.5 shrink-0 text-neutral-800"}),!i&&r&&jsx(Collapsible.Context,{children:({open:g})=>jsx(Collapsible.Trigger,{asChild:true,children:jsx(e$1,{Icon:g?s:t,size:"sm",variant:"ghost",tone:"neutral"})})}),!i&&!r&&s$1&&jsx(e$1,{Icon:h,size:"sm",variant:"ghost",tone:"neutral",onClick:s$1})]});return i&&l?jsxs(MenuRoot,{unmountOnExit:true,lazyMount:true,positioning:{placement:"bottom-end",flip:["bottom-start"]},children:[jsx(MenuTrigger,{asChild:true,children:jsx("div",{ref:o,className:a$2(Go,"group cursor-pointer outline-none hover:bg-neutral-100 focus-visible:ring-3 focus-visible:ring-neutral-800 focus-visible:ring-inset",C),...b,children:d()})}),jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{className:a$2("elevation-9 z-layer max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",Le),children:l.options.map(({label:g,value:x,description:v,startIcon:I,endIcon:M,hasDivider:y,disabled:R,onClick:h})=>jsx(MenuItem,{value:x,disabled:R,onSelect:h,asChild:true,children:jsx(ce,{title:g,description:v,startIcon:I,endIcon:M,disabled:R,hasDivider:y,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},x))})})})]}):jsx("div",{ref:o,className:a$2(Go,C),...b,children:d()})});sl.displayName="TrackerItemHeader";var al=forwardRef(({children:e,className:o,...t},n)=>jsx(Collapsible.Content,{className:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden",children:jsx("div",{ref:n,className:a$2("border-t border-neutral-300 px-3 py-2",o),...t,children:e})}));al.displayName="TrackerItemExpandableContent";var cl=forwardRef(({buttons:e$1=[],className:o,...t},n)=>jsx("div",{ref:n,className:a$2("flex justify-end gap-2 border-t border-neutral-300 px-3 py-2",o),...t,children:e$1.map((r,i)=>{if(r.visible===false)return null;let{visible:l,...s}=r;return "options"in s?jsx(Wo,{...s,size:"sm"},i):jsx(e,{...s,size:"sm"},i)})}));cl.displayName="TrackerItemFooter";var Ko="overflow-hidden rounded-sm border border-neutral-300 bg-neutral-50",pl=forwardRef(({state:e,stepNumber:o,expandable:t,isClickable:n,headerMenu:r,defaultExpanded:i,onExpandedChange:l,onHeaderButtonClick:s,className:p,children:m,...a},C)=>{let b=t===true,d=n===true,g=useMemo(()=>({state:e,stepNumber:o,expandable:b,isClickable:d,headerMenu:d?r:void 0,onHeaderButtonClick:d?void 0:s}),[e,o,b,d,r,s]),x=useCallback(v=>{l?.(v.open);},[l]);return jsx(Qo.Provider,{value:g,children:jsx(ll,{state:e,children:b?jsx(Collapsible.Root,{ref:C,defaultOpen:i??false,onOpenChange:x,className:a$2(Ko,p),...a,children:m}):jsx("div",{ref:C,className:a$2(Ko,p),...a,children:m})})})});pl.displayName="TrackerItem";var Au=["sm","md","lg"],Ou=["semibold","medium"],ku=["primary","neutral"],vl=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}}),wu=({className:e,label:o,badgeText:t="00",StartIcon:n,options:r,onSelect:i,isSelected:l=false,isLoading:s=false,isDisabled:p=false,hasTrailingBadge:m=false,size:a="lg",weight:C="semibold",tone:b="primary",type:d="button",...g$1})=>{let x=p||s,v=r.filter(({isHidden:P})=>!P),I=v.length>0,M=s,y=!!n&&!s,R=!s&&m,h=I&&!x,T=useCallback(P=>{i?.(P.value);},[i]),E=useCallback(P=>{P?.();},[]),{root:L,label:O,icon:k,chevron:V,trailing:S}=vl({size:a,weight:C,tone:b,loading:M}),c=a,u=jsxs(Fragment,{children:[M&&jsx(c$6,{size:"sm",tone:"neutral",className:k()}),y&&n&&jsx(n,{className:k()}),jsx("span",{className:O(),children:o}),R&&jsx(a$e,{type:"square",variant:"primary",size:c,text:t,className:S()}),h&&jsx(g,{className:V()})]});return I?jsxs(MenuRoot,{onSelect:T,lazyMount:true,positioning:{placement:"bottom-start",flip:["bottom-end"]},children:[jsx(MenuTrigger,{...g$1,type:d,disabled:x,"aria-pressed":l,className:L({className:e}),children:u}),jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{className:cn$1("elevation-9 z-layer max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",Le),children:v.map(({label:P,description:D,startIcon:H,endIcon:G,hasDivider:z,isDisabled:le,onClick:F})=>jsx(MenuItem,{value:P,disabled:le,onSelect:()=>E(F),asChild:true,className:"flex items-center",children:jsx(ce,{title:P,description:D,startIcon:H,endIcon:G,disabled:le,hasDivider:z,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},P))})})})]}):jsx("button",{...g$1,type:d,disabled:x,"aria-pressed":l,className:L({className:e}),children:u})};var Xo={en:rr,es:ir,pt:lr},El={es:{clearPhoneNumberLabel:"Eliminar n\xFAmero de tel\xE9fono",searchCountryPlaceholder:"Buscar..."},pt:{clearPhoneNumberLabel:"Limpar n\xFAmero de telefone",searchCountryPlaceholder:"Pesquisar..."}},Al={clearPhoneNumberLabel:"Clear phone number",searchCountryPlaceholder:"Search..."},Ol=Xo.en,Zo="9 1234 5678",wt="ZZ",Jo=()=>{},it=e=>El[e]??Al,en=e=>Xo[e]??Ol,tn=e=>{if(e)try{let o=parsePhoneNumber(e)?.country;return !o||!j$1(o)?void 0:o}catch{return}},on=e=>{if(e)return getExampleNumber(e,Rl)?.formatNational()},lt=e=>e??wt,st=()=>getDefaultOptions().locale?.code;var Fl=({Icon:e,callingCode:o,country:t,countryName:n,callingCodeClassName:r})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx("span",{className:"flex size-4.5 shrink-0 items-center justify-center",children:jsx(e,{"aria-hidden":true,country:t,label:n})}),o&&jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",r),children:`+${o}`})]}),nn=({className:e,disabled:o,error:t,iconComponent:n,onChange:r,onOpenChange:i,options:l,readOnly:s,translations:p$1,value:m})=>{let a=_.useRef(null),[C,b]=_.useState(""),[d,g]=_.useState(false),{wrapper:x,input:v,clearIcon:I,searchIcon:M}=b$2({size:"md"}),{contains:y}=useFilter({sensitivity:"base"}),R=_.useMemo(()=>l.filter(u=>u.value!==void 0&&j$1(u.value)).map(u=>({callingCode:u.value?getCountryCallingCode(u.value):void 0,country:u.value,key:lt(u.value),label:u.label})),[l]),h=_.useMemo(()=>R.find(u=>u.key===lt(m)),[R,m]),{collection:T,filter:E,set:L}=useListCollection({initialItems:R,itemToString:u=>u.callingCode?`${u.label} +${u.callingCode}`:u.label,itemToValue:u=>u.key,filter:(u,P,D)=>{let H=P.trim().replace(/^\+/,"");return y(u,P)||(D.country?y(D.country,P.toUpperCase()):false)||(D.callingCode?y(D.callingCode,H)||y(`+${D.callingCode}`,P):false)}});_.useEffect(()=>{L(R);},[R,L]);let O=_.useCallback(u=>{g(u),i?.(u);},[i]),k=_.useCallback(({inputValue:u})=>{let P=u??"";b(P),E(P),a.current?.scrollTo({top:0});},[E]),V=_.useCallback(u=>{O(u),u&&(b(""),E(""));},[E,O]),S=_.useCallback(({itemValue:u})=>{if(!u||u===wt){r(void 0),O(false);return}j$1(u)&&(r(u),O(false));},[O,r]),c=useCombobox({collection:T,inputBehavior:"autohighlight",inputValue:C,open:d,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:h?[h.key]:[],onInputValueChange:k,onOpenChange:({open:u})=>{u||O(false);},onSelect:S});return jsx(Combobox.RootProvider,{value:c,children:jsxs(a$9,{open:d,onOpenChange:V,children:[jsx(b$3,{asChild:true,children:jsx("button",{type:"button",className:a$2("relative flex h-full w-19.5 shrink-0 items-center justify-center rounded-l after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:w-px after:content-['']",t?"bg-danger-20 after:bg-input-ring-error after:w-0.5":o||s?"after:bg-input-ring-disabled bg-neutral-200":"group-focus-within/phone:after:bg-input-ring-focus after:bg-input-ring bg-neutral-200 group-focus-within/phone:after:w-0.5",!t&&d&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||s,children:h&&jsx(Fl,{Icon:n,callingCode:h.callingCode,country:h.country,countryName:h.label,callingCodeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",s&&"text-input-text-disabled")})})}),jsx(c$4,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:x({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:p$1.searchCountryPlaceholder,className:v()}),!o&&C.length>0&&jsx("button",{type:"button",className:I(),onClick:()=>{c.setInputValue("","clear-trigger");},children:jsx(d$4,{className:"size-4.5"})}),jsx(p,{className:M()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:a,className:a$2("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":T.items.length===0}),children:T.items.length===0?jsx(a$a,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:T.items.map(u=>jsxs(Combobox.Item,{item:u,className:"data-highlighted:bg-primary-100 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-neutral-900 outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",children:[jsx("span",{className:"flex size-4.5 shrink-0 items-center justify-center",children:jsx(n,{"aria-hidden":true,country:u.country,label:u.label})}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:u.label}),u.callingCode&&jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:`+${u.callingCode}`}),jsx(j,{className:a$2("ml-auto size-4 shrink-0",u.key===lt(m)?"opacity-100":"opacity-0")})]},u.key))})})]})})]})})};var ln=({className:e,country:o,countryName:t})=>{let n=Zn[o];return jsx("span",{className:a$2("flex size-4.5 shrink-0 items-center justify-center overflow-hidden rounded-full border border-white [&_svg:not([class*='size-'])]:h-full [&_svg:not([class*='size-'])]:w-auto [&_svg:not([class*='size-'])]:max-w-none [&_svg:not([class*='size-'])]:shrink-0",e),children:n&&jsx(n,{title:t})})};var Ht=_.forwardRef(({className:e,disabled:o,error:t,onChange:n,readOnly:r,type:i,value:l,...s},p)=>{let m=st(),a=_.useMemo(()=>it(m),[m]),C=_.useRef(null),d$1=!o&&!r&&!!l,g=d$1||t;_.useImperativeHandle(p,()=>C.current,[]);let x=_.useCallback(()=>{let v=C.current;if(!v){n?.({target:{value:""}});return}v.value="",n?.({target:v}),v.focus();},[n]);return jsxs("div",{className:a$2("bg-input-bg relative flex h-full min-w-0 flex-1 rounded-r",o&&"bg-input-bg-disabled"),children:[jsx("input",{type:i,"data-slot":"input",className:a$2("text-input-text placeholder:text-input-placeholder h-full min-w-0 flex-1 rounded-r bg-transparent px-3 text-sm leading-[143%] focus-visible:outline-0",g&&!t&&"pr-10.5",d$1&&t&&"pr-14",t&&!d$1&&"pr-10.5",o&&"text-input-text-disabled",e),...s,disabled:o,readOnly:r,value:l,onChange:n,ref:C}),(d$1||t)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[d$1&&jsx(a$5,{ariaLabel:a.clearPhoneNumberLabel,onClick:x}),t&&jsx(d,{})]})]})});Ht.displayName="PhoneNumberInputComponent";var _l=Bl,cn=_.forwardRef(({className:e,defaultCountry:o,disabled:t,error:n,helperText:r,id:i,label:l,onChange:s=Jo,placeholder:p,readOnly:m,required:a,tooltip:C,value:b,...d},g)=>{let[x,v]=_.useState(false),[I,M]=_.useState(()=>tn(b)??o),y=_.useId(),R=i??y,h=st(),T=_.useMemo(()=>it(h),[h]),E=_.useMemo(()=>en(h),[h]),L=_.useMemo(()=>on(I)??p??Zo,[p,I]),O=c$1({error:n,disabled:t,readOnly:m}),k=a$2(O.control(),"group/phone",!n&&!t&&!m&&x&&"after:ring-input-ring-focus after:ring-2",e),V=_.useCallback(S=>{M(S);},[]);return jsx(tt,{disabled:t,error:n,helperText:r,htmlFor:R,label:l,readOnly:m,required:a,tooltip:C,children:jsx(_l,{...d,className:k,ref:g,countrySelectComponent:nn,countrySelectProps:{error:n,onOpenChange:v,translations:T},defaultCountry:o,disabled:t,flagComponent:ln,id:R,initialValueFormat:"national",inputComponent:Ht,labels:E,numberInputProps:{error:n,placeholder:L},readOnly:m,required:a,value:b,onChange:s,onCountryChange:V})})});cn.displayName="PhoneInput";var zl=({children:e,hasDescription:o=false,disabled:t=false,hasDivider:n=false,className:r,isSelected:i,onClick:l,...s})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("flex flex-row px-3 py-4 text-neutral-900 transition-colors",o?"py-3":"py-3.5",t?"cursor-not-allowed text-neutral-400":a$2("hover:bg-primary-100 focus:bg-primary-200",!!l?"cursor-pointer":"cursor-default"),i&&"bg-primary-200",r),onClick:m=>{t||l?.(m);},...s,children:e}),n&&jsx(a$1,{})]}),ee=zl;var bf=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:i,badgeContent:l,hasDivider:s=false,disabled:p=false,onSelect:m,className:a,...C})=>jsxs(ee,{hasDescription:!!n,disabled:p,onClick:m,hasDivider:s,className:a$2(!p&&"cursor-pointer",a),...C,children:[i&&___default.cloneElement(i,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(pe,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:p}),jsxs("div",{className:"ml-4 flex gap-2",children:[l&&jsx(a$3,{content:l,size:"lg",variant:"alert",className:a$2("self-center",p&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});export{Kp as A,Wo as B,is as a,bf as b,co as c,Ma as d,wo as e,Tc as f,Fc as g,yt as h,Lt as i,xe as j,Nt as k,Mt as l,_i as m,il as n,sl as o,al as p,cl as q,pl as r,Au as s,Ou as t,ku as u,wu as v,cn as w,ce as x,Wp as y,Gp as z};
|
package/dist/chunk-ZB6RYLYL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-OBZIYJO7.js';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var b=tv({base:"font-jakarta text-2xs flex size-full items-center justify-center rounded-full border font-medium ring-1 ring-offset-1 ring-offset-white",variants:{state:{wait:"border-neutral-400 bg-neutral-100 text-neutral-600 ring-neutral-300",active:"border-primary-400 bg-primary-50 text-primary-500 ring-primary-300",success:"border-success-500 bg-success-300 text-success-800 ring-success-300",current:"border-primary-400 bg-primary-100 text-primary-600 ring-transparent",complete:"border-primary-600 bg-primary-600 ring-primary-600 text-neutral-50"}},defaultVariants:{state:"wait"}}),G=12,d=1.5,i=28,S=i/2,y={x:S,y:S},g=216,_=7,D=15,o=10,p=g+o,E=p+_,u=E+o,I=u+D,P=I+o,x=P+_,O=[{startDeg:0,endDeg:g},{startDeg:p,endDeg:E},{startDeg:u,endDeg:I},{startDeg:P,endDeg:x}],R=(e,t,r)=>{let n=(r-90)*Math.PI/180;return {x:e.x+t*Math.cos(n),y:e.y+t*Math.sin(n)}},f=(e,t,r,n)=>{let a=R(e,t,r),c=R(e,t,n),N=n-r>180?1:0;return `M ${a.x} ${a.y} A ${t} ${t} 0 ${N} 1 ${c.x} ${c.y}`},h=()=>jsx("svg",{"aria-hidden":true,viewBox:`0 0 ${i} ${i}`,className:"text-primary-500 pointer-events-none absolute -inset-1 size-7",children:O.map(({startDeg:e,endDeg:t},r)=>jsx("path",{d:f(y,G,e,t),fill:"none",stroke:"currentColor",strokeWidth:d,strokeLinecap:"round"},r))}),M=({state:e,stepNumber:t,className:r,...n})=>jsxs("div",{className:a("relative inline-flex size-5 shrink-0",r),...n,children:[jsx("div",{className:b({state:e}),children:t}),e==="current"&&jsx(h,{})]});export{M as a};
|