sodtrack-web-ui 0.112.3 → 0.112.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-3IDC3JMI.js +1 -0
- package/dist/chunk-NYURVOJI.js +1 -0
- package/dist/{chunk-ZMU3YF5X.js → chunk-UYWLRYKF.js} +1 -1
- package/dist/components/error-screen.js +1 -1
- 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/identification-number.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-QCIQOLBF.js +0 -1
- package/dist/chunk-U4NJK7JM.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {f,y,K,A as A$1}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-ICF6RQIW.js';import {d,e}from'./chunk-QYA5ZUUN.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var z=["not-found","forbidden","unauthorized","server-error","service-unavailable"],N={"not-found":{code:"404",tone:"neutral",Icon:A$1,action:"home"},forbidden:{code:"403",tone:"warning",Icon:K,action:"home"},unauthorized:{code:"401",tone:"info",Icon:y,action:"sign-in"},"server-error":{code:"500",tone:"danger",Icon:f,action:"home"},"service-unavailable":{code:"503",tone:"warning",Icon:a,action:"retry"}},C={variants:{"not-found":{title:"Page not found",description:"The page you are looking for doesn't exist or may have been moved."},forbidden:{title:"Access denied",description:"You don't have permission to view this page. Contact your administrator if you think this is a mistake."},unauthorized:{title:"Your session expired",description:"Please sign in again to continue."},"server-error":{title:"Something went wrong",description:"An unexpected error occurred on our side. Please head back and try again later."},"service-unavailable":{title:"Service unavailable",description:"We can't connect to the server right now. Please try again in a few seconds. If the problem persists, contact your administrator."}},actions:{home:"Back to home","sign-in":"Sign in",retry:"Try again"},signOut:"Sign out",referenceLabel:"Reference code",errorEyebrow:"Error"},O={variants:{"not-found":{title:"P\xE1gina no encontrada",description:"La p\xE1gina que buscas no existe o pudo haber sido movida."},forbidden:{title:"Acceso denegado",description:"No tienes permiso para ver esta p\xE1gina. Contacta a tu administrador si crees que es un error."},unauthorized:{title:"Tu sesi\xF3n expir\xF3",description:"Inicia sesi\xF3n nuevamente para continuar."},"server-error":{title:"Algo sali\xF3 mal",description:"Ocurri\xF3 un error inesperado de nuestro lado. Vuelve al inicio e int\xE9ntalo m\xE1s tarde."},"service-unavailable":{title:"Servicio no disponible",description:"No podemos conectar con el servidor en este momento. Por favor vuelve a intentarlo en unos segundos. Si el problema persiste, contacta a tu administrador."}},actions:{home:"Volver al inicio","sign-in":"Iniciar sesi\xF3n",retry:"Reintentar"},signOut:"Cerrar sesi\xF3n",referenceLabel:"C\xF3digo de referencia",errorEyebrow:"Error"},R={variants:{"not-found":{title:"P\xE1gina n\xE3o encontrada",description:"A p\xE1gina que voc\xEA procura n\xE3o existe ou pode ter sido movida."},forbidden:{title:"Acesso negado",description:"Voc\xEA n\xE3o tem permiss\xE3o para ver esta p\xE1gina. Contate seu administrador se achar que \xE9 um engano."},unauthorized:{title:"Sua sess\xE3o expirou",description:"Fa\xE7a login novamente para continuar."},"server-error":{title:"Algo deu errado",description:"Ocorreu um erro inesperado do nosso lado. Volte ao in\xEDcio e tente novamente mais tarde."},"service-unavailable":{title:"Servi\xE7o indispon\xEDvel",description:"N\xE3o conseguimos nos conectar ao servidor neste momento. Por favor, tente novamente em alguns segundos. Se o problema persistir, entre em contato com o seu administrador."}},actions:{home:"Voltar ao in\xEDcio","sign-in":"Entrar",retry:"Tentar novamente"},signOut:"Sair",referenceLabel:"C\xF3digo de refer\xEAncia",errorEyebrow:"Erro"},A=()=>{let o=getDefaultOptions().locale?.code;return o?.startsWith("es")?O:o?.startsWith("pt")?R:C},T=tv({slots:{root:"font-inter flex min-h-[60vh] w-full flex-1 flex-col items-center justify-center px-6 py-12 text-center",haloOuter:"flex size-28 items-center justify-center rounded-full",haloInner:"flex size-16 items-center justify-center rounded-full",icon:"size-8",eyebrow:"font-jakarta mt-6 text-xs font-semibold tracking-[0.12em] uppercase",title:"font-jakarta mt-4 text-xl leading-[140%] font-semibold text-neutral-900",description:"mt-2 max-w-md text-sm leading-[150%] text-neutral-600",reference:"mt-4 inline-flex items-center gap-1.5 rounded-md bg-neutral-100 px-2.5 py-1",referenceLabel:"text-2xs font-medium tracking-wide text-neutral-500 uppercase",referenceValue:"font-mono text-xs text-neutral-700",actions:"mt-8 flex flex-wrap items-center justify-center gap-3"},variants:{tone:{neutral:{haloOuter:"bg-neutral-100",haloInner:"bg-neutral-200",icon:"text-neutral-600",eyebrow:"text-neutral-500"},info:{haloOuter:"bg-info-50",haloInner:"bg-info-100",icon:"text-info-600",eyebrow:"text-info-600"},warning:{haloOuter:"bg-warning-50",haloInner:"bg-warning-100",icon:"text-warning-600",eyebrow:"text-warning-600"},danger:{haloOuter:"bg-danger-50",haloInner:"bg-danger-100",icon:"text-danger-600",eyebrow:"text-danger-600"}}}}),h={variant:"primary",tone:"primary",size:"lg"},B=({variant:o,reference:d$1,onAction:s,actionHref:c,onSignOut:u,className:x})=>{let t=N[o],n=A(),p=n.variants[o],e$1=T({tone:t.tone}),{Icon:E}=t,i=!!(s||c),g=!!u;return jsxs("div",{className:e$1.root({className:x}),children:[jsx("div",{className:e$1.haloOuter(),children:jsx("div",{className:e$1.haloInner(),children:jsx(E,{className:e$1.icon()})})}),jsxs("p",{className:e$1.eyebrow(),children:[n.errorEyebrow," ",t.code]}),jsx("h1",{className:e$1.title(),children:p.title}),jsx("p",{className:e$1.description(),children:p.description}),d$1&&jsxs("div",{className:e$1.reference(),children:[jsx("span",{className:e$1.referenceLabel(),children:n.referenceLabel}),jsx("span",{className:e$1.referenceValue(),children:d$1})]}),(i||g)&&jsxs("div",{className:e$1.actions(),children:[i&&(c?jsx("a",{href:c,onClick:s,className:d(h).root(),children:n.actions[t.action]}):jsx(e,{...h,onClick:s,children:n.actions[t.action]})),g&&jsx(e,{variant:i?"ghost":"primary",tone:i?"neutral":"primary",size:"lg",onClick:u,children:n.signOut})]})]})};export{z as a,B as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {personValidators,entityValidators,stdnum}from'stdnum';var lt=/^\d{5,8}(?:\d[A-Z]|[A-Z]{1,2})?$/,d=t=>t.replace(/[\s-]/g,"").toUpperCase(),A={key:"ci",label:"CI",validate(t){return lt.test(d(t))},compact(t){return d(t)},format(t){return d(t)}};var ct=/^\d{7,13}$/,u=t=>t.replace(/[\s-]/g,""),P={key:"nit",label:"NIT",validate(t){return ct.test(u(t))},compact(t){return u(t)},format(t){return u(t)}};var dt=/^\d{6,10}$/,m=t=>t.replace(/[\s.]/g,""),ut=t=>t.replace(/\B(?=(\d{3})+(?!\d))/g,"."),O={key:"cedula",label:"C\xE9dula",validate(t){return dt.test(m(t))},compact(t){return m(t)},format(t){return ut(m(t))}};var mt=/^\d{5}$/,p=t=>t.replace(/[\s-]/g,""),G={key:"reeup",label:"REEUP",validate(t){return mt.test(p(t))},compact(t){return p(t)},format(t){return p(t)}};var pt=/^\d{13}$/,f=t=>t.replace(/[\s-]/g,""),ft=t=>{let r=t.slice(0,13);return r.length<=4?r:r.length<=8?`${r.slice(0,4)}-${r.slice(4)}`:`${r.slice(0,4)}-${r.slice(4,8)}-${r.slice(8)}`},D={key:"dni",label:"DNI",validate(t){return pt.test(f(t))},compact(t){return f(t)},format(t){return ft(f(t))}};var Vt=/^\d{14}$/,V=t=>t.replace(/[\s-]/g,""),bt=t=>{let r=t.slice(0,14);return r.length<=4?r:r.length<=8?`${r.slice(0,4)}-${r.slice(4)}`:`${r.slice(0,4)}-${r.slice(4,8)}-${r.slice(8)}`},x={key:"rtn",label:"RTN",validate(t){return Vt.test(V(t))},compact(t){return V(t)},format(t){return bt(V(t))}};var Ct=/^(?:\d{10}|\d{14}|\d{17})$/,b=t=>t.replace(/[\s-]/g,""),M={key:"cin",label:"CIN",validate(t){return Ct.test(b(t))},compact(t){return b(t)},format(t){return b(t)}};var gt=/^\d{10}$/,C=t=>t.replace(/[\s-]/g,""),U={key:"nif",label:"NIF",validate(t){return gt.test(C(t))},compact(t){return C(t)},format(t){return C(t)}};var Nt=/^\d{9}$/,g=t=>t.replace(/[\s-]/g,""),It=t=>{let r=t.slice(0,9);return r.length<=3?r:r.length<=6?`${r.slice(0,3)}-${r.slice(3)}`:`${r.slice(0,3)}-${r.slice(3,6)}-${r.slice(6)}`},S={key:"trn",label:"TRN",validate(t){return Nt.test(g(t))},compact(t){return g(t)},format(t){return It(g(t))}};var Et="ABCDEFGHJKLMNPQRSTUVWXY",Rt=[31,28,31,30,31,30,31,31,30,31,30,31],yt=/^\d{13}[A-Z]$/,N=t=>t.replace(/[\s-]/g,"").toUpperCase(),vt=t=>{let r=Number.parseInt(t.substring(3,5),10),e=Number.parseInt(t.substring(5,7),10),i=Number.parseInt(t.substring(7,9),10);if(e<1||e>12)return false;let n=e===2&&i%4===0?29:Rt[e-1];return r>=1&&r<=n},Tt=t=>{let r=t.slice(0,13),e=t.slice(13),i=Number.parseInt(r,10);return Et[i%23]===e},$t=t=>t.length<=3?t:t.length<=9?`${t.slice(0,3)}-${t.slice(3)}`:`${t.slice(0,3)}-${t.slice(3,9)}-${t.slice(9)}`,k={key:"cedula",label:"C\xE9dula",validate(t){let r=N(t);return !yt.test(r)||!vt(r)?false:Tt(r)},compact(t){return N(t)},format(t){return $t(N(t))}};var _t=/^[A-Z]\d{6,8}$/,X=t=>t.trim().toUpperCase(),L={key:"passport",label:"Passport",validate(t){return _t.test(X(t))},compact(t){return X(t)}};var ht=/^(?:C\d{8,9}|\d{9})$/,At=/^(\d{2})(\d{2})(\d{4})\d{3,5}$/,Pt=t=>t%4===0&&(t%100!==0||t%400===0),Ot=t=>{let r=At.exec(t);if(!r)return false;let[,e,i,n]=r,a=Number(e),o=Number(i),s=Number(n),c=new Date,h=c.getUTCFullYear();if(s<1900||s>h||o<1||o>12)return false;let at=[31,Pt(s)?29:28,31,30,31,30,31,31,30,31,30,31];if(a<1||a>at[o-1])return false;let ot=s*1e4+o*100+a,st=h*1e4+(c.getUTCMonth()+1)*100+c.getUTCDate();return ot<=st},z=t=>t.trim().toUpperCase(),B={key:"residence",label:"Residence",validate(t){let r=z(t);return ht.test(r)?true:Ot(r)},compact(t){return z(t)}};var Gt=/^J\d{13}$/,H=t=>t.replace(/[\s-]/g,"").toUpperCase(),j={key:"ruc",label:"RUC",validate(t){return Gt.test(H(t))},compact(t){return H(t)}};var Dt=/^(?:PE|E|N|[2-9](?:AV|PI)?|1[0-3]?(?:AV|PI)?)-\d{1,4}-\d{1,6}$/,I=t=>t.toUpperCase().replace(/\s*-\s*/g,"-").replace(/\s+/g,""),l={key:"cedula",label:"C\xE9dula",validate(t){return Dt.test(I(t))},compact(t){return I(t)},format(t){return I(t)}};var xt=/^\d{1,10}-[23]-(?:19|20)\d{2}$/,Mt=/^\d{1,7}-\d{1,4}-\d{1,7}$/,E=t=>t.toUpperCase().replace(/\s*-\s*/g,"-").replace(/\s+/g,""),w={key:"ruc",label:"RUC",validate(t){let r=E(t);return l.validate(t)||xt.test(r)||Mt.test(r)},compact(t){return E(t)},format(t){return E(t)}};var Ut=/^\d{9}$/,R=t=>t.replace(/[\s-]/g,""),St=t=>t.length===9?`${t.slice(0,2)}-${t.slice(2)}`:t,F={key:"ein",label:"EIN",validate(t){return Ut.test(R(t))},compact(t){return R(t)},format(t){return St(R(t))}};var kt=/^\d{9}$/,y=t=>t.replace(/[\s-]/g,""),Xt=t=>t.length===9?`${t.slice(0,3)}-${t.slice(3,5)}-${t.slice(5)}`:t,Y={key:"ssn",label:"SSN",validate(t){return kt.test(y(t))},compact(t){return y(t)},format(t){return Xt(y(t))}};var Lt=[9,8,7,6,5,4,3,2],zt=/^\d{9}$/,v=t=>t.replace(/[\s-]/g,""),Bt=t=>(10-Lt.reduce((e,i,n)=>e+i*Number(t[n]),0)%10)%10===Number(t[8]),Ht=t=>{let r=t.slice(0,9);return r.length<=8?r:`${r.slice(0,8)}-${r[8]}`},J={key:"dui",label:"DUI",validate(t){let r=v(t);return zt.test(r)&&Bt(r)},compact(t){return v(t)},format(t){return Ht(v(t))}};var jt=/^\d{8,10}$/,T=t=>t.replace(/[\s-]/g,""),W={key:"tin",label:"TIN",validate(t){return jt.test(T(t))},compact(t){return T(t)},format(t){return T(t)}};var wt=/^[VE]?\d{5,8}$/,$=t=>t.toUpperCase().replace(/[.\s-]/g,""),Z={key:"ci",label:"CI",validate(t){return wt.test($(t))},compact(t){return $(t)},format(t){return $(t)}};var Ft={V:1,E:2,J:3,C:3,P:4,G:5},Yt=[4,3,2,7,6,5,4,3,2],K=/^[VEJPGC]\d{9}$/,_=t=>t.toUpperCase().replace(/[\s-]/g,""),Jt=t=>{let i=[Ft[t[0]],...t.slice(1,9).split("").map(Number)].reduce((a,o,s)=>a+o*Yt[s],0)%11;return (i<=1?0:11-i)===Number(t[9])},Wt=t=>K.test(t)?`${t[0]}-${t.slice(1,9)}-${t[9]}`:t,Q={key:"rif",label:"RIF",validate(t){let r=_(t);return K.test(r)&&Jt(r)},compact(t){return _(t)},format(t){return Wt(_(t))}};var Yr="Enter identification number",et={BO:[A,P],CO:[O],CU:[G],HN:[D,x],HT:[M,U],JM:[S],NI:[k,j,B,L],PA:[l,w],PR:[F,Y],SV:[J],TT:[W],VE:[Z,Q]};Array.from(new Set([...Object.keys(personValidators),...Object.keys(entityValidators),...Object.keys(et)])).sort((t,r)=>t.localeCompare(r));var q=new Map,it=t=>t.trim().toUpperCase(),Kt=t=>typeof t=="object"&&t!==null&&"compact"in t&&typeof t.compact=="function"&&"format"in t&&typeof t.format=="function"&&"validate"in t&&typeof t.validate=="function",Qt=(t,r)=>r.abbreviation?.trim().toUpperCase()||t.toUpperCase(),qt=(t,r)=>({key:t,label:Qt(t,r),validate:e=>r.validate(e).isValid,compact:e=>r.compact(e),format:e=>r.format(e)}),tr=t=>{let r=stdnum[t];if(!r)return [];let e=new Set(personValidators[t]??[]),i=new Set(entityValidators[t]??[]);return Object.entries(r).reduce((n,[a,o])=>(!Kt(o)||!(e.has(o)||i.has(o))||n.push(qt(a,o)),n),[])},nt=t=>{let r=it(t),e=q.get(r);if(e)return e;let i=tr(r),n=et[r]??[],a=[...i,...n];return q.set(r,a),a},rr=t=>Array.from(new Set(t.map(r=>r.label)));var Wr=t=>{let r=rr(nt(t));if(r.length!==0)return r.slice(0,2).join(" / ")},er=(t,r)=>{let e=it(t),i=r.trim();if(!e||!i)return {isValid:false};let n=nt(e);for(let a of n)if(a.validate(i))return {isValid:true,compact:a.compact(i)};return {isValid:false}},Zr=(t,r)=>{let e=r.trim();return e&&(er(t,e).compact??e)};export{Yr as a,Wr as b,er as c,Zr as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b as b$2}from'./chunk-PTS2JSMQ.js';import {c as c$2,j}from'./chunk-3X2MEX7P.js';import {a as a$9,b as b$3,c as c$4}from'./chunk-GTVHYHF4.js';import {a as a$b}from'./chunk-GFVJRSZI.js';import {a as a$4}from'./chunk-ORDWXBDZ.js';import {c as c$6}from'./chunk-JYNJHAGL.js';import {b}from'./chunk-SA2QGT2P.js';import {d as d$1}from'./chunk-W5BOTULK.js';import {a as a$a}from'./chunk-NLCRET6U.js';import {a}from'./chunk-FHABUQAH.js';import {a as a$5}from'./chunk-MITXGKC5.js';import {d,c as c$1}from'./chunk-TW4CJXQY.js';import {a as a$8}from'./chunk-VIMWKUML.js';import {a as a$7}from'./chunk-DYXLO45D.js';import {a as a$6,b as b$1,c as c$3,d as d$2}from'./chunk-U4NJK7JM.js';import {d as d$4}from'./chunk-MP4CHZ2K.js';import {a as a$3}from'./chunk-R6NIURLZ.js';import {a as a$1}from'./chunk-AWRP67K4.js';import {c as c$5}from'./chunk-ZCMXCZC2.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {c,d as d$3,q,k as k$1,h}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-QYA5ZUUN.js';import {a as a$2}from'./chunk-OBZIYJO7.js';import*as k from'react';import k__default,{createContext,useMemo,useCallback,forwardRef,useRef,useContext,useEffect,useId,useState}from'react';import*as Vt 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 En from'react-phone-number-input/flags';import {getDefaultOptions}from'date-fns';import wn from'react-phone-number-input/locale/en.json';import Hn from'react-phone-number-input/locale/es.json';import Sn 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 Fl,{parsePhoneNumber,getCountryCallingCode}from'react-phone-number-input';import {getExampleNumber}from'libphonenumber-js/mobile';import Cl from'libphonenumber-js/mobile/examples';var Wo=k__default.memo(({handleSelect:e$1,NoResultsIcon:o,noResultsLabel:t,noResultsDescription:n,noResultsDescriptionLines:r,noResultsAsColumn:l,noResultsButtonOnClick:i,optionDescriptionLines:p,noResultsButtonLabel:c,filteredOptions:m,inputRect:u,inputRef:b$1,popoverPosition:g,optionsListRef:d,selectedOption:C,options:R,setFilteredOptions:y})=>jsx(Vt.Root,{asChild:true,children:jsxs("div",{ref:d,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:u?{width:`${u.width}px`,left:u.left,top:g==="bottom"?`${u.bottom}px`:void 0,bottom:g==="top"?`${window.innerHeight-u.top}px`:void 0}:void 0,children:[m.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:t,description:n,Icon:o,iconAsColumn:l,descriptionLines:r}),i&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{d.current.style.display="none",b$1.current.value="",y(R),i();},children:c})]})]}),m.map(v=>jsx(b.Root,{disabled:v.disabled,selected:C?.value===v.value,onClick:()=>e$1(v),children:jsxs(b.Content,{children:[jsx(b.Headline,{children:v.label}),v.description&&jsx(b.Description,{className:a$2({"line-clamp-1":p===1,"line-clamp-2":p===2,"line-clamp-3":p===3,"line-clamp-4":p===4}),children:v.description})]})},v.key??v.value))]})})),Ut=Wo;var Ko=336,ei=({options:e,defaultSelectedOption:o,onSelect:t,onClick:n,onInputChange:r,error:l,helperText:i,label:p,placeholder:c,value:m,size:u="md",optionDescriptionLines:b=1,noResultsLabel:g,noResultsIcon:d,noResultsDescription:C,noResultsDescriptionLines:R,noResultsAsColumn:y,noResultsButtonOnClick:v,noResultsButtonLabel:A,className:L,disabled:T})=>{let[h,P]=useState(o??null),E=useRef(null),x=useRef(null),[M,w]=useState(),[U,H]=useState([]),[s,a]=useState("bottom"),[N,D]=useState(),S=Ko,j=useCallback(_=>{E.current.style.display="none",x.current.value=_.label,P(_),t?.(_);},[t]),V=useCallback(()=>{if(!x?.current)return;let _=x.current.getBoundingClientRect();w(_);let Y=N?N.height:S,Q=window.innerHeight-_.bottom>Y,Me=_.top>Y;a(Q?"bottom":Me?"top":"bottom");},[N?.height]),ye=useCallback(()=>{let _=e.filter(Y=>Y.label.toLowerCase().includes(x?.current?.value.toLowerCase()??""));if(H(_),E?.current){let Y=E.current.getBoundingClientRect();D(Y);}},[e]);return useEffect(()=>{H(e);},[e]),useEffect(()=>{if(!m){P(null),x.current&&(x.current.value="");return}(!x.current?.value||h?.value!==m.value)&&(P(m),x.current.value=m.label);},[m]),a$b(E,()=>{E.current.style.display="none",h&&x.current&&(x.current.value=h.label);}),useEffect(()=>{if(x?.current)return V(),x.current.addEventListener("mousedown",V),x.current.addEventListener("input",ye),window.addEventListener("scroll",V,true),window.addEventListener("resize",V),()=>{x.current?.removeEventListener("mousedown",V),x.current?.removeEventListener("input",ye),window.removeEventListener("scroll",V,true),window.removeEventListener("resize",V);}},[V,ye]),jsxs("div",{className:a$2("relative",L),children:[jsx(a$4,{ref:x,autoComplete:"off",list:"",selectMode:true,onChange:_=>{_.target.value||(P(null),t?.(null)),r?.(_);},onClean:()=>{P(null),H(e),t?.(null);},onClick:_=>{E.current.style.display="flex",n?.(_);},onBlur:()=>{h&&x.current&&(x.current.value=h.label);},label:p,helperText:i,placeholder:c,size:u,error:l,disabled:T}),jsx(Ut,{handleSelect:j,noResultsLabel:g,NoResultsIcon:d,optionDescriptionLines:b,noResultsAsColumn:y,noResultsButtonLabel:A,noResultsButtonOnClick:v,noResultsDescription:C,noResultsDescriptionLines:R,filteredOptions:U,inputRect:M,inputRef:x,popoverPosition:s,optionsListRef:E,selectedOption:h,options:e,setFilteredOptions:H})]})};var jo=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,disabled:l=false,className:i,...p})=>jsxs("div",{className:a$2("flex w-full flex-col gap-1",i),...p,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%]",l?"text-neutral-400":"text-neutral-700"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:n})]}),ie=jo;var mi=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:l,badgeContent:i,hasDivider:p=false,disabled:c=false,onSelect:m,className:u,...b})=>jsxs(J,{hasDescription:!!n,disabled:c,onClick:m,hasDivider:p,className:a$2(!c&&"cursor-pointer",u),...b,children:[l&&k__default.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ie,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:c}),jsxs("div",{className:"ml-4 flex gap-2",children:[i&&jsx(a$3,{content:i,size:"lg",variant:"alert",className:a$2("self-center",c&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var yi=({children:e,title:o,titleLines:t=1,description:n="",descriptionLines:r,startIcon:l,hasDivider:i=false,disabled:p=false,checked:c,onCheckedChange:m,className:u,...b})=>jsxs(J,{hasDescription:!!n,disabled:p,hasDivider:i,...b,className:a$2("pr-6",u),children:[l&&k__default.cloneElement(l,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(ie,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:p}),jsx(c$5,{checked:c,onCheckedChange:m,className:"ml-4 self-center",disabled:p})]});var oe=336,jt=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:oe,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),ee=()=>{let e=useContext(jt);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},Yt=({children:e})=>{let o=useRef(null),t=useRef(null),n=useId(),[r,l]=useState(),[i,p]=useState(true),[c,m]=useState([]),[u,b]=useState(-1),[g,d]=useState("bottom"),[C,R]=useState(),[y,v]=useState(oe);return jsx(jt.Provider,{value:{optionsListRef:o,inputRef:t,autocompleteId:n,inputRect:r,showChips:i,filteredOptions:c,currentFocus:u,popoverPosition:g,setFilteredOptions:m,setCurrentFocus:b,setShowChips:p,setPopoverPosition:d,setInputRect:l,optionsListHeight:y,optionsListRect:C,setOptionsListRect:R,setOptionsListHeight:v},children:e})};var sn=({option:e,onMountWidth:o})=>{let t=useRef(null);return useEffect(()=>{t.current&&o?.(t.current.clientWidth);},[]),jsx(d$1,{variant:"fill",color:"neutral",ref:t,className:"shrink-0",size:"md",hasCloseIcon:false,children:e.label})},Xt=sn;var un=150,mn=k__default.memo(({selectedOptions:e,error:o,onCleanSelectedOptions:t,disabled:n,size:r})=>{let{autocompleteId:l,inputRect:i,inputRef:p,optionsListRef:c$1}=ee(),m=k__default.useRef(null),[u,b]=k__default.useState(new Map),g=useMemo(()=>{if(!i?.width)return [];let C=0,R=i.width-un,y=0;for(let v=0;v<e.length&&(y+=u.get(v)??0,!(y>R));v++)C++;return e.slice(0,C)},[i?.width,e,u]),d=useCallback(()=>{n||(p?.current?.focus(),c$1.current.style.display="flex");},[n]);return jsxs("div",{onClick:d,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pr-12 pl-3",n&&"cursor-not-allowed"),style:{maxWidth:i?.width?i?.width:void 0,height:i?.height?i?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:m,children:g.map((C,R)=>jsx(Xt,{option:C,onMountWidth:y=>b(v=>new Map(v).set(R,y))},`chip-input-${l}-${C.value}`))}),e.length>g.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();}})]})}),Zt=mn;var hn=k__default.memo(({option:e,index:o,onPressOption:t,isSelected:n,optionDescriptionLines:r})=>{let{currentFocus:l,inputRef:i}=ee();return jsxs(b.Root,{selected:l===o,disabled:e.disabled,onMouseDown:p=>{e.disabled||(i?.current?.value&&p.preventDefault(),t?.(e,p));},children:[jsxs(b.Content,{children:[jsx(b.Headline,{children:e.label}),e.description&&jsx(b.Description,{className:a$2({"line-clamp-1":r===1,"line-clamp-2":r===2,"line-clamp-3":r===3,"line-clamp-4":r===4}),children:e.description})]}),jsx(b.Trailing,{children:jsx(b.CheckboxControl,{checked:n})})]})}),rt=hn;var xn=k__default.memo(({selectedOptions:e$1,handleSelect:o,NoResultsIcon:t,noResultsLabel:n,noResultsDescription:r,noResultsDescriptionLines:l,noResultsAsColumn:i,noResultsButtonOnClick:p,optionDescriptionLines:c,noResultsButtonLabel:m})=>{let{popoverPosition:u,optionsListRef:b,filteredOptions:g,inputRect:d,autocompleteId:C,inputRef:R,optionsListHeight:y}=ee(),v=useCallback(L=>e$1.some(T=>T.value===L.value),[e$1]),A=useMemo(()=>e$1.filter(L=>L.label.toLowerCase().includes(R?.current?.value.toLowerCase()??"")),[e$1,R?.current?.value]);return jsx(Vt.Root,{asChild:true,children:jsxs("div",{ref:b,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:d?{width:`${d.width}px`,left:d.left,top:u==="bottom"?`${d.bottom}px`:void 0,bottom:u==="top"?`${window.innerHeight-d.top}px`:void 0,maxHeight:y+"px"}:void 0,children:[g.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:i,descriptionLines:l}),p&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{b.current.style.display="none",R.current.value="",p();},children:m})]})]}),A.map((L,T)=>jsx(rt,{option:L,index:T,onPressOption:h=>o(h),isSelected:v(L),optionDescriptionLines:c},`autocomplete-option-${C}-${L.key??L.value}`)),g.map((L,T)=>!e$1.some(h=>h.value===L.value)&&jsx(rt,{option:L,index:T,onPressOption:h=>o(h),isSelected:v(L),optionDescriptionLines:c},`autocomplete-option-${C}-${L.key??L.value}`))]})})}),to=xn;var In=k__default.memo(({selectedOptions:e,onSelect:o,error:t,helperText:n,label:r,placeholder:l,options:i,onInputChange:p,size:c,disabled:m})=>{let{setCurrentFocus:u,setFilteredOptions:b,optionsListRef:g,inputRef:d}=ee();return jsx(a$4,{ref:d,autoComplete:"off",list:"",disabled:m,selectMode:true,onChange:C=>{u(-1),p?.(C.target.value);},onClean:()=>{u(-1),b(i),o?.(null,e);},onClick:()=>{m||(g.current.style.display="flex");},error:t,helperText:n,label:r,placeholder:l,fixedTopLabel:e.length>0,size:c})}),oo=In;var no=({options:e,defaultSelectedOptions:o,onSelect:t,error:n,helperText:r,label:l,placeholder:i,noResultsLabel:p,noResultsIcon:c,noResultsDescription:m,noResultsDescriptionLines:u,noResultsAsColumn:b,noResultsButtonOnClick:g,noResultsButtonLabel:d,className:C,onInputChange:R,value:y,loading:v,size:A="md",optionDescriptionLines:L=1,disabled:T})=>{let{inputRef:h,optionsListRef:P,setFilteredOptions:E,setShowChips:x,setInputRect:M,setPopoverPosition:w,setCurrentFocus:U,showChips:H,setOptionsListRect:s,optionsListRect:a,setOptionsListHeight:N}=ee(),D=useRef(false),[S,j]=useState(o??[]),V=useCallback(W=>{j(X=>{let le,Ie=X.findIndex($o=>$o.value===W.value);return Ie===-1?(le=X.concat(W),t?.(W,le),le):(le=X.toSpliced(Ie,1),t?.(W,le),le)});},[t]),ye=useCallback(()=>{j([]),E(e),t?.(null,[]);},[]),_=useCallback(()=>{x(false);},[]),Y=useCallback(()=>{x(true);},[]),Q=useCallback(()=>{if(!h?.current)return;let W=h.current.getBoundingClientRect();M(W);let X=a?a.height>oe?oe:a.height:oe,le=window.innerHeight-W.bottom>X,Ie=W.top>X;w(le?"bottom":Ie?"top":"bottom"),N(Ie?oe:window.innerHeight-W.bottom>oe?oe:window.innerHeight-W.bottom);},[a?.height]),Me=useCallback(()=>{let W=e.filter(X=>X.label.toLowerCase().includes(h?.current?.value.toLowerCase()??""));if(E(W),P?.current){let X=P.current.getBoundingClientRect();s(X);}},[e,P?.current]);return useEffect(()=>{E(e);},[e]),a$b(P,()=>{P.current.style.display="none",U(-1);}),useEffect(()=>{if(h?.current)return Q(),h.current.addEventListener("mousedown",Q),h.current.addEventListener("input",Me),h.current.addEventListener("focusin",_),h.current.addEventListener("focusout",Y),window.addEventListener("scroll",Q,true),window.addEventListener("resize",Q),()=>{h.current?.removeEventListener("mousedown",Q),h.current?.removeEventListener("input",Q),h.current?.removeEventListener("focusout",Y),h.current?.removeEventListener("focusin",_),window.removeEventListener("scroll",Q,true),window.removeEventListener("resize",Q);}},[Q,Y,_,Me]),useEffect(()=>{y&&(j(y),x(true));},[y]),useEffect(()=>{v||o&&o.length&&!D.current&&(j(o),D.current=true,x(true));},[o,v]),jsxs("div",{className:a$2("relative",C),children:[jsx(oo,{selectedOptions:S,onSelect:t,error:n,helperText:r,label:l,placeholder:i,handleSelect:V,options:e,onInputChange:R,size:A,disabled:T}),H&&jsx(Zt,{selectedOptions:S,disabled:T,error:n,onCleanSelectedOptions:ye,size:A}),jsx(to,{handleSelect:V,selectedOptions:S,noResultsLabel:p,NoResultsIcon:c,optionDescriptionLines:L,noResultsAsColumn:b,noResultsButtonLabel:d,noResultsButtonOnClick:g,noResultsDescription:m,noResultsDescriptionLines:u})]})};var As=e=>jsx(Yt,{children:jsx(no,{...e})});var je=({children:e,className:o,disabled:t,error:n,helperText:r,htmlFor:l,label:i,readOnly:p,required:c,tooltip:m})=>{let{root:u}=c$1({error:n,disabled:t,readOnly:p});return jsxs("div",{className:u({className:o}),"data-error":n||void 0,"data-disabled":t||void 0,"data-readonly":p||void 0,children:[i&&jsx(a$7,{as:"label",htmlFor:l,label:i,required:c,tooltip:m}),e,jsx(a$8,{children:r})]})};var st=({className:e,country:o,countryName:t})=>{let n=En[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 Fn=({code:e,codeClassName:o,label:t})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx(st,{country:e,countryName:t}),jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",o),children:e})]}),so=({className:e,disabled:o,error:t,onChange:n,onOpenChange:r,options:l,readOnly:i,translations:p,value:c})=>{let m=k.useRef(null),[u,b]=k.useState(""),[g,d]=k.useState(false),{wrapper:C,input:R,clearIcon:y,searchIcon:v}=b$2({size:"md"}),{contains:A}=useFilter({sensitivity:"base"}),L=k.useMemo(()=>l.map(s=>({...s,key:s.code})),[l]),T=k.useMemo(()=>L.find(s=>s.key===c),[L,c]),{collection:h,filter:P,set:E}=useListCollection({initialItems:L,itemToString:s=>`${s.label} ${s.code}`,itemToValue:s=>s.key,filter:(s,a,N)=>A(s,a)||A(N.code,a.toUpperCase())});k.useEffect(()=>{E(L);},[L,E]);let x=k.useCallback(s=>{d(s),r?.(s);},[r]),M=k.useCallback(({inputValue:s})=>{let a=s??"";b(a),P(a),m.current?.scrollTo({top:0});},[P]),w=k.useCallback(s=>{x(s),s&&(b(""),P(""));},[P,x]),U=k.useCallback(({itemValue:s})=>{if(!s)return;let a=L.find(N=>N.key===s)?.code;a&&(n(a),x(false));},[L,x,n]),H=useCombobox({collection:h,inputBehavior:"autohighlight",inputValue:u,open:g,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:T?[T.key]:[],onInputValueChange:M,onOpenChange:({open:s})=>{s||x(false);},onSelect:U});return jsx(Combobox.RootProvider,{value:H,children:jsxs(a$9,{open:g,onOpenChange:w,children:[jsx(b$3,{asChild:true,children:jsx("button",{type:"button",className:a$2("relative flex h-full w-19.5 shrink-0 items-center justify-center rounded-l after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:w-px after:content-['']",t?"bg-danger-20 after:bg-input-ring-error after:w-0.5":o||i?"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&&g&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||i,children:T&&jsx(Fn,{code:T.code,label:T.label,codeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",i&&"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:p.searchCountryPlaceholder,className:R()}),!o&&u.length>0&&jsx("button",{type:"button",className:y(),onClick:()=>{H.setInputValue("","clear-trigger");},children:jsx(d$3,{className:"size-4.5"})}),jsx(q,{className:v()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:m,className:a$2("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":h.items.length===0}),children:h.items.length===0?jsx(a$a,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:h.items.map(s=>jsxs(Combobox.Item,{item:s,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(st,{country:s.code,countryName:s.label}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:s.label}),jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:s.code}),jsx(k$1,{className:a$2("ml-auto size-4 shrink-0",s.key===c?"opacity-100":"opacity-0")})]},s.key))})})]})})]})})};var ct=k.forwardRef(({className:e,clearLabel:o,disabled:t,error:n,onChange:r,readOnly:l,type:i="text",value:p,...c},m)=>{let u=k.useRef(null),b=`${p??""}`.length>0,g=!t&&!l&&b,d$1=g||n;k.useImperativeHandle(m,()=>u.current,[]);let C=k.useCallback(y=>{r?.(y.target.value);},[r]),R=k.useCallback(()=>{r?.(""),u.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: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",d$1&&!n&&"pr-10.5",g&&n&&"pr-14",n&&!g&&"pr-10.5",t&&"text-input-text-disabled",e),...c,disabled:t,readOnly:l,value:p,onChange:C,ref:u}),(g||n)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[g&&jsx(a$5,{ariaLabel:o,onClick:R}),n&&jsx(d,{})]})]})});ct.displayName="IdInput";var pt={en:"Clear identification number",es:"Limpiar n\xFAmero de identificaci\xF3n",pt:"Limpar n\xFAmero de identifica\xE7\xE3o"},co={en:wn,es:Hn,pt:Sn},_n=pt.en,Dn=co.en,Bn={es:{clearIdLabel:pt.es,searchCountryPlaceholder:"Buscar..."},pt:{clearIdLabel:pt.pt,searchCountryPlaceholder:"Pesquisar..."}},zn={clearIdLabel:_n,searchCountryPlaceholder:"Search..."},po=()=>getDefaultOptions().locale?.code,uo=e=>Bn[e]??zn,Vn=(e,o)=>(co[o]??Dn)[e]??e,mo=({localeCode:e})=>c$2.map(o=>({code:o,label:Vn(o,e)})).sort((o,t)=>o.label.localeCompare(t.label)),fo=a$6,ho=b$1,go=(e,o)=>{let t=o.trim();return !t||!c$3(e,t).isValid?t:d$2(e,t)};var bo=()=>{},Co=k.forwardRef(({autoComplete:e,className:o,country:t,disabled:n,error:r,helperText:l,id:i,label:p,name:c,onBlur:m,onChange:u=bo,onCountryChange:b=bo,placeholder:g,readOnly:d,required:C,tooltip:R,value:y},v)=>{let[A,L]=k.useState(false),[T,h]=k.useState(y??""),P=k.useId(),E=i??P,x=po(),M=k.useRef(y??"");k.useEffect(()=>{(y??"")!==M.current&&h(y??"");},[y]);let w=k.useMemo(()=>uo(x),[x]),U=k.useMemo(()=>mo({localeCode:x}),[x]),H=k.useMemo(()=>ho(t??"")||g||fo,[t,g]),s=c$1({error:r,disabled:n,readOnly:d}),a=k.useCallback((S,j)=>{let V=go(S,j);M.current=V,u(V);},[u]),N=k.useCallback(S=>{h(S),a(t??"",S);},[t,a]),D=k.useCallback(S=>{b(S),a(S,T);},[T,b,a]);return jsx(je,{disabled:n,error:r,helperText:l,htmlFor:E,label:p,readOnly:d,required:C,tooltip:R,children:jsxs("div",{className:a$2(s.control(),"group/id-field",!r&&!n&&!d&&A&&"after:ring-input-ring-focus after:ring-2",o),children:[jsx(so,{disabled:n,error:r,onChange:D,onOpenChange:L,options:U,readOnly:d,translations:w,value:t}),jsx(ct,{autoComplete:e,clearLabel:w.clearIdLabel,disabled:n,error:r,id:E,name:c,onBlur:m,onChange:N,placeholder:H,readOnly:d,required:C,value:T,ref:v})]})})});Co.displayName="IdField";var Ta=({children:e$2,title:o,titleLines:t=1,description:n,descriptionLines:r=1,StartIcon:l,hasDivider:i=false,disabled:p=false,actionButton:c,isSelected:m=false,className:u,...b})=>jsxs(J,{hasDescription:!!n,disabled:p,hasDivider:i,isSelected:m,...b,className:u,children:[l&&jsx(l,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(ie,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:p}),c&&jsx(Fragment,{children:c.isIcon?jsx(e$1,{...c,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:p??c.disabled}):jsx(e,{...c,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:p??c.disabled})})]});var _a=({title:e,description:o="",descriptionLines:t,hasDivider:n=false,disabled:r=false,checked:l,onCheckedChange:i,className:p,chipStatus:c,chipExpandable:m,...u})=>jsxs(J,{hasDescription:!!o,disabled:r,hasDivider:n,...u,className:a$2("pr-6",p),children:[jsx(c$5,{checked:l,onCheckedChange:i,className:"mr-4 self-center",disabled:r}),jsxs("div",{className:"flex-1",children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsx("p",{className:a$2("line-clamp-1 text-sm leading-[130%] break-all",!!o&&"font-medium"),children:e}),m&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$6,{...m})}),c&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$4,{...c,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 dt={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"},ft={headings:["h1","h2","h3"],textFormat:["bold","italic","underline"],lists:true,indent:true,alignment:["left","center","right","justify"],undoRedo:true};var ht=({readOnly:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>{o.setEditable(!e);},[o,e]),null};var gt=({editorRef:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>(e.current=o,()=>{e.current===o&&(e.current=null);}),[o,e]),null};var jn={"ql-align-left":"left","ql-align-center":"center","ql-align-right":"right","ql-align-justify":"justify"},Yn={center:"ql-align-center",right:"ql-align-right",justify:"ql-align-justify"},Xn=()=>typeof window<"u"&&typeof window.DOMParser<"u",xo=e=>Xn()?new DOMParser().parseFromString(e,"text/html"):null,Zn=e=>(e??"").replace(/\s+/g," ").trim(),Ct=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},Jn=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=jn[n];r&&(r!=="left"&&(t.style.textAlign=r),t.classList.remove(n));}},er=e=>{let o=e.querySelectorAll("[class*='ql-indent-']");for(let t of Array.from(o)){if(t.tagName==="LI")continue;let n=Ct(t);n>0&&(t.style.paddingInlineStart=`${n*3}em`);}},tr=(e,o)=>{let t=e.getAttribute("data-list");return t==="bullet"?"ul":t==="ordered"?"ol":o},or=e=>{let o=e.cloneNode(true);return o.removeAttribute("data-list"),o.removeAttribute("data-checked"),o.removeAttribute("data-indent"),Ct(o),o},bt=(e,o)=>e.createElement(o),nr=(e,o)=>{let t=Array.from(e.children).filter(c=>c.tagName==="LI");if(t.length===0||!t.some(c=>c.hasAttribute("data-list")?true:Array.from(c.classList).some(m=>/^ql-indent-\d+$/.test(m))))return;let r=[],l=[],i=e.tagName==="UL"?"ul":"ol";for(let c of t){let m=Ct(c),u=tr(c,i),b=or(c);for(;l.length>0&&l[l.length-1].level>m;)l.pop();if(l.length===0){let d=bt(o,u);r.push(d),l.push({level:0,kind:u,listElement:d});}let g=l[l.length-1];for(;g.level<m;){let d=g.listElement.lastElementChild;if(!d||d.tagName!=="LI")break;let C=bt(o,u);d.appendChild(C),g={level:g.level+1,kind:u,listElement:C},l.push(g);}if(g=l[l.length-1],g.kind!==u){let d=bt(o,u);if(l.length===1)r.push(d),l[0]={level:0,kind:u,listElement:d};else {let R=l[l.length-2].listElement.lastElementChild;R&&R.tagName==="LI"?(R.appendChild(d),l[l.length-1]={level:g.level,kind:u,listElement:d}):(r.push(d),l.length=1,l[0]={level:0,kind:u,listElement:d});}g=l[l.length-1];}g.listElement.appendChild(b);}if(r.length===0)return;let p=o.createDocumentFragment();for(let c of r)p.appendChild(c);e.replaceWith(p);},rr=(e,o)=>{let t=Array.from(e.querySelectorAll("ol, ul"));for(let n of t)nr(n,o);},Lo=(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 i of Array.from(r.classList))/^ql-indent-\d+$/.test(i)&&r.classList.remove(i);o>0&&r.classList.add(`ql-indent-${o}`);let l=Array.from(r.children).filter(i=>i.tagName==="UL"||i.tagName==="OL");for(let i of l)Lo(i,o+1);}},lr=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 i of Array.from(n.classList))i.startsWith("ql-align-")&&n.classList.remove(i);let r=n.style.textAlign.trim().toLowerCase(),l=Yn[r];l&&n.classList.add(l);}},be=e=>Zn(e).replace(/>\s+</g,"><").replace(/ /g," "),xt=e=>{let o=e??"";if(!o.trim())return "";let t=xo(o);if(!t)return o;let{body:n}=t;return Jn(n),er(n),rr(n,t),n.innerHTML},Lt=e=>{if(!e.trim())return "";let o=xo(e);if(!o)return e;let{body:t}=o,n=Array.from(t.querySelectorAll("ul, ol"));for(let r of n)Lo(r,0);return lr(t),t.innerHTML};var Ye=e=>{let o="";return e.getEditorState().read(()=>{o=$generateHtmlFromNodes(e,null);}),Lt(o)},dr=(e,o)=>{let t=xt(o);e.update(()=>{let n=$getRoot();if(n.clear(),!t.trim()){n.append($createParagraphNode());return}let l=new DOMParser().parseFromString(t,"text/html"),i=$generateNodesFromDOM(e,l);if(i.length===0){n.append($createParagraphNode());return}n.select(),$insertNodes(i);});},yt=({value:e,isSyncingRef:o})=>{let[t]=useLexicalComposerContext(),n=useRef(null);return useEffect(()=>{let r=e??"";if(n.current!==null&&be(r)===be(n.current))return;let l=Ye(t);be(l)!==be(r)&&(o.current=true,dr(t,r),queueMicrotask(()=>{o.current=false;})),n.current=r;},[t,o,e]),null};var Io=["left","center","right","justify"];var vo=["bold","italic","underline","strikethrough","code"];var jr={bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough",code:"code"},Yr={left:jsx(AlignLeftIcon,{className:"size-4"}),center:jsx(AlignCenterIcon,{className:"size-4"}),right:jsx(AlignRightIcon,{className:"size-4"}),justify:jsx(AlignJustifyIcon,{className:"size-4"})},Xr={left:"Align left",center:"Align center",right:"Align right",justify:"Align justify"},Ne={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:"</>"})},Ee={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Inline code"},Zr=e=>{let o=e.textFormat;return o===false?[]:Array.isArray(o)?vo.filter(t=>o.includes(t)):["bold","italic","underline"]},Jr=e=>{let o=e.alignment;return o===false?[]:Array.isArray(o)?Io.filter(t=>o.includes(t)):["left","center","right","justify"]},el=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()}))]},Ae=()=>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}),Rt=({config:e,className:o})=>{let[t]=useLexicalComposerContext(),n=useId(),[r,l]=useState(false),[i,p]=useState(false),[c,m]=useState(false),[u,b]=useState(false),[g,d]=useState(false),[C,R]=useState(false),[y,v]=useState(false),[A,L]=useState("paragraph"),[T,h]=useState("left"),P=useMemo(()=>Zr(e),[e]),E=useMemo(()=>Jr(e),[e]),x=useMemo(()=>el(e),[e]),M=useCallback(()=>{let s=$getSelection();if(!$isRangeSelection(s))return;m(s.hasFormat("bold")),b(s.hasFormat("italic")),d(s.hasFormat("underline")),R(s.hasFormat("strikethrough")),v(s.hasFormat("code"));let a=s.anchor.getNode(),N=a.getKey()==="root"?a:a.getTopLevelElementOrThrow();if($isListNode(N))L(N.getListType()==="number"?"ol":"ul");else {let S=$findMatchingParent(N,j=>$isListNode(j));$isListNode(S)?L(S.getListType()==="number"?"ol":"ul"):L($isHeadingNode(N)?N.getTag():N.getType());}let D=$isElementNode(N)?N.getFormatType():"";h(D==="center"||D==="right"||D==="justify"?D:"left");},[]);useEffect(()=>mergeRegister(t.registerUpdateListener(({editorState:s})=>{s.read(()=>{M();});}),t.registerCommand(SELECTION_CHANGE_COMMAND,()=>(M(),false),1),t.registerCommand(CAN_UNDO_COMMAND,s=>(l(s),false),1),t.registerCommand(CAN_REDO_COMMAND,s=>(p(s),false),1)),[t,M]);let w=s=>{t.dispatchCommand(FORMAT_TEXT_COMMAND,jr[s]);},U=s=>{t.update(()=>{let a=$getSelection();if($isRangeSelection(a)){if(s==="paragraph"){$setBlocksType(a,()=>$createParagraphNode());return}$setBlocksType(a,()=>$createHeadingNode(s));}});},H=s=>{if(A===(s==="bullet"?"ul":"ol")){t.dispatchCommand(REMOVE_LIST_COMMAND,void 0);return}t.dispatchCommand(s==="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:!i,icon:jsx(RedoIcon,{className:"size-4"})}),jsx(Ae,{})]}),x.length>0&&jsxs(Fragment,{children:[jsx("label",{className:"sr-only",htmlFor:n,children:"Text style"}),jsx("select",{id:n,value:A.startsWith("h")?A:"paragraph",onChange:s=>U(s.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(s=>jsx("option",{value:s.value,children:s.label},s.value))}),jsx(Ae,{})]}),P.length>0&&jsxs(Fragment,{children:[P.includes("bold")&&jsx(K,{label:Ee.bold,onClick:()=>w("bold"),icon:Ne.bold,active:c}),P.includes("italic")&&jsx(K,{label:Ee.italic,onClick:()=>w("italic"),icon:Ne.italic,active:u}),P.includes("underline")&&jsx(K,{label:Ee.underline,onClick:()=>w("underline"),icon:Ne.underline,active:g}),P.includes("strikethrough")&&jsx(K,{label:Ee.strikethrough,onClick:()=>w("strikethrough"),icon:Ne.strikethrough,active:C}),P.includes("code")&&jsx(K,{label:Ee.code,onClick:()=>w("code"),icon:Ne.code,active:y}),jsx(Ae,{})]}),e.lists!==false&&jsxs(Fragment,{children:[jsx(K,{label:"Bulleted list",onClick:()=>H("bullet"),icon:jsx(ListIcon,{className:"size-4"}),active:A==="ul"}),jsx(K,{label:"Numbered list",onClick:()=>H("number"),icon:jsx(ListOrderedIcon,{className:"size-4"}),active:A==="ol"}),jsx(Ae,{})]}),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(Ae,{})]}),E.length>0&&jsx(Fragment,{children:E.map(s=>jsx(K,{label:Xr[s],onClick:()=>t.dispatchCommand(FORMAT_ELEMENT_COMMAND,s),icon:Yr[s],active:T===s},s))})]})};var No=e=>{if(e!==void 0)return typeof e=="number"?`${e}px`:e},hl=forwardRef(({value:e,onChange:o,onBlur:t,onError:n,placeholder:r="Write your content...",readOnly:l=false,showToolbar:i=true,toolbarConfig:p=ft,className:c,editorClassName:m,toolbarClassName:u,autoFocus:b=false,minHeight:g=160,maxHeight:d,error:C=false,errorMessage:R,editorRef:y},v)=>{let A=useRef(false),L=useMemo(()=>({namespace:"SodtrackRichTextEditor",theme:dt,onError:(h,P)=>{if(n){n(h,P);return}console.error("RichTextEditor error",h);},nodes:[HeadingNode,ListNode,ListItemNode]}),[n]),T={minHeight:No(g),maxHeight:No(d),overflowY:d?"auto":void 0};return jsx(LexicalComposer,{initialConfig:L,children:jsxs("div",{className:"w-full",children:[jsxs("div",{ref:v,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",l&&"border-neutral-300 bg-neutral-50 focus-within:ring-0",c),"data-error":C,"data-readonly":l,children:[i&&!l&&jsx(Rt,{config:p,className:u}),jsx(RichTextPlugin,{contentEditable:jsx(ContentEditable,{className:a$2("relative w-full px-4 py-3 text-sm leading-[142%] text-neutral-900 outline-none","[&_h1]:mt-2 [&_h1]:mb-2 [&_h2]:mt-2 [&_h2]:mb-2 [&_h3]:mt-2 [&_h3]:mb-2","[&_li]:my-1 [&_ol]:my-2 [&_ul]:my-2","[&_a]:text-primary-700 [&_a]:underline",l&&"cursor-default",m),style:T,onBlur:t,"aria-invalid":C}),placeholder:l?null:jsx("div",{className:"pointer-events-none absolute top-3 left-4 text-sm text-neutral-500",children:r}),ErrorBoundary:LexicalErrorBoundary}),jsx(HistoryPlugin,{}),jsx(ListPlugin,{}),jsx(ht,{readOnly:l}),jsx(yt,{value:e,isSyncingRef:A}),b&&!l&&jsx(AutoFocusPlugin,{}),y&&jsx(gt,{editorRef:y}),jsx(OnChangePlugin,{ignoreSelectionChange:true,onChange:(h,P)=>{!o||A.current||o(Ye(P),h);}})]}),C&&R&&jsx("p",{className:"text-error-500 mt-1 text-xs leading-[133%]",children:R})]})})});hl.displayName="RichTextEditor";var Ao={en:wn,es:Hn,pt:Sn},vl={es:{clearPhoneNumberLabel:"Eliminar n\xFAmero de tel\xE9fono",searchCountryPlaceholder:"Buscar..."},pt:{clearPhoneNumberLabel:"Limpar n\xFAmero de telefone",searchCountryPlaceholder:"Pesquisar..."}},Rl={clearPhoneNumberLabel:"Clear phone number",searchCountryPlaceholder:"Search..."},Pl=Ao.en,Mo="9 1234 5678",Pt="ZZ",Oo=()=>{},Xe=e=>vl[e]??Rl,Fo=e=>Ao[e]??Pl,ko=e=>{if(e)try{let o=parsePhoneNumber(e)?.country;return !o||!j(o)?void 0:o}catch{return}},wo=e=>{if(e)return getExampleNumber(e,Cl)?.formatNational()},Ze=e=>e??Pt,Je=()=>getDefaultOptions().locale?.code;var Ml=({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}`})]}),Ho=({className:e,disabled:o,error:t,iconComponent:n,onChange:r,onOpenChange:l,options:i,readOnly:p,translations:c,value:m})=>{let u=k.useRef(null),[b,g]=k.useState(""),[d,C]=k.useState(false),{wrapper:R,input:y,clearIcon:v,searchIcon:A}=b$2({size:"md"}),{contains:L}=useFilter({sensitivity:"base"}),T=k.useMemo(()=>i.filter(a=>a.value!==void 0&&j(a.value)).map(a=>({callingCode:a.value?getCountryCallingCode(a.value):void 0,country:a.value,key:Ze(a.value),label:a.label})),[i]),h=k.useMemo(()=>T.find(a=>a.key===Ze(m)),[T,m]),{collection:P,filter:E,set:x}=useListCollection({initialItems:T,itemToString:a=>a.callingCode?`${a.label} +${a.callingCode}`:a.label,itemToValue:a=>a.key,filter:(a,N,D)=>{let S=N.trim().replace(/^\+/,"");return L(a,N)||(D.country?L(D.country,N.toUpperCase()):false)||(D.callingCode?L(D.callingCode,S)||L(`+${D.callingCode}`,N):false)}});k.useEffect(()=>{x(T);},[T,x]);let M=k.useCallback(a=>{C(a),l?.(a);},[l]),w=k.useCallback(({inputValue:a})=>{let N=a??"";g(N),E(N),u.current?.scrollTo({top:0});},[E]),U=k.useCallback(a=>{M(a),a&&(g(""),E(""));},[E,M]),H=k.useCallback(({itemValue:a})=>{if(!a||a===Pt){r(void 0),M(false);return}j(a)&&(r(a),M(false));},[M,r]),s=useCombobox({collection:P,inputBehavior:"autohighlight",inputValue:b,open:d,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:h?[h.key]:[],onInputValueChange:w,onOpenChange:({open:a})=>{a||M(false);},onSelect:H});return jsx(Combobox.RootProvider,{value:s,children:jsxs(a$9,{open:d,onOpenChange:U,children:[jsx(b$3,{asChild:true,children:jsx("button",{type:"button",className:a$2("relative flex h-full w-19.5 shrink-0 items-center justify-center rounded-l after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:w-px after:content-['']",t?"bg-danger-20 after:bg-input-ring-error after:w-0.5":o||p?"after:bg-input-ring-disabled bg-neutral-200":"group-focus-within/phone:after:bg-input-ring-focus after:bg-input-ring bg-neutral-200 group-focus-within/phone:after:w-0.5",!t&&d&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||p,children:h&&jsx(Ml,{Icon:n,callingCode:h.callingCode,country:h.country,countryName:h.label,callingCodeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",p&&"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:R({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:c.searchCountryPlaceholder,className:y()}),!o&&b.length>0&&jsx("button",{type:"button",className:v(),onClick:()=>{s.setInputValue("","clear-trigger");},children:jsx(d$3,{className:"size-4.5"})}),jsx(q,{className:A()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:u,className:a$2("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":P.items.length===0}),children:P.items.length===0?jsx(a$a,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:P.items.map(a=>jsxs(Combobox.Item,{item:a,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:a.country,label:a.label})}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:a.label}),a.callingCode&&jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:`+${a.callingCode}`}),jsx(k$1,{className:a$2("ml-auto size-4 shrink-0",a.key===Ze(m)?"opacity-100":"opacity-0")})]},a.key))})})]})})]})})};var _o=({className:e,country:o,countryName:t})=>{let n=En[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 Nt=k.forwardRef(({className:e,disabled:o,error:t,onChange:n,readOnly:r,type:l,value:i,...p},c)=>{let m=Je(),u=k.useMemo(()=>Xe(m),[m]),b=k.useRef(null),d$1=!o&&!r&&!!i,C=d$1||t;k.useImperativeHandle(c,()=>b.current,[]);let R=k.useCallback(()=>{let y=b.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: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",C&&!t&&"pr-10.5",d$1&&t&&"pr-14",t&&!d$1&&"pr-10.5",o&&"text-input-text-disabled",e),...p,disabled:o,readOnly:r,value:i,onChange:n,ref:b}),(d$1||t)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[d$1&&jsx(a$5,{ariaLabel:u.clearPhoneNumberLabel,onClick:R}),t&&jsx(d,{})]})]})});Nt.displayName="PhoneNumberInputComponent";var kl=Fl,zo=k.forwardRef(({className:e,defaultCountry:o,disabled:t,error:n,helperText:r,id:l,label:i,onChange:p=Oo,placeholder:c,readOnly:m,required:u,tooltip:b,value:g,...d},C)=>{let[R,y]=k.useState(false),[v,A]=k.useState(()=>ko(g)??o),L=k.useId(),T=l??L,h=Je(),P=k.useMemo(()=>Xe(h),[h]),E=k.useMemo(()=>Fo(h),[h]),x=k.useMemo(()=>wo(v)??c??Mo,[c,v]),M=c$1({error:n,disabled:t,readOnly:m}),w=a$2(M.control(),"group/phone",!n&&!t&&!m&&R&&"after:ring-input-ring-focus after:ring-2",e),U=k.useCallback(H=>{A(H);},[]);return jsx(je,{disabled:t,error:n,helperText:r,htmlFor:T,label:i,readOnly:m,required:u,tooltip:b,children:jsx(kl,{...d,className:w,ref:C,countrySelectComponent:Ho,countrySelectProps:{error:n,onOpenChange:y,translations:P},defaultCountry:o,disabled:t,flagComponent:_o,id:T,initialValueFormat:"national",inputComponent:Nt,labels:E,numberInputProps:{error:n,placeholder:x},readOnly:m,required:u,value:g,onChange:p,onCountryChange:U})})});zo.displayName="PhoneInput";var wl=({children:e,hasDescription:o=false,disabled:t=false,hasDivider:n=false,className:r,isSelected:l,onClick:i,...p})=>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",!!i?"cursor-pointer":"cursor-default"),l&&"bg-primary-200",r),onClick:m=>{t||i?.(m);},...p,children:e}),n&&jsx(a$1,{})]}),J=wl;var vm=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:l,endIcon:i,hasDivider:p=false,disabled:c=false,isSelected:m=false,className:u,...b})=>jsxs(J,{hasDescription:!!n,disabled:c,hasDivider:p,className:u,isSelected:m,...b,children:[l&&k__default.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ie,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:c}),i&&k__default.cloneElement(i,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{ei as a,vm as b,mi as c,yi as d,As as e,Co as f,Ta as g,_a as h,dt as i,ft as j,be as k,xt as l,Lt as m,hl as n,zo as o};
|
|
1
|
+
import {b as b$2}from'./chunk-PTS2JSMQ.js';import {c as c$2,j}from'./chunk-3X2MEX7P.js';import {a as a$9,b as b$3,c as c$4}from'./chunk-GTVHYHF4.js';import {a as a$b}from'./chunk-GFVJRSZI.js';import {a as a$4}from'./chunk-ORDWXBDZ.js';import {c as c$6}from'./chunk-JYNJHAGL.js';import {b}from'./chunk-SA2QGT2P.js';import {d as d$1}from'./chunk-W5BOTULK.js';import {a as a$a}from'./chunk-NLCRET6U.js';import {a}from'./chunk-FHABUQAH.js';import {a as a$5}from'./chunk-MITXGKC5.js';import {d,c as c$1}from'./chunk-TW4CJXQY.js';import {a as a$8}from'./chunk-VIMWKUML.js';import {a as a$7}from'./chunk-DYXLO45D.js';import {a as a$6,b as b$1,c as c$3,d as d$2}from'./chunk-NYURVOJI.js';import {d as d$4}from'./chunk-MP4CHZ2K.js';import {a as a$3}from'./chunk-R6NIURLZ.js';import {a as a$1}from'./chunk-AWRP67K4.js';import {c as c$5}from'./chunk-ZCMXCZC2.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {c,d as d$3,q,k as k$1,h}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-QYA5ZUUN.js';import {a as a$2}from'./chunk-OBZIYJO7.js';import*as k from'react';import k__default,{createContext,useMemo,useCallback,forwardRef,useRef,useContext,useEffect,useId,useState}from'react';import*as Vt 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 En from'react-phone-number-input/flags';import {getDefaultOptions}from'date-fns';import wn from'react-phone-number-input/locale/en.json';import Hn from'react-phone-number-input/locale/es.json';import Sn 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 Fl,{parsePhoneNumber,getCountryCallingCode}from'react-phone-number-input';import {getExampleNumber}from'libphonenumber-js/mobile';import Cl from'libphonenumber-js/mobile/examples';var Wo=k__default.memo(({handleSelect:e$1,NoResultsIcon:o,noResultsLabel:t,noResultsDescription:n,noResultsDescriptionLines:r,noResultsAsColumn:l,noResultsButtonOnClick:i,optionDescriptionLines:p,noResultsButtonLabel:c,filteredOptions:m,inputRect:u,inputRef:b$1,popoverPosition:g,optionsListRef:d,selectedOption:C,options:R,setFilteredOptions:y})=>jsx(Vt.Root,{asChild:true,children:jsxs("div",{ref:d,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:u?{width:`${u.width}px`,left:u.left,top:g==="bottom"?`${u.bottom}px`:void 0,bottom:g==="top"?`${window.innerHeight-u.top}px`:void 0}:void 0,children:[m.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:t,description:n,Icon:o,iconAsColumn:l,descriptionLines:r}),i&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{d.current.style.display="none",b$1.current.value="",y(R),i();},children:c})]})]}),m.map(v=>jsx(b.Root,{disabled:v.disabled,selected:C?.value===v.value,onClick:()=>e$1(v),children:jsxs(b.Content,{children:[jsx(b.Headline,{children:v.label}),v.description&&jsx(b.Description,{className:a$2({"line-clamp-1":p===1,"line-clamp-2":p===2,"line-clamp-3":p===3,"line-clamp-4":p===4}),children:v.description})]})},v.key??v.value))]})})),Ut=Wo;var Ko=336,ei=({options:e,defaultSelectedOption:o,onSelect:t,onClick:n,onInputChange:r,error:l,helperText:i,label:p,placeholder:c,value:m,size:u="md",optionDescriptionLines:b=1,noResultsLabel:g,noResultsIcon:d,noResultsDescription:C,noResultsDescriptionLines:R,noResultsAsColumn:y,noResultsButtonOnClick:v,noResultsButtonLabel:A,className:L,disabled:T})=>{let[h,P]=useState(o??null),E=useRef(null),x=useRef(null),[M,w]=useState(),[U,H]=useState([]),[s,a]=useState("bottom"),[N,D]=useState(),S=Ko,j=useCallback(_=>{E.current.style.display="none",x.current.value=_.label,P(_),t?.(_);},[t]),V=useCallback(()=>{if(!x?.current)return;let _=x.current.getBoundingClientRect();w(_);let Y=N?N.height:S,Q=window.innerHeight-_.bottom>Y,Me=_.top>Y;a(Q?"bottom":Me?"top":"bottom");},[N?.height]),ye=useCallback(()=>{let _=e.filter(Y=>Y.label.toLowerCase().includes(x?.current?.value.toLowerCase()??""));if(H(_),E?.current){let Y=E.current.getBoundingClientRect();D(Y);}},[e]);return useEffect(()=>{H(e);},[e]),useEffect(()=>{if(!m){P(null),x.current&&(x.current.value="");return}(!x.current?.value||h?.value!==m.value)&&(P(m),x.current.value=m.label);},[m]),a$b(E,()=>{E.current.style.display="none",h&&x.current&&(x.current.value=h.label);}),useEffect(()=>{if(x?.current)return V(),x.current.addEventListener("mousedown",V),x.current.addEventListener("input",ye),window.addEventListener("scroll",V,true),window.addEventListener("resize",V),()=>{x.current?.removeEventListener("mousedown",V),x.current?.removeEventListener("input",ye),window.removeEventListener("scroll",V,true),window.removeEventListener("resize",V);}},[V,ye]),jsxs("div",{className:a$2("relative",L),children:[jsx(a$4,{ref:x,autoComplete:"off",list:"",selectMode:true,onChange:_=>{_.target.value||(P(null),t?.(null)),r?.(_);},onClean:()=>{P(null),H(e),t?.(null);},onClick:_=>{E.current.style.display="flex",n?.(_);},onBlur:()=>{h&&x.current&&(x.current.value=h.label);},label:p,helperText:i,placeholder:c,size:u,error:l,disabled:T}),jsx(Ut,{handleSelect:j,noResultsLabel:g,NoResultsIcon:d,optionDescriptionLines:b,noResultsAsColumn:y,noResultsButtonLabel:A,noResultsButtonOnClick:v,noResultsDescription:C,noResultsDescriptionLines:R,filteredOptions:U,inputRect:M,inputRef:x,popoverPosition:s,optionsListRef:E,selectedOption:h,options:e,setFilteredOptions:H})]})};var jo=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,disabled:l=false,className:i,...p})=>jsxs("div",{className:a$2("flex w-full flex-col gap-1",i),...p,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%]",l?"text-neutral-400":"text-neutral-700"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:n})]}),ie=jo;var mi=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:l,badgeContent:i,hasDivider:p=false,disabled:c=false,onSelect:m,className:u,...b})=>jsxs(J,{hasDescription:!!n,disabled:c,onClick:m,hasDivider:p,className:a$2(!c&&"cursor-pointer",u),...b,children:[l&&k__default.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ie,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:c}),jsxs("div",{className:"ml-4 flex gap-2",children:[i&&jsx(a$3,{content:i,size:"lg",variant:"alert",className:a$2("self-center",c&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var yi=({children:e,title:o,titleLines:t=1,description:n="",descriptionLines:r,startIcon:l,hasDivider:i=false,disabled:p=false,checked:c,onCheckedChange:m,className:u,...b})=>jsxs(J,{hasDescription:!!n,disabled:p,hasDivider:i,...b,className:a$2("pr-6",u),children:[l&&k__default.cloneElement(l,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(ie,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:p}),jsx(c$5,{checked:c,onCheckedChange:m,className:"ml-4 self-center",disabled:p})]});var oe=336,jt=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:oe,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),ee=()=>{let e=useContext(jt);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},Yt=({children:e})=>{let o=useRef(null),t=useRef(null),n=useId(),[r,l]=useState(),[i,p]=useState(true),[c,m]=useState([]),[u,b]=useState(-1),[g,d]=useState("bottom"),[C,R]=useState(),[y,v]=useState(oe);return jsx(jt.Provider,{value:{optionsListRef:o,inputRef:t,autocompleteId:n,inputRect:r,showChips:i,filteredOptions:c,currentFocus:u,popoverPosition:g,setFilteredOptions:m,setCurrentFocus:b,setShowChips:p,setPopoverPosition:d,setInputRect:l,optionsListHeight:y,optionsListRect:C,setOptionsListRect:R,setOptionsListHeight:v},children:e})};var sn=({option:e,onMountWidth:o})=>{let t=useRef(null);return useEffect(()=>{t.current&&o?.(t.current.clientWidth);},[]),jsx(d$1,{variant:"fill",color:"neutral",ref:t,className:"shrink-0",size:"md",hasCloseIcon:false,children:e.label})},Xt=sn;var un=150,mn=k__default.memo(({selectedOptions:e,error:o,onCleanSelectedOptions:t,disabled:n,size:r})=>{let{autocompleteId:l,inputRect:i,inputRef:p,optionsListRef:c$1}=ee(),m=k__default.useRef(null),[u,b]=k__default.useState(new Map),g=useMemo(()=>{if(!i?.width)return [];let C=0,R=i.width-un,y=0;for(let v=0;v<e.length&&(y+=u.get(v)??0,!(y>R));v++)C++;return e.slice(0,C)},[i?.width,e,u]),d=useCallback(()=>{n||(p?.current?.focus(),c$1.current.style.display="flex");},[n]);return jsxs("div",{onClick:d,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pr-12 pl-3",n&&"cursor-not-allowed"),style:{maxWidth:i?.width?i?.width:void 0,height:i?.height?i?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:m,children:g.map((C,R)=>jsx(Xt,{option:C,onMountWidth:y=>b(v=>new Map(v).set(R,y))},`chip-input-${l}-${C.value}`))}),e.length>g.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();}})]})}),Zt=mn;var hn=k__default.memo(({option:e,index:o,onPressOption:t,isSelected:n,optionDescriptionLines:r})=>{let{currentFocus:l,inputRef:i}=ee();return jsxs(b.Root,{selected:l===o,disabled:e.disabled,onMouseDown:p=>{e.disabled||(i?.current?.value&&p.preventDefault(),t?.(e,p));},children:[jsxs(b.Content,{children:[jsx(b.Headline,{children:e.label}),e.description&&jsx(b.Description,{className:a$2({"line-clamp-1":r===1,"line-clamp-2":r===2,"line-clamp-3":r===3,"line-clamp-4":r===4}),children:e.description})]}),jsx(b.Trailing,{children:jsx(b.CheckboxControl,{checked:n})})]})}),rt=hn;var xn=k__default.memo(({selectedOptions:e$1,handleSelect:o,NoResultsIcon:t,noResultsLabel:n,noResultsDescription:r,noResultsDescriptionLines:l,noResultsAsColumn:i,noResultsButtonOnClick:p,optionDescriptionLines:c,noResultsButtonLabel:m})=>{let{popoverPosition:u,optionsListRef:b,filteredOptions:g,inputRect:d,autocompleteId:C,inputRef:R,optionsListHeight:y}=ee(),v=useCallback(L=>e$1.some(T=>T.value===L.value),[e$1]),A=useMemo(()=>e$1.filter(L=>L.label.toLowerCase().includes(R?.current?.value.toLowerCase()??"")),[e$1,R?.current?.value]);return jsx(Vt.Root,{asChild:true,children:jsxs("div",{ref:b,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:d?{width:`${d.width}px`,left:d.left,top:u==="bottom"?`${d.bottom}px`:void 0,bottom:u==="top"?`${window.innerHeight-d.top}px`:void 0,maxHeight:y+"px"}:void 0,children:[g.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:i,descriptionLines:l}),p&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(e,{variant:"ghost",className:"my-3 w-fit self-center",onClick:()=>{b.current.style.display="none",R.current.value="",p();},children:m})]})]}),A.map((L,T)=>jsx(rt,{option:L,index:T,onPressOption:h=>o(h),isSelected:v(L),optionDescriptionLines:c},`autocomplete-option-${C}-${L.key??L.value}`)),g.map((L,T)=>!e$1.some(h=>h.value===L.value)&&jsx(rt,{option:L,index:T,onPressOption:h=>o(h),isSelected:v(L),optionDescriptionLines:c},`autocomplete-option-${C}-${L.key??L.value}`))]})})}),to=xn;var In=k__default.memo(({selectedOptions:e,onSelect:o,error:t,helperText:n,label:r,placeholder:l,options:i,onInputChange:p,size:c,disabled:m})=>{let{setCurrentFocus:u,setFilteredOptions:b,optionsListRef:g,inputRef:d}=ee();return jsx(a$4,{ref:d,autoComplete:"off",list:"",disabled:m,selectMode:true,onChange:C=>{u(-1),p?.(C.target.value);},onClean:()=>{u(-1),b(i),o?.(null,e);},onClick:()=>{m||(g.current.style.display="flex");},error:t,helperText:n,label:r,placeholder:l,fixedTopLabel:e.length>0,size:c})}),oo=In;var no=({options:e,defaultSelectedOptions:o,onSelect:t,error:n,helperText:r,label:l,placeholder:i,noResultsLabel:p,noResultsIcon:c,noResultsDescription:m,noResultsDescriptionLines:u,noResultsAsColumn:b,noResultsButtonOnClick:g,noResultsButtonLabel:d,className:C,onInputChange:R,value:y,loading:v,size:A="md",optionDescriptionLines:L=1,disabled:T})=>{let{inputRef:h,optionsListRef:P,setFilteredOptions:E,setShowChips:x,setInputRect:M,setPopoverPosition:w,setCurrentFocus:U,showChips:H,setOptionsListRect:s,optionsListRect:a,setOptionsListHeight:N}=ee(),D=useRef(false),[S,j]=useState(o??[]),V=useCallback(W=>{j(X=>{let le,Ie=X.findIndex($o=>$o.value===W.value);return Ie===-1?(le=X.concat(W),t?.(W,le),le):(le=X.toSpliced(Ie,1),t?.(W,le),le)});},[t]),ye=useCallback(()=>{j([]),E(e),t?.(null,[]);},[]),_=useCallback(()=>{x(false);},[]),Y=useCallback(()=>{x(true);},[]),Q=useCallback(()=>{if(!h?.current)return;let W=h.current.getBoundingClientRect();M(W);let X=a?a.height>oe?oe:a.height:oe,le=window.innerHeight-W.bottom>X,Ie=W.top>X;w(le?"bottom":Ie?"top":"bottom"),N(Ie?oe:window.innerHeight-W.bottom>oe?oe:window.innerHeight-W.bottom);},[a?.height]),Me=useCallback(()=>{let W=e.filter(X=>X.label.toLowerCase().includes(h?.current?.value.toLowerCase()??""));if(E(W),P?.current){let X=P.current.getBoundingClientRect();s(X);}},[e,P?.current]);return useEffect(()=>{E(e);},[e]),a$b(P,()=>{P.current.style.display="none",U(-1);}),useEffect(()=>{if(h?.current)return Q(),h.current.addEventListener("mousedown",Q),h.current.addEventListener("input",Me),h.current.addEventListener("focusin",_),h.current.addEventListener("focusout",Y),window.addEventListener("scroll",Q,true),window.addEventListener("resize",Q),()=>{h.current?.removeEventListener("mousedown",Q),h.current?.removeEventListener("input",Q),h.current?.removeEventListener("focusout",Y),h.current?.removeEventListener("focusin",_),window.removeEventListener("scroll",Q,true),window.removeEventListener("resize",Q);}},[Q,Y,_,Me]),useEffect(()=>{y&&(j(y),x(true));},[y]),useEffect(()=>{v||o&&o.length&&!D.current&&(j(o),D.current=true,x(true));},[o,v]),jsxs("div",{className:a$2("relative",C),children:[jsx(oo,{selectedOptions:S,onSelect:t,error:n,helperText:r,label:l,placeholder:i,handleSelect:V,options:e,onInputChange:R,size:A,disabled:T}),H&&jsx(Zt,{selectedOptions:S,disabled:T,error:n,onCleanSelectedOptions:ye,size:A}),jsx(to,{handleSelect:V,selectedOptions:S,noResultsLabel:p,NoResultsIcon:c,optionDescriptionLines:L,noResultsAsColumn:b,noResultsButtonLabel:d,noResultsButtonOnClick:g,noResultsDescription:m,noResultsDescriptionLines:u})]})};var As=e=>jsx(Yt,{children:jsx(no,{...e})});var je=({children:e,className:o,disabled:t,error:n,helperText:r,htmlFor:l,label:i,readOnly:p,required:c,tooltip:m})=>{let{root:u}=c$1({error:n,disabled:t,readOnly:p});return jsxs("div",{className:u({className:o}),"data-error":n||void 0,"data-disabled":t||void 0,"data-readonly":p||void 0,children:[i&&jsx(a$7,{as:"label",htmlFor:l,label:i,required:c,tooltip:m}),e,jsx(a$8,{children:r})]})};var st=({className:e,country:o,countryName:t})=>{let n=En[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 Fn=({code:e,codeClassName:o,label:t})=>jsxs("div",{className:"flex justify-center gap-2",children:[jsx(st,{country:e,countryName:t}),jsx("span",{className:a$2("text-sm leading-[143%] font-medium text-neutral-800",o),children:e})]}),so=({className:e,disabled:o,error:t,onChange:n,onOpenChange:r,options:l,readOnly:i,translations:p,value:c})=>{let m=k.useRef(null),[u,b]=k.useState(""),[g,d]=k.useState(false),{wrapper:C,input:R,clearIcon:y,searchIcon:v}=b$2({size:"md"}),{contains:A}=useFilter({sensitivity:"base"}),L=k.useMemo(()=>l.map(s=>({...s,key:s.code})),[l]),T=k.useMemo(()=>L.find(s=>s.key===c),[L,c]),{collection:h,filter:P,set:E}=useListCollection({initialItems:L,itemToString:s=>`${s.label} ${s.code}`,itemToValue:s=>s.key,filter:(s,a,N)=>A(s,a)||A(N.code,a.toUpperCase())});k.useEffect(()=>{E(L);},[L,E]);let x=k.useCallback(s=>{d(s),r?.(s);},[r]),M=k.useCallback(({inputValue:s})=>{let a=s??"";b(a),P(a),m.current?.scrollTo({top:0});},[P]),w=k.useCallback(s=>{x(s),s&&(b(""),P(""));},[P,x]),U=k.useCallback(({itemValue:s})=>{if(!s)return;let a=L.find(N=>N.key===s)?.code;a&&(n(a),x(false));},[L,x,n]),H=useCombobox({collection:h,inputBehavior:"autohighlight",inputValue:u,open:g,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:T?[T.key]:[],onInputValueChange:M,onOpenChange:({open:s})=>{s||x(false);},onSelect:U});return jsx(Combobox.RootProvider,{value:H,children:jsxs(a$9,{open:g,onOpenChange:w,children:[jsx(b$3,{asChild:true,children:jsx("button",{type:"button",className:a$2("relative flex h-full w-19.5 shrink-0 items-center justify-center rounded-l after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:w-px after:content-['']",t?"bg-danger-20 after:bg-input-ring-error after:w-0.5":o||i?"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&&g&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||i,children:T&&jsx(Fn,{code:T.code,label:T.label,codeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",i&&"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:p.searchCountryPlaceholder,className:R()}),!o&&u.length>0&&jsx("button",{type:"button",className:y(),onClick:()=>{H.setInputValue("","clear-trigger");},children:jsx(d$3,{className:"size-4.5"})}),jsx(q,{className:v()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:m,className:a$2("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":h.items.length===0}),children:h.items.length===0?jsx(a$a,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:h.items.map(s=>jsxs(Combobox.Item,{item:s,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(st,{country:s.code,countryName:s.label}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:s.label}),jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:s.code}),jsx(k$1,{className:a$2("ml-auto size-4 shrink-0",s.key===c?"opacity-100":"opacity-0")})]},s.key))})})]})})]})})};var ct=k.forwardRef(({className:e,clearLabel:o,disabled:t,error:n,onChange:r,readOnly:l,type:i="text",value:p,...c},m)=>{let u=k.useRef(null),b=`${p??""}`.length>0,g=!t&&!l&&b,d$1=g||n;k.useImperativeHandle(m,()=>u.current,[]);let C=k.useCallback(y=>{r?.(y.target.value);},[r]),R=k.useCallback(()=>{r?.(""),u.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: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",d$1&&!n&&"pr-10.5",g&&n&&"pr-14",n&&!g&&"pr-10.5",t&&"text-input-text-disabled",e),...c,disabled:t,readOnly:l,value:p,onChange:C,ref:u}),(g||n)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[g&&jsx(a$5,{ariaLabel:o,onClick:R}),n&&jsx(d,{})]})]})});ct.displayName="IdInput";var pt={en:"Clear identification number",es:"Limpiar n\xFAmero de identificaci\xF3n",pt:"Limpar n\xFAmero de identifica\xE7\xE3o"},co={en:wn,es:Hn,pt:Sn},_n=pt.en,Dn=co.en,Bn={es:{clearIdLabel:pt.es,searchCountryPlaceholder:"Buscar..."},pt:{clearIdLabel:pt.pt,searchCountryPlaceholder:"Pesquisar..."}},zn={clearIdLabel:_n,searchCountryPlaceholder:"Search..."},po=()=>getDefaultOptions().locale?.code,uo=e=>Bn[e]??zn,Vn=(e,o)=>(co[o]??Dn)[e]??e,mo=({localeCode:e})=>c$2.map(o=>({code:o,label:Vn(o,e)})).sort((o,t)=>o.label.localeCompare(t.label)),fo=a$6,ho=b$1,go=(e,o)=>{let t=o.trim();return !t||!c$3(e,t).isValid?t:d$2(e,t)};var bo=()=>{},Co=k.forwardRef(({autoComplete:e,className:o,country:t,disabled:n,error:r,helperText:l,id:i,label:p,name:c,onBlur:m,onChange:u=bo,onCountryChange:b=bo,placeholder:g,readOnly:d,required:C,tooltip:R,value:y},v)=>{let[A,L]=k.useState(false),[T,h]=k.useState(y??""),P=k.useId(),E=i??P,x=po(),M=k.useRef(y??"");k.useEffect(()=>{(y??"")!==M.current&&h(y??"");},[y]);let w=k.useMemo(()=>uo(x),[x]),U=k.useMemo(()=>mo({localeCode:x}),[x]),H=k.useMemo(()=>ho(t??"")||g||fo,[t,g]),s=c$1({error:r,disabled:n,readOnly:d}),a=k.useCallback((S,j)=>{let V=go(S,j);M.current=V,u(V);},[u]),N=k.useCallback(S=>{h(S),a(t??"",S);},[t,a]),D=k.useCallback(S=>{b(S),a(S,T);},[T,b,a]);return jsx(je,{disabled:n,error:r,helperText:l,htmlFor:E,label:p,readOnly:d,required:C,tooltip:R,children:jsxs("div",{className:a$2(s.control(),"group/id-field",!r&&!n&&!d&&A&&"after:ring-input-ring-focus after:ring-2",o),children:[jsx(so,{disabled:n,error:r,onChange:D,onOpenChange:L,options:U,readOnly:d,translations:w,value:t}),jsx(ct,{autoComplete:e,clearLabel:w.clearIdLabel,disabled:n,error:r,id:E,name:c,onBlur:m,onChange:N,placeholder:H,readOnly:d,required:C,value:T,ref:v})]})})});Co.displayName="IdField";var Ta=({children:e$2,title:o,titleLines:t=1,description:n,descriptionLines:r=1,StartIcon:l,hasDivider:i=false,disabled:p=false,actionButton:c,isSelected:m=false,className:u,...b})=>jsxs(J,{hasDescription:!!n,disabled:p,hasDivider:i,isSelected:m,...b,className:u,children:[l&&jsx(l,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(ie,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:p}),c&&jsx(Fragment,{children:c.isIcon?jsx(e$1,{...c,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:p??c.disabled}):jsx(e,{...c,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:p??c.disabled})})]});var _a=({title:e,description:o="",descriptionLines:t,hasDivider:n=false,disabled:r=false,checked:l,onCheckedChange:i,className:p,chipStatus:c,chipExpandable:m,...u})=>jsxs(J,{hasDescription:!!o,disabled:r,hasDivider:n,...u,className:a$2("pr-6",p),children:[jsx(c$5,{checked:l,onCheckedChange:i,className:"mr-4 self-center",disabled:r}),jsxs("div",{className:"flex-1",children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsx("p",{className:a$2("line-clamp-1 text-sm leading-[130%] break-all",!!o&&"font-medium"),children:e}),m&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$6,{...m})}),c&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$4,{...c,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 dt={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"},ft={headings:["h1","h2","h3"],textFormat:["bold","italic","underline"],lists:true,indent:true,alignment:["left","center","right","justify"],undoRedo:true};var ht=({readOnly:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>{o.setEditable(!e);},[o,e]),null};var gt=({editorRef:e})=>{let[o]=useLexicalComposerContext();return useEffect(()=>(e.current=o,()=>{e.current===o&&(e.current=null);}),[o,e]),null};var jn={"ql-align-left":"left","ql-align-center":"center","ql-align-right":"right","ql-align-justify":"justify"},Yn={center:"ql-align-center",right:"ql-align-right",justify:"ql-align-justify"},Xn=()=>typeof window<"u"&&typeof window.DOMParser<"u",xo=e=>Xn()?new DOMParser().parseFromString(e,"text/html"):null,Zn=e=>(e??"").replace(/\s+/g," ").trim(),Ct=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},Jn=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=jn[n];r&&(r!=="left"&&(t.style.textAlign=r),t.classList.remove(n));}},er=e=>{let o=e.querySelectorAll("[class*='ql-indent-']");for(let t of Array.from(o)){if(t.tagName==="LI")continue;let n=Ct(t);n>0&&(t.style.paddingInlineStart=`${n*3}em`);}},tr=(e,o)=>{let t=e.getAttribute("data-list");return t==="bullet"?"ul":t==="ordered"?"ol":o},or=e=>{let o=e.cloneNode(true);return o.removeAttribute("data-list"),o.removeAttribute("data-checked"),o.removeAttribute("data-indent"),Ct(o),o},bt=(e,o)=>e.createElement(o),nr=(e,o)=>{let t=Array.from(e.children).filter(c=>c.tagName==="LI");if(t.length===0||!t.some(c=>c.hasAttribute("data-list")?true:Array.from(c.classList).some(m=>/^ql-indent-\d+$/.test(m))))return;let r=[],l=[],i=e.tagName==="UL"?"ul":"ol";for(let c of t){let m=Ct(c),u=tr(c,i),b=or(c);for(;l.length>0&&l[l.length-1].level>m;)l.pop();if(l.length===0){let d=bt(o,u);r.push(d),l.push({level:0,kind:u,listElement:d});}let g=l[l.length-1];for(;g.level<m;){let d=g.listElement.lastElementChild;if(!d||d.tagName!=="LI")break;let C=bt(o,u);d.appendChild(C),g={level:g.level+1,kind:u,listElement:C},l.push(g);}if(g=l[l.length-1],g.kind!==u){let d=bt(o,u);if(l.length===1)r.push(d),l[0]={level:0,kind:u,listElement:d};else {let R=l[l.length-2].listElement.lastElementChild;R&&R.tagName==="LI"?(R.appendChild(d),l[l.length-1]={level:g.level,kind:u,listElement:d}):(r.push(d),l.length=1,l[0]={level:0,kind:u,listElement:d});}g=l[l.length-1];}g.listElement.appendChild(b);}if(r.length===0)return;let p=o.createDocumentFragment();for(let c of r)p.appendChild(c);e.replaceWith(p);},rr=(e,o)=>{let t=Array.from(e.querySelectorAll("ol, ul"));for(let n of t)nr(n,o);},Lo=(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 i of Array.from(r.classList))/^ql-indent-\d+$/.test(i)&&r.classList.remove(i);o>0&&r.classList.add(`ql-indent-${o}`);let l=Array.from(r.children).filter(i=>i.tagName==="UL"||i.tagName==="OL");for(let i of l)Lo(i,o+1);}},lr=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 i of Array.from(n.classList))i.startsWith("ql-align-")&&n.classList.remove(i);let r=n.style.textAlign.trim().toLowerCase(),l=Yn[r];l&&n.classList.add(l);}},be=e=>Zn(e).replace(/>\s+</g,"><").replace(/ /g," "),xt=e=>{let o=e??"";if(!o.trim())return "";let t=xo(o);if(!t)return o;let{body:n}=t;return Jn(n),er(n),rr(n,t),n.innerHTML},Lt=e=>{if(!e.trim())return "";let o=xo(e);if(!o)return e;let{body:t}=o,n=Array.from(t.querySelectorAll("ul, ol"));for(let r of n)Lo(r,0);return lr(t),t.innerHTML};var Ye=e=>{let o="";return e.getEditorState().read(()=>{o=$generateHtmlFromNodes(e,null);}),Lt(o)},dr=(e,o)=>{let t=xt(o);e.update(()=>{let n=$getRoot();if(n.clear(),!t.trim()){n.append($createParagraphNode());return}let l=new DOMParser().parseFromString(t,"text/html"),i=$generateNodesFromDOM(e,l);if(i.length===0){n.append($createParagraphNode());return}n.select(),$insertNodes(i);});},yt=({value:e,isSyncingRef:o})=>{let[t]=useLexicalComposerContext(),n=useRef(null);return useEffect(()=>{let r=e??"";if(n.current!==null&&be(r)===be(n.current))return;let l=Ye(t);be(l)!==be(r)&&(o.current=true,dr(t,r),queueMicrotask(()=>{o.current=false;})),n.current=r;},[t,o,e]),null};var Io=["left","center","right","justify"];var vo=["bold","italic","underline","strikethrough","code"];var jr={bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough",code:"code"},Yr={left:jsx(AlignLeftIcon,{className:"size-4"}),center:jsx(AlignCenterIcon,{className:"size-4"}),right:jsx(AlignRightIcon,{className:"size-4"}),justify:jsx(AlignJustifyIcon,{className:"size-4"})},Xr={left:"Align left",center:"Align center",right:"Align right",justify:"Align justify"},Ne={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:"</>"})},Ee={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Inline code"},Zr=e=>{let o=e.textFormat;return o===false?[]:Array.isArray(o)?vo.filter(t=>o.includes(t)):["bold","italic","underline"]},Jr=e=>{let o=e.alignment;return o===false?[]:Array.isArray(o)?Io.filter(t=>o.includes(t)):["left","center","right","justify"]},el=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()}))]},Ae=()=>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}),Rt=({config:e,className:o})=>{let[t]=useLexicalComposerContext(),n=useId(),[r,l]=useState(false),[i,p]=useState(false),[c,m]=useState(false),[u,b]=useState(false),[g,d]=useState(false),[C,R]=useState(false),[y,v]=useState(false),[A,L]=useState("paragraph"),[T,h]=useState("left"),P=useMemo(()=>Zr(e),[e]),E=useMemo(()=>Jr(e),[e]),x=useMemo(()=>el(e),[e]),M=useCallback(()=>{let s=$getSelection();if(!$isRangeSelection(s))return;m(s.hasFormat("bold")),b(s.hasFormat("italic")),d(s.hasFormat("underline")),R(s.hasFormat("strikethrough")),v(s.hasFormat("code"));let a=s.anchor.getNode(),N=a.getKey()==="root"?a:a.getTopLevelElementOrThrow();if($isListNode(N))L(N.getListType()==="number"?"ol":"ul");else {let S=$findMatchingParent(N,j=>$isListNode(j));$isListNode(S)?L(S.getListType()==="number"?"ol":"ul"):L($isHeadingNode(N)?N.getTag():N.getType());}let D=$isElementNode(N)?N.getFormatType():"";h(D==="center"||D==="right"||D==="justify"?D:"left");},[]);useEffect(()=>mergeRegister(t.registerUpdateListener(({editorState:s})=>{s.read(()=>{M();});}),t.registerCommand(SELECTION_CHANGE_COMMAND,()=>(M(),false),1),t.registerCommand(CAN_UNDO_COMMAND,s=>(l(s),false),1),t.registerCommand(CAN_REDO_COMMAND,s=>(p(s),false),1)),[t,M]);let w=s=>{t.dispatchCommand(FORMAT_TEXT_COMMAND,jr[s]);},U=s=>{t.update(()=>{let a=$getSelection();if($isRangeSelection(a)){if(s==="paragraph"){$setBlocksType(a,()=>$createParagraphNode());return}$setBlocksType(a,()=>$createHeadingNode(s));}});},H=s=>{if(A===(s==="bullet"?"ul":"ol")){t.dispatchCommand(REMOVE_LIST_COMMAND,void 0);return}t.dispatchCommand(s==="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:!i,icon:jsx(RedoIcon,{className:"size-4"})}),jsx(Ae,{})]}),x.length>0&&jsxs(Fragment,{children:[jsx("label",{className:"sr-only",htmlFor:n,children:"Text style"}),jsx("select",{id:n,value:A.startsWith("h")?A:"paragraph",onChange:s=>U(s.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(s=>jsx("option",{value:s.value,children:s.label},s.value))}),jsx(Ae,{})]}),P.length>0&&jsxs(Fragment,{children:[P.includes("bold")&&jsx(K,{label:Ee.bold,onClick:()=>w("bold"),icon:Ne.bold,active:c}),P.includes("italic")&&jsx(K,{label:Ee.italic,onClick:()=>w("italic"),icon:Ne.italic,active:u}),P.includes("underline")&&jsx(K,{label:Ee.underline,onClick:()=>w("underline"),icon:Ne.underline,active:g}),P.includes("strikethrough")&&jsx(K,{label:Ee.strikethrough,onClick:()=>w("strikethrough"),icon:Ne.strikethrough,active:C}),P.includes("code")&&jsx(K,{label:Ee.code,onClick:()=>w("code"),icon:Ne.code,active:y}),jsx(Ae,{})]}),e.lists!==false&&jsxs(Fragment,{children:[jsx(K,{label:"Bulleted list",onClick:()=>H("bullet"),icon:jsx(ListIcon,{className:"size-4"}),active:A==="ul"}),jsx(K,{label:"Numbered list",onClick:()=>H("number"),icon:jsx(ListOrderedIcon,{className:"size-4"}),active:A==="ol"}),jsx(Ae,{})]}),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(Ae,{})]}),E.length>0&&jsx(Fragment,{children:E.map(s=>jsx(K,{label:Xr[s],onClick:()=>t.dispatchCommand(FORMAT_ELEMENT_COMMAND,s),icon:Yr[s],active:T===s},s))})]})};var No=e=>{if(e!==void 0)return typeof e=="number"?`${e}px`:e},hl=forwardRef(({value:e,onChange:o,onBlur:t,onError:n,placeholder:r="Write your content...",readOnly:l=false,showToolbar:i=true,toolbarConfig:p=ft,className:c,editorClassName:m,toolbarClassName:u,autoFocus:b=false,minHeight:g=160,maxHeight:d,error:C=false,errorMessage:R,editorRef:y},v)=>{let A=useRef(false),L=useMemo(()=>({namespace:"SodtrackRichTextEditor",theme:dt,onError:(h,P)=>{if(n){n(h,P);return}console.error("RichTextEditor error",h);},nodes:[HeadingNode,ListNode,ListItemNode]}),[n]),T={minHeight:No(g),maxHeight:No(d),overflowY:d?"auto":void 0};return jsx(LexicalComposer,{initialConfig:L,children:jsxs("div",{className:"w-full",children:[jsxs("div",{ref:v,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",l&&"border-neutral-300 bg-neutral-50 focus-within:ring-0",c),"data-error":C,"data-readonly":l,children:[i&&!l&&jsx(Rt,{config:p,className:u}),jsx(RichTextPlugin,{contentEditable:jsx(ContentEditable,{className:a$2("relative w-full px-4 py-3 text-sm leading-[142%] text-neutral-900 outline-none","[&_h1]:mt-2 [&_h1]:mb-2 [&_h2]:mt-2 [&_h2]:mb-2 [&_h3]:mt-2 [&_h3]:mb-2","[&_li]:my-1 [&_ol]:my-2 [&_ul]:my-2","[&_a]:text-primary-700 [&_a]:underline",l&&"cursor-default",m),style:T,onBlur:t,"aria-invalid":C}),placeholder:l?null:jsx("div",{className:"pointer-events-none absolute top-3 left-4 text-sm text-neutral-500",children:r}),ErrorBoundary:LexicalErrorBoundary}),jsx(HistoryPlugin,{}),jsx(ListPlugin,{}),jsx(ht,{readOnly:l}),jsx(yt,{value:e,isSyncingRef:A}),b&&!l&&jsx(AutoFocusPlugin,{}),y&&jsx(gt,{editorRef:y}),jsx(OnChangePlugin,{ignoreSelectionChange:true,onChange:(h,P)=>{!o||A.current||o(Ye(P),h);}})]}),C&&R&&jsx("p",{className:"text-error-500 mt-1 text-xs leading-[133%]",children:R})]})})});hl.displayName="RichTextEditor";var Ao={en:wn,es:Hn,pt:Sn},vl={es:{clearPhoneNumberLabel:"Eliminar n\xFAmero de tel\xE9fono",searchCountryPlaceholder:"Buscar..."},pt:{clearPhoneNumberLabel:"Limpar n\xFAmero de telefone",searchCountryPlaceholder:"Pesquisar..."}},Rl={clearPhoneNumberLabel:"Clear phone number",searchCountryPlaceholder:"Search..."},Pl=Ao.en,Mo="9 1234 5678",Pt="ZZ",Oo=()=>{},Xe=e=>vl[e]??Rl,Fo=e=>Ao[e]??Pl,ko=e=>{if(e)try{let o=parsePhoneNumber(e)?.country;return !o||!j(o)?void 0:o}catch{return}},wo=e=>{if(e)return getExampleNumber(e,Cl)?.formatNational()},Ze=e=>e??Pt,Je=()=>getDefaultOptions().locale?.code;var Ml=({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}`})]}),Ho=({className:e,disabled:o,error:t,iconComponent:n,onChange:r,onOpenChange:l,options:i,readOnly:p,translations:c,value:m})=>{let u=k.useRef(null),[b,g]=k.useState(""),[d,C]=k.useState(false),{wrapper:R,input:y,clearIcon:v,searchIcon:A}=b$2({size:"md"}),{contains:L}=useFilter({sensitivity:"base"}),T=k.useMemo(()=>i.filter(a=>a.value!==void 0&&j(a.value)).map(a=>({callingCode:a.value?getCountryCallingCode(a.value):void 0,country:a.value,key:Ze(a.value),label:a.label})),[i]),h=k.useMemo(()=>T.find(a=>a.key===Ze(m)),[T,m]),{collection:P,filter:E,set:x}=useListCollection({initialItems:T,itemToString:a=>a.callingCode?`${a.label} +${a.callingCode}`:a.label,itemToValue:a=>a.key,filter:(a,N,D)=>{let S=N.trim().replace(/^\+/,"");return L(a,N)||(D.country?L(D.country,N.toUpperCase()):false)||(D.callingCode?L(D.callingCode,S)||L(`+${D.callingCode}`,N):false)}});k.useEffect(()=>{x(T);},[T,x]);let M=k.useCallback(a=>{C(a),l?.(a);},[l]),w=k.useCallback(({inputValue:a})=>{let N=a??"";g(N),E(N),u.current?.scrollTo({top:0});},[E]),U=k.useCallback(a=>{M(a),a&&(g(""),E(""));},[E,M]),H=k.useCallback(({itemValue:a})=>{if(!a||a===Pt){r(void 0),M(false);return}j(a)&&(r(a),M(false));},[M,r]),s=useCombobox({collection:P,inputBehavior:"autohighlight",inputValue:b,open:d,openOnChange:false,openOnClick:false,selectionBehavior:"preserve",value:h?[h.key]:[],onInputValueChange:w,onOpenChange:({open:a})=>{a||M(false);},onSelect:H});return jsx(Combobox.RootProvider,{value:s,children:jsxs(a$9,{open:d,onOpenChange:U,children:[jsx(b$3,{asChild:true,children:jsx("button",{type:"button",className:a$2("relative flex h-full w-19.5 shrink-0 items-center justify-center rounded-l after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:w-px after:content-['']",t?"bg-danger-20 after:bg-input-ring-error after:w-0.5":o||p?"after:bg-input-ring-disabled bg-neutral-200":"group-focus-within/phone:after:bg-input-ring-focus after:bg-input-ring bg-neutral-200 group-focus-within/phone:after:w-0.5",!t&&d&&"after:bg-input-ring-focus after:w-0.5",e),disabled:o||p,children:h&&jsx(Ml,{Icon:n,callingCode:h.callingCode,country:h.country,countryName:h.label,callingCodeClassName:a$2(t?"text-danger-600":void 0,o&&"text-input-text-disabled",p&&"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:R({className:"m-1 mb-0"}),children:[jsx(Combobox.Input,{autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",placeholder:c.searchCountryPlaceholder,className:y()}),!o&&b.length>0&&jsx("button",{type:"button",className:v(),onClick:()=>{s.setInputValue("","clear-trigger");},children:jsx(d$3,{className:"size-4.5"})}),jsx(q,{className:A()})]}),jsx(a$1,{className:"mt-2"})]}),jsx(Combobox.List,{ref:u,className:a$2("h-72 overflow-auto outline-none",{"flex flex-col items-center justify-center":P.items.length===0}),children:P.items.length===0?jsx(a$a,{size:"sm",variant:"not-found"}):jsx(Combobox.ItemGroup,{children:P.items.map(a=>jsxs(Combobox.Item,{item:a,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:a.country,label:a.label})}),jsx(Combobox.ItemText,{className:"min-w-0 flex-1 truncate text-sm leading-[143%] font-medium",children:a.label}),a.callingCode&&jsx("span",{className:"shrink-0 text-sm text-neutral-600",children:`+${a.callingCode}`}),jsx(k$1,{className:a$2("ml-auto size-4 shrink-0",a.key===Ze(m)?"opacity-100":"opacity-0")})]},a.key))})})]})})]})})};var _o=({className:e,country:o,countryName:t})=>{let n=En[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 Nt=k.forwardRef(({className:e,disabled:o,error:t,onChange:n,readOnly:r,type:l,value:i,...p},c)=>{let m=Je(),u=k.useMemo(()=>Xe(m),[m]),b=k.useRef(null),d$1=!o&&!r&&!!i,C=d$1||t;k.useImperativeHandle(c,()=>b.current,[]);let R=k.useCallback(()=>{let y=b.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: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",C&&!t&&"pr-10.5",d$1&&t&&"pr-14",t&&!d$1&&"pr-10.5",o&&"text-input-text-disabled",e),...p,disabled:o,readOnly:r,value:i,onChange:n,ref:b}),(d$1||t)&&jsxs("div",{className:"absolute inset-y-0 right-3 z-10 flex items-center gap-1",children:[d$1&&jsx(a$5,{ariaLabel:u.clearPhoneNumberLabel,onClick:R}),t&&jsx(d,{})]})]})});Nt.displayName="PhoneNumberInputComponent";var kl=Fl,zo=k.forwardRef(({className:e,defaultCountry:o,disabled:t,error:n,helperText:r,id:l,label:i,onChange:p=Oo,placeholder:c,readOnly:m,required:u,tooltip:b,value:g,...d},C)=>{let[R,y]=k.useState(false),[v,A]=k.useState(()=>ko(g)??o),L=k.useId(),T=l??L,h=Je(),P=k.useMemo(()=>Xe(h),[h]),E=k.useMemo(()=>Fo(h),[h]),x=k.useMemo(()=>wo(v)??c??Mo,[c,v]),M=c$1({error:n,disabled:t,readOnly:m}),w=a$2(M.control(),"group/phone",!n&&!t&&!m&&R&&"after:ring-input-ring-focus after:ring-2",e),U=k.useCallback(H=>{A(H);},[]);return jsx(je,{disabled:t,error:n,helperText:r,htmlFor:T,label:i,readOnly:m,required:u,tooltip:b,children:jsx(kl,{...d,className:w,ref:C,countrySelectComponent:Ho,countrySelectProps:{error:n,onOpenChange:y,translations:P},defaultCountry:o,disabled:t,flagComponent:_o,id:T,initialValueFormat:"national",inputComponent:Nt,labels:E,numberInputProps:{error:n,placeholder:x},readOnly:m,required:u,value:g,onChange:p,onCountryChange:U})})});zo.displayName="PhoneInput";var wl=({children:e,hasDescription:o=false,disabled:t=false,hasDivider:n=false,className:r,isSelected:l,onClick:i,...p})=>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",!!i?"cursor-pointer":"cursor-default"),l&&"bg-primary-200",r),onClick:m=>{t||i?.(m);},...p,children:e}),n&&jsx(a$1,{})]}),J=wl;var vm=({children:e,title:o,titleLines:t,description:n="",descriptionLines:r,startIcon:l,endIcon:i,hasDivider:p=false,disabled:c=false,isSelected:m=false,className:u,...b})=>jsxs(J,{hasDescription:!!n,disabled:c,hasDivider:p,className:u,isSelected:m,...b,children:[l&&k__default.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(ie,{title:o,titleLines:t,description:n,descriptionLines:r,disabled:c}),i&&k__default.cloneElement(i,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{ei as a,vm as b,mi as c,yi as d,As as e,Co as f,Ta as g,_a as h,dt as i,ft as j,be as k,xt as l,Lt as m,hl as n,zo as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ERROR_SCREEN_VARIANTS,b as ErrorScreen}from'../chunk-
|
|
1
|
+
export{a as ERROR_SCREEN_VARIANTS,b as ErrorScreen}from'../chunk-3IDC3JMI.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-QYA5ZUUN.js';import'../chunk-C7TLKKPT.js';import'../chunk-P6B33GL6.js';import'../chunk-CQI4KDR4.js';
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{e as AutocompleteMultiple_old,a as Autocomplete_old,f as IdField,c as ListItemArrow,g as ListItemButton,d as ListItemCheckbox,h as ListItemCheckboxLeft,b as ListItem_old,o as PhoneInput,n as RichTextEditor,m as convertHtmlToQuillCompatible,j as defaultToolbarConfig,i as lexicalTheme,k as normalizeHtmlForComparison,l as normalizeQuillHtmlForLexical}from'../chunk-
|
|
1
|
+
export{e as AutocompleteMultiple_old,a as Autocomplete_old,f as IdField,c as ListItemArrow,g as ListItemButton,d as ListItemCheckbox,h as ListItemCheckboxLeft,b as ListItem_old,o as PhoneInput,n as RichTextEditor,m as convertHtmlToQuillCompatible,j as defaultToolbarConfig,i as lexicalTheme,k as normalizeHtmlForComparison,l as normalizeQuillHtmlForLexical}from'../chunk-UYWLRYKF.js';export{a as ToastTypes,c as Toaster,b as toast}from'../chunk-IYTVYPN7.js';export{e as TrackerItem,c as TrackerItemExpandableContent,d as TrackerItemFooter,b as TrackerItemHeader,a as useTrackerItem}from'../chunk-PSZLEMPO.js';export{c as getSelectedCount,b as getSelectedIds,a as syncSelectionDataMap,d as useRowSelectionWithData}from'../chunk-ABJHG7HB.js';export{a as TextField}from'../chunk-VOCTSNLI.js';export{a as Textarea}from'../chunk-MXMI6REK.js';export{a as TextareaSizes_old,b as Textarea_old}from'../chunk-SIA2GA6D.js';export{a as TimePicker}from'../chunk-KH7NFG7J.js';export{a as TimePicker_old}from'../chunk-2SI3KBFZ.js';export{c as Sidebar,e as SidebarBody,f as SidebarFooter,d as SidebarHeader,b as SidebarProvider,a as useSidebar}from'../chunk-R7432E5X.js';export{a as SignaturePad}from'../chunk-ITP3F7Z5.js';export{b as SnackbarProvider,a as snackbar}from'../chunk-XGAVQZF7.js';import'../chunk-ETTGD5WR.js';export{c as Tabs,f as TabsContent,d as TabsList,b as TabsSizes,e as TabsTrigger,a as TabsVariants}from'../chunk-4KCJKXII.js';export{c as PopoverContent_old,b as PopoverTrigger_old,a as Popover_old}from'../chunk-XNBXUXHQ.js';export{b as Rating,a as RatingSizes}from'../chunk-6NA4NA34.js';export{a as ScrollArea,b as ScrollBar}from'../chunk-5T72Q62I.js';export{a as SelectSkeleton}from'../chunk-VMZMRFIL.js';export{c as Select,b as SelectSizeDefault,a as SelectSizes}from'../chunk-BVK3D7GO.js';export{a as Select_old}from'../chunk-G7NJYNJA.js';export{a as LocaleProvider}from'../chunk-JIBSBLNV.js';export{a as NoteCard}from'../chunk-JMD7PFXG.js';export{a as NumberFieldSkeleton}from'../chunk-P5FV5ZGY.js';export{a as PhoneInputSkeleton}from'../chunk-FURFUBTJ.js';export{a as Dialog,i as DialogActionButton,f as DialogBody,j as DialogCloseButton,c as DialogContent,h as DialogDescription,k as DialogExtraButton,e as DialogFooter,d as DialogHeader,g as DialogTitle,b as DialogTrigger}from'../chunk-N5EQJ7SA.js';export{a as DrawerBar}from'../chunk-W3W45DLY.js';export{c as SearchBar,a as SearchBarSizeOptions,b as searchBarStyles}from'../chunk-PTS2JSMQ.js';export{a as Drawer,g as DrawerBody,h as DrawerCloseTrigger,d as DrawerContent,f as DrawerFooter,e as DrawerHeader,c as DrawerSizes,b as DrawerTrigger}from'../chunk-CN7PQ4FN.js';export{c as Dropzone,a as DropzoneAcceptedFileTypes,b as DropzoneSizes}from'../chunk-MDVOZB55.js';export{a as ERROR_SCREEN_VARIANTS,b as ErrorScreen}from'../chunk-3IDC3JMI.js';export{c as ChoiceChips,a as ChoiceChipsOrientations,b as disableUnselected}from'../chunk-ABFK5YXW.js';export{e as Chip,d as ChipDefaults,c as ChipSizes,b as ChipTones,a as ChipVariants}from'../chunk-SRCJQWFE.js';export{d as BUSINESS_COUNTRY_CODES,h as BusinessCountryEnum,c as ID_COUNTRY_CODES,b as ISO_COUNTRY_CODES,g as IdCountryEnum,e as IsoCountryEnum,a as PHONE_COUNTRY_CODES,f as PhoneCountryEnum,l as isBusinessCountryCode,k as isIdCountryCode,i as isIsoCountryCode,j as isPhoneCountryCode}from'../chunk-3X2MEX7P.js';export{a as DataTable}from'../chunk-XX24NRCV.js';export{b as Table,d as TableBody,e as TableBodyRow,i as TableCell,a as TableContainer,h as TableHead,c as TableHeader,g as TableHeaderRow,f as TableNoResults,j as TablePagination}from'../chunk-6M7NDF3Y.js';export{a as Popover,c as PopoverContent,b as PopoverTrigger}from'../chunk-GTVHYHF4.js';export{a as DatePickerPopover}from'../chunk-YLRL7MNJ.js';export{a as DatePicker}from'../chunk-WKWLUWGC.js';export{a as DatePicker_old}from'../chunk-KOL4GQKT.js';import'../chunk-GFVJRSZI.js';export{a as TextField_old}from'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';export{d as ChipContext,c as ChipContextColors,b as ChipContextSizes,a as ChipContextVariants}from'../chunk-JA7GAJ6P.js';export{c as ChipFormComplementary,a as ChipFormComplementaryVariants,b as ChipFormComplementaryVariantsClassNames}from'../chunk-QONM4Q4J.js';export{d as ChipForm,c as ChipFormSizes,b as ChipFormTypes,a as ChipFormVariants}from'../chunk-3HZUH4JJ.js';export{c as ChipStatusComplementary,b as ChipStatusComplementarySizes,a as ChipStatusComplementaryVariants}from'../chunk-AUMOOT6L.js';export{a as ChipStatusTable}from'../chunk-Y73ZUBRE.js';export{d as ButtonMenu,a as ButtonMenuSizes,c as ButtonMenuTones,b as ButtonMenuWeights}from'../chunk-MIB7SXN7.js';export{d as Calendar,a as CalendarProvider,c as parseDate,b as useCalendar}from'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';export{a as Calendar_old}from'../chunk-H2ANC6ZE.js';export{d as CardExpandable,b as CardExpandableContent,c as CardExpandableFixedContent,a as CardExpandableHeader}from'../chunk-K72UVWJI.js';export{c as ChipExpandable,b as ChipExpandableTypes,a as ChipExpandableVariants}from'../chunk-JYNJHAGL.js';export{a as CardForm,c as CardFormBody,d as CardFormFooter,b as CardFormHeader}from'../chunk-YICVRPFF.js';export{j as Carousel,j as CarouselComponent,b as CarouselControl,f as CarouselIndicator,e as CarouselIndicatorGroup,h as CarouselItem,g as CarouselItemGroup,d as CarouselNextTrigger,c as CarouselPrevTrigger,a as CarouselRoot,i as CarouselViewport}from'../chunk-DHFR2KLQ.js';export{a as BadgeStatusSkeleton}from'../chunk-PIMSGQMD.js';export{d as ButtonActive,a as ButtonActiveSizes,c as ButtonActiveTones,b as ButtonActiveVariants}from'../chunk-T6OV5HAU.js';export{a as Menu}from'../chunk-UFHP4YW6.js';export{b as ListItem,a as useListItemDisabled}from'../chunk-SA2QGT2P.js';export{c as RadioGroup,d as RadioGroupItem,a as RadioGroupOrientation,b as radioStyles}from'../chunk-EOAMWW2A.js';export{b as NumberField,a as numberFieldFormatOptions}from'../chunk-VSYTVK2K.js';export{a as BadgeStatus}from'../chunk-UIZFLYFP.js';export{a as AutocompleteMultipleSkeleton}from'../chunk-N6BWYHOE.js';export{a as AutocompleteMultiple}from'../chunk-H2FL7JBS.js';export{d as ChipInput,b as ChipInputColors,a as ChipInputSizes,c as ChipInputVariants}from'../chunk-W5BOTULK.js';export{a as AutocompleteSkeleton}from'../chunk-P7UDZRK2.js';export{c as Autocomplete,b as AutocompleteSizeDefault,a as AutocompleteSizes}from'../chunk-M2AHJOGD.js';export{a as EmptyState}from'../chunk-NLCRET6U.js';import'../chunk-FHABUQAH.js';import'../chunk-6RJGGI5M.js';import'../chunk-MITXGKC5.js';import'../chunk-TW4CJXQY.js';import'../chunk-VIMWKUML.js';export{a as FormLabel}from'../chunk-DYXLO45D.js';export{b as Avatar,a as AvatarSizes}from'../chunk-GB2SAYAL.js';export{a as BadgeCategorySkeleton}from'../chunk-RQQJYDAY.js';export{a as BadgeExpandableSkeleton}from'../chunk-DL3P7FK4.js';export{a as Skeleton}from'../chunk-KTD2GEB6.js';import'../chunk-NYURVOJI.js';import'../chunk-ASI5GI52.js';export{b as AccordionForm,e as AccordionFormContent,c as AccordionFormItem,a as AccordionFormSizes,d as AccordionFormTrigger}from'../chunk-OUDUDDZO.js';export{c as Accordion,g as AccordionContent,d as AccordionItem,a as AccordionPrimitive,b as AccordionSizes,f as AccordionTrigger,e as AccordionTriggerEmpty}from'../chunk-JV7WH6MZ.js';export{d as ChipStatus,b as ChipStatusSizes,c as ChipStatusTypes,a as ChipStatusVariants}from'../chunk-MP4CHZ2K.js';export{a as Badge}from'../chunk-R6NIURLZ.js';export{a as AlertDialog,f as AlertDialogActionButton,m as AlertDialogBody,g as AlertDialogCloseButton,e as AlertDialogContent,l as AlertDialogDescription,h as AlertDialogExtraButton,j as AlertDialogFooter,i as AlertDialogHeader,d as AlertDialogOverlay,c as AlertDialogPortal,k as AlertDialogTitle,b as AlertDialogTrigger}from'../chunk-FCW3THVC.js';export{a as Divider,b as Separator}from'../chunk-AWRP67K4.js';export{a as AlertMessage}from'../chunk-5M57ML72.js';export{a as AttachmentCard}from'../chunk-KYHCOJJH.js';export{d as CardBasic,b as CardBasicBody,c as CardBasicFooter,a as CardBasicHeader}from'../chunk-WRFEJ6VS.js';export{d as Switch,a as SwitchSizes,b as SwitchTypes,c as SwitchVariants}from'../chunk-7JM2X4UD.js';export{c as Checkbox,a as CheckboxCheckedStates,b as checkboxStyles}from'../chunk-ZCMXCZC2.js';export{a as BadgeExpandable}from'../chunk-JW7HS6NX.js';export{a as Tooltip}from'../chunk-HIULYFIC.js';export{d as BadgeCategory,a as BadgeCategoryColors,c as BadgeCategorySizes,b as BadgeCategoryVariants}from'../chunk-YFDUDY6Y.js';export{e as IconButton,d as IconButtonShapes,a as IconButtonSizes,c as IconButtonTones,b as IconButtonVariants}from'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';export{e as Button,a as ButtonSizes,c as ButtonTones,b as ButtonVariants,d as buttonStyles}from'../chunk-QYA5ZUUN.js';export{c as Spinner,a as SpinnerSizes,b as SpinnerTones}from'../chunk-C7TLKKPT.js';export{a as BadgeNumber}from'../chunk-P6B33GL6.js';import'../chunk-CQI4KDR4.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as ListItemArrow}from'../chunk-
|
|
1
|
+
export{c as ListItemArrow}from'../chunk-UYWLRYKF.js';import'../chunk-IYTVYPN7.js';import'../chunk-PSZLEMPO.js';import'../chunk-ABJHG7HB.js';import'../chunk-VOCTSNLI.js';import'../chunk-MXMI6REK.js';import'../chunk-SIA2GA6D.js';import'../chunk-KH7NFG7J.js';import'../chunk-2SI3KBFZ.js';import'../chunk-R7432E5X.js';import'../chunk-ITP3F7Z5.js';import'../chunk-XGAVQZF7.js';import'../chunk-ETTGD5WR.js';import'../chunk-4KCJKXII.js';import'../chunk-XNBXUXHQ.js';import'../chunk-6NA4NA34.js';import'../chunk-5T72Q62I.js';import'../chunk-VMZMRFIL.js';import'../chunk-BVK3D7GO.js';import'../chunk-G7NJYNJA.js';import'../chunk-JIBSBLNV.js';import'../chunk-JMD7PFXG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-N5EQJ7SA.js';import'../chunk-W3W45DLY.js';import'../chunk-PTS2JSMQ.js';import'../chunk-CN7PQ4FN.js';import'../chunk-MDVOZB55.js';import'../chunk-3IDC3JMI.js';import'../chunk-ABFK5YXW.js';import'../chunk-SRCJQWFE.js';import'../chunk-3X2MEX7P.js';import'../chunk-XX24NRCV.js';import'../chunk-6M7NDF3Y.js';import'../chunk-GTVHYHF4.js';import'../chunk-YLRL7MNJ.js';import'../chunk-WKWLUWGC.js';import'../chunk-KOL4GQKT.js';import'../chunk-GFVJRSZI.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JA7GAJ6P.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-MIB7SXN7.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-K72UVWJI.js';import'../chunk-JYNJHAGL.js';import'../chunk-YICVRPFF.js';import'../chunk-DHFR2KLQ.js';import'../chunk-PIMSGQMD.js';import'../chunk-T6OV5HAU.js';import'../chunk-UFHP4YW6.js';import'../chunk-SA2QGT2P.js';import'../chunk-EOAMWW2A.js';import'../chunk-VSYTVK2K.js';import'../chunk-UIZFLYFP.js';import'../chunk-N6BWYHOE.js';import'../chunk-H2FL7JBS.js';import'../chunk-W5BOTULK.js';import'../chunk-P7UDZRK2.js';import'../chunk-M2AHJOGD.js';import'../chunk-NLCRET6U.js';import'../chunk-FHABUQAH.js';import'../chunk-6RJGGI5M.js';import'../chunk-MITXGKC5.js';import'../chunk-TW4CJXQY.js';import'../chunk-VIMWKUML.js';import'../chunk-DYXLO45D.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-KTD2GEB6.js';import'../chunk-NYURVOJI.js';import'../chunk-ASI5GI52.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-FCW3THVC.js';import'../chunk-AWRP67K4.js';import'../chunk-5M57ML72.js';import'../chunk-KYHCOJJH.js';import'../chunk-WRFEJ6VS.js';import'../chunk-7JM2X4UD.js';import'../chunk-ZCMXCZC2.js';import'../chunk-JW7HS6NX.js';import'../chunk-HIULYFIC.js';import'../chunk-YFDUDY6Y.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-QYA5ZUUN.js';import'../chunk-C7TLKKPT.js';import'../chunk-P6B33GL6.js';import'../chunk-CQI4KDR4.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as ListItemButton}from'../chunk-
|
|
1
|
+
export{g as ListItemButton}from'../chunk-UYWLRYKF.js';import'../chunk-IYTVYPN7.js';import'../chunk-PSZLEMPO.js';import'../chunk-ABJHG7HB.js';import'../chunk-VOCTSNLI.js';import'../chunk-MXMI6REK.js';import'../chunk-SIA2GA6D.js';import'../chunk-KH7NFG7J.js';import'../chunk-2SI3KBFZ.js';import'../chunk-R7432E5X.js';import'../chunk-ITP3F7Z5.js';import'../chunk-XGAVQZF7.js';import'../chunk-ETTGD5WR.js';import'../chunk-4KCJKXII.js';import'../chunk-XNBXUXHQ.js';import'../chunk-6NA4NA34.js';import'../chunk-5T72Q62I.js';import'../chunk-VMZMRFIL.js';import'../chunk-BVK3D7GO.js';import'../chunk-G7NJYNJA.js';import'../chunk-JIBSBLNV.js';import'../chunk-JMD7PFXG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-N5EQJ7SA.js';import'../chunk-W3W45DLY.js';import'../chunk-PTS2JSMQ.js';import'../chunk-CN7PQ4FN.js';import'../chunk-MDVOZB55.js';import'../chunk-3IDC3JMI.js';import'../chunk-ABFK5YXW.js';import'../chunk-SRCJQWFE.js';import'../chunk-3X2MEX7P.js';import'../chunk-XX24NRCV.js';import'../chunk-6M7NDF3Y.js';import'../chunk-GTVHYHF4.js';import'../chunk-YLRL7MNJ.js';import'../chunk-WKWLUWGC.js';import'../chunk-KOL4GQKT.js';import'../chunk-GFVJRSZI.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JA7GAJ6P.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-MIB7SXN7.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-K72UVWJI.js';import'../chunk-JYNJHAGL.js';import'../chunk-YICVRPFF.js';import'../chunk-DHFR2KLQ.js';import'../chunk-PIMSGQMD.js';import'../chunk-T6OV5HAU.js';import'../chunk-UFHP4YW6.js';import'../chunk-SA2QGT2P.js';import'../chunk-EOAMWW2A.js';import'../chunk-VSYTVK2K.js';import'../chunk-UIZFLYFP.js';import'../chunk-N6BWYHOE.js';import'../chunk-H2FL7JBS.js';import'../chunk-W5BOTULK.js';import'../chunk-P7UDZRK2.js';import'../chunk-M2AHJOGD.js';import'../chunk-NLCRET6U.js';import'../chunk-FHABUQAH.js';import'../chunk-6RJGGI5M.js';import'../chunk-MITXGKC5.js';import'../chunk-TW4CJXQY.js';import'../chunk-VIMWKUML.js';import'../chunk-DYXLO45D.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-KTD2GEB6.js';import'../chunk-NYURVOJI.js';import'../chunk-ASI5GI52.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-FCW3THVC.js';import'../chunk-AWRP67K4.js';import'../chunk-5M57ML72.js';import'../chunk-KYHCOJJH.js';import'../chunk-WRFEJ6VS.js';import'../chunk-7JM2X4UD.js';import'../chunk-ZCMXCZC2.js';import'../chunk-JW7HS6NX.js';import'../chunk-HIULYFIC.js';import'../chunk-YFDUDY6Y.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-QYA5ZUUN.js';import'../chunk-C7TLKKPT.js';import'../chunk-P6B33GL6.js';import'../chunk-CQI4KDR4.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{h as ListItemCheckboxLeft}from'../chunk-
|
|
1
|
+
export{h as ListItemCheckboxLeft}from'../chunk-UYWLRYKF.js';import'../chunk-IYTVYPN7.js';import'../chunk-PSZLEMPO.js';import'../chunk-ABJHG7HB.js';import'../chunk-VOCTSNLI.js';import'../chunk-MXMI6REK.js';import'../chunk-SIA2GA6D.js';import'../chunk-KH7NFG7J.js';import'../chunk-2SI3KBFZ.js';import'../chunk-R7432E5X.js';import'../chunk-ITP3F7Z5.js';import'../chunk-XGAVQZF7.js';import'../chunk-ETTGD5WR.js';import'../chunk-4KCJKXII.js';import'../chunk-XNBXUXHQ.js';import'../chunk-6NA4NA34.js';import'../chunk-5T72Q62I.js';import'../chunk-VMZMRFIL.js';import'../chunk-BVK3D7GO.js';import'../chunk-G7NJYNJA.js';import'../chunk-JIBSBLNV.js';import'../chunk-JMD7PFXG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-N5EQJ7SA.js';import'../chunk-W3W45DLY.js';import'../chunk-PTS2JSMQ.js';import'../chunk-CN7PQ4FN.js';import'../chunk-MDVOZB55.js';import'../chunk-3IDC3JMI.js';import'../chunk-ABFK5YXW.js';import'../chunk-SRCJQWFE.js';import'../chunk-3X2MEX7P.js';import'../chunk-XX24NRCV.js';import'../chunk-6M7NDF3Y.js';import'../chunk-GTVHYHF4.js';import'../chunk-YLRL7MNJ.js';import'../chunk-WKWLUWGC.js';import'../chunk-KOL4GQKT.js';import'../chunk-GFVJRSZI.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JA7GAJ6P.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-MIB7SXN7.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-K72UVWJI.js';import'../chunk-JYNJHAGL.js';import'../chunk-YICVRPFF.js';import'../chunk-DHFR2KLQ.js';import'../chunk-PIMSGQMD.js';import'../chunk-T6OV5HAU.js';import'../chunk-UFHP4YW6.js';import'../chunk-SA2QGT2P.js';import'../chunk-EOAMWW2A.js';import'../chunk-VSYTVK2K.js';import'../chunk-UIZFLYFP.js';import'../chunk-N6BWYHOE.js';import'../chunk-H2FL7JBS.js';import'../chunk-W5BOTULK.js';import'../chunk-P7UDZRK2.js';import'../chunk-M2AHJOGD.js';import'../chunk-NLCRET6U.js';import'../chunk-FHABUQAH.js';import'../chunk-6RJGGI5M.js';import'../chunk-MITXGKC5.js';import'../chunk-TW4CJXQY.js';import'../chunk-VIMWKUML.js';import'../chunk-DYXLO45D.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-KTD2GEB6.js';import'../chunk-NYURVOJI.js';import'../chunk-ASI5GI52.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-FCW3THVC.js';import'../chunk-AWRP67K4.js';import'../chunk-5M57ML72.js';import'../chunk-KYHCOJJH.js';import'../chunk-WRFEJ6VS.js';import'../chunk-7JM2X4UD.js';import'../chunk-ZCMXCZC2.js';import'../chunk-JW7HS6NX.js';import'../chunk-HIULYFIC.js';import'../chunk-YFDUDY6Y.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-QYA5ZUUN.js';import'../chunk-C7TLKKPT.js';import'../chunk-P6B33GL6.js';import'../chunk-CQI4KDR4.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as ListItemCheckbox}from'../chunk-
|
|
1
|
+
export{d as ListItemCheckbox}from'../chunk-UYWLRYKF.js';import'../chunk-IYTVYPN7.js';import'../chunk-PSZLEMPO.js';import'../chunk-ABJHG7HB.js';import'../chunk-VOCTSNLI.js';import'../chunk-MXMI6REK.js';import'../chunk-SIA2GA6D.js';import'../chunk-KH7NFG7J.js';import'../chunk-2SI3KBFZ.js';import'../chunk-R7432E5X.js';import'../chunk-ITP3F7Z5.js';import'../chunk-XGAVQZF7.js';import'../chunk-ETTGD5WR.js';import'../chunk-4KCJKXII.js';import'../chunk-XNBXUXHQ.js';import'../chunk-6NA4NA34.js';import'../chunk-5T72Q62I.js';import'../chunk-VMZMRFIL.js';import'../chunk-BVK3D7GO.js';import'../chunk-G7NJYNJA.js';import'../chunk-JIBSBLNV.js';import'../chunk-JMD7PFXG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-N5EQJ7SA.js';import'../chunk-W3W45DLY.js';import'../chunk-PTS2JSMQ.js';import'../chunk-CN7PQ4FN.js';import'../chunk-MDVOZB55.js';import'../chunk-3IDC3JMI.js';import'../chunk-ABFK5YXW.js';import'../chunk-SRCJQWFE.js';import'../chunk-3X2MEX7P.js';import'../chunk-XX24NRCV.js';import'../chunk-6M7NDF3Y.js';import'../chunk-GTVHYHF4.js';import'../chunk-YLRL7MNJ.js';import'../chunk-WKWLUWGC.js';import'../chunk-KOL4GQKT.js';import'../chunk-GFVJRSZI.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JA7GAJ6P.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-MIB7SXN7.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-K72UVWJI.js';import'../chunk-JYNJHAGL.js';import'../chunk-YICVRPFF.js';import'../chunk-DHFR2KLQ.js';import'../chunk-PIMSGQMD.js';import'../chunk-T6OV5HAU.js';import'../chunk-UFHP4YW6.js';import'../chunk-SA2QGT2P.js';import'../chunk-EOAMWW2A.js';import'../chunk-VSYTVK2K.js';import'../chunk-UIZFLYFP.js';import'../chunk-N6BWYHOE.js';import'../chunk-H2FL7JBS.js';import'../chunk-W5BOTULK.js';import'../chunk-P7UDZRK2.js';import'../chunk-M2AHJOGD.js';import'../chunk-NLCRET6U.js';import'../chunk-FHABUQAH.js';import'../chunk-6RJGGI5M.js';import'../chunk-MITXGKC5.js';import'../chunk-TW4CJXQY.js';import'../chunk-VIMWKUML.js';import'../chunk-DYXLO45D.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-KTD2GEB6.js';import'../chunk-NYURVOJI.js';import'../chunk-ASI5GI52.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-FCW3THVC.js';import'../chunk-AWRP67K4.js';import'../chunk-5M57ML72.js';import'../chunk-KYHCOJJH.js';import'../chunk-WRFEJ6VS.js';import'../chunk-7JM2X4UD.js';import'../chunk-ZCMXCZC2.js';import'../chunk-JW7HS6NX.js';import'../chunk-HIULYFIC.js';import'../chunk-YFDUDY6Y.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-QYA5ZUUN.js';import'../chunk-C7TLKKPT.js';import'../chunk-P6B33GL6.js';import'../chunk-CQI4KDR4.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as ListItem_old}from'../chunk-
|
|
1
|
+
export{b as ListItem_old}from'../chunk-UYWLRYKF.js';import'../chunk-IYTVYPN7.js';import'../chunk-PSZLEMPO.js';import'../chunk-ABJHG7HB.js';import'../chunk-VOCTSNLI.js';import'../chunk-MXMI6REK.js';import'../chunk-SIA2GA6D.js';import'../chunk-KH7NFG7J.js';import'../chunk-2SI3KBFZ.js';import'../chunk-R7432E5X.js';import'../chunk-ITP3F7Z5.js';import'../chunk-XGAVQZF7.js';import'../chunk-ETTGD5WR.js';import'../chunk-4KCJKXII.js';import'../chunk-XNBXUXHQ.js';import'../chunk-6NA4NA34.js';import'../chunk-5T72Q62I.js';import'../chunk-VMZMRFIL.js';import'../chunk-BVK3D7GO.js';import'../chunk-G7NJYNJA.js';import'../chunk-JIBSBLNV.js';import'../chunk-JMD7PFXG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-N5EQJ7SA.js';import'../chunk-W3W45DLY.js';import'../chunk-PTS2JSMQ.js';import'../chunk-CN7PQ4FN.js';import'../chunk-MDVOZB55.js';import'../chunk-3IDC3JMI.js';import'../chunk-ABFK5YXW.js';import'../chunk-SRCJQWFE.js';import'../chunk-3X2MEX7P.js';import'../chunk-XX24NRCV.js';import'../chunk-6M7NDF3Y.js';import'../chunk-GTVHYHF4.js';import'../chunk-YLRL7MNJ.js';import'../chunk-WKWLUWGC.js';import'../chunk-KOL4GQKT.js';import'../chunk-GFVJRSZI.js';import'../chunk-ORDWXBDZ.js';import'../chunk-T2Q6B32U.js';import'../chunk-JA7GAJ6P.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-MIB7SXN7.js';import'../chunk-FEPJ6ZVX.js';import'../chunk-S5L3GKMK.js';import'../chunk-H2ANC6ZE.js';import'../chunk-K72UVWJI.js';import'../chunk-JYNJHAGL.js';import'../chunk-YICVRPFF.js';import'../chunk-DHFR2KLQ.js';import'../chunk-PIMSGQMD.js';import'../chunk-T6OV5HAU.js';import'../chunk-UFHP4YW6.js';import'../chunk-SA2QGT2P.js';import'../chunk-EOAMWW2A.js';import'../chunk-VSYTVK2K.js';import'../chunk-UIZFLYFP.js';import'../chunk-N6BWYHOE.js';import'../chunk-H2FL7JBS.js';import'../chunk-W5BOTULK.js';import'../chunk-P7UDZRK2.js';import'../chunk-M2AHJOGD.js';import'../chunk-NLCRET6U.js';import'../chunk-FHABUQAH.js';import'../chunk-6RJGGI5M.js';import'../chunk-MITXGKC5.js';import'../chunk-TW4CJXQY.js';import'../chunk-VIMWKUML.js';import'../chunk-DYXLO45D.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-DL3P7FK4.js';import'../chunk-KTD2GEB6.js';import'../chunk-NYURVOJI.js';import'../chunk-ASI5GI52.js';import'../chunk-OUDUDDZO.js';import'../chunk-JV7WH6MZ.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-FCW3THVC.js';import'../chunk-AWRP67K4.js';import'../chunk-5M57ML72.js';import'../chunk-KYHCOJJH.js';import'../chunk-WRFEJ6VS.js';import'../chunk-7JM2X4UD.js';import'../chunk-ZCMXCZC2.js';import'../chunk-JW7HS6NX.js';import'../chunk-HIULYFIC.js';import'../chunk-YFDUDY6Y.js';import'../chunk-PI7DECIN.js';import'../chunk-QMPBFFFC.js';import'../chunk-ICF6RQIW.js';import'../chunk-HZYZAFW3.js';import'../chunk-QYA5ZUUN.js';import'../chunk-C7TLKKPT.js';import'../chunk-P6B33GL6.js';import'../chunk-CQI4KDR4.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as compactIdentificationNumberByCountry,c as validateIdentificationNumberByCountry}from'./chunk-
|
|
1
|
+
export{d as compactIdentificationNumberByCountry,c as validateIdentificationNumberByCountry}from'./chunk-NYURVOJI.js';
|
package/package.json
CHANGED
package/dist/chunk-QCIQOLBF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {f,y,K,A as A$1}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-ICF6RQIW.js';import {d,e}from'./chunk-QYA5ZUUN.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var z=["not-found","forbidden","unauthorized","server-error","service-unavailable"],N={"not-found":{code:"404",tone:"neutral",Icon:A$1,action:"home"},forbidden:{code:"403",tone:"warning",Icon:K,action:"home"},unauthorized:{code:"401",tone:"info",Icon:y,action:"sign-in"},"server-error":{code:"500",tone:"danger",Icon:f,action:"home"},"service-unavailable":{code:"503",tone:"warning",Icon:a,action:"retry"}},C={variants:{"not-found":{title:"Page not found",description:"The page you are looking for doesn't exist or may have been moved."},forbidden:{title:"Access denied",description:"You don't have permission to view this page. Contact your administrator if you think this is a mistake."},unauthorized:{title:"Your session expired",description:"Please sign in again to continue."},"server-error":{title:"Something went wrong",description:"An unexpected error occurred on our side. Please head back and try again later."},"service-unavailable":{title:"Service unavailable",description:"We can't reach the server right now. It may be temporarily down \u2014 please try again in a few moments."}},actions:{home:"Back to home","sign-in":"Sign in",retry:"Try again"},signOut:"Sign out",referenceLabel:"Reference code",errorEyebrow:"Error"},O={variants:{"not-found":{title:"P\xE1gina no encontrada",description:"La p\xE1gina que buscas no existe o pudo haber sido movida."},forbidden:{title:"Acceso denegado",description:"No tienes permiso para ver esta p\xE1gina. Contacta a tu administrador si crees que es un error."},unauthorized:{title:"Tu sesi\xF3n expir\xF3",description:"Inicia sesi\xF3n nuevamente para continuar."},"server-error":{title:"Algo sali\xF3 mal",description:"Ocurri\xF3 un error inesperado de nuestro lado. Vuelve al inicio e int\xE9ntalo m\xE1s tarde."},"service-unavailable":{title:"Servicio no disponible",description:"No podemos conectar con el servidor en este momento. Puede estar temporalmente ca\xEDdo \u2014 vuelve a intentarlo en unos segundos."}},actions:{home:"Volver al inicio","sign-in":"Iniciar sesi\xF3n",retry:"Reintentar"},signOut:"Cerrar sesi\xF3n",referenceLabel:"C\xF3digo de referencia",errorEyebrow:"Error"},R={variants:{"not-found":{title:"P\xE1gina n\xE3o encontrada",description:"A p\xE1gina que voc\xEA procura n\xE3o existe ou pode ter sido movida."},forbidden:{title:"Acesso negado",description:"Voc\xEA n\xE3o tem permiss\xE3o para ver esta p\xE1gina. Contate seu administrador se achar que \xE9 um engano."},unauthorized:{title:"Sua sess\xE3o expirou",description:"Fa\xE7a login novamente para continuar."},"server-error":{title:"Algo deu errado",description:"Ocorreu um erro inesperado do nosso lado. Volte ao in\xEDcio e tente novamente mais tarde."},"service-unavailable":{title:"Servi\xE7o indispon\xEDvel",description:"N\xE3o conseguimos conectar ao servidor agora. Ele pode estar temporariamente fora do ar \u2014 tente novamente em instantes."}},actions:{home:"Voltar ao in\xEDcio","sign-in":"Entrar",retry:"Tentar novamente"},signOut:"Sair",referenceLabel:"C\xF3digo de refer\xEAncia",errorEyebrow:"Erro"},A=()=>{let t=getDefaultOptions().locale?.code;return t?.startsWith("es")?O:t?.startsWith("pt")?R:C},T=tv({slots:{root:"font-inter flex min-h-[60vh] w-full flex-1 flex-col items-center justify-center px-6 py-12 text-center",haloOuter:"flex size-28 items-center justify-center rounded-full",haloInner:"flex size-16 items-center justify-center rounded-full",icon:"size-8",eyebrow:"font-jakarta mt-6 text-xs font-semibold tracking-[0.12em] uppercase",title:"font-jakarta mt-4 text-xl leading-[140%] font-semibold text-neutral-900",description:"mt-2 max-w-md text-sm leading-[150%] text-neutral-600",reference:"mt-4 inline-flex items-center gap-1.5 rounded-md bg-neutral-100 px-2.5 py-1",referenceLabel:"text-2xs font-medium tracking-wide text-neutral-500 uppercase",referenceValue:"font-mono text-xs text-neutral-700",actions:"mt-8 flex flex-wrap items-center justify-center gap-3"},variants:{tone:{neutral:{haloOuter:"bg-neutral-100",haloInner:"bg-neutral-200",icon:"text-neutral-600",eyebrow:"text-neutral-500"},info:{haloOuter:"bg-info-50",haloInner:"bg-info-100",icon:"text-info-600",eyebrow:"text-info-600"},warning:{haloOuter:"bg-warning-50",haloInner:"bg-warning-100",icon:"text-warning-600",eyebrow:"text-warning-600"},danger:{haloOuter:"bg-danger-50",haloInner:"bg-danger-100",icon:"text-danger-600",eyebrow:"text-danger-600"}}}}),S={variant:"primary",tone:"primary",size:"lg"},B=({variant:t,reference:d$1,onAction:s,actionHref:c,onSignOut:u,className:x})=>{let o=N[t],n=A(),p=n.variants[t],e$1=T({tone:o.tone}),{Icon:E}=o,i=!!(s||c),g=!!u;return jsxs("div",{className:e$1.root({className:x}),children:[jsx("div",{className:e$1.haloOuter(),children:jsx("div",{className:e$1.haloInner(),children:jsx(E,{className:e$1.icon()})})}),jsxs("p",{className:e$1.eyebrow(),children:[n.errorEyebrow," ",o.code]}),jsx("h1",{className:e$1.title(),children:p.title}),jsx("p",{className:e$1.description(),children:p.description}),d$1&&jsxs("div",{className:e$1.reference(),children:[jsx("span",{className:e$1.referenceLabel(),children:n.referenceLabel}),jsx("span",{className:e$1.referenceValue(),children:d$1})]}),(i||g)&&jsxs("div",{className:e$1.actions(),children:[i&&(c?jsx("a",{href:c,onClick:s,className:d(S).root(),children:n.actions[o.action]}):jsx(e,{...S,onClick:s,children:n.actions[o.action]})),g&&jsx(e,{variant:i?"ghost":"primary",tone:i?"neutral":"primary",size:"lg",onClick:u,children:n.signOut})]})]})};export{z as a,B as b};
|
package/dist/chunk-U4NJK7JM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {personValidators,entityValidators,stdnum}from'stdnum';var q=/^\d{5,8}(?:\d[A-Z]|[A-Z]{1,2})?$/,l=t=>t.replace(/[\s-]/g,"").toUpperCase(),_={key:"ci",label:"CI",validate(t){return q.test(l(t))},compact(t){return l(t)},format(t){return l(t)}};var tt=/^\d{7,13}$/,c=t=>t.replace(/[\s-]/g,""),A={key:"nit",label:"NIT",validate(t){return tt.test(c(t))},compact(t){return c(t)},format(t){return c(t)}};var rt=/^\d{6,10}$/,d=t=>t.replace(/[\s.]/g,""),et=t=>t.replace(/\B(?=(\d{3})+(?!\d))/g,"."),h={key:"cedula",label:"C\xE9dula",validate(t){return rt.test(d(t))},compact(t){return d(t)},format(t){return et(d(t))}};var it=/^\d{5}$/,u=t=>t.replace(/[\s-]/g,""),O={key:"reeup",label:"REEUP",validate(t){return it.test(u(t))},compact(t){return u(t)},format(t){return u(t)}};var nt=/^\d{13}$/,m=t=>t.replace(/[\s-]/g,""),ot=t=>{let r=t.slice(0,13);return r.length<=4?r:r.length<=8?`${r.slice(0,4)}-${r.slice(4)}`:`${r.slice(0,4)}-${r.slice(4,8)}-${r.slice(8)}`},P={key:"dni",label:"DNI",validate(t){return nt.test(m(t))},compact(t){return m(t)},format(t){return ot(m(t))}};var at=/^\d{14}$/,p=t=>t.replace(/[\s-]/g,""),st=t=>{let r=t.slice(0,14);return r.length<=4?r:r.length<=8?`${r.slice(0,4)}-${r.slice(4)}`:`${r.slice(0,4)}-${r.slice(4,8)}-${r.slice(8)}`},G={key:"rtn",label:"RTN",validate(t){return at.test(p(t))},compact(t){return p(t)},format(t){return st(p(t))}};var lt=/^(?:\d{10}|\d{14}|\d{17})$/,f=t=>t.replace(/[\s-]/g,""),x={key:"cin",label:"CIN",validate(t){return lt.test(f(t))},compact(t){return f(t)},format(t){return f(t)}};var ct=/^\d{10}$/,V=t=>t.replace(/[\s-]/g,""),D={key:"nif",label:"NIF",validate(t){return ct.test(V(t))},compact(t){return V(t)},format(t){return V(t)}};var dt=/^\d{9}$/,C=t=>t.replace(/[\s-]/g,""),ut=t=>{let r=t.slice(0,9);return r.length<=3?r:r.length<=6?`${r.slice(0,3)}-${r.slice(3)}`:`${r.slice(0,3)}-${r.slice(3,6)}-${r.slice(6)}`},S={key:"trn",label:"TRN",validate(t){return dt.test(C(t))},compact(t){return C(t)},format(t){return ut(C(t))}};var mt="ABCDEFGHJKLMNPQRSTUVWXY",pt=[31,28,31,30,31,30,31,31,30,31,30,31],ft=/^\d{13}[A-Z]$/,b=t=>t.replace(/[\s-]/g,"").toUpperCase(),Vt=t=>{let r=Number.parseInt(t.substring(3,5),10),e=Number.parseInt(t.substring(5,7),10),i=Number.parseInt(t.substring(7,9),10);if(e<1||e>12)return false;let n=e===2&&i%4===0?29:pt[e-1];return r>=1&&r<=n},Ct=t=>{let r=t.slice(0,13),e=t.slice(13),i=Number.parseInt(r,10);return mt[i%23]===e},bt=t=>t.length<=3?t:t.length<=9?`${t.slice(0,3)}-${t.slice(3)}`:`${t.slice(0,3)}-${t.slice(3,9)}-${t.slice(9)}`,k={key:"cedula",label:"C\xE9dula",validate(t){let r=b(t);return !ft.test(r)||!Vt(r)?false:Ct(r)},compact(t){return b(t)},format(t){return bt(b(t))}};var gt=/^J\d{13}$/,M=t=>t.replace(/[\s-]/g,"").toUpperCase(),U={key:"ruc",label:"RUC",validate(t){return gt.test(M(t))},compact(t){return M(t)}};var It=/^(?:PE|E|N|[2-9](?:AV|PI)?|1[0-3]?(?:AV|PI)?)-\d{1,4}-\d{1,6}$/,g=t=>t.toUpperCase().replace(/\s*-\s*/g,"-").replace(/\s+/g,""),s={key:"cedula",label:"C\xE9dula",validate(t){return It.test(g(t))},compact(t){return g(t)},format(t){return g(t)}};var Nt=/^\d{1,10}-[23]-(?:19|20)\d{2}$/,Et=/^\d{1,7}-\d{1,4}-\d{1,7}$/,I=t=>t.toUpperCase().replace(/\s*-\s*/g,"-").replace(/\s+/g,""),X={key:"ruc",label:"RUC",validate(t){let r=I(t);return s.validate(t)||Nt.test(r)||Et.test(r)},compact(t){return I(t)},format(t){return I(t)}};var yt=/^\d{9}$/,N=t=>t.replace(/[\s-]/g,""),Rt=t=>t.length===9?`${t.slice(0,2)}-${t.slice(2)}`:t,L={key:"ein",label:"EIN",validate(t){return yt.test(N(t))},compact(t){return N(t)},format(t){return Rt(N(t))}};var vt=/^\d{9}$/,E=t=>t.replace(/[\s-]/g,""),$t=t=>t.length===9?`${t.slice(0,3)}-${t.slice(3,5)}-${t.slice(5)}`:t,H={key:"ssn",label:"SSN",validate(t){return vt.test(E(t))},compact(t){return E(t)},format(t){return $t(E(t))}};var Tt=[9,8,7,6,5,4,3,2],_t=/^\d{9}$/,y=t=>t.replace(/[\s-]/g,""),At=t=>(10-Tt.reduce((e,i,n)=>e+i*Number(t[n]),0)%10)%10===Number(t[8]),ht=t=>{let r=t.slice(0,9);return r.length<=8?r:`${r.slice(0,8)}-${r[8]}`},j={key:"dui",label:"DUI",validate(t){let r=y(t);return _t.test(r)&&At(r)},compact(t){return y(t)},format(t){return ht(y(t))}};var Ot=/^\d{8,10}$/,R=t=>t.replace(/[\s-]/g,""),w={key:"tin",label:"TIN",validate(t){return Ot.test(R(t))},compact(t){return R(t)},format(t){return R(t)}};var Pt=/^[VE]?\d{5,8}$/,v=t=>t.toUpperCase().replace(/[.\s-]/g,""),z={key:"ci",label:"CI",validate(t){return Pt.test(v(t))},compact(t){return v(t)},format(t){return v(t)}};var Gt={V:1,E:2,J:3,C:3,P:4,G:5},xt=[4,3,2,7,6,5,4,3,2],B=/^[VEJPGC]\d{9}$/,$=t=>t.toUpperCase().replace(/[\s-]/g,""),Dt=t=>{let i=[Gt[t[0]],...t.slice(1,9).split("").map(Number)].reduce((o,a,T)=>o+a*xt[T],0)%11;return (i<=1?0:11-i)===Number(t[9])},St=t=>B.test(t)?`${t[0]}-${t.slice(1,9)}-${t[9]}`:t,F={key:"rif",label:"RIF",validate(t){let r=$(t);return B.test(r)&&Dt(r)},compact(t){return $(t)},format(t){return St($(t))}};var hr="Enter identification number",Y={BO:[_,A],CO:[h],CU:[O],HN:[P,G],HT:[x,D],JM:[S],NI:[k,U],PA:[s,X],PR:[L,H],SV:[j],TT:[w],VE:[z,F]};Array.from(new Set([...Object.keys(personValidators),...Object.keys(entityValidators),...Object.keys(Y)])).sort((t,r)=>t.localeCompare(r));var J=new Map,Z=t=>t.trim().toUpperCase(),Mt=t=>typeof t=="object"&&t!==null&&"compact"in t&&typeof t.compact=="function"&&"format"in t&&typeof t.format=="function"&&"validate"in t&&typeof t.validate=="function",Ut=(t,r)=>r.abbreviation?.trim().toUpperCase()||t.toUpperCase(),Xt=(t,r)=>({key:t,label:Ut(t,r),validate:e=>r.validate(e).isValid,compact:e=>r.compact(e),format:e=>r.format(e)}),Lt=t=>{let r=stdnum[t];if(!r)return [];let e=new Set(personValidators[t]??[]),i=new Set(entityValidators[t]??[]);return Object.entries(r).reduce((n,[o,a])=>(!Mt(a)||!(e.has(a)||i.has(a))||n.push(Xt(o,a)),n),[])},Q=t=>{let r=Z(t),e=J.get(r);if(e)return e;let i=Lt(r),n=Y[r]??[],o=[...i,...n];return J.set(r,o),o},Ht=t=>Array.from(new Set(t.map(r=>r.label)));var Pr=t=>{let r=Ht(Q(t));if(r.length!==0)return r.slice(0,2).join(" / ")},jt=(t,r)=>{let e=Z(t),i=r.trim();if(!e||!i)return {isValid:false};let n=Q(e);for(let o of n)if(o.validate(i))return {isValid:true,compact:o.compact(i)};return {isValid:false}},Gr=(t,r)=>{let e=r.trim();return e&&(jt(t,e).compact??e)};export{hr as a,Pr as b,jt as c,Gr as d};
|