sodtrack-web-ui 0.106.2 → 0.106.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-373CLETK.js +1 -0
- package/dist/{chunk-BO3JJ2KQ.js → chunk-7ATGBD25.js} +1 -1
- package/dist/{chunk-6UJGS5GJ.js → chunk-AMMONSDX.js} +1 -1
- package/dist/chunk-AWRP67K4.js +1 -0
- package/dist/{chunk-MGC2TK74.js → chunk-G32MOZFP.js} +1 -1
- package/dist/{chunk-HZFRDISK.js → chunk-G4XY2ICQ.js} +1 -1
- package/dist/{chunk-6ZGV33EM.js → chunk-MLJF6Q23.js} +1 -1
- package/dist/{chunk-567MJ6UA.js → chunk-N5NMVAVZ.js} +2 -2
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/autocomplete-multiple.js +1 -1
- package/dist/components/autocomplete.d.ts +23 -4
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/button-active.d.ts +8 -7
- package/dist/components/button-active.js +1 -1
- package/dist/components/button-menu.js +1 -1
- package/dist/components/card-form.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/divider.d.ts +59 -0
- package/dist/components/divider.js +1 -0
- package/dist/components/empty-state.d.ts +17 -6
- package/dist/components/empty-state.js +1 -1
- package/dist/components/index.d.ts +2 -3
- package/dist/components/index.js +1 -1
- package/dist/components/list-item-arrow.js +1 -1
- package/dist/components/list-item-button.js +1 -1
- package/dist/components/list-item-checkbox-left.js +1 -1
- package/dist/components/list-item-checkbox.js +1 -1
- package/dist/components/list-item_old.js +1 -1
- package/dist/components/tracker-item.d.ts +1 -1
- package/dist/components/tracker-item.js +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +17 -19
- package/dist/chunk-4CM257A2.js +0 -1
- package/dist/chunk-BRMNZUDV.js +0 -1
- package/dist/components/separator.d.ts +0 -6
- package/dist/components/separator.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$7}from'./chunk-N5NMVAVZ.js';import {a as a$5}from'./chunk-JW7HS6NX.js';import {a as a$6}from'./chunk-FHABUQAH.js';import {a as a$4}from'./chunk-ZZFG3AKL.js';import {a as a$3}from'./chunk-NSF2YRJD.js';import {a,b,c}from'./chunk-3AIWAHS6.js';import {a as a$1}from'./chunk-VOPVBJKL.js';import {a as a$2}from'./chunk-OBZIYJO7.js';import {useListCollection,useCombobox,Combobox,useComboboxContext}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import {Portal}from'@ark-ui/react/portal';import {useRef,useCallback,useEffect}from'react';import {jsxs,jsx}from'react/jsx-runtime';function oe(){let l=useComboboxContext(),i=useRef(false);return l.value.length&&l.collection.size&&!i.current&&(l.syncSelectedItems(),i.current=true),null}var le=l=>{let{label:i,error:c$1,required:D,tooltip:k,disabled:d,readOnly:b$1,options:s,onInputValueChange:g,onSelect:a$8,defaultValue:v,helperText:H,noResultsTitle:C,noResultsDescription:z,noResultsIcon:B,noResultsTitleLines:M,noResultsDescriptionLines:j,value:h,className:F,emptyState:q,...G}=l,U=Object.getOwnPropertyNames(l),u=useRef(null),{contains:K}=useFilter({sensitivity:"base"}),{collection:n,filter:m,set:J}=useListCollection({initialItems:[],itemToString:t=>t.label,itemToValue:t=>String(t.value),filter:K}),Q=useCallback(t=>{let y=s.find(Y=>String(Y.value)===t.itemValue);y&&a$8?.(y);},[a$8,s]),T=useCallback(t=>{m(t.inputValue),t.reason!==void 0&&g?.(t.inputValue??"");},[m,g]),W=useCombobox({collection:n,defaultValue:v?[String(v)]:void 0,placeholder:l.placeholder,inputValue:l.inputValue,onInputValueChange:T,value:U.includes("value")?h?[String(h)]:[]:void 0,onSelect:Q,inputBehavior:"autocomplete",openOnClick:true,disabled:d,readOnly:b$1,...G}),X=useCallback(()=>{a$8?.(null),T?.({inputValue:"",reason:"clear-trigger"});},[a$8,g]);useEffect(()=>{J(s);},[s]),useEffect(()=>{u.current&&u.current.value===""&&m("");},[m,u.current?.value]);let f=a({error:c$1,disabled:d,readOnly:b$1});return jsxs(Combobox.RootProvider,{value:W,"data-error":c$1||void 0,className:f.root({className:F}),children:[jsx(a$1,{as:Combobox.Label,label:i,required:D,tooltip:k}),jsx(oe,{}),jsxs(Combobox.Control,{className:a$2(f.control(),"group/control items-center justify-between gap-2 overflow-hidden px-3",d&&"cursor-not-allowed"),children:[jsx(Combobox.Input,{ref:u,className:a$2(f.input(),"data-placeholder-shown:text-input-placeholder px-0 text-left disabled:cursor-not-allowed")}),c$1&&jsx(b,{}),!b$1&&jsx(a$3,{as:Combobox.ClearTrigger,className:"group-data-disabled/control:hidden",onClick:X}),jsx(Combobox.Trigger,{className:"group/chevron-host cursor-pointer group-data-disabled/control:cursor-not-allowed",children:jsx(a$4,{})})]}),jsx(c,{children:H}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsx(Combobox.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 min-w-27.5 overflow-auto rounded-lg",children:jsxs(Combobox.ItemGroup,{className:a$2({"flex flex-col items-center justify-center":n.items.length===0}),children:[n.items.length>0&&n.items.map(t=>jsx(Combobox.Item,{item:t,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:t.label}),t.badgeExpandable&&jsx("div",{className:"flex shrink-0 justify-end overflow-visible",children:jsx(a$5,{size:"sm",...t.badgeExpandable})})]}),t.description&&jsx("p",{className:"text-xs leading-[130%]",children:t.description})]})})},t.value)),n.items.length===0&&C&&jsx(a$6,{title:C,description:z,Icon:B,descriptionLines:j,titleLines:M}),n.items.length===0&&jsx(a$7,{size:"sm",variant:"not-found",...q})]})})})})]})};le.displayName="Autocomplete";export{le as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-AWRP67K4.js';import {e}from'./chunk-5D64Y4FM.js';import {a}from'./chunk-OBZIYJO7.js';import {jsx,jsxs}from'react/jsx-runtime';var v=({children:e,className:r,...o})=>jsx("div",{...o,className:a("bg-neutral-80 @container rounded-lg border border-neutral-200",r),children:e}),u=({title:e$1,buttons:r,...o})=>jsxs("div",{...o,children:[jsxs("div",{className:"flex items-center justify-between gap-2.5 px-3 py-2 empty:hidden",children:[!!e$1&&jsx("h2",{className:"text-lg font-medium",children:e$1}),!!r&&r?.length>0&&jsx("div",{className:"ml-auto flex gap-2",children:r?.map((i,p)=>jsx(e,{...i,size:"md"},p))})]}),jsx(a$1,{})]}),P=({children:e,className:r,...o})=>jsx("div",{...o,className:a("px-3 py-4",r),children:e}),y=({children:e,ignorePadding:r=false,innerClassName:o,...i})=>jsxs("div",{...i,children:[jsx(a$1,{}),jsx("div",{className:a(o,!r&&"px-3 py-4"),children:e})]});export{v as a,u as b,P as c,y as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$8}from'./chunk-LU2N5UJD.js';import {b as b$3}from'./chunk-JKTBL7WC.js';import {c as c$1,j as j$1}from'./chunk-FRWCCOOJ.js';import {a as a$b,b as b$4,c as c$4}from'./chunk-GTVHYHF4.js';import {a as a$c}from'./chunk-GFVJRSZI.js';import {a as a$4}from'./chunk-KFAARODU.js';import {b as b$1}from'./chunk-7EQ5IQED.js';import {c as c$5}from'./chunk-JYNJHAGL.js';import {a as a$9}from'./chunk-UIZFLYFP.js';import {a as a$6,b as b$2,c as c$2,d as d$3}from'./chunk-I6O2YZVS.js';import {d as d$5}from'./chunk-MP4CHZ2K.js';import {a as a$3}from'./chunk-R6NIURLZ.js';import {d as d$1}from'./chunk-KRWEO45V.js';import {d as d$2}from'./chunk-AVJ4C64A.js';import {a}from'./chunk-FHABUQAH.js';import {a as a$5}from'./chunk-NSF2YRJD.js';import {b,a as a$7,c as c$3}from'./chunk-3AIWAHS6.js';import {a as a$a}from'./chunk-VOPVBJKL.js';import {a as a$1}from'./chunk-4CM257A2.js';import {c,s,t,h,d as d$4,p,j,g}from'./chunk-Z6FU5QVL.js';import {e,d}from'./chunk-5D64Y4FM.js';import {c as c$6}from'./chunk-C7TLKKPT.js';import {a as a$d}from'./chunk-P6B33GL6.js';import {a as a$2}from'./chunk-OBZIYJO7.js';import*as B from'react';import B__default,{createContext,useMemo,useCallback,forwardRef,useRef,useContext,useEffect,useId,useState}from'react';import*as eo from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useListCollection,useCombobox,Combobox}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import Qn from'react-phone-number-input/flags';import {getDefaultOptions}from'date-fns';import tr from'react-phone-number-input/locale/en.json';import or from'react-phone-number-input/locale/es.json';import nr from'react-phone-number-input/locale/pt.json';import {LexicalComposer}from'@lexical/react/LexicalComposer';import {RichTextPlugin}from'@lexical/react/LexicalRichTextPlugin';import {ContentEditable}from'@lexical/react/LexicalContentEditable';import {HistoryPlugin}from'@lexical/react/LexicalHistoryPlugin';import {ListPlugin}from'@lexical/react/LexicalListPlugin';import {AutoFocusPlugin}from'@lexical/react/LexicalAutoFocusPlugin';import {OnChangePlugin}from'@lexical/react/LexicalOnChangePlugin';import {LexicalErrorBoundary}from'@lexical/react/LexicalErrorBoundary';import {HeadingNode,$isHeadingNode,$createHeadingNode}from'@lexical/rich-text';import {ListNode,ListItemNode,$isListNode,REMOVE_LIST_COMMAND,INSERT_UNORDERED_LIST_COMMAND,INSERT_ORDERED_LIST_COMMAND}from'@lexical/list';import {useLexicalComposerContext}from'@lexical/react/LexicalComposerContext';import {$generateHtmlFromNodes,$generateNodesFromDOM}from'@lexical/html';import {$getSelection,$isRangeSelection,$isElementNode,SELECTION_CHANGE_COMMAND,CAN_UNDO_COMMAND,CAN_REDO_COMMAND,UNDO_COMMAND,REDO_COMMAND,OUTDENT_CONTENT_COMMAND,INDENT_CONTENT_COMMAND,FORMAT_ELEMENT_COMMAND,$createParagraphNode,FORMAT_TEXT_COMMAND,$getRoot,$insertNodes}from'lexical';import {$setBlocksType}from'@lexical/selection';import {$findMatchingParent,mergeRegister}from'@lexical/utils';import {AlignJustifyIcon,AlignRightIcon,AlignCenterIcon,AlignLeftIcon,UnderlineIcon,ItalicIcon,BoldIcon,UndoIcon,RedoIcon,ListIcon,ListOrderedIcon,IndentDecreaseIcon,IndentIncreaseIcon}from'lucide-react';import {Collapsible}from'@ark-ui/react/collapsible';import {MenuRoot,MenuTrigger,MenuPositioner,MenuContent,MenuItem}from'@ark-ui/react/menu';import {Portal}from'@ark-ui/react/portal';import {tv,cn}from'tailwind-variants';import Ml,{parsePhoneNumber,getCountryCallingCode}from'react-phone-number-input';import {getExampleNumber}from'libphonenumber-js/mobile';import fl from'libphonenumber-js/mobile/examples';var un=B__default.memo(({handleSelect:e$1,NoResultsIcon:o,noResultsLabel:t,noResultsDescription:n,noResultsDescriptionLines:r,noResultsAsColumn:i,noResultsButtonOnClick:l,optionDescriptionLines:s,noResultsButtonLabel:a$3,filteredOptions:m,inputRect:p,inputRef:h,popoverPosition:b,optionsListRef:f,selectedOption:C,options:L,setFilteredOptions:y})=>jsx(eo.Root,{asChild:true,children:jsxs("div",{ref:f,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:p?{width:`${p.width}px`,left:p.left,top:b==="bottom"?`${p.bottom}px`:void 0,bottom:b==="top"?`${window.innerHeight-p.top}px`:void 0}:void 0,children:[m.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:t,description:n,Icon:o,iconAsColumn:i,descriptionLines:r}),l&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{f.current.style.display="none",h.current.value="",y(L),l();},children:a$3})]})]}),m.map(I=>jsx(ge,{title:I.label,disabled:I.disabled,description:I.description,descriptionLines:s,onClick:()=>e$1(I),className:a$2(C?.value===I.value&&"bg-primary-200")},I.key??I.value))]})})),to=un;var dn=336,Ql=({options:e,defaultSelectedOption:o,onSelect:t,onClick:n,onInputChange:r,error:i,helperText:l,label:s,placeholder:a,value:m,size:p="md",optionDescriptionLines:h=1,noResultsLabel:b,noResultsIcon:f,noResultsDescription:C,noResultsDescriptionLines:L,noResultsAsColumn:y,noResultsButtonOnClick:I,noResultsButtonLabel:M,className:v,disabled:N})=>{let[g,P]=useState(o??null),E=useRef(null),x=useRef(null),[A,k]=useState(),[V,F]=useState([]),[c,u]=useState("bottom"),[R,_]=useState(),S=dn,j=useCallback(w=>{E.current.style.display="none",x.current.value=w.label,P(w),t?.(w);},[t]),z=useCallback(()=>{if(!x?.current)return;let w=x.current.getBoundingClientRect();k(w);let X=R?R.height:S,Y=window.innerHeight-w.bottom>X,we=w.top>X;u(Y?"bottom":we?"top":"bottom");},[R?.height]),le=useCallback(()=>{let w=e.filter(X=>X.label.toLowerCase().includes(x?.current?.value.toLowerCase()??""));if(F(w),E?.current){let X=E.current.getBoundingClientRect();_(X);}},[e]);return useEffect(()=>{F(e);},[e]),useEffect(()=>{if(!m){P(null),x.current&&(x.current.value="");return}(!x.current?.value||g?.value!==m.value)&&(P(m),x.current.value=m.label);},[m]),a$c(E,()=>{E.current.style.display="none",g&&x.current&&(x.current.value=g.label);}),useEffect(()=>{if(x?.current)return z(),x.current.addEventListener("mousedown",z),x.current.addEventListener("input",le),window.addEventListener("scroll",z,true),window.addEventListener("resize",z),()=>{x.current?.removeEventListener("mousedown",z),x.current?.removeEventListener("input",le),window.removeEventListener("scroll",z,true),window.removeEventListener("resize",z);}},[z,le]),jsxs("div",{className:a$2("relative",v),children:[jsx(a$4,{ref:x,autoComplete:"off",list:"",selectMode:true,onChange:w=>{w.target.value||(P(null),t?.(null)),r?.(w);},onClean:()=>{P(null),F(e),t?.(null);},onClick:w=>{E.current.style.display="flex",n?.(w);},onBlur:()=>{g&&x.current&&(x.current.value=g.label);},label:s,helperText:l,placeholder:a,size:p,error:i,disabled:N}),jsx(to,{handleSelect:j,noResultsLabel:b,NoResultsIcon:f,optionDescriptionLines:h,noResultsAsColumn:y,noResultsButtonLabel:M,noResultsButtonOnClick:I,noResultsDescription:C,noResultsDescriptionLines:L,filteredOptions:V,inputRect:A,inputRef:x,popoverPosition:c,optionsListRef:E,selectedOption:g,options:e,setFilteredOptions:F})]})};var bn=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,disabled:i=false,className:l,...s})=>jsxs("div",{className:a$2("flex w-full flex-col gap-1",l),...s,children:[jsx("p",{className:a$2("text-sm leading-[130%] break-all",!!n&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:o}),n&&jsx("p",{className:a$2("text-xs leading-[130%]",i?"text-neutral-400":"text-neutral-700"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:n})]}),ce=bn;var ge=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:i,endIcon:l,hasDivider:s=false,disabled:a=false,isSelected:m=false,className:p,...h})=>jsxs(ee,{hasDescription:!!n,disabled:a,hasDivider:s,className:p,isSelected:m,...h,children:[i&&B__default.cloneElement(i,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ce,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:a}),l&&B__default.cloneElement(l,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});var so=({children:e,title:o,titleLines:t=1,description:n="",descriptionLines:r,startIcon:i,hasDivider:l=false,disabled:s=false,checked:a,onCheckedChange:m,className:p,...h})=>jsxs(ee,{hasDescription:!!n,disabled:s,hasDivider:l,...h,className:a$2("pr-6",p),children:[i&&B__default.cloneElement(i,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(ce,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:s}),jsx(b$1,{checked:a,onCheckedChange:m,className:"ml-4 self-center",disabled:s})]});var ne=336,co=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:ne,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),te=()=>{let e=useContext(co);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},po=({children:e})=>{let o=useRef(null),t=useRef(null),n=useId(),[r,i]=useState(),[l,s]=useState(true),[a,m]=useState([]),[p,h]=useState(-1),[b,f]=useState("bottom"),[C,L]=useState(),[y,I]=useState(ne);return jsx(co.Provider,{value:{optionsListRef:o,inputRef:t,autocompleteId:n,inputRect:r,showChips:l,filteredOptions:a,currentFocus:p,popoverPosition:b,setFilteredOptions:m,setCurrentFocus:h,setShowChips:s,setPopoverPosition:f,setInputRect:i,optionsListHeight:y,optionsListRect:C,setOptionsListRect:L,setOptionsListHeight:I},children:e})};var Nn=({option:e,onMountWidth:o})=>{let t=useRef(null);return useEffect(()=>{t.current&&o?.(t.current.clientWidth);},[]),jsx(d$2,{variant:"fill",color:"neutral",ref:t,className:"shrink-0",size:"md",hasCloseIcon:false,children:e.label})},uo=Nn;var On=150,kn=B__default.memo(({selectedOptions:e,error:o,onCleanSelectedOptions:t,disabled:n,size:r})=>{let{autocompleteId:i,inputRect:l,inputRef:s,optionsListRef:a}=te(),m=B__default.useRef(null),[p,h]=B__default.useState(new Map),b=useMemo(()=>{if(!l?.width)return [];let C=0,L=l.width-On,y=0;for(let I=0;I<e.length&&(y+=p.get(I)??0,!(y>L));I++)C++;return e.slice(0,C)},[l?.width,e,p]),f=useCallback(()=>{n||(s?.current?.focus(),a.current.style.display="flex");},[n]);return jsxs("div",{onClick:f,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pr-12 pl-3",n&&"cursor-not-allowed"),style:{maxWidth:l?.width?l?.width:void 0,height:l?.height?l?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:m,children:b.map((C,L)=>jsx(uo,{option:C,onMountWidth:y=>h(I=>new Map(I).set(L,y))},`chip-input-${i}-${C.value}`))}),e.length>b.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!o&&jsx(a$3,{content:String(e.length),size:r}),o&&e.length>0&&jsx(c,{className:"text-error-700 h-6 w-6",onClick:C=>{C.stopPropagation(),t();}})]})}),mo=kn;var wn=B__default.memo(({option:e,index:o,onPressOption:t,isSelected:n,optionDescriptionLines:r})=>{let{currentFocus:i,inputRef:l}=te();return jsx(so,{title:e.label,checked:n,disabled:e.disabled,className:i===o?"bg-primary-200":void 0,onMouseDown:s=>{e.disabled||(l?.current?.value&&s.preventDefault(),t?.(e,s));},description:e.description,descriptionLines:r})}),ut=wn;var zn=B__default.memo(({selectedOptions:e$1,handleSelect:o,NoResultsIcon:t,noResultsLabel:n,noResultsDescription:r,noResultsDescriptionLines:i,noResultsAsColumn:l,noResultsButtonOnClick:s,optionDescriptionLines:a$2,noResultsButtonLabel:m})=>{let{popoverPosition:p,optionsListRef:h,filteredOptions:b,inputRect:f,autocompleteId:C,inputRef:L,optionsListHeight:y}=te(),I=useCallback(v=>e$1.some(N=>N.value===v.value),[e$1]),M=useMemo(()=>e$1.filter(v=>v.label.toLowerCase().includes(L?.current?.value.toLowerCase()??"")),[e$1,L?.current?.value]);return jsx(eo.Root,{asChild:true,children:jsxs("div",{ref:h,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:f?{width:`${f.width}px`,left:f.left,top:p==="bottom"?`${f.bottom}px`:void 0,bottom:p==="top"?`${window.innerHeight-f.top}px`:void 0,maxHeight:y+"px"}:void 0,children:[b.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:n,description:r,Icon:t,iconAsColumn:l,descriptionLines:i}),s&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{h.current.style.display="none",L.current.value="",s();},children:m})]})]}),M.map((v,N)=>jsx(ut,{option:v,index:N,onPressOption:g=>o(g),isSelected:I(v),optionDescriptionLines:a$2},`autocomplete-option-${C}-${v.key??v.value}`)),b.map((v,N)=>!e$1.some(g=>g.value===v.value)&&jsx(ut,{option:v,index:N,onPressOption:g=>o(g),isSelected:I(v),optionDescriptionLines:a$2},`autocomplete-option-${C}-${v.key??v.value}`))]})})}),bo=zn;var $n=B__default.memo(({selectedOptions:e,onSelect:o,error:t,helperText:n,label:r,placeholder:i,options:l,onInputChange:s,size:a,disabled:m})=>{let{setCurrentFocus:p,setFilteredOptions:h,optionsListRef:b,inputRef:f}=te();return jsx(a$4,{ref:f,autoComplete:"off",list:"",disabled:m,selectMode:true,onChange:C=>{p(-1),s?.(C.target.value);},onClean:()=>{p(-1),h(l),o?.(null,e);},onClick:()=>{m||(b.current.style.display="flex");},error:t,helperText:n,label:r,placeholder:i,fixedTopLabel:e.length>0,size:a})}),ho=$n;var go=({options:e,defaultSelectedOptions:o,onSelect:t,error:n,helperText:r,label:i,placeholder:l,noResultsLabel:s,noResultsIcon:a,noResultsDescription:m,noResultsDescriptionLines:p,noResultsAsColumn:h,noResultsButtonOnClick:b,noResultsButtonLabel:f,className:C,onInputChange:L,value:y,loading:I,size:M="md",optionDescriptionLines:v=1,disabled:N})=>{let{inputRef:g,optionsListRef:P,setFilteredOptions:E,setShowChips:x,setInputRect:A,setPopoverPosition:k,setCurrentFocus:V,showChips:F,setOptionsListRect:c,optionsListRect:u,setOptionsListHeight:R}=te(),_=useRef(false),[S,j]=useState(o??[]),z=useCallback(G=>{j(Z=>{let se,Re=Z.findIndex(cn=>cn.value===G.value);return Re===-1?(se=Z.concat(G),t?.(G,se),se):(se=Z.toSpliced(Re,1),t?.(G,se),se)});},[t]),le=useCallback(()=>{j([]),E(e),t?.(null,[]);},[]),w=useCallback(()=>{x(false);},[]),X=useCallback(()=>{x(true);},[]),Y=useCallback(()=>{if(!g?.current)return;let G=g.current.getBoundingClientRect();A(G);let Z=u?u.height>ne?ne:u.height:ne,se=window.innerHeight-G.bottom>Z,Re=G.top>Z;k(se?"bottom":Re?"top":"bottom"),R(Re?ne:window.innerHeight-G.bottom>ne?ne:window.innerHeight-G.bottom);},[u?.height]),we=useCallback(()=>{let G=e.filter(Z=>Z.label.toLowerCase().includes(g?.current?.value.toLowerCase()??""));if(E(G),P?.current){let Z=P.current.getBoundingClientRect();c(Z);}},[e,P?.current]);return useEffect(()=>{E(e);},[e]),a$c(P,()=>{P.current.style.display="none",V(-1);}),useEffect(()=>{if(g?.current)return Y(),g.current.addEventListener("mousedown",Y),g.current.addEventListener("input",we),g.current.addEventListener("focusin",w),g.current.addEventListener("focusout",X),window.addEventListener("scroll",Y,true),window.addEventListener("resize",Y),()=>{g.current?.removeEventListener("mousedown",Y),g.current?.removeEventListener("input",Y),g.current?.removeEventListener("focusout",X),g.current?.removeEventListener("focusin",w),window.removeEventListener("scroll",Y,true),window.removeEventListener("resize",Y);}},[Y,X,w,we]),useEffect(()=>{y&&(j(y),x(true));},[y]),useEffect(()=>{I||o&&o.length&&!_.current&&(j(o),_.current=true,x(true));},[o,I]),jsxs("div",{className:a$2("relative",C),children:[jsx(ho,{selectedOptions:S,onSelect:t,error:n,helperText:r,label:i,placeholder:l,handleSelect:z,options:e,onInputChange:L,size:M,disabled:N}),F&&jsx(mo,{selectedOptions:S,disabled:N,error:n,onCleanSelectedOptions:le,size:M}),jsx(bo,{handleSelect:z,selectedOptions:S,noResultsLabel:s,NoResultsIcon:a,optionDescriptionLines:v,noResultsAsColumn:h,noResultsButtonLabel:f,noResultsButtonOnClick:b,noResultsDescription:m,noResultsDescriptionLines:p})]})};var Ca=e=>jsx(po,{children:jsx(go,{...e})});var Je=({children:e,className:o,disabled:t,error:n,helperText:r,htmlFor:i,label:l,readOnly:s,required:a,tooltip:m})=>{let{root:p}=a$7({error:n,disabled:t,readOnly:s});return jsxs("div",{className:p({className:o}),"data-error":n||void 0,"data-disabled":t||void 0,"data-readonly":s||void 0,children:[l&&jsx(a$a,{as:"label",htmlFor:i,label:l,required:a,tooltip:m}),e,jsx(c$3,{children:r})]})};var ft=({className:e,country:o,countryName:t})=>{let n=Qn[o];return jsx("span",{className:a$2("flex size-4.5 shrink-0 items-center justify-center overflow-hidden rounded-full border border-white [&_svg:not([class*='size-'])]:h-full [&_svg:not([class*='size-'])]:w-auto [&_svg:not([class*='size-'])]:max-w-none [&_svg:not([class*='size-'])]:shrink-0",e),children:n&&jsx(n,{title:t})})};var Jn=({code:e,codeClassName:o,label:t})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx(ft,{country:e,countryName:t}),jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",o),children:e})]}),vo=({className:e,disabled:o,error:t,onChange:n,onOpenChange:r,options:i,readOnly:l,translations:s,value:a})=>{let m=B.useRef(null),[p$1,h]=B.useState(""),[b,f]=B.useState(false),{wrapper:C,input:L,clearIcon:y,searchIcon:I}=b$3({size:"md"}),{contains:M}=useFilter({sensitivity:"base"}),v=B.useMemo(()=>i.map(c=>({...c,key:c.code})),[i]),N=B.useMemo(()=>v.find(c=>c.key===a),[v,a]),{collection:g,filter:P,set:E}=useListCollection({initialItems:v,itemToString:c=>`${c.label} ${c.code}`,itemToValue:c=>c.key,filter:(c,u,R)=>M(c,u)||M(R.code,u.toUpperCase())});B.useEffect(()=>{E(v);},[v,E]);let x=B.useCallback(c=>{f(c),r?.(c);},[r]),A=B.useCallback(({inputValue:c})=>{let u=c??"";h(u),P(u),m.current?.scrollTo({top:0});},[P]),k=B.useCallback(c=>{x(c),c&&(h(""),P(""));},[P,x]),V=B.useCallback(({itemValue:c})=>{if(!c)return;let u=v.find(R=>R.key===c)?.code;u&&(n(u),x(false));},[v,x,n]),F=useCombobox({collection:g,inputBehavior:"autohighlight",inputValue:p$1,open:b,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:N?[N.key]:[],onInputValueChange:A,onOpenChange:({open:c})=>{c||x(false);},onSelect:V});return jsx(Combobox.RootProvider,{value:F,children:jsxs(a$b,{open:b,onOpenChange:k,children:[jsx(b$4,{asChild:true,children:jsx("button",{type:"button",className:a$2("relative flex h-full w-19.5 shrink-0 items-center justify-center rounded-l after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:w-px after:content-['']",t?"bg-danger-20 after:bg-input-ring-error after:w-0.5":o||l?"after:bg-input-ring-disabled bg-neutral-200":"group-focus-within/id-field:after:bg-input-ring-focus after:bg-input-ring bg-neutral-200 group-focus-within/id-field:after:w-0.5",!t&&b&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||l,children:N&&jsx(Jn,{code:N.code,label:N.label,codeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",l&&"text-input-text-disabled")})})}),jsx(c$4,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:C({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:s.searchCountryPlaceholder,className:L()}),!o&&p$1.length>0&&jsx("button",{type:"button",className:y(),onClick:()=>{F.setInputValue("","clear-trigger");},children:jsx(d$4,{className:"size-4.5"})}),jsx(p,{className:I()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:m,className:"h-72 overflow-auto outline-none",children:g.items.length===0?jsxs("div",{className:"flex h-full flex-1 flex-col items-center justify-center text-center text-sm",children:[jsx("p",{className:"text-neutral-700",children:s.noCountryFound}),jsx("p",{className:"text-neutral-600",children:s.noCountryFoundSubtitle})]}):jsx(Combobox.ItemGroup,{children:g.items.map(c=>jsxs(Combobox.Item,{item:c,className:"data-highlighted:bg-primary-100 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-neutral-900 outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",children:[jsx(ft,{country:c.code,countryName:c.label}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:c.label}),jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:c.code}),jsx(j,{className:a$2("ml-auto size-4 shrink-0",c.key===a?"opacity-100":"opacity-0")})]},c.key))})})]})})]})})};var ht=B.forwardRef(({className:e,clearLabel:o,disabled:t,error:n,onChange:r,readOnly:i,type:l="text",value:s,...a},m)=>{let p=B.useRef(null),h=`${s??""}`.length>0,b$1=!t&&!i&&h,f=b$1||n;B.useImperativeHandle(m,()=>p.current,[]);let C=B.useCallback(y=>{r?.(y.target.value);},[r]),L=B.useCallback(()=>{r?.(""),p.current?.focus();},[r]);return jsxs("div",{className:a$2("bg-input-bg relative flex h-full min-w-0 flex-1 rounded-r",t&&"bg-input-bg-disabled"),children:[jsx("input",{type:l,"data-slot":"input",className:a$2("text-input-text placeholder:text-input-placeholder h-full min-w-0 flex-1 rounded-r bg-transparent px-3 text-sm leading-[143%] focus-visible:outline-0",f&&!n&&"pr-10.5",b$1&&n&&"pr-14",n&&!b$1&&"pr-10.5",t&&"text-input-text-disabled",e),...a,disabled:t,readOnly:i,value:s,onChange:C,ref:p}),(b$1||n)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[b$1&&jsx(a$5,{ariaLabel:o,onClick:L}),n&&jsx(b,{})]})]})});ht.displayName="IdInput";var gt={en:"Clear identification number",es:"Limpiar n\xFAmero de identificaci\xF3n",pt:"Limpar n\xFAmero de identifica\xE7\xE3o"},Io={en:tr,es:or,pt:nr},rr=gt.en,ir=Io.en,lr={es:{clearIdLabel:gt.es,noCountryFound:"No se encontraron resultados.",noCountryFoundSubtitle:"Ajusta los criterios e int\xE9ntalo nuevamente.",searchCountryPlaceholder:"Buscar..."},pt:{clearIdLabel:gt.pt,noCountryFound:"N\xE3o foram encontrados resultados.",noCountryFoundSubtitle:"Ajuste os crit\xE9rios e tente novamente.",searchCountryPlaceholder:"Pesquisar..."}},sr={clearIdLabel:rr,noCountryFound:"No results were found.",noCountryFoundSubtitle:"Adjust the criteria and try again.",searchCountryPlaceholder:"Search..."},Ro=()=>getDefaultOptions().locale?.code,To=e=>lr[e]??sr,ar=(e,o)=>(Io[o]??ir)[e]??e,Po=({localeCode:e})=>c$1.map(o=>({code:o,label:ar(o,e)})).sort((o,t)=>o.label.localeCompare(t.label)),No=a$6,Mo=b$2,Eo=(e,o)=>{let t=o.trim();return !t||!c$2(e,t).isValid?t:d$3(e,t)};var Ao=()=>{},Oo=B.forwardRef(({autoComplete:e,className:o,country:t,disabled:n,error:r,helperText:i,id:l,label:s,name:a,onBlur:m,onChange:p=Ao,onCountryChange:h=Ao,placeholder:b,readOnly:f,required:C,tooltip:L,value:y},I)=>{let[M,v]=B.useState(false),[N,g]=B.useState(y??""),P=B.useId(),E=l??P,x=Ro(),A=B.useRef(y??"");B.useEffect(()=>{(y??"")!==A.current&&g(y??"");},[y]);let k=B.useMemo(()=>To(x),[x]),V=B.useMemo(()=>Po({localeCode:x}),[x]),F=B.useMemo(()=>Mo(t??"")||b||No,[t,b]),c=a$7({error:r,disabled:n,readOnly:f}),u=B.useCallback((S,j)=>{let z=Eo(S,j);A.current=z,p(z);},[p]),R=B.useCallback(S=>{g(S),u(t??"",S);},[t,u]),_=B.useCallback(S=>{h(S),u(S,N);},[N,h,u]);return jsx(Je,{disabled:n,error:r,helperText:i,htmlFor:E,label:s,readOnly:f,required:C,tooltip:L,children:jsxs("div",{className:a$2(c.control(),"group/id-field",!r&&!n&&!f&&M&&"after:ring-input-ring-focus after:ring-2",o),children:[jsx(vo,{disabled:n,error:r,onChange:_,onOpenChange:v,options:V,readOnly:f,translations:k,value:t}),jsx(ht,{autoComplete:e,clearLabel:k.clearIdLabel,disabled:n,error:r,id:E,name:a,onBlur:m,onChange:R,placeholder:F,readOnly:f,required:C,value:N,ref:I})]})})});Oo.displayName="IdField";var fc=({children:e$1,title:o,titleLines:t=1,description:n,descriptionLines:r=1,StartIcon:i,hasDivider:l=false,disabled:s=false,actionButton:a,isSelected:m=false,className:p,...h})=>jsxs(ee,{hasDescription:!!n,disabled:s,hasDivider:l,isSelected:m,...h,className:p,children:[i&&jsx(i,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(ce,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:s}),a&&jsx(Fragment,{children:a.isIcon?jsx(d$1,{...a,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:s??a.disabled}):jsx(e,{...a,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:s??a.disabled})})]});var Tc=({title:e,description:o="",descriptionLines:t,hasDivider:n=false,disabled:r=false,checked:i,onCheckedChange:l,className:s,chipStatus:a,chipExpandable:m,...p})=>jsxs(ee,{hasDescription:!!o,disabled:r,hasDivider:n,...p,className:a$2("pr-6",s),children:[jsx(b$1,{checked:i,onCheckedChange:l,className:"mr-4 self-center",disabled:r}),jsxs("div",{className:"flex-1",children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsx("p",{className:a$2("line-clamp-1 text-sm leading-[130%] break-all",!!o&&"font-medium"),children:e}),m&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$5,{...m})}),a&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$5,{...a,size:"xs",className:"shrink-0"})})]}),o&&jsx("p",{className:a$2("text-xs leading-[130%]",r?"text-neutral-400":"text-neutral-700",{"line-clamp-1":t===1,"line-clamp-2":t===2,"line-clamp-3":t===3,"line-clamp-4":t===4}),children:o})]})]});var yt={paragraph:"m-0",ltr:"text-left",rtl:"text-right",heading:{h1:"mb-2 text-2xl leading-[130%] font-semibold text-neutral-900",h2:"mb-2 text-xl leading-[130%] font-semibold text-neutral-900",h3:"mb-2 text-lg leading-[130%] font-semibold text-neutral-900",h4:"mb-2 text-base leading-[130%] font-semibold text-neutral-900",h5:"mb-2 text-sm leading-[130%] font-semibold text-neutral-900",h6:"mb-2 text-xs leading-[130%] font-semibold text-neutral-900"},list:{ul:"my-2 list-disc pl-5",ol:"my-2 list-decimal pl-5",listitem:"my-1",nested:{listitem:"my-1"}},text:{bold:"font-semibold",italic:"italic",underline:"underline",strikethrough:"line-through",code:"rounded bg-neutral-100 px-1 py-0.5 font-mono text-xs"},code:"rounded bg-neutral-100 p-2 font-mono text-xs",quote:"border-l-2 border-neutral-300 pl-3 italic text-neutral-700",link:"text-primary-700 underline hover:text-primary-800"},vt={headings:["h1","h2","h3"],textFormat:["bold","italic","underline"],lists:true,indent:true,alignment:["left","center","right","justify"],undoRedo:true};var Lt=({readOnly:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>{o.setEditable(!e);},[o,e]),null};var It=({editorRef:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>(e.current=o,()=>{e.current===o&&(e.current=null);}),[o,e]),null};var hr={"ql-align-left":"left","ql-align-center":"center","ql-align-right":"right","ql-align-justify":"justify"},gr={center:"ql-align-center",right:"ql-align-right",justify:"ql-align-justify"},Cr=()=>typeof window<"u"&&typeof window.DOMParser<"u",ko=e=>Cr()?new DOMParser().parseFromString(e,"text/html"):null,xr=e=>(e??"").replace(/\s+/g," ").trim(),Tt=e=>{let o=0;for(let t of Array.from(e.classList)){let n=t.match(/^ql-indent-(\d+)$/);if(!n)continue;let r=Number.parseInt(n[1],10);Number.isFinite(r)&&(o=Math.max(o,r)),e.classList.remove(t);}return o},yr=e=>{let o=e.querySelectorAll("[class*='ql-align-']");for(let t of Array.from(o))for(let n of Array.from(t.classList)){let r=hr[n];r&&(r!=="left"&&(t.style.textAlign=r),t.classList.remove(n));}},vr=e=>{let o=e.querySelectorAll("[class*='ql-indent-']");for(let t of Array.from(o)){if(t.tagName==="LI")continue;let n=Tt(t);n>0&&(t.style.paddingInlineStart=`${n*3}em`);}},Lr=(e,o)=>{let t=e.getAttribute("data-list");return t==="bullet"?"ul":t==="ordered"?"ol":o},Ir=e=>{let o=e.cloneNode(true);return o.removeAttribute("data-list"),o.removeAttribute("data-checked"),o.removeAttribute("data-indent"),Tt(o),o},Rt=(e,o)=>e.createElement(o),Rr=(e,o)=>{let t=Array.from(e.children).filter(a=>a.tagName==="LI");if(t.length===0||!t.some(a=>a.hasAttribute("data-list")?true:Array.from(a.classList).some(m=>/^ql-indent-\d+$/.test(m))))return;let r=[],i=[],l=e.tagName==="UL"?"ul":"ol";for(let a of t){let m=Tt(a),p=Lr(a,l),h=Ir(a);for(;i.length>0&&i[i.length-1].level>m;)i.pop();if(i.length===0){let f=Rt(o,p);r.push(f),i.push({level:0,kind:p,listElement:f});}let b=i[i.length-1];for(;b.level<m;){let f=b.listElement.lastElementChild;if(!f||f.tagName!=="LI")break;let C=Rt(o,p);f.appendChild(C),b={level:b.level+1,kind:p,listElement:C},i.push(b);}if(b=i[i.length-1],b.kind!==p){let f=Rt(o,p);if(i.length===1)r.push(f),i[0]={level:0,kind:p,listElement:f};else {let L=i[i.length-2].listElement.lastElementChild;L&&L.tagName==="LI"?(L.appendChild(f),i[i.length-1]={level:b.level,kind:p,listElement:f}):(r.push(f),i.length=1,i[0]={level:0,kind:p,listElement:f});}b=i[i.length-1];}b.listElement.appendChild(h);}if(r.length===0)return;let s=o.createDocumentFragment();for(let a of r)s.appendChild(a);e.replaceWith(s);},Tr=(e,o)=>{let t=Array.from(e.querySelectorAll("ol, ul"));for(let n of t)Rr(n,o);},Fo=(e,o)=>{let t=e.tagName==="UL"?"bullet":"ordered",n=Array.from(e.children).filter(r=>r.tagName==="LI");for(let r of n){r.setAttribute("data-list",t);for(let l of Array.from(r.classList))/^ql-indent-\d+$/.test(l)&&r.classList.remove(l);o>0&&r.classList.add(`ql-indent-${o}`);let i=Array.from(r.children).filter(l=>l.tagName==="UL"||l.tagName==="OL");for(let l of i)Fo(l,o+1);}},Pr=e=>{let o=e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li");for(let t of Array.from(o)){let n=t;for(let l of Array.from(n.classList))l.startsWith("ql-align-")&&n.classList.remove(l);let r=n.style.textAlign.trim().toLowerCase(),i=gr[r];i&&n.classList.add(i);}},ye=e=>xr(e).replace(/>\s+</g,"><").replace(/ /g," "),Pt=e=>{let o=e??"";if(!o.trim())return "";let t=ko(o);if(!t)return o;let{body:n}=t;return yr(n),vr(n),Tr(n,t),n.innerHTML},Nt=e=>{if(!e.trim())return "";let o=ko(e);if(!o)return e;let{body:t}=o,n=Array.from(t.querySelectorAll("ul, ol"));for(let r of n)Fo(r,0);return Pr(t),t.innerHTML};var et=e=>{let o="";return e.getEditorState().read(()=>{o=$generateHtmlFromNodes(e,null);}),Nt(o)},Sr=(e,o)=>{let t=Pt(o);e.update(()=>{let n=$getRoot();if(n.clear(),!t.trim()){n.append($createParagraphNode());return}let i=new DOMParser().parseFromString(t,"text/html"),l=$generateNodesFromDOM(e,i);if(l.length===0){n.append($createParagraphNode());return}n.select(),$insertNodes(l);});},Mt=({value:e,isSyncingRef:o})=>{let[t]=useLexicalComposerContext(),n=useRef(null);return useEffect(()=>{let r=e??"";if(n.current!==null&&ye(r)===ye(n.current))return;let i=et(t);ye(i)!==ye(r)&&(o.current=true,Sr(t,r),queueMicrotask(()=>{o.current=false;})),n.current=r;},[t,o,e]),null};var wo=["left","center","right","justify"];var Ho=["bold","italic","underline","strikethrough","code"];var hi={bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough",code:"code"},gi={left:jsx(AlignLeftIcon,{className:"size-4"}),center:jsx(AlignCenterIcon,{className:"size-4"}),right:jsx(AlignRightIcon,{className:"size-4"}),justify:jsx(AlignJustifyIcon,{className:"size-4"})},Ci={left:"Align left",center:"Align center",right:"Align right",justify:"Align justify"},Oe={bold:jsx(BoldIcon,{className:"size-4"}),italic:jsx(ItalicIcon,{className:"size-4"}),underline:jsx(UnderlineIcon,{className:"size-4"}),strikethrough:jsx("span",{className:"text-xs font-semibold",children:"S"}),code:jsx("span",{className:"font-mono text-xs",children:"</>"})},ke={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Inline code"},xi=e=>{let o=e.textFormat;return o===false?[]:Array.isArray(o)?Ho.filter(t=>o.includes(t)):["bold","italic","underline"]},yi=e=>{let o=e.alignment;return o===false?[]:Array.isArray(o)?wo.filter(t=>o.includes(t)):["left","center","right","justify"]},vi=e=>{if(e.headings===false)return [];let o=Array.isArray(e.headings)?e.headings:["h1","h2","h3"];return [{value:"paragraph",label:"Normal"},...o.map(t=>({value:t,label:t.toUpperCase()}))]},Fe=()=>jsx("div",{className:"mx-1 h-5 w-px bg-neutral-300"}),K=({label:e,onClick:o,icon:t,active:n=false,disabled:r=false})=>jsx("button",{type:"button","aria-label":e,title:e,disabled:r,onClick:o,className:a$2("inline-flex size-8 items-center justify-center rounded-md border border-transparent text-neutral-700 transition-colors","focus-visible:ring-primary-800 hover:bg-neutral-200 focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-40",n&&"border-neutral-300 bg-neutral-200 text-neutral-900"),children:t}),Ot=({config:e,className:o})=>{let[t]=useLexicalComposerContext(),n=useId(),[r,i]=useState(false),[l,s]=useState(false),[a,m]=useState(false),[p,h]=useState(false),[b,f]=useState(false),[C,L]=useState(false),[y,I]=useState(false),[M,v]=useState("paragraph"),[N,g]=useState("left"),P=useMemo(()=>xi(e),[e]),E=useMemo(()=>yi(e),[e]),x=useMemo(()=>vi(e),[e]),A=useCallback(()=>{let c=$getSelection();if(!$isRangeSelection(c))return;m(c.hasFormat("bold")),h(c.hasFormat("italic")),f(c.hasFormat("underline")),L(c.hasFormat("strikethrough")),I(c.hasFormat("code"));let u=c.anchor.getNode(),R=u.getKey()==="root"?u:u.getTopLevelElementOrThrow();if($isListNode(R))v(R.getListType()==="number"?"ol":"ul");else {let S=$findMatchingParent(R,j=>$isListNode(j));$isListNode(S)?v(S.getListType()==="number"?"ol":"ul"):v($isHeadingNode(R)?R.getTag():R.getType());}let _=$isElementNode(R)?R.getFormatType():"";g(_==="center"||_==="right"||_==="justify"?_:"left");},[]);useEffect(()=>mergeRegister(t.registerUpdateListener(({editorState:c})=>{c.read(()=>{A();});}),t.registerCommand(SELECTION_CHANGE_COMMAND,()=>(A(),false),1),t.registerCommand(CAN_UNDO_COMMAND,c=>(i(c),false),1),t.registerCommand(CAN_REDO_COMMAND,c=>(s(c),false),1)),[t,A]);let k=c=>{t.dispatchCommand(FORMAT_TEXT_COMMAND,hi[c]);},V=c=>{t.update(()=>{let u=$getSelection();if($isRangeSelection(u)){if(c==="paragraph"){$setBlocksType(u,()=>$createParagraphNode());return}$setBlocksType(u,()=>$createHeadingNode(c));}});},F=c=>{if(M===(c==="bullet"?"ul":"ol")){t.dispatchCommand(REMOVE_LIST_COMMAND,void 0);return}t.dispatchCommand(c==="bullet"?INSERT_UNORDERED_LIST_COMMAND:INSERT_ORDERED_LIST_COMMAND,void 0);};return jsxs("div",{className:a$2("flex flex-wrap items-center gap-1 border-b border-neutral-300 bg-neutral-100 px-2 py-1.5",o),children:[e.undoRedo!==false&&jsxs(Fragment,{children:[jsx(K,{label:"Undo",onClick:()=>t.dispatchCommand(UNDO_COMMAND,void 0),disabled:!r,icon:jsx(UndoIcon,{className:"size-4"})}),jsx(K,{label:"Redo",onClick:()=>t.dispatchCommand(REDO_COMMAND,void 0),disabled:!l,icon:jsx(RedoIcon,{className:"size-4"})}),jsx(Fe,{})]}),x.length>0&&jsxs(Fragment,{children:[jsx("label",{className:"sr-only",htmlFor:n,children:"Text style"}),jsx("select",{id:n,value:M.startsWith("h")?M:"paragraph",onChange:c=>V(c.target.value),className:a$2("h-8 rounded-md border border-neutral-300 bg-white px-2 text-xs font-medium text-neutral-800","focus-visible:ring-primary-800 focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:outline-none"),children:x.map(c=>jsx("option",{value:c.value,children:c.label},c.value))}),jsx(Fe,{})]}),P.length>0&&jsxs(Fragment,{children:[P.includes("bold")&&jsx(K,{label:ke.bold,onClick:()=>k("bold"),icon:Oe.bold,active:a}),P.includes("italic")&&jsx(K,{label:ke.italic,onClick:()=>k("italic"),icon:Oe.italic,active:p}),P.includes("underline")&&jsx(K,{label:ke.underline,onClick:()=>k("underline"),icon:Oe.underline,active:b}),P.includes("strikethrough")&&jsx(K,{label:ke.strikethrough,onClick:()=>k("strikethrough"),icon:Oe.strikethrough,active:C}),P.includes("code")&&jsx(K,{label:ke.code,onClick:()=>k("code"),icon:Oe.code,active:y}),jsx(Fe,{})]}),e.lists!==false&&jsxs(Fragment,{children:[jsx(K,{label:"Bulleted list",onClick:()=>F("bullet"),icon:jsx(ListIcon,{className:"size-4"}),active:M==="ul"}),jsx(K,{label:"Numbered list",onClick:()=>F("number"),icon:jsx(ListOrderedIcon,{className:"size-4"}),active:M==="ol"}),jsx(Fe,{})]}),e.indent!==false&&jsxs(Fragment,{children:[jsx(K,{label:"Decrease indent",onClick:()=>t.dispatchCommand(OUTDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentDecreaseIcon,{className:"size-4"})}),jsx(K,{label:"Increase indent",onClick:()=>t.dispatchCommand(INDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentIncreaseIcon,{className:"size-4"})}),jsx(Fe,{})]}),E.length>0&&jsx(Fragment,{children:E.map(c=>jsx(K,{label:Ci[c],onClick:()=>t.dispatchCommand(FORMAT_ELEMENT_COMMAND,c),icon:gi[c],active:N===c},c))})]})};var zo=e=>{if(e!==void 0)return typeof e=="number"?`${e}px`:e},Hi=forwardRef(({value:e,onChange:o,onBlur:t,onError:n,placeholder:r="Write your content...",readOnly:i=false,showToolbar:l=true,toolbarConfig:s=vt,className:a,editorClassName:m,toolbarClassName:p,autoFocus:h=false,minHeight:b=160,maxHeight:f,error:C=false,errorMessage:L,editorRef:y},I)=>{let M=useRef(false),v=useMemo(()=>({namespace:"SodtrackRichTextEditor",theme:yt,onError:(g,P)=>{if(n){n(g,P);return}console.error("RichTextEditor error",g);},nodes:[HeadingNode,ListNode,ListItemNode]}),[n]),N={minHeight:zo(b),maxHeight:zo(f),overflowY:f?"auto":void 0};return jsx(LexicalComposer,{initialConfig:v,children:jsxs("div",{className:"w-full",children:[jsxs("div",{ref:I,className:a$2("group flex w-full flex-col overflow-hidden rounded-lg border bg-white transition-colors","focus-within:ring-primary-800 focus-within:ring-2 focus-within:ring-offset-0",C?"border-error-500 focus-within:border-error-500 focus-within:ring-error-500":"border-neutral-500",i&&"border-neutral-300 bg-neutral-50 focus-within:ring-0",a),"data-error":C,"data-readonly":i,children:[l&&!i&&jsx(Ot,{config:s,className:p}),jsx(RichTextPlugin,{contentEditable:jsx(ContentEditable,{className:a$2("relative w-full px-4 py-3 text-sm leading-[142%] text-neutral-900 outline-none","[&_h1]:mt-2 [&_h1]:mb-2 [&_h2]:mt-2 [&_h2]:mb-2 [&_h3]:mt-2 [&_h3]:mb-2","[&_li]:my-1 [&_ol]:my-2 [&_ul]:my-2","[&_a]:text-primary-700 [&_a]:underline",i&&"cursor-default",m),style:N,onBlur:t,"aria-invalid":C}),placeholder:i?null:jsx("div",{className:"pointer-events-none absolute top-3 left-4 text-sm text-neutral-500",children:r}),ErrorBoundary:LexicalErrorBoundary}),jsx(HistoryPlugin,{}),jsx(ListPlugin,{}),jsx(Lt,{readOnly:i}),jsx(Mt,{value:e,isSyncingRef:M}),h&&!i&&jsx(AutoFocusPlugin,{}),y&&jsx(It,{editorRef:y}),jsx(OnChangePlugin,{ignoreSelectionChange:true,onChange:(g,P)=>{!o||M.current||o(et(P),g);}})]}),C&&L&&jsx("p",{className:"text-error-500 mt-1 text-xs leading-[133%]",children:L})]})})});Hi.displayName="RichTextEditor";var tt="data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0 data-[state=open]:duration-150 data-[state=closed]:duration-100 data-[state=open]:ease-out data-[state=closed]:ease-in data-[state=open]:data-[side=bottom]:slide-in-from-top-1 data-[state=closed]:data-[side=bottom]:slide-out-to-top-1 data-[state=open]:data-[side=top]:slide-in-from-bottom-1 data-[state=closed]:data-[side=top]:slide-out-to-bottom-1 data-[state=open]:data-[side=left]:slide-in-from-right-1 data-[state=closed]:data-[side=left]:slide-out-to-right-1 data-[state=open]:data-[side=right]:slide-in-from-left-1 data-[state=closed]:data-[side=right]:slide-out-to-left-1 motion-reduce:data-[state=open]:animate-none motion-reduce:data-[state=closed]:animate-none";var wp=["sm","md","lg"],Hp=["primary","secondary","ghost"],Dp=["primary","neutral"],Wi=tv({extend:d,slots:{root:"group data-[state=open]:ring-primary-800 gap-2 outline-none data-[state=open]:ring-3 data-[state=open]:ring-inset"},variants:{disabled:{true:{},false:{}}}}),$o=({label:e,options:o,onSelect:t,variant:n="primary",size:r="md",disabled:i=false,className:l,tone:s="primary",...a})=>{let m=useCallback(b=>{t?.(b.value);},[t]),{root:p,icon:h}=Wi({variant:n,size:r,tone:s,disabled:i});return jsxs(MenuRoot,{unmountOnExit:true,lazyMount:true,onSelect:m,positioning:{placement:"bottom-start",flip:["bottom-end"]},...a,children:[jsxs(MenuTrigger,{disabled:i,className:p({className:l}),children:[e,jsx(g,{className:h({className:"transition-transform duration-150 group-data-[state=open]:rotate-180"})})]}),jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{className:a$2("elevation-9 z-layer max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",tt),children:o.map(({label:b,value:f,description:C,startIcon:L,endIcon:y,hasDivider:I,disabled:M,onClick:v})=>jsx(MenuItem,{value:f,disabled:M,onSelect:v,asChild:true,children:jsx(ge,{title:b,description:C,startIcon:L,endIcon:y,disabled:M,hasDivider:I,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},f))})})})]})};var Wo=createContext(null),Yi=()=>{let e=useContext(Wo);if(!e)throw new Error("TrackerItem components must be used within TrackerItem");return e},Xi=({state:e,children:o})=>jsxs("div",{className:"relative",children:[jsx("div",{className:a$2("absolute top-1/2 z-10 h-[70%] w-0.5 -translate-y-1/2 rounded-sm",e==="active"&&"bg-primary-400",e==="success"&&"bg-success-500",e==="wait"&&"bg-neutral-400")}),o]}),Zi=forwardRef(({label:e,badgeStatus:o,details:t$1,className:n,...r},i)=>{let{state:l,stepNumber:s$1,expandable:a,onHeaderButtonClick:m}=Yi();return jsxs("div",{ref:i,className:a$2("flex min-h-10 items-center gap-3 py-2 pr-1 pl-3",n),...r,children:[jsxs("div",{className:a$2("flex flex-1 gap-2",!o&&(!t$1||t$1.length===0)&&"self-center"),children:[jsx(a$8,{state:l,stepNumber:s$1}),jsxs("div",{className:"mt-0.5 flex min-w-0 flex-1 flex-col gap-1",children:[jsx("span",{className:a$2("font-jakarta text-xs leading-snug font-medium",l==="wait"?"text-neutral-500":"text-neutral-900"),children:e}),o&&o.visible!==false&&(()=>{let{visible:p,...h}=o;return jsx(a$9,{...h})})(),t$1&&jsx("div",{className:"text-2xs flex flex-col gap-1.5 text-neutral-700",children:t$1.map(({Icon:p,text:h},b)=>jsxs("div",{className:"flex items-center gap-1.5",children:[jsx(p,{className:"size-3 shrink-0"}),jsx("span",{className:"font-inter",children:h})]},b))})]})]}),a&&jsx(Collapsible.Context,{children:({open:p})=>jsx(Collapsible.Trigger,{asChild:true,children:jsx(d$1,{Icon:p?s:t,size:"sm",variant:"ghost",tone:"neutral"})})}),!a&&m&&jsx(d$1,{Icon:h,size:"sm",variant:"ghost",tone:"neutral",onClick:m})]})});Zi.displayName="TrackerItemHeader";var Ji=forwardRef(({children:e,className:o,...t},n)=>jsx(Collapsible.Content,{className:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden",children:jsx("div",{ref:n,className:a$2("border-t border-neutral-300 px-3 py-2",o),...t,children:e})}));Ji.displayName="TrackerItemExpandableContent";var el=forwardRef(({buttons:e$1=[],className:o,...t},n)=>jsx("div",{ref:n,className:a$2("flex justify-end gap-2 border-t border-neutral-300 px-3 py-2",o),...t,children:e$1.map((r,i)=>{if(r.visible===false)return null;let{visible:l,...s}=r;return "options"in s?jsx($o,{...s,size:"sm"},i):jsx(e,{...s,size:"sm"},i)})}));el.displayName="TrackerItemFooter";var qo="overflow-hidden rounded-sm border border-neutral-300 bg-neutral-50",tl=forwardRef(({state:e,stepNumber:o,expandable:t=false,defaultExpanded:n,onExpandedChange:r,onHeaderButtonClick:i,className:l,children:s,...a},m)=>{let p=useMemo(()=>({state:e,stepNumber:o,expandable:t,onHeaderButtonClick:i}),[e,o,t,i]),h=useCallback(b=>{r?.(b.open);},[r]);return jsx(Wo.Provider,{value:p,children:jsx(Xi,{state:e,children:t?jsx(Collapsible.Root,{ref:m,defaultOpen:n??false,onOpenChange:h,className:a$2(qo,l),...a,children:s}):jsx("div",{ref:m,className:a$2(qo,l),...a,children:s})})})});tl.displayName="TrackerItem";var bu=["sm","md","lg"],hu=["semibold","medium"],gu=["primary","neutral"],pl=tv({slots:{root:"group relative inline-flex cursor-pointer items-center justify-center overflow-clip border border-solid bg-transparent transition-colors outline-none",label:"font-inter relative overflow-hidden text-center leading-[0] text-ellipsis whitespace-nowrap",icon:"mr-1.5 shrink-0",chevron:"ml-1.5 shrink-0 transition-transform duration-150 group-data-[state=open]:rotate-180",trailing:"ml-2 flex shrink-0 items-center justify-center"},variants:{size:{lg:{root:"h-10 min-h-10 rounded-md px-2 py-2",label:"text-sm leading-[142%]",icon:"size-4",chevron:"size-4"},md:{root:"h-8 min-h-8 rounded-md px-2 py-1",label:"text-sm leading-[142%]",icon:"size-4",chevron:"size-4"},sm:{root:"h-6 max-h-6 rounded-sm px-2 py-1",label:"text-xs leading-[134%]",icon:"size-3",chevron:"size-3"}},weight:{semibold:{label:"font-semibold"},medium:{label:"font-medium"}},tone:{primary:{root:"border-primary-600 text-primary-600 hover:bg-primary-100 focus-visible:ring-primary-800 aria-[pressed=true]:border-primary-700 aria-[pressed=true]:bg-primary-200 aria-[pressed=true]:text-primary-700 data-[state=open]:border-primary-700 data-[state=open]:bg-primary-200 data-[state=open]:text-primary-700 focus-visible:ring-3 focus-visible:ring-inset disabled:cursor-not-allowed disabled:border-neutral-600 disabled:bg-transparent disabled:text-neutral-600"},neutral:{root:"hover:bg-primary-100 aria-[pressed=true]:border-primary-700 aria-[pressed=true]:bg-primary-200 data-[state=open]:border-primary-700 data-[state=open]:bg-primary-200 border-neutral-800 text-neutral-800 focus-visible:ring-3 focus-visible:ring-neutral-800 focus-visible:ring-inset disabled:cursor-not-allowed disabled:border-neutral-500 disabled:bg-transparent disabled:text-neutral-500"}},loading:{true:{root:"!cursor-wait !border-neutral-600 !text-neutral-600"},false:{}}},defaultVariants:{size:"lg",weight:"semibold",tone:"primary",loading:false}}),Cu=({className:e,label:o,badgeText:t="00",StartIcon:n,options:r,onSelect:i,isSelected:l=false,isLoading:s=false,isDisabled:a=false,hasTrailingBadge:m=false,size:p="lg",weight:h="semibold",tone:b="primary",type:f="button",...C})=>{let L=a||s,y=r.filter(({isHidden:R})=>!R),I=y.length>0,M=s,v=!!n&&!s,N=!s&&m,g$1=I&&!L,P=useCallback(R=>{i?.(R.value);},[i]),E=useCallback(R=>{R?.();},[]),{root:x,label:A,icon:k,chevron:V,trailing:F}=pl({size:p,weight:h,tone:b,loading:M}),c=p,u=jsxs(Fragment,{children:[M&&jsx(c$6,{size:"sm",tone:"neutral",className:k()}),v&&n&&jsx(n,{className:k()}),jsx("span",{className:A(),children:o}),N&&jsx(a$d,{type:"square",variant:"primary",size:c,text:t,className:F()}),g$1&&jsx(g,{className:V()})]});return I?jsxs(MenuRoot,{onSelect:P,lazyMount:true,positioning:{placement:"bottom-start",flip:["bottom-end"]},children:[jsx(MenuTrigger,{...C,type:f,disabled:L,"aria-pressed":l,className:x({className:e}),children:u}),jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{className:cn("elevation-9 z-layer max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",tt),children:y.map(({label:R,description:_,startIcon:S,endIcon:j,hasDivider:z,isDisabled:le,onClick:w})=>jsx(MenuItem,{value:R,disabled:le,onSelect:()=>E(w),asChild:true,className:"flex items-center",children:jsx(ge,{title:R,description:_,startIcon:S,endIcon:j,disabled:le,hasDivider:z,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},R))})})})]}):jsx("button",{...C,type:f,disabled:L,"aria-pressed":l,className:x({className:e}),children:u})};var Ko={en:tr,es:or,pt:nr},xl={es:{clearPhoneNumberLabel:"Eliminar n\xFAmero de tel\xE9fono",noCountryFound:"No se encontraron resultados.",noCountryFoundSubtitle:"Ajusta los criterios e int\xE9ntalo nuevamente.",searchCountryPlaceholder:"Buscar..."},pt:{clearPhoneNumberLabel:"Limpar n\xFAmero de telefone",noCountryFound:"N\xE3o foram encontrados resultados.",noCountryFoundSubtitle:"Ajuste os crit\xE9rios e tente novamente.",searchCountryPlaceholder:"Pesquisar..."}},yl={clearPhoneNumberLabel:"Clear phone number",noCountryFound:"No results were found.",noCountryFoundSubtitle:"Adjust the criteria and try again.",searchCountryPlaceholder:"Search..."},vl=Ko.en,Qo="9 1234 5678",kt="ZZ",Yo=()=>{},rt=e=>xl[e]??yl,Xo=e=>Ko[e]??vl,Zo=e=>{if(e)try{let o=parsePhoneNumber(e)?.country;return !o||!j$1(o)?void 0:o}catch{return}},Jo=e=>{if(e)return getExampleNumber(e,fl)?.formatNational()},it=e=>e??kt,lt=()=>getDefaultOptions().locale?.code;var Pl=({Icon:e,callingCode:o,country:t,countryName:n,callingCodeClassName:r})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx("span",{className:"flex size-4.5 shrink-0 items-center justify-center",children:jsx(e,{"aria-hidden":true,country:t,label:n})}),o&&jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",r),children:`+${o}`})]}),en=({className:e,disabled:o,error:t,iconComponent:n,onChange:r,onOpenChange:i,options:l,readOnly:s,translations:a,value:m})=>{let p$1=B.useRef(null),[h,b]=B.useState(""),[f,C]=B.useState(false),{wrapper:L,input:y,clearIcon:I,searchIcon:M}=b$3({size:"md"}),{contains:v}=useFilter({sensitivity:"base"}),N=B.useMemo(()=>l.filter(u=>u.value!==void 0&&j$1(u.value)).map(u=>({callingCode:u.value?getCountryCallingCode(u.value):void 0,country:u.value,key:it(u.value),label:u.label})),[l]),g=B.useMemo(()=>N.find(u=>u.key===it(m)),[N,m]),{collection:P,filter:E,set:x}=useListCollection({initialItems:N,itemToString:u=>u.callingCode?`${u.label} +${u.callingCode}`:u.label,itemToValue:u=>u.key,filter:(u,R,_)=>{let S=R.trim().replace(/^\+/,"");return v(u,R)||(_.country?v(_.country,R.toUpperCase()):false)||(_.callingCode?v(_.callingCode,S)||v(`+${_.callingCode}`,R):false)}});B.useEffect(()=>{x(N);},[N,x]);let A=B.useCallback(u=>{C(u),i?.(u);},[i]),k=B.useCallback(({inputValue:u})=>{let R=u??"";b(R),E(R),p$1.current?.scrollTo({top:0});},[E]),V=B.useCallback(u=>{A(u),u&&(b(""),E(""));},[E,A]),F=B.useCallback(({itemValue:u})=>{if(!u||u===kt){r(void 0),A(false);return}j$1(u)&&(r(u),A(false));},[A,r]),c=useCombobox({collection:P,inputBehavior:"autohighlight",inputValue:h,open:f,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:g?[g.key]:[],onInputValueChange:k,onOpenChange:({open:u})=>{u||A(false);},onSelect:F});return jsx(Combobox.RootProvider,{value:c,children:jsxs(a$b,{open:f,onOpenChange:V,children:[jsx(b$4,{asChild:true,children:jsx("button",{type:"button",className:a$2("relative flex h-full w-19.5 shrink-0 items-center justify-center rounded-l after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:w-px after:content-['']",t?"bg-danger-20 after:bg-input-ring-error after:w-0.5":o||s?"after:bg-input-ring-disabled bg-neutral-200":"group-focus-within/phone:after:bg-input-ring-focus after:bg-input-ring bg-neutral-200 group-focus-within/phone:after:w-0.5",!t&&f&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||s,children:g&&jsx(Pl,{Icon:n,callingCode:g.callingCode,country:g.country,countryName:g.label,callingCodeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",s&&"text-input-text-disabled")})})}),jsx(c$4,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:L({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:a.searchCountryPlaceholder,className:y()}),!o&&h.length>0&&jsx("button",{type:"button",className:I(),onClick:()=>{c.setInputValue("","clear-trigger");},children:jsx(d$4,{className:"size-4.5"})}),jsx(p,{className:M()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:p$1,className:"h-72 overflow-auto outline-none",children:P.items.length===0?jsxs("div",{className:"flex h-full flex-1 flex-col items-center justify-center text-center text-sm",children:[jsx("p",{className:"text-neutral-700",children:a.noCountryFound}),jsx("p",{className:"text-neutral-600",children:a.noCountryFoundSubtitle})]}):jsx(Combobox.ItemGroup,{children:P.items.map(u=>jsxs(Combobox.Item,{item:u,className:"data-highlighted:bg-primary-100 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-neutral-900 outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",children:[jsx("span",{className:"flex size-4.5 shrink-0 items-center justify-center",children:jsx(n,{"aria-hidden":true,country:u.country,label:u.label})}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:u.label}),u.callingCode&&jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:`+${u.callingCode}`}),jsx(j,{className:a$2("ml-auto size-4 shrink-0",u.key===it(m)?"opacity-100":"opacity-0")})]},u.key))})})]})})]})})};var on=({className:e,country:o,countryName:t})=>{let n=Qn[o];return jsx("span",{className:a$2("flex size-4.5 shrink-0 items-center justify-center overflow-hidden rounded-full border border-white [&_svg:not([class*='size-'])]:h-full [&_svg:not([class*='size-'])]:w-auto [&_svg:not([class*='size-'])]:max-w-none [&_svg:not([class*='size-'])]:shrink-0",e),children:n&&jsx(n,{title:t})})};var St=B.forwardRef(({className:e,disabled:o,error:t,onChange:n,readOnly:r,type:i,value:l,...s},a)=>{let m=lt(),p=B.useMemo(()=>rt(m),[m]),h=B.useRef(null),f=!o&&!r&&!!l,C=f||t;B.useImperativeHandle(a,()=>h.current,[]);let L=B.useCallback(()=>{let y=h.current;if(!y){n?.({target:{value:""}});return}y.value="",n?.({target:y}),y.focus();},[n]);return jsxs("div",{className:a$2("bg-input-bg relative flex h-full min-w-0 flex-1 rounded-r",o&&"bg-input-bg-disabled"),children:[jsx("input",{type:i,"data-slot":"input",className:a$2("text-input-text placeholder:text-input-placeholder h-full min-w-0 flex-1 rounded-r bg-transparent px-3 text-sm leading-[143%] focus-visible:outline-0",C&&!t&&"pr-10.5",f&&t&&"pr-14",t&&!f&&"pr-10.5",o&&"text-input-text-disabled",e),...s,disabled:o,readOnly:r,value:l,onChange:n,ref:h}),(f||t)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[f&&jsx(a$5,{ariaLabel:p.clearPhoneNumberLabel,onClick:L}),t&&jsx(b,{})]})]})});St.displayName="PhoneNumberInputComponent";var El=Ml,ln=B.forwardRef(({className:e,defaultCountry:o,disabled:t,error:n,helperText:r,id:i,label:l,onChange:s=Yo,placeholder:a,readOnly:m,required:p,tooltip:h,value:b,...f},C)=>{let[L,y]=B.useState(false),[I,M]=B.useState(()=>Zo(b)??o),v=B.useId(),N=i??v,g=lt(),P=B.useMemo(()=>rt(g),[g]),E=B.useMemo(()=>Xo(g),[g]),x=B.useMemo(()=>Jo(I)??a??Qo,[a,I]),A=a$7({error:n,disabled:t,readOnly:m}),k=a$2(A.control(),"group/phone",!n&&!t&&!m&&L&&"after:ring-input-ring-focus after:ring-2",e),V=B.useCallback(F=>{M(F);},[]);return jsx(Je,{disabled:t,error:n,helperText:r,htmlFor:N,label:l,readOnly:m,required:p,tooltip:h,children:jsx(El,{...f,className:k,ref:C,countrySelectComponent:en,countrySelectProps:{error:n,onOpenChange:y,translations:P},defaultCountry:o,disabled:t,flagComponent:on,id:N,initialValueFormat:"national",inputComponent:St,labels:E,numberInputProps:{error:n,placeholder:x},readOnly:m,required:p,value:b,onChange:s,onCountryChange:V})})});ln.displayName="PhoneInput";var Al=({children:e,hasDescription:o=false,disabled:t=false,hasDivider:n=false,className:r,isSelected:i,onClick:l,...s})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("flex flex-row px-3 py-4 text-neutral-900 transition-colors",o?"py-3":"py-3.5",t?"cursor-not-allowed text-neutral-400":a$2("hover:bg-primary-100 focus:bg-primary-200",!!l?"cursor-pointer":"cursor-default"),i&&"bg-primary-200",r),onClick:m=>{t||l?.(m);},...s,children:e}),n&&jsx(a$1,{})]}),ee=Al;var jd=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:i,badgeContent:l,hasDivider:s=false,disabled:a=false,onSelect:m,className:p,...h$1})=>jsxs(ee,{hasDescription:!!n,disabled:a,onClick:m,hasDivider:s,className:a$2(!a&&"cursor-pointer",p),...h$1,children:[i&&B__default.cloneElement(i,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ce,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:a}),jsxs("div",{className:"ml-4 flex gap-2",children:[l&&jsx(a$3,{content:l,size:"lg",variant:"alert",className:a$2("self-center",a&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});export{Dp as A,$o as B,Ql as a,jd as b,so as c,Ca as d,Oo as e,fc as f,Tc as g,yt as h,vt as i,ye as j,Pt as k,Nt as l,Hi as m,Yi as n,Zi as o,Ji as p,el as q,tl as r,bu as s,hu as t,gu as u,Cu as v,ln as w,ge as x,wp as y,Hp as z};
|
|
1
|
+
import {a as a$8}from'./chunk-LU2N5UJD.js';import {b as b$3}from'./chunk-JKTBL7WC.js';import {c as c$1,j as j$1}from'./chunk-FRWCCOOJ.js';import {a as a$b,b as b$4,c as c$4}from'./chunk-GTVHYHF4.js';import {a as a$c}from'./chunk-GFVJRSZI.js';import {a as a$4}from'./chunk-KFAARODU.js';import {b as b$1}from'./chunk-7EQ5IQED.js';import {c as c$5}from'./chunk-JYNJHAGL.js';import {a as a$9}from'./chunk-UIZFLYFP.js';import {a as a$6,b as b$2,c as c$2,d as d$3}from'./chunk-I6O2YZVS.js';import {d as d$5}from'./chunk-MP4CHZ2K.js';import {a as a$3}from'./chunk-R6NIURLZ.js';import {d as d$1}from'./chunk-KRWEO45V.js';import {d as d$2}from'./chunk-AVJ4C64A.js';import {a}from'./chunk-FHABUQAH.js';import {a as a$5}from'./chunk-NSF2YRJD.js';import {b,a as a$7,c as c$3}from'./chunk-3AIWAHS6.js';import {a as a$a}from'./chunk-VOPVBJKL.js';import {a as a$1}from'./chunk-AWRP67K4.js';import {c,s,t,h,d as d$4,p,j,g}from'./chunk-Z6FU5QVL.js';import {e,d}from'./chunk-5D64Y4FM.js';import {c as c$6}from'./chunk-C7TLKKPT.js';import {a as a$d}from'./chunk-P6B33GL6.js';import {a as a$2}from'./chunk-OBZIYJO7.js';import*as B from'react';import B__default,{createContext,useMemo,useCallback,forwardRef,useRef,useContext,useEffect,useId,useState}from'react';import*as eo from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useListCollection,useCombobox,Combobox}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import Qn from'react-phone-number-input/flags';import {getDefaultOptions}from'date-fns';import tr from'react-phone-number-input/locale/en.json';import or from'react-phone-number-input/locale/es.json';import nr from'react-phone-number-input/locale/pt.json';import {LexicalComposer}from'@lexical/react/LexicalComposer';import {RichTextPlugin}from'@lexical/react/LexicalRichTextPlugin';import {ContentEditable}from'@lexical/react/LexicalContentEditable';import {HistoryPlugin}from'@lexical/react/LexicalHistoryPlugin';import {ListPlugin}from'@lexical/react/LexicalListPlugin';import {AutoFocusPlugin}from'@lexical/react/LexicalAutoFocusPlugin';import {OnChangePlugin}from'@lexical/react/LexicalOnChangePlugin';import {LexicalErrorBoundary}from'@lexical/react/LexicalErrorBoundary';import {HeadingNode,$isHeadingNode,$createHeadingNode}from'@lexical/rich-text';import {ListNode,ListItemNode,$isListNode,REMOVE_LIST_COMMAND,INSERT_UNORDERED_LIST_COMMAND,INSERT_ORDERED_LIST_COMMAND}from'@lexical/list';import {useLexicalComposerContext}from'@lexical/react/LexicalComposerContext';import {$generateHtmlFromNodes,$generateNodesFromDOM}from'@lexical/html';import {$getSelection,$isRangeSelection,$isElementNode,SELECTION_CHANGE_COMMAND,CAN_UNDO_COMMAND,CAN_REDO_COMMAND,UNDO_COMMAND,REDO_COMMAND,OUTDENT_CONTENT_COMMAND,INDENT_CONTENT_COMMAND,FORMAT_ELEMENT_COMMAND,$createParagraphNode,FORMAT_TEXT_COMMAND,$getRoot,$insertNodes}from'lexical';import {$setBlocksType}from'@lexical/selection';import {$findMatchingParent,mergeRegister}from'@lexical/utils';import {AlignJustifyIcon,AlignRightIcon,AlignCenterIcon,AlignLeftIcon,UnderlineIcon,ItalicIcon,BoldIcon,UndoIcon,RedoIcon,ListIcon,ListOrderedIcon,IndentDecreaseIcon,IndentIncreaseIcon}from'lucide-react';import {Collapsible}from'@ark-ui/react/collapsible';import {MenuRoot,MenuTrigger,MenuPositioner,MenuContent,MenuItem}from'@ark-ui/react/menu';import {Portal}from'@ark-ui/react/portal';import {tv,cn}from'tailwind-variants';import Ml,{parsePhoneNumber,getCountryCallingCode}from'react-phone-number-input';import {getExampleNumber}from'libphonenumber-js/mobile';import fl from'libphonenumber-js/mobile/examples';var un=B__default.memo(({handleSelect:e$1,NoResultsIcon:o,noResultsLabel:t,noResultsDescription:n,noResultsDescriptionLines:r,noResultsAsColumn:i,noResultsButtonOnClick:l,optionDescriptionLines:s,noResultsButtonLabel:a$3,filteredOptions:m,inputRect:p,inputRef:h,popoverPosition:b,optionsListRef:f,selectedOption:C,options:L,setFilteredOptions:y})=>jsx(eo.Root,{asChild:true,children:jsxs("div",{ref:f,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:p?{width:`${p.width}px`,left:p.left,top:b==="bottom"?`${p.bottom}px`:void 0,bottom:b==="top"?`${window.innerHeight-p.top}px`:void 0}:void 0,children:[m.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:t,description:n,Icon:o,iconAsColumn:i,descriptionLines:r}),l&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{f.current.style.display="none",h.current.value="",y(L),l();},children:a$3})]})]}),m.map(I=>jsx(ge,{title:I.label,disabled:I.disabled,description:I.description,descriptionLines:s,onClick:()=>e$1(I),className:a$2(C?.value===I.value&&"bg-primary-200")},I.key??I.value))]})})),to=un;var dn=336,Ql=({options:e,defaultSelectedOption:o,onSelect:t,onClick:n,onInputChange:r,error:i,helperText:l,label:s,placeholder:a,value:m,size:p="md",optionDescriptionLines:h=1,noResultsLabel:b,noResultsIcon:f,noResultsDescription:C,noResultsDescriptionLines:L,noResultsAsColumn:y,noResultsButtonOnClick:I,noResultsButtonLabel:M,className:v,disabled:N})=>{let[g,P]=useState(o??null),E=useRef(null),x=useRef(null),[A,k]=useState(),[V,F]=useState([]),[c,u]=useState("bottom"),[R,_]=useState(),w=dn,j=useCallback(S=>{E.current.style.display="none",x.current.value=S.label,P(S),t?.(S);},[t]),z=useCallback(()=>{if(!x?.current)return;let S=x.current.getBoundingClientRect();k(S);let X=R?R.height:w,Y=window.innerHeight-S.bottom>X,Se=S.top>X;u(Y?"bottom":Se?"top":"bottom");},[R?.height]),le=useCallback(()=>{let S=e.filter(X=>X.label.toLowerCase().includes(x?.current?.value.toLowerCase()??""));if(F(S),E?.current){let X=E.current.getBoundingClientRect();_(X);}},[e]);return useEffect(()=>{F(e);},[e]),useEffect(()=>{if(!m){P(null),x.current&&(x.current.value="");return}(!x.current?.value||g?.value!==m.value)&&(P(m),x.current.value=m.label);},[m]),a$c(E,()=>{E.current.style.display="none",g&&x.current&&(x.current.value=g.label);}),useEffect(()=>{if(x?.current)return z(),x.current.addEventListener("mousedown",z),x.current.addEventListener("input",le),window.addEventListener("scroll",z,true),window.addEventListener("resize",z),()=>{x.current?.removeEventListener("mousedown",z),x.current?.removeEventListener("input",le),window.removeEventListener("scroll",z,true),window.removeEventListener("resize",z);}},[z,le]),jsxs("div",{className:a$2("relative",v),children:[jsx(a$4,{ref:x,autoComplete:"off",list:"",selectMode:true,onChange:S=>{S.target.value||(P(null),t?.(null)),r?.(S);},onClean:()=>{P(null),F(e),t?.(null);},onClick:S=>{E.current.style.display="flex",n?.(S);},onBlur:()=>{g&&x.current&&(x.current.value=g.label);},label:s,helperText:l,placeholder:a,size:p,error:i,disabled:N}),jsx(to,{handleSelect:j,noResultsLabel:b,NoResultsIcon:f,optionDescriptionLines:h,noResultsAsColumn:y,noResultsButtonLabel:M,noResultsButtonOnClick:I,noResultsDescription:C,noResultsDescriptionLines:L,filteredOptions:V,inputRect:A,inputRef:x,popoverPosition:c,optionsListRef:E,selectedOption:g,options:e,setFilteredOptions:F})]})};var bn=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,disabled:i=false,className:l,...s})=>jsxs("div",{className:a$2("flex w-full flex-col gap-1",l),...s,children:[jsx("p",{className:a$2("text-sm leading-[130%] break-all",!!n&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:o}),n&&jsx("p",{className:a$2("text-xs leading-[130%]",i?"text-neutral-400":"text-neutral-700"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:n})]}),ce=bn;var ge=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:i,endIcon:l,hasDivider:s=false,disabled:a=false,isSelected:m=false,className:p,...h})=>jsxs(ee,{hasDescription:!!n,disabled:a,hasDivider:s,className:p,isSelected:m,...h,children:[i&&B__default.cloneElement(i,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ce,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:a}),l&&B__default.cloneElement(l,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});var so=({children:e,title:o,titleLines:t=1,description:n="",descriptionLines:r,startIcon:i,hasDivider:l=false,disabled:s=false,checked:a,onCheckedChange:m,className:p,...h})=>jsxs(ee,{hasDescription:!!n,disabled:s,hasDivider:l,...h,className:a$2("pr-6",p),children:[i&&B__default.cloneElement(i,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(ce,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:s}),jsx(b$1,{checked:a,onCheckedChange:m,className:"ml-4 self-center",disabled:s})]});var ne=336,co=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:ne,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),te=()=>{let e=useContext(co);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},po=({children:e})=>{let o=useRef(null),t=useRef(null),n=useId(),[r,i]=useState(),[l,s]=useState(true),[a,m]=useState([]),[p,h]=useState(-1),[b,f]=useState("bottom"),[C,L]=useState(),[y,I]=useState(ne);return jsx(co.Provider,{value:{optionsListRef:o,inputRef:t,autocompleteId:n,inputRect:r,showChips:l,filteredOptions:a,currentFocus:p,popoverPosition:b,setFilteredOptions:m,setCurrentFocus:h,setShowChips:s,setPopoverPosition:f,setInputRect:i,optionsListHeight:y,optionsListRect:C,setOptionsListRect:L,setOptionsListHeight:I},children:e})};var Nn=({option:e,onMountWidth:o})=>{let t=useRef(null);return useEffect(()=>{t.current&&o?.(t.current.clientWidth);},[]),jsx(d$2,{variant:"fill",color:"neutral",ref:t,className:"shrink-0",size:"md",hasCloseIcon:false,children:e.label})},uo=Nn;var On=150,kn=B__default.memo(({selectedOptions:e,error:o,onCleanSelectedOptions:t,disabled:n,size:r})=>{let{autocompleteId:i,inputRect:l,inputRef:s,optionsListRef:a}=te(),m=B__default.useRef(null),[p,h]=B__default.useState(new Map),b=useMemo(()=>{if(!l?.width)return [];let C=0,L=l.width-On,y=0;for(let I=0;I<e.length&&(y+=p.get(I)??0,!(y>L));I++)C++;return e.slice(0,C)},[l?.width,e,p]),f=useCallback(()=>{n||(s?.current?.focus(),a.current.style.display="flex");},[n]);return jsxs("div",{onClick:f,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pr-12 pl-3",n&&"cursor-not-allowed"),style:{maxWidth:l?.width?l?.width:void 0,height:l?.height?l?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:m,children:b.map((C,L)=>jsx(uo,{option:C,onMountWidth:y=>h(I=>new Map(I).set(L,y))},`chip-input-${i}-${C.value}`))}),e.length>b.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!o&&jsx(a$3,{content:String(e.length),size:r}),o&&e.length>0&&jsx(c,{className:"text-error-700 h-6 w-6",onClick:C=>{C.stopPropagation(),t();}})]})}),mo=kn;var Sn=B__default.memo(({option:e,index:o,onPressOption:t,isSelected:n,optionDescriptionLines:r})=>{let{currentFocus:i,inputRef:l}=te();return jsx(so,{title:e.label,checked:n,disabled:e.disabled,className:i===o?"bg-primary-200":void 0,onMouseDown:s=>{e.disabled||(l?.current?.value&&s.preventDefault(),t?.(e,s));},description:e.description,descriptionLines:r})}),ut=Sn;var zn=B__default.memo(({selectedOptions:e$1,handleSelect:o,NoResultsIcon:t,noResultsLabel:n,noResultsDescription:r,noResultsDescriptionLines:i,noResultsAsColumn:l,noResultsButtonOnClick:s,optionDescriptionLines:a$2,noResultsButtonLabel:m})=>{let{popoverPosition:p,optionsListRef:h,filteredOptions:b,inputRect:f,autocompleteId:C,inputRef:L,optionsListHeight:y}=te(),I=useCallback(v=>e$1.some(N=>N.value===v.value),[e$1]),M=useMemo(()=>e$1.filter(v=>v.label.toLowerCase().includes(L?.current?.value.toLowerCase()??"")),[e$1,L?.current?.value]);return jsx(eo.Root,{asChild:true,children:jsxs("div",{ref:h,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:f?{width:`${f.width}px`,left:f.left,top:p==="bottom"?`${f.bottom}px`:void 0,bottom:p==="top"?`${window.innerHeight-f.top}px`:void 0,maxHeight:y+"px"}:void 0,children:[b.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:n,description:r,Icon:t,iconAsColumn:l,descriptionLines:i}),s&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{h.current.style.display="none",L.current.value="",s();},children:m})]})]}),M.map((v,N)=>jsx(ut,{option:v,index:N,onPressOption:g=>o(g),isSelected:I(v),optionDescriptionLines:a$2},`autocomplete-option-${C}-${v.key??v.value}`)),b.map((v,N)=>!e$1.some(g=>g.value===v.value)&&jsx(ut,{option:v,index:N,onPressOption:g=>o(g),isSelected:I(v),optionDescriptionLines:a$2},`autocomplete-option-${C}-${v.key??v.value}`))]})})}),bo=zn;var $n=B__default.memo(({selectedOptions:e,onSelect:o,error:t,helperText:n,label:r,placeholder:i,options:l,onInputChange:s,size:a,disabled:m})=>{let{setCurrentFocus:p,setFilteredOptions:h,optionsListRef:b,inputRef:f}=te();return jsx(a$4,{ref:f,autoComplete:"off",list:"",disabled:m,selectMode:true,onChange:C=>{p(-1),s?.(C.target.value);},onClean:()=>{p(-1),h(l),o?.(null,e);},onClick:()=>{m||(b.current.style.display="flex");},error:t,helperText:n,label:r,placeholder:i,fixedTopLabel:e.length>0,size:a})}),ho=$n;var go=({options:e,defaultSelectedOptions:o,onSelect:t,error:n,helperText:r,label:i,placeholder:l,noResultsLabel:s,noResultsIcon:a,noResultsDescription:m,noResultsDescriptionLines:p,noResultsAsColumn:h,noResultsButtonOnClick:b,noResultsButtonLabel:f,className:C,onInputChange:L,value:y,loading:I,size:M="md",optionDescriptionLines:v=1,disabled:N})=>{let{inputRef:g,optionsListRef:P,setFilteredOptions:E,setShowChips:x,setInputRect:A,setPopoverPosition:k,setCurrentFocus:V,showChips:F,setOptionsListRect:c,optionsListRect:u,setOptionsListHeight:R}=te(),_=useRef(false),[w,j]=useState(o??[]),z=useCallback(G=>{j(Z=>{let se,Re=Z.findIndex(cn=>cn.value===G.value);return Re===-1?(se=Z.concat(G),t?.(G,se),se):(se=Z.toSpliced(Re,1),t?.(G,se),se)});},[t]),le=useCallback(()=>{j([]),E(e),t?.(null,[]);},[]),S=useCallback(()=>{x(false);},[]),X=useCallback(()=>{x(true);},[]),Y=useCallback(()=>{if(!g?.current)return;let G=g.current.getBoundingClientRect();A(G);let Z=u?u.height>ne?ne:u.height:ne,se=window.innerHeight-G.bottom>Z,Re=G.top>Z;k(se?"bottom":Re?"top":"bottom"),R(Re?ne:window.innerHeight-G.bottom>ne?ne:window.innerHeight-G.bottom);},[u?.height]),Se=useCallback(()=>{let G=e.filter(Z=>Z.label.toLowerCase().includes(g?.current?.value.toLowerCase()??""));if(E(G),P?.current){let Z=P.current.getBoundingClientRect();c(Z);}},[e,P?.current]);return useEffect(()=>{E(e);},[e]),a$c(P,()=>{P.current.style.display="none",V(-1);}),useEffect(()=>{if(g?.current)return Y(),g.current.addEventListener("mousedown",Y),g.current.addEventListener("input",Se),g.current.addEventListener("focusin",S),g.current.addEventListener("focusout",X),window.addEventListener("scroll",Y,true),window.addEventListener("resize",Y),()=>{g.current?.removeEventListener("mousedown",Y),g.current?.removeEventListener("input",Y),g.current?.removeEventListener("focusout",X),g.current?.removeEventListener("focusin",S),window.removeEventListener("scroll",Y,true),window.removeEventListener("resize",Y);}},[Y,X,S,Se]),useEffect(()=>{y&&(j(y),x(true));},[y]),useEffect(()=>{I||o&&o.length&&!_.current&&(j(o),_.current=true,x(true));},[o,I]),jsxs("div",{className:a$2("relative",C),children:[jsx(ho,{selectedOptions:w,onSelect:t,error:n,helperText:r,label:i,placeholder:l,handleSelect:z,options:e,onInputChange:L,size:M,disabled:N}),F&&jsx(mo,{selectedOptions:w,disabled:N,error:n,onCleanSelectedOptions:le,size:M}),jsx(bo,{handleSelect:z,selectedOptions:w,noResultsLabel:s,NoResultsIcon:a,optionDescriptionLines:v,noResultsAsColumn:h,noResultsButtonLabel:f,noResultsButtonOnClick:b,noResultsDescription:m,noResultsDescriptionLines:p})]})};var Ca=e=>jsx(po,{children:jsx(go,{...e})});var Je=({children:e,className:o,disabled:t,error:n,helperText:r,htmlFor:i,label:l,readOnly:s,required:a,tooltip:m})=>{let{root:p}=a$7({error:n,disabled:t,readOnly:s});return jsxs("div",{className:p({className:o}),"data-error":n||void 0,"data-disabled":t||void 0,"data-readonly":s||void 0,children:[l&&jsx(a$a,{as:"label",htmlFor:i,label:l,required:a,tooltip:m}),e,jsx(c$3,{children:r})]})};var ft=({className:e,country:o,countryName:t})=>{let n=Qn[o];return jsx("span",{className:a$2("flex size-4.5 shrink-0 items-center justify-center overflow-hidden rounded-full border border-white [&_svg:not([class*='size-'])]:h-full [&_svg:not([class*='size-'])]:w-auto [&_svg:not([class*='size-'])]:max-w-none [&_svg:not([class*='size-'])]:shrink-0",e),children:n&&jsx(n,{title:t})})};var Jn=({code:e,codeClassName:o,label:t})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx(ft,{country:e,countryName:t}),jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",o),children:e})]}),vo=({className:e,disabled:o,error:t,onChange:n,onOpenChange:r,options:i,readOnly:l,translations:s,value:a})=>{let m=B.useRef(null),[p$1,h]=B.useState(""),[b,f]=B.useState(false),{wrapper:C,input:L,clearIcon:y,searchIcon:I}=b$3({size:"md"}),{contains:M}=useFilter({sensitivity:"base"}),v=B.useMemo(()=>i.map(c=>({...c,key:c.code})),[i]),N=B.useMemo(()=>v.find(c=>c.key===a),[v,a]),{collection:g,filter:P,set:E}=useListCollection({initialItems:v,itemToString:c=>`${c.label} ${c.code}`,itemToValue:c=>c.key,filter:(c,u,R)=>M(c,u)||M(R.code,u.toUpperCase())});B.useEffect(()=>{E(v);},[v,E]);let x=B.useCallback(c=>{f(c),r?.(c);},[r]),A=B.useCallback(({inputValue:c})=>{let u=c??"";h(u),P(u),m.current?.scrollTo({top:0});},[P]),k=B.useCallback(c=>{x(c),c&&(h(""),P(""));},[P,x]),V=B.useCallback(({itemValue:c})=>{if(!c)return;let u=v.find(R=>R.key===c)?.code;u&&(n(u),x(false));},[v,x,n]),F=useCombobox({collection:g,inputBehavior:"autohighlight",inputValue:p$1,open:b,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:N?[N.key]:[],onInputValueChange:A,onOpenChange:({open:c})=>{c||x(false);},onSelect:V});return jsx(Combobox.RootProvider,{value:F,children:jsxs(a$b,{open:b,onOpenChange:k,children:[jsx(b$4,{asChild:true,children:jsx("button",{type:"button",className:a$2("relative flex h-full w-19.5 shrink-0 items-center justify-center rounded-l after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:w-px after:content-['']",t?"bg-danger-20 after:bg-input-ring-error after:w-0.5":o||l?"after:bg-input-ring-disabled bg-neutral-200":"group-focus-within/id-field:after:bg-input-ring-focus after:bg-input-ring bg-neutral-200 group-focus-within/id-field:after:w-0.5",!t&&b&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||l,children:N&&jsx(Jn,{code:N.code,label:N.label,codeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",l&&"text-input-text-disabled")})})}),jsx(c$4,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:C({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:s.searchCountryPlaceholder,className:L()}),!o&&p$1.length>0&&jsx("button",{type:"button",className:y(),onClick:()=>{F.setInputValue("","clear-trigger");},children:jsx(d$4,{className:"size-4.5"})}),jsx(p,{className:I()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:m,className:"h-72 overflow-auto outline-none",children:g.items.length===0?jsxs("div",{className:"flex h-full flex-1 flex-col items-center justify-center text-center text-sm",children:[jsx("p",{className:"text-neutral-700",children:s.noCountryFound}),jsx("p",{className:"text-neutral-600",children:s.noCountryFoundSubtitle})]}):jsx(Combobox.ItemGroup,{children:g.items.map(c=>jsxs(Combobox.Item,{item:c,className:"data-highlighted:bg-primary-100 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-neutral-900 outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",children:[jsx(ft,{country:c.code,countryName:c.label}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:c.label}),jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:c.code}),jsx(j,{className:a$2("ml-auto size-4 shrink-0",c.key===a?"opacity-100":"opacity-0")})]},c.key))})})]})})]})})};var ht=B.forwardRef(({className:e,clearLabel:o,disabled:t,error:n,onChange:r,readOnly:i,type:l="text",value:s,...a},m)=>{let p=B.useRef(null),h=`${s??""}`.length>0,b$1=!t&&!i&&h,f=b$1||n;B.useImperativeHandle(m,()=>p.current,[]);let C=B.useCallback(y=>{r?.(y.target.value);},[r]),L=B.useCallback(()=>{r?.(""),p.current?.focus();},[r]);return jsxs("div",{className:a$2("bg-input-bg relative flex h-full min-w-0 flex-1 rounded-r",t&&"bg-input-bg-disabled"),children:[jsx("input",{type:l,"data-slot":"input",className:a$2("text-input-text placeholder:text-input-placeholder h-full min-w-0 flex-1 rounded-r bg-transparent px-3 text-sm leading-[143%] focus-visible:outline-0",f&&!n&&"pr-10.5",b$1&&n&&"pr-14",n&&!b$1&&"pr-10.5",t&&"text-input-text-disabled",e),...a,disabled:t,readOnly:i,value:s,onChange:C,ref:p}),(b$1||n)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[b$1&&jsx(a$5,{ariaLabel:o,onClick:L}),n&&jsx(b,{})]})]})});ht.displayName="IdInput";var gt={en:"Clear identification number",es:"Limpiar n\xFAmero de identificaci\xF3n",pt:"Limpar n\xFAmero de identifica\xE7\xE3o"},Io={en:tr,es:or,pt:nr},rr=gt.en,ir=Io.en,lr={es:{clearIdLabel:gt.es,noCountryFound:"No se encontraron resultados.",noCountryFoundSubtitle:"Ajusta los criterios e int\xE9ntalo nuevamente.",searchCountryPlaceholder:"Buscar..."},pt:{clearIdLabel:gt.pt,noCountryFound:"N\xE3o foram encontrados resultados.",noCountryFoundSubtitle:"Ajuste os crit\xE9rios e tente novamente.",searchCountryPlaceholder:"Pesquisar..."}},sr={clearIdLabel:rr,noCountryFound:"No results were found.",noCountryFoundSubtitle:"Adjust the criteria and try again.",searchCountryPlaceholder:"Search..."},Ro=()=>getDefaultOptions().locale?.code,To=e=>lr[e]??sr,ar=(e,o)=>(Io[o]??ir)[e]??e,Po=({localeCode:e})=>c$1.map(o=>({code:o,label:ar(o,e)})).sort((o,t)=>o.label.localeCompare(t.label)),No=a$6,Mo=b$2,Eo=(e,o)=>{let t=o.trim();return !t||!c$2(e,t).isValid?t:d$3(e,t)};var Ao=()=>{},Oo=B.forwardRef(({autoComplete:e,className:o,country:t,disabled:n,error:r,helperText:i,id:l,label:s,name:a,onBlur:m,onChange:p=Ao,onCountryChange:h=Ao,placeholder:b,readOnly:f,required:C,tooltip:L,value:y},I)=>{let[M,v]=B.useState(false),[N,g]=B.useState(y??""),P=B.useId(),E=l??P,x=Ro(),A=B.useRef(y??"");B.useEffect(()=>{(y??"")!==A.current&&g(y??"");},[y]);let k=B.useMemo(()=>To(x),[x]),V=B.useMemo(()=>Po({localeCode:x}),[x]),F=B.useMemo(()=>Mo(t??"")||b||No,[t,b]),c=a$7({error:r,disabled:n,readOnly:f}),u=B.useCallback((w,j)=>{let z=Eo(w,j);A.current=z,p(z);},[p]),R=B.useCallback(w=>{g(w),u(t??"",w);},[t,u]),_=B.useCallback(w=>{h(w),u(w,N);},[N,h,u]);return jsx(Je,{disabled:n,error:r,helperText:i,htmlFor:E,label:s,readOnly:f,required:C,tooltip:L,children:jsxs("div",{className:a$2(c.control(),"group/id-field",!r&&!n&&!f&&M&&"after:ring-input-ring-focus after:ring-2",o),children:[jsx(vo,{disabled:n,error:r,onChange:_,onOpenChange:v,options:V,readOnly:f,translations:k,value:t}),jsx(ht,{autoComplete:e,clearLabel:k.clearIdLabel,disabled:n,error:r,id:E,name:a,onBlur:m,onChange:R,placeholder:F,readOnly:f,required:C,value:N,ref:I})]})})});Oo.displayName="IdField";var fc=({children:e$1,title:o,titleLines:t=1,description:n,descriptionLines:r=1,StartIcon:i,hasDivider:l=false,disabled:s=false,actionButton:a,isSelected:m=false,className:p,...h})=>jsxs(ee,{hasDescription:!!n,disabled:s,hasDivider:l,isSelected:m,...h,className:p,children:[i&&jsx(i,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(ce,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:s}),a&&jsx(Fragment,{children:a.isIcon?jsx(d$1,{...a,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:s??a.disabled}):jsx(e,{...a,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:s??a.disabled})})]});var Tc=({title:e,description:o="",descriptionLines:t,hasDivider:n=false,disabled:r=false,checked:i,onCheckedChange:l,className:s,chipStatus:a,chipExpandable:m,...p})=>jsxs(ee,{hasDescription:!!o,disabled:r,hasDivider:n,...p,className:a$2("pr-6",s),children:[jsx(b$1,{checked:i,onCheckedChange:l,className:"mr-4 self-center",disabled:r}),jsxs("div",{className:"flex-1",children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsx("p",{className:a$2("line-clamp-1 text-sm leading-[130%] break-all",!!o&&"font-medium"),children:e}),m&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$5,{...m})}),a&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$5,{...a,size:"xs",className:"shrink-0"})})]}),o&&jsx("p",{className:a$2("text-xs leading-[130%]",r?"text-neutral-400":"text-neutral-700",{"line-clamp-1":t===1,"line-clamp-2":t===2,"line-clamp-3":t===3,"line-clamp-4":t===4}),children:o})]})]});var yt={paragraph:"m-0",ltr:"text-left",rtl:"text-right",heading:{h1:"mb-2 text-2xl leading-[130%] font-semibold text-neutral-900",h2:"mb-2 text-xl leading-[130%] font-semibold text-neutral-900",h3:"mb-2 text-lg leading-[130%] font-semibold text-neutral-900",h4:"mb-2 text-base leading-[130%] font-semibold text-neutral-900",h5:"mb-2 text-sm leading-[130%] font-semibold text-neutral-900",h6:"mb-2 text-xs leading-[130%] font-semibold text-neutral-900"},list:{ul:"my-2 list-disc pl-5",ol:"my-2 list-decimal pl-5",listitem:"my-1",nested:{listitem:"my-1"}},text:{bold:"font-semibold",italic:"italic",underline:"underline",strikethrough:"line-through",code:"rounded bg-neutral-100 px-1 py-0.5 font-mono text-xs"},code:"rounded bg-neutral-100 p-2 font-mono text-xs",quote:"border-l-2 border-neutral-300 pl-3 italic text-neutral-700",link:"text-primary-700 underline hover:text-primary-800"},vt={headings:["h1","h2","h3"],textFormat:["bold","italic","underline"],lists:true,indent:true,alignment:["left","center","right","justify"],undoRedo:true};var Lt=({readOnly:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>{o.setEditable(!e);},[o,e]),null};var It=({editorRef:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>(e.current=o,()=>{e.current===o&&(e.current=null);}),[o,e]),null};var hr={"ql-align-left":"left","ql-align-center":"center","ql-align-right":"right","ql-align-justify":"justify"},gr={center:"ql-align-center",right:"ql-align-right",justify:"ql-align-justify"},Cr=()=>typeof window<"u"&&typeof window.DOMParser<"u",ko=e=>Cr()?new DOMParser().parseFromString(e,"text/html"):null,xr=e=>(e??"").replace(/\s+/g," ").trim(),Tt=e=>{let o=0;for(let t of Array.from(e.classList)){let n=t.match(/^ql-indent-(\d+)$/);if(!n)continue;let r=Number.parseInt(n[1],10);Number.isFinite(r)&&(o=Math.max(o,r)),e.classList.remove(t);}return o},yr=e=>{let o=e.querySelectorAll("[class*='ql-align-']");for(let t of Array.from(o))for(let n of Array.from(t.classList)){let r=hr[n];r&&(r!=="left"&&(t.style.textAlign=r),t.classList.remove(n));}},vr=e=>{let o=e.querySelectorAll("[class*='ql-indent-']");for(let t of Array.from(o)){if(t.tagName==="LI")continue;let n=Tt(t);n>0&&(t.style.paddingInlineStart=`${n*3}em`);}},Lr=(e,o)=>{let t=e.getAttribute("data-list");return t==="bullet"?"ul":t==="ordered"?"ol":o},Ir=e=>{let o=e.cloneNode(true);return o.removeAttribute("data-list"),o.removeAttribute("data-checked"),o.removeAttribute("data-indent"),Tt(o),o},Rt=(e,o)=>e.createElement(o),Rr=(e,o)=>{let t=Array.from(e.children).filter(a=>a.tagName==="LI");if(t.length===0||!t.some(a=>a.hasAttribute("data-list")?true:Array.from(a.classList).some(m=>/^ql-indent-\d+$/.test(m))))return;let r=[],i=[],l=e.tagName==="UL"?"ul":"ol";for(let a of t){let m=Tt(a),p=Lr(a,l),h=Ir(a);for(;i.length>0&&i[i.length-1].level>m;)i.pop();if(i.length===0){let f=Rt(o,p);r.push(f),i.push({level:0,kind:p,listElement:f});}let b=i[i.length-1];for(;b.level<m;){let f=b.listElement.lastElementChild;if(!f||f.tagName!=="LI")break;let C=Rt(o,p);f.appendChild(C),b={level:b.level+1,kind:p,listElement:C},i.push(b);}if(b=i[i.length-1],b.kind!==p){let f=Rt(o,p);if(i.length===1)r.push(f),i[0]={level:0,kind:p,listElement:f};else {let L=i[i.length-2].listElement.lastElementChild;L&&L.tagName==="LI"?(L.appendChild(f),i[i.length-1]={level:b.level,kind:p,listElement:f}):(r.push(f),i.length=1,i[0]={level:0,kind:p,listElement:f});}b=i[i.length-1];}b.listElement.appendChild(h);}if(r.length===0)return;let s=o.createDocumentFragment();for(let a of r)s.appendChild(a);e.replaceWith(s);},Tr=(e,o)=>{let t=Array.from(e.querySelectorAll("ol, ul"));for(let n of t)Rr(n,o);},Fo=(e,o)=>{let t=e.tagName==="UL"?"bullet":"ordered",n=Array.from(e.children).filter(r=>r.tagName==="LI");for(let r of n){r.setAttribute("data-list",t);for(let l of Array.from(r.classList))/^ql-indent-\d+$/.test(l)&&r.classList.remove(l);o>0&&r.classList.add(`ql-indent-${o}`);let i=Array.from(r.children).filter(l=>l.tagName==="UL"||l.tagName==="OL");for(let l of i)Fo(l,o+1);}},Pr=e=>{let o=e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li");for(let t of Array.from(o)){let n=t;for(let l of Array.from(n.classList))l.startsWith("ql-align-")&&n.classList.remove(l);let r=n.style.textAlign.trim().toLowerCase(),i=gr[r];i&&n.classList.add(i);}},ye=e=>xr(e).replace(/>\s+</g,"><").replace(/ /g," "),Pt=e=>{let o=e??"";if(!o.trim())return "";let t=ko(o);if(!t)return o;let{body:n}=t;return yr(n),vr(n),Tr(n,t),n.innerHTML},Nt=e=>{if(!e.trim())return "";let o=ko(e);if(!o)return e;let{body:t}=o,n=Array.from(t.querySelectorAll("ul, ol"));for(let r of n)Fo(r,0);return Pr(t),t.innerHTML};var et=e=>{let o="";return e.getEditorState().read(()=>{o=$generateHtmlFromNodes(e,null);}),Nt(o)},wr=(e,o)=>{let t=Pt(o);e.update(()=>{let n=$getRoot();if(n.clear(),!t.trim()){n.append($createParagraphNode());return}let i=new DOMParser().parseFromString(t,"text/html"),l=$generateNodesFromDOM(e,i);if(l.length===0){n.append($createParagraphNode());return}n.select(),$insertNodes(l);});},Mt=({value:e,isSyncingRef:o})=>{let[t]=useLexicalComposerContext(),n=useRef(null);return useEffect(()=>{let r=e??"";if(n.current!==null&&ye(r)===ye(n.current))return;let i=et(t);ye(i)!==ye(r)&&(o.current=true,wr(t,r),queueMicrotask(()=>{o.current=false;})),n.current=r;},[t,o,e]),null};var So=["left","center","right","justify"];var Ho=["bold","italic","underline","strikethrough","code"];var hi={bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough",code:"code"},gi={left:jsx(AlignLeftIcon,{className:"size-4"}),center:jsx(AlignCenterIcon,{className:"size-4"}),right:jsx(AlignRightIcon,{className:"size-4"}),justify:jsx(AlignJustifyIcon,{className:"size-4"})},Ci={left:"Align left",center:"Align center",right:"Align right",justify:"Align justify"},Oe={bold:jsx(BoldIcon,{className:"size-4"}),italic:jsx(ItalicIcon,{className:"size-4"}),underline:jsx(UnderlineIcon,{className:"size-4"}),strikethrough:jsx("span",{className:"text-xs font-semibold",children:"S"}),code:jsx("span",{className:"font-mono text-xs",children:"</>"})},ke={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Inline code"},xi=e=>{let o=e.textFormat;return o===false?[]:Array.isArray(o)?Ho.filter(t=>o.includes(t)):["bold","italic","underline"]},yi=e=>{let o=e.alignment;return o===false?[]:Array.isArray(o)?So.filter(t=>o.includes(t)):["left","center","right","justify"]},vi=e=>{if(e.headings===false)return [];let o=Array.isArray(e.headings)?e.headings:["h1","h2","h3"];return [{value:"paragraph",label:"Normal"},...o.map(t=>({value:t,label:t.toUpperCase()}))]},Fe=()=>jsx("div",{className:"mx-1 h-5 w-px bg-neutral-300"}),K=({label:e,onClick:o,icon:t,active:n=false,disabled:r=false})=>jsx("button",{type:"button","aria-label":e,title:e,disabled:r,onClick:o,className:a$2("inline-flex size-8 items-center justify-center rounded-md border border-transparent text-neutral-700 transition-colors","focus-visible:ring-primary-800 hover:bg-neutral-200 focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-40",n&&"border-neutral-300 bg-neutral-200 text-neutral-900"),children:t}),Ot=({config:e,className:o})=>{let[t]=useLexicalComposerContext(),n=useId(),[r,i]=useState(false),[l,s]=useState(false),[a,m]=useState(false),[p,h]=useState(false),[b,f]=useState(false),[C,L]=useState(false),[y,I]=useState(false),[M,v]=useState("paragraph"),[N,g]=useState("left"),P=useMemo(()=>xi(e),[e]),E=useMemo(()=>yi(e),[e]),x=useMemo(()=>vi(e),[e]),A=useCallback(()=>{let c=$getSelection();if(!$isRangeSelection(c))return;m(c.hasFormat("bold")),h(c.hasFormat("italic")),f(c.hasFormat("underline")),L(c.hasFormat("strikethrough")),I(c.hasFormat("code"));let u=c.anchor.getNode(),R=u.getKey()==="root"?u:u.getTopLevelElementOrThrow();if($isListNode(R))v(R.getListType()==="number"?"ol":"ul");else {let w=$findMatchingParent(R,j=>$isListNode(j));$isListNode(w)?v(w.getListType()==="number"?"ol":"ul"):v($isHeadingNode(R)?R.getTag():R.getType());}let _=$isElementNode(R)?R.getFormatType():"";g(_==="center"||_==="right"||_==="justify"?_:"left");},[]);useEffect(()=>mergeRegister(t.registerUpdateListener(({editorState:c})=>{c.read(()=>{A();});}),t.registerCommand(SELECTION_CHANGE_COMMAND,()=>(A(),false),1),t.registerCommand(CAN_UNDO_COMMAND,c=>(i(c),false),1),t.registerCommand(CAN_REDO_COMMAND,c=>(s(c),false),1)),[t,A]);let k=c=>{t.dispatchCommand(FORMAT_TEXT_COMMAND,hi[c]);},V=c=>{t.update(()=>{let u=$getSelection();if($isRangeSelection(u)){if(c==="paragraph"){$setBlocksType(u,()=>$createParagraphNode());return}$setBlocksType(u,()=>$createHeadingNode(c));}});},F=c=>{if(M===(c==="bullet"?"ul":"ol")){t.dispatchCommand(REMOVE_LIST_COMMAND,void 0);return}t.dispatchCommand(c==="bullet"?INSERT_UNORDERED_LIST_COMMAND:INSERT_ORDERED_LIST_COMMAND,void 0);};return jsxs("div",{className:a$2("flex flex-wrap items-center gap-1 border-b border-neutral-300 bg-neutral-100 px-2 py-1.5",o),children:[e.undoRedo!==false&&jsxs(Fragment,{children:[jsx(K,{label:"Undo",onClick:()=>t.dispatchCommand(UNDO_COMMAND,void 0),disabled:!r,icon:jsx(UndoIcon,{className:"size-4"})}),jsx(K,{label:"Redo",onClick:()=>t.dispatchCommand(REDO_COMMAND,void 0),disabled:!l,icon:jsx(RedoIcon,{className:"size-4"})}),jsx(Fe,{})]}),x.length>0&&jsxs(Fragment,{children:[jsx("label",{className:"sr-only",htmlFor:n,children:"Text style"}),jsx("select",{id:n,value:M.startsWith("h")?M:"paragraph",onChange:c=>V(c.target.value),className:a$2("h-8 rounded-md border border-neutral-300 bg-white px-2 text-xs font-medium text-neutral-800","focus-visible:ring-primary-800 focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:outline-none"),children:x.map(c=>jsx("option",{value:c.value,children:c.label},c.value))}),jsx(Fe,{})]}),P.length>0&&jsxs(Fragment,{children:[P.includes("bold")&&jsx(K,{label:ke.bold,onClick:()=>k("bold"),icon:Oe.bold,active:a}),P.includes("italic")&&jsx(K,{label:ke.italic,onClick:()=>k("italic"),icon:Oe.italic,active:p}),P.includes("underline")&&jsx(K,{label:ke.underline,onClick:()=>k("underline"),icon:Oe.underline,active:b}),P.includes("strikethrough")&&jsx(K,{label:ke.strikethrough,onClick:()=>k("strikethrough"),icon:Oe.strikethrough,active:C}),P.includes("code")&&jsx(K,{label:ke.code,onClick:()=>k("code"),icon:Oe.code,active:y}),jsx(Fe,{})]}),e.lists!==false&&jsxs(Fragment,{children:[jsx(K,{label:"Bulleted list",onClick:()=>F("bullet"),icon:jsx(ListIcon,{className:"size-4"}),active:M==="ul"}),jsx(K,{label:"Numbered list",onClick:()=>F("number"),icon:jsx(ListOrderedIcon,{className:"size-4"}),active:M==="ol"}),jsx(Fe,{})]}),e.indent!==false&&jsxs(Fragment,{children:[jsx(K,{label:"Decrease indent",onClick:()=>t.dispatchCommand(OUTDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentDecreaseIcon,{className:"size-4"})}),jsx(K,{label:"Increase indent",onClick:()=>t.dispatchCommand(INDENT_CONTENT_COMMAND,void 0),icon:jsx(IndentIncreaseIcon,{className:"size-4"})}),jsx(Fe,{})]}),E.length>0&&jsx(Fragment,{children:E.map(c=>jsx(K,{label:Ci[c],onClick:()=>t.dispatchCommand(FORMAT_ELEMENT_COMMAND,c),icon:gi[c],active:N===c},c))})]})};var zo=e=>{if(e!==void 0)return typeof e=="number"?`${e}px`:e},Hi=forwardRef(({value:e,onChange:o,onBlur:t,onError:n,placeholder:r="Write your content...",readOnly:i=false,showToolbar:l=true,toolbarConfig:s=vt,className:a,editorClassName:m,toolbarClassName:p,autoFocus:h=false,minHeight:b=160,maxHeight:f,error:C=false,errorMessage:L,editorRef:y},I)=>{let M=useRef(false),v=useMemo(()=>({namespace:"SodtrackRichTextEditor",theme:yt,onError:(g,P)=>{if(n){n(g,P);return}console.error("RichTextEditor error",g);},nodes:[HeadingNode,ListNode,ListItemNode]}),[n]),N={minHeight:zo(b),maxHeight:zo(f),overflowY:f?"auto":void 0};return jsx(LexicalComposer,{initialConfig:v,children:jsxs("div",{className:"w-full",children:[jsxs("div",{ref:I,className:a$2("group flex w-full flex-col overflow-hidden rounded-lg border bg-white transition-colors","focus-within:ring-primary-800 focus-within:ring-2 focus-within:ring-offset-0",C?"border-error-500 focus-within:border-error-500 focus-within:ring-error-500":"border-neutral-500",i&&"border-neutral-300 bg-neutral-50 focus-within:ring-0",a),"data-error":C,"data-readonly":i,children:[l&&!i&&jsx(Ot,{config:s,className:p}),jsx(RichTextPlugin,{contentEditable:jsx(ContentEditable,{className:a$2("relative w-full px-4 py-3 text-sm leading-[142%] text-neutral-900 outline-none","[&_h1]:mt-2 [&_h1]:mb-2 [&_h2]:mt-2 [&_h2]:mb-2 [&_h3]:mt-2 [&_h3]:mb-2","[&_li]:my-1 [&_ol]:my-2 [&_ul]:my-2","[&_a]:text-primary-700 [&_a]:underline",i&&"cursor-default",m),style:N,onBlur:t,"aria-invalid":C}),placeholder:i?null:jsx("div",{className:"pointer-events-none absolute top-3 left-4 text-sm text-neutral-500",children:r}),ErrorBoundary:LexicalErrorBoundary}),jsx(HistoryPlugin,{}),jsx(ListPlugin,{}),jsx(Lt,{readOnly:i}),jsx(Mt,{value:e,isSyncingRef:M}),h&&!i&&jsx(AutoFocusPlugin,{}),y&&jsx(It,{editorRef:y}),jsx(OnChangePlugin,{ignoreSelectionChange:true,onChange:(g,P)=>{!o||M.current||o(et(P),g);}})]}),C&&L&&jsx("p",{className:"text-error-500 mt-1 text-xs leading-[133%]",children:L})]})})});Hi.displayName="RichTextEditor";var tt="data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0 data-[state=open]:duration-150 data-[state=closed]:duration-100 data-[state=open]:ease-out data-[state=closed]:ease-in data-[state=open]:data-[side=bottom]:slide-in-from-top-1 data-[state=closed]:data-[side=bottom]:slide-out-to-top-1 data-[state=open]:data-[side=top]:slide-in-from-bottom-1 data-[state=closed]:data-[side=top]:slide-out-to-bottom-1 data-[state=open]:data-[side=left]:slide-in-from-right-1 data-[state=closed]:data-[side=left]:slide-out-to-right-1 data-[state=open]:data-[side=right]:slide-in-from-left-1 data-[state=closed]:data-[side=right]:slide-out-to-left-1 motion-reduce:data-[state=open]:animate-none motion-reduce:data-[state=closed]:animate-none";var wp=["sm","md","lg"],Sp=["primary","secondary","ghost"],Hp=["primary","neutral"],Wi=tv({extend:d,slots:{root:"group data-[state=open]:ring-primary-800 gap-2 outline-none data-[state=open]:ring-3 data-[state=open]:ring-inset"},variants:{disabled:{true:{},false:{}}}}),$o=({label:e,options:o,onSelect:t,variant:n="primary",size:r="md",disabled:i=false,className:l,tone:s="primary",...a})=>{let m=useCallback(b=>{t?.(b.value);},[t]),{root:p,icon:h}=Wi({variant:n,size:r,tone:s,disabled:i});return jsxs(MenuRoot,{unmountOnExit:true,lazyMount:true,onSelect:m,positioning:{placement:"bottom-start",flip:["bottom-end"]},...a,children:[jsxs(MenuTrigger,{disabled:i,className:p({className:l}),children:[e,jsx(g,{className:h({className:"transition-transform duration-150 group-data-[state=open]:rotate-180"})})]}),jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{className:a$2("elevation-9 z-layer max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",tt),children:o.map(({label:b,value:f,description:C,startIcon:L,endIcon:y,hasDivider:I,disabled:M,onClick:v})=>jsx(MenuItem,{value:f,disabled:M,onSelect:v,asChild:true,children:jsx(ge,{title:b,description:C,startIcon:L,endIcon:y,disabled:M,hasDivider:I,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},f))})})})]})};var Wo=createContext(null),Yi=()=>{let e=useContext(Wo);if(!e)throw new Error("TrackerItem components must be used within TrackerItem");return e},Xi=({state:e,children:o})=>jsxs("div",{className:"relative",children:[jsx("div",{className:a$2("absolute top-1/2 z-10 h-[70%] w-0.5 -translate-y-1/2 rounded-sm",e==="active"&&"bg-primary-400",e==="success"&&"bg-success-500",e==="wait"&&"bg-neutral-400")}),o]}),Zi=forwardRef(({label:e,badgeStatus:o,details:t$1,className:n,...r},i)=>{let{state:l,stepNumber:s$1,expandable:a,onHeaderButtonClick:m}=Yi();return jsxs("div",{ref:i,className:a$2("flex min-h-10 items-center gap-3 py-2 pr-1 pl-3",n),...r,children:[jsxs("div",{className:a$2("flex flex-1 gap-2",!o&&(!t$1||t$1.length===0)&&"self-center"),children:[jsx(a$8,{state:l,stepNumber:s$1}),jsxs("div",{className:"mt-0.5 flex min-w-0 flex-1 flex-col gap-1",children:[jsx("span",{className:a$2("font-jakarta text-xs leading-snug font-medium",l==="wait"?"text-neutral-500":"text-neutral-900"),children:e}),o&&o.visible!==false&&(()=>{let{visible:p,...h}=o;return jsx(a$9,{...h})})(),t$1&&jsx("div",{className:"text-2xs flex flex-col gap-1.5 text-neutral-700",children:t$1.map(({Icon:p,text:h},b)=>jsxs("div",{className:"flex items-center gap-1.5",children:[jsx(p,{className:"size-3 shrink-0"}),jsx("span",{className:"font-inter",children:h})]},b))})]})]}),a&&jsx(Collapsible.Context,{children:({open:p})=>jsx(Collapsible.Trigger,{asChild:true,children:jsx(d$1,{Icon:p?s:t,size:"sm",variant:"ghost",tone:"neutral"})})}),!a&&m&&jsx(d$1,{Icon:h,size:"sm",variant:"ghost",tone:"neutral",onClick:m})]})});Zi.displayName="TrackerItemHeader";var Ji=forwardRef(({children:e,className:o,...t},n)=>jsx(Collapsible.Content,{className:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden",children:jsx("div",{ref:n,className:a$2("border-t border-neutral-300 px-3 py-2",o),...t,children:e})}));Ji.displayName="TrackerItemExpandableContent";var el=forwardRef(({buttons:e$1=[],className:o,...t},n)=>jsx("div",{ref:n,className:a$2("flex justify-end gap-2 border-t border-neutral-300 px-3 py-2",o),...t,children:e$1.map((r,i)=>{if(r.visible===false)return null;let{visible:l,...s}=r;return "options"in s?jsx($o,{...s,size:"sm"},i):jsx(e,{...s,size:"sm"},i)})}));el.displayName="TrackerItemFooter";var qo="overflow-hidden rounded-sm border border-neutral-300 bg-neutral-50",tl=forwardRef(({state:e,stepNumber:o,expandable:t=false,defaultExpanded:n,onExpandedChange:r,onHeaderButtonClick:i,className:l,children:s,...a},m)=>{let p=useMemo(()=>({state:e,stepNumber:o,expandable:t,onHeaderButtonClick:i}),[e,o,t,i]),h=useCallback(b=>{r?.(b.open);},[r]);return jsx(Wo.Provider,{value:p,children:jsx(Xi,{state:e,children:t?jsx(Collapsible.Root,{ref:m,defaultOpen:n??false,onOpenChange:h,className:a$2(qo,l),...a,children:s}):jsx("div",{ref:m,className:a$2(qo,l),...a,children:s})})})});tl.displayName="TrackerItem";var fu=["sm","md","lg"],bu=["semibold","medium"],hu=["primary","neutral"],pl=tv({slots:{root:"group relative inline-flex cursor-pointer items-center justify-center overflow-clip border border-solid bg-transparent transition-colors outline-none",label:"font-inter relative overflow-hidden text-center leading-[0] text-ellipsis whitespace-nowrap",icon:"mr-1.5 shrink-0",chevron:"ml-1.5 shrink-0 transition-transform duration-150 group-data-[state=open]:rotate-180",trailing:"ml-2 flex shrink-0 items-center justify-center"},variants:{size:{lg:{root:"h-10 min-h-10 rounded-md px-2 py-2",label:"text-sm leading-[142%]",icon:"size-4",chevron:"size-4"},md:{root:"h-8 min-h-8 rounded-md px-2 py-1",label:"text-sm leading-[142%]",icon:"size-4",chevron:"size-4"},sm:{root:"h-6 max-h-6 rounded-sm px-2 py-1",label:"text-xs leading-[134%]",icon:"size-3",chevron:"size-3"}},weight:{semibold:{label:"font-semibold"},medium:{label:"font-medium"}},tone:{primary:{root:"border-primary-600 text-primary-600 hover:bg-primary-100 focus-visible:ring-primary-800 aria-[pressed=true]:border-primary-700 aria-[pressed=true]:bg-primary-200 aria-[pressed=true]:text-primary-700 data-[state=open]:border-primary-700 data-[state=open]:bg-primary-200 data-[state=open]:text-primary-700 focus-visible:ring-3 focus-visible:ring-inset disabled:cursor-not-allowed disabled:border-neutral-600 disabled:bg-transparent disabled:text-neutral-600"},neutral:{root:"hover:bg-primary-100 aria-[pressed=true]:border-primary-700 aria-[pressed=true]:bg-primary-200 data-[state=open]:border-primary-700 data-[state=open]:bg-primary-200 border-neutral-800 text-neutral-800 focus-visible:ring-3 focus-visible:ring-neutral-800 focus-visible:ring-inset disabled:cursor-not-allowed disabled:border-neutral-500 disabled:bg-transparent disabled:text-neutral-500"}},loading:{true:{root:"!cursor-wait !border-neutral-600 !text-neutral-600"},false:{}}},defaultVariants:{size:"lg",weight:"semibold",tone:"primary",loading:false}}),gu=({className:e,label:o,badgeText:t="00",StartIcon:n,options:r,onSelect:i,isSelected:l=false,isLoading:s=false,isDisabled:a=false,hasTrailingBadge:m=false,size:p="lg",weight:h="semibold",tone:b="primary",type:f="button",...C})=>{let L=a||s,y=r.filter(({isHidden:R})=>!R),I=y.length>0,M=s,v=!!n&&!s,N=!s&&m,g$1=I&&!L,P=useCallback(R=>{i?.(R.value);},[i]),E=useCallback(R=>{R?.();},[]),{root:x,label:A,icon:k,chevron:V,trailing:F}=pl({size:p,weight:h,tone:b,loading:M}),c=p,u=jsxs(Fragment,{children:[M&&jsx(c$6,{size:"sm",tone:"neutral",className:k()}),v&&n&&jsx(n,{className:k()}),jsx("span",{className:A(),children:o}),N&&jsx(a$d,{type:"square",variant:"primary",size:c,text:t,className:F()}),g$1&&jsx(g,{className:V()})]});return I?jsxs(MenuRoot,{onSelect:P,lazyMount:true,positioning:{placement:"bottom-start",flip:["bottom-end"]},children:[jsx(MenuTrigger,{...C,type:f,disabled:L,"aria-pressed":l,className:x({className:e}),children:u}),jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{className:cn("elevation-9 z-layer max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",tt),children:y.map(({label:R,description:_,startIcon:w,endIcon:j,hasDivider:z,isDisabled:le,onClick:S})=>jsx(MenuItem,{value:R,disabled:le,onSelect:()=>E(S),asChild:true,className:"flex items-center",children:jsx(ge,{title:R,description:_,startIcon:w,endIcon:j,disabled:le,hasDivider:z,className:"data-highlighted:bg-primary-100 outline-none [&_p]:break-normal"})},R))})})})]}):jsx("button",{...C,type:f,disabled:L,"aria-pressed":l,className:x({className:e}),children:u})};var Ko={en:tr,es:or,pt:nr},xl={es:{clearPhoneNumberLabel:"Eliminar n\xFAmero de tel\xE9fono",noCountryFound:"No se encontraron resultados.",noCountryFoundSubtitle:"Ajusta los criterios e int\xE9ntalo nuevamente.",searchCountryPlaceholder:"Buscar..."},pt:{clearPhoneNumberLabel:"Limpar n\xFAmero de telefone",noCountryFound:"N\xE3o foram encontrados resultados.",noCountryFoundSubtitle:"Ajuste os crit\xE9rios e tente novamente.",searchCountryPlaceholder:"Pesquisar..."}},yl={clearPhoneNumberLabel:"Clear phone number",noCountryFound:"No results were found.",noCountryFoundSubtitle:"Adjust the criteria and try again.",searchCountryPlaceholder:"Search..."},vl=Ko.en,Qo="9 1234 5678",kt="ZZ",Yo=()=>{},rt=e=>xl[e]??yl,Xo=e=>Ko[e]??vl,Zo=e=>{if(e)try{let o=parsePhoneNumber(e)?.country;return !o||!j$1(o)?void 0:o}catch{return}},Jo=e=>{if(e)return getExampleNumber(e,fl)?.formatNational()},it=e=>e??kt,lt=()=>getDefaultOptions().locale?.code;var Pl=({Icon:e,callingCode:o,country:t,countryName:n,callingCodeClassName:r})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx("span",{className:"flex size-4.5 shrink-0 items-center justify-center",children:jsx(e,{"aria-hidden":true,country:t,label:n})}),o&&jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",r),children:`+${o}`})]}),en=({className:e,disabled:o,error:t,iconComponent:n,onChange:r,onOpenChange:i,options:l,readOnly:s,translations:a,value:m})=>{let p$1=B.useRef(null),[h,b]=B.useState(""),[f,C]=B.useState(false),{wrapper:L,input:y,clearIcon:I,searchIcon:M}=b$3({size:"md"}),{contains:v}=useFilter({sensitivity:"base"}),N=B.useMemo(()=>l.filter(u=>u.value!==void 0&&j$1(u.value)).map(u=>({callingCode:u.value?getCountryCallingCode(u.value):void 0,country:u.value,key:it(u.value),label:u.label})),[l]),g=B.useMemo(()=>N.find(u=>u.key===it(m)),[N,m]),{collection:P,filter:E,set:x}=useListCollection({initialItems:N,itemToString:u=>u.callingCode?`${u.label} +${u.callingCode}`:u.label,itemToValue:u=>u.key,filter:(u,R,_)=>{let w=R.trim().replace(/^\+/,"");return v(u,R)||(_.country?v(_.country,R.toUpperCase()):false)||(_.callingCode?v(_.callingCode,w)||v(`+${_.callingCode}`,R):false)}});B.useEffect(()=>{x(N);},[N,x]);let A=B.useCallback(u=>{C(u),i?.(u);},[i]),k=B.useCallback(({inputValue:u})=>{let R=u??"";b(R),E(R),p$1.current?.scrollTo({top:0});},[E]),V=B.useCallback(u=>{A(u),u&&(b(""),E(""));},[E,A]),F=B.useCallback(({itemValue:u})=>{if(!u||u===kt){r(void 0),A(false);return}j$1(u)&&(r(u),A(false));},[A,r]),c=useCombobox({collection:P,inputBehavior:"autohighlight",inputValue:h,open:f,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:g?[g.key]:[],onInputValueChange:k,onOpenChange:({open:u})=>{u||A(false);},onSelect:F});return jsx(Combobox.RootProvider,{value:c,children:jsxs(a$b,{open:f,onOpenChange:V,children:[jsx(b$4,{asChild:true,children:jsx("button",{type:"button",className:a$2("relative flex h-full w-19.5 shrink-0 items-center justify-center rounded-l after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:w-px after:content-['']",t?"bg-danger-20 after:bg-input-ring-error after:w-0.5":o||s?"after:bg-input-ring-disabled bg-neutral-200":"group-focus-within/phone:after:bg-input-ring-focus after:bg-input-ring bg-neutral-200 group-focus-within/phone:after:w-0.5",!t&&f&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||s,children:g&&jsx(Pl,{Icon:n,callingCode:g.callingCode,country:g.country,countryName:g.label,callingCodeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",s&&"text-input-text-disabled")})})}),jsx(c$4,{portalled:false,className:"w-75 p-0",children:jsxs(Combobox.Content,{children:[jsxs(Combobox.Control,{className:"pb-0",children:[jsxs("div",{className:L({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:a.searchCountryPlaceholder,className:y()}),!o&&h.length>0&&jsx("button",{type:"button",className:I(),onClick:()=>{c.setInputValue("","clear-trigger");},children:jsx(d$4,{className:"size-4.5"})}),jsx(p,{className:M()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:p$1,className:"h-72 overflow-auto outline-none",children:P.items.length===0?jsxs("div",{className:"flex h-full flex-1 flex-col items-center justify-center text-center text-sm",children:[jsx("p",{className:"text-neutral-700",children:a.noCountryFound}),jsx("p",{className:"text-neutral-600",children:a.noCountryFoundSubtitle})]}):jsx(Combobox.ItemGroup,{children:P.items.map(u=>jsxs(Combobox.Item,{item:u,className:"data-highlighted:bg-primary-100 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-neutral-900 outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",children:[jsx("span",{className:"flex size-4.5 shrink-0 items-center justify-center",children:jsx(n,{"aria-hidden":true,country:u.country,label:u.label})}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:u.label}),u.callingCode&&jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:`+${u.callingCode}`}),jsx(j,{className:a$2("ml-auto size-4 shrink-0",u.key===it(m)?"opacity-100":"opacity-0")})]},u.key))})})]})})]})})};var on=({className:e,country:o,countryName:t})=>{let n=Qn[o];return jsx("span",{className:a$2("flex size-4.5 shrink-0 items-center justify-center overflow-hidden rounded-full border border-white [&_svg:not([class*='size-'])]:h-full [&_svg:not([class*='size-'])]:w-auto [&_svg:not([class*='size-'])]:max-w-none [&_svg:not([class*='size-'])]:shrink-0",e),children:n&&jsx(n,{title:t})})};var wt=B.forwardRef(({className:e,disabled:o,error:t,onChange:n,readOnly:r,type:i,value:l,...s},a)=>{let m=lt(),p=B.useMemo(()=>rt(m),[m]),h=B.useRef(null),f=!o&&!r&&!!l,C=f||t;B.useImperativeHandle(a,()=>h.current,[]);let L=B.useCallback(()=>{let y=h.current;if(!y){n?.({target:{value:""}});return}y.value="",n?.({target:y}),y.focus();},[n]);return jsxs("div",{className:a$2("bg-input-bg relative flex h-full min-w-0 flex-1 rounded-r",o&&"bg-input-bg-disabled"),children:[jsx("input",{type:i,"data-slot":"input",className:a$2("text-input-text placeholder:text-input-placeholder h-full min-w-0 flex-1 rounded-r bg-transparent px-3 text-sm leading-[143%] focus-visible:outline-0",C&&!t&&"pr-10.5",f&&t&&"pr-14",t&&!f&&"pr-10.5",o&&"text-input-text-disabled",e),...s,disabled:o,readOnly:r,value:l,onChange:n,ref:h}),(f||t)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[f&&jsx(a$5,{ariaLabel:p.clearPhoneNumberLabel,onClick:L}),t&&jsx(b,{})]})]})});wt.displayName="PhoneNumberInputComponent";var El=Ml,ln=B.forwardRef(({className:e,defaultCountry:o,disabled:t,error:n,helperText:r,id:i,label:l,onChange:s=Yo,placeholder:a,readOnly:m,required:p,tooltip:h,value:b,...f},C)=>{let[L,y]=B.useState(false),[I,M]=B.useState(()=>Zo(b)??o),v=B.useId(),N=i??v,g=lt(),P=B.useMemo(()=>rt(g),[g]),E=B.useMemo(()=>Xo(g),[g]),x=B.useMemo(()=>Jo(I)??a??Qo,[a,I]),A=a$7({error:n,disabled:t,readOnly:m}),k=a$2(A.control(),"group/phone",!n&&!t&&!m&&L&&"after:ring-input-ring-focus after:ring-2",e),V=B.useCallback(F=>{M(F);},[]);return jsx(Je,{disabled:t,error:n,helperText:r,htmlFor:N,label:l,readOnly:m,required:p,tooltip:h,children:jsx(El,{...f,className:k,ref:C,countrySelectComponent:en,countrySelectProps:{error:n,onOpenChange:y,translations:P},defaultCountry:o,disabled:t,flagComponent:on,id:N,initialValueFormat:"national",inputComponent:wt,labels:E,numberInputProps:{error:n,placeholder:x},readOnly:m,required:p,value:b,onChange:s,onCountryChange:V})})});ln.displayName="PhoneInput";var Al=({children:e,hasDescription:o=false,disabled:t=false,hasDivider:n=false,className:r,isSelected:i,onClick:l,...s})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("flex flex-row px-3 py-4 text-neutral-900 transition-colors",o?"py-3":"py-3.5",t?"cursor-not-allowed text-neutral-400":a$2("hover:bg-primary-100 focus:bg-primary-200",!!l?"cursor-pointer":"cursor-default"),i&&"bg-primary-200",r),onClick:m=>{t||l?.(m);},...s,children:e}),n&&jsx(a$1,{})]}),ee=Al;var Wd=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:i,badgeContent:l,hasDivider:s=false,disabled:a=false,onSelect:m,className:p,...h$1})=>jsxs(ee,{hasDescription:!!n,disabled:a,onClick:m,hasDivider:s,className:a$2(!a&&"cursor-pointer",p),...h$1,children:[i&&B__default.cloneElement(i,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ce,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:a}),jsxs("div",{className:"ml-4 flex gap-2",children:[l&&jsx(a$3,{content:l,size:"lg",variant:"alert",className:a$2("self-center",a&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});export{Hp as A,$o as B,Ql as a,Wd as b,so as c,Ca as d,Oo as e,fc as f,Tc as g,yt as h,vt as i,ye as j,Pt as k,Nt as l,Hi as m,Yi as n,Zi as o,Ji as p,el as q,tl as r,fu as s,bu as t,hu as u,gu as v,ln as w,ge as x,wp as y,Sp as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {tv}from'tailwind-variants';import {jsx}from'react/jsx-runtime';var o=tv({base:"shrink-0",variants:{variant:{50:"",300:"",400:"",600:""},tone:{neutral:"",primary:""},orientation:{horizontal:"h-px w-full",vertical:"h-full w-px"}},compoundVariants:[{tone:"neutral",variant:"50",className:"bg-neutral-50"},{tone:"neutral",variant:"300",className:"bg-neutral-300"},{tone:"neutral",variant:"400",className:"bg-neutral-400"},{tone:"neutral",variant:"600",className:"bg-neutral-600"},{tone:"primary",variant:"50",className:"bg-primary-50"},{tone:"primary",variant:"300",className:"bg-primary-300"},{tone:"primary",variant:"400",className:"bg-primary-400"},{tone:"primary",variant:"600",className:"bg-primary-600"}],defaultVariants:{orientation:"horizontal",tone:"neutral",variant:"300"}}),s=({className:r,orientation:a,tone:t,variant:e,...i})=>jsx("div",{role:"none","data-orientation":a??"horizontal",className:o({orientation:a,tone:t,variant:e,className:r}),...i}),m=s;export{s as a,m as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-AWRP67K4.js';import {d}from'./chunk-Z6FU5QVL.js';import {e}from'./chunk-5D64Y4FM.js';import {a}from'./chunk-OBZIYJO7.js';import*as r from'react';import {useCallback}from'react';import {Dialog}from'@ark-ui/react/dialog';import {Portal}from'@ark-ui/react/portal';import {jsxs,jsx}from'react/jsx-runtime';var H=({onOpenChange:t,...o})=>{let i=useCallback(m=>{t?.(m.open);},[t]);return jsx(Dialog.Root,{unmountOnExit:true,lazyMount:true,onOpenChange:i,...o})},F=Dialog.Trigger,f=r.forwardRef(({className:t,children:o,...i},m)=>jsxs(Portal,{children:[jsx(Dialog.Backdrop,{className:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-layer fixed inset-0 bg-neutral-900/50"}),jsx(Dialog.Positioner,{className:"z-layer fixed inset-0",children:jsx(Dialog.Content,{ref:m,className:a("elevation-9 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 z-layer fixed top-[50%] left-[50%] grid max-h-[80vh] w-full max-w-2xl translate-x-[-50%] translate-y-[-50%] overflow-y-auto rounded-2xl bg-neutral-50 py-3 pr-0 duration-200",t),...i,children:o})})]}));f.displayName="DialogContent";var D=({className:t,...o})=>jsx("div",{className:a("mr-4 mb-4 ml-6 flex flex-col gap-4 text-left",t),...o});D.displayName="DialogHeader";var u=({className:t,...o})=>jsxs("div",{children:[jsx(a$1,{className:"w-full"}),jsx("div",{className:a("mx-6 mt-3 flex justify-end gap-2",t),...o})]});u.displayName="DialogFooter";var M=({className:t,...o})=>jsx("div",{className:a("mx-6 mb-4.5",t),...o}),C=r.forwardRef(({className:t,...o},i)=>jsxs("div",{className:"flex items-center justify-between",children:[jsx(Dialog.Title,{ref:i,className:a("font-jakarta pr-2 text-lg leading-[160%] font-semibold",t),...o}),jsxs(Dialog.CloseTrigger,{className:"h-5.5 w-5.5",children:[jsx(d,{className:"h-5.5 w-5.5"}),jsx("span",{className:"sr-only",children:"Close"})]})]}));C.displayName="DialogTitle";var R=r.forwardRef(({className:t,...o},i)=>jsx(Dialog.Description,{ref:i,className:a("font-inter text-sm leading-[130%] font-normal",t),...o}));R.displayName="DialogDescription";var O=t=>jsx(e,{variant:"primary",...t}),z=t=>jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(e,{variant:"secondary",...t})}),L=t=>jsx(e,{variant:"ghost",...t});export{H as a,F as b,f as c,D as d,u as e,M as f,C as g,R as h,O as i,z as j,L as k};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-AWRP67K4.js';import {e}from'./chunk-5D64Y4FM.js';import {a}from'./chunk-OBZIYJO7.js';import*as r from'react';import*as t from'@radix-ui/react-alert-dialog';import {jsx,jsxs}from'react/jsx-runtime';var N=t.Root,x=t.Trigger,p=t.Portal,f=t.Cancel,m=r.forwardRef(({className:e,...a$1},l)=>jsx(t.Overlay,{ref:l,className:a("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...a$1}));m.displayName=t.Overlay.displayName;var g=r.forwardRef(({className:e,children:a$1,...l},c)=>jsxs(p,{children:[jsx(m,{className:"bg-neutral-900/50"}),jsx(t.Content,{ref:c,className:a("elevation-9 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-10000 grid w-full max-w-2xl translate-x-[-50%] translate-y-[-50%] rounded-2xl bg-neutral-50 py-3 duration-200",e),...l,children:a$1})]}));g.displayName=t.Content.displayName;var T=e$1=>jsx(e,{variant:"primary",...e$1}),b=e$1=>jsx(f,{asChild:true,children:jsx(e,{variant:"secondary",...e$1})}),B=e$1=>jsx(e,{variant:"ghost",...e$1}),D=({className:e,...a$1})=>jsx("div",{className:a("mx-6 mb-4 flex flex-col gap-4 text-left",e),...a$1});D.displayName="AlertDialogHeader";var A=({className:e,...a$2})=>jsxs("div",{children:[jsx(a$1,{className:"w-full"}),jsx("div",{className:a("mt-3 flex justify-end gap-2 px-6",e),...a$2})]});A.displayName="AlertDialogFooter";var v=r.forwardRef(({className:e,...a$1},l)=>jsx(t.Title,{ref:l,className:a("font-jakarta text-lg leading-[160%] font-semibold",e),...a$1}));v.displayName=t.Title.displayName;var P=r.forwardRef(({className:e,...a$1},l)=>jsx(t.Description,{ref:l,className:a("font-inter text-sm leading-[130%] font-normal",e),...a$1}));P.displayName=t.Description.displayName;var E=({className:e,...a$1})=>jsx("div",{className:a("mx-6 mb-4.5",e),...a$1});export{N as a,x as b,p as c,m as d,g as e,T as f,b as g,B as h,D as i,A as j,v as k,P as l,E as m};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-AVJ4C64A.js';import {a as a$5}from'./chunk-FHABUQAH.js';import {a as a$4}from'./chunk-ZZFG3AKL.js';import {a as a$3}from'./chunk-NSF2YRJD.js';import {a,b,c}from'./chunk-3AIWAHS6.js';import {a as a$1}from'./chunk-VOPVBJKL.js';import {a as a$6}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-AVJ4C64A.js';import {a as a$5}from'./chunk-FHABUQAH.js';import {a as a$4}from'./chunk-ZZFG3AKL.js';import {a as a$3}from'./chunk-NSF2YRJD.js';import {a,b,c}from'./chunk-3AIWAHS6.js';import {a as a$1}from'./chunk-VOPVBJKL.js';import {a as a$6}from'./chunk-AWRP67K4.js';import {j}from'./chunk-Z6FU5QVL.js';import {e}from'./chunk-5D64Y4FM.js';import {a as a$2}from'./chunk-OBZIYJO7.js';import {useListCollection,useCombobox,Combobox,useComboboxContext}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import {Portal}from'@ark-ui/react/portal';import {useRef,useCallback,useEffect}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';function de(){let i=useComboboxContext(),c=useRef(false);return i.value.length&&i.collection.size&&!c.current&&(i.syncSelectedItems(),c.current=true),null}var be=i=>{let{label:c$1,error:v,required:W,tooltip:K,disabled:m,readOnly:u,options:A,onInputChange:N,onSelect:M,defaultSelectedOptions:s,value:d$1,helperText:J,noResultsLabel:Q,noResultsIcon:X,noResultsDescription:Y,noResultsDescriptionLines:Z,noResultsAsColumn:_,noResultsButtonOnClick:R,noResultsButtonLabel:$,optionDescriptionLines:S=1,loading:w,clearable:ee=true,growable:b$1=true,className:te,...oe}=i,L=Object.getOwnPropertyNames(i),{contains:le}=useFilter({sensitivity:"base"}),{collection:C,filter:g,set:ne}=useListCollection({initialItems:[],itemToString:e=>e.label,itemToValue:e=>String(e.value),filter:le}),f=useRef(s??[]),h=useRef(void 0),V=useRef(false),re=useCallback(e=>{let l=e.items,p=f.current,se=l.length===0?null:l.find(y=>!p.some(I=>String(I.value)===String(y.value)))??p.find(y=>!l.some(I=>String(I.value)===String(y.value)))??null;f.current=[...l],M?.(se,l),h.current?.setInputValue(""),g("");},[M,g]),ie=useCallback(e=>{g(e.inputValue),e.reason!==void 0&&N?.(e.inputValue??"");},[g,N]),a$7=useCombobox({collection:C,multiple:true,inputBehavior:"none",openOnClick:true,onInputValueChange:ie,onValueChange:re,defaultValue:s?.map(e=>String(e.value)),value:L.includes("value")?d$1?.map(e=>String(e.value))??[]:void 0,readOnly:u,disabled:m,...oe});h.current=a$7,useEffect(()=>{L.includes("value")&&d$1!==void 0&&(f.current=[...d$1]);},[d$1]),useEffect(()=>{w||s?.length&&(V.current||(h.current?.setValue(s.map(e=>String(e.value))),f.current=[...s],V.current=true));},[s,w]),useEffect(()=>{ne(A);},[A]);let T=a({error:v,disabled:m,readOnly:u,multiline:b$1});return jsxs(Combobox.RootProvider,{value:a$7,"data-error":v||void 0,className:T.root({className:te}),children:[jsx(a$1,{as:Combobox.Label,label:c$1,required:W,tooltip:K}),jsx(de,{}),jsxs(Combobox.Control,{className:a$2(T.control(),"group/control",!b$1&&"overflow-hidden",m&&"cursor-not-allowed"),children:[jsxs("div",{className:a$2("flex flex-1 items-center gap-1 px-3 py-2",b$1?"flex-wrap py-1.5":"overflow-hidden"),children:[a$7.selectedItems.map(e=>jsx(d,{color:"neutral",variant:"fill",size:"md",disabled:u||m,onClose:()=>{a$7.clearValue(String(e.value));},children:e.label},String(e.value))),jsx(Combobox.Input,{className:a$2(T.input(),"h-auto px-0 py-0 disabled:cursor-not-allowed"),placeholder:a$7.selectedItems.length===0?i.placeholder:""})]}),jsxs("div",{className:a$2("flex shrink-0 items-center gap-2 pr-3",b$1&&"self-start pt-2.5"),children:[!u&&ee&&jsx(a$3,{as:Combobox.ClearTrigger,className:"group-data-disabled/control:hidden",onClick:e=>e.stopPropagation()}),v&&jsx(b,{}),jsx(Combobox.Trigger,{className:a$2("group/chevron-host cursor-pointer group-data-disabled/control:cursor-not-allowed",u&&"pointer-events-none"),children:jsx(a$4,{})})]})]}),jsx(c,{children:J}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsx(Combobox.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 w-(--reference-width) overflow-auto rounded-lg",children:jsx(Combobox.ItemGroup,{children:C.items.length>0?C.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:p})=>jsxs("div",{className:a$2("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",p?"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:S?{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:S,WebkitBoxOrient:"vertical"}:void 0,children:e.description})]}),jsx("div",{className:a$2("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",p&&(l?"bg-neutral-400":"bg-neutral-100 ring-neutral-300")),children:l&&jsx(j,{className:"size-3.5 text-neutral-50"})})]})})},String(e.value))):jsxs("div",{className:"flex flex-col",children:[jsx(a$5,{title:Q,description:Y,Icon:X,iconAsColumn:_,descriptionLines:Z}),R&&jsxs(Fragment,{children:[jsx(a$6,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{a$7.setOpen(false),R();},children:$})]})]})})})})})]})};be.displayName="AutocompleteMultiple";export{be as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {e}from'./chunk-5D64Y4FM.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var r='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="116" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.595 118.918c-28.848 0-52.234-23.533-52.234-52.564s23.386-52.563 52.234-52.563 52.234 23.533 52.234 52.563-23.386 52.564-52.234 52.564"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M106.662 24.929q.031-.368.031-.745c0-4.758-3.838-8.62-8.566-8.62-4.068 0-7.478 2.86-8.35 6.688a6.8 6.8 0 0 0-2.112-.333c-3.783 0-6.854 3.09-6.854 6.897s3.071 6.897 6.854 6.897h18.649c2.96 0 5.364-2.418 5.364-5.398 0-2.861-2.218-5.206-5.016-5.386" clip-rule="evenodd"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M115.385 99.846H10.792a.615.615 0 0 1-.613-.618c0-.34.275-.617.613-.617h104.593c.339 0 .614.276.614.617a.616.616 0 0 1-.614.618m-108.693 0H.614A.616.616 0 0 1 0 99.228c0-.34.275-.617.614-.617h6.078c.338 0 .613.276.613.617a.615.615 0 0 1-.613.618" clip-rule="evenodd"/><path fill="%23f3f6f5" fill-rule="evenodd" d="M12.48 12.2a6 6 0 0 1-.02-.475c0-3.035 2.448-5.499 5.464-5.499 2.595 0 4.77 1.824 5.326 4.266a4.4 4.4 0 0 1 1.347-.212c2.413 0 4.372 1.971 4.372 4.4 0 2.428-1.96 4.399-4.372 4.399H12.702c-1.889 0-3.422-1.543-3.422-3.444a3.436 3.436 0 0 1 3.2-3.435" clip-rule="evenodd"/><path fill="%23f3f6f5" d="m94.572 72.734-6.26 10.92-10.218 2.765-11.414 3.073-7.13 1.918-.045-.061a4.43 4.43 0 0 0 3.81-3.282l11.722-44.01-6.26-10.92-9.7-2.614 18.352-4.948c2.348-.638 4.798.787 5.418 3.152z"/><path fill="%23fff" d="m58.553 30.39 10.223 2.755 6.263 10.919-4.013 15.072-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.631 2.372-3.071 3.787-5.425 3.153l-33.04-8.91c-2.353-.632-3.762-3.09-3.132-5.458l5.89-22.116 1.18-4.437 5.795-21.764c.631-2.367 3.073-3.785 5.426-3.152l18.54 5.001Z"/><path fill="%23cfd9d7" d="m88.31 83.66-2.294-8.612 8.557-2.307-6.264 10.92ZM68.776 33.139l-2.295 8.618 8.558 2.307z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m35.057 60.641 23.056 6.217a.808.808 0 0 0 .415-1.56l-23.056-6.216a.808.808 0 0 0-.415 1.56Zm2.197-8.253 23.056 6.215a.8.8 0 0 0 .982-.57.81.81 0 0 0-.567-.99L37.669 50.83a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Zm5.349 19.13 1.666.45a.808.808 0 0 0 .415-1.56l-1.666-.45a.808.808 0 0 0-.415 1.56m-9.743-2.626 5.855 1.578a.808.808 0 0 0 .415-1.56l-5.855-1.577a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="M57.652 39.047a1 1 0 0 1-.234-.031c-3.279-.886-5.232-4.292-4.354-7.591l1.588-5.963.02-.064c.674-2.32 3.063-3.69 5.375-3.07a4.38 4.38 0 0 1 2.672 2.069 4.42 4.42 0 0 1 .443 3.36l-1.588 5.963a2.65 2.65 0 0 1-1.236 1.62 2.62 2.62 0 0 1-2.014.267 2.64 2.64 0 0 1-1.61-1.244 2.66 2.66 0 0 1-.264-2.024l1.587-5.963a.897.897 0 0 1 1.102-.64c.48.129.765.626.636 1.109l-1.587 5.962a.86.86 0 0 0 .602 1.051.855.855 0 0 0 1.046-.607l1.587-5.962a2.62 2.62 0 0 0-.263-1.987 2.6 2.6 0 0 0-1.58-1.224c-1.362-.366-2.828.498-3.199 1.89l-.014.047-1.565 5.879c-.622 2.335.76 4.745 3.082 5.372a.906.906 0 0 1-.232 1.781"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M93.71 72.62 82.07 28.934c-.506-1.936-2.512-3.1-4.432-2.579l-7.466 2.014a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.463-2.012c2.774-.754 5.67.93 6.402 3.722l11.724 44.007a.8.8 0 0 1-.08.613l-6.26 10.92a.8.8 0 0 1-.487.375L78.302 87.2l-11.415 3.073-7.13 1.918a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.13-1.918 11.413-3.072 9.897-2.68z" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m70.252 58.927-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.517 1.943-2.515 3.102-4.443 2.582l-33.04-8.91c-1.927-.518-3.08-2.53-2.564-4.469a.802.802 0 1 0-1.55-.418c-.744 2.797.92 5.7 3.7 6.446l33.039 8.91c2.78.75 5.662-.922 6.408-3.723l3.257-12.233 1.199-4.501.59-2.217 2.66-9.986a.802.802 0 1 0-1.55-.418M28.389 54.95l1.18-4.437 5.795-21.764c.517-1.938 2.516-3.1 4.444-2.58l10.029 2.705a.807.807 0 0 0 .416-1.56l-10.03-2.705c-2.78-.749-5.663.926-6.408 3.722L28.02 50.095l-1.181 4.438c-.114.43.14.873.567.988a.803.803 0 0 0 .983-.57Z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.595" x2="56.595" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116v100H0z"/></clipPath></defs></svg>';var c='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M57.084 118.918c-29.097 0-52.685-23.533-52.685-52.564s23.588-52.563 52.685-52.563 52.685 23.533 52.685 52.564-23.588 52.563-52.685 52.563"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M107.584 24.93q.031-.369.031-.745c0-4.758-3.871-8.62-8.64-8.62a8.644 8.644 0 0 0-8.421 6.688 7 7 0 0 0-2.13-.334c-3.816 0-6.913 3.09-6.913 6.898s3.097 6.897 6.913 6.897h18.809c2.986 0 5.411-2.419 5.411-5.398 0-2.862-2.237-5.207-5.06-5.387M116.38 99.846H10.886a.618.618 0 1 1 0-1.234H116.38c.342 0 .62.276.62.617a.62.62 0 0 1-.62.617M6.75 99.846H.62A.62.62 0 0 1 0 99.23c0-.34.278-.617.62-.617h6.13a.618.618 0 1 1 0 1.234" clip-rule="evenodd"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M12.587 12.2a6 6 0 0 1-.02-.475c0-3.035 2.47-5.499 5.511-5.499a5.51 5.51 0 0 1 5.373 4.266 4.4 4.4 0 0 1 1.358-.212 4.407 4.407 0 0 1 4.41 4.4c0 2.428-1.976 4.399-4.41 4.399H12.811a3.45 3.45 0 0 1-3.451-3.444 3.45 3.45 0 0 1 3.227-3.435" clip-rule="evenodd"/><path fill="%23fff" d="M50.685 25.551c-14.513 0-26.286 11.745-26.286 26.226s11.773 26.211 26.286 26.211c5.137 0 9.913-1.467 13.953-4.004a26.1 26.1 0 0 0 8.32-8.3c2.527-4.031 4-8.808 4-13.907 0-14.481-11.759-26.226-26.273-26.226m-.003 46.986c-11.471 0-20.808-9.314-20.808-20.762 0-11.447 9.336-20.761 20.808-20.761 11.476 0 20.811 9.314 20.811 20.761 0 11.448-9.335 20.762-20.81 20.762"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M50.682 71.627c-10.97 0-19.897-8.906-19.897-19.852s8.927-19.852 19.897-19.852c10.973 0 19.9 8.907 19.9 19.852a.911.911 0 0 0 1.823 0c0-11.949-9.745-21.671-21.723-21.671-11.975 0-21.72 9.722-21.72 21.67 0 11.95 9.746 21.672 21.72 21.672a.91.91 0 0 0 .912-.91.91.91 0 0 0-.912-.91" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M23.487 51.777c0 14.982 12.181 27.12 27.198 27.12a27.04 27.04 0 0 0 14.438-4.143 27.04 27.04 0 0 0 8.609-8.59 27.04 27.04 0 0 0 4.137-14.387c0-14.984-12.167-27.136-27.184-27.136a.91.91 0 0 0-.912.91c0 .502.408.91.911.91 14.011 0 25.362 11.337 25.362 25.316A25.23 25.23 0 0 1 72.185 65.2a25.2 25.2 0 0 1-8.031 8.012 25.23 25.23 0 0 1-13.47 3.865c-14.009 0-25.373-11.324-25.373-25.301a.911.911 0 0 0-1.824 0" clip-rule="evenodd"/><path fill="%23e1e7e6" d="M68.494 80.954 79.17 91.42c3.144 3.136 8.289 3.136 11.435 0 3.145-3.139 3.145-8.272 0-11.41L79.928 69.544z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m69.789 80.949 10.025 9.826c2.79 2.783 7.354 2.783 10.146 0a7.14 7.14 0 0 0 2.059-5.748.91.91 0 0 1 1.815-.172 8.96 8.96 0 0 1-2.585 7.207c-3.501 3.49-9.226 3.49-12.718.006L67.855 81.603a.906.906 0 0 1-.006-1.291L79.283 68.9a.914.914 0 0 1 1.285-.006l3.4 3.334c.359.352.364.928.01 1.286a.914.914 0 0 1-1.288.012l-2.756-2.701z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="m78.495 70.969-8.574 8.567-5.417-5.418.134-.134a26.1 26.1 0 0 0 8.32-8.3l.12-.12z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M73.204 66.977a27.1 27.1 0 0 1-8.084 7.779.91.91 0 1 1-.966-1.543 25.2 25.2 0 0 0 8.03-8.01 1 1 0 0 1 .13-.163l.12-.12a.913.913 0 0 1 1.288.001l5.416 5.404a.91.91 0 0 1 0 1.286l-8.573 8.568a.913.913 0 0 1-1.289.001.91.91 0 0 1-.001-1.287l7.93-7.924z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="57.084" x2="57.084" y1="115.671" y2="13.791" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h117v100H0z"/></clipPath></defs></svg>';var s='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%2396dcb4" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%234fa271" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23bfe9d1" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%236ecf96" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%234fa271" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" fill-rule="evenodd" d="m55.436 65.185 14.64-17.738a2.472 2.472 0 0 1 3.812 3.147L57.518 70.429a2.474 2.474 0 0 1-3.655.174L42.948 59.687a2.47 2.47 0 1 1 3.495-3.495z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23abe3c2"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var p='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%23f18585" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%23d34747" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23f6b4b4" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%23f18585" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%23d34747" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" d="M57.512 45.853a3.5 3.5 0 0 1 1.623.077q1.816.465 2.473 2.203.155.58-.077 2.396l-.889 5.758q-1.081 7.034-1.353 7.266-.27.116-1.855.039-.31 0-.347-.04-.194-.115-.348-.888-.116-.696-1.005-6.377-1.12-7.343-1.044-7.845 0-.077.078-.309.502-1.623 2.357-2.164.194-.078.387-.116m.038 20.25q.657-.154 1.508.078 1.7.425 2.357 2.087.116.193.155.425a3.3 3.3 0 0 1 0 1.739q-.465 1.778-2.165 2.396-.192.078-.347.116a3.3 3.3 0 0 1-1.74 0q-1.777-.464-2.396-2.164a3.318 3.318 0 0 1-.116-2.087q.31-1.16 1.16-1.817.657-.54 1.584-.772"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23f39d9d"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var D=t=>t?.startsWith("es")?{documentsTitle:"Nada por aqu\xED todav\xEDa",documentsDescription:"Agrega un nuevo elemento para comenzar",searchTitle:"No se encontraron resultados",searchDescription:"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",searchTitle:"N\xE3o foram encontrados resultados",searchDescription:"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",searchTitle:"No results were found",searchDescription:"Adjust the criteria and try again",doneTitle:"You're all caught up!",doneDescription:"Nothing left to complete",contentEmptyAlt:"Content empty"},H=t=>{switch(t){case "lg":return {width:233.46,height:200};case "md":return {width:175.09,height:150};case "sm":return {width:116,height:100}}},N=tv({slots:{root:"font-inter flex h-fit w-fit flex-col items-center p-6 pt-10 text-neutral-600",title:"mt-4.5 text-center font-semibold",description:"font-inter mt-0.5 text-center"},variants:{size:{lg:{title:"font-jakarta text-lg leading-[156%]",description:"text-base leading-[150%] font-medium"},md:{title:"text-base leading-[150%]",description:"text-sm leading-[143%]"},sm:{title:"text-sm leading-[143%]",description:"text-sm leading-[143%]"}},variant:{empty:{},"not-found":{},done:{title:"text-success-700",description:"text-success-700"},danger:{title:"text-danger-700",description:"text-danger-700"}}}}),P=(t,e)=>{switch(t.variant){case "danger":return {title:t.title,description:t.description,imgUrl:p};case "not-found":return {title:e.searchTitle,description:t.description??e.searchDescription,imgUrl:c};case "done":return {title:e.doneTitle,description:t.description??e.doneDescription,imgUrl:s};default:return {title:e.documentsTitle,description:t.description??e.documentsDescription,imgUrl:r}}},F=t=>{let{actions:e$1,areActionsHidden:m=false,size:l="sm",className:h}=t,u=t.variant??"empty",{locale:g}=getDefaultOptions(),{root:v,title:y,description:b}=N({size:l,variant:u}),o=D(g?.code),a=P(t,o),{width:M,height:S}=H(l),d=l==="sm"?"sm":"lg";return jsxs("div",{className:v({className:h}),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,{variant:"light",tone:"primary",size:d,onClick:e$1.secondary.onClick,children:e$1.secondary.label}),jsx(e,{variant:"secondary",tone:"primary",size:d,onClick:e$1.primary.onClick,children:e$1.primary.label})]})]})};
|
|
2
|
-
export{
|
|
1
|
+
import {e}from'./chunk-5D64Y4FM.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var r='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="116" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.595 118.918c-28.848 0-52.234-23.533-52.234-52.564s23.386-52.563 52.234-52.563 52.234 23.533 52.234 52.563-23.386 52.564-52.234 52.564"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M106.662 24.929q.031-.368.031-.745c0-4.758-3.838-8.62-8.566-8.62-4.068 0-7.478 2.86-8.35 6.688a6.8 6.8 0 0 0-2.112-.333c-3.783 0-6.854 3.09-6.854 6.897s3.071 6.897 6.854 6.897h18.649c2.96 0 5.364-2.418 5.364-5.398 0-2.861-2.218-5.206-5.016-5.386" clip-rule="evenodd"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M115.385 99.846H10.792a.615.615 0 0 1-.613-.618c0-.34.275-.617.613-.617h104.593c.339 0 .614.276.614.617a.616.616 0 0 1-.614.618m-108.693 0H.614A.616.616 0 0 1 0 99.228c0-.34.275-.617.614-.617h6.078c.338 0 .613.276.613.617a.615.615 0 0 1-.613.618" clip-rule="evenodd"/><path fill="%23f3f6f5" fill-rule="evenodd" d="M12.48 12.2a6 6 0 0 1-.02-.475c0-3.035 2.448-5.499 5.464-5.499 2.595 0 4.77 1.824 5.326 4.266a4.4 4.4 0 0 1 1.347-.212c2.413 0 4.372 1.971 4.372 4.4 0 2.428-1.96 4.399-4.372 4.399H12.702c-1.889 0-3.422-1.543-3.422-3.444a3.436 3.436 0 0 1 3.2-3.435" clip-rule="evenodd"/><path fill="%23f3f6f5" d="m94.572 72.734-6.26 10.92-10.218 2.765-11.414 3.073-7.13 1.918-.045-.061a4.43 4.43 0 0 0 3.81-3.282l11.722-44.01-6.26-10.92-9.7-2.614 18.352-4.948c2.348-.638 4.798.787 5.418 3.152z"/><path fill="%23fff" d="m58.553 30.39 10.223 2.755 6.263 10.919-4.013 15.072-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.631 2.372-3.071 3.787-5.425 3.153l-33.04-8.91c-2.353-.632-3.762-3.09-3.132-5.458l5.89-22.116 1.18-4.437 5.795-21.764c.631-2.367 3.073-3.785 5.426-3.152l18.54 5.001Z"/><path fill="%23cfd9d7" d="m88.31 83.66-2.294-8.612 8.557-2.307-6.264 10.92ZM68.776 33.139l-2.295 8.618 8.558 2.307z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m35.057 60.641 23.056 6.217a.808.808 0 0 0 .415-1.56l-23.056-6.216a.808.808 0 0 0-.415 1.56Zm2.197-8.253 23.056 6.215a.8.8 0 0 0 .982-.57.81.81 0 0 0-.567-.99L37.669 50.83a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Zm5.349 19.13 1.666.45a.808.808 0 0 0 .415-1.56l-1.666-.45a.808.808 0 0 0-.415 1.56m-9.743-2.626 5.855 1.578a.808.808 0 0 0 .415-1.56l-5.855-1.577a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="M57.652 39.047a1 1 0 0 1-.234-.031c-3.279-.886-5.232-4.292-4.354-7.591l1.588-5.963.02-.064c.674-2.32 3.063-3.69 5.375-3.07a4.38 4.38 0 0 1 2.672 2.069 4.42 4.42 0 0 1 .443 3.36l-1.588 5.963a2.65 2.65 0 0 1-1.236 1.62 2.62 2.62 0 0 1-2.014.267 2.64 2.64 0 0 1-1.61-1.244 2.66 2.66 0 0 1-.264-2.024l1.587-5.963a.897.897 0 0 1 1.102-.64c.48.129.765.626.636 1.109l-1.587 5.962a.86.86 0 0 0 .602 1.051.855.855 0 0 0 1.046-.607l1.587-5.962a2.62 2.62 0 0 0-.263-1.987 2.6 2.6 0 0 0-1.58-1.224c-1.362-.366-2.828.498-3.199 1.89l-.014.047-1.565 5.879c-.622 2.335.76 4.745 3.082 5.372a.906.906 0 0 1-.232 1.781"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M93.71 72.62 82.07 28.934c-.506-1.936-2.512-3.1-4.432-2.579l-7.466 2.014a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.463-2.012c2.774-.754 5.67.93 6.402 3.722l11.724 44.007a.8.8 0 0 1-.08.613l-6.26 10.92a.8.8 0 0 1-.487.375L78.302 87.2l-11.415 3.073-7.13 1.918a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.13-1.918 11.413-3.072 9.897-2.68z" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m70.252 58.927-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.517 1.943-2.515 3.102-4.443 2.582l-33.04-8.91c-1.927-.518-3.08-2.53-2.564-4.469a.802.802 0 1 0-1.55-.418c-.744 2.797.92 5.7 3.7 6.446l33.039 8.91c2.78.75 5.662-.922 6.408-3.723l3.257-12.233 1.199-4.501.59-2.217 2.66-9.986a.802.802 0 1 0-1.55-.418M28.389 54.95l1.18-4.437 5.795-21.764c.517-1.938 2.516-3.1 4.444-2.58l10.029 2.705a.807.807 0 0 0 .416-1.56l-10.03-2.705c-2.78-.749-5.663.926-6.408 3.722L28.02 50.095l-1.181 4.438c-.114.43.14.873.567.988a.803.803 0 0 0 .983-.57Z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.595" x2="56.595" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116v100H0z"/></clipPath></defs></svg>';var c='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M57.084 118.918c-29.097 0-52.685-23.533-52.685-52.564s23.588-52.563 52.685-52.563 52.685 23.533 52.685 52.564-23.588 52.563-52.685 52.563"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M107.584 24.93q.031-.369.031-.745c0-4.758-3.871-8.62-8.64-8.62a8.644 8.644 0 0 0-8.421 6.688 7 7 0 0 0-2.13-.334c-3.816 0-6.913 3.09-6.913 6.898s3.097 6.897 6.913 6.897h18.809c2.986 0 5.411-2.419 5.411-5.398 0-2.862-2.237-5.207-5.06-5.387M116.38 99.846H10.886a.618.618 0 1 1 0-1.234H116.38c.342 0 .62.276.62.617a.62.62 0 0 1-.62.617M6.75 99.846H.62A.62.62 0 0 1 0 99.23c0-.34.278-.617.62-.617h6.13a.618.618 0 1 1 0 1.234" clip-rule="evenodd"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M12.587 12.2a6 6 0 0 1-.02-.475c0-3.035 2.47-5.499 5.511-5.499a5.51 5.51 0 0 1 5.373 4.266 4.4 4.4 0 0 1 1.358-.212 4.407 4.407 0 0 1 4.41 4.4c0 2.428-1.976 4.399-4.41 4.399H12.811a3.45 3.45 0 0 1-3.451-3.444 3.45 3.45 0 0 1 3.227-3.435" clip-rule="evenodd"/><path fill="%23fff" d="M50.685 25.551c-14.513 0-26.286 11.745-26.286 26.226s11.773 26.211 26.286 26.211c5.137 0 9.913-1.467 13.953-4.004a26.1 26.1 0 0 0 8.32-8.3c2.527-4.031 4-8.808 4-13.907 0-14.481-11.759-26.226-26.273-26.226m-.003 46.986c-11.471 0-20.808-9.314-20.808-20.762 0-11.447 9.336-20.761 20.808-20.761 11.476 0 20.811 9.314 20.811 20.761 0 11.448-9.335 20.762-20.81 20.762"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M50.682 71.627c-10.97 0-19.897-8.906-19.897-19.852s8.927-19.852 19.897-19.852c10.973 0 19.9 8.907 19.9 19.852a.911.911 0 0 0 1.823 0c0-11.949-9.745-21.671-21.723-21.671-11.975 0-21.72 9.722-21.72 21.67 0 11.95 9.746 21.672 21.72 21.672a.91.91 0 0 0 .912-.91.91.91 0 0 0-.912-.91" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M23.487 51.777c0 14.982 12.181 27.12 27.198 27.12a27.04 27.04 0 0 0 14.438-4.143 27.04 27.04 0 0 0 8.609-8.59 27.04 27.04 0 0 0 4.137-14.387c0-14.984-12.167-27.136-27.184-27.136a.91.91 0 0 0-.912.91c0 .502.408.91.911.91 14.011 0 25.362 11.337 25.362 25.316A25.23 25.23 0 0 1 72.185 65.2a25.2 25.2 0 0 1-8.031 8.012 25.23 25.23 0 0 1-13.47 3.865c-14.009 0-25.373-11.324-25.373-25.301a.911.911 0 0 0-1.824 0" clip-rule="evenodd"/><path fill="%23e1e7e6" d="M68.494 80.954 79.17 91.42c3.144 3.136 8.289 3.136 11.435 0 3.145-3.139 3.145-8.272 0-11.41L79.928 69.544z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m69.789 80.949 10.025 9.826c2.79 2.783 7.354 2.783 10.146 0a7.14 7.14 0 0 0 2.059-5.748.91.91 0 0 1 1.815-.172 8.96 8.96 0 0 1-2.585 7.207c-3.501 3.49-9.226 3.49-12.718.006L67.855 81.603a.906.906 0 0 1-.006-1.291L79.283 68.9a.914.914 0 0 1 1.285-.006l3.4 3.334c.359.352.364.928.01 1.286a.914.914 0 0 1-1.288.012l-2.756-2.701z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="m78.495 70.969-8.574 8.567-5.417-5.418.134-.134a26.1 26.1 0 0 0 8.32-8.3l.12-.12z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M73.204 66.977a27.1 27.1 0 0 1-8.084 7.779.91.91 0 1 1-.966-1.543 25.2 25.2 0 0 0 8.03-8.01 1 1 0 0 1 .13-.163l.12-.12a.913.913 0 0 1 1.288.001l5.416 5.404a.91.91 0 0 1 0 1.286l-8.573 8.568a.913.913 0 0 1-1.289.001.91.91 0 0 1-.001-1.287l7.93-7.924z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="57.084" x2="57.084" y1="115.671" y2="13.791" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h117v100H0z"/></clipPath></defs></svg>';var s='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%2396dcb4" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%234fa271" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23bfe9d1" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%236ecf96" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%234fa271" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" fill-rule="evenodd" d="m55.436 65.185 14.64-17.738a2.472 2.472 0 0 1 3.812 3.147L57.518 70.429a2.474 2.474 0 0 1-3.655.174L42.948 59.687a2.47 2.47 0 1 1 3.495-3.495z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23abe3c2"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var p='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%23f18585" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%23d34747" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23f6b4b4" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%23f18585" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%23d34747" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" d="M57.512 45.853a3.5 3.5 0 0 1 1.623.077q1.816.465 2.473 2.203.155.58-.077 2.396l-.889 5.758q-1.081 7.034-1.353 7.266-.27.116-1.855.039-.31 0-.347-.04-.194-.115-.348-.888-.116-.696-1.005-6.377-1.12-7.343-1.044-7.845 0-.077.078-.309.502-1.623 2.357-2.164.194-.078.387-.116m.038 20.25q.657-.154 1.508.078 1.7.425 2.357 2.087.116.193.155.425a3.3 3.3 0 0 1 0 1.739q-.465 1.778-2.165 2.396-.192.078-.347.116a3.3 3.3 0 0 1-1.74 0q-1.777-.464-2.396-2.164a3.318 3.318 0 0 1-.116-2.087q.31-1.16 1.16-1.817.657-.54 1.584-.772"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23f39d9d"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var D=t=>t?.startsWith("es")?{documentsTitle:"Nada por aqu\xED todav\xEDa",documentsDescription:"Agrega un nuevo elemento para comenzar",notFoundTitle:"No se encontraron resultados",notFoundDescription:"Ajusta los criterios e int\xE9ntalo nuevamente",doneTitle:"\xA1Est\xE1s al d\xEDa!",doneDescription:"No hay elementos que completar",contentEmptyAlt:"Contenido vac\xEDo"}:t?.startsWith("pt")?{documentsTitle:"Nada aqui ainda",documentsDescription:"Adicione um novo item para come\xE7ar",notFoundTitle:"N\xE3o foram encontrados resultados",notFoundDescription:"Ajuste os crit\xE9rios e tente novamente",doneTitle:"Voc\xEA est\xE1 em dia!",doneDescription:"N\xE3o h\xE1 itens para concluir",contentEmptyAlt:"Conte\xFAdo vazio"}:{documentsTitle:"Nothing here yet",documentsDescription:"Add a new item to get started",notFoundTitle:"No results were found",notFoundDescription:"Adjust the criteria and try again",doneTitle:"You're all caught up!",doneDescription:"Nothing left to complete",contentEmptyAlt:"Content empty"},H=t=>{switch(t){case "lg":return {width:233.46,height:200};case "md":return {width:175.09,height:150};case "sm":return {width:116,height:100}}},N=tv({slots:{root:"font-inter flex h-fit w-fit flex-col items-center p-6 pt-10 text-neutral-600",title:"mt-4.5 text-center font-semibold",description:"font-inter mt-0.5 text-center"},variants:{size:{lg:{title:"font-jakarta text-lg leading-[156%]",description:"text-base leading-[150%] font-medium"},md:{title:"text-base leading-[150%]",description:"text-sm leading-[143%]"},sm:{title:"text-sm leading-[143%]",description:"text-sm leading-[143%]"}},variant:{empty:{},"not-found":{},done:{title:"text-success-700",description:"text-success-700"},danger:{title:"text-danger-700",description:"text-danger-700"}}}}),P=(t,e)=>{switch(t.variant){case "danger":return {title:t.title,description:t.description,imgUrl:p};case "not-found":return {title:e.notFoundTitle,description:t.description??e.notFoundDescription,imgUrl:c};case "done":return {title:e.doneTitle,description:t.description??e.doneDescription,imgUrl:s};default:return {title:e.documentsTitle,description:t.description??e.documentsDescription,imgUrl:r}}},k=t=>{let{actions:e$1,areActionsHidden:m=false,size:l="sm",className:u}=t,h=t.variant??"empty",{locale:g}=getDefaultOptions(),{root:v,title:y,description:b}=N({size:l,variant:h}),o=D(g?.code),a=P(t,o),{width:S,height:M}=H(l),d=l==="sm"?"sm":"lg";return jsxs("div",{className:v({className:u}),children:[jsx("img",{alt:o.contentEmptyAlt,width:S,height:M,src:a.imgUrl}),jsx("p",{className:y(),children:a.title}),jsx("p",{className:b(),children:a.description}),e$1&&!m&&jsxs("div",{className:"mt-4.5 flex gap-3",children:[e$1.secondary&&jsx(e,{...e$1.secondary,variant:"light",tone:"primary",size:d}),jsx(e,{...e$1.primary,variant:"secondary",tone:"primary",size:d})]})]})};
|
|
2
|
+
export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
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-
|
|
1
|
+
export{a as AlertDialog,f as AlertDialogActionButton,m as AlertDialogBody,g as AlertDialogCloseButton,e as AlertDialogContent,l as AlertDialogDescription,h as AlertDialogExtraButton,j as AlertDialogFooter,i as AlertDialogHeader,d as AlertDialogOverlay,c as AlertDialogPortal,k as AlertDialogTitle,b as AlertDialogTrigger}from'../chunk-G4XY2ICQ.js';import'../chunk-AWRP67K4.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as AutocompleteMultiple}from'../chunk-
|
|
1
|
+
export{a as AutocompleteMultiple}from'../chunk-MLJF6Q23.js';import'../chunk-AVJ4C64A.js';import'../chunk-FHABUQAH.js';import'../chunk-ZZFG3AKL.js';import'../chunk-NSF2YRJD.js';import'../chunk-3AIWAHS6.js';import'../chunk-VOPVBJKL.js';import'../chunk-CM6ALMTT.js';import'../chunk-AWRP67K4.js';import'../chunk-Z6FU5QVL.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { UseComboboxProps } from '@ark-ui/react/combobox';
|
|
3
3
|
import { HTMLAttributes } from 'react';
|
|
4
|
-
import { LucideIcon } from 'lucide-react';
|
|
5
4
|
import { BadgeExpandableProps } from './badge-expandable.js';
|
|
5
|
+
import { EmptyStateOverrides } from './empty-state.js';
|
|
6
|
+
import { LucideIcon } from 'lucide-react';
|
|
6
7
|
import 'tailwind-variants';
|
|
8
|
+
import './button.js';
|
|
9
|
+
import './badge-number.js';
|
|
7
10
|
|
|
8
11
|
type AutocompleteOption<T extends string | number = string> = {
|
|
9
12
|
label: string;
|
|
@@ -21,13 +24,29 @@ type AutocompleteProps<T extends string | number = string> = Omit<UseComboboxPro
|
|
|
21
24
|
onSelect?: (value: AutocompleteOption<T> | null) => void;
|
|
22
25
|
defaultValue?: T;
|
|
23
26
|
helperText?: string;
|
|
24
|
-
|
|
27
|
+
value?: T;
|
|
28
|
+
className?: HTMLAttributes<HTMLDivElement>["className"];
|
|
29
|
+
emptyState?: EmptyStateOverrides;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated This prop is deprecated. Use the `emptyState` prop instead.
|
|
32
|
+
*/
|
|
33
|
+
noResultsTitle?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated This prop is deprecated. Use the `emptyState` prop instead.
|
|
36
|
+
*/
|
|
25
37
|
noResultsDescription?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated This prop is deprecated. Use the `emptyState` prop instead.
|
|
40
|
+
*/
|
|
26
41
|
noResultsIcon?: LucideIcon;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated This prop is deprecated. Use the `emptyState` prop instead.
|
|
44
|
+
*/
|
|
27
45
|
noResultsTitleLines?: number;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated This prop is deprecated. Use the `emptyState` prop instead.
|
|
48
|
+
*/
|
|
28
49
|
noResultsDescriptionLines?: number;
|
|
29
|
-
value?: T;
|
|
30
|
-
className?: HTMLAttributes<HTMLDivElement>["className"];
|
|
31
50
|
};
|
|
32
51
|
declare const Autocomplete: {
|
|
33
52
|
<T extends string | number = string>(props: AutocompleteProps<T>): react_jsx_runtime.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Autocomplete}from'../chunk-
|
|
1
|
+
export{a as Autocomplete}from'../chunk-373CLETK.js';import'../chunk-N5NMVAVZ.js';import'../chunk-JW7HS6NX.js';import'../chunk-FHABUQAH.js';import'../chunk-ZZFG3AKL.js';import'../chunk-NSF2YRJD.js';import'../chunk-3AIWAHS6.js';import'../chunk-VOPVBJKL.js';import'../chunk-CM6ALMTT.js';import'../chunk-Z6FU5QVL.js';import'../chunk-ICF6RQIW.js';import'../chunk-5D64Y4FM.js';import'../chunk-C7TLKKPT.js';import'../chunk-CQI4KDR4.js';import'../chunk-P6B33GL6.js';import'../chunk-OBZIYJO7.js';
|