sodtrack-web-ui 0.116.24 → 0.117.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import {a as a$6}from'./chunk-FZ6JW3TZ.js';import {a}from'./chunk-RBXMHWJQ.js';import {a as a$5}from'./chunk-TN46TEUP.js';import {a as a$2}from'./chunk-XYBXEU3T.js';import {c,e,a as a$3,b,d}from'./chunk-MQL3NZ6S.js';import {a as a$4}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-QZUQ6AZK.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {useListCollection,Combobox,useComboboxContext}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import {Portal}from'@ark-ui/react/portal';import {useMemo,useRef,useEffect,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';function ne(){let l=useComboboxContext(),a=useRef(l);a.current=l;let m=l.value.join("|"),i=l.inputValue.length>0,u=l.collection.size;return useEffect(()=>{if(!m||i||!u)return;let s=a.current.collection.stringify(a.current.value[0]);s&&a.current.setInputValue(s);},[m,i,u]),null}var Ie=a,le="lg",re=l=>{let{label:a,labelProps:m,error:i,required:u,invalid:s,disabled:y,readOnly:V,options:p,onInputValueChange:g,onValueChange:I,onSelect:A,defaultValue:S,helperText:K,value:n,size:J=le,className:Q,emptyState:W,...X}=l,O=typeof n=="object"&&n!==null?n.value:n,x=useMemo(()=>typeof n!="object"||n===null||p.some(e=>e.value===n.value)?p:[n,...p],[p,n]),c$2=useRef(null),d$1=useRef(""),Y=useMemo(()=>({sensitivity:"base"}),[]),{contains:z}=useFilter(Y),{collection:N,filter:r,set:w}=useListCollection({initialItems:x,itemToString:e=>e.label,itemToValue:e=>String(e.value),filter:(e,b,E)=>z(e,b)||!!E.description&&z(E.description,b)});useEffect(()=>{w(x),r(d$1.current);},[r,x,w]);let Z=useCallback(e=>{I?.(e),A?.(e.items[0]??null);},[A,I]),_=useCallback(e=>{if(e.reason==="input-change"){d$1.current=e.inputValue,r(e.inputValue),g?.(e.inputValue??"");return}d$1.current="",r(""),e.reason==="clear-trigger"&&g?.("");},[r,g]);useEffect(()=>{c$2.current&&c$2.current.value===""&&(d$1.current="",r(""));},[r,c$2.current?.value]);let C=c({error:!!(i||s),disabled:y,readOnly:V});return jsxs(Combobox.Root,{collection:N,defaultValue:S!=null?[String(S)]:void 0,onInputValueChange:_,value:Object.hasOwn(l,"value")?O!=null?[String(O)]:[]:void 0,onValueChange:Z,inputBehavior:"autocomplete",openOnClick:true,invalid:!!(i||s),disabled:y,readOnly:V,...X,"data-disabled":C==="disabled"?"":void 0,"data-error":d(C)||void 0,className:a$1(b,Q),children:[jsx(c$1,{...m,as:Combobox.Label,label:a,required:u}),jsx(ne,{}),jsx(Combobox.Context,{children:e$1=>jsx(e,{as:Combobox.Control,size:J,state:C,clearAdornment:e$1.inputValue.length>0||e$1.value.length>0?jsx(a$3,{as:Combobox.ClearTrigger,hidden:false}):void 0,indicator:jsx(Combobox.Trigger,{className:"group/chevron-host cursor-pointer group-data-disabled/control:cursor-not-allowed",children:jsx(a$2,{})}),children:b=>jsx(Combobox.Input,{ref:c$2,className:a$1(b,"text-left disabled:cursor-not-allowed"),"aria-required":u||void 0})})}),jsx(a$4,{children:K}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsx(Combobox.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 min-w-27.5 overflow-auto rounded-lg",children:jsxs(Combobox.ItemGroup,{children:[N.items.map(e=>jsx(Combobox.Item,{item:e,className:"font-inter data-highlighted:bg-primary-100 block w-full cursor-pointer p-3 data-disabled:cursor-not-allowed data-disabled:text-neutral-400",children:jsx(Combobox.ItemText,{className:"flex w-full min-w-0 flex-col gap-1",asChild:true,children:jsxs("div",{className:"w-full min-w-0",children:[jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[jsx("p",{className:"min-w-0 flex-1 truncate text-sm leading-[130%] font-medium",children:e.label}),e.badgeExpandable&&jsx("div",{className:"flex shrink-0 justify-end overflow-visible",children:jsx(a$5,{size:"sm",...e.badgeExpandable})})]}),e.description&&jsx("p",{className:"text-xs leading-[130%]",children:e.description})]})})},e.value)),jsx(Combobox.Empty,{className:"flex flex-col items-center justify-center",children:jsx(a$6,{size:"sm",variant:"not-found",...W})})]})})})})]})};re.displayName="Autocomplete";export{Ie as a,le as b,re as c};
1
+ import {a as a$6}from'./chunk-MOFC3UHC.js';import {a}from'./chunk-RBXMHWJQ.js';import {a as a$5}from'./chunk-TN46TEUP.js';import {a as a$2}from'./chunk-XYBXEU3T.js';import {c,e,a as a$3,b,d}from'./chunk-MQL3NZ6S.js';import {a as a$4}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-QZUQ6AZK.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {useListCollection,Combobox,useComboboxContext}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import {Portal}from'@ark-ui/react/portal';import {useMemo,useRef,useEffect,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';function ne(){let l=useComboboxContext(),a=useRef(l);a.current=l;let m=l.value.join("|"),i=l.inputValue.length>0,u=l.collection.size;return useEffect(()=>{if(!m||i||!u)return;let s=a.current.collection.stringify(a.current.value[0]);s&&a.current.setInputValue(s);},[m,i,u]),null}var Ie=a,le="lg",re=l=>{let{label:a,labelProps:m,error:i,required:u,invalid:s,disabled:y,readOnly:V,options:p,onInputValueChange:g,onValueChange:I,onSelect:A,defaultValue:S,helperText:K,value:n,size:J=le,className:Q,emptyState:W,...X}=l,O=typeof n=="object"&&n!==null?n.value:n,x=useMemo(()=>typeof n!="object"||n===null||p.some(e=>e.value===n.value)?p:[n,...p],[p,n]),c$2=useRef(null),d$1=useRef(""),Y=useMemo(()=>({sensitivity:"base"}),[]),{contains:z}=useFilter(Y),{collection:N,filter:r,set:w}=useListCollection({initialItems:x,itemToString:e=>e.label,itemToValue:e=>String(e.value),filter:(e,b,E)=>z(e,b)||!!E.description&&z(E.description,b)});useEffect(()=>{w(x),r(d$1.current);},[r,x,w]);let Z=useCallback(e=>{I?.(e),A?.(e.items[0]??null);},[A,I]),_=useCallback(e=>{if(e.reason==="input-change"){d$1.current=e.inputValue,r(e.inputValue),g?.(e.inputValue??"");return}d$1.current="",r(""),e.reason==="clear-trigger"&&g?.("");},[r,g]);useEffect(()=>{c$2.current&&c$2.current.value===""&&(d$1.current="",r(""));},[r,c$2.current?.value]);let C=c({error:!!(i||s),disabled:y,readOnly:V});return jsxs(Combobox.Root,{collection:N,defaultValue:S!=null?[String(S)]:void 0,onInputValueChange:_,value:Object.hasOwn(l,"value")?O!=null?[String(O)]:[]:void 0,onValueChange:Z,inputBehavior:"autocomplete",openOnClick:true,invalid:!!(i||s),disabled:y,readOnly:V,...X,"data-disabled":C==="disabled"?"":void 0,"data-error":d(C)||void 0,className:a$1(b,Q),children:[jsx(c$1,{...m,as:Combobox.Label,label:a,required:u}),jsx(ne,{}),jsx(Combobox.Context,{children:e$1=>jsx(e,{as:Combobox.Control,size:J,state:C,clearAdornment:e$1.inputValue.length>0||e$1.value.length>0?jsx(a$3,{as:Combobox.ClearTrigger,hidden:false}):void 0,indicator:jsx(Combobox.Trigger,{className:"group/chevron-host cursor-pointer group-data-disabled/control:cursor-not-allowed",children:jsx(a$2,{})}),children:b=>jsx(Combobox.Input,{ref:c$2,className:a$1(b,"text-left disabled:cursor-not-allowed"),"aria-required":u||void 0})})}),jsx(a$4,{children:K}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsx(Combobox.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 min-w-27.5 overflow-auto rounded-lg",children:jsxs(Combobox.ItemGroup,{children:[N.items.map(e=>jsx(Combobox.Item,{item:e,className:"font-inter data-highlighted:bg-primary-100 block w-full cursor-pointer p-3 data-disabled:cursor-not-allowed data-disabled:text-neutral-400",children:jsx(Combobox.ItemText,{className:"flex w-full min-w-0 flex-col gap-1",asChild:true,children:jsxs("div",{className:"w-full min-w-0",children:[jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[jsx("p",{className:"min-w-0 flex-1 truncate text-sm leading-[130%] font-medium",children:e.label}),e.badgeExpandable&&jsx("div",{className:"flex shrink-0 justify-end overflow-visible",children:jsx(a$5,{size:"sm",...e.badgeExpandable})})]}),e.description&&jsx("p",{className:"text-xs leading-[130%]",children:e.description})]})})},e.value)),jsx(Combobox.Empty,{className:"flex flex-col items-center justify-center",children:jsx(a$6,{size:"sm",variant:"not-found",...W})})]})})})})]})};re.displayName="Autocomplete";export{Ie as a,le as b,re as c};
@@ -1 +1 @@
1
- import {a as a$9}from'./chunk-QX4D2CU2.js';import {a as a$3}from'./chunk-ORDWXBDZ.js';import {c as c$3,h}from'./chunk-XRFPQJ5P.js';import {a as a$7}from'./chunk-B5KKVXLE.js';import {c as c$6}from'./chunk-JYNJHAGL.js';import {b}from'./chunk-ZYFA5BA3.js';import {d as d$1}from'./chunk-WAUY2MS6.js';import {a as a$8}from'./chunk-FZ6JW3TZ.js';import {a as a$4,b as b$2,c as c$4,d as d$2}from'./chunk-NYURVOJI.js';import {c as c$5}from'./chunk-FYB3QRNL.js';import {c as c$1,e as e$1,a as a$5,b as b$1,d}from'./chunk-MQL3NZ6S.js';import {a as a$6}from'./chunk-VIMWKUML.js';import {c as c$2}from'./chunk-QZUQ6AZK.js';import {d as d$3}from'./chunk-MP4CHZ2K.js';import {a as a$2}from'./chunk-R6NIURLZ.js';import {a}from'./chunk-AWRP67K4.js';import {e as e$2}from'./chunk-PI7DECIN.js';import {c,q,k,h as h$1}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-Y3ZZYSKX.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import*as H from'react';import H__default,{createContext,useMemo,useCallback,forwardRef,useRef,useContext,useEffect,useId,useState}from'react';import*as Ht from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {Field,useFieldContext}from'@ark-ui/react/field';import {useListCollection,Combobox}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import {Portal}from'@ark-ui/react/portal';import {getDefaultOptions}from'date-fns';import In from'react-phone-number-input/locale/en.json';import vn from'react-phone-number-input/locale/es.json';import Tn 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 yl,{parsePhoneNumber,getCountryCallingCode}from'react-phone-number-input';import {getExampleNumber}from'libphonenumber-js/mobile';import sl from'libphonenumber-js/mobile/examples';var ko=({title:e,titleLines:t=2,description:o,descriptionLines:n=1,Icon:r,iconAsColumn:l=true,className:i,...s})=>jsxs("div",{className:a$1("flex gap-2 py-4 pr-6 pl-4",l&&"flex-col items-center gap-1",!l&&!o&&"items-center",i),...s,children:[r&&jsx(r,{className:a$1("shrink-0 text-neutral-300"),size:24}),jsxs("div",{className:a$1("flex flex-col gap-1",l&&"text-center"),children:[jsx("p",{className:a$1("leading-[130%] text-neutral-500",!!o&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:e}),o&&jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:n?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:n}:void 0,children:o})]})]}),Ke=ko;var wo=H__default.memo(({handleSelect:e$1,NoResultsIcon:t,noResultsLabel:o,noResultsDescription:n,noResultsDescriptionLines:r,noResultsAsColumn:l,noResultsButtonOnClick:i,optionDescriptionLines:s,noResultsButtonLabel:a$2,filteredOptions:d,inputRect:c,inputRef:R,popoverPosition:x,optionsListRef:g,selectedOption:u,options:I,setFilteredOptions:P})=>jsx(Ht.Root,{asChild:true,children:jsxs("div",{ref:g,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:c?{width:`${c.width}px`,left:c.left,top:x==="bottom"?`${c.bottom}px`:void 0,bottom:x==="top"?`${window.innerHeight-c.top}px`:void 0}:void 0,children:[d.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(Ke,{title:o,description:n,Icon:t,iconAsColumn:l,descriptionLines:r}),i&&jsxs(Fragment,{children:[jsx(a,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{g.current.style.display="none",R.current.value="",P(I),i();},children:a$2})]})]}),d.map(L=>jsx(b.Root,{disabled:L.disabled,selected:u?.value===L.value,onClick:()=>e$1(L),children:jsxs(b.Content,{children:[jsx(b.Headline,{children:L.label}),L.description&&jsx(b.Description,{className:a$1({"line-clamp-1":s===1,"line-clamp-2":s===2,"line-clamp-3":s===3,"line-clamp-4":s===4}),children:L.description})]})},L.key??L.value))]})})),wt=wo;var _o=336,Kl=({options:e,defaultSelectedOption:t,onSelect:o,onClick:n,onInputChange:r,error:l,helperText:i,label:s,placeholder:a,value:d,size:c="md",optionDescriptionLines:R=1,noResultsLabel:x,noResultsIcon:g,noResultsDescription:u,noResultsDescriptionLines:I,noResultsAsColumn:P,noResultsButtonOnClick:L,noResultsButtonLabel:T,className:y,disabled:N})=>{let[b,E]=useState(t??null),f=useRef(null),C=useRef(null),[_,F]=useState(),[U,h]=useState([]),[m,M]=useState("bottom"),[w,A]=useState(),$=_o,K=useCallback(D=>{f.current.style.display="none",C.current.value=D.label,E(D),o?.(D);},[o]),Q=useCallback(()=>{if(!C?.current)return;let D=C.current.getBoundingClientRect();F(D);let Z=w?w.height:$,j=window.innerHeight-D.bottom>Z,we=D.top>Z;M(j?"bottom":we?"top":"bottom");},[w?.height]),Le=useCallback(()=>{let D=e.filter(Z=>Z.label.toLowerCase().includes(C?.current?.value.toLowerCase()??""));if(h(D),f?.current){let Z=f.current.getBoundingClientRect();A(Z);}},[e]);return useEffect(()=>{h(e);},[e]),useEffect(()=>{if(!d){E(null),C.current&&(C.current.value="");return}(!C.current?.value||b?.value!==d.value)&&(E(d),C.current.value=d.label);},[d]),a$9(f,()=>{f.current.style.display="none",b&&C.current&&(C.current.value=b.label);}),useEffect(()=>{if(C?.current)return Q(),C.current.addEventListener("mousedown",Q),C.current.addEventListener("input",Le),window.addEventListener("scroll",Q,true),window.addEventListener("resize",Q),()=>{C.current?.removeEventListener("mousedown",Q),C.current?.removeEventListener("input",Le),window.removeEventListener("scroll",Q,true),window.removeEventListener("resize",Q);}},[Q,Le]),jsxs("div",{className:a$1("relative",y),children:[jsx(a$3,{ref:C,autoComplete:"off",list:"",selectMode:true,onChange:D=>{D.target.value||(E(null),o?.(null)),r?.(D);},onClean:()=>{E(null),h(e),o?.(null);},onClick:D=>{f.current.style.display="flex",n?.(D);},onBlur:()=>{b&&C.current&&(C.current.value=b.label);},label:s,helperText:i,placeholder:a,size:c,error:l,disabled:N}),jsx(wt,{handleSelect:K,noResultsLabel:x,NoResultsIcon:g,optionDescriptionLines:R,noResultsAsColumn:P,noResultsButtonLabel:T,noResultsButtonOnClick:L,noResultsDescription:u,noResultsDescriptionLines:I,filteredOptions:U,inputRect:_,inputRef:C,popoverPosition:m,optionsListRef:f,selectedOption:b,options:e,setFilteredOptions:h})]})};var Bo=({children:e,title:t,titleLines:o,description:n="",descriptionLines:r,disabled:l=false,className:i,...s})=>jsxs("div",{className:a$1("flex w-full flex-col gap-1",i),...s,children:[jsx("p",{className:a$1("text-sm leading-[130%] break-all",!!n&&"font-medium"),style:o?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:void 0,children:t}),n&&jsx("p",{className:a$1("text-xs leading-[130%]",l?"text-neutral-400":"text-neutral-700"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:n})]}),ce=Bo;var li=({children:e,title:t,titleLines:o,description:n="",descriptionLines:r,startIcon:l,badgeContent:i,hasDivider:s=false,disabled:a=false,onSelect:d,className:c,...R})=>jsxs(te,{hasDescription:!!n,disabled:a,onClick:d,hasDivider:s,className:a$1(!a&&"cursor-pointer",c),...R,children:[l&&H__default.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ce,{title:t,titleLines:o,description:n,descriptionLines:r,disabled:a}),jsxs("div",{className:"ml-4 flex gap-2",children:[i&&jsx(a$2,{content:i,size:"lg",variant:"alert",className:a$1("self-center",a&&"bg-neutral-400")}),jsx(h$1,{className:"h-4.5 w-4.5 self-center"})]})]});var fi=({children:e,title:t,titleLines:o=1,description:n="",descriptionLines:r,startIcon:l,hasDivider:i=false,disabled:s=false,checked:a,onCheckedChange:d,className:c,...R})=>jsxs(te,{hasDescription:!!n,disabled:s,hasDivider:i,...R,className:a$1("pr-6",c),children:[l&&H__default.cloneElement(l,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(ce,{title:t,titleLines:o,description:n,descriptionLines:r,disabled:s}),jsx(c$5,{checked:a,onCheckedChange:d,className:"ml-4 self-center",disabled:s})]});var ne=336,Ut=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:()=>{}}),oe=()=>{let e=useContext(Ut);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},$t=({children:e})=>{let t=useRef(null),o=useRef(null),n=useId(),[r,l]=useState(),[i,s]=useState(true),[a,d]=useState([]),[c,R]=useState(-1),[x,g]=useState("bottom"),[u,I]=useState(),[P,L]=useState(ne);return jsx(Ut.Provider,{value:{optionsListRef:t,inputRef:o,autocompleteId:n,inputRect:r,showChips:i,filteredOptions:a,currentFocus:c,popoverPosition:x,setFilteredOptions:d,setCurrentFocus:R,setShowChips:s,setPopoverPosition:g,setInputRect:l,optionsListHeight:P,optionsListRect:u,setOptionsListRect:I,setOptionsListHeight:L},children:e})};var Yo=({option:e,onMountWidth:t})=>{let o=useRef(null);return useEffect(()=>{o.current&&t?.(o.current.clientWidth);},[]),jsx(d$1,{variant:"fill",color:"neutral",ref:o,className:"shrink-0",size:"md",hasCloseIcon:false,children:e.label})},Wt=Yo;var en=150,tn=H__default.memo(({selectedOptions:e,error:t,onCleanSelectedOptions:o,disabled:n,size:r})=>{let{autocompleteId:l,inputRect:i,inputRef:s,optionsListRef:a}=oe(),d=H__default.useRef(null),[c$1,R]=H__default.useState(new Map),x=useMemo(()=>{if(!i?.width)return [];let u=0,I=i.width-en,P=0;for(let L=0;L<e.length&&(P+=c$1.get(L)??0,!(P>I));L++)u++;return e.slice(0,u)},[i?.width,e,c$1]),g=useCallback(()=>{n||(s?.current?.focus(),a.current.style.display="flex");},[n]);return jsxs("div",{onClick:g,className:a$1("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pr-12 pl-3",n&&"cursor-not-allowed"),style:{maxWidth:i?.width?i?.width:void 0,height:i?.height?i?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:d,children:x.map((u,I)=>jsx(Wt,{option:u,onMountWidth:P=>R(L=>new Map(L).set(I,P))},`chip-input-${l}-${u.value}`))}),e.length>x.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!t&&jsx(a$2,{content:String(e.length),size:r}),t&&e.length>0&&jsx(c,{className:"text-error-700 h-6 w-6",onClick:u=>{u.stopPropagation(),o();}})]})}),qt=tn;var rn=H__default.memo(({option:e,index:t,onPressOption:o,isSelected:n,optionDescriptionLines:r})=>{let{currentFocus:l,inputRef:i}=oe();return jsxs(b.Root,{selected:l===t,disabled:e.disabled,onMouseDown:s=>{e.disabled||(i?.current?.value&&s.preventDefault(),o?.(e,s));},children:[jsxs(b.Content,{children:[jsx(b.Headline,{children:e.label}),e.description&&jsx(b.Description,{className:a$1({"line-clamp-1":r===1,"line-clamp-2":r===2,"line-clamp-3":r===3,"line-clamp-4":r===4}),children:e.description})]}),jsx(b.Trailing,{children:jsx(b.CheckboxControl,{checked:n})})]})}),rt=rn;var cn=H__default.memo(({selectedOptions:e$1,handleSelect:t,NoResultsIcon:o,noResultsLabel:n,noResultsDescription:r,noResultsDescriptionLines:l,noResultsAsColumn:i,noResultsButtonOnClick:s,optionDescriptionLines:a$1,noResultsButtonLabel:d})=>{let{popoverPosition:c,optionsListRef:R,filteredOptions:x,inputRect:g,autocompleteId:u,inputRef:I,optionsListHeight:P}=oe(),L=useCallback(y=>e$1.some(N=>N.value===y.value),[e$1]),T=useMemo(()=>e$1.filter(y=>y.label.toLowerCase().includes(I?.current?.value.toLowerCase()??"")),[e$1,I?.current?.value]);return jsx(Ht.Root,{asChild:true,children:jsxs("div",{ref:R,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:g?{width:`${g.width}px`,left:g.left,top:c==="bottom"?`${g.bottom}px`:void 0,bottom:c==="top"?`${window.innerHeight-g.top}px`:void 0,maxHeight:P+"px"}:void 0,children:[x.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(Ke,{title:n,description:r,Icon:o,iconAsColumn:i,descriptionLines:l}),s&&jsxs(Fragment,{children:[jsx(a,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{R.current.style.display="none",I.current.value="",s();},children:d})]})]}),T.map((y,N)=>jsx(rt,{option:y,index:N,onPressOption:b=>t(b),isSelected:L(y),optionDescriptionLines:a$1},`autocomplete-option-${u}-${y.key??y.value}`)),x.map((y,N)=>!e$1.some(b=>b.value===y.value)&&jsx(rt,{option:y,index:N,onPressOption:b=>t(b),isSelected:L(y),optionDescriptionLines:a$1},`autocomplete-option-${u}-${y.key??y.value}`))]})})}),Qt=cn;var un=H__default.memo(({selectedOptions:e,onSelect:t,error:o,helperText:n,label:r,placeholder:l,options:i,onInputChange:s,size:a,disabled:d})=>{let{setCurrentFocus:c,setFilteredOptions:R,optionsListRef:x,inputRef:g}=oe();return jsx(a$3,{ref:g,autoComplete:"off",list:"",disabled:d,selectMode:true,onChange:u=>{c(-1),s?.(u.target.value);},onClean:()=>{c(-1),R(i),t?.(null,e);},onClick:()=>{d||(x.current.style.display="flex");},error:o,helperText:n,label:r,placeholder:l,fixedTopLabel:e.length>0,size:a})}),jt=un;var Yt=({options:e,defaultSelectedOptions:t,onSelect:o,error:n,helperText:r,label:l,placeholder:i,noResultsLabel:s,noResultsIcon:a,noResultsDescription:d,noResultsDescriptionLines:c,noResultsAsColumn:R,noResultsButtonOnClick:x,noResultsButtonLabel:g,className:u,onInputChange:I,value:P,loading:L,size:T="md",optionDescriptionLines:y=1,disabled:N})=>{let{inputRef:b,optionsListRef:E,setFilteredOptions:f,setShowChips:C,setInputRect:_,setPopoverPosition:F,setCurrentFocus:U,showChips:h,setOptionsListRect:m,optionsListRect:M,setOptionsListHeight:w}=oe(),A=useRef(false),[$,K]=useState(t??[]),Q=useCallback(W=>{K(J=>{let le,ye=J.findIndex(Fo=>Fo.value===W.value);return ye===-1?(le=J.concat(W),o?.(W,le),le):(le=J.toSpliced(ye,1),o?.(W,le),le)});},[o]),Le=useCallback(()=>{K([]),f(e),o?.(null,[]);},[]),D=useCallback(()=>{C(false);},[]),Z=useCallback(()=>{C(true);},[]),j=useCallback(()=>{if(!b?.current)return;let W=b.current.getBoundingClientRect();_(W);let J=M?M.height>ne?ne:M.height:ne,le=window.innerHeight-W.bottom>J,ye=W.top>J;F(le?"bottom":ye?"top":"bottom"),w(ye?ne:window.innerHeight-W.bottom>ne?ne:window.innerHeight-W.bottom);},[M?.height]),we=useCallback(()=>{let W=e.filter(J=>J.label.toLowerCase().includes(b?.current?.value.toLowerCase()??""));if(f(W),E?.current){let J=E.current.getBoundingClientRect();m(J);}},[e,E?.current]);return useEffect(()=>{f(e);},[e]),a$9(E,()=>{E.current.style.display="none",U(-1);}),useEffect(()=>{if(b?.current)return j(),b.current.addEventListener("mousedown",j),b.current.addEventListener("input",we),b.current.addEventListener("focusin",D),b.current.addEventListener("focusout",Z),window.addEventListener("scroll",j,true),window.addEventListener("resize",j),()=>{b.current?.removeEventListener("mousedown",j),b.current?.removeEventListener("input",j),b.current?.removeEventListener("focusout",Z),b.current?.removeEventListener("focusin",D),window.removeEventListener("scroll",j,true),window.removeEventListener("resize",j);}},[j,Z,D,we]),useEffect(()=>{P&&(K(P),C(true));},[P]),useEffect(()=>{L||t&&t.length&&!A.current&&(K(t),A.current=true,C(true));},[t,L]),jsxs("div",{className:a$1("relative",u),children:[jsx(jt,{selectedOptions:$,onSelect:o,error:n,helperText:r,label:l,placeholder:i,handleSelect:Q,options:e,onInputChange:I,size:T,disabled:N}),h&&jsx(qt,{selectedOptions:$,disabled:N,error:n,onCleanSelectedOptions:Le,size:T}),jsx(Qt,{handleSelect:Q,selectedOptions:$,noResultsLabel:s,NoResultsIcon:a,optionDescriptionLines:y,noResultsAsColumn:R,noResultsButtonLabel:g,noResultsButtonOnClick:x,noResultsDescription:d,noResultsDescriptionLines:c})]})};var Rs=e=>jsx($t,{children:jsx(Yt,{...e})});var yn=({code:e,codeClassName:t})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx(a$7,{country:e,className:"size-4.5"}),jsx("span",{className:a$1("text-sm leading-[143%] font-medium text-neutral-800",t),children:e})]}),Zt=({className:e,disabled:t,error:o,onChange:n,options:r,readOnly:l,translations:i,value:s})=>{let a$2=useFieldContext(),d=H.useRef(null),c=H.useId(),[R,x]=H.useState(""),{contains:g}=useFilter({sensitivity:"base"}),u=c$1({disabled:t,error:o,readOnly:l}),I=H.useMemo(()=>r.map(f=>({...f,key:f.code})),[r]),P=H.useMemo(()=>I.find(f=>f.key===s),[I,s]),{collection:L,filter:T,set:y}=useListCollection({initialItems:I,itemToString:f=>`${f.label} ${f.code}`,itemToValue:f=>f.key,filter:(f,C,_)=>g(f,C)||g(_.code,C.toUpperCase())});H.useEffect(()=>{y(I);},[I,y]);let N=H.useCallback(({inputValue:f})=>{let C=f??"";x(C),T(C),d.current?.scrollTo({top:0});},[T]),b=H.useCallback(({open:f})=>{f&&(x(""),T(""));},[T]),E=H.useCallback(({items:f})=>{let C=f[0]?.code;C&&n(C);},[n]);return jsxs(Combobox.Root,{className:"h-full shrink-0",collection:L,disabled:t||l,ids:{input:c,label:a$2.ids.label},inputBehavior:"autohighlight",inputValue:R,lazyMount:true,openOnChange:false,openOnClick:false,positioning:{placement:"bottom-end",offset:{mainAxis:12},sameWidth:false},selectionBehavior:"preserve",unmountOnExit:true,value:P?[P.key]:[],onInputValueChange:N,onOpenChange:b,onValueChange:E,children:[jsx(Combobox.Control,{className:"h-full",children:jsx(Combobox.Trigger,{className:a$1("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-['']",u==="error"?"bg-danger-20 after:bg-input-ring-error":u==="disabled"||u==="readOnly"?"after:bg-input-ring-disabled bg-neutral-200":u==="errorReadOnly"?"after:bg-input-ring-error bg-neutral-200":"group-focus-within/id-field:after:bg-input-ring-focus after:bg-input-ring data-[state=open]:after:bg-input-ring-focus bg-neutral-200",e),disabled:t||l,focusable:true,children:P&&jsx(yn,{code:P.code,codeClassName:a$1(u==="error"&&"text-danger-600",(u==="disabled"||u==="readOnly"||u==="errorReadOnly")&&"text-input-text-disabled")})})}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsxs(Combobox.Content,{className:"elevation-9 z-layer data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 w-75 origin-(--transform-origin) overflow-hidden rounded-sm bg-neutral-50",children:[jsxs("div",{className:"pb-0",children:[jsx(Combobox.Context,{children:f=>jsx(e$1,{className:"m-1 mb-0",size:"md",state:"default",clearAdornment:!t&&f.inputValue.length>0?jsx(a$5,{onClick:()=>{f.setInputValue("","clear-trigger");}}):void 0,indicator:jsx(q,{className:"pointer-events-none size-4.5 text-neutral-800"}),children:C=>jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:i.searchCountryPlaceholder,className:C})})}),jsx(a,{className:"mt-2"})]}),jsx(Combobox.List,{ref:d,className:a$1("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":L.items.length===0}),children:L.items.length===0?jsx(a$8,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:L.items.map(f=>jsxs(Combobox.Item,{item:f,className:"data-highlighted:bg-primary-100 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-neutral-900 outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",children:[jsx(a$7,{country:f.code,className:"size-4.5"}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:f.label}),jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:f.code}),jsx(k,{className:a$1("ml-auto size-4 shrink-0",f.key===s?"opacity-100":"opacity-0")})]},f.key))})})]})})})]})};var st={en:"Clear identification number",es:"Limpiar n\xFAmero de identificaci\xF3n",pt:"Limpar n\xFAmero de identifica\xE7\xE3o"},Jt={en:In,es:vn,pt:Tn},Pn=st.en,En=Jt.en,Nn={es:{clearIdLabel:st.es,searchCountryPlaceholder:"Buscar..."},pt:{clearIdLabel:st.pt,searchCountryPlaceholder:"Pesquisar..."}},An={clearIdLabel:Pn,searchCountryPlaceholder:"Search..."},eo=()=>{let e=getDefaultOptions().locale?.code?.split("-")[0];return e==="es"||e==="pt"?e:"en"},to=e=>Nn[e]??An,Mn=(e,t)=>(Jt[t]??En)[e]??e,oo=({localeCode:e})=>c$3.map(t=>({code:t,label:Mn(t,e)})).sort((t,o)=>t.label.localeCompare(o.label)),no=a$4,ro=b$2,lo=(e,t)=>{let o=t.trim();return !o||!c$4(e,o).isValid?o:d$2(e,o)};var io=()=>{},ao=H.forwardRef(({autoComplete:e,className:t,country:o,disabled:n,error:r,helperText:l,id:i,label:s,labelProps:a,name:d$1,onBlur:c,onChange:R=io,onCountryChange:x=io,placeholder:g,readOnly:u,required:I,value:P},L)=>{let[T,y]=H.useState(P??""),N=H.useRef(null),b=eo(),E=H.useRef(P??""),f=c$1({disabled:n,error:r,readOnly:u});H.useEffect(()=>{let A=P??"";A!==E.current&&(E.current=A,y(A));},[P]);let C=H.useMemo(()=>to(b),[b]),_=H.useMemo(()=>oo({localeCode:b}),[b]),F=H.useMemo(()=>ro(o??"")||g||no,[o,g]),U=H.useCallback((A,$)=>{let K=lo(A,$);E.current=K,R(K);},[R]),h=H.useCallback(A=>{y(A),U(o??"",A);},[o,U]),m=H.useCallback(A=>{x(A),U(A,T);},[T,x,U]),M=H.useCallback(A=>{N.current=A,typeof L=="function"?L(A):L&&(L.current=A);},[L]),w=H.useCallback(()=>{h(""),N.current?.focus();},[h]);return jsxs(Field.Root,{"data-error":d(f)||void 0,disabled:n,id:i,invalid:r,readOnly:u,className:a$1(b$1,t),children:[s&&jsx(c$2,{...a,as:Field.Label,label:s,required:I}),jsx(e$1,{state:f,className:"group/id-field pl-0",clearAdornment:T?jsx(a$5,{ariaLabel:C.clearIdLabel,onClick:w}):void 0,children:A=>jsxs(Fragment,{children:[jsx(Zt,{disabled:n,error:r,onChange:m,options:_,readOnly:u,translations:C,value:o}),jsx(Field.Input,{"aria-required":I||void 0,autoComplete:e,className:a$1(A,"pl-3"),name:d$1,onBlur:c,onChange:$=>h($.target.value),placeholder:F,value:T,ref:M})]})}),l&&jsx(a$6,{as:r?Field.ErrorText:Field.HelperText,children:l})]})});ao.displayName="IdField";var ma=({children:e$1,title:t,titleLines:o=1,description:n,descriptionLines:r=1,StartIcon:l,hasDivider:i=false,disabled:s=false,actionButton:a,isSelected:d=false,className:c,...R})=>jsxs(te,{hasDescription:!!n,disabled:s,hasDivider:i,isSelected:d,...R,className:c,children:[l&&jsx(l,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(ce,{title:t,titleLines:o,description:n,descriptionLines:r,disabled:s}),a&&jsx(Fragment,{children:a.isIcon?jsx(e$2,{...a,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:s??a.disabled}):jsx(e,{...a,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:s??a.disabled})})]});var Ra=({title:e,description:t="",descriptionLines:o,hasDivider:n=false,disabled:r=false,checked:l,onCheckedChange:i,className:s,chipStatus:a,chipExpandable:d,...c})=>jsxs(te,{hasDescription:!!t,disabled:r,hasDivider:n,...c,className:a$1("pr-6",s),children:[jsx(c$5,{checked:l,onCheckedChange:i,className:"mr-4 self-center",disabled:r}),jsxs("div",{className:"flex-1",children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsx("p",{className:a$1("line-clamp-1 text-sm leading-[130%] break-all",!!t&&"font-medium"),children:e}),d&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$6,{...d})}),a&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$3,{...a,size:"xs",className:"shrink-0"})})]}),t&&jsx("p",{className:a$1("text-xs leading-[130%]",r?"text-neutral-400":"text-neutral-700",{"line-clamp-1":o===1,"line-clamp-2":o===2,"line-clamp-3":o===3,"line-clamp-4":o===4}),children:t})]})]});var ct={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"},pt={headings:["h1","h2","h3"],textFormat:["bold","italic","underline"],lists:true,indent:true,alignment:["left","center","right","justify"],undoRedo:true};var mt=({readOnly:e})=>{let[t]=useLexicalComposerContext();return useEffect(()=>{t.setEditable(!e);},[t,e]),null};var ut=({editorRef:e})=>{let[t]=useLexicalComposerContext();return useEffect(()=>(e.current=t,()=>{e.current===t&&(e.current=null);}),[t,e]),null};var Sn={"ql-align-left":"left","ql-align-center":"center","ql-align-right":"right","ql-align-justify":"justify"},Bn={center:"ql-align-center",right:"ql-align-right",justify:"ql-align-justify"},zn=()=>typeof window<"u"&&typeof window.DOMParser<"u",co=e=>zn()?new DOMParser().parseFromString(e,"text/html"):null,Vn=e=>(e??"").replace(/\s+/g," ").trim(),ft=e=>{let t=0;for(let o of Array.from(e.classList)){let n=o.match(/^ql-indent-(\d+)$/);if(!n)continue;let r=Number.parseInt(n[1],10);Number.isFinite(r)&&(t=Math.max(t,r)),e.classList.remove(o);}return t},Un=e=>{let t=e.querySelectorAll("[class*='ql-align-']");for(let o of Array.from(t))for(let n of Array.from(o.classList)){let r=Sn[n];r&&(r!=="left"&&(o.style.textAlign=r),o.classList.remove(n));}},$n=e=>{let t=e.querySelectorAll("[class*='ql-indent-']");for(let o of Array.from(t)){if(o.tagName==="LI")continue;let n=ft(o);n>0&&(o.style.paddingInlineStart=`${n*3}em`);}},Wn=(e,t)=>{let o=e.getAttribute("data-list");return o==="bullet"?"ul":o==="ordered"?"ol":t},qn=e=>{let t=e.cloneNode(true);return t.removeAttribute("data-list"),t.removeAttribute("data-checked"),t.removeAttribute("data-indent"),ft(t),t},dt=(e,t)=>e.createElement(t),Gn=(e,t)=>{let o=Array.from(e.children).filter(a=>a.tagName==="LI");if(o.length===0||!o.some(a=>a.hasAttribute("data-list")?true:Array.from(a.classList).some(d=>/^ql-indent-\d+$/.test(d))))return;let r=[],l=[],i=e.tagName==="UL"?"ul":"ol";for(let a of o){let d=ft(a),c=Wn(a,i),R=qn(a);for(;l.length>0&&l[l.length-1].level>d;)l.pop();if(l.length===0){let g=dt(t,c);r.push(g),l.push({level:0,kind:c,listElement:g});}let x=l[l.length-1];for(;x.level<d;){let g=x.listElement.lastElementChild;if(!g||g.tagName!=="LI")break;let u=dt(t,c);g.appendChild(u),x={level:x.level+1,kind:c,listElement:u},l.push(x);}if(x=l[l.length-1],x.kind!==c){let g=dt(t,c);if(l.length===1)r.push(g),l[0]={level:0,kind:c,listElement:g};else {let I=l[l.length-2].listElement.lastElementChild;I&&I.tagName==="LI"?(I.appendChild(g),l[l.length-1]={level:x.level,kind:c,listElement:g}):(r.push(g),l.length=1,l[0]={level:0,kind:c,listElement:g});}x=l[l.length-1];}x.listElement.appendChild(R);}if(r.length===0)return;let s=t.createDocumentFragment();for(let a of r)s.appendChild(a);e.replaceWith(s);},Kn=(e,t)=>{let o=Array.from(e.querySelectorAll("ol, ul"));for(let n of o)Gn(n,t);},po=(e,t)=>{let o=e.tagName==="UL"?"bullet":"ordered",n=Array.from(e.children).filter(r=>r.tagName==="LI");for(let r of n){r.setAttribute("data-list",o);for(let i of Array.from(r.classList))/^ql-indent-\d+$/.test(i)&&r.classList.remove(i);t>0&&r.classList.add(`ql-indent-${t}`);let l=Array.from(r.children).filter(i=>i.tagName==="UL"||i.tagName==="OL");for(let i of l)po(i,t+1);}},Qn=e=>{let t=e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li");for(let o of Array.from(t)){let n=o;for(let i of Array.from(n.classList))i.startsWith("ql-align-")&&n.classList.remove(i);let r=n.style.textAlign.trim().toLowerCase(),l=Bn[r];l&&n.classList.add(l);}},ge=e=>Vn(e).replace(/>\s+</g,"><").replace(/&nbsp;/g," "),ht=e=>{let t=e??"";if(!t.trim())return "";let o=co(t);if(!o)return t;let{body:n}=o;return Un(n),$n(n),Kn(n,o),n.innerHTML},bt=e=>{if(!e.trim())return "";let t=co(e);if(!t)return e;let{body:o}=t,n=Array.from(o.querySelectorAll("ul, ol"));for(let r of n)po(r,0);return Qn(o),o.innerHTML};var Xe=e=>{let t="";return e.getEditorState().read(()=>{t=$generateHtmlFromNodes(e,null);}),bt(t)},or=(e,t)=>{let o=ht(t);e.update(()=>{let n=$getRoot();if(n.clear(),!o.trim()){n.append($createParagraphNode());return}let l=new DOMParser().parseFromString(o,"text/html"),i=$generateNodesFromDOM(e,l);if(i.length===0){n.append($createParagraphNode());return}n.select(),$insertNodes(i);});},gt=({value:e,isSyncingRef:t})=>{let[o]=useLexicalComposerContext(),n=useRef(null);return useEffect(()=>{let r=e??"";if(n.current!==null&&ge(r)===ge(n.current))return;let l=Xe(o);ge(l)!==ge(r)&&(t.current=true,or(o,r),queueMicrotask(()=>{t.current=false;})),n.current=r;},[o,t,e]),null};var uo=["left","center","right","justify"];var fo=["bold","italic","underline","strikethrough","code"];var Sr={bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough",code:"code"},Br={left:jsx(AlignLeftIcon,{className:"size-4"}),center:jsx(AlignCenterIcon,{className:"size-4"}),right:jsx(AlignRightIcon,{className:"size-4"}),justify:jsx(AlignJustifyIcon,{className:"size-4"})},zr={left:"Align left",center:"Align center",right:"Align right",justify:"Align justify"},Ae={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:"</>"})},Me={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Inline code"},Vr=e=>{let t=e.textFormat;return t===false?[]:Array.isArray(t)?fo.filter(o=>t.includes(o)):["bold","italic","underline"]},Ur=e=>{let t=e.alignment;return t===false?[]:Array.isArray(t)?uo.filter(o=>t.includes(o)):["left","center","right","justify"]},$r=e=>{if(e.headings===false)return [];let t=Array.isArray(e.headings)?e.headings:["h1","h2","h3"];return [{value:"paragraph",label:"Normal"},...t.map(o=>({value:o,label:o.toUpperCase()}))]},Oe=()=>jsx("div",{className:"mx-1 h-5 w-px bg-neutral-300"}),G=({label:e,onClick:t,icon:o,active:n=false,disabled:r=false})=>jsx("button",{type:"button","aria-label":e,title:e,disabled:r,onClick:t,className:a$1("inline-flex size-8 items-center justify-center rounded-md border border-transparent text-neutral-700 transition-colors","focus-visible:ring-primary-800 hover:bg-neutral-200 focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-40",n&&"border-neutral-300 bg-neutral-200 text-neutral-900"),children:o}),Lt=({config:e,className:t})=>{let[o]=useLexicalComposerContext(),n=useId(),[r,l]=useState(false),[i,s]=useState(false),[a,d]=useState(false),[c,R]=useState(false),[x,g]=useState(false),[u,I]=useState(false),[P,L]=useState(false),[T,y]=useState("paragraph"),[N,b]=useState("left"),E=useMemo(()=>Vr(e),[e]),f=useMemo(()=>Ur(e),[e]),C=useMemo(()=>$r(e),[e]),_=useCallback(()=>{let m=$getSelection();if(!$isRangeSelection(m))return;d(m.hasFormat("bold")),R(m.hasFormat("italic")),g(m.hasFormat("underline")),I(m.hasFormat("strikethrough")),L(m.hasFormat("code"));let M=m.anchor.getNode(),w=M.getKey()==="root"?M:M.getTopLevelElementOrThrow();if($isListNode(w))y(w.getListType()==="number"?"ol":"ul");else {let $=$findMatchingParent(w,K=>$isListNode(K));$isListNode($)?y($.getListType()==="number"?"ol":"ul"):y($isHeadingNode(w)?w.getTag():w.getType());}let A=$isElementNode(w)?w.getFormatType():"";b(A==="center"||A==="right"||A==="justify"?A:"left");},[]);useEffect(()=>mergeRegister(o.registerUpdateListener(({editorState:m})=>{m.read(()=>{_();});}),o.registerCommand(SELECTION_CHANGE_COMMAND,()=>(_(),false),1),o.registerCommand(CAN_UNDO_COMMAND,m=>(l(m),false),1),o.registerCommand(CAN_REDO_COMMAND,m=>(s(m),false),1)),[o,_]);let F=m=>{o.dispatchCommand(FORMAT_TEXT_COMMAND,Sr[m]);},U=m=>{o.update(()=>{let M=$getSelection();if($isRangeSelection(M)){if(m==="paragraph"){$setBlocksType(M,()=>$createParagraphNode());return}$setBlocksType(M,()=>$createHeadingNode(m));}});},h=m=>{if(T===(m==="bullet"?"ul":"ol")){o.dispatchCommand(REMOVE_LIST_COMMAND,void 0);return}o.dispatchCommand(m==="bullet"?INSERT_UNORDERED_LIST_COMMAND:INSERT_ORDERED_LIST_COMMAND,void 0);};return jsxs("div",{className:a$1("flex flex-wrap items-center gap-1 border-b border-neutral-300 bg-neutral-100 px-2 py-1.5",t),children:[e.undoRedo!==false&&jsxs(Fragment,{children:[jsx(G,{label:"Undo",onClick:()=>o.dispatchCommand(UNDO_COMMAND,void 0),disabled:!r,icon:jsx(UndoIcon,{className:"size-4"})}),jsx(G,{label:"Redo",onClick:()=>o.dispatchCommand(REDO_COMMAND,void 0),disabled:!i,icon:jsx(RedoIcon,{className:"size-4"})}),jsx(Oe,{})]}),C.length>0&&jsxs(Fragment,{children:[jsx("label",{className:"sr-only",htmlFor:n,children:"Text style"}),jsx("select",{id:n,value:T.startsWith("h")?T:"paragraph",onChange:m=>U(m.target.value),className:a$1("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:C.map(m=>jsx("option",{value:m.value,children:m.label},m.value))}),jsx(Oe,{})]}),E.length>0&&jsxs(Fragment,{children:[E.includes("bold")&&jsx(G,{label:Me.bold,onClick:()=>F("bold"),icon:Ae.bold,active:a}),E.includes("italic")&&jsx(G,{label:Me.italic,onClick:()=>F("italic"),icon:Ae.italic,active:c}),E.includes("underline")&&jsx(G,{label:Me.underline,onClick:()=>F("underline"),icon:Ae.underline,active:x}),E.includes("strikethrough")&&jsx(G,{label:Me.strikethrough,onClick:()=>F("strikethrough"),icon:Ae.strikethrough,active:u}),E.includes("code")&&jsx(G,{label:Me.code,onClick:()=>F("code"),icon:Ae.code,active:P}),jsx(Oe,{})]}),e.lists!==false&&jsxs(Fragment,{children:[jsx(G,{label:"Bulleted list",onClick:()=>h("bullet"),icon:jsx(ListIcon,{className:"size-4"}),active:T==="ul"}),jsx(G,{label:"Numbered list",onClick:()=>h("number"),icon:jsx(ListOrderedIcon,{className:"size-4"}),active:T==="ol"}),jsx(Oe,{})]}),e.indent!==false&&jsxs(Fragment,{children:[jsx(G,{label:"Decrease indent",onClick:()=>o.dispatchCommand(OUTDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentDecreaseIcon,{className:"size-4"})}),jsx(G,{label:"Increase indent",onClick:()=>o.dispatchCommand(INDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentIncreaseIcon,{className:"size-4"})}),jsx(Oe,{})]}),f.length>0&&jsx(Fragment,{children:f.map(m=>jsx(G,{label:zr[m],onClick:()=>o.dispatchCommand(FORMAT_ELEMENT_COMMAND,m),icon:Br[m],active:N===m},m))})]})};var Co=e=>{if(e!==void 0)return typeof e=="number"?`${e}px`:e},rl=forwardRef(({value:e,onChange:t,onBlur:o,onError:n,placeholder:r="Write your content...",readOnly:l=false,showToolbar:i=true,toolbarConfig:s=pt,className:a,editorClassName:d,toolbarClassName:c,autoFocus:R=false,minHeight:x=160,maxHeight:g,error:u=false,errorMessage:I,editorRef:P},L)=>{let T=useRef(false),y=useMemo(()=>({namespace:"SodtrackRichTextEditor",theme:ct,onError:(b,E)=>{if(n){n(b,E);return}console.error("RichTextEditor error",b);},nodes:[HeadingNode,ListNode,ListItemNode]}),[n]),N={minHeight:Co(x),maxHeight:Co(g),overflowY:g?"auto":void 0};return jsx(LexicalComposer,{initialConfig:y,children:jsxs("div",{className:"w-full",children:[jsxs("div",{ref:L,className:a$1("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",u?"border-error-500 focus-within:border-error-500 focus-within:ring-error-500":"border-neutral-500",l&&"border-neutral-300 bg-neutral-50 focus-within:ring-0",a),"data-error":u,"data-readonly":l,children:[i&&!l&&jsx(Lt,{config:s,className:c}),jsx(RichTextPlugin,{contentEditable:jsx(ContentEditable,{className:a$1("relative w-full px-4 py-3 text-sm leading-[142%] text-neutral-900 outline-none","[&_h1]:mt-2 [&_h1]:mb-2 [&_h2]:mt-2 [&_h2]:mb-2 [&_h3]:mt-2 [&_h3]:mb-2","[&_li]:my-1 [&_ol]:my-2 [&_ul]:my-2","[&_a]:text-primary-700 [&_a]:underline",l&&"cursor-default",d),style:N,onBlur:o,"aria-invalid":u}),placeholder:l?null:jsx("div",{className:"pointer-events-none absolute top-3 left-4 text-sm text-neutral-500",children:r}),ErrorBoundary:LexicalErrorBoundary}),jsx(HistoryPlugin,{}),jsx(ListPlugin,{}),jsx(mt,{readOnly:l}),jsx(gt,{value:e,isSyncingRef:T}),R&&!l&&jsx(AutoFocusPlugin,{}),P&&jsx(ut,{editorRef:P}),jsx(OnChangePlugin,{ignoreSelectionChange:true,onChange:(b,E)=>{!t||T.current||t(Xe(E),b);}})]}),u&&I&&jsx("p",{className:"text-error-500 mt-1 text-xs leading-[133%]",children:I})]})})});rl.displayName="RichTextEditor";var Lo={en:In,es:vn,pt:Tn},ul={es:{clearPhoneNumberLabel:"Eliminar n\xFAmero de tel\xE9fono",searchCountryPlaceholder:"Buscar..."},pt:{clearPhoneNumberLabel:"Limpar n\xFAmero de telefone",searchCountryPlaceholder:"Pesquisar..."}},dl={clearPhoneNumberLabel:"Clear phone number",searchCountryPlaceholder:"Search..."},fl=Lo.en,yo="9 1234 5678",yt="ZZ",Ro=()=>{},Io=e=>ul[e]??dl,vo=e=>Lo[e]??fl,To=e=>{if(e)try{let t=parsePhoneNumber(e)?.country;return !t||!h(t)?void 0:t}catch{return}},Po=e=>{if(e)return getExampleNumber(e,sl)?.formatNational()},Ze=e=>e??yt,Eo=()=>{let e=getDefaultOptions().locale?.code?.split("-")[0];return e==="es"||e==="pt"?e:"en"};var Ll=({Icon:e,callingCode:t,country:o,countryName:n,callingCodeClassName:r})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx("span",{className:"flex size-4.5 shrink-0 items-center justify-center",children:jsx(e,{"aria-hidden":true,country:o,label:n})}),t&&jsx("span",{className:a$1("text-sm leading-[143%] font-medium text-neutral-800",r),children:`+${t}`})]}),No=({"aria-label":e,className:t,disabled:o,error:n,iconComponent:r,name:l,onBlur:i,onChange:s,onFocus:a$2,options:d,readOnly:c,translations:R,value:x})=>{let g=useFieldContext(),u=H.useRef(null),I=H.useId(),[P,L]=H.useState(""),{contains:T}=useFilter({sensitivity:"base"}),y=c$1({disabled:o,error:n,readOnly:c}),N=H.useMemo(()=>d.filter(h$1=>h$1.value!==void 0&&h(h$1.value)).map(h=>({callingCode:getCountryCallingCode(h.value),country:h.value,key:Ze(h.value),label:h.label})),[d]),b=H.useMemo(()=>N.find(h=>h.key===Ze(x)),[N,x]),{collection:E,filter:f,set:C}=useListCollection({initialItems:N,itemToString:h=>h.callingCode?`${h.label} +${h.callingCode}`:h.label,itemToValue:h=>h.key,filter:(h,m,M)=>{let w=m.trim().replace(/^\+/,"");return T(h,m)||(M.country?T(M.country,m.toUpperCase()):false)||(M.callingCode?T(M.callingCode,w)||T(`+${M.callingCode}`,m):false)}});H.useEffect(()=>{C(N);},[N,C]);let _=H.useCallback(({inputValue:h})=>{let m=h??"";L(m),f(m),u.current?.scrollTo({top:0});},[f]),F=H.useCallback(({open:h})=>{h&&(L(""),f(""));},[f]),U=H.useCallback(({value:h$1})=>{let m=h$1[0];if(!m||m===yt){s(void 0);return}h(m)&&s(m);},[s]);return jsxs(Combobox.Root,{className:"h-full shrink-0",collection:E,disabled:o||c,ids:{input:I,label:g.ids.label},inputBehavior:"autohighlight",inputValue:P,lazyMount:true,openOnChange:false,openOnClick:false,positioning:{placement:"bottom-end",offset:{mainAxis:12},sameWidth:false},selectionBehavior:"preserve",unmountOnExit:true,value:b?[b.key]:[],onInputValueChange:_,onOpenChange:F,onValueChange:U,children:[jsx(Combobox.Control,{className:"h-full",children:jsx(Combobox.Trigger,{"aria-label":e,className:a$1("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-['']",y==="error"?"bg-danger-20 after:bg-input-ring-error":y==="disabled"||y==="readOnly"?"after:bg-input-ring-disabled bg-neutral-200":y==="errorReadOnly"?"after:bg-input-ring-error bg-neutral-200":"group-focus-within/phone:after:bg-input-ring-focus after:bg-input-ring data-[state=open]:after:bg-input-ring-focus bg-neutral-200",t),disabled:o||c,focusable:true,name:l,onBlur:i,onFocus:a$2,children:b&&jsx(Ll,{Icon:r,callingCode:b.callingCode,country:b.country,countryName:b.label,callingCodeClassName:a$1(y==="error"&&"text-danger-600",(y==="disabled"||y==="readOnly"||y==="errorReadOnly")&&"text-input-text-disabled")})})}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsxs(Combobox.Content,{className:"elevation-9 z-layer data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 w-75 origin-(--transform-origin) overflow-hidden rounded-sm bg-neutral-50",children:[jsxs("div",{className:"pb-0",children:[jsx(Combobox.Context,{children:h=>jsx(e$1,{className:"m-1 mb-0",size:"md",state:"default",clearAdornment:!o&&h.inputValue.length>0?jsx(a$5,{onClick:()=>{h.setInputValue("","clear-trigger");}}):void 0,indicator:jsx(q,{className:"pointer-events-none size-4.5 text-neutral-800"}),children:m=>jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:R.searchCountryPlaceholder,className:m})})}),jsx(a,{className:"mt-2"})]}),jsx(Combobox.List,{ref:u,className:a$1("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":E.items.length===0}),children:E.items.length===0?jsx(a$8,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:E.items.map(h=>jsxs(Combobox.Item,{item:h,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 [&_.PhoneInputCountryIconImg]:size-4.5!",children:jsx(r,{"aria-hidden":true,country:h.country,label:h.label})}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:h.label}),h.callingCode&&jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:`+${h.callingCode}`}),jsx(k,{className:a$1("ml-auto size-4 shrink-0",h.key===Ze(x)?"opacity-100":"opacity-0")})]},h.key))})})]})})})]})};var Rl=yl,Ao=H.forwardRef(({className:e,defaultCountry:t,disabled:o,error:n,helperText:r,id:l,label:i,labelProps:s,onChange:a=Ro,placeholder:d$1,readOnly:c,required:R,value:x,...g},u)=>{let[I,P]=H.useState(()=>To(x)??t),L=H.useRef(null),T=Eo(),y=c$1({disabled:o,error:n,readOnly:c}),N=H.useMemo(()=>Io(T),[T]),b=H.useMemo(()=>vo(T),[T]),E=H.useMemo(()=>Po(I)??d$1??yo,[d$1,I]),f=H.useCallback(F=>{P(F);},[]),C=H.useCallback(F=>{L.current=F,typeof u=="function"?u(F):u&&(u.current=F);},[u]),_=H.useCallback(()=>{a(void 0),L.current?.focus();},[a]);return jsxs(Field.Root,{"data-error":d(y)||void 0,disabled:o,id:l,invalid:n,readOnly:c,className:a$1(b$1,e),children:[i&&jsx(c$2,{...s,as:Field.Label,label:i,required:R}),jsx(e$1,{state:y,className:"group/phone pl-0 [&_.PhoneInputCountryIconImg]:size-4.5!",clearAdornment:x?jsx(a$5,{ariaLabel:N.clearPhoneNumberLabel,onClick:_}):void 0,children:F=>jsx(Rl,{...g,className:"contents",ref:C,countrySelectComponent:No,countrySelectProps:{error:n,translations:N},defaultCountry:t,disabled:o,flagComponent:a$7,initialValueFormat:"national",inputComponent:Field.Input,labels:b,numberInputProps:{"aria-required":R||void 0,className:a$1(F,"pl-3"),placeholder:E},readOnly:c,value:x,onChange:a,onCountryChange:f})}),r&&jsx(a$6,{as:n?Field.ErrorText:Field.HelperText,children:r})]})});Ao.displayName="PhoneInput";var vl=({children:e,hasDescription:t=false,disabled:o=false,hasDivider:n=false,className:r,isSelected:l,onClick:i,...s})=>jsxs(Fragment,{children:[jsx("div",{className:a$1("flex flex-row px-3 py-4 text-neutral-900 transition-colors",t?"py-3":"py-3.5",o?"cursor-not-allowed text-neutral-400":a$1("hover:bg-primary-100 focus:bg-primary-200",!!i?"cursor-pointer":"cursor-default"),l&&"bg-primary-200",r),onClick:d=>{o||i?.(d);},...s,children:e}),n&&jsx(a,{})]}),te=vl;var su=({children:e,title:t,titleLines:o,description:n="",descriptionLines:r,startIcon:l,endIcon:i,hasDivider:s=false,disabled:a=false,isSelected:d=false,className:c,...R})=>jsxs(te,{hasDescription:!!n,disabled:a,hasDivider:s,className:c,isSelected:d,...R,children:[l&&H__default.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ce,{title:t,titleLines:o,description:n,descriptionLines:r,disabled:a}),i&&H__default.cloneElement(i,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{Kl as a,su as b,li as c,fi as d,Rs as e,ao as f,ma as g,Ra as h,ct as i,pt as j,ge as k,ht as l,bt as m,rl as n,Ao as o};
1
+ import {a as a$9}from'./chunk-QX4D2CU2.js';import {a as a$3}from'./chunk-ORDWXBDZ.js';import {c as c$3,h}from'./chunk-XRFPQJ5P.js';import {a as a$7}from'./chunk-B5KKVXLE.js';import {c as c$6}from'./chunk-JYNJHAGL.js';import {b}from'./chunk-ZYFA5BA3.js';import {d as d$1}from'./chunk-WAUY2MS6.js';import {a as a$8}from'./chunk-MOFC3UHC.js';import {a as a$4,b as b$2,c as c$4,d as d$2}from'./chunk-NYURVOJI.js';import {c as c$5}from'./chunk-FYB3QRNL.js';import {c as c$1,e as e$1,a as a$5,b as b$1,d}from'./chunk-MQL3NZ6S.js';import {a as a$6}from'./chunk-VIMWKUML.js';import {c as c$2}from'./chunk-QZUQ6AZK.js';import {d as d$3}from'./chunk-MP4CHZ2K.js';import {a as a$2}from'./chunk-R6NIURLZ.js';import {a}from'./chunk-AWRP67K4.js';import {e as e$2}from'./chunk-PI7DECIN.js';import {c,q,k,h as h$1}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-Y3ZZYSKX.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import*as H from'react';import H__default,{createContext,useMemo,useCallback,forwardRef,useRef,useContext,useEffect,useId,useState}from'react';import*as Ht from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {Field,useFieldContext}from'@ark-ui/react/field';import {useListCollection,Combobox}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import {Portal}from'@ark-ui/react/portal';import {getDefaultOptions}from'date-fns';import In from'react-phone-number-input/locale/en.json';import vn from'react-phone-number-input/locale/es.json';import Tn 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 yl,{parsePhoneNumber,getCountryCallingCode}from'react-phone-number-input';import {getExampleNumber}from'libphonenumber-js/mobile';import sl from'libphonenumber-js/mobile/examples';var ko=({title:e,titleLines:t=2,description:o,descriptionLines:n=1,Icon:r,iconAsColumn:l=true,className:i,...s})=>jsxs("div",{className:a$1("flex gap-2 py-4 pr-6 pl-4",l&&"flex-col items-center gap-1",!l&&!o&&"items-center",i),...s,children:[r&&jsx(r,{className:a$1("shrink-0 text-neutral-300"),size:24}),jsxs("div",{className:a$1("flex flex-col gap-1",l&&"text-center"),children:[jsx("p",{className:a$1("leading-[130%] text-neutral-500",!!o&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:e}),o&&jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:n?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:n}:void 0,children:o})]})]}),Ke=ko;var wo=H__default.memo(({handleSelect:e$1,NoResultsIcon:t,noResultsLabel:o,noResultsDescription:n,noResultsDescriptionLines:r,noResultsAsColumn:l,noResultsButtonOnClick:i,optionDescriptionLines:s,noResultsButtonLabel:a$2,filteredOptions:d,inputRect:c,inputRef:R,popoverPosition:x,optionsListRef:g,selectedOption:u,options:I,setFilteredOptions:P})=>jsx(Ht.Root,{asChild:true,children:jsxs("div",{ref:g,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:c?{width:`${c.width}px`,left:c.left,top:x==="bottom"?`${c.bottom}px`:void 0,bottom:x==="top"?`${window.innerHeight-c.top}px`:void 0}:void 0,children:[d.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(Ke,{title:o,description:n,Icon:t,iconAsColumn:l,descriptionLines:r}),i&&jsxs(Fragment,{children:[jsx(a,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{g.current.style.display="none",R.current.value="",P(I),i();},children:a$2})]})]}),d.map(L=>jsx(b.Root,{disabled:L.disabled,selected:u?.value===L.value,onClick:()=>e$1(L),children:jsxs(b.Content,{children:[jsx(b.Headline,{children:L.label}),L.description&&jsx(b.Description,{className:a$1({"line-clamp-1":s===1,"line-clamp-2":s===2,"line-clamp-3":s===3,"line-clamp-4":s===4}),children:L.description})]})},L.key??L.value))]})})),wt=wo;var _o=336,Kl=({options:e,defaultSelectedOption:t,onSelect:o,onClick:n,onInputChange:r,error:l,helperText:i,label:s,placeholder:a,value:d,size:c="md",optionDescriptionLines:R=1,noResultsLabel:x,noResultsIcon:g,noResultsDescription:u,noResultsDescriptionLines:I,noResultsAsColumn:P,noResultsButtonOnClick:L,noResultsButtonLabel:T,className:y,disabled:N})=>{let[b,E]=useState(t??null),f=useRef(null),C=useRef(null),[_,F]=useState(),[U,h]=useState([]),[m,M]=useState("bottom"),[w,A]=useState(),$=_o,K=useCallback(D=>{f.current.style.display="none",C.current.value=D.label,E(D),o?.(D);},[o]),Q=useCallback(()=>{if(!C?.current)return;let D=C.current.getBoundingClientRect();F(D);let Z=w?w.height:$,j=window.innerHeight-D.bottom>Z,we=D.top>Z;M(j?"bottom":we?"top":"bottom");},[w?.height]),Le=useCallback(()=>{let D=e.filter(Z=>Z.label.toLowerCase().includes(C?.current?.value.toLowerCase()??""));if(h(D),f?.current){let Z=f.current.getBoundingClientRect();A(Z);}},[e]);return useEffect(()=>{h(e);},[e]),useEffect(()=>{if(!d){E(null),C.current&&(C.current.value="");return}(!C.current?.value||b?.value!==d.value)&&(E(d),C.current.value=d.label);},[d]),a$9(f,()=>{f.current.style.display="none",b&&C.current&&(C.current.value=b.label);}),useEffect(()=>{if(C?.current)return Q(),C.current.addEventListener("mousedown",Q),C.current.addEventListener("input",Le),window.addEventListener("scroll",Q,true),window.addEventListener("resize",Q),()=>{C.current?.removeEventListener("mousedown",Q),C.current?.removeEventListener("input",Le),window.removeEventListener("scroll",Q,true),window.removeEventListener("resize",Q);}},[Q,Le]),jsxs("div",{className:a$1("relative",y),children:[jsx(a$3,{ref:C,autoComplete:"off",list:"",selectMode:true,onChange:D=>{D.target.value||(E(null),o?.(null)),r?.(D);},onClean:()=>{E(null),h(e),o?.(null);},onClick:D=>{f.current.style.display="flex",n?.(D);},onBlur:()=>{b&&C.current&&(C.current.value=b.label);},label:s,helperText:i,placeholder:a,size:c,error:l,disabled:N}),jsx(wt,{handleSelect:K,noResultsLabel:x,NoResultsIcon:g,optionDescriptionLines:R,noResultsAsColumn:P,noResultsButtonLabel:T,noResultsButtonOnClick:L,noResultsDescription:u,noResultsDescriptionLines:I,filteredOptions:U,inputRect:_,inputRef:C,popoverPosition:m,optionsListRef:f,selectedOption:b,options:e,setFilteredOptions:h})]})};var Bo=({children:e,title:t,titleLines:o,description:n="",descriptionLines:r,disabled:l=false,className:i,...s})=>jsxs("div",{className:a$1("flex w-full flex-col gap-1",i),...s,children:[jsx("p",{className:a$1("text-sm leading-[130%] break-all",!!n&&"font-medium"),style:o?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:void 0,children:t}),n&&jsx("p",{className:a$1("text-xs leading-[130%]",l?"text-neutral-400":"text-neutral-700"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:n})]}),ce=Bo;var li=({children:e,title:t,titleLines:o,description:n="",descriptionLines:r,startIcon:l,badgeContent:i,hasDivider:s=false,disabled:a=false,onSelect:d,className:c,...R})=>jsxs(te,{hasDescription:!!n,disabled:a,onClick:d,hasDivider:s,className:a$1(!a&&"cursor-pointer",c),...R,children:[l&&H__default.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ce,{title:t,titleLines:o,description:n,descriptionLines:r,disabled:a}),jsxs("div",{className:"ml-4 flex gap-2",children:[i&&jsx(a$2,{content:i,size:"lg",variant:"alert",className:a$1("self-center",a&&"bg-neutral-400")}),jsx(h$1,{className:"h-4.5 w-4.5 self-center"})]})]});var fi=({children:e,title:t,titleLines:o=1,description:n="",descriptionLines:r,startIcon:l,hasDivider:i=false,disabled:s=false,checked:a,onCheckedChange:d,className:c,...R})=>jsxs(te,{hasDescription:!!n,disabled:s,hasDivider:i,...R,className:a$1("pr-6",c),children:[l&&H__default.cloneElement(l,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(ce,{title:t,titleLines:o,description:n,descriptionLines:r,disabled:s}),jsx(c$5,{checked:a,onCheckedChange:d,className:"ml-4 self-center",disabled:s})]});var ne=336,Ut=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:()=>{}}),oe=()=>{let e=useContext(Ut);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},$t=({children:e})=>{let t=useRef(null),o=useRef(null),n=useId(),[r,l]=useState(),[i,s]=useState(true),[a,d]=useState([]),[c,R]=useState(-1),[x,g]=useState("bottom"),[u,I]=useState(),[P,L]=useState(ne);return jsx(Ut.Provider,{value:{optionsListRef:t,inputRef:o,autocompleteId:n,inputRect:r,showChips:i,filteredOptions:a,currentFocus:c,popoverPosition:x,setFilteredOptions:d,setCurrentFocus:R,setShowChips:s,setPopoverPosition:g,setInputRect:l,optionsListHeight:P,optionsListRect:u,setOptionsListRect:I,setOptionsListHeight:L},children:e})};var Yo=({option:e,onMountWidth:t})=>{let o=useRef(null);return useEffect(()=>{o.current&&t?.(o.current.clientWidth);},[]),jsx(d$1,{variant:"fill",color:"neutral",ref:o,className:"shrink-0",size:"md",hasCloseIcon:false,children:e.label})},Wt=Yo;var en=150,tn=H__default.memo(({selectedOptions:e,error:t,onCleanSelectedOptions:o,disabled:n,size:r})=>{let{autocompleteId:l,inputRect:i,inputRef:s,optionsListRef:a}=oe(),d=H__default.useRef(null),[c$1,R]=H__default.useState(new Map),x=useMemo(()=>{if(!i?.width)return [];let u=0,I=i.width-en,P=0;for(let L=0;L<e.length&&(P+=c$1.get(L)??0,!(P>I));L++)u++;return e.slice(0,u)},[i?.width,e,c$1]),g=useCallback(()=>{n||(s?.current?.focus(),a.current.style.display="flex");},[n]);return jsxs("div",{onClick:g,className:a$1("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pr-12 pl-3",n&&"cursor-not-allowed"),style:{maxWidth:i?.width?i?.width:void 0,height:i?.height?i?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:d,children:x.map((u,I)=>jsx(Wt,{option:u,onMountWidth:P=>R(L=>new Map(L).set(I,P))},`chip-input-${l}-${u.value}`))}),e.length>x.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!t&&jsx(a$2,{content:String(e.length),size:r}),t&&e.length>0&&jsx(c,{className:"text-error-700 h-6 w-6",onClick:u=>{u.stopPropagation(),o();}})]})}),qt=tn;var rn=H__default.memo(({option:e,index:t,onPressOption:o,isSelected:n,optionDescriptionLines:r})=>{let{currentFocus:l,inputRef:i}=oe();return jsxs(b.Root,{selected:l===t,disabled:e.disabled,onMouseDown:s=>{e.disabled||(i?.current?.value&&s.preventDefault(),o?.(e,s));},children:[jsxs(b.Content,{children:[jsx(b.Headline,{children:e.label}),e.description&&jsx(b.Description,{className:a$1({"line-clamp-1":r===1,"line-clamp-2":r===2,"line-clamp-3":r===3,"line-clamp-4":r===4}),children:e.description})]}),jsx(b.Trailing,{children:jsx(b.CheckboxControl,{checked:n})})]})}),rt=rn;var cn=H__default.memo(({selectedOptions:e$1,handleSelect:t,NoResultsIcon:o,noResultsLabel:n,noResultsDescription:r,noResultsDescriptionLines:l,noResultsAsColumn:i,noResultsButtonOnClick:s,optionDescriptionLines:a$1,noResultsButtonLabel:d})=>{let{popoverPosition:c,optionsListRef:R,filteredOptions:x,inputRect:g,autocompleteId:u,inputRef:I,optionsListHeight:P}=oe(),L=useCallback(y=>e$1.some(N=>N.value===y.value),[e$1]),T=useMemo(()=>e$1.filter(y=>y.label.toLowerCase().includes(I?.current?.value.toLowerCase()??"")),[e$1,I?.current?.value]);return jsx(Ht.Root,{asChild:true,children:jsxs("div",{ref:R,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:g?{width:`${g.width}px`,left:g.left,top:c==="bottom"?`${g.bottom}px`:void 0,bottom:c==="top"?`${window.innerHeight-g.top}px`:void 0,maxHeight:P+"px"}:void 0,children:[x.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(Ke,{title:n,description:r,Icon:o,iconAsColumn:i,descriptionLines:l}),s&&jsxs(Fragment,{children:[jsx(a,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{R.current.style.display="none",I.current.value="",s();},children:d})]})]}),T.map((y,N)=>jsx(rt,{option:y,index:N,onPressOption:b=>t(b),isSelected:L(y),optionDescriptionLines:a$1},`autocomplete-option-${u}-${y.key??y.value}`)),x.map((y,N)=>!e$1.some(b=>b.value===y.value)&&jsx(rt,{option:y,index:N,onPressOption:b=>t(b),isSelected:L(y),optionDescriptionLines:a$1},`autocomplete-option-${u}-${y.key??y.value}`))]})})}),Qt=cn;var un=H__default.memo(({selectedOptions:e,onSelect:t,error:o,helperText:n,label:r,placeholder:l,options:i,onInputChange:s,size:a,disabled:d})=>{let{setCurrentFocus:c,setFilteredOptions:R,optionsListRef:x,inputRef:g}=oe();return jsx(a$3,{ref:g,autoComplete:"off",list:"",disabled:d,selectMode:true,onChange:u=>{c(-1),s?.(u.target.value);},onClean:()=>{c(-1),R(i),t?.(null,e);},onClick:()=>{d||(x.current.style.display="flex");},error:o,helperText:n,label:r,placeholder:l,fixedTopLabel:e.length>0,size:a})}),jt=un;var Yt=({options:e,defaultSelectedOptions:t,onSelect:o,error:n,helperText:r,label:l,placeholder:i,noResultsLabel:s,noResultsIcon:a,noResultsDescription:d,noResultsDescriptionLines:c,noResultsAsColumn:R,noResultsButtonOnClick:x,noResultsButtonLabel:g,className:u,onInputChange:I,value:P,loading:L,size:T="md",optionDescriptionLines:y=1,disabled:N})=>{let{inputRef:b,optionsListRef:E,setFilteredOptions:f,setShowChips:C,setInputRect:_,setPopoverPosition:F,setCurrentFocus:U,showChips:h,setOptionsListRect:m,optionsListRect:M,setOptionsListHeight:w}=oe(),A=useRef(false),[$,K]=useState(t??[]),Q=useCallback(W=>{K(J=>{let le,ye=J.findIndex(Fo=>Fo.value===W.value);return ye===-1?(le=J.concat(W),o?.(W,le),le):(le=J.toSpliced(ye,1),o?.(W,le),le)});},[o]),Le=useCallback(()=>{K([]),f(e),o?.(null,[]);},[]),D=useCallback(()=>{C(false);},[]),Z=useCallback(()=>{C(true);},[]),j=useCallback(()=>{if(!b?.current)return;let W=b.current.getBoundingClientRect();_(W);let J=M?M.height>ne?ne:M.height:ne,le=window.innerHeight-W.bottom>J,ye=W.top>J;F(le?"bottom":ye?"top":"bottom"),w(ye?ne:window.innerHeight-W.bottom>ne?ne:window.innerHeight-W.bottom);},[M?.height]),we=useCallback(()=>{let W=e.filter(J=>J.label.toLowerCase().includes(b?.current?.value.toLowerCase()??""));if(f(W),E?.current){let J=E.current.getBoundingClientRect();m(J);}},[e,E?.current]);return useEffect(()=>{f(e);},[e]),a$9(E,()=>{E.current.style.display="none",U(-1);}),useEffect(()=>{if(b?.current)return j(),b.current.addEventListener("mousedown",j),b.current.addEventListener("input",we),b.current.addEventListener("focusin",D),b.current.addEventListener("focusout",Z),window.addEventListener("scroll",j,true),window.addEventListener("resize",j),()=>{b.current?.removeEventListener("mousedown",j),b.current?.removeEventListener("input",j),b.current?.removeEventListener("focusout",Z),b.current?.removeEventListener("focusin",D),window.removeEventListener("scroll",j,true),window.removeEventListener("resize",j);}},[j,Z,D,we]),useEffect(()=>{P&&(K(P),C(true));},[P]),useEffect(()=>{L||t&&t.length&&!A.current&&(K(t),A.current=true,C(true));},[t,L]),jsxs("div",{className:a$1("relative",u),children:[jsx(jt,{selectedOptions:$,onSelect:o,error:n,helperText:r,label:l,placeholder:i,handleSelect:Q,options:e,onInputChange:I,size:T,disabled:N}),h&&jsx(qt,{selectedOptions:$,disabled:N,error:n,onCleanSelectedOptions:Le,size:T}),jsx(Qt,{handleSelect:Q,selectedOptions:$,noResultsLabel:s,NoResultsIcon:a,optionDescriptionLines:y,noResultsAsColumn:R,noResultsButtonLabel:g,noResultsButtonOnClick:x,noResultsDescription:d,noResultsDescriptionLines:c})]})};var Rs=e=>jsx($t,{children:jsx(Yt,{...e})});var yn=({code:e,codeClassName:t})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx(a$7,{country:e,className:"size-4.5"}),jsx("span",{className:a$1("text-sm leading-[143%] font-medium text-neutral-800",t),children:e})]}),Zt=({className:e,disabled:t,error:o,onChange:n,options:r,readOnly:l,translations:i,value:s})=>{let a$2=useFieldContext(),d=H.useRef(null),c=H.useId(),[R,x]=H.useState(""),{contains:g}=useFilter({sensitivity:"base"}),u=c$1({disabled:t,error:o,readOnly:l}),I=H.useMemo(()=>r.map(f=>({...f,key:f.code})),[r]),P=H.useMemo(()=>I.find(f=>f.key===s),[I,s]),{collection:L,filter:T,set:y}=useListCollection({initialItems:I,itemToString:f=>`${f.label} ${f.code}`,itemToValue:f=>f.key,filter:(f,C,_)=>g(f,C)||g(_.code,C.toUpperCase())});H.useEffect(()=>{y(I);},[I,y]);let N=H.useCallback(({inputValue:f})=>{let C=f??"";x(C),T(C),d.current?.scrollTo({top:0});},[T]),b=H.useCallback(({open:f})=>{f&&(x(""),T(""));},[T]),E=H.useCallback(({items:f})=>{let C=f[0]?.code;C&&n(C);},[n]);return jsxs(Combobox.Root,{className:"h-full shrink-0",collection:L,disabled:t||l,ids:{input:c,label:a$2.ids.label},inputBehavior:"autohighlight",inputValue:R,lazyMount:true,openOnChange:false,openOnClick:false,positioning:{placement:"bottom-end",offset:{mainAxis:12},sameWidth:false},selectionBehavior:"preserve",unmountOnExit:true,value:P?[P.key]:[],onInputValueChange:N,onOpenChange:b,onValueChange:E,children:[jsx(Combobox.Control,{className:"h-full",children:jsx(Combobox.Trigger,{className:a$1("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-['']",u==="error"?"bg-danger-20 after:bg-input-ring-error":u==="disabled"||u==="readOnly"?"after:bg-input-ring-disabled bg-neutral-200":u==="errorReadOnly"?"after:bg-input-ring-error bg-neutral-200":"group-focus-within/id-field:after:bg-input-ring-focus after:bg-input-ring data-[state=open]:after:bg-input-ring-focus bg-neutral-200",e),disabled:t||l,focusable:true,children:P&&jsx(yn,{code:P.code,codeClassName:a$1(u==="error"&&"text-danger-600",(u==="disabled"||u==="readOnly"||u==="errorReadOnly")&&"text-input-text-disabled")})})}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsxs(Combobox.Content,{className:"elevation-9 z-layer data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 w-75 origin-(--transform-origin) overflow-hidden rounded-sm bg-neutral-50",children:[jsxs("div",{className:"pb-0",children:[jsx(Combobox.Context,{children:f=>jsx(e$1,{className:"m-1 mb-0",size:"md",state:"default",clearAdornment:!t&&f.inputValue.length>0?jsx(a$5,{onClick:()=>{f.setInputValue("","clear-trigger");}}):void 0,indicator:jsx(q,{className:"pointer-events-none size-4.5 text-neutral-800"}),children:C=>jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:i.searchCountryPlaceholder,className:C})})}),jsx(a,{className:"mt-2"})]}),jsx(Combobox.List,{ref:d,className:a$1("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":L.items.length===0}),children:L.items.length===0?jsx(a$8,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:L.items.map(f=>jsxs(Combobox.Item,{item:f,className:"data-highlighted:bg-primary-100 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-neutral-900 outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",children:[jsx(a$7,{country:f.code,className:"size-4.5"}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:f.label}),jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:f.code}),jsx(k,{className:a$1("ml-auto size-4 shrink-0",f.key===s?"opacity-100":"opacity-0")})]},f.key))})})]})})})]})};var st={en:"Clear identification number",es:"Limpiar n\xFAmero de identificaci\xF3n",pt:"Limpar n\xFAmero de identifica\xE7\xE3o"},Jt={en:In,es:vn,pt:Tn},Pn=st.en,En=Jt.en,Nn={es:{clearIdLabel:st.es,searchCountryPlaceholder:"Buscar..."},pt:{clearIdLabel:st.pt,searchCountryPlaceholder:"Pesquisar..."}},An={clearIdLabel:Pn,searchCountryPlaceholder:"Search..."},eo=()=>{let e=getDefaultOptions().locale?.code?.split("-")[0];return e==="es"||e==="pt"?e:"en"},to=e=>Nn[e]??An,Mn=(e,t)=>(Jt[t]??En)[e]??e,oo=({localeCode:e})=>c$3.map(t=>({code:t,label:Mn(t,e)})).sort((t,o)=>t.label.localeCompare(o.label)),no=a$4,ro=b$2,lo=(e,t)=>{let o=t.trim();return !o||!c$4(e,o).isValid?o:d$2(e,o)};var io=()=>{},ao=H.forwardRef(({autoComplete:e,className:t,country:o,disabled:n,error:r,helperText:l,id:i,label:s,labelProps:a,name:d$1,onBlur:c,onChange:R=io,onCountryChange:x=io,placeholder:g,readOnly:u,required:I,value:P},L)=>{let[T,y]=H.useState(P??""),N=H.useRef(null),b=eo(),E=H.useRef(P??""),f=c$1({disabled:n,error:r,readOnly:u});H.useEffect(()=>{let A=P??"";A!==E.current&&(E.current=A,y(A));},[P]);let C=H.useMemo(()=>to(b),[b]),_=H.useMemo(()=>oo({localeCode:b}),[b]),F=H.useMemo(()=>ro(o??"")||g||no,[o,g]),U=H.useCallback((A,$)=>{let K=lo(A,$);E.current=K,R(K);},[R]),h=H.useCallback(A=>{y(A),U(o??"",A);},[o,U]),m=H.useCallback(A=>{x(A),U(A,T);},[T,x,U]),M=H.useCallback(A=>{N.current=A,typeof L=="function"?L(A):L&&(L.current=A);},[L]),w=H.useCallback(()=>{h(""),N.current?.focus();},[h]);return jsxs(Field.Root,{"data-error":d(f)||void 0,disabled:n,id:i,invalid:r,readOnly:u,className:a$1(b$1,t),children:[s&&jsx(c$2,{...a,as:Field.Label,label:s,required:I}),jsx(e$1,{state:f,className:"group/id-field pl-0",clearAdornment:T?jsx(a$5,{ariaLabel:C.clearIdLabel,onClick:w}):void 0,children:A=>jsxs(Fragment,{children:[jsx(Zt,{disabled:n,error:r,onChange:m,options:_,readOnly:u,translations:C,value:o}),jsx(Field.Input,{"aria-required":I||void 0,autoComplete:e,className:a$1(A,"pl-3"),name:d$1,onBlur:c,onChange:$=>h($.target.value),placeholder:F,value:T,ref:M})]})}),l&&jsx(a$6,{as:r?Field.ErrorText:Field.HelperText,children:l})]})});ao.displayName="IdField";var ma=({children:e$1,title:t,titleLines:o=1,description:n,descriptionLines:r=1,StartIcon:l,hasDivider:i=false,disabled:s=false,actionButton:a,isSelected:d=false,className:c,...R})=>jsxs(te,{hasDescription:!!n,disabled:s,hasDivider:i,isSelected:d,...R,className:c,children:[l&&jsx(l,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(ce,{title:t,titleLines:o,description:n,descriptionLines:r,disabled:s}),a&&jsx(Fragment,{children:a.isIcon?jsx(e$2,{...a,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:s??a.disabled}):jsx(e,{...a,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:s??a.disabled})})]});var Ra=({title:e,description:t="",descriptionLines:o,hasDivider:n=false,disabled:r=false,checked:l,onCheckedChange:i,className:s,chipStatus:a,chipExpandable:d,...c})=>jsxs(te,{hasDescription:!!t,disabled:r,hasDivider:n,...c,className:a$1("pr-6",s),children:[jsx(c$5,{checked:l,onCheckedChange:i,className:"mr-4 self-center",disabled:r}),jsxs("div",{className:"flex-1",children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsx("p",{className:a$1("line-clamp-1 text-sm leading-[130%] break-all",!!t&&"font-medium"),children:e}),d&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$6,{...d})}),a&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$3,{...a,size:"xs",className:"shrink-0"})})]}),t&&jsx("p",{className:a$1("text-xs leading-[130%]",r?"text-neutral-400":"text-neutral-700",{"line-clamp-1":o===1,"line-clamp-2":o===2,"line-clamp-3":o===3,"line-clamp-4":o===4}),children:t})]})]});var ct={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"},pt={headings:["h1","h2","h3"],textFormat:["bold","italic","underline"],lists:true,indent:true,alignment:["left","center","right","justify"],undoRedo:true};var mt=({readOnly:e})=>{let[t]=useLexicalComposerContext();return useEffect(()=>{t.setEditable(!e);},[t,e]),null};var ut=({editorRef:e})=>{let[t]=useLexicalComposerContext();return useEffect(()=>(e.current=t,()=>{e.current===t&&(e.current=null);}),[t,e]),null};var Sn={"ql-align-left":"left","ql-align-center":"center","ql-align-right":"right","ql-align-justify":"justify"},Bn={center:"ql-align-center",right:"ql-align-right",justify:"ql-align-justify"},zn=()=>typeof window<"u"&&typeof window.DOMParser<"u",co=e=>zn()?new DOMParser().parseFromString(e,"text/html"):null,Vn=e=>(e??"").replace(/\s+/g," ").trim(),ft=e=>{let t=0;for(let o of Array.from(e.classList)){let n=o.match(/^ql-indent-(\d+)$/);if(!n)continue;let r=Number.parseInt(n[1],10);Number.isFinite(r)&&(t=Math.max(t,r)),e.classList.remove(o);}return t},Un=e=>{let t=e.querySelectorAll("[class*='ql-align-']");for(let o of Array.from(t))for(let n of Array.from(o.classList)){let r=Sn[n];r&&(r!=="left"&&(o.style.textAlign=r),o.classList.remove(n));}},$n=e=>{let t=e.querySelectorAll("[class*='ql-indent-']");for(let o of Array.from(t)){if(o.tagName==="LI")continue;let n=ft(o);n>0&&(o.style.paddingInlineStart=`${n*3}em`);}},Wn=(e,t)=>{let o=e.getAttribute("data-list");return o==="bullet"?"ul":o==="ordered"?"ol":t},qn=e=>{let t=e.cloneNode(true);return t.removeAttribute("data-list"),t.removeAttribute("data-checked"),t.removeAttribute("data-indent"),ft(t),t},dt=(e,t)=>e.createElement(t),Gn=(e,t)=>{let o=Array.from(e.children).filter(a=>a.tagName==="LI");if(o.length===0||!o.some(a=>a.hasAttribute("data-list")?true:Array.from(a.classList).some(d=>/^ql-indent-\d+$/.test(d))))return;let r=[],l=[],i=e.tagName==="UL"?"ul":"ol";for(let a of o){let d=ft(a),c=Wn(a,i),R=qn(a);for(;l.length>0&&l[l.length-1].level>d;)l.pop();if(l.length===0){let g=dt(t,c);r.push(g),l.push({level:0,kind:c,listElement:g});}let x=l[l.length-1];for(;x.level<d;){let g=x.listElement.lastElementChild;if(!g||g.tagName!=="LI")break;let u=dt(t,c);g.appendChild(u),x={level:x.level+1,kind:c,listElement:u},l.push(x);}if(x=l[l.length-1],x.kind!==c){let g=dt(t,c);if(l.length===1)r.push(g),l[0]={level:0,kind:c,listElement:g};else {let I=l[l.length-2].listElement.lastElementChild;I&&I.tagName==="LI"?(I.appendChild(g),l[l.length-1]={level:x.level,kind:c,listElement:g}):(r.push(g),l.length=1,l[0]={level:0,kind:c,listElement:g});}x=l[l.length-1];}x.listElement.appendChild(R);}if(r.length===0)return;let s=t.createDocumentFragment();for(let a of r)s.appendChild(a);e.replaceWith(s);},Kn=(e,t)=>{let o=Array.from(e.querySelectorAll("ol, ul"));for(let n of o)Gn(n,t);},po=(e,t)=>{let o=e.tagName==="UL"?"bullet":"ordered",n=Array.from(e.children).filter(r=>r.tagName==="LI");for(let r of n){r.setAttribute("data-list",o);for(let i of Array.from(r.classList))/^ql-indent-\d+$/.test(i)&&r.classList.remove(i);t>0&&r.classList.add(`ql-indent-${t}`);let l=Array.from(r.children).filter(i=>i.tagName==="UL"||i.tagName==="OL");for(let i of l)po(i,t+1);}},Qn=e=>{let t=e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li");for(let o of Array.from(t)){let n=o;for(let i of Array.from(n.classList))i.startsWith("ql-align-")&&n.classList.remove(i);let r=n.style.textAlign.trim().toLowerCase(),l=Bn[r];l&&n.classList.add(l);}},ge=e=>Vn(e).replace(/>\s+</g,"><").replace(/&nbsp;/g," "),ht=e=>{let t=e??"";if(!t.trim())return "";let o=co(t);if(!o)return t;let{body:n}=o;return Un(n),$n(n),Kn(n,o),n.innerHTML},bt=e=>{if(!e.trim())return "";let t=co(e);if(!t)return e;let{body:o}=t,n=Array.from(o.querySelectorAll("ul, ol"));for(let r of n)po(r,0);return Qn(o),o.innerHTML};var Xe=e=>{let t="";return e.getEditorState().read(()=>{t=$generateHtmlFromNodes(e,null);}),bt(t)},or=(e,t)=>{let o=ht(t);e.update(()=>{let n=$getRoot();if(n.clear(),!o.trim()){n.append($createParagraphNode());return}let l=new DOMParser().parseFromString(o,"text/html"),i=$generateNodesFromDOM(e,l);if(i.length===0){n.append($createParagraphNode());return}n.select(),$insertNodes(i);});},gt=({value:e,isSyncingRef:t})=>{let[o]=useLexicalComposerContext(),n=useRef(null);return useEffect(()=>{let r=e??"";if(n.current!==null&&ge(r)===ge(n.current))return;let l=Xe(o);ge(l)!==ge(r)&&(t.current=true,or(o,r),queueMicrotask(()=>{t.current=false;})),n.current=r;},[o,t,e]),null};var uo=["left","center","right","justify"];var fo=["bold","italic","underline","strikethrough","code"];var Sr={bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough",code:"code"},Br={left:jsx(AlignLeftIcon,{className:"size-4"}),center:jsx(AlignCenterIcon,{className:"size-4"}),right:jsx(AlignRightIcon,{className:"size-4"}),justify:jsx(AlignJustifyIcon,{className:"size-4"})},zr={left:"Align left",center:"Align center",right:"Align right",justify:"Align justify"},Ae={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:"</>"})},Me={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Inline code"},Vr=e=>{let t=e.textFormat;return t===false?[]:Array.isArray(t)?fo.filter(o=>t.includes(o)):["bold","italic","underline"]},Ur=e=>{let t=e.alignment;return t===false?[]:Array.isArray(t)?uo.filter(o=>t.includes(o)):["left","center","right","justify"]},$r=e=>{if(e.headings===false)return [];let t=Array.isArray(e.headings)?e.headings:["h1","h2","h3"];return [{value:"paragraph",label:"Normal"},...t.map(o=>({value:o,label:o.toUpperCase()}))]},Oe=()=>jsx("div",{className:"mx-1 h-5 w-px bg-neutral-300"}),G=({label:e,onClick:t,icon:o,active:n=false,disabled:r=false})=>jsx("button",{type:"button","aria-label":e,title:e,disabled:r,onClick:t,className:a$1("inline-flex size-8 items-center justify-center rounded-md border border-transparent text-neutral-700 transition-colors","focus-visible:ring-primary-800 hover:bg-neutral-200 focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-40",n&&"border-neutral-300 bg-neutral-200 text-neutral-900"),children:o}),Lt=({config:e,className:t})=>{let[o]=useLexicalComposerContext(),n=useId(),[r,l]=useState(false),[i,s]=useState(false),[a,d]=useState(false),[c,R]=useState(false),[x,g]=useState(false),[u,I]=useState(false),[P,L]=useState(false),[T,y]=useState("paragraph"),[N,b]=useState("left"),E=useMemo(()=>Vr(e),[e]),f=useMemo(()=>Ur(e),[e]),C=useMemo(()=>$r(e),[e]),_=useCallback(()=>{let m=$getSelection();if(!$isRangeSelection(m))return;d(m.hasFormat("bold")),R(m.hasFormat("italic")),g(m.hasFormat("underline")),I(m.hasFormat("strikethrough")),L(m.hasFormat("code"));let M=m.anchor.getNode(),w=M.getKey()==="root"?M:M.getTopLevelElementOrThrow();if($isListNode(w))y(w.getListType()==="number"?"ol":"ul");else {let $=$findMatchingParent(w,K=>$isListNode(K));$isListNode($)?y($.getListType()==="number"?"ol":"ul"):y($isHeadingNode(w)?w.getTag():w.getType());}let A=$isElementNode(w)?w.getFormatType():"";b(A==="center"||A==="right"||A==="justify"?A:"left");},[]);useEffect(()=>mergeRegister(o.registerUpdateListener(({editorState:m})=>{m.read(()=>{_();});}),o.registerCommand(SELECTION_CHANGE_COMMAND,()=>(_(),false),1),o.registerCommand(CAN_UNDO_COMMAND,m=>(l(m),false),1),o.registerCommand(CAN_REDO_COMMAND,m=>(s(m),false),1)),[o,_]);let F=m=>{o.dispatchCommand(FORMAT_TEXT_COMMAND,Sr[m]);},U=m=>{o.update(()=>{let M=$getSelection();if($isRangeSelection(M)){if(m==="paragraph"){$setBlocksType(M,()=>$createParagraphNode());return}$setBlocksType(M,()=>$createHeadingNode(m));}});},h=m=>{if(T===(m==="bullet"?"ul":"ol")){o.dispatchCommand(REMOVE_LIST_COMMAND,void 0);return}o.dispatchCommand(m==="bullet"?INSERT_UNORDERED_LIST_COMMAND:INSERT_ORDERED_LIST_COMMAND,void 0);};return jsxs("div",{className:a$1("flex flex-wrap items-center gap-1 border-b border-neutral-300 bg-neutral-100 px-2 py-1.5",t),children:[e.undoRedo!==false&&jsxs(Fragment,{children:[jsx(G,{label:"Undo",onClick:()=>o.dispatchCommand(UNDO_COMMAND,void 0),disabled:!r,icon:jsx(UndoIcon,{className:"size-4"})}),jsx(G,{label:"Redo",onClick:()=>o.dispatchCommand(REDO_COMMAND,void 0),disabled:!i,icon:jsx(RedoIcon,{className:"size-4"})}),jsx(Oe,{})]}),C.length>0&&jsxs(Fragment,{children:[jsx("label",{className:"sr-only",htmlFor:n,children:"Text style"}),jsx("select",{id:n,value:T.startsWith("h")?T:"paragraph",onChange:m=>U(m.target.value),className:a$1("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:C.map(m=>jsx("option",{value:m.value,children:m.label},m.value))}),jsx(Oe,{})]}),E.length>0&&jsxs(Fragment,{children:[E.includes("bold")&&jsx(G,{label:Me.bold,onClick:()=>F("bold"),icon:Ae.bold,active:a}),E.includes("italic")&&jsx(G,{label:Me.italic,onClick:()=>F("italic"),icon:Ae.italic,active:c}),E.includes("underline")&&jsx(G,{label:Me.underline,onClick:()=>F("underline"),icon:Ae.underline,active:x}),E.includes("strikethrough")&&jsx(G,{label:Me.strikethrough,onClick:()=>F("strikethrough"),icon:Ae.strikethrough,active:u}),E.includes("code")&&jsx(G,{label:Me.code,onClick:()=>F("code"),icon:Ae.code,active:P}),jsx(Oe,{})]}),e.lists!==false&&jsxs(Fragment,{children:[jsx(G,{label:"Bulleted list",onClick:()=>h("bullet"),icon:jsx(ListIcon,{className:"size-4"}),active:T==="ul"}),jsx(G,{label:"Numbered list",onClick:()=>h("number"),icon:jsx(ListOrderedIcon,{className:"size-4"}),active:T==="ol"}),jsx(Oe,{})]}),e.indent!==false&&jsxs(Fragment,{children:[jsx(G,{label:"Decrease indent",onClick:()=>o.dispatchCommand(OUTDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentDecreaseIcon,{className:"size-4"})}),jsx(G,{label:"Increase indent",onClick:()=>o.dispatchCommand(INDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentIncreaseIcon,{className:"size-4"})}),jsx(Oe,{})]}),f.length>0&&jsx(Fragment,{children:f.map(m=>jsx(G,{label:zr[m],onClick:()=>o.dispatchCommand(FORMAT_ELEMENT_COMMAND,m),icon:Br[m],active:N===m},m))})]})};var Co=e=>{if(e!==void 0)return typeof e=="number"?`${e}px`:e},rl=forwardRef(({value:e,onChange:t,onBlur:o,onError:n,placeholder:r="Write your content...",readOnly:l=false,showToolbar:i=true,toolbarConfig:s=pt,className:a,editorClassName:d,toolbarClassName:c,autoFocus:R=false,minHeight:x=160,maxHeight:g,error:u=false,errorMessage:I,editorRef:P},L)=>{let T=useRef(false),y=useMemo(()=>({namespace:"SodtrackRichTextEditor",theme:ct,onError:(b,E)=>{if(n){n(b,E);return}console.error("RichTextEditor error",b);},nodes:[HeadingNode,ListNode,ListItemNode]}),[n]),N={minHeight:Co(x),maxHeight:Co(g),overflowY:g?"auto":void 0};return jsx(LexicalComposer,{initialConfig:y,children:jsxs("div",{className:"w-full",children:[jsxs("div",{ref:L,className:a$1("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",u?"border-error-500 focus-within:border-error-500 focus-within:ring-error-500":"border-neutral-500",l&&"border-neutral-300 bg-neutral-50 focus-within:ring-0",a),"data-error":u,"data-readonly":l,children:[i&&!l&&jsx(Lt,{config:s,className:c}),jsx(RichTextPlugin,{contentEditable:jsx(ContentEditable,{className:a$1("relative w-full px-4 py-3 text-sm leading-[142%] text-neutral-900 outline-none","[&_h1]:mt-2 [&_h1]:mb-2 [&_h2]:mt-2 [&_h2]:mb-2 [&_h3]:mt-2 [&_h3]:mb-2","[&_li]:my-1 [&_ol]:my-2 [&_ul]:my-2","[&_a]:text-primary-700 [&_a]:underline",l&&"cursor-default",d),style:N,onBlur:o,"aria-invalid":u}),placeholder:l?null:jsx("div",{className:"pointer-events-none absolute top-3 left-4 text-sm text-neutral-500",children:r}),ErrorBoundary:LexicalErrorBoundary}),jsx(HistoryPlugin,{}),jsx(ListPlugin,{}),jsx(mt,{readOnly:l}),jsx(gt,{value:e,isSyncingRef:T}),R&&!l&&jsx(AutoFocusPlugin,{}),P&&jsx(ut,{editorRef:P}),jsx(OnChangePlugin,{ignoreSelectionChange:true,onChange:(b,E)=>{!t||T.current||t(Xe(E),b);}})]}),u&&I&&jsx("p",{className:"text-error-500 mt-1 text-xs leading-[133%]",children:I})]})})});rl.displayName="RichTextEditor";var Lo={en:In,es:vn,pt:Tn},ul={es:{clearPhoneNumberLabel:"Eliminar n\xFAmero de tel\xE9fono",searchCountryPlaceholder:"Buscar..."},pt:{clearPhoneNumberLabel:"Limpar n\xFAmero de telefone",searchCountryPlaceholder:"Pesquisar..."}},dl={clearPhoneNumberLabel:"Clear phone number",searchCountryPlaceholder:"Search..."},fl=Lo.en,yo="9 1234 5678",yt="ZZ",Ro=()=>{},Io=e=>ul[e]??dl,vo=e=>Lo[e]??fl,To=e=>{if(e)try{let t=parsePhoneNumber(e)?.country;return !t||!h(t)?void 0:t}catch{return}},Po=e=>{if(e)return getExampleNumber(e,sl)?.formatNational()},Ze=e=>e??yt,Eo=()=>{let e=getDefaultOptions().locale?.code?.split("-")[0];return e==="es"||e==="pt"?e:"en"};var Ll=({Icon:e,callingCode:t,country:o,countryName:n,callingCodeClassName:r})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx("span",{className:"flex size-4.5 shrink-0 items-center justify-center",children:jsx(e,{"aria-hidden":true,country:o,label:n})}),t&&jsx("span",{className:a$1("text-sm leading-[143%] font-medium text-neutral-800",r),children:`+${t}`})]}),No=({"aria-label":e,className:t,disabled:o,error:n,iconComponent:r,name:l,onBlur:i,onChange:s,onFocus:a$2,options:d,readOnly:c,translations:R,value:x})=>{let g=useFieldContext(),u=H.useRef(null),I=H.useId(),[P,L]=H.useState(""),{contains:T}=useFilter({sensitivity:"base"}),y=c$1({disabled:o,error:n,readOnly:c}),N=H.useMemo(()=>d.filter(h$1=>h$1.value!==void 0&&h(h$1.value)).map(h=>({callingCode:getCountryCallingCode(h.value),country:h.value,key:Ze(h.value),label:h.label})),[d]),b=H.useMemo(()=>N.find(h=>h.key===Ze(x)),[N,x]),{collection:E,filter:f,set:C}=useListCollection({initialItems:N,itemToString:h=>h.callingCode?`${h.label} +${h.callingCode}`:h.label,itemToValue:h=>h.key,filter:(h,m,M)=>{let w=m.trim().replace(/^\+/,"");return T(h,m)||(M.country?T(M.country,m.toUpperCase()):false)||(M.callingCode?T(M.callingCode,w)||T(`+${M.callingCode}`,m):false)}});H.useEffect(()=>{C(N);},[N,C]);let _=H.useCallback(({inputValue:h})=>{let m=h??"";L(m),f(m),u.current?.scrollTo({top:0});},[f]),F=H.useCallback(({open:h})=>{h&&(L(""),f(""));},[f]),U=H.useCallback(({value:h$1})=>{let m=h$1[0];if(!m||m===yt){s(void 0);return}h(m)&&s(m);},[s]);return jsxs(Combobox.Root,{className:"h-full shrink-0",collection:E,disabled:o||c,ids:{input:I,label:g.ids.label},inputBehavior:"autohighlight",inputValue:P,lazyMount:true,openOnChange:false,openOnClick:false,positioning:{placement:"bottom-end",offset:{mainAxis:12},sameWidth:false},selectionBehavior:"preserve",unmountOnExit:true,value:b?[b.key]:[],onInputValueChange:_,onOpenChange:F,onValueChange:U,children:[jsx(Combobox.Control,{className:"h-full",children:jsx(Combobox.Trigger,{"aria-label":e,className:a$1("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-['']",y==="error"?"bg-danger-20 after:bg-input-ring-error":y==="disabled"||y==="readOnly"?"after:bg-input-ring-disabled bg-neutral-200":y==="errorReadOnly"?"after:bg-input-ring-error bg-neutral-200":"group-focus-within/phone:after:bg-input-ring-focus after:bg-input-ring data-[state=open]:after:bg-input-ring-focus bg-neutral-200",t),disabled:o||c,focusable:true,name:l,onBlur:i,onFocus:a$2,children:b&&jsx(Ll,{Icon:r,callingCode:b.callingCode,country:b.country,countryName:b.label,callingCodeClassName:a$1(y==="error"&&"text-danger-600",(y==="disabled"||y==="readOnly"||y==="errorReadOnly")&&"text-input-text-disabled")})})}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsxs(Combobox.Content,{className:"elevation-9 z-layer data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 w-75 origin-(--transform-origin) overflow-hidden rounded-sm bg-neutral-50",children:[jsxs("div",{className:"pb-0",children:[jsx(Combobox.Context,{children:h=>jsx(e$1,{className:"m-1 mb-0",size:"md",state:"default",clearAdornment:!o&&h.inputValue.length>0?jsx(a$5,{onClick:()=>{h.setInputValue("","clear-trigger");}}):void 0,indicator:jsx(q,{className:"pointer-events-none size-4.5 text-neutral-800"}),children:m=>jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:R.searchCountryPlaceholder,className:m})})}),jsx(a,{className:"mt-2"})]}),jsx(Combobox.List,{ref:u,className:a$1("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":E.items.length===0}),children:E.items.length===0?jsx(a$8,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:E.items.map(h=>jsxs(Combobox.Item,{item:h,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 [&_.PhoneInputCountryIconImg]:size-4.5!",children:jsx(r,{"aria-hidden":true,country:h.country,label:h.label})}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:h.label}),h.callingCode&&jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:`+${h.callingCode}`}),jsx(k,{className:a$1("ml-auto size-4 shrink-0",h.key===Ze(x)?"opacity-100":"opacity-0")})]},h.key))})})]})})})]})};var Rl=yl,Ao=H.forwardRef(({className:e,defaultCountry:t,disabled:o,error:n,helperText:r,id:l,label:i,labelProps:s,onChange:a=Ro,placeholder:d$1,readOnly:c,required:R,value:x,...g},u)=>{let[I,P]=H.useState(()=>To(x)??t),L=H.useRef(null),T=Eo(),y=c$1({disabled:o,error:n,readOnly:c}),N=H.useMemo(()=>Io(T),[T]),b=H.useMemo(()=>vo(T),[T]),E=H.useMemo(()=>Po(I)??d$1??yo,[d$1,I]),f=H.useCallback(F=>{P(F);},[]),C=H.useCallback(F=>{L.current=F,typeof u=="function"?u(F):u&&(u.current=F);},[u]),_=H.useCallback(()=>{a(void 0),L.current?.focus();},[a]);return jsxs(Field.Root,{"data-error":d(y)||void 0,disabled:o,id:l,invalid:n,readOnly:c,className:a$1(b$1,e),children:[i&&jsx(c$2,{...s,as:Field.Label,label:i,required:R}),jsx(e$1,{state:y,className:"group/phone pl-0 [&_.PhoneInputCountryIconImg]:size-4.5!",clearAdornment:x?jsx(a$5,{ariaLabel:N.clearPhoneNumberLabel,onClick:_}):void 0,children:F=>jsx(Rl,{...g,className:"contents",ref:C,countrySelectComponent:No,countrySelectProps:{error:n,translations:N},defaultCountry:t,disabled:o,flagComponent:a$7,initialValueFormat:"national",inputComponent:Field.Input,labels:b,numberInputProps:{"aria-required":R||void 0,className:a$1(F,"pl-3"),placeholder:E},readOnly:c,value:x,onChange:a,onCountryChange:f})}),r&&jsx(a$6,{as:n?Field.ErrorText:Field.HelperText,children:r})]})});Ao.displayName="PhoneInput";var vl=({children:e,hasDescription:t=false,disabled:o=false,hasDivider:n=false,className:r,isSelected:l,onClick:i,...s})=>jsxs(Fragment,{children:[jsx("div",{className:a$1("flex flex-row px-3 py-4 text-neutral-900 transition-colors",t?"py-3":"py-3.5",o?"cursor-not-allowed text-neutral-400":a$1("hover:bg-primary-100 focus:bg-primary-200",!!i?"cursor-pointer":"cursor-default"),l&&"bg-primary-200",r),onClick:d=>{o||i?.(d);},...s,children:e}),n&&jsx(a,{})]}),te=vl;var su=({children:e,title:t,titleLines:o,description:n="",descriptionLines:r,startIcon:l,endIcon:i,hasDivider:s=false,disabled:a=false,isSelected:d=false,className:c,...R})=>jsxs(te,{hasDescription:!!n,disabled:a,hasDivider:s,className:c,isSelected:d,...R,children:[l&&H__default.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ce,{title:t,titleLines:o,description:n,descriptionLines:r,disabled:a}),i&&H__default.cloneElement(i,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{Kl as a,su as b,li as c,fi as d,Rs as e,ao as f,ma as g,Ra as h,ct as i,pt as j,ge as k,ht as l,bt as m,rl as n,Ao as o};
@@ -0,0 +1 @@
1
+ import {d}from'./chunk-WAUY2MS6.js';import {a as a$4}from'./chunk-MOFC3UHC.js';import {a as a$1}from'./chunk-XYBXEU3T.js';import {c,e,a as a$2,b,d as d$1}from'./chunk-MQL3NZ6S.js';import {a as a$3}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-QZUQ6AZK.js';import {k}from'./chunk-QMPBFFFC.js';import {c as c$2}from'./chunk-C7TLKKPT.js';import {a}from'./chunk-OBZIYJO7.js';import {useListCollection,Combobox}from'@ark-ui/react/combobox';import {useAsyncList}from'@ark-ui/react/collection';import {useFilter,useLocaleContext}from'@ark-ui/react/locale';import {Portal}from'@ark-ui/react/portal';import {useMemo,useRef,useEffect,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var fe=300,xe=10,he=c=>c?.startsWith("es")?{loading:"Cargando...",noData:"A\xFAn no hay informaci\xF3n"}:c?.startsWith("pt")?{loading:"Carregando...",noData:"Nenhuma informa\xE7\xE3o dispon\xEDvel ainda"}:{loading:"Loading...",noData:"No information available yet"},Ce=c$3=>{let{label:ee,labelProps:te,value:s,onValueChange:w,placeholder:oe,error:I,required:E,disabled:p,readOnly:h,options:R,load:a$5,helperText:ne,emptyState:V,optionDescriptionLines:P=1,clearable:re=true,growable:d$2=true,className:le}=c$3,ae=useMemo(()=>({sensitivity:"base"}),[]),{contains:k$1}=useFilter(ae),ie=useLocaleContext(),D=he(ie.locale),C=useRef(null),q=useRef(null),z=useRef(""),v=useRef(void 0),y=useRef(false),l=useAsyncList({load:async e=>{if(!a$5)return {items:[]};let t=e.cursor??1,n=await a$5({query:e.filterText,page:t,pageSize:xe,signal:e.signal});return {items:n.options,cursor:n.hasMore?t+1:void 0}},onSuccess:()=>{y.current&&(y.current=false,C.current?.scrollTo({top:0}));}}),g=useRef(l);g.current=l;let T=useMemo(()=>{let e=R??l.items;if(!s.length)return e;let t=new Set(e.map(A=>A.value)),n=s.filter(A=>!t.has(A.value));return n.length?[...n,...e]:e},[l.items,R,s]),M=a$5?l.items:T,b$1=useMemo(()=>new Map(T.map(e=>[String(e.value),e])),[T]),B=useMemo(()=>s.map(e=>b$1.get(String(e.value))??e),[b$1,s]),{collection:H,filter:f,set:F}=useListCollection({initialItems:M,itemToString:e=>e.label,itemToValue:e=>String(e.value),filter:(e,t,n)=>k$1(e,t)||!!n.description&&k$1(n.description,t)}),_=l.hasMore&&!l.loading&&!l.error,O=c({error:!!I,disabled:p,readOnly:h});useEffect(()=>{F(M),f(z.current);},[M,f,F]),useEffect(()=>()=>clearTimeout(v.current),[]),useEffect(()=>{let e=q.current;if(!e||!_)return;let t=new IntersectionObserver(n=>{n[0]?.isIntersecting&&g.current.loadMore();},{root:C.current,rootMargin:"0px 0px 64px 0px"});return t.observe(e),()=>t.disconnect()},[_]);let se=useCallback(e=>{a$5?(clearTimeout(v.current),v.current=setTimeout(()=>{let t=g.current;t.filterText===e.inputValue&&!t.empty||(y.current=true,t.setFilterText(e.inputValue));},fe)):(z.current=e.inputValue,f(e.inputValue));},[f,a$5]),ue=useCallback(e=>{let t=g.current;e.open&&a$5&&e.reason!=="input-change"&&t.empty&&!t.loading&&t.reload();},[a$5]),pe=useCallback(e=>{w(e.value.flatMap(t=>b$1.get(t)??[]));},[w,b$1]);return jsxs(Combobox.Root,{collection:H,value:s.map(e=>String(e.value)),onInputValueChange:se,onOpenChange:ue,onValueChange:pe,multiple:true,inputBehavior:"none",openOnClick:true,invalid:!!I,disabled:p,readOnly:h,"data-disabled":O==="disabled"?"":void 0,"data-error":d$1(O)||void 0,className:a(b,le),children:[jsx(c$1,{...te,as:Combobox.Label,label:ee,required:E}),jsx(Combobox.Context,{children:e$1=>jsx(e,{as:Combobox.Control,className:a(d$2&&"h-auto min-h-(--height-input) items-start",!d$2&&"overflow-hidden",p&&"cursor-not-allowed"),state:O,trailingClassName:d$2?"self-start py-2":void 0,clearAdornment:re&&s.length>0?jsx(a$2,{as:Combobox.ClearTrigger,onClick:t=>t.stopPropagation()}):void 0,indicator:jsx(Combobox.Trigger,{className:"group/chevron-host cursor-pointer group-data-disabled/control:cursor-not-allowed",children:jsx(a$1,{})}),children:t=>jsxs("div",{className:a("flex min-w-0 flex-1 items-center gap-1 py-2",d$2?"flex-wrap":"h-full overflow-hidden"),children:[B.map(n=>jsx(d,{color:"neutral",variant:"fill",size:"md",className:a("max-w-full shrink-0 [&>button]:shrink-0",p&&"bg-neutral-50 text-neutral-600 ring-neutral-600 hover:bg-neutral-50"),disabled:p,hasCloseIcon:!h&&!p,onClose:()=>{e$1.clearValue(String(n.value));},children:jsx("span",{className:"truncate",children:n.label})},String(n.value))),jsx(Combobox.Input,{className:a(t,"h-auto px-0 py-0 disabled:cursor-not-allowed"),"aria-required":E||void 0,placeholder:B.length===0?oe:""})]})})}),jsx(a$3,{children:ne}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsxs(Combobox.Content,{ref:C,"aria-busy":l.loading||void 0,className:"elevation-9 z-layer bg-input-bg max-h-67.5 w-(--reference-width) overflow-auto rounded-lg",children:[jsxs(Combobox.ItemGroup,{children:[H.items.map(e=>jsx(Combobox.Item,{item:e,className:"data-highlighted:bg-primary-100 cursor-pointer data-disabled:cursor-not-allowed",children:jsx(Combobox.ItemContext,{children:({selected:t,disabled:n})=>jsxs("div",{className:a("font-inter flex flex-row items-center px-3 py-3.5 text-neutral-900 transition-colors","data-highlighted:bg-primary-100",e.description&&"py-3",n?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100"),children:[jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[jsx(Combobox.ItemText,{className:"text-sm leading-[130%] font-medium",children:e.label}),e.description&&jsx("p",{className:"text-xs leading-[130%] text-neutral-700",style:P?{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:P,WebkitBoxOrient:"vertical"}:void 0,children:e.description})]}),jsx("div",{className:a("ml-4 flex size-4.5 shrink-0 items-center justify-center rounded-sm transition-colors ring-inset",t?"bg-primary-600":"bg-neutral-50 ring-1 ring-neutral-600",n&&(t?"bg-neutral-400":"bg-neutral-100 ring-neutral-300")),children:t&&jsx(k,{className:"size-3.5 text-neutral-50"})})]})})},String(e.value))),!l.loading&&jsx(Combobox.Empty,{className:"flex flex-col items-center justify-center",children:jsx(Combobox.Context,{children:e=>(a$5?l.filterText:e.inputValue).trim()?jsx(a$4,{size:"sm",variant:"not-found",...V}):jsx(a$4,{size:"sm",...V,variant:"empty",title:D.noData,description:""})})})]}),l.loading&&jsxs("div",{role:"status",className:"font-inter flex items-center justify-center gap-3 px-3 py-4 text-sm font-medium text-neutral-900",children:[jsx(c$2,{size:"md"}),D.loading]}),a$5&&jsx("div",{ref:q,className:"h-px"})]})})})]})};Ce.displayName="AutocompleteMultiple";export{Ce as a};
@@ -1,2 +1,2 @@
1
- import {e}from'./chunk-Y3ZZYSKX.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var r='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="116" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.595 118.918c-28.848 0-52.234-23.533-52.234-52.564s23.386-52.563 52.234-52.563 52.234 23.533 52.234 52.563-23.386 52.564-52.234 52.564"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M106.662 24.929q.031-.368.031-.745c0-4.758-3.838-8.62-8.566-8.62-4.068 0-7.478 2.86-8.35 6.688a6.8 6.8 0 0 0-2.112-.333c-3.783 0-6.854 3.09-6.854 6.897s3.071 6.897 6.854 6.897h18.649c2.96 0 5.364-2.418 5.364-5.398 0-2.861-2.218-5.206-5.016-5.386" clip-rule="evenodd"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M115.385 99.846H10.792a.615.615 0 0 1-.613-.618c0-.34.275-.617.613-.617h104.593c.339 0 .614.276.614.617a.616.616 0 0 1-.614.618m-108.693 0H.614A.616.616 0 0 1 0 99.228c0-.34.275-.617.614-.617h6.078c.338 0 .613.276.613.617a.615.615 0 0 1-.613.618" clip-rule="evenodd"/><path fill="%23f3f6f5" fill-rule="evenodd" d="M12.48 12.2a6 6 0 0 1-.02-.475c0-3.035 2.448-5.499 5.464-5.499 2.595 0 4.77 1.824 5.326 4.266a4.4 4.4 0 0 1 1.347-.212c2.413 0 4.372 1.971 4.372 4.4 0 2.428-1.96 4.399-4.372 4.399H12.702c-1.889 0-3.422-1.543-3.422-3.444a3.436 3.436 0 0 1 3.2-3.435" clip-rule="evenodd"/><path fill="%23f3f6f5" d="m94.572 72.734-6.26 10.92-10.218 2.765-11.414 3.073-7.13 1.918-.045-.061a4.43 4.43 0 0 0 3.81-3.282l11.722-44.01-6.26-10.92-9.7-2.614 18.352-4.948c2.348-.638 4.798.787 5.418 3.152z"/><path fill="%23fff" d="m58.553 30.39 10.223 2.755 6.263 10.919-4.013 15.072-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.631 2.372-3.071 3.787-5.425 3.153l-33.04-8.91c-2.353-.632-3.762-3.09-3.132-5.458l5.89-22.116 1.18-4.437 5.795-21.764c.631-2.367 3.073-3.785 5.426-3.152l18.54 5.001Z"/><path fill="%23cfd9d7" d="m88.31 83.66-2.294-8.612 8.557-2.307-6.264 10.92ZM68.776 33.139l-2.295 8.618 8.558 2.307z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m35.057 60.641 23.056 6.217a.808.808 0 0 0 .415-1.56l-23.056-6.216a.808.808 0 0 0-.415 1.56Zm2.197-8.253 23.056 6.215a.8.8 0 0 0 .982-.57.81.81 0 0 0-.567-.99L37.669 50.83a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Zm5.349 19.13 1.666.45a.808.808 0 0 0 .415-1.56l-1.666-.45a.808.808 0 0 0-.415 1.56m-9.743-2.626 5.855 1.578a.808.808 0 0 0 .415-1.56l-5.855-1.577a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="M57.652 39.047a1 1 0 0 1-.234-.031c-3.279-.886-5.232-4.292-4.354-7.591l1.588-5.963.02-.064c.674-2.32 3.063-3.69 5.375-3.07a4.38 4.38 0 0 1 2.672 2.069 4.42 4.42 0 0 1 .443 3.36l-1.588 5.963a2.65 2.65 0 0 1-1.236 1.62 2.62 2.62 0 0 1-2.014.267 2.64 2.64 0 0 1-1.61-1.244 2.66 2.66 0 0 1-.264-2.024l1.587-5.963a.897.897 0 0 1 1.102-.64c.48.129.765.626.636 1.109l-1.587 5.962a.86.86 0 0 0 .602 1.051.855.855 0 0 0 1.046-.607l1.587-5.962a2.62 2.62 0 0 0-.263-1.987 2.6 2.6 0 0 0-1.58-1.224c-1.362-.366-2.828.498-3.199 1.89l-.014.047-1.565 5.879c-.622 2.335.76 4.745 3.082 5.372a.906.906 0 0 1-.232 1.781"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M93.71 72.62 82.07 28.934c-.506-1.936-2.512-3.1-4.432-2.579l-7.466 2.014a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.463-2.012c2.774-.754 5.67.93 6.402 3.722l11.724 44.007a.8.8 0 0 1-.08.613l-6.26 10.92a.8.8 0 0 1-.487.375L78.302 87.2l-11.415 3.073-7.13 1.918a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.13-1.918 11.413-3.072 9.897-2.68z" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m70.252 58.927-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.517 1.943-2.515 3.102-4.443 2.582l-33.04-8.91c-1.927-.518-3.08-2.53-2.564-4.469a.802.802 0 1 0-1.55-.418c-.744 2.797.92 5.7 3.7 6.446l33.039 8.91c2.78.75 5.662-.922 6.408-3.723l3.257-12.233 1.199-4.501.59-2.217 2.66-9.986a.802.802 0 1 0-1.55-.418M28.389 54.95l1.18-4.437 5.795-21.764c.517-1.938 2.516-3.1 4.444-2.58l10.029 2.705a.807.807 0 0 0 .416-1.56l-10.03-2.705c-2.78-.749-5.663.926-6.408 3.722L28.02 50.095l-1.181 4.438c-.114.43.14.873.567.988a.803.803 0 0 0 .983-.57Z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.595" x2="56.595" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116v100H0z"/></clipPath></defs></svg>';var c='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M57.084 118.918c-29.097 0-52.685-23.533-52.685-52.564s23.588-52.563 52.685-52.563 52.685 23.533 52.685 52.564-23.588 52.563-52.685 52.563"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M107.584 24.93q.031-.369.031-.745c0-4.758-3.871-8.62-8.64-8.62a8.644 8.644 0 0 0-8.421 6.688 7 7 0 0 0-2.13-.334c-3.816 0-6.913 3.09-6.913 6.898s3.097 6.897 6.913 6.897h18.809c2.986 0 5.411-2.419 5.411-5.398 0-2.862-2.237-5.207-5.06-5.387M116.38 99.846H10.886a.618.618 0 1 1 0-1.234H116.38c.342 0 .62.276.62.617a.62.62 0 0 1-.62.617M6.75 99.846H.62A.62.62 0 0 1 0 99.23c0-.34.278-.617.62-.617h6.13a.618.618 0 1 1 0 1.234" clip-rule="evenodd"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M12.587 12.2a6 6 0 0 1-.02-.475c0-3.035 2.47-5.499 5.511-5.499a5.51 5.51 0 0 1 5.373 4.266 4.4 4.4 0 0 1 1.358-.212 4.407 4.407 0 0 1 4.41 4.4c0 2.428-1.976 4.399-4.41 4.399H12.811a3.45 3.45 0 0 1-3.451-3.444 3.45 3.45 0 0 1 3.227-3.435" clip-rule="evenodd"/><path fill="%23fff" d="M50.685 25.551c-14.513 0-26.286 11.745-26.286 26.226s11.773 26.211 26.286 26.211c5.137 0 9.913-1.467 13.953-4.004a26.1 26.1 0 0 0 8.32-8.3c2.527-4.031 4-8.808 4-13.907 0-14.481-11.759-26.226-26.273-26.226m-.003 46.986c-11.471 0-20.808-9.314-20.808-20.762 0-11.447 9.336-20.761 20.808-20.761 11.476 0 20.811 9.314 20.811 20.761 0 11.448-9.335 20.762-20.81 20.762"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M50.682 71.627c-10.97 0-19.897-8.906-19.897-19.852s8.927-19.852 19.897-19.852c10.973 0 19.9 8.907 19.9 19.852a.911.911 0 0 0 1.823 0c0-11.949-9.745-21.671-21.723-21.671-11.975 0-21.72 9.722-21.72 21.67 0 11.95 9.746 21.672 21.72 21.672a.91.91 0 0 0 .912-.91.91.91 0 0 0-.912-.91" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M23.487 51.777c0 14.982 12.181 27.12 27.198 27.12a27.04 27.04 0 0 0 14.438-4.143 27.04 27.04 0 0 0 8.609-8.59 27.04 27.04 0 0 0 4.137-14.387c0-14.984-12.167-27.136-27.184-27.136a.91.91 0 0 0-.912.91c0 .502.408.91.911.91 14.011 0 25.362 11.337 25.362 25.316A25.23 25.23 0 0 1 72.185 65.2a25.2 25.2 0 0 1-8.031 8.012 25.23 25.23 0 0 1-13.47 3.865c-14.009 0-25.373-11.324-25.373-25.301a.911.911 0 0 0-1.824 0" clip-rule="evenodd"/><path fill="%23e1e7e6" d="M68.494 80.954 79.17 91.42c3.144 3.136 8.289 3.136 11.435 0 3.145-3.139 3.145-8.272 0-11.41L79.928 69.544z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m69.789 80.949 10.025 9.826c2.79 2.783 7.354 2.783 10.146 0a7.14 7.14 0 0 0 2.059-5.748.91.91 0 0 1 1.815-.172 8.96 8.96 0 0 1-2.585 7.207c-3.501 3.49-9.226 3.49-12.718.006L67.855 81.603a.906.906 0 0 1-.006-1.291L79.283 68.9a.914.914 0 0 1 1.285-.006l3.4 3.334c.359.352.364.928.01 1.286a.914.914 0 0 1-1.288.012l-2.756-2.701z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="m78.495 70.969-8.574 8.567-5.417-5.418.134-.134a26.1 26.1 0 0 0 8.32-8.3l.12-.12z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M73.204 66.977a27.1 27.1 0 0 1-8.084 7.779.91.91 0 1 1-.966-1.543 25.2 25.2 0 0 0 8.03-8.01 1 1 0 0 1 .13-.163l.12-.12a.913.913 0 0 1 1.288.001l5.416 5.404a.91.91 0 0 1 0 1.286l-8.573 8.568a.913.913 0 0 1-1.289.001.91.91 0 0 1-.001-1.287l7.93-7.924z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="57.084" x2="57.084" y1="115.671" y2="13.791" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h117v100H0z"/></clipPath></defs></svg>';var s='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%2396dcb4" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%234fa271" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23bfe9d1" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%236ecf96" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%234fa271" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" fill-rule="evenodd" d="m55.436 65.185 14.64-17.738a2.472 2.472 0 0 1 3.812 3.147L57.518 70.429a2.474 2.474 0 0 1-3.655.174L42.948 59.687a2.47 2.47 0 1 1 3.495-3.495z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23abe3c2"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var p='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%23f18585" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%23d34747" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23f6b4b4" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%23f18585" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%23d34747" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" d="M57.512 45.853a3.5 3.5 0 0 1 1.623.077q1.816.465 2.473 2.203.155.58-.077 2.396l-.889 5.758q-1.081 7.034-1.353 7.266-.27.116-1.855.039-.31 0-.347-.04-.194-.115-.348-.888-.116-.696-1.005-6.377-1.12-7.343-1.044-7.845 0-.077.078-.309.502-1.623 2.357-2.164.194-.078.387-.116m.038 20.25q.657-.154 1.508.078 1.7.425 2.357 2.087.116.193.155.425a3.3 3.3 0 0 1 0 1.739q-.465 1.778-2.165 2.396-.192.078-.347.116a3.3 3.3 0 0 1-1.74 0q-1.777-.464-2.396-2.164a3.318 3.318 0 0 1-.116-2.087q.31-1.16 1.16-1.817.657-.54 1.584-.772"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23f39d9d"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var H=t=>t?.startsWith("es")?{documentsTitle:"Nada por aqu\xED todav\xEDa",documentsDescription:"Agrega un nuevo elemento para comenzar",notFoundTitle:"No se encontraron resultados",notFoundDescription:"Ajusta los criterios e int\xE9ntalo nuevamente",doneTitle:"\xA1Est\xE1s al d\xEDa!",doneDescription:"No hay elementos que completar",contentEmptyAlt:"Contenido vac\xEDo"}:t?.startsWith("pt")?{documentsTitle:"Nada aqui ainda",documentsDescription:"Adicione um novo item para come\xE7ar",notFoundTitle:"N\xE3o foram encontrados resultados",notFoundDescription:"Ajuste os crit\xE9rios e tente novamente",doneTitle:"Voc\xEA est\xE1 em dia!",doneDescription:"N\xE3o h\xE1 itens para concluir",contentEmptyAlt:"Conte\xFAdo vazio"}:{documentsTitle:"Nothing here yet",documentsDescription:"Add a new item to get started",notFoundTitle:"No results were found",notFoundDescription:"Adjust the criteria and try again",doneTitle:"You're all caught up!",doneDescription:"Nothing left to complete",contentEmptyAlt:"Content empty"},D=t=>{switch(t){case "lg":return {width:233.46,height:200};case "md":return {width:175.09,height:150};case "sm":return {width:116,height:100}}},N=tv({slots:{root:"font-inter flex h-fit w-fit flex-col items-center p-6 pt-10 text-neutral-600",title:"mt-4.5 text-center font-semibold",description:"font-inter mt-0.5 text-center"},variants:{size:{lg:{title:"font-jakarta text-lg leading-[156%]",description:"text-base leading-[150%] font-medium"},md:{title:"text-base leading-[150%]",description:"text-sm leading-[143%]"},sm:{title:"text-sm leading-[143%]",description:"text-sm leading-[143%]"}},variant:{empty:{},"not-found":{},done:{title:"text-success-700",description:"text-success-700"},danger:{title:"text-danger-700",description:"text-danger-700"}}}}),P=(t,e)=>{switch(t.variant){case "danger":return {title:t.title,description:t.description,imgUrl:p};case "not-found":return {title:t.title??e.notFoundTitle,description:t.description??e.notFoundDescription,imgUrl:c};case "done":return {title:t.title??e.doneTitle,description:t.description??e.doneDescription,imgUrl:s};default:return {title:t.title??e.documentsTitle,description:t.description??e.documentsDescription,imgUrl:r}}},k=t=>{let{actions:e$1,areActionsHidden:m=false,size:l="sm",className:u}=t,h=t.variant??"empty",{locale:g}=getDefaultOptions(),{root:v,title:y,description:b}=N({size:l,variant:h}),o=H(g?.code),a=P(t,o),{width:M,height:S}=D(l),d=l==="sm"?"sm":"lg";return jsxs("div",{className:v({className:u}),children:[jsx("img",{alt:o.contentEmptyAlt,width:M,height:S,src:a.imgUrl}),jsx("p",{className:y(),children:a.title}),jsx("p",{className:b(),children:a.description}),e$1&&!m&&jsxs("div",{className:"mt-4.5 flex gap-3",children:[e$1.secondary&&jsx(e,{...e$1.secondary,variant:"light",tone:"primary",size:d}),jsx(e,{...e$1.primary,variant:"secondary",tone:"primary",size:d})]})]})};
1
+ import {e}from'./chunk-Y3ZZYSKX.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var r='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="116" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.595 118.918c-28.848 0-52.234-23.533-52.234-52.564s23.386-52.563 52.234-52.563 52.234 23.533 52.234 52.563-23.386 52.564-52.234 52.564"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M106.662 24.929q.031-.368.031-.745c0-4.758-3.838-8.62-8.566-8.62-4.068 0-7.478 2.86-8.35 6.688a6.8 6.8 0 0 0-2.112-.333c-3.783 0-6.854 3.09-6.854 6.897s3.071 6.897 6.854 6.897h18.649c2.96 0 5.364-2.418 5.364-5.398 0-2.861-2.218-5.206-5.016-5.386" clip-rule="evenodd"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M115.385 99.846H10.792a.615.615 0 0 1-.613-.618c0-.34.275-.617.613-.617h104.593c.339 0 .614.276.614.617a.616.616 0 0 1-.614.618m-108.693 0H.614A.616.616 0 0 1 0 99.228c0-.34.275-.617.614-.617h6.078c.338 0 .613.276.613.617a.615.615 0 0 1-.613.618" clip-rule="evenodd"/><path fill="%23f3f6f5" fill-rule="evenodd" d="M12.48 12.2a6 6 0 0 1-.02-.475c0-3.035 2.448-5.499 5.464-5.499 2.595 0 4.77 1.824 5.326 4.266a4.4 4.4 0 0 1 1.347-.212c2.413 0 4.372 1.971 4.372 4.4 0 2.428-1.96 4.399-4.372 4.399H12.702c-1.889 0-3.422-1.543-3.422-3.444a3.436 3.436 0 0 1 3.2-3.435" clip-rule="evenodd"/><path fill="%23f3f6f5" d="m94.572 72.734-6.26 10.92-10.218 2.765-11.414 3.073-7.13 1.918-.045-.061a4.43 4.43 0 0 0 3.81-3.282l11.722-44.01-6.26-10.92-9.7-2.614 18.352-4.948c2.348-.638 4.798.787 5.418 3.152z"/><path fill="%23fff" d="m58.553 30.39 10.223 2.755 6.263 10.919-4.013 15.072-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.631 2.372-3.071 3.787-5.425 3.153l-33.04-8.91c-2.353-.632-3.762-3.09-3.132-5.458l5.89-22.116 1.18-4.437 5.795-21.764c.631-2.367 3.073-3.785 5.426-3.152l18.54 5.001Z"/><path fill="%23cfd9d7" d="m88.31 83.66-2.294-8.612 8.557-2.307-6.264 10.92ZM68.776 33.139l-2.295 8.618 8.558 2.307z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m35.057 60.641 23.056 6.217a.808.808 0 0 0 .415-1.56l-23.056-6.216a.808.808 0 0 0-.415 1.56Zm2.197-8.253 23.056 6.215a.8.8 0 0 0 .982-.57.81.81 0 0 0-.567-.99L37.669 50.83a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Zm5.349 19.13 1.666.45a.808.808 0 0 0 .415-1.56l-1.666-.45a.808.808 0 0 0-.415 1.56m-9.743-2.626 5.855 1.578a.808.808 0 0 0 .415-1.56l-5.855-1.577a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="M57.652 39.047a1 1 0 0 1-.234-.031c-3.279-.886-5.232-4.292-4.354-7.591l1.588-5.963.02-.064c.674-2.32 3.063-3.69 5.375-3.07a4.38 4.38 0 0 1 2.672 2.069 4.42 4.42 0 0 1 .443 3.36l-1.588 5.963a2.65 2.65 0 0 1-1.236 1.62 2.62 2.62 0 0 1-2.014.267 2.64 2.64 0 0 1-1.61-1.244 2.66 2.66 0 0 1-.264-2.024l1.587-5.963a.897.897 0 0 1 1.102-.64c.48.129.765.626.636 1.109l-1.587 5.962a.86.86 0 0 0 .602 1.051.855.855 0 0 0 1.046-.607l1.587-5.962a2.62 2.62 0 0 0-.263-1.987 2.6 2.6 0 0 0-1.58-1.224c-1.362-.366-2.828.498-3.199 1.89l-.014.047-1.565 5.879c-.622 2.335.76 4.745 3.082 5.372a.906.906 0 0 1-.232 1.781"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M93.71 72.62 82.07 28.934c-.506-1.936-2.512-3.1-4.432-2.579l-7.466 2.014a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.463-2.012c2.774-.754 5.67.93 6.402 3.722l11.724 44.007a.8.8 0 0 1-.08.613l-6.26 10.92a.8.8 0 0 1-.487.375L78.302 87.2l-11.415 3.073-7.13 1.918a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.13-1.918 11.413-3.072 9.897-2.68z" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m70.252 58.927-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.517 1.943-2.515 3.102-4.443 2.582l-33.04-8.91c-1.927-.518-3.08-2.53-2.564-4.469a.802.802 0 1 0-1.55-.418c-.744 2.797.92 5.7 3.7 6.446l33.039 8.91c2.78.75 5.662-.922 6.408-3.723l3.257-12.233 1.199-4.501.59-2.217 2.66-9.986a.802.802 0 1 0-1.55-.418M28.389 54.95l1.18-4.437 5.795-21.764c.517-1.938 2.516-3.1 4.444-2.58l10.029 2.705a.807.807 0 0 0 .416-1.56l-10.03-2.705c-2.78-.749-5.663.926-6.408 3.722L28.02 50.095l-1.181 4.438c-.114.43.14.873.567.988a.803.803 0 0 0 .983-.57Z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.595" x2="56.595" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116v100H0z"/></clipPath></defs></svg>';var c='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M57.084 118.918c-29.097 0-52.685-23.533-52.685-52.564s23.588-52.563 52.685-52.563 52.685 23.533 52.685 52.564-23.588 52.563-52.685 52.563"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M107.584 24.93q.031-.369.031-.745c0-4.758-3.871-8.62-8.64-8.62a8.644 8.644 0 0 0-8.421 6.688 7 7 0 0 0-2.13-.334c-3.816 0-6.913 3.09-6.913 6.898s3.097 6.897 6.913 6.897h18.809c2.986 0 5.411-2.419 5.411-5.398 0-2.862-2.237-5.207-5.06-5.387M116.38 99.846H10.886a.618.618 0 1 1 0-1.234H116.38c.342 0 .62.276.62.617a.62.62 0 0 1-.62.617M6.75 99.846H.62A.62.62 0 0 1 0 99.23c0-.34.278-.617.62-.617h6.13a.618.618 0 1 1 0 1.234" clip-rule="evenodd"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M12.587 12.2a6 6 0 0 1-.02-.475c0-3.035 2.47-5.499 5.511-5.499a5.51 5.51 0 0 1 5.373 4.266 4.4 4.4 0 0 1 1.358-.212 4.407 4.407 0 0 1 4.41 4.4c0 2.428-1.976 4.399-4.41 4.399H12.811a3.45 3.45 0 0 1-3.451-3.444 3.45 3.45 0 0 1 3.227-3.435" clip-rule="evenodd"/><path fill="%23fff" d="M50.685 25.551c-14.513 0-26.286 11.745-26.286 26.226s11.773 26.211 26.286 26.211c5.137 0 9.913-1.467 13.953-4.004a26.1 26.1 0 0 0 8.32-8.3c2.527-4.031 4-8.808 4-13.907 0-14.481-11.759-26.226-26.273-26.226m-.003 46.986c-11.471 0-20.808-9.314-20.808-20.762 0-11.447 9.336-20.761 20.808-20.761 11.476 0 20.811 9.314 20.811 20.761 0 11.448-9.335 20.762-20.81 20.762"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M50.682 71.627c-10.97 0-19.897-8.906-19.897-19.852s8.927-19.852 19.897-19.852c10.973 0 19.9 8.907 19.9 19.852a.911.911 0 0 0 1.823 0c0-11.949-9.745-21.671-21.723-21.671-11.975 0-21.72 9.722-21.72 21.67 0 11.95 9.746 21.672 21.72 21.672a.91.91 0 0 0 .912-.91.91.91 0 0 0-.912-.91" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M23.487 51.777c0 14.982 12.181 27.12 27.198 27.12a27.04 27.04 0 0 0 14.438-4.143 27.04 27.04 0 0 0 8.609-8.59 27.04 27.04 0 0 0 4.137-14.387c0-14.984-12.167-27.136-27.184-27.136a.91.91 0 0 0-.912.91c0 .502.408.91.911.91 14.011 0 25.362 11.337 25.362 25.316A25.23 25.23 0 0 1 72.185 65.2a25.2 25.2 0 0 1-8.031 8.012 25.23 25.23 0 0 1-13.47 3.865c-14.009 0-25.373-11.324-25.373-25.301a.911.911 0 0 0-1.824 0" clip-rule="evenodd"/><path fill="%23e1e7e6" d="M68.494 80.954 79.17 91.42c3.144 3.136 8.289 3.136 11.435 0 3.145-3.139 3.145-8.272 0-11.41L79.928 69.544z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m69.789 80.949 10.025 9.826c2.79 2.783 7.354 2.783 10.146 0a7.14 7.14 0 0 0 2.059-5.748.91.91 0 0 1 1.815-.172 8.96 8.96 0 0 1-2.585 7.207c-3.501 3.49-9.226 3.49-12.718.006L67.855 81.603a.906.906 0 0 1-.006-1.291L79.283 68.9a.914.914 0 0 1 1.285-.006l3.4 3.334c.359.352.364.928.01 1.286a.914.914 0 0 1-1.288.012l-2.756-2.701z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="m78.495 70.969-8.574 8.567-5.417-5.418.134-.134a26.1 26.1 0 0 0 8.32-8.3l.12-.12z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M73.204 66.977a27.1 27.1 0 0 1-8.084 7.779.91.91 0 1 1-.966-1.543 25.2 25.2 0 0 0 8.03-8.01 1 1 0 0 1 .13-.163l.12-.12a.913.913 0 0 1 1.288.001l5.416 5.404a.91.91 0 0 1 0 1.286l-8.573 8.568a.913.913 0 0 1-1.289.001.91.91 0 0 1-.001-1.287l7.93-7.924z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="57.084" x2="57.084" y1="115.671" y2="13.791" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h117v100H0z"/></clipPath></defs></svg>';var s='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%2396dcb4" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%234fa271" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23bfe9d1" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%236ecf96" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%234fa271" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" fill-rule="evenodd" d="m55.436 65.185 14.64-17.738a2.472 2.472 0 0 1 3.812 3.147L57.518 70.429a2.474 2.474 0 0 1-3.655.174L42.948 59.687a2.47 2.47 0 1 1 3.495-3.495z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23abe3c2"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var p='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%23f18585" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%23d34747" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23f6b4b4" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%23f18585" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%23d34747" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" d="M57.512 45.853a3.5 3.5 0 0 1 1.623.077q1.816.465 2.473 2.203.155.58-.077 2.396l-.889 5.758q-1.081 7.034-1.353 7.266-.27.116-1.855.039-.31 0-.347-.04-.194-.115-.348-.888-.116-.696-1.005-6.377-1.12-7.343-1.044-7.845 0-.077.078-.309.502-1.623 2.357-2.164.194-.078.387-.116m.038 20.25q.657-.154 1.508.078 1.7.425 2.357 2.087.116.193.155.425a3.3 3.3 0 0 1 0 1.739q-.465 1.778-2.165 2.396-.192.078-.347.116a3.3 3.3 0 0 1-1.74 0q-1.777-.464-2.396-2.164a3.318 3.318 0 0 1-.116-2.087q.31-1.16 1.16-1.817.657-.54 1.584-.772"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23f39d9d"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var H=t=>t?.startsWith("es")?{documentsTitle:"Nada por aqu\xED todav\xEDa",documentsDescription:"Agrega un nuevo elemento para comenzar",notFoundTitle:"No se encontraron resultados",notFoundDescription:"Ajusta los criterios e int\xE9ntalo nuevamente",doneTitle:"\xA1Est\xE1s al d\xEDa!",doneDescription:"No hay elementos que completar",contentEmptyAlt:"Contenido vac\xEDo"}:t?.startsWith("pt")?{documentsTitle:"Nada aqui ainda",documentsDescription:"Adicione um novo item para come\xE7ar",notFoundTitle:"N\xE3o foram encontrados resultados",notFoundDescription:"Ajuste os crit\xE9rios e tente novamente",doneTitle:"Voc\xEA est\xE1 em dia!",doneDescription:"N\xE3o h\xE1 itens para concluir",contentEmptyAlt:"Conte\xFAdo vazio"}:{documentsTitle:"Nothing here yet",documentsDescription:"Add a new item to get started",notFoundTitle:"No results were found",notFoundDescription:"Adjust the criteria and try again",doneTitle:"You're all caught up!",doneDescription:"Nothing left to complete",contentEmptyAlt:"Content empty"},D=t=>{switch(t){case "lg":return {width:233.46,height:200};case "md":return {width:175.09,height:150};case "sm":return {width:116,height:100}}},N=tv({slots:{root:"font-inter flex h-fit w-fit flex-col items-center p-6 pt-10 text-neutral-600",title:"mt-4.5 text-center font-semibold",description:"font-inter mt-0.5 text-center"},variants:{size:{lg:{title:"font-jakarta text-lg leading-[156%]",description:"text-base leading-[150%] font-medium"},md:{title:"text-base leading-[150%]",description:"text-sm leading-[143%]"},sm:{title:"text-sm leading-[143%]",description:"text-sm leading-[143%]"}},variant:{empty:{},"not-found":{},done:{title:"text-success-700",description:"text-success-700"},danger:{title:"text-danger-700",description:"text-danger-700"}}}}),P=(t,e)=>{switch(t.variant){case "danger":return {title:t.title,description:t.description,imgUrl:p};case "not-found":return {title:t.title??e.notFoundTitle,description:t.description??e.notFoundDescription,imgUrl:c};case "done":return {title:t.title??e.doneTitle,description:t.description??e.doneDescription,imgUrl:s};default:return {title:t.title??e.documentsTitle,description:t.description??e.documentsDescription,imgUrl:r}}},k=t=>{let{actions:e$1,areActionsHidden:m=false,size:a="sm",className:u}=t,h=t.variant??"empty",{locale:g}=getDefaultOptions(),{root:v,title:y,description:b}=N({size:a,variant:h}),o=H(g?.code),l=P(t,o),{width:M,height:S}=D(a),d=a==="sm"?"sm":"lg";return jsxs("div",{className:v({className:u}),children:[jsx("img",{alt:o.contentEmptyAlt,width:M,height:S,src:l.imgUrl}),jsx("p",{className:y(),children:l.title}),l.description&&jsx("p",{className:b(),children:l.description}),e$1&&!m&&jsxs("div",{className:"mt-4.5 flex gap-3",children:[e$1.secondary&&jsx(e,{...e$1.secondary,variant:"light",tone:"primary",size:d}),jsx(e,{...e$1.primary,variant:"secondary",tone:"primary",size:d})]})]})};
2
2
  export{k as a};
@@ -1 +1 @@
1
- import {b}from'./chunk-XD7NWI2J.js';import {a}from'./chunk-KTD2GEB6.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var i={md:"h-(--height-input-md)",lg:"h-(--height-input)"},n=({size:m=b,className:p})=>jsxs("div",{className:a$1("flex w-full flex-col gap-2",p),children:[jsx(a,{className:"h-4 w-15 rounded-sm"}),jsx(a,{className:a$1(i[m],"w-full rounded-lg")})]});export{n as a};
1
+ import {b}from'./chunk-23LALKB6.js';import {a}from'./chunk-KTD2GEB6.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var i={md:"h-(--height-input-md)",lg:"h-(--height-input)"},n=({size:m=b,className:p})=>jsxs("div",{className:a$1("flex w-full flex-col gap-2",p),children:[jsx(a,{className:"h-4 w-15 rounded-sm"}),jsx(a,{className:a$1(i[m],"w-full rounded-lg")})]});export{n as a};
@@ -1,5 +1,4 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { UseComboboxProps, Combobox } from '@ark-ui/react/combobox';
3
2
  import { HTMLAttributes } from 'react';
4
3
  import { L as LabelOptions } from '../label-9gkh212G.js';
5
4
  import { EmptyStateOverrides } from './empty-state.js';
@@ -14,35 +13,45 @@ type AutocompleteMultipleOption<T extends string | number = string> = {
14
13
  disabled?: boolean;
15
14
  description?: string;
16
15
  };
17
- type AutocompleteMultipleProps<T extends string | number = string> = Omit<UseComboboxProps<AutocompleteMultipleOption<T>>, "collection" | "onInputValueChange" | "defaultValue" | "onValueChange" | "onSelect" | "multiple" | "selectionBehavior" | "value"> & {
16
+ type AutocompleteLoadParams = {
17
+ query: string;
18
+ page: number;
19
+ pageSize: number;
20
+ signal: AbortSignal | undefined;
21
+ };
22
+ type AutocompleteLoadResult<O> = {
23
+ options: O[];
24
+ hasMore: boolean;
25
+ };
26
+ type AutocompleteLoad<O> = (params: AutocompleteLoadParams) => Promise<AutocompleteLoadResult<O>>;
27
+ type AutocompleteMultipleBaseProps<T extends string | number = string> = {
18
28
  label: string;
19
29
  labelProps?: LabelOptions;
30
+ value: AutocompleteMultipleOption<T>[];
31
+ onValueChange: (options: AutocompleteMultipleOption<T>[]) => void;
32
+ placeholder?: string;
20
33
  required?: boolean;
34
+ disabled?: boolean;
35
+ readOnly?: boolean;
21
36
  error?: boolean;
22
- options: AutocompleteMultipleOption<T>[];
23
- onInputValueChange?: (details: Combobox.InputValueChangeDetails) => void;
24
- onSelect?: (items: AutocompleteMultipleOption<T>[]) => void;
25
- defaultValue?: AutocompleteMultipleOption<T>[];
26
- /**
27
- * Selected options as full objects. Any missing from `options` is merged in
28
- * so its chip label resolves. Keep referentially stable (RHF values are).
29
- */
30
- value?: AutocompleteMultipleOption<T>[];
31
37
  helperText?: string;
32
38
  emptyState?: EmptyStateOverrides;
33
39
  optionDescriptionLines?: number;
34
40
  clearable?: boolean;
35
- /**
36
- * When true, the control grows vertically as more items are selected,
37
- * wrapping chips onto multiple lines. When false, the control stays at a
38
- * fixed height and clips overflowing chips.
39
- */
40
41
  growable?: boolean;
41
42
  className?: HTMLAttributes<HTMLDivElement>["className"];
42
43
  };
44
+ type AutocompleteMultipleSource<T extends string | number = string> = {
45
+ options: AutocompleteMultipleOption<T>[];
46
+ load?: never;
47
+ } | {
48
+ load: AutocompleteLoad<AutocompleteMultipleOption<T>>;
49
+ options?: never;
50
+ };
51
+ type AutocompleteMultipleProps<T extends string | number = string> = AutocompleteMultipleBaseProps<T> & AutocompleteMultipleSource<T>;
43
52
  declare const AutocompleteMultiple: {
44
53
  <T extends string | number = string>(props: AutocompleteMultipleProps<T>): react_jsx_runtime.JSX.Element;
45
54
  displayName: string;
46
55
  };
47
56
 
48
- export { AutocompleteMultiple, type AutocompleteMultipleOption, type AutocompleteMultipleProps };
57
+ export { type AutocompleteLoad, type AutocompleteLoadParams, type AutocompleteLoadResult, AutocompleteMultiple, type AutocompleteMultipleBaseProps, type AutocompleteMultipleOption, type AutocompleteMultipleProps, type AutocompleteMultipleSource };
@@ -1 +1 @@
1
- export{a as AutocompleteMultiple}from'../chunk-H4K4Y44I.js';import'../chunk-WAUY2MS6.js';import'../chunk-FZ6JW3TZ.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
1
+ export{a as AutocompleteMultiple}from'../chunk-L2QZT5LQ.js';import'../chunk-WAUY2MS6.js';import'../chunk-MOFC3UHC.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{a as AutocompleteSkeleton}from'../chunk-STYN7WHQ.js';import'../chunk-XD7NWI2J.js';import'../chunk-FZ6JW3TZ.js';import'../chunk-KTD2GEB6.js';import'../chunk-RBXMHWJQ.js';import'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
1
+ export{a as AutocompleteSkeleton}from'../chunk-QLJJMFDK.js';import'../chunk-23LALKB6.js';import'../chunk-MOFC3UHC.js';import'../chunk-KTD2GEB6.js';import'../chunk-RBXMHWJQ.js';import'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{c as Autocomplete,b as AutocompleteSizeDefault,a as AutocompleteSizes}from'../chunk-XD7NWI2J.js';import'../chunk-FZ6JW3TZ.js';import'../chunk-RBXMHWJQ.js';import'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
1
+ export{c as Autocomplete,b as AutocompleteSizeDefault,a as AutocompleteSizes}from'../chunk-23LALKB6.js';import'../chunk-MOFC3UHC.js';import'../chunk-RBXMHWJQ.js';import'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{a as EmptyState}from'../chunk-FZ6JW3TZ.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
1
+ export{a as EmptyState}from'../chunk-MOFC3UHC.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
@@ -87,7 +87,7 @@ export { ButtonMenu, ButtonMenuOption, ButtonMenuProps, ButtonMenuSize, ButtonMe
87
87
  import * as react_phone_number_input from 'react-phone-number-input';
88
88
  import { Props, Value } from 'react-phone-number-input';
89
89
  export { PhoneInputSkeleton, PhoneInputSkeletonProps } from './phone-input-skeleton.js';
90
- export { AutocompleteMultiple, AutocompleteMultipleOption, AutocompleteMultipleProps } from './autocomplete-multiple.js';
90
+ export { AutocompleteLoad, AutocompleteLoadParams, AutocompleteLoadResult, AutocompleteMultiple, AutocompleteMultipleBaseProps, AutocompleteMultipleOption, AutocompleteMultipleProps, AutocompleteMultipleSource } from './autocomplete-multiple.js';
91
91
  export { EmptyState, EmptyStateAction, EmptyStateActions, EmptyStateOverrides, EmptyStateProps } from './empty-state.js';
92
92
  export { AutocompleteMultipleSkeleton, AutocompleteMultipleSkeletonProps } from './autocomplete-multiple-skeleton.js';
93
93
  export { Chip, ChipDefaults, ChipProps, ChipSizes, ChipTones, ChipVariants } from './chip.js';
@@ -1 +1 @@
1
- export{e as AutocompleteMultiple_old,a as Autocomplete_old,f as IdField,c as ListItemArrow,g as ListItemButton,d as ListItemCheckbox,h as ListItemCheckboxLeft,b as ListItem_old,o as PhoneInput,n as RichTextEditor,m as convertHtmlToQuillCompatible,j as defaultToolbarConfig,i as lexicalTheme,k as normalizeHtmlForComparison,l as normalizeQuillHtmlForLexical}from'../chunk-GUHZX6VO.js';export{a as Textarea}from'../chunk-T3ITXF7W.js';export{a as TextareaSizes_old,b as Textarea_old}from'../chunk-SIA2GA6D.js';export{a as TimePicker}from'../chunk-IYOPH2ON.js';export{a as ToastTypes,c as Toaster,b as toast}from'../chunk-4HMXOGWD.js';export{e as TrackerItem,c as TrackerItemExpandableContent,d as TrackerItemFooter,b as TrackerItemHeader,a as useTrackerItem}from'../chunk-VIL6Q52L.js';export{c as getSelectedCount,b as getSelectedIds,a as syncSelectionDataMap,d as useRowSelectionWithData}from'../chunk-ABJHG7HB.js';export{b as SnackbarProvider,a as snackbar}from'../chunk-Q6MYROEY.js';import'../chunk-U6RH2BZO.js';export{a as Tabs,d as TabsContent,b as TabsList,c as TabsTrigger}from'../chunk-DBZ37DYH.js';export{a as TextField}from'../chunk-M46RFBDO.js';export{a as ScrollArea,b as ScrollBar}from'../chunk-5T72Q62I.js';export{a as SelectSkeleton}from'../chunk-XVT4DHX3.js';export{a as Select_old}from'../chunk-G7NJYNJA.js';export{c as Sidebar,e as SidebarBody,f as SidebarFooter,d as SidebarHeader,b as SidebarProvider,a as useSidebar}from'../chunk-NZLSLBBQ.js';export{a as SignaturePad}from'../chunk-Q4Z47CXE.js';export{a as NumberFieldSkeleton}from'../chunk-P5FV5ZGY.js';export{a as PassiveTabs}from'../chunk-POX4ARAQ.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 Rating,a as RatingSizes}from'../chunk-XVDM35UV.js';export{e as MultiSelectChips,d as MultiSelectChipsDefaults,a as MultiSelectChipsOrientations,c as MultiSelectChipsSizes,b as MultiSelectChipsTones}from'../chunk-K35H5VYN.js';export{a as NoteCard}from'../chunk-AIRQLXLO.js';export{c as Dropzone,a as DropzoneAcceptedFileTypes,b as DropzoneSizes}from'../chunk-UBTRI4EA.js';export{a as ERROR_SCREEN_VARIANTS,b as ErrorScreen}from'../chunk-QSHMX35F.js';export{a as DataTable}from'../chunk-PM7QTMJU.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-3OGZGSJ2.js';export{a as Popover,c as PopoverContent,b as PopoverTrigger}from'../chunk-UYRGKELU.js';export{a as DatePickerPopover}from'../chunk-YLRL7MNJ.js';export{a as DatePicker}from'../chunk-M5GLIXO2.js';export{b as DatePicker_old}from'../chunk-QX4D2CU2.js';export{a as TextField_old}from'../chunk-ORDWXBDZ.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-JBG5YAQX.js';export{a as DrawerBar}from'../chunk-7ZPFUDVQ.js';export{b as SearchBar,a as SearchBarSizeOptions}from'../chunk-XN6VHPJL.js';import'../chunk-W4C2Z52Z.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-WPF6FUFA.js';export{e as Chip,d as ChipDefaults,c as ChipSizes,b as ChipTones,a as ChipVariants}from'../chunk-GHNJWQTI.js';export{c as ID_COUNTRY_CODES,b as ISO_COUNTRY_CODES,f as IdCountryEnum,d as IsoCountryEnum,a as PHONE_COUNTRY_CODES,e as PhoneCountryEnum,i as isIdCountryCode,g as isIsoCountryCode,h as isPhoneCountryCode}from'../chunk-XRFPQJ5P.js';export{a as CountryFlag}from'../chunk-B5KKVXLE.js';export{d as CardExpandable,b as CardExpandableContent,c as CardExpandableFixedContent,a as CardExpandableHeader}from'../chunk-VB5Q6KYT.js';export{a as CardForm,c as CardFormBody,d as CardFormFooter,b as CardFormHeader}from'../chunk-XMFUZYZU.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-DHFR2KLQ.js';export{d as ChipContext,c as ChipContextColors,b as ChipContextSizes,a as ChipContextVariants}from'../chunk-JA7GAJ6P.js';export{c as ChipExpandable,b as ChipExpandableTypes,a as ChipExpandableVariants}from'../chunk-JYNJHAGL.js';export{c as ChipFormComplementary,a as ChipFormComplementaryVariants,b as ChipFormComplementaryVariantsClassNames}from'../chunk-QONM4Q4J.js';export{d as ChipForm,c as ChipFormSizes,b as ChipFormTypes,a as ChipFormVariants}from'../chunk-3HZUH4JJ.js';export{d as ButtonActive,a as ButtonActiveSizes,c as ButtonActiveTones,b as ButtonActiveVariants}from'../chunk-EOB3AQZ2.js';export{d as ButtonMenu,a as ButtonMenuSizes,c as ButtonMenuTones,b as ButtonMenuWeights}from'../chunk-YCNBKZGC.js';export{a as Menu}from'../chunk-BSBPGWCQ.js';export{b as ListItem,a as useListItemDisabled}from'../chunk-ZYFA5BA3.js';export{a as NumberField}from'../chunk-JGFWDCSB.js';export{d as Calendar,a as CalendarProvider,c as parseDate,b as useCalendar}from'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';export{a as Calendar_old}from'../chunk-H2ANC6ZE.js';export{a as BadgeCategorySkeleton}from'../chunk-RQQJYDAY.js';export{a as BadgeExpandableSkeleton}from'../chunk-DL3P7FK4.js';export{a as BadgeStatusSkeleton}from'../chunk-PIMSGQMD.js';export{a as BadgeStatus}from'../chunk-UIZFLYFP.js';export{a as AttachmentCard}from'../chunk-673LITHP.js';export{a as AutocompleteMultipleSkeleton}from'../chunk-N6BWYHOE.js';export{a as AutocompleteMultiple}from'../chunk-H4K4Y44I.js';export{d as ChipInput,b as ChipInputColors,a as ChipInputSizes,c as ChipInputVariants}from'../chunk-WAUY2MS6.js';export{a as AutocompleteSkeleton}from'../chunk-STYN7WHQ.js';export{c as Autocomplete,b as AutocompleteSizeDefault,a as AutocompleteSizes}from'../chunk-XD7NWI2J.js';export{a as EmptyState}from'../chunk-FZ6JW3TZ.js';export{a as AvatarSkeleton}from'../chunk-OKBI6IIW.js';export{a as Skeleton}from'../chunk-KTD2GEB6.js';export{c as Avatar,a as AvatarSizes,b as avatarStyles}from'../chunk-QQM4FVO7.js';export{c as BadgeAlert,a as BadgeAlertSizes,b as BadgeAlertStatuses}from'../chunk-CY5DLXHV.js';import'../chunk-VBHBIUWS.js';import'../chunk-NYURVOJI.js';export{c as Select,b as SelectSizeDefault,a as SelectSizes}from'../chunk-GJSFXPZK.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-XIJ2XBQF.js';export{c as RadioGroup,d as RadioGroupItem,a as RadioGroupOrientation,b as radioStyles}from'../chunk-4CAN7PGG.js';export{d as CardBasic,b as CardBasicBody,c as CardBasicFooter,a as CardBasicHeader}from'../chunk-CVYZS7KS.js';export{d as Switch,a as SwitchSizes,b as SwitchTypes,c as SwitchVariants}from'../chunk-7JM2X4UD.js';export{c as Checkbox,a as CheckboxCheckedStates,b as checkboxStyles}from'../chunk-FYB3QRNL.js';export{d as BadgeCategory,a as BadgeCategoryColors,c as BadgeCategorySizes,b as BadgeCategoryVariants}from'../chunk-YFDUDY6Y.js';import'../chunk-RBXMHWJQ.js';export{a as BadgeExpandable}from'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';export{f as FormLabel,e as FormLabelSizes,d as FormLabelVariants,c as Label,b as LabelSizes,a as LabelVariants}from'../chunk-QZUQ6AZK.js';export{a as Tooltip}from'../chunk-MW7DL42Z.js';import'../chunk-IEGZ6BLC.js';import'../chunk-GUPUXUDN.js';export{b as AccordionForm,e as AccordionFormContent,c as AccordionFormItem,a as AccordionFormSizes,d as AccordionFormTrigger}from'../chunk-OUDUDDZO.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-JV7WH6MZ.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-4N7H55OU.js';export{a as Divider,b as Separator}from'../chunk-AWRP67K4.js';export{c as AlertMessage,b as AlertMessageSizes,a as AlertMessageVariants}from'../chunk-L5SK3BA5.js';export{e as IconButton,d as IconButtonShapes,a as IconButtonSizes,c as IconButtonTones,b as IconButtonVariants}from'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';export{e as Button,a as ButtonSizes,c as ButtonTones,b as ButtonVariants,d as buttonStyles}from'../chunk-Y3ZZYSKX.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-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
1
+ export{e as AutocompleteMultiple_old,a as Autocomplete_old,f as IdField,c as ListItemArrow,g as ListItemButton,d as ListItemCheckbox,h as ListItemCheckboxLeft,b as ListItem_old,o as PhoneInput,n as RichTextEditor,m as convertHtmlToQuillCompatible,j as defaultToolbarConfig,i as lexicalTheme,k as normalizeHtmlForComparison,l as normalizeQuillHtmlForLexical}from'../chunk-JKZOOHQ3.js';export{a as Textarea}from'../chunk-T3ITXF7W.js';export{a as TextareaSizes_old,b as Textarea_old}from'../chunk-SIA2GA6D.js';export{a as TimePicker}from'../chunk-IYOPH2ON.js';export{a as ToastTypes,c as Toaster,b as toast}from'../chunk-4HMXOGWD.js';export{e as TrackerItem,c as TrackerItemExpandableContent,d as TrackerItemFooter,b as TrackerItemHeader,a as useTrackerItem}from'../chunk-VIL6Q52L.js';export{c as getSelectedCount,b as getSelectedIds,a as syncSelectionDataMap,d as useRowSelectionWithData}from'../chunk-ABJHG7HB.js';export{b as SnackbarProvider,a as snackbar}from'../chunk-Q6MYROEY.js';import'../chunk-U6RH2BZO.js';export{a as Tabs,d as TabsContent,b as TabsList,c as TabsTrigger}from'../chunk-DBZ37DYH.js';export{a as TextField}from'../chunk-M46RFBDO.js';export{a as ScrollArea,b as ScrollBar}from'../chunk-5T72Q62I.js';export{a as SelectSkeleton}from'../chunk-XVT4DHX3.js';export{a as Select_old}from'../chunk-G7NJYNJA.js';export{c as Sidebar,e as SidebarBody,f as SidebarFooter,d as SidebarHeader,b as SidebarProvider,a as useSidebar}from'../chunk-NZLSLBBQ.js';export{a as SignaturePad}from'../chunk-Q4Z47CXE.js';export{a as NumberFieldSkeleton}from'../chunk-P5FV5ZGY.js';export{a as PassiveTabs}from'../chunk-POX4ARAQ.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 Rating,a as RatingSizes}from'../chunk-XVDM35UV.js';export{e as MultiSelectChips,d as MultiSelectChipsDefaults,a as MultiSelectChipsOrientations,c as MultiSelectChipsSizes,b as MultiSelectChipsTones}from'../chunk-K35H5VYN.js';export{a as NoteCard}from'../chunk-AIRQLXLO.js';export{c as Dropzone,a as DropzoneAcceptedFileTypes,b as DropzoneSizes}from'../chunk-UBTRI4EA.js';export{a as ERROR_SCREEN_VARIANTS,b as ErrorScreen}from'../chunk-QSHMX35F.js';export{a as DataTable}from'../chunk-PM7QTMJU.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-3OGZGSJ2.js';export{a as Popover,c as PopoverContent,b as PopoverTrigger}from'../chunk-UYRGKELU.js';export{a as DatePickerPopover}from'../chunk-YLRL7MNJ.js';export{a as DatePicker}from'../chunk-M5GLIXO2.js';export{b as DatePicker_old}from'../chunk-QX4D2CU2.js';export{a as TextField_old}from'../chunk-ORDWXBDZ.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-JBG5YAQX.js';export{a as DrawerBar}from'../chunk-7ZPFUDVQ.js';export{b as SearchBar,a as SearchBarSizeOptions}from'../chunk-XN6VHPJL.js';import'../chunk-W4C2Z52Z.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-WPF6FUFA.js';export{e as Chip,d as ChipDefaults,c as ChipSizes,b as ChipTones,a as ChipVariants}from'../chunk-GHNJWQTI.js';export{c as ID_COUNTRY_CODES,b as ISO_COUNTRY_CODES,f as IdCountryEnum,d as IsoCountryEnum,a as PHONE_COUNTRY_CODES,e as PhoneCountryEnum,i as isIdCountryCode,g as isIsoCountryCode,h as isPhoneCountryCode}from'../chunk-XRFPQJ5P.js';export{a as CountryFlag}from'../chunk-B5KKVXLE.js';export{d as CardExpandable,b as CardExpandableContent,c as CardExpandableFixedContent,a as CardExpandableHeader}from'../chunk-VB5Q6KYT.js';export{a as CardForm,c as CardFormBody,d as CardFormFooter,b as CardFormHeader}from'../chunk-XMFUZYZU.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-DHFR2KLQ.js';export{d as ChipContext,c as ChipContextColors,b as ChipContextSizes,a as ChipContextVariants}from'../chunk-JA7GAJ6P.js';export{c as ChipExpandable,b as ChipExpandableTypes,a as ChipExpandableVariants}from'../chunk-JYNJHAGL.js';export{c as ChipFormComplementary,a as ChipFormComplementaryVariants,b as ChipFormComplementaryVariantsClassNames}from'../chunk-QONM4Q4J.js';export{d as ChipForm,c as ChipFormSizes,b as ChipFormTypes,a as ChipFormVariants}from'../chunk-3HZUH4JJ.js';export{d as ButtonActive,a as ButtonActiveSizes,c as ButtonActiveTones,b as ButtonActiveVariants}from'../chunk-EOB3AQZ2.js';export{d as ButtonMenu,a as ButtonMenuSizes,c as ButtonMenuTones,b as ButtonMenuWeights}from'../chunk-YCNBKZGC.js';export{a as Menu}from'../chunk-BSBPGWCQ.js';export{b as ListItem,a as useListItemDisabled}from'../chunk-ZYFA5BA3.js';export{a as NumberField}from'../chunk-JGFWDCSB.js';export{d as Calendar,a as CalendarProvider,c as parseDate,b as useCalendar}from'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';export{a as Calendar_old}from'../chunk-H2ANC6ZE.js';export{a as BadgeCategorySkeleton}from'../chunk-RQQJYDAY.js';export{a as BadgeExpandableSkeleton}from'../chunk-DL3P7FK4.js';export{a as BadgeStatusSkeleton}from'../chunk-PIMSGQMD.js';export{a as BadgeStatus}from'../chunk-UIZFLYFP.js';export{a as AttachmentCard}from'../chunk-673LITHP.js';export{a as AutocompleteMultipleSkeleton}from'../chunk-N6BWYHOE.js';export{a as AutocompleteMultiple}from'../chunk-L2QZT5LQ.js';export{d as ChipInput,b as ChipInputColors,a as ChipInputSizes,c as ChipInputVariants}from'../chunk-WAUY2MS6.js';export{a as AutocompleteSkeleton}from'../chunk-QLJJMFDK.js';export{c as Autocomplete,b as AutocompleteSizeDefault,a as AutocompleteSizes}from'../chunk-23LALKB6.js';export{a as EmptyState}from'../chunk-MOFC3UHC.js';export{a as AvatarSkeleton}from'../chunk-OKBI6IIW.js';export{a as Skeleton}from'../chunk-KTD2GEB6.js';export{c as Avatar,a as AvatarSizes,b as avatarStyles}from'../chunk-QQM4FVO7.js';export{c as BadgeAlert,a as BadgeAlertSizes,b as BadgeAlertStatuses}from'../chunk-CY5DLXHV.js';import'../chunk-VBHBIUWS.js';import'../chunk-NYURVOJI.js';export{c as Select,b as SelectSizeDefault,a as SelectSizes}from'../chunk-GJSFXPZK.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-XIJ2XBQF.js';export{c as RadioGroup,d as RadioGroupItem,a as RadioGroupOrientation,b as radioStyles}from'../chunk-4CAN7PGG.js';export{d as CardBasic,b as CardBasicBody,c as CardBasicFooter,a as CardBasicHeader}from'../chunk-CVYZS7KS.js';export{d as Switch,a as SwitchSizes,b as SwitchTypes,c as SwitchVariants}from'../chunk-7JM2X4UD.js';export{c as Checkbox,a as CheckboxCheckedStates,b as checkboxStyles}from'../chunk-FYB3QRNL.js';export{d as BadgeCategory,a as BadgeCategoryColors,c as BadgeCategorySizes,b as BadgeCategoryVariants}from'../chunk-YFDUDY6Y.js';import'../chunk-RBXMHWJQ.js';export{a as BadgeExpandable}from'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';export{f as FormLabel,e as FormLabelSizes,d as FormLabelVariants,c as Label,b as LabelSizes,a as LabelVariants}from'../chunk-QZUQ6AZK.js';export{a as Tooltip}from'../chunk-MW7DL42Z.js';import'../chunk-IEGZ6BLC.js';import'../chunk-GUPUXUDN.js';export{b as AccordionForm,e as AccordionFormContent,c as AccordionFormItem,a as AccordionFormSizes,d as AccordionFormTrigger}from'../chunk-OUDUDDZO.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-JV7WH6MZ.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-4N7H55OU.js';export{a as Divider,b as Separator}from'../chunk-AWRP67K4.js';export{c as AlertMessage,b as AlertMessageSizes,a as AlertMessageVariants}from'../chunk-L5SK3BA5.js';export{e as IconButton,d as IconButtonShapes,a as IconButtonSizes,c as IconButtonTones,b as IconButtonVariants}from'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';export{e as Button,a as ButtonSizes,c as ButtonTones,b as ButtonVariants,d as buttonStyles}from'../chunk-Y3ZZYSKX.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-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{c as ListItemArrow}from'../chunk-GUHZX6VO.js';import'../chunk-T3ITXF7W.js';import'../chunk-SIA2GA6D.js';import'../chunk-IYOPH2ON.js';import'../chunk-4HMXOGWD.js';import'../chunk-VIL6Q52L.js';import'../chunk-ABJHG7HB.js';import'../chunk-Q6MYROEY.js';import'../chunk-U6RH2BZO.js';import'../chunk-DBZ37DYH.js';import'../chunk-M46RFBDO.js';import'../chunk-5T72Q62I.js';import'../chunk-XVT4DHX3.js';import'../chunk-G7NJYNJA.js';import'../chunk-NZLSLBBQ.js';import'../chunk-Q4Z47CXE.js';import'../chunk-P5FV5ZGY.js';import'../chunk-POX4ARAQ.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XVDM35UV.js';import'../chunk-K35H5VYN.js';import'../chunk-AIRQLXLO.js';import'../chunk-UBTRI4EA.js';import'../chunk-QSHMX35F.js';import'../chunk-PM7QTMJU.js';import'../chunk-3OGZGSJ2.js';import'../chunk-UYRGKELU.js';import'../chunk-YLRL7MNJ.js';import'../chunk-M5GLIXO2.js';import'../chunk-QX4D2CU2.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JBG5YAQX.js';import'../chunk-7ZPFUDVQ.js';import'../chunk-XN6VHPJL.js';import'../chunk-W4C2Z52Z.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-WPF6FUFA.js';import'../chunk-GHNJWQTI.js';import'../chunk-XRFPQJ5P.js';import'../chunk-B5KKVXLE.js';import'../chunk-VB5Q6KYT.js';import'../chunk-XMFUZYZU.js';import'../chunk-DHFR2KLQ.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-EOB3AQZ2.js';import'../chunk-YCNBKZGC.js';import'../chunk-BSBPGWCQ.js';import'../chunk-ZYFA5BA3.js';import'../chunk-JGFWDCSB.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-673LITHP.js';import'../chunk-N6BWYHOE.js';import'../chunk-H4K4Y44I.js';import'../chunk-WAUY2MS6.js';import'../chunk-STYN7WHQ.js';import'../chunk-XD7NWI2J.js';import'../chunk-FZ6JW3TZ.js';import'../chunk-OKBI6IIW.js';import'../chunk-KTD2GEB6.js';import'../chunk-QQM4FVO7.js';import'../chunk-CY5DLXHV.js';import'../chunk-VBHBIUWS.js';import'../chunk-NYURVOJI.js';import'../chunk-GJSFXPZK.js';import'../chunk-XIJ2XBQF.js';import'../chunk-4CAN7PGG.js';import'../chunk-CVYZS7KS.js';import'../chunk-7JM2X4UD.js';import'../chunk-FYB3QRNL.js';import'../chunk-YFDUDY6Y.js';import'../chunk-RBXMHWJQ.js';import'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-IEGZ6BLC.js';import'../chunk-GUPUXUDN.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-4N7H55OU.js';import'../chunk-AWRP67K4.js';import'../chunk-L5SK3BA5.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
1
+ export{c as ListItemArrow}from'../chunk-JKZOOHQ3.js';import'../chunk-T3ITXF7W.js';import'../chunk-SIA2GA6D.js';import'../chunk-IYOPH2ON.js';import'../chunk-4HMXOGWD.js';import'../chunk-VIL6Q52L.js';import'../chunk-ABJHG7HB.js';import'../chunk-Q6MYROEY.js';import'../chunk-U6RH2BZO.js';import'../chunk-DBZ37DYH.js';import'../chunk-M46RFBDO.js';import'../chunk-5T72Q62I.js';import'../chunk-XVT4DHX3.js';import'../chunk-G7NJYNJA.js';import'../chunk-NZLSLBBQ.js';import'../chunk-Q4Z47CXE.js';import'../chunk-P5FV5ZGY.js';import'../chunk-POX4ARAQ.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XVDM35UV.js';import'../chunk-K35H5VYN.js';import'../chunk-AIRQLXLO.js';import'../chunk-UBTRI4EA.js';import'../chunk-QSHMX35F.js';import'../chunk-PM7QTMJU.js';import'../chunk-3OGZGSJ2.js';import'../chunk-UYRGKELU.js';import'../chunk-YLRL7MNJ.js';import'../chunk-M5GLIXO2.js';import'../chunk-QX4D2CU2.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JBG5YAQX.js';import'../chunk-7ZPFUDVQ.js';import'../chunk-XN6VHPJL.js';import'../chunk-W4C2Z52Z.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-WPF6FUFA.js';import'../chunk-GHNJWQTI.js';import'../chunk-XRFPQJ5P.js';import'../chunk-B5KKVXLE.js';import'../chunk-VB5Q6KYT.js';import'../chunk-XMFUZYZU.js';import'../chunk-DHFR2KLQ.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-EOB3AQZ2.js';import'../chunk-YCNBKZGC.js';import'../chunk-BSBPGWCQ.js';import'../chunk-ZYFA5BA3.js';import'../chunk-JGFWDCSB.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-673LITHP.js';import'../chunk-N6BWYHOE.js';import'../chunk-L2QZT5LQ.js';import'../chunk-WAUY2MS6.js';import'../chunk-QLJJMFDK.js';import'../chunk-23LALKB6.js';import'../chunk-MOFC3UHC.js';import'../chunk-OKBI6IIW.js';import'../chunk-KTD2GEB6.js';import'../chunk-QQM4FVO7.js';import'../chunk-CY5DLXHV.js';import'../chunk-VBHBIUWS.js';import'../chunk-NYURVOJI.js';import'../chunk-GJSFXPZK.js';import'../chunk-XIJ2XBQF.js';import'../chunk-4CAN7PGG.js';import'../chunk-CVYZS7KS.js';import'../chunk-7JM2X4UD.js';import'../chunk-FYB3QRNL.js';import'../chunk-YFDUDY6Y.js';import'../chunk-RBXMHWJQ.js';import'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-IEGZ6BLC.js';import'../chunk-GUPUXUDN.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-4N7H55OU.js';import'../chunk-AWRP67K4.js';import'../chunk-L5SK3BA5.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{g as ListItemButton}from'../chunk-GUHZX6VO.js';import'../chunk-T3ITXF7W.js';import'../chunk-SIA2GA6D.js';import'../chunk-IYOPH2ON.js';import'../chunk-4HMXOGWD.js';import'../chunk-VIL6Q52L.js';import'../chunk-ABJHG7HB.js';import'../chunk-Q6MYROEY.js';import'../chunk-U6RH2BZO.js';import'../chunk-DBZ37DYH.js';import'../chunk-M46RFBDO.js';import'../chunk-5T72Q62I.js';import'../chunk-XVT4DHX3.js';import'../chunk-G7NJYNJA.js';import'../chunk-NZLSLBBQ.js';import'../chunk-Q4Z47CXE.js';import'../chunk-P5FV5ZGY.js';import'../chunk-POX4ARAQ.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XVDM35UV.js';import'../chunk-K35H5VYN.js';import'../chunk-AIRQLXLO.js';import'../chunk-UBTRI4EA.js';import'../chunk-QSHMX35F.js';import'../chunk-PM7QTMJU.js';import'../chunk-3OGZGSJ2.js';import'../chunk-UYRGKELU.js';import'../chunk-YLRL7MNJ.js';import'../chunk-M5GLIXO2.js';import'../chunk-QX4D2CU2.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JBG5YAQX.js';import'../chunk-7ZPFUDVQ.js';import'../chunk-XN6VHPJL.js';import'../chunk-W4C2Z52Z.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-WPF6FUFA.js';import'../chunk-GHNJWQTI.js';import'../chunk-XRFPQJ5P.js';import'../chunk-B5KKVXLE.js';import'../chunk-VB5Q6KYT.js';import'../chunk-XMFUZYZU.js';import'../chunk-DHFR2KLQ.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-EOB3AQZ2.js';import'../chunk-YCNBKZGC.js';import'../chunk-BSBPGWCQ.js';import'../chunk-ZYFA5BA3.js';import'../chunk-JGFWDCSB.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-673LITHP.js';import'../chunk-N6BWYHOE.js';import'../chunk-H4K4Y44I.js';import'../chunk-WAUY2MS6.js';import'../chunk-STYN7WHQ.js';import'../chunk-XD7NWI2J.js';import'../chunk-FZ6JW3TZ.js';import'../chunk-OKBI6IIW.js';import'../chunk-KTD2GEB6.js';import'../chunk-QQM4FVO7.js';import'../chunk-CY5DLXHV.js';import'../chunk-VBHBIUWS.js';import'../chunk-NYURVOJI.js';import'../chunk-GJSFXPZK.js';import'../chunk-XIJ2XBQF.js';import'../chunk-4CAN7PGG.js';import'../chunk-CVYZS7KS.js';import'../chunk-7JM2X4UD.js';import'../chunk-FYB3QRNL.js';import'../chunk-YFDUDY6Y.js';import'../chunk-RBXMHWJQ.js';import'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-IEGZ6BLC.js';import'../chunk-GUPUXUDN.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-4N7H55OU.js';import'../chunk-AWRP67K4.js';import'../chunk-L5SK3BA5.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
1
+ export{g as ListItemButton}from'../chunk-JKZOOHQ3.js';import'../chunk-T3ITXF7W.js';import'../chunk-SIA2GA6D.js';import'../chunk-IYOPH2ON.js';import'../chunk-4HMXOGWD.js';import'../chunk-VIL6Q52L.js';import'../chunk-ABJHG7HB.js';import'../chunk-Q6MYROEY.js';import'../chunk-U6RH2BZO.js';import'../chunk-DBZ37DYH.js';import'../chunk-M46RFBDO.js';import'../chunk-5T72Q62I.js';import'../chunk-XVT4DHX3.js';import'../chunk-G7NJYNJA.js';import'../chunk-NZLSLBBQ.js';import'../chunk-Q4Z47CXE.js';import'../chunk-P5FV5ZGY.js';import'../chunk-POX4ARAQ.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XVDM35UV.js';import'../chunk-K35H5VYN.js';import'../chunk-AIRQLXLO.js';import'../chunk-UBTRI4EA.js';import'../chunk-QSHMX35F.js';import'../chunk-PM7QTMJU.js';import'../chunk-3OGZGSJ2.js';import'../chunk-UYRGKELU.js';import'../chunk-YLRL7MNJ.js';import'../chunk-M5GLIXO2.js';import'../chunk-QX4D2CU2.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JBG5YAQX.js';import'../chunk-7ZPFUDVQ.js';import'../chunk-XN6VHPJL.js';import'../chunk-W4C2Z52Z.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-WPF6FUFA.js';import'../chunk-GHNJWQTI.js';import'../chunk-XRFPQJ5P.js';import'../chunk-B5KKVXLE.js';import'../chunk-VB5Q6KYT.js';import'../chunk-XMFUZYZU.js';import'../chunk-DHFR2KLQ.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-EOB3AQZ2.js';import'../chunk-YCNBKZGC.js';import'../chunk-BSBPGWCQ.js';import'../chunk-ZYFA5BA3.js';import'../chunk-JGFWDCSB.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-673LITHP.js';import'../chunk-N6BWYHOE.js';import'../chunk-L2QZT5LQ.js';import'../chunk-WAUY2MS6.js';import'../chunk-QLJJMFDK.js';import'../chunk-23LALKB6.js';import'../chunk-MOFC3UHC.js';import'../chunk-OKBI6IIW.js';import'../chunk-KTD2GEB6.js';import'../chunk-QQM4FVO7.js';import'../chunk-CY5DLXHV.js';import'../chunk-VBHBIUWS.js';import'../chunk-NYURVOJI.js';import'../chunk-GJSFXPZK.js';import'../chunk-XIJ2XBQF.js';import'../chunk-4CAN7PGG.js';import'../chunk-CVYZS7KS.js';import'../chunk-7JM2X4UD.js';import'../chunk-FYB3QRNL.js';import'../chunk-YFDUDY6Y.js';import'../chunk-RBXMHWJQ.js';import'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-IEGZ6BLC.js';import'../chunk-GUPUXUDN.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-4N7H55OU.js';import'../chunk-AWRP67K4.js';import'../chunk-L5SK3BA5.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{h as ListItemCheckboxLeft}from'../chunk-GUHZX6VO.js';import'../chunk-T3ITXF7W.js';import'../chunk-SIA2GA6D.js';import'../chunk-IYOPH2ON.js';import'../chunk-4HMXOGWD.js';import'../chunk-VIL6Q52L.js';import'../chunk-ABJHG7HB.js';import'../chunk-Q6MYROEY.js';import'../chunk-U6RH2BZO.js';import'../chunk-DBZ37DYH.js';import'../chunk-M46RFBDO.js';import'../chunk-5T72Q62I.js';import'../chunk-XVT4DHX3.js';import'../chunk-G7NJYNJA.js';import'../chunk-NZLSLBBQ.js';import'../chunk-Q4Z47CXE.js';import'../chunk-P5FV5ZGY.js';import'../chunk-POX4ARAQ.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XVDM35UV.js';import'../chunk-K35H5VYN.js';import'../chunk-AIRQLXLO.js';import'../chunk-UBTRI4EA.js';import'../chunk-QSHMX35F.js';import'../chunk-PM7QTMJU.js';import'../chunk-3OGZGSJ2.js';import'../chunk-UYRGKELU.js';import'../chunk-YLRL7MNJ.js';import'../chunk-M5GLIXO2.js';import'../chunk-QX4D2CU2.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JBG5YAQX.js';import'../chunk-7ZPFUDVQ.js';import'../chunk-XN6VHPJL.js';import'../chunk-W4C2Z52Z.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-WPF6FUFA.js';import'../chunk-GHNJWQTI.js';import'../chunk-XRFPQJ5P.js';import'../chunk-B5KKVXLE.js';import'../chunk-VB5Q6KYT.js';import'../chunk-XMFUZYZU.js';import'../chunk-DHFR2KLQ.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-EOB3AQZ2.js';import'../chunk-YCNBKZGC.js';import'../chunk-BSBPGWCQ.js';import'../chunk-ZYFA5BA3.js';import'../chunk-JGFWDCSB.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-673LITHP.js';import'../chunk-N6BWYHOE.js';import'../chunk-H4K4Y44I.js';import'../chunk-WAUY2MS6.js';import'../chunk-STYN7WHQ.js';import'../chunk-XD7NWI2J.js';import'../chunk-FZ6JW3TZ.js';import'../chunk-OKBI6IIW.js';import'../chunk-KTD2GEB6.js';import'../chunk-QQM4FVO7.js';import'../chunk-CY5DLXHV.js';import'../chunk-VBHBIUWS.js';import'../chunk-NYURVOJI.js';import'../chunk-GJSFXPZK.js';import'../chunk-XIJ2XBQF.js';import'../chunk-4CAN7PGG.js';import'../chunk-CVYZS7KS.js';import'../chunk-7JM2X4UD.js';import'../chunk-FYB3QRNL.js';import'../chunk-YFDUDY6Y.js';import'../chunk-RBXMHWJQ.js';import'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-IEGZ6BLC.js';import'../chunk-GUPUXUDN.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-4N7H55OU.js';import'../chunk-AWRP67K4.js';import'../chunk-L5SK3BA5.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
1
+ export{h as ListItemCheckboxLeft}from'../chunk-JKZOOHQ3.js';import'../chunk-T3ITXF7W.js';import'../chunk-SIA2GA6D.js';import'../chunk-IYOPH2ON.js';import'../chunk-4HMXOGWD.js';import'../chunk-VIL6Q52L.js';import'../chunk-ABJHG7HB.js';import'../chunk-Q6MYROEY.js';import'../chunk-U6RH2BZO.js';import'../chunk-DBZ37DYH.js';import'../chunk-M46RFBDO.js';import'../chunk-5T72Q62I.js';import'../chunk-XVT4DHX3.js';import'../chunk-G7NJYNJA.js';import'../chunk-NZLSLBBQ.js';import'../chunk-Q4Z47CXE.js';import'../chunk-P5FV5ZGY.js';import'../chunk-POX4ARAQ.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XVDM35UV.js';import'../chunk-K35H5VYN.js';import'../chunk-AIRQLXLO.js';import'../chunk-UBTRI4EA.js';import'../chunk-QSHMX35F.js';import'../chunk-PM7QTMJU.js';import'../chunk-3OGZGSJ2.js';import'../chunk-UYRGKELU.js';import'../chunk-YLRL7MNJ.js';import'../chunk-M5GLIXO2.js';import'../chunk-QX4D2CU2.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JBG5YAQX.js';import'../chunk-7ZPFUDVQ.js';import'../chunk-XN6VHPJL.js';import'../chunk-W4C2Z52Z.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-WPF6FUFA.js';import'../chunk-GHNJWQTI.js';import'../chunk-XRFPQJ5P.js';import'../chunk-B5KKVXLE.js';import'../chunk-VB5Q6KYT.js';import'../chunk-XMFUZYZU.js';import'../chunk-DHFR2KLQ.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-EOB3AQZ2.js';import'../chunk-YCNBKZGC.js';import'../chunk-BSBPGWCQ.js';import'../chunk-ZYFA5BA3.js';import'../chunk-JGFWDCSB.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-673LITHP.js';import'../chunk-N6BWYHOE.js';import'../chunk-L2QZT5LQ.js';import'../chunk-WAUY2MS6.js';import'../chunk-QLJJMFDK.js';import'../chunk-23LALKB6.js';import'../chunk-MOFC3UHC.js';import'../chunk-OKBI6IIW.js';import'../chunk-KTD2GEB6.js';import'../chunk-QQM4FVO7.js';import'../chunk-CY5DLXHV.js';import'../chunk-VBHBIUWS.js';import'../chunk-NYURVOJI.js';import'../chunk-GJSFXPZK.js';import'../chunk-XIJ2XBQF.js';import'../chunk-4CAN7PGG.js';import'../chunk-CVYZS7KS.js';import'../chunk-7JM2X4UD.js';import'../chunk-FYB3QRNL.js';import'../chunk-YFDUDY6Y.js';import'../chunk-RBXMHWJQ.js';import'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-IEGZ6BLC.js';import'../chunk-GUPUXUDN.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-4N7H55OU.js';import'../chunk-AWRP67K4.js';import'../chunk-L5SK3BA5.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{d as ListItemCheckbox}from'../chunk-GUHZX6VO.js';import'../chunk-T3ITXF7W.js';import'../chunk-SIA2GA6D.js';import'../chunk-IYOPH2ON.js';import'../chunk-4HMXOGWD.js';import'../chunk-VIL6Q52L.js';import'../chunk-ABJHG7HB.js';import'../chunk-Q6MYROEY.js';import'../chunk-U6RH2BZO.js';import'../chunk-DBZ37DYH.js';import'../chunk-M46RFBDO.js';import'../chunk-5T72Q62I.js';import'../chunk-XVT4DHX3.js';import'../chunk-G7NJYNJA.js';import'../chunk-NZLSLBBQ.js';import'../chunk-Q4Z47CXE.js';import'../chunk-P5FV5ZGY.js';import'../chunk-POX4ARAQ.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XVDM35UV.js';import'../chunk-K35H5VYN.js';import'../chunk-AIRQLXLO.js';import'../chunk-UBTRI4EA.js';import'../chunk-QSHMX35F.js';import'../chunk-PM7QTMJU.js';import'../chunk-3OGZGSJ2.js';import'../chunk-UYRGKELU.js';import'../chunk-YLRL7MNJ.js';import'../chunk-M5GLIXO2.js';import'../chunk-QX4D2CU2.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JBG5YAQX.js';import'../chunk-7ZPFUDVQ.js';import'../chunk-XN6VHPJL.js';import'../chunk-W4C2Z52Z.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-WPF6FUFA.js';import'../chunk-GHNJWQTI.js';import'../chunk-XRFPQJ5P.js';import'../chunk-B5KKVXLE.js';import'../chunk-VB5Q6KYT.js';import'../chunk-XMFUZYZU.js';import'../chunk-DHFR2KLQ.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-EOB3AQZ2.js';import'../chunk-YCNBKZGC.js';import'../chunk-BSBPGWCQ.js';import'../chunk-ZYFA5BA3.js';import'../chunk-JGFWDCSB.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-673LITHP.js';import'../chunk-N6BWYHOE.js';import'../chunk-H4K4Y44I.js';import'../chunk-WAUY2MS6.js';import'../chunk-STYN7WHQ.js';import'../chunk-XD7NWI2J.js';import'../chunk-FZ6JW3TZ.js';import'../chunk-OKBI6IIW.js';import'../chunk-KTD2GEB6.js';import'../chunk-QQM4FVO7.js';import'../chunk-CY5DLXHV.js';import'../chunk-VBHBIUWS.js';import'../chunk-NYURVOJI.js';import'../chunk-GJSFXPZK.js';import'../chunk-XIJ2XBQF.js';import'../chunk-4CAN7PGG.js';import'../chunk-CVYZS7KS.js';import'../chunk-7JM2X4UD.js';import'../chunk-FYB3QRNL.js';import'../chunk-YFDUDY6Y.js';import'../chunk-RBXMHWJQ.js';import'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-IEGZ6BLC.js';import'../chunk-GUPUXUDN.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-4N7H55OU.js';import'../chunk-AWRP67K4.js';import'../chunk-L5SK3BA5.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
1
+ export{d as ListItemCheckbox}from'../chunk-JKZOOHQ3.js';import'../chunk-T3ITXF7W.js';import'../chunk-SIA2GA6D.js';import'../chunk-IYOPH2ON.js';import'../chunk-4HMXOGWD.js';import'../chunk-VIL6Q52L.js';import'../chunk-ABJHG7HB.js';import'../chunk-Q6MYROEY.js';import'../chunk-U6RH2BZO.js';import'../chunk-DBZ37DYH.js';import'../chunk-M46RFBDO.js';import'../chunk-5T72Q62I.js';import'../chunk-XVT4DHX3.js';import'../chunk-G7NJYNJA.js';import'../chunk-NZLSLBBQ.js';import'../chunk-Q4Z47CXE.js';import'../chunk-P5FV5ZGY.js';import'../chunk-POX4ARAQ.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XVDM35UV.js';import'../chunk-K35H5VYN.js';import'../chunk-AIRQLXLO.js';import'../chunk-UBTRI4EA.js';import'../chunk-QSHMX35F.js';import'../chunk-PM7QTMJU.js';import'../chunk-3OGZGSJ2.js';import'../chunk-UYRGKELU.js';import'../chunk-YLRL7MNJ.js';import'../chunk-M5GLIXO2.js';import'../chunk-QX4D2CU2.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JBG5YAQX.js';import'../chunk-7ZPFUDVQ.js';import'../chunk-XN6VHPJL.js';import'../chunk-W4C2Z52Z.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-WPF6FUFA.js';import'../chunk-GHNJWQTI.js';import'../chunk-XRFPQJ5P.js';import'../chunk-B5KKVXLE.js';import'../chunk-VB5Q6KYT.js';import'../chunk-XMFUZYZU.js';import'../chunk-DHFR2KLQ.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-EOB3AQZ2.js';import'../chunk-YCNBKZGC.js';import'../chunk-BSBPGWCQ.js';import'../chunk-ZYFA5BA3.js';import'../chunk-JGFWDCSB.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-673LITHP.js';import'../chunk-N6BWYHOE.js';import'../chunk-L2QZT5LQ.js';import'../chunk-WAUY2MS6.js';import'../chunk-QLJJMFDK.js';import'../chunk-23LALKB6.js';import'../chunk-MOFC3UHC.js';import'../chunk-OKBI6IIW.js';import'../chunk-KTD2GEB6.js';import'../chunk-QQM4FVO7.js';import'../chunk-CY5DLXHV.js';import'../chunk-VBHBIUWS.js';import'../chunk-NYURVOJI.js';import'../chunk-GJSFXPZK.js';import'../chunk-XIJ2XBQF.js';import'../chunk-4CAN7PGG.js';import'../chunk-CVYZS7KS.js';import'../chunk-7JM2X4UD.js';import'../chunk-FYB3QRNL.js';import'../chunk-YFDUDY6Y.js';import'../chunk-RBXMHWJQ.js';import'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-IEGZ6BLC.js';import'../chunk-GUPUXUDN.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-4N7H55OU.js';import'../chunk-AWRP67K4.js';import'../chunk-L5SK3BA5.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
@@ -1 +1 @@
1
- export{b as ListItem_old}from'../chunk-GUHZX6VO.js';import'../chunk-T3ITXF7W.js';import'../chunk-SIA2GA6D.js';import'../chunk-IYOPH2ON.js';import'../chunk-4HMXOGWD.js';import'../chunk-VIL6Q52L.js';import'../chunk-ABJHG7HB.js';import'../chunk-Q6MYROEY.js';import'../chunk-U6RH2BZO.js';import'../chunk-DBZ37DYH.js';import'../chunk-M46RFBDO.js';import'../chunk-5T72Q62I.js';import'../chunk-XVT4DHX3.js';import'../chunk-G7NJYNJA.js';import'../chunk-NZLSLBBQ.js';import'../chunk-Q4Z47CXE.js';import'../chunk-P5FV5ZGY.js';import'../chunk-POX4ARAQ.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XVDM35UV.js';import'../chunk-K35H5VYN.js';import'../chunk-AIRQLXLO.js';import'../chunk-UBTRI4EA.js';import'../chunk-QSHMX35F.js';import'../chunk-PM7QTMJU.js';import'../chunk-3OGZGSJ2.js';import'../chunk-UYRGKELU.js';import'../chunk-YLRL7MNJ.js';import'../chunk-M5GLIXO2.js';import'../chunk-QX4D2CU2.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JBG5YAQX.js';import'../chunk-7ZPFUDVQ.js';import'../chunk-XN6VHPJL.js';import'../chunk-W4C2Z52Z.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-WPF6FUFA.js';import'../chunk-GHNJWQTI.js';import'../chunk-XRFPQJ5P.js';import'../chunk-B5KKVXLE.js';import'../chunk-VB5Q6KYT.js';import'../chunk-XMFUZYZU.js';import'../chunk-DHFR2KLQ.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-EOB3AQZ2.js';import'../chunk-YCNBKZGC.js';import'../chunk-BSBPGWCQ.js';import'../chunk-ZYFA5BA3.js';import'../chunk-JGFWDCSB.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-673LITHP.js';import'../chunk-N6BWYHOE.js';import'../chunk-H4K4Y44I.js';import'../chunk-WAUY2MS6.js';import'../chunk-STYN7WHQ.js';import'../chunk-XD7NWI2J.js';import'../chunk-FZ6JW3TZ.js';import'../chunk-OKBI6IIW.js';import'../chunk-KTD2GEB6.js';import'../chunk-QQM4FVO7.js';import'../chunk-CY5DLXHV.js';import'../chunk-VBHBIUWS.js';import'../chunk-NYURVOJI.js';import'../chunk-GJSFXPZK.js';import'../chunk-XIJ2XBQF.js';import'../chunk-4CAN7PGG.js';import'../chunk-CVYZS7KS.js';import'../chunk-7JM2X4UD.js';import'../chunk-FYB3QRNL.js';import'../chunk-YFDUDY6Y.js';import'../chunk-RBXMHWJQ.js';import'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-IEGZ6BLC.js';import'../chunk-GUPUXUDN.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-4N7H55OU.js';import'../chunk-AWRP67K4.js';import'../chunk-L5SK3BA5.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
1
+ export{b as ListItem_old}from'../chunk-JKZOOHQ3.js';import'../chunk-T3ITXF7W.js';import'../chunk-SIA2GA6D.js';import'../chunk-IYOPH2ON.js';import'../chunk-4HMXOGWD.js';import'../chunk-VIL6Q52L.js';import'../chunk-ABJHG7HB.js';import'../chunk-Q6MYROEY.js';import'../chunk-U6RH2BZO.js';import'../chunk-DBZ37DYH.js';import'../chunk-M46RFBDO.js';import'../chunk-5T72Q62I.js';import'../chunk-XVT4DHX3.js';import'../chunk-G7NJYNJA.js';import'../chunk-NZLSLBBQ.js';import'../chunk-Q4Z47CXE.js';import'../chunk-P5FV5ZGY.js';import'../chunk-POX4ARAQ.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XVDM35UV.js';import'../chunk-K35H5VYN.js';import'../chunk-AIRQLXLO.js';import'../chunk-UBTRI4EA.js';import'../chunk-QSHMX35F.js';import'../chunk-PM7QTMJU.js';import'../chunk-3OGZGSJ2.js';import'../chunk-UYRGKELU.js';import'../chunk-YLRL7MNJ.js';import'../chunk-M5GLIXO2.js';import'../chunk-QX4D2CU2.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JBG5YAQX.js';import'../chunk-7ZPFUDVQ.js';import'../chunk-XN6VHPJL.js';import'../chunk-W4C2Z52Z.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-WPF6FUFA.js';import'../chunk-GHNJWQTI.js';import'../chunk-XRFPQJ5P.js';import'../chunk-B5KKVXLE.js';import'../chunk-VB5Q6KYT.js';import'../chunk-XMFUZYZU.js';import'../chunk-DHFR2KLQ.js';import'../chunk-JA7GAJ6P.js';import'../chunk-JYNJHAGL.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-EOB3AQZ2.js';import'../chunk-YCNBKZGC.js';import'../chunk-BSBPGWCQ.js';import'../chunk-ZYFA5BA3.js';import'../chunk-JGFWDCSB.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-PIMSGQMD.js';import'../chunk-UIZFLYFP.js';import'../chunk-673LITHP.js';import'../chunk-N6BWYHOE.js';import'../chunk-L2QZT5LQ.js';import'../chunk-WAUY2MS6.js';import'../chunk-QLJJMFDK.js';import'../chunk-23LALKB6.js';import'../chunk-MOFC3UHC.js';import'../chunk-OKBI6IIW.js';import'../chunk-KTD2GEB6.js';import'../chunk-QQM4FVO7.js';import'../chunk-CY5DLXHV.js';import'../chunk-VBHBIUWS.js';import'../chunk-NYURVOJI.js';import'../chunk-GJSFXPZK.js';import'../chunk-XIJ2XBQF.js';import'../chunk-4CAN7PGG.js';import'../chunk-CVYZS7KS.js';import'../chunk-7JM2X4UD.js';import'../chunk-FYB3QRNL.js';import'../chunk-YFDUDY6Y.js';import'../chunk-RBXMHWJQ.js';import'../chunk-TN46TEUP.js';import'../chunk-XYBXEU3T.js';import'../chunk-MQL3NZ6S.js';import'../chunk-VIMWKUML.js';import'../chunk-QZUQ6AZK.js';import'../chunk-MW7DL42Z.js';import'../chunk-IEGZ6BLC.js';import'../chunk-GUPUXUDN.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-4N7H55OU.js';import'../chunk-AWRP67K4.js';import'../chunk-L5SK3BA5.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-Y3ZZYSKX.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-WXHE4RLE.js';import'../chunk-OBZIYJO7.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sodtrack-web-ui",
3
- "version": "0.116.24",
3
+ "version": "0.117.0",
4
4
  "type": "module",
5
5
  "description": "UI components for Sodtrack Web",
6
6
  "exports": {
@@ -1 +0,0 @@
1
- import {d}from'./chunk-WAUY2MS6.js';import {a as a$4}from'./chunk-FZ6JW3TZ.js';import {a as a$1}from'./chunk-XYBXEU3T.js';import {c,e,a as a$2,b,d as d$1}from'./chunk-MQL3NZ6S.js';import {a as a$3}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-QZUQ6AZK.js';import {k}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-OBZIYJO7.js';import {useListCollection,Combobox}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import {Portal}from'@ark-ui/react/portal';import {useMemo,useRef,useEffect,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var ne=f=>{let{label:j,labelProps:G,error:y,required:T,invalid:I,disabled:i,readOnly:h,options:s,onInputValueChange:w,onSelect:x,defaultValue:v,value:u,helperText:U,emptyState:W,optionDescriptionLines:O=1,clearable:J=true,growable:c$2=true,className:K,...Q}=f,X=useMemo(()=>({sensitivity:"base"}),[]),{contains:N}=useFilter(X),p=useMemo(()=>{let e=[...v??[],...u??[]];if(!e.length)return s;let l=new Set(s.map(a=>a.value)),o=[];for(let a of e)l.has(a.value)||(l.add(a.value),o.push(a));return o.length?[...o,...s]:s},[v,s,u]),d$2=useMemo(()=>new Map(p.map(e=>[String(e.value),e])),[p]),Y=useMemo(()=>u?.map(e=>d$2.get(String(e.value))??e),[d$2,u]),M=useRef(""),{collection:S,filter:b$1,set:V}=useListCollection({initialItems:p,itemToString:e=>e.label,itemToValue:e=>String(e.value),filter:(e,l,o)=>N(e,l)||!!o.description&&N(o.description,l)});useEffect(()=>{V(p),b$1(M.current);},[b$1,p,V]);let Z=useCallback(e=>{M.current=e.inputValue,b$1(e.inputValue),w?.(e);},[b$1,w]),_=useCallback(e=>{if(!x)return;let l=new Map(e.items.map(o=>[String(o.value),o]));x(e.value.flatMap(o=>{let a=d$2.get(o)??l.get(o);return a?[a]:[]}));},[x,d$2]),C=c({error:!!(y||I),disabled:i,readOnly:h});return jsxs(Combobox.Root,{collection:S,defaultValue:v?.map(e=>String(e.value)),value:Object.hasOwn(f,"value")?u?.map(e=>String(e.value))??[]:void 0,onInputValueChange:Z,onValueChange:_,multiple:true,inputBehavior:"none",openOnClick:true,invalid:!!(y||I),disabled:i,readOnly:h,...Q,"data-disabled":C==="disabled"?"":void 0,"data-error":d$1(C)||void 0,className:a(b,K),children:[jsx(c$1,{...G,as:Combobox.Label,label:j,required:T}),jsx(Combobox.Context,{children:e$1=>{let l=Y??e$1.selectedItems;return jsx(e,{as:Combobox.Control,className:a(c$2&&"h-auto min-h-(--height-input) items-start",!c$2&&"overflow-hidden",i&&"cursor-not-allowed"),state:C,trailingClassName:c$2?"self-start py-2":void 0,clearAdornment:J&&e$1.value.length>0?jsx(a$2,{as:Combobox.ClearTrigger,onClick:o=>o.stopPropagation()}):void 0,indicator:jsx(Combobox.Trigger,{className:"group/chevron-host cursor-pointer group-data-disabled/control:cursor-not-allowed",children:jsx(a$1,{})}),children:o=>jsxs("div",{className:a("flex min-w-0 flex-1 items-center gap-1 py-2",c$2?"flex-wrap":"h-full overflow-hidden"),children:[l.map(a$1=>jsx(d,{color:"neutral",variant:"fill",size:"md",className:a("max-w-full shrink-0 [&>button]:shrink-0",i&&"bg-neutral-50 text-neutral-600 ring-neutral-600 hover:bg-neutral-50"),disabled:i,hasCloseIcon:!h&&!i,onClose:()=>{e$1.clearValue(String(a$1.value));},children:jsx("span",{className:"truncate",children:a$1.label})},String(a$1.value))),jsx(Combobox.Input,{className:a(o,"h-auto px-0 py-0 disabled:cursor-not-allowed"),"aria-required":T||void 0,placeholder:l.length===0?f.placeholder:""})]})})}}),jsx(a$3,{children:U}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsx(Combobox.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 w-(--reference-width) overflow-auto rounded-lg",children:jsxs(Combobox.ItemGroup,{children:[S.items.map(e=>jsx(Combobox.Item,{item:e,className:"data-highlighted:bg-primary-100 cursor-pointer data-disabled:cursor-not-allowed",children:jsx(Combobox.ItemContext,{children:({selected:l,disabled:o})=>jsxs("div",{className:a("font-inter flex flex-row items-center px-3 py-3.5 text-neutral-900 transition-colors","data-highlighted:bg-primary-100",e.description&&"py-3",o?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100"),children:[jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[jsx(Combobox.ItemText,{className:"text-sm leading-[130%] font-medium",children:e.label}),e.description&&jsx("p",{className:"text-xs leading-[130%] text-neutral-700",style:O?{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:O,WebkitBoxOrient:"vertical"}:void 0,children:e.description})]}),jsx("div",{className:a("ml-4 flex size-4.5 shrink-0 items-center justify-center rounded-sm transition-colors ring-inset",l?"bg-primary-600":"bg-neutral-50 ring-1 ring-neutral-600",o&&(l?"bg-neutral-400":"bg-neutral-100 ring-neutral-300")),children:l&&jsx(k,{className:"size-3.5 text-neutral-50"})})]})})},String(e.value))),jsx(Combobox.Empty,{className:"flex flex-col items-center justify-center",children:jsx(a$4,{size:"sm",variant:"not-found",...W})})]})})})})]})};ne.displayName="AutocompleteMultiple";export{ne as a};