1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6034,9063],{1613:(e,t,r)=>{"use strict";r.d(t,{AI:()=>x,Fw:()=>b,H4:()=>v,Hu:()=>d,JW:()=>f,Js:()=>o,K_:()=>y,MC:()=>w,Ot:()=>c,QB:()=>l,RI:()=>j,UE:()=>p,Uf:()=>a,Vx:()=>g,WT:()=>s,Yo:()=>u,_u:()=>i,f8:()=>n,fV:()=>L,gS:()=>_,h:()=>m,o7:()=>E,tg:()=>A,tx:()=>h,uu:()=>C,z4:()=>N});let a=/\d/,s=/^\d+$/,n=/\D/g,l=/\D,/g,i=/^[a-zA-Z\u00C0-\u00FF\s']+$/,o=/^[a-zA-Z0-9\u00C0-\u00FF\s']+$/,d=/[A-Z]/,c=/[@$!_%*?&.]/,u=/[^a-zA-Z0-9]+(.)/g,m=/\B(?=(\d{3})+(?!\d))/g,x=/^\+\d{0,16}$/,p=/[A-Ja-jL-Zl-z]/g,h=/\s/g,f=/[a-zA-Z]/g,g=/^(?!\d+$)(?![^\w\s]+$).*/,b=/^[\u0020-\u007E]*$/,C=RegExp("[^\\p{L}\\p{N}\\s]","gu"),v=RegExp("[^\\p{L}\\p{S}\\s]","gu"),w=/(\d{4})/g,y=/-$/,j=/(\d{2})/,N=/^(\d{2})(?:19|20)(\d{2})$/,L=/\/$/,_=/[^0-9.$]/g,E=/[^0-9]/g,A=/[^0-9k]/gi},7665:(e,t,r)=>{"use strict";r.d(t,{Cf:()=>m,Es:()=>p,HM:()=>c,L3:()=>h,c7:()=>x,lG:()=>i,rr:()=>f,zM:()=>o});var a=r(37876),s=r(14232),n=r(16843),l=r(26303);let i=l.bL,o=l.l9,d=l.ZL,c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(l.bm,{ref:t,className:(0,n.cn)("font-medium text-base text-text-primary",r),...s})});c.displayName=l.bm.displayName;let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(l.hJ,{ref:t,className:(0,n.cn)("fixed inset-0 z-50 bg-base-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s})});u.displayName=l.hJ.displayName;let m=s.forwardRef((e,t)=>{let{className:r,children:s,overlayClassname:i,closeButton:o=!0,...c}=e;return(0,a.jsxs)(d,{children:[(0,a.jsx)(u,{className:i}),(0,a.jsxs)(l.UC,{ref:t,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-neutral-150 bg-white p-6 shadow-3 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","max-h-[calc(100dvh-32px)] w-[min(100vw-32px,40rem)] overflow-auto",r),...c,children:[s,o&&(0,a.jsxs)(l.bm,{className:"absolute right-4 top-4 flex size-6 items-center justify-center rounded-full text-text-primary ring-offset-white transition-colors hover:bg-neutral-100 focus:outline-none focus:ring-2 focus:ring-informative-200 focus:ring-offset-2 disabled:pointer-events-none",children:[(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 12 12",className:"text-text-primary",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M11.46 10.664a.562.562 0 1 1-.796.796L6 6.795 1.335 11.46a.563.563 0 0 1-.796-.796L5.205 6 .539 1.335A.563.563 0 1 1 1.335.54L6 5.205 10.664.539a.563.563 0 1 1 .796.796L6.795 6l4.665 4.664Z",fill:"currentColor"})}),(0,a.jsx)("span",{className:"sr-only",children:"Cerrar"})]})]})]})});m.displayName=l.UC.displayName;let x=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};x.displayName="DialogHeader";let p=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-8 gap-2",t),...r})};p.displayName="DialogFooter";let h=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(l.hE,{ref:t,className:(0,n.cn)("text-base font-semibold leading-none tracking-tight text-text-primary",r),...s})});h.displayName=l.hE.displayName;let f=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(l.VY,{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...s})});f.displayName=l.VY.displayName},12510:e=>{e.exports={container:"PaymentReceipt_container__qhKFP",button:"PaymentReceipt_button__u8pNr",iconWrapper:"PaymentReceipt_iconWrapper__2gEIX"}},12730:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(82909);let s=function(e){let{fileName:t,base64:r,type:s}=e;return new File([new Blob([a.Buffer.from(r,"base64")],{type:s})],t,{lastModified:Date.now(),type:s})}},13458:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var a=r(37876),s=r(58316),n=r.n(s),l=r(64225),i=r.n(l);let o=e=>{let{height:t=2,color:r="grayPrimary"}=e;return(0,a.jsx)("div",{className:n().divider,style:{"--height":"".concat(t,"px"),"--color":i()[r]}})}},14561:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>o});var a=r(37876),s=r(14232),n=r(47137),l=r(16843),i=r(82987);let o=(0,n.F)("inline-flex h-[46px] items-center justify-center whitespace-nowrap rounded-lg font-archivo text-base font-semibold leading-[18px] ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-100 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:bg-neutral-200 disabled:text-neutral-500",{variants:{variant:{default:"bg-primary-300 text-white hover:bg-primary-400 disabled:bg-neutral-200",destructive:"bg-error-200 text-white hover:bg-error-300 focus-visible:ring-error-200",outline:"border border-neutral-150 bg-white text-text-primary hover:border-text-primary hover:bg-white disabled:border-neutral-150 disabled:bg-white disabled:text-neutral-500","outline-neutral":"border border-neutral-150 bg-white text-text-primary hover:border-text-primary hover:bg-white disabled:border-neutral-150 disabled:bg-white disabled:text-neutral-500",secondary:"border border-neutral-150 bg-white text-text-primary hover:bg-white disabled:border-neutral-150 disabled:bg-white disabled:text-neutral-500",ghost:"border border-transparent bg-transparent text-informative-200 hover:bg-informative-100 disabled:border-transparent disabled:bg-white disabled:text-neutral-500",link:""},size:{default:"px-5 py-3.5",md:"px-3 py-2",icon:"h-5 w-5 p-0"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:d=!1,isLoading:c,disabled:u,children:m,...x}=e,p=d?i.DX:"button";return(0,a.jsx)(p,{className:(0,l.cn)(o({variant:s,size:n,className:r})),ref:t,disabled:u||c,...x,children:c?(0,a.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-current border-b-transparent","aria-hidden":!0}):m})});d.displayName="Button"},16843:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var a=r(69241);let s=(0,r(59135).z)({classGroups:{"font-size":["text-heading-1","text-heading-2","text-heading-3","text-heading-4","text-heading-5","text-ui-1","text-ui-2","text-ui-3","text-ui-4","text-ui-5","text-ui-6"]}});function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return s((0,a.$)(t))}},19527:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(37876),s=r(54587),n=r.n(s),l=r(23138);let i=()=>(0,a.jsx)("footer",{className:"mt-auto w-full",children:(0,a.jsx)("div",{className:"mx-auto flex w-[min(100%,768px)] pb-8",children:(0,a.jsxs)("div",{className:"mx-auto flex items-center gap-2 text-sm font-normal text-text-secondary",children:["Desarrollado por"," ",(0,a.jsx)("a",{href:l.kfx,target:"_blank",children:(0,a.jsx)(n(),{src:"/static/logo/ionix-wordmark.png",alt:"Ionix Payments",width:120,height:32,priority:!0,className:"h-8 w-auto object-contain"})})]})})})},26122:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});
1var a=r(37876),s=r(14232),n=r(54587),l=r.n(n),i=r(85062),o=r(41300),d=r.n(o);let c=(0,s.forwardRef)((e,t)=>{let{color:r="default",icon:s,alt:n=s,height:o=24,width:c=24,className:u="",...m}=e,x=(0,i.A)(d().icon,d()[r],u);return(0,a.jsx)(l(),{src:"/static/icon/".concat(s,".svg"),height:o,width:c,alt:n,className:x,ref:t,...m})})},26605:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(1613);let s={format:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{let r=String(e).replace(t?a.QB:a.f8,"");if(t){let e=r.indexOf(",");e>-1&&(r=r.substring(0,e+3).replace(a.JW,""))}return r.replace(a.h,".")}catch(t){return e}},clear:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{let r=String(e).replace(t?a.QB:a.f8,"").replace(".","");return t&&(r=r.replace(a.JW,"")),r}catch(t){return e}}}},26702:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(37876);let s=e=>{let{width:t="24",height:r="24",...s}=e;return(0,a.jsxs)("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t,height:r,fill:"currentColor",viewBox:"0 0 256 256",children:[(0,a.jsx)("title",{children:"close icon"}),(0,a.jsx)("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})]})}},28303:(e,t,r)=>{"use strict";r.d(t,{I:()=>a.A});var a=r(26122)},29063:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var a=r(37876),s=r(48230),n=r.n(s),l=r(56557),i=r.n(l),o=r(23138),d=r(19527),c=r(14232),u=r(30361);let m=r(48752).Ay.object().shape({email:u.D.required("El correo electr\xf3nico es requerido")});var x=r(14561);let p=e=>{let{width:t=18,height:r=18,...s}=e;return(0,a.jsx)("svg",{...s,width:t,height:r,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M14.8955 1.77515C15.0799 1.72313 15.2746 1.72099 15.46 1.76929C15.5992 1.80557 15.7292 1.86902 15.8428 1.95581L15.9502 2.04956C16.0847 2.18567 16.1802 2.35538 16.2275 2.54077C16.2748 2.72603 16.2724 2.92045 16.2197 3.10425L16.2646 3.11792L16.2178 3.10425V3.11987L12.1279 16.6101L12.127 16.6111C12.0676 16.821 11.9458 17.0077 11.7773 17.1462C11.6089 17.2848 11.402 17.3688 11.1846 17.3865H11.1836C11.1527 17.3891 11.1217 17.3904 11.0908 17.3904L10.9395 17.3806C10.789 17.3598 10.644 17.3071 10.5146 17.2253C10.3423 17.1164 10.2047 16.9598 10.1182 16.7751L7.21387 10.8074L7.20703 10.7927L7.19238 10.7859L1.22168 7.87769H1.2207C1.02385 7.78315 0.860472 7.63067 0.751953 7.44116C0.643475 7.25166 0.595157 7.03376 0.613281 6.81616C0.631463 6.59856 0.715141 6.39132 0.853516 6.22241C0.991999 6.05352 1.17883 5.93042 1.38867 5.86987H1.38965L14.8789 1.77612H14.8818V1.77808L14.8955 1.77515ZM15.1738 2.76733L1.68457 6.86304L1.68848 6.87573V6.91772L1.67285 6.94995L7.46094 9.76733L7.49121 9.78198L7.51465 9.75757L10.8887 6.38257L10.8896 6.38354C10.9871 6.29117 11.1167 6.24022 11.251 6.24194C11.3854 6.24368 11.5143 6.29824 11.6094 6.39331C11.7042 6.48828 11.758 6.61656 11.7598 6.75073C11.7615 6.88478 11.7112 7.01468 11.6191 7.11206L8.2207 10.5105L8.23535 10.5408L11.0518 16.3269L11.0732 16.3162L11.1377 16.3279L11.1416 16.3181L11.1426 16.3152L15.2324 2.82593L15.2578 2.74194L15.1738 2.76733Z",fill:"#404040",stroke:"#404040",strokeWidth:"0.09375"})})};var h=r(16843),f=r(38769),g=r(28303),b=r(73628),C=r(86465),v=r(93830),w=r(12510),y=r.n(w);let j=e=>{let{handleDownloadReceipt:t,handleSendtoEmail:r,isLoading:s,downloadComponent:n,isSendEmailSuccess:l=!1}=e,[i,o]=(0,c.useState)(!1),{handleSubmit:d,emailField:u}=(0,v.A)({defaultValues:{email:""},submitHandler:async e=>{let{email:t}=e;await r(t),o(!1)},schema:m});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C.A,{isOpen:i,onClose:()=>o(!1),children:(0,a.jsxs)("form",{onSubmit:d,autoComplete:"off",children:[(0,a.jsx)(b.p,{width:"full",placeholder:"Introduzca el email",label:"Enviar comprobante a:",variant:"onBoarding",minLength:6,autoComplete:"off",...u}),(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(f.A,{width:"full",type:"submit",disabled:s,children:s?"Enviando...":"Enviar"})})]})}),(0,a.jsxs)("div",{className:(0,h.cn)(y().container,"flex-col sm:flex-row"),children:[n||(0,a.jsxs)(x.$,{className:"flex gap-2",variant:"outline",onClick:t,disabled:s,children:[(0,a.jsx)("div",{className:y().iconWrapper,children:(0,a.jsx)(g.I,{icon:"download",width:24,height:24,className:(0,h.cn)(y().icon,"aspect-square min-w-[24px]"),alt:""})}),(0,a.jsx)("span",{className:"text-sm font-medium",children:s?"Procesando...":"Descargar comprobante"})]}),(0,a.jsxs)(x.$,{className:"flex gap-2",variant:"outline",onClick:()=>o(!0),disabled:s||l,children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:s?"Enviando...":l?"Comprobante enviado":"Enviar comprobante"}),(0,a.jsx)(p,{})]})]})]})};var N=r(97891),L=r(13458),_=r(96034),E=r(89099),A=r(44764),q=r(49462),R=r(12730),D=r(85273);let I=()=>{var e,t,r,s;let l,{order:u,link:m,orderId:x}=(()=>{var e;let{query:t,push:r,isReady:a,pathname:s}=(0,E.useRouter)();(0,c.useEffect)(()=>{s!==o.CyH&&(!a||(null==t?void 0:t.data)||r(o.CyH))},[a,s,r,t]);let n=(null==t?void 0:t.data)?JSON.parse(String(null==t?void 0:t.data)):{};return{order:n,link:JSON.parse(String(null!=(e=null==t?void 0:t.link)?e:"{}")),orderId:t.orderId}})(),p=m.amount?(0,_.A)(Number(m.amount)):"---",h=null!=(e=m.commerce)?e:"---",f=u.transaction_date?(l=null==u?void 0:u.transaction_date,i()(l).format("DD/MM/YYYY HH:mm")):"---",g=null!=x?x:"---",b=null!=(t=m.title)?t:"---",C=u.card_number?"****".concat(u.card_number):null,v=null!=(r=u.authorization_code)?r:"---",w=null!=(s=m.description)?s:"---",{handleDownloadReceipt:y,handleSendToEmail:I,isLoading:k}=(e=>{let{orderId:t,commerce_id:r}=e,[a,{isLoading:s}]=(0,D.pG)(),n=e=>{let{document_base64:t,authorization_id:r,message:a}=e;if(t){let e="".concat(r||"comprobante",".pdf"),a=(0,R.A)({fileName:e,base64:t,type:"application/pdf"}),s=URL.createObjectURL(a),n=document.createElement("a");n.href=s,n.download=e,n.click(),URL.revokeObjectURL(s),(0,q.Te)("".concat(e," descargado con \xe9xito"));return}a&&(0,q.Te)(a)};return{handleDownloadReceipt:async()=>{try{let{document_base64:e,message:s,authorization_id:l}=await a({captcha:await (0,A.Z)("downloadVoucher"),orderId:Number(t),commerce_id:r}).unwrap();n({document_base64:e,authorization_id:l,message:s})}catch(e){console.error("handleDownloadReceipt",e)}},handleSendToEmail:async e=>{try{let{document_base64:s,message:l,authorization_id:i}=await a({captcha:await (0,A.Z)("sendEmailVoucher"),orderId:Number(t),email:e,commerce_id:r}).unwrap();n({document_base64:s,authorization_id:i,message:l})}catch(e){console.error("handleDownloadReceipt",e)}},isLoading:s}})({orderId:g,commerce_id:m.commerce_id});return(0,a.jsxs)("div",{className:"flex min-h-screen w-full flex-col overflow-y-auto bg-gray p-0",children:[(0,a.jsx)(N.l,{title:"\xa1Excelente!",subtitle:"Tu pago se ha procesado exitosamente."}),(0,a.jsx)("section",{className:"-mt-8 w-full px-1 pb-6 text-text-primary sm:px-8",children:(0,a.jsxs)("div",{className:"mx-auto w-[min(100%,564px)] rounded-2xl bg-white p-6 pb-0 shadow-[8px_8px_40px_0px_#00000014]",children:[(0,a.jsx)("h3",{className:"text-center text-lg font-semibold",children:"Monto pagado:"}),(0,a.jsx)("h3",{className:"text-center text-4xl font-medium",children:p}),(0,a.jsxs)("div",{className:"py-6",children:[(0,a.jsx)("h4",{className:"border-b-2 pb-1 font-semibold",children:"Informaci\xf3n del pago"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 py-4",children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"font-normal",children:"Tienda:"}),(0,a.jsx)("span",{className:"basis-1/2 text-right font-medium lg:basis-1/3",children:h})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"font-normal",children:"Fecha:"}),(0,a.jsx)("span",{className:"basis-1/2 text-right font-medium lg:basis-1/3",children:f})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"font-normal",children:"Orden Id:"}),(0,a.jsx)("span",{className:"basis-1/2 text-right font-medium lg:basis-1/3",children:g})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"font-normal",children:"Concepto:"}),(0,a.jsx)("span",{className:"basis-1/2 text-right font-medium lg:basis-1/3",children:b})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"font-normal",children:"Descripci\xf3n:"}),(0,a.jsx)("span",{className:"basis-1/2 text-right font-medium lg:basis-1/3",children:w})]}),C&&(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"font-normal",children:"Tarjeta:"}),(0,a.jsx)("span",{className:"basis-1/2 text-right font-medium lg:basis-1/3",children:C})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,a.jsx)("span",{className:"font-normal",children:"C\xf3d. autorizaci\xf3n:"}),(0,a.jsx)("span",{className:"min-w-0 basis-1/2 break-all text-right font-medium lg:basis-1/3",children:v})]})]}),(0,a.jsx)(L.A,{}),(0,a.jsxs)("div",{className:"flex flex-col gap-6 pt-4 md:items-center",children:[(0,a.jsx)(j,{handleDownloadReceipt:y,handleSendtoEmail
1:I,isLoading:k}),(0,a.jsx)(n(),{href:o.CyH,className:"mx-auto px-2 py-1 font-normal text-blue-hyperlink",children:"Volver al inicio"})]})]})]})}),(0,a.jsx)(d.A,{})]})}},30361:(e,t,r)=>{"use strict";r.d(t,{D:()=>l});var a=r(31019),s=r(48752),n=r(1613);let l=s.Ay.string().email("El correo electr\xf3nico no es v\xe1lido.").matches(n.Fw,"El correo electr\xf3nico no es v\xe1lido.").test("isValidEmail","El correo electr\xf3nico no es v\xe1lido.",e=>String(e)===(0,a.Pk)(String(e)))},36345:(e,t,r)=>{"use strict";r.d(t,{j:()=>a});let a=e=>e?e.startsWith("http://")||e.startsWith("https://")?e:"https://".concat(e):e},38769:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var a=r(37876),s=r(48230),n=r.n(s),l=r(14561),i=r(16843);let o=e=>{let{children:t,className:r="",type:s="submit",href:o,isLoading:d=!1,width:c="fit-content",disabled:u,target:m,rel:x,...p}=e,h=(0,a.jsxs)(a.Fragment,{children:[d&&(0,a.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-current border-b-transparent","aria-hidden":!0}),(0,a.jsx)("span",{children:t})]}),f=(0,i.cn)("gap-2","full"===c?"w-full":"w-fit",r);if(o&&!u){let e="string"==typeof o&&/^https?:\/\//.test(o);return(0,a.jsx)(l.$,{asChild:!0,className:f,children:e?(0,a.jsx)("a",{href:o,target:m,rel:x,children:h}):(0,a.jsx)(n(),{href:o,children:h})})}return(0,a.jsx)(l.$,{type:s,className:f,disabled:u||d,...p,children:h})}},41300:e=>{e.exports={icon:"Icon_icon__Fqai4",default:"Icon_default__eI88z",greenPrimary:"Icon_greenPrimary__U2T6J",redPrimary:"Icon_redPrimary__89E9l",primary:"Icon_primary__Nl8Vd",white:"Icon_white__b_DHR",link:"Icon_link__eWIWD"}},48752:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>w,gJ:()=>c,p5:()=>p,yF:()=>h,AG:()=>v,Uj:()=>b,PW:()=>u,ze:()=>x,nt:()=>g,D6:()=>m,XP:()=>f,qz:()=>C});var a=r(14425),s=r(40678),n=r(22844),l=r(45182),i=r(36345),o=r(1613),d=r(66677);l.addMethod(l.mixed,"fieldRepeat",function(e,t){return this.test("check-if-fields-equal",t,function(r){let{path:a,parent:s,createError:n}=this;return r===s[e]||n({path:a,message:t})})}),l.addMethod(l.mixed,"validRUT",function(e){return this.test("check-if-fields-equal",e,function(t){let{path:r,createError:a}=this;return!!(!t||d.A.validate(t))||a({path:r,message:e})})});let c="Este campo es obligatorio.",u=l.string().required(c).matches(o._u,{message:"El nombre completo no puede contener n\xfameros o signos",excludeEmptyString:!0}),m=l.string().matches(o.AI,{message:"El n\xfamero de tel\xe9fono debe tener el siguiente formato +1234567890",excludeEmptyString:!0}).max(16,"El n\xfamero de tel\xe9fono no puede tener m\xe1s de 15 caracteres").min(6,"El n\xfamero de tel\xe9fono debe tener al menos de 6 caracteres").required("Debes agregar un n\xfamero de celular de contacto."),x=l.string().transform(e=>(null==e?void 0:e.trim())===""?void 0:e).required("El RUT es requerido.").min(9,"El RUT ingresado debe tener m\xe1s de 9 caracteres.").max(12,"El RUT ingresado debe tener menos de 12 caracteres.").validRUT("El RUT no es v\xe1lido."),p=l.string().required("Calle direcci\xf3n del comercio es requerido.").max(60,"La direcci\xf3n no puede ser mayor a 60 caracteres.").matches(o.Vx,{message:"La direcci\xf3n no puede ser solo n\xfameros o solo caracteres especiales.",excludeEmptyString:!0}),h=l.string().required("El n\xfamero de direcci\xf3n es requerido.").max(10,"El n\xfamero de direcci\xf3n no puede ser mayor a 10 caracteres.").matches(o.WT,{message:"El n\xfamero de direcci\xf3n debe contener solo n\xfameros.",excludeEmptyString:!0}),f=l.object().shape({region:l.string().required("La regi\xf3n es requerida."),city:l.string().required("La comuna es requerida.")}).required("La regi\xf3n y comuna es requerido."),g=l.string().required("La raz\xf3n social es requerida.").max(100,"La raz\xf3n social no puede ser mayor a 100 caracteres."),b=l.string().required("El nombre de fantas\xeda del comercio es requerido.").max(100,"El nombre de fantas\xeda del comercio no puede ser mayor a 100 caracteres.").matches(o.Vx,{message:"El nombre de fantas\xeda del comercio no puede ser solo n\xfameros o solo caracteres especiales.",excludeEmptyString:!0}),C=l.string().required("Debes ingresar la URL de tu sitio o red social del comercio.").max(255,"La
1URL no puede ser mayor a 255 caracteres.").transform(i.j).url("Debes ingresar una URL v\xe1lida. Por ejemplo: www.ionixpayments.com o www.instagram.com/ionixpayments"),v=l.object({activity:l.string().required("El rubro o actividades en el SII es requerido."),code:l.number().required("El rubro o actividades en el SII es requerido.")}).nullable().required("El rubro o actividades en el SII es requerido.");l.string().required("La fecha de nacimiento es requerida.").test("is-valid-date","La fecha de nacimiento no es v\xe1lida.",e=>{if(!e)return!0;let t=(0,a.default)(e,"dd-MM-yyyy",new Date);return(0,s.default)(t)&&!Number.isNaN(t.getTime())}).test("is-adult","Debes ser mayor de 18 a\xf1os.",e=>{if(!e)return!0;let t=(0,a.default)(e,"dd-MM-yyyy",new Date);return(0,n.A)(new Date,t)>=18});let w=l},49462:(e,t,r)=>{"use strict";r.d(t,{I9:()=>u,Qg:()=>m,Te:()=>x,UW:()=>p});var a=r(37876),s=r(89848),n=r(26702),l=r(16843);let i={success:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M14.2806 7.21937C14.3504 7.28903 14.4057 7.37175 14.4434 7.46279C14.4812 7.55384 14.5006 7.65144 14.5006 7.75C14.5006 7.84856 14.4812 7.94616 14.4434 8.03721C14.4057 8.12825 14.3504 8.21097 14.2806 8.28063L9.03063 13.5306C8.96097 13.6004 8.87826 13.6557 8.78721 13.6934C8.69616 13.7312 8.59857 13.7506 8.5 13.7506C8.40144 13.7506 8.30385 13.7312 8.2128 13.6934C8.12175 13.6557 8.03903 13.6004 7.96938 13.5306L5.71938 11.2806C5.57865 11.1399 5.49959 10.949 5.49959 10.75C5.49959 10.551 5.57865 10.3601 5.71938 10.2194C5.86011 10.0786 6.05098 9.99958 6.25 9.99958C6.44903 9.99958 6.6399 10.0786 6.78063 10.2194L8.5 11.9397L13.2194 7.21937C13.289 7.14964 13.3718 7.09432 13.4628 7.05658C13.5538 7.01884 13.6514 6.99941 13.75 6.99941C13.8486 6.99941 13.9462 7.01884 14.0372 7.05658C14.1283 7.09432 14.211 7.14964 14.2806 7.21937ZM19.75 10C19.75 11.9284 19.1782 13.8134 18.1068 15.4168C17.0355 17.0202 15.5127 18.2699 13.7312 19.0078C11.9496 19.7458 9.98919 19.9389 8.09787 19.5627C6.20656 19.1865 4.46928 18.2579 3.10571 16.8943C1.74215 15.5307 0.813554 13.7934 0.437348 11.9021C0.061142 10.0108 0.254225 8.05042 0.992179 6.26884C1.73013 4.48726 2.97982 2.96451 4.58319 1.89317C6.18657 0.821828 8.07164 0.25 10 0.25C12.585 0.25273 15.0634 1.28084 16.8913 3.10872C18.7192 4.93661 19.7473 7.41498 19.75 10ZM18.25 10C18.25 8.3683 17.7661 6.77325 16.8596 5.41655C15.9531 4.05984 14.6646 3.00242 13.1571 2.37799C11.6497 1.75357 9.99085 1.59019 8.39051 1.90852C6.79017 2.22685 5.32016 3.01259 4.16637 4.16637C3.01259 5.32015 2.22685 6.79016 1.90853 8.3905C1.5902 9.99085 1.75358 11.6496 2.378 13.1571C3.00242 14.6646 4.05984 15.9531 5.41655 16.8596C6.77326 17.7661 8.36831 18.25 10 18.25C12.1873 18.2475 14.2843 17.3775 15.8309 15.8309C17.3775 14.2843 18.2475 12.1873 18.25 10Z",fill:"#1D8742"})}),fail:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M10 0.25C8.07164 0.25 6.18657 0.821828 4.58319 1.89317C2.97982 2.96451 1.73013 4.48726 0.992179 6.26884C0.254225 8.05042 0.061142 10.0108 0.437348 11.9021C0.813554 13.7934 1.74215 15.5307 3.10571 16.8943C4.46928 18.2579 6.20656 19.1865 8.09787 19.5627C9.98919 19.9389 11.9496 19.7458 13.7312 19.0078C15.5127 18.2699 17.0355 17.0202 18.1068 15.4168C19.1782 13.8134 19.75 11.9284 19.75 10C19.7473 7.41498 18.7192 4.93661 16.8913 3.10872C15.0634 1.28084 12.585 0.25273 10 0.25ZM10 18.25C8.36831 18.25 6.77326 17.7661 5.41655 16.8596C4.05984 15.9531 3.00242 14.6646 2.378 13.1571C1.75358 11.6496 1.5902 9.99085 1.90853 8.3905C2.22685 6.79016 3.01259 5.32015 4.16637 4.16637C5.32016 3.01259 6.79017 2.22685 8.39051 1.90852C9.99085 1.59019 11.6497 1.75357 13.1571 2.37799C14.6646 3.00242 15.9531 4.05984 16.8596 5.41655C17.7661 6.77325 18.25 8.3683 18.25 10C18.2475 12.1873 17.3775 14.2843 15.8309 15.8309C14.2843 17.3775 12.1873 18.2475 10 18.25ZM9.25 10.75V5.5C9.25 5.30109 9.32902 5.11032 9.46967 4.96967C9.61033 4.82902 9.80109 4.75 10 4.75C10.1989 4.75 10.3897 4.82902 10.5303 4.96967C10.671 5.11032 10.75 5.30109 10.75 5.5V10.75C10.75 10.9489 10.671 11.1397 10.5303 11.2803C10.3897 11.421 10.1989 11.5 10 11.5C9.80109 11.5 9.61033 11.421 9.46967 11.2803C9.32902 11.1397 9.25 10.9489 9.25 10.75ZM11.125 14.125C11.125 14.3475 11.059 14.565 10.9354 14.75C10.8118 14.935 10.6361 15.0792 10.4305 15.1644C10.225 15.2495 9.99876 15.2718 9.78053 15.2284C9.5623 15.185 9.36184 15.0778 9.20451 14.9205C9.04718 14.7632 8.94003 14.5627 8.89662 14.3445C8.85321 14.12
162 8.87549 13.9 8.96064 13.6945C9.04579 13.4889 9.18998 13.3132 9.37499 13.1896C9.55999 13.066 9.7775 13 10 13C10.2984 13 10.5845 13.1185 10.7955 13.3295C11.0065 13.5405 11.125 13.8266 11.125 14.125Z",fill:"#C03744"})}),info:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M10 0.25C8.07164 0.25 6.18657 0.821828 4.58319 1.89317C2.97982 2.96451 1.73013 4.48726 0.992179 6.26884C0.254225 8.05042 0.061142 10.0108 0.437348 11.9021C0.813554 13.7934 1.74215 15.5307 3.10571 16.8943C4.46928 18.2579 6.20656 19.1865 8.09787 19.5627C9.98919 19.9389 11.9496 19.7458 13.7312 19.0078C15.5127 18.2699 17.0355 17.0202 18.1068 15.4168C19.1782 13.8134 19.75 11.9284 19.75 10C19.7473 7.41498 18.7192 4.93661 16.8913 3.10872C15.0634 1.28084 12.585 0.25273 10 0.25ZM10 18.25C8.36831 18.25 6.77326 17.7661 5.41655 16.8596C4.05984 15.9531 3.00242 14.6646 2.378 13.1571C1.75358 11.6496 1.5902 9.99085 1.90853 8.3905C2.22685 6.79016 3.01259 5.32015 4.16637 4.16637C5.32016 3.01259 6.79017 2.22685 8.39051 1.90852C9.99085 1.59019 11.6497 1.75357 13.1571 2.37799C14.6646 3.00242 15.9531 4.05984 16.8596 5.41655C17.7661 6.77325 18.25 8.3683 18.25 10C18.2475 12.1873 17.3775 14.2843 15.8309 15.8309C14.2843 17.3775 12.1873 18.2475 10 18.25ZM11.5 14.5C11.5 14.6989 11.421 14.8897 11.2803 15.0303C11.1397 15.171 10.9489 15.25 10.75 15.25C10.3522 15.25 9.97065 15.092 9.68934 14.8107C9.40804 14.5294 9.25 14.1478 9.25 13.75V10C9.05109 10 8.86033 9.92098 8.71967 9.78033C8.57902 9.63968 8.5 9.44891 8.5 9.25C8.5 9.05109 8.57902 8.86032 8.71967 8.71967C8.86033 8.57902 9.05109 8.5 9.25 8.5C9.64783 8.5 10.0294 8.65804 10.3107 8.93934C10.592 9.22064 10.75 9.60218 10.75 10V13.75C10.9489 13.75 11.1397 13.829 11.2803 13.9697C11.421 14.1103 11.5 14.3011 11.5 14.5ZM8.5 5.875C8.5 5.6525 8.56598 5.43499 8.6896 5.24998C8.81322 5.06498 8.98892 4.92078 9.19449 4.83564C9.40005 4.75049 9.62625 4.72821 9.84448 4.77162C10.0627 4.81502 10.2632 4.92217 10.4205 5.0795C10.5778 5.23684 10.685 5.43729 10.7284 5.65552C10.7718 5.87375 10.7495 6.09995 10.6644 6.30552C10.5792 6.51109 10.435 6.68679 10.25 6.8104C10.065 6.93402 9.84751 7 9.625 7C9.32664 7 9.04049 6.88147 8.82951 6.6705C8.61853 6.45952 8.5 6.17337 8.5 5.875Z",fill:"#005CB3"})}),warning:(0,a.jsx)("svg",{width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M21.2 15.6334L13.0016 1.39556C12.7967 1.04674 12.5042 0.75752 12.1532 0.556559C11.8021 0.355598 11.4046 0.249878 11 0.249878C10.5955 0.249878 10.198 0.355598 9.8469 0.556559C9.49581 0.75752 9.20334 1.04674 8.99847 1.39556L0.800029 15.6334C0.602907 15.9708 0.499023 16.3545 0.499023 16.7453C0.499023 17.136 0.602907 17.5197 0.800029 17.8571C1.00228 18.2081 1.29425 18.4989 1.64599 18.6997C1.99773 18.9005 2.39658 19.0041 2.80159 18.9999H19.1985C19.6032 19.0038 20.0016 18.9 20.353 18.6992C20.7044 18.4984 20.9961 18.2078 21.1982 17.8571C21.3956 17.5199 21.4998 17.1363 21.5001 16.7455C21.5004 16.3548 21.3969 15.9709 21.2 15.6334ZM19.8997 17.1062C19.8282 17.2281 19.7256 17.3288 19.6024 17.398C19.4792 17.4672 19.3398 17.5024 19.1985 17.4999H2.80159C2.66029 17.5024 2.52088 17.4672 2.39765 17.398C2.27442 17.3288 2.17181 17.2281 2.10034 17.1062C2.0356 16.9966 2.00145 16.8716 2.00145 16.7443C2.00145 16.617 2.0356 16.492 2.10034 16.3824L10.2988 2.14463C10.3717 2.02329 10.4748 1.92288 10.598 1.85318C10.7212 1.78347 10.8603 1.74684 11.0019 1.74684C11.1435 1.74684 11.2826 1.78347 11.4058 1.85318C11.529 1.92288 11.6321 2.02329 11.705 2.14463L19.9035 16.3824C19.9676 16.4924 20.0011 16.6175 20.0005 16.7448C19.9998 16.8721 19.965 16.9969 19.8997 17.1062ZM10.25 11.4999V7.74994C10.25 7.55103 10.329 7.36026 10.4697 7.21961C10.6104 7.07896 10.8011 6.99994 11 6.99994C11.1989 6.99994 11.3897 7.07896 11.5304 7.21961C11.671 7.36026 11.75 7.55103 11.75 7.74994V11.4999C11.75 11.6989 11.671 11.8896 11.5304 12.0303C11.3897 12.1709 11.1989 12.2499 11 12.2499C10.8011 12.2499 10.6104 12.1709 10.4697 12.0303C10.329 11.8896 10.25 11.6989 10.25 11.4999ZM12.125 14.8749C12.125 15.0974 12.059 15.3149 11.9354 15.5C11.8118 15.685 11.6361 15.8292 11.4305 15.9143C11.225 15.9995 10.9988 16.0217 10.7806 15.9783C10.5623 15.9349 10.3619 15.8278 10.2045 15.6704C10.0472 15.5131 9.94005 15.3126 9.89665 15.0944C9.85324 14.8762 9.87552 14.65 9.96066 14.4444C10.0458 14.2389 10.19 14.0632 10.375 13.9395C10.56 13.8159 10.7775 13.7499 11 13.7499C11.2984 13.7499 11.5845 13.8685 11.7955 14.0794C12.0065 14.2904 12.125 14.5766 12.125 14.8749Z",fill:"#CC7914"})})},o={position:"top-center",autoClose:3e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!1,
1className:"rounded-none w-screen tablet:w-[min(550px,100vw)] tablet:rounded-lg border-b border-t first:border-t-0 tablet:!border shadow-md font-medium text-base text-text-primary justify-between font-archivo font-archivo text-ui-2",progressClassName:"invisible",closeButton:e=>{let{closeToast:t}=e;return(0,a.jsx)(n.A,{className:"ml-auto h-5 w-5 text-text-primary",onClick:t})}},d=e=>"string"!=typeof e||e.endsWith(".")?e:"".concat(e,"."),c=function(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=null==e?void 0:e.title,n=null==e?void 0:e.description;return"object"==typeof e&&null!==e&&"title"in e&&"description"in e?s?(0,a.jsxs)("div",{className:(0,l.cn)("flex flex-col",t),children:[(0,a.jsx)("h3",{className:"text-base font-bold text-inherit",children:r?d(s):s}),(0,a.jsx)("div",{className:"font-medium text-text-primary",children:r?d(n):n})]}):(0,a.jsx)("span",{className:(0,l.cn)("font-medium text-text-primary",t),children:r?d(n):n}):r?d(e):e},u=(e,t,r)=>s.oR.warning(c(e,"text-warning-300",null==r?void 0:r.endLineDot),{...o,toastId:t,delay:50,...r,className:(0,l.cn)("bg-warning-100 border-warning-300",o.className,null==r?void 0:r.className),icon:i.warning}),m=(e,t,r)=>s.oR.error(c(e,"text-error-200"),{...o,toastId:t,delay:50,...r,className:(0,l.cn)("bg-error-100 border-error-200 text-ui-2",o.className,null==r?void 0:r.className),icon:i.fail}),x=(e,t,r)=>s.oR.success(c(e,"text-success-300"),{...o,toastId:t,delay:50,...r,className:(0,l.cn)("bg-success-100 border-success-300",o.className,null==r?void 0:r.className),icon:i.success}),p=e=>s.oR.dismiss(e)},52372:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(14232);let s=e=>{let{isDirty:t}=e;(0,a.useEffect)(()=>{if(window)return t?window.onbeforeunload=()=>!0:window.onbeforeunload=null,()=>{window.onbeforeunload=null}},[t])}}
1,58316:e=>{e.exports={divider:"Divider_divider__uNaiy"}},63397:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var a=r(37876),s=r(14232),n=r(47137),l=r(16843),i=r(59773);let o=(0,n.F)("flex items-center gap-2 font-archivo text-base font-normal leading-5 text-text-primary peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{variant:{error:"text-sm text-error-300",required:""}}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,...n}=e;return(0,a.jsxs)(i.b,{ref:t,className:(0,l.cn)(o({variant:s,className:r})),...n,children:["required"===s&&(0,a.jsx)("span",{className:"text-error-200",children:"*"}),n.children]})});d.displayName=i.b.displayName},66677:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,B:()=>n});var a=r(1613);let s={validate:r(59113).EW,format(e){if(0===e.length)return"";let t=String(e).replace(/^0+/,""),r="";if(""!==t&&t.length>1){let e=t.replaceAll(".","").replaceAll(",","").replaceAll("-",""),a=e.substring(0,e.length-1),s=0,n=1;for(s=a.length-1;s>=0;s--)r=a.charAt(s)+r,n%3==0&&n<=a.length-1&&(r="."+r),n++;r=r+"-"+e.substring(e.length-1)}return"undefined"===r?String(t).replace(a.UE,""):String(r).replace(a.UE,"")}},n=e=>e.replace(a.tg,""),l=s},73628:(e,t,r)=>{"use strict";r.d(t,{p:()=>a.A});var a=r(98158)},76050:(e,t,r)=>{"use strict";r.d(t,{j:()=>i,p:()=>o});var a=r(37876),s=r(14232),n=r(47137),l=r(16843);let i=(0,n.F)("flex h-9 w-full rounded-lg border border-neutral-150 bg-white px-4 py-2 font-archivo text-base font-normal text-text-primary ring-offset-white file:border-0 file:bg-transparent file:text-sm placeholder:font-normal placeholder:text-text-tertiary focus-visible:border-informative-200 focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:bg-neutral-150 disabled:text-neutral-500",{variants:{variant:{error:"border-error-300 focus-visible:border-error-300"}}}),o=s.forwardRef((e,t)=>{let{className:r,type:s,variant:n,...o}=e;return(0,a.jsx)("input",{type:s,className:(0,l.cn)(i({variant:n,className:r})),ref:t,...o})});o.displayName="Input"},85273:(e,t,r)=>{"use strict";r.d(t,{$K:()=>u,OH:()=>d,TC:()=>s,fP:()=>l,iR:()=>m,mN:()=>i,pG:()=>n});var a=r(23138);let{useGetLastOrdersQuery:s,useGetPaymentReceiptMutation:n,useGetRefundReceiptMutation:l,useGetOrderDetailsQuery:i,useGetOrderPublicDetailsQuery:o,useCancelPixOrderMutation:d,useGetOrderRefundDetailQuery:c,useLazyGetOrderRefundDetailQuery:u,usePostPixRefundMutation:m}=r(8085).C.injectEndpoints({endpoints:e=>({getLastOrders:e.query({query:e=>{let{commerceId:t}=e;return{url:(0,a.GV5)({commerce_id:t,limit:10,page:1,order_by:"created_at"}),method:"GET",providesTags:["LastOrders"]}}}),getOrderDetails:e.query({query:e=>{let{commerceId:t,orderId:r,discountId:s}=e;return{url:(0,a.cJh)({commerceId:t,orderId:r,discountId:s}),method:"GET",providesTags:["OrderDetails"]}}}),getPaymentReceipt:e.mutation({query:e=>{let{captcha:t,orderId:r,email:s,commerce_id:n}=e;return{url:(0,a.D5P)({orderId:r,email:s}),method:"POST",body:{captcha:t,orderId:r,email:s,commerce_id:n}}}}),getRefundReceipt:e.mutation({query:e=>{let{captcha:t,orderId:r,email:s,commerce_id:n}=e;return{url:(0,a._Ip)({orderId:r}),method:"POST",body:{captcha:t,orderId:r,email:s,commerce_id:n}}}}),cancelPixOrder:e.mutation({query:e=>{let{orderId:t}=e;return{url:(0,a.$Ku)(t),method:"PATCH"}}}),getOrderPublicDetails:e.query({query:e=>{let{orderId:t,signature:r}=e;return{url:(0,a.Huq)({orderId:t,signature:r}),method:"GET",providesTags:["OrderPublicDetails"],headers:{"x-order-signature":r}}}}),getOrderRefundDetail:e.query({query:e=>{let{idTransaction:t,amount:r}=e;return{url:(0,a.v9g)({idTransaction:t,amount:r}),method:"GET"}}}),postPixRefund:e.mutation({query:e=>{let{idOrder:t,amount:r,commerce_id:s,exchange_rate_refund:n,iof_exchange_refund:l,reason:i}=e;return{url:(0,a.Vxu)({idOrder:t}),method:"POST",body:{amount:r,commerce_id:s,exchange_rate_refund:n,iof_exchange_refund:l,reason:i}}},invalidatesTags:["OrderDetails","DiscountOrders","Orders"]})})})},86465:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(37876),s=r(7665),n=r(16843);let l=e=>{let{isOpen:t,onClose:r,children:l,title:i,description:o,panelClassName:d="",isStatic:c=!1,fullScreen:u=!1,showCloseButton:m=!0,preventCloseOnBackdropClick:x=!1,titleClassName:p=""}=e;return(0,a.jsx)(s.lG,{open:t,onOpenChange:e=>!e&&r(),children:(0,a.jsxs)(s.Cf,{closeButton:m,className:(0,n.cn)(u&&"h-[calc(100dvh-2rem)] max-h-none w-screen max-w-none rounded-none p-0 max-[425px]:h-dvh max-[425px]:pl-[18px] max-[425px]:pt-10",d),onInteractOutside:e=>{((e=>{var t,r,a,s;let n=null!=(s=null==(r=e.detail)||null==(t=r.originalEvent)?void 0:t.target)?s:e.target;return!!(null==n||null==(a=n.closest)?void 0:a.call(n,".zeleri-select-menu-portal"))})(e)||c||x)&&e.preventDefault()},onEscapeKeyDown:c?e=>e.preventDefault():void 0,...!o&&{"aria-describedby":void 0},children:[i?(0,a.jsx)(s.L3,{className:(0,n.cn)("text-left text-lg font-bold leading-6 text-text-primary",p),children:i}):(0,a.jsx)(s.L3,{className:"sr-only",children:"Modal"}),o&&(0,a.jsx)(s.rr,{children:o}),l]})})}},93830:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o,B:()=>i});var a=r(88992),s=r(98623),n=r(1613),l=r(52372);let i=e=>e.replace(n.Yo,(e,t)=>t.toUpperCase())+"Field",o=e=>{let{defaultValues:t,submitHandler:r,schema:n,values:o,unSavedChangesWarning:d,...c}=e,{register:u,handleSubmit:m,formState:x,...p}=(0,a.mN)({defaultValues:t,resolver:(0,s.A)(n),...{...o?{values:{...o}}:{}},...c});(0,l.A)({isDirty:!!d&&x.isDirty});let h={};return Object.keys(t).forEach(e=>{h[i(e)]={...u(e),error:x.errors[e]}}),{handleSubmit:m(r),...p,...h,register:u,formState:x}}},96034:(e,t,r)=>{"use strict";function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";if(Number.isNaN(Number(e)))return"Valor Invalido";let r=e%1!=0,a=new Intl.NumberFormat("es-CL",{style:"currency",currency:"CLP",minimumFractionDigits:2*!!r,maximumFractionDigits:2*!!r}),s=/[a-z]$/i.test(t)?"".concat(t," "):t;return a.format(e).replace("$",s)}r.d(t,{A:()=>a})},97891:(e,t,r)=>{"use strict";r.d(t,{l:()=>n});var a=r(37876),s=r(85062);let n=e=>{let{title:t="",subtitle:r="",className:n="",isError:l=!1}=e;return(0,a.jsx)("div",{className:(0,s.A)("flex min-h-[160px] w-full items-center justify-center gap-2.5 rounded-none px-4 py-2.5 tablet:min-h-[240px]",l?"bg-[image:var(--redPrimaryGradient)]":"bg-[image:var(--greenPrimaryGradient)]",n),children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("span",{className:"block break-words text-[28px] font-semibold leading-tight text-white tablet:text-5xl",children:t}),(0,a.jsx)("span",{className:"block break-words text-lg font-semibold leading-snug text-white tablet:text-[32px]",children:r})]})})}},98158:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var a=r(37876),s=r(14232),n=r(76050),l=r(63397),i=r(16843),o=r(26605);let d=e=>{let{filename:t,extension:r="svg",className:s}=e;return(0,a.jsx)("img",{src:"/static/".concat(t,".").concat(r),className:s,alt:"".concat(t," zeleri.com")})},c=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.target.value=o.A.clear(e.target.value,r),t&&t(e),e.target.value=o.A.format(e.target.value,r)},u=(0,s.forwardRef)(function(e,t){let r,{id:o,type:u="text",label:m,className:x="",wrapperClassName:p="",borderRadius:h="Medium",register:f={},error:g,leftIcon:b,rightIcon:C,name:v,width:w="fit-content",variant:y,labelClassName:j,labelIcon:N,withErrorLayoutShift:L=!1,errorLabelClassName:_,rightIconClassName:E,textarea:A=!1,showSign:q=!0,allowDecimal:R,...D}=e,[I,k]=(0,s.useState)(!0),{error:M,...S}=f,P="password"===u,T="currency"===u,z=o||v,O=M||g,Z=D.onChange||S.onChange,V=e=>{if(T)return c(e,Z,R);Z&&Z(e)},$=T&&q,F=(0,i.cn)((0,n.j)({variant:O?"error":void 0}),{Small:"rounded-sm",Medium:"rounded-lg",Large:"rounded-lg"}[h],"onBoarding"===y&&"bg-neutral-50",A&&"resize-y max-h-[200px] min-h-[60px]",x,(b||$)&&"pl-10",C&&"pr-12",P&&"pr-10"),U=!!O&&!!(m||(null==O?void 0:O.message)),B=!(null==O?void 0:O.message)&&!L;return(0,a.jsxs)("div",{className:(0,i.cn)("flex flex-col gap-[4px]","full"===w?"w-full":"w-fit",p),children:[m&&(0,a.jsxs)(l.J,{htmlFor:z,className:j,children:[N&&(0,a.jsx)(d,{filename:N,extension:"svg"}),m]}),(0,a.jsxs)("div",{className:"relative",children:[b&&(0,a.jsx)(d,{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2",filename:b,extension:"svg"}),$&&(0,a.jsx)("span",{className:"absolute left-[17px] top-[4px] text-xl text-neutral-400",children:"$"}),A?(0,a.jsx)("textarea",{className:F,id:z,ref:t,name:v,...S,...D,onChange:V}):(0,a.jsx)("input",{className:F,id:z,type:"currency"!==u&&("password"!==u||I)?u:"text",ref:t,name:v,..."number"===u?{min:0}:{},...S,...D,onChange:V}),C&&(0,a.jsx)("div",{className:(0,i.cn)("absolute right-0 top-0 h-10 w-10 flex items-center justify-center bg-white rounded-full shadow-[0px_8px_24px_0px_rgba(0,0,0,0.08)]",E),children:C}),P&&(0,a.jsx)("button",{type:"button",className:"absolute right-[13px] top-2 cursor-pointer",onClick:()=>k(!I),children:(0,a.jsx)(d,{extension:"svg",filename:"eye/".concat(I?"show":"no-show")})})]}),U&&(0,a.jsx)(l.J,{variant:"error",htmlFor:z,id:z,className:(0,i.cn)(B&&"invisible",_),children:L?null==O?void 0:O.message:null!=(r=null==O?void 0:O.message)?r:"hide error"})]})})},98623:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(14232);let s=e=>(0,a.useCallback)(async t=>{try{return{values:await e.validate(t,{abortEarly:!1}),errors:{}}}catch(e){return{values:{},errors:e.inner.reduce((e,t)=>
1{var r;return{...e,[t.path]:{type:null!=(r=t.type)?r:"validation",message:t.message}}},{})}}},[e])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.