PageSourceSearch

https://www.todohogar.com/_next/static/chunks/8425-bf981fec7c9c5015.js

js todohogar.com collected 2026-10-05 06:00:35 UTC 91,659 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8425],{3033:(e,n,r)=>{r.d(n,{a:()=>o});var t=r(14232);let i=e=>async n=>await e.createAddress(n);var a=r(11635);let o=()=>{let[e,n]=(0,t.useState)(!1),[r,o]=(0,t.useState)(null),[l,d]=(0,t.useState)(null);return{address:l,loading:e,error:r,createAddress:(0,t.useCallback)(async e=>{try{n(!0),o(null);let r=new a.f,t=i(r),l=await t(e);return d(l),l}catch(e){throw o(e instanceof Error?e.message:"Error al crear la direcci\xf3n"),e}finally{n(!1)}},[]),resetState:(0,t.useCallback)(()=>{d(null),o(null)},[])}}},3309:(e,n,r)=>{r.d(n,{Q:()=>o});var t=r(14232),i=r(32977);let a=e=>async(n,r)=>{if(!n)throw Error("Billing ID is required");if(!r.id)throw Error("Billing data ID is required");if(n!==r.id)throw Error("Billing ID mismatch");return await e.updateBilling(n,r)},o=()=>{let[e,n]=(0,t.useState)(!1),[r,o]=(0,t.useState)(null);return{updateBilling:async(e,r)=>{n(!0),o(null);try{let n=new i.o,t=a(n);return await t(e,r)}catch(n){let e=n instanceof Error?n:Error("Error al actualizar los datos de facturaci\xf3n");throw o(e),e}finally{n(!1)}},loading:e,error:r}}},11158:(e,n,r)=>{r.d(n,{x:()=>i});var t=r(80798);let i={async getAllProvinces(){try{var e,n,r=await t.A.get("/general-api/province/all_provinces");if(!r||"boolean"!=typeof r.correctProcess)throw Error("Respuesta de provincias inv\xe1lida");return{correctProcess:r.correctProcess,message:null!=(e=r.message)?e:"",data:Array.isArray(r.data)?r.data.map(e=>{var n,r,t,i,a;return{id:null!=(n=e.id)?n:"",provinceName:null!=(r=e.provinceName)?r:"",enabled:null==(t=e.enabled)||t,createdAt:null!=(i=e.createdAt)?i:"",updatedAt:null!=(a=e.updatedAt)?a:"",listCanton:Array.isArray(e.listCanton)?e.listCanton.map(e=>{var n,r,t,i,a,o;return{id:null!=(n=e.id)?n:"",provinceId:null!=(r=e.provinceId)?r:"",cantonName:null!=(t=e.cantonName)?t:"",enabled:null==(i=e.enabled)||i,createdAt:null!=(a=e.createdAt)?a:"",updatedAt:null!=(o=e.updatedAt)?o:null,listParish:Array.isArray(e.listParish)?e.listParish.map(e=>{var n,r,t,i,a,o;return{id:null!=(n=e.id)?n:"",cantonId:null!=(r=e.cantonId)?r:"",parishName:null!=(t=e.parishName)?t:"",enabled:null==(i=e.enabled)||i,createdAt:null!=(a=e.createdAt)?a:"",updatedAt:null!=(o=e.updatedAt)?o:null}}):[]}}):[]}}):[],pagination:null!=(n=r.pagination)?n:null}}catch(e){throw console.error("Error loading provinces:",e),e}}}},11635:(e,n,r)=>{r.d(n,{f:()=>o});var t=r(33100),i=r(50357),a=r(91040);class o{async createAddress(e){try{let n=await a.A.post("".concat(this.baseUrl,"/address"),e);return(0,i.w1)(n.data)}catch(e){throw Error("Error al crear la direcci\xf3n: ".concat(e))}}async getAddresses(e){try{let n="".concat(this.baseUrl,"/address/getAddresses/").concat(e),r=await a.A.get(n);return(0,i.GQ)(r.data)}catch(e){throw console.error("❌ ERROR EN LLAMADA HTTP:",e),Error("Error al obtener las direcciones: ".concat(e))}}async updateAddress(e,n){try{let r=await a.A.put("".concat(this.baseUrl,"/address/").concat(e),n);return(0,i.w1)(r.data)}catch(e){throw Error("Error al actualizar la direcci\xf3n: ".concat(e))}}constructor(){this.baseUrl="".concat(t.Mq,"users-api")}}},20067:(e,n,r)=>{r.d(n,{F:()=>o});var t=r(14232),i=r(32977);let a=e=>async n=>{if(!n.alies.trim())throw Error("El alias es requerido");
1if(!n.typeIdentification.trim())throw Error("El tipo de identificaci\xf3n es requerido");if(!n.identification.trim())throw Error("El n\xfamero de identificaci\xf3n es requerido");if(!n.name.trim())throw Error("El nombre es requerido");if(!n.surname.trim())throw Error("El apellido es requerido");if(!n.email.trim())throw Error("El email es requerido");if(!n.address.trim())throw Error("La direcci\xf3n es requerida");if(!n.memberId.trim())throw Error("El ID del miembro es requerido");if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n.email))throw Error("El email no tiene un formato v\xe1lido");return await e.createBilling(n)},o=()=>{let[e,n]=(0,t.useState)(!1),[r,o]=(0,t.useState)(null);return{createBilling:async e=>{n(!0),o(null);try{let n=new i.o,r=a(n);return await r(e)}catch(n){let e=n instanceof Error?n:Error("Error al crear los datos de facturaci\xf3n");throw o(e),e}finally{n(!1)}},loading:e,error:r}}},20109:(e,n,r)=>{r.d(n,{Y:()=>o});var t=r(14232),i=r(32977);let a=e=>async function(n){let r=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!n)throw Error("Member ID is required");return await e.getBillingsByMemberId(n,r)},o=function(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],[r,o]=(0,t.useState)([]),[l,d]=(0,t.useState)(!1),[s,c]=(0,t.useState)(null),u=(0,t.useCallback)(async()=>{if(!e){o([]),d(!1);return}d(!0),c(null);try{let r=new i.o,t=a(r),l=await t(e,n);o(l)}catch(e){c(e instanceof Error?e:Error("Error al obtener datos de facturaci\xf3n")),o([])}finally{d(!1)}},[e,n]);return(0,t.useEffect)(()=>{e?u():(o([]),d(!1))},[e,u]),{billings:r,loading:l,error:s,refetch:u}}},21260:(e,n,r)=>{r.d(n,{x:()=>o});var t=r(14232);let i=e=>async(n,r)=>{try{return await e.updateAddress(n,r)}catch(e){throw Error("Error al actualizar la direcci\xf3n: ".concat(e))}};var a=r(11635);let o=()=>{let[e,n]=(0,t.useState)(!1),[r,o]=(0,t.useState)(null),[l,d]=(0,t.useState)(null);return{updateAddress:async(e,r)=>{n(!0),o(null);try{let n=new a.f,t=i(n),o=await t(e,r);return d(o),o}catch(e){throw o(e instanceof Error?e.message:"Error desconocido al actualizar la direcci\xf3n"),e}finally{n(!1)}},loading:e,error:r,address:l,resetState:()=>{n(!1),o(null),d(null)}}}},23910:(e,n,r)=>{r.d(n,{d:()=>D});var t=r(28888),i=r(37876);r(14232);var a=r(80427),o=r(75e3);function l(){let e=(0,t._)(["\n  color: #313131;\n  font-size: 18px;\n  font-family: Montserrat, sans-serif;\n  font-weight: 600;\n  line-height: 30px;\n  word-wrap: break-word;\n\n  @media (max-width: 768px) {\n    font-size: 16px;\n    line-height: 24px;\n  }\n"]);return l=function(){return e},e}function d(){let e=(0,t._)(["\n  width: 24px;\n  height: 24px;\n  background: transparent;\n  border: none;\n  cursor: pointer;\n  padding: 0;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  &:hover {\n    opacity: 0.7;\n  }\n"]);return d=function(){return e},e}function s(){let e=(0,t._)(["\n  align-self: stretch;\n  height: 1px;\n  background: #CECECE;\n"]);return s=function(){return e},e}function c(){let e=(0,t._)(["\n  color: #3E4958;\n  font-size: 16px;\n  font-family: Montserrat, sans-serif;\n  font-weight: 600;\n  line-height: 24px;\n  word-wrap: break-word;\n  overflow-wrap: break-word;\n  word-break: break-word;\n  max-width: 100%;\n\n  @media (max-width: 768px) {\n    font-size: 15px;\n    line-height: 22px;\n  }\n"]);return c=function(){return e},e}function u(){let e=(0,t._)(["\n  color: #3E4958;\n  font-size: 14px;\n  font-family: Montserrat, sans-serif;\n  font-weight: 700;\n  line-height: 18px;\n  word-wrap: break-word;\n  overflow-wrap: break-word;\n  word-break: break-word;\n\n  @media (max-width: 768px) {\n    font-size: 13px;\n    line-height: 17px;\n  }\n"]);return u=function(){return e},e}function p(){let e=(0,t._)(["\n  color: #3E4958;\n  font-size: 14px;\n  font-family: Montserrat, sans-serif;\n  font-weight: 400;\n  line-height: 18px;\n  word-wrap: break-word;\n  overflow-wrap: break-word;\n  word-break: break-word;\n\n  @media (max-width: 768px) {\n    font-size: 13px;\n    line-height: 17px;\n  }\n"]);return p=function(){return e},e}function h(){let e=(0,t._)(["\n  color: white;\n  font-size: 14px;\n  font-family: Montserrat, sans-serif;\n  font-weight: 500;\n  line-height: 24px;\n  word-wrap: break-word;\n\n  @media (max-width: 768px) {\n    font-size: 13px;\n    line-height: 20px;\n  }\n"]);return h=function(){return e},e}function x(){let e=(0,t._)(["\n  align-self: stretch;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 4px;\n  display: flex;\n  width: 100%;\n  max-width: 100%;\n  box-sizing: border-box;\n  overflow-wrap: break-word;\n  word-break: break-word;\n"]);return x=function(){return e},e}function f(){let e=(0,t._)(["\n  align-self: stretch;\n  justify-content: space-between;\n  align-items: center;\n  display: inline-flex;\n"]);return f=function(){return e},e}function m(){let e=(0,t._)(["\n  justify-content: center;\n  align-items: center;\n  gap: 8px;\n  display: flex;\n"]);return m=function(){return e},e}function g(){let e=(0,t._)(["\n  align-self: stretch;\n  padding: 6px 12px;\n  background: #0064C0;\n  border-radius: 6px;\n  border: none;\n  justify-content: center;\n  align-items: center;\n  gap: 10px;\n  display: inline-flex;\n  cursor: pointer;\n  width: 100%;\n  max-width: 100%;\n  box-sizing: border-box;\n\n  &:hover {\n    background: #0056a8;\n  }\n\n  @media (max-width: 768px) {\n    padding: 8px 12px;\n    font-size: 14px;\n  }\n"]);return g=function(){return e},e}function w(){let e=(0,t._)(["\n  flex: 1 1 0;\n  padding: 10px;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 10px;\n  display: inline-flex;\n  width: 100%;\n  box-sizing: border-box;\n\n  @media (max-width: 768px) {\n    padding: 8px;\n  }\n"]);return w=function(){return e},e}function v(){let e=(0,t._)(["\n  align-self: stretch;\n  padding: 10px;\n  background: white;\n  border-radius: 12px;\n  border: 1px solid #CECECE;\n  justify-content: center;\n  align-items: center;\n  gap: 10px;\n  display: inline-flex;\n  overflow: hidden;\n\n  @media (max-width: 768px) {\n    padding: 8px;\n  }\n"]);return v=function(){return e},e}function y(){let e=(0,t._)(["\n  align-self: stretch;\n  height: 100%;\n  padding: 20px;\n  background: white;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 20px;\n  display: flex;\n  overflow-y: auto;\n\n  @media (max-width: 768px) {\n    padding: 16px;\n    gap: 16px;\n  }\n"]);return y=function(){return e},e}function b(){let e=(0,t._)(["\n  width: 450px;\n  max-width: 100vw;\n  height: 100%;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  display: inline-flex;\n\n  @media (max-width: 768px) {\n    width: 100vw;\n  }\n"]);return b=function(){return e},e}function j(){let e=(0,t._)(["\n  width: 100%;\n  max-width: 100%;\n  border-radius: 8px;\n  border: 1px solid #ddd;\n  overflow: hidden;\n  margin-top: 10px;\n  box-sizing: border-box;\n"]);return j=function(){return e},e}function C(){let e=(0,t._)(["\n  margin-bottom: 2px;\n  line-height: 18px;\n  width: 100%;\n  max-width: 100%;\n  box-sizing: border-box;\n  overflow-wrap: break-word;\n  word-break: break-word;\n"]);return C=function(){return e},e}let E=a.Ay.span(l()),A=a.Ay.button(d()),k=a.Ay.div(s()),S=a.Ay.span(c()),I=a.Ay.span(u()),M=a.Ay.span(p()),L=a.Ay.span(h()),_=a.Ay.div(x()),V=a.Ay.div(f()),z=a.Ay.div(m()),N=a.Ay.button(g(
1)),H=a.Ay.div(w()),P=a.Ay.div(v()),R=a.Ay.div(y()),B=a.Ay.div(b()),$=a.Ay.div(j()),T=a.Ay.div(C()),D=e=>{let{store:n,filteredStores:r,position:t,onClose:a}=e;return(0,i.jsx)(B,{children:(0,i.jsxs)(R,{children:[(0,i.jsxs)(V,{children:[(0,i.jsx)(E,{children:"Informaci\xf3n de tienda"}),(0,i.jsx)(A,{onClick:a,children:(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M18.75 5.25L5.25 18.75M18.75 18.75L5.25 5.25",stroke:"#313131",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,i.jsx)(k,{}),(0,i.jsx)(P,{children:(0,i.jsxs)(H,{children:[(0,i.jsx)(S,{children:n.name}),(0,i.jsxs)(_,{children:[(0,i.jsx)("div",{children:(0,i.jsxs)(M,{children:[n.address1,(0,i.jsx)("br",{}),n.address2]})}),(0,i.jsxs)(T,{children:[(0,i.jsx)(I,{children:"Tel\xe9fonos: "}),(0,i.jsx)(M,{children:n.phone})]}),n.additionalInformation&&(0,i.jsxs)(T,{children:[(0,i.jsx)(I,{children:"Atenci\xf3n al cliente: "}),(0,i.jsx)(M,{children:n.additionalInformation})]}),n.email&&(0,i.jsxs)(T,{children:[(0,i.jsx)(I,{children:"Mail de contacto: "}),(0,i.jsx)(M,{children:n.email})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(I,{children:"Horarios"}),(0,i.jsxs)("div",{children:[(0,i.jsx)(T,{children:(0,i.jsxs)(M,{children:["Lunes: ",n.mondaySchedule]})}),(0,i.jsx)(T,{children:(0,i.jsxs)(M,{children:["Martes: ",n.tuesdaySchedule]})}),(0,i.jsx)(T,{children:(0,i.jsxs)(M,{children:["Mi\xe9rcoles: ",n.wednesdaySchedule]})}),(0,i.jsx)(T,{children:(0,i.jsxs)(M,{children:["Jueves: ",n.thursdaySchedule]})}),(0,i.jsx)(T,{children:(0,i.jsxs)(M,{children:["Viernes: ",n.fridaySchedule]})}),(0,i.jsx)(T,{children:(0,i.jsxs)(M,{children:["S\xe1bado: ",n.saturdaySchedule]})}),(0,i.jsx)(T,{children:(0,i.jsxs)(M,{children:["Domingo: ",n.sundaySchedule]})})]})]})]}),r.length>0&&(0,i.jsx)($,{children:(0,i.jsx)(o.T,{markers:r,height:"200px",position:t,storeSelect:n})}),(0,i.jsx)(N,{onClick:()=>{if(n.latitude&&n.longitude){let e="https://www.google.com/maps?q=".concat(n.latitude,",").concat(n.longitude);window.open(e,"_blank")}},children:(0,i.jsxs)(z,{children:[(0,i.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M9 1.5C6.51375 1.5 4.5 3.51375 4.5 6C4.5 9.75 9 15.75 9 15.75C9 15.75 13.5 9.75 13.5 6C13.5 3.51375 11.4862 1.5 9 1.5ZM9 7.875C8.0655 7.875 7.3125 7.122 7.3125 6.1875C7.3125 5.253 8.0655 4.5 9 4.5C9.9345 4.5 10.6875 5.253 10.6875 6.1875C10.6875 7.122 9.9345 7.875 9 7.875Z",fill:"white"})}),(0,i.jsx)(L,{children:"\xbfC\xf3mo llegar?"})]})})]})})]})})}},32977:(e,n,r)=>{r.d(n,{o:()=>o});class t{static toDomain(e){if(!e)throw Error("Invalid billing data: raw data is null or undefined");return{id:e.id||"",alies:e.alies||"",typeIdentification:e.typeIdentification||"",identification:e.identification||"",name:e.name||"",surname:e.surname||"",email:e.email||"",address:e.address||"",main:e.main||!1,enabled:e.enabled||!1,phoneNumber:e.phoneNumber||"",celphoneNumber:e.celphoneNumber||"",memberId:e.memberId||"",genderId:e.genderId||"",provinceId:e.provinceId||"",cantonId:e.cantonId||"",civilStatusId:e.civilStatusId||"",reference:e.reference||""}}static toDomainList(e){if(!Array.isArray(e))throw Error("Invalid billing data: expected an array");return e.map(e=>t.toDomain(e))}}var i=r(91040),a=r(33100);class o{async getBillingsByMemberId(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!e||e.toLowerCase().includes("guest"))return[];try{let r="".concat(this.baseUrl,"/billings/idMember/").concat(e,"/").concat(n),a=await i.A.get(r);return t.toDomainList(a.data)}catch(e){throw console.error("Error fetching billing data:",e),Error("Error al obtener los datos de facturaci\xf3n: ".concat(e))}}async createBilling(e){try{let n="".concat(this.baseUrl,"/billings"),r=await i.A.post(n,e);return t.toDomain(r.data)}catch(e){throw console.error("Error creating billing data:",e),Error("Error al crear los datos de facturaci\xf3n: ".concat(e))}}async updateBilling(e,n){try{let r="".concat(this.baseUrl,"/billings/").concat(e),a=await i.A.put(r,n);return t.toDomain(a.data)}catch(e){throw console.error("Error updating billing data:",e),Error("Error al actualizar los datos de facturaci\xf3n: ".concat(e))}}constructor(){this.baseUrl="".concat(a.Mq,"users-api")}}},40713:(e,n,r)=>{r.d(n,{U:()=>o});var t=r(14232);let i=e=>async n=>await e.getAddresses(n);var a=r(11635);let o=()=>{let[e,n]=(0,t.useState)([]),[r,o]=(0,t.useState)(!1),[l,d]=(0,t.useState)(null),s=(0,t.useCallback)(async e=>{try{o(!0),d(null);let r=new a.f,t=i(r),l=await t(e);if(l&&l.data&&Array.isArray(l.data))return n(l.data),l.data;return console.error("Respuesta inesperada de la API:",l),d("Formato de respuesta inesperado de la API"),n([]),[]}catch(e){throw d(e instanceof Error?e.message:"Error al obtener las direcciones"),n([]),e}finally{o(!1)}},[]),c=(0,t.useCallback)(async e=>await s(e),[s]);return{addresses:e,loading:r,error:l,getAddresses:s,refreshAddresses:c}}},43449:(e,n,r)=>{r.d(n,{Q:()=>a});var t=r(37876);r(14232);var i=r(64718);let a=()=>(0,t.jsxs)(i.N8,{children:[(0,t.jsxs)(i.eB,{children:[(0,t.jsxs)(i.AJ,{children:[(0,t.jsx)(i.Si,{width:"60%",height:"16px"}),(0,t.jsx)(i.Si,{width:"40%",height:"12px",marginTop:"4px"})]}),(0,t.jsx)(i.Q8,{size:"16px"})]}),(0,t.jsx)(i.Ef,{children:(0,t.jsxs)(i.AM,{children:[(0,t.jsx)(i.Si,{width:"80%",height:"14px"}),(0,t.jsx)(i.Si,{width:"90%",height:"14px",marginTop:"4px"}),(0,t.jsx)(i.Si,{width:"70%",height:"14px",marginTop:"4px"})]})}),(0,t.jsxs)(i.ru,{children:[(0,t.jsx)(i.Si,{width:"30%",height:"12px"}),(0,t.jsxs)(i.yh,{children:[(0,t.jsx)(i.er,{width:"60px",height:"24px"}),(0,t.jsx)(i.er,{width:"60px",height:"24px"})]})]})]})},50357:(e,n,r)=>{r.d(n,{GQ:()=>i,iF:()=>a,w1:()=>t});let t=e=>({id:e.id||"",address:e.address||"",alias:e.alias||"",city:e.city||"",idMember:e.idMember||"",lat:e.lat||"",lon:e.lon||"",principal:e.principal||!1,reference:e.reference||"",state:e.state||"",enabled:void 0===e.enabled||e.enabled,phoneNumber:e.phoneNumber||"",localidad:e.localidad||"",addressTypeId:e.addressTypeId||"",cost:e.cost||0,storeId:e.storeId||"",homeSector:e.homeSector||"",mainStreet:e.mainStreet||"",secondaryStreet:e.secondaryStreet||"",nomenclature:e.nomenclature||"",anotherReference:e.anotherReference||""}),i=e=>e.correctProcess&&e.data?{correctProcess:e.correctProcess,message:e.message||"",data:e.data.map(t),pagination:e.pagination||null}:{correctProcess:!1,message:e.message||"Error al obtener las direcciones",data:[],pagination:null},a=e=>{let n="",r="";switch(e.addressTypeId){case"1":n="Env\xedo - ".concat(e.alias||"Mi casa"),r=e.homeSector?"".concat(e.homeSector,", ").concat(e.mainStreet," ").concat(e.nomenclature||""," y ").concat(e.secondaryStreet).trim():e.address||"";break;case"2":n="Retiro en tienda - ".concat(e.alias||"Todohogar"),r=e.address||"";break;case"3":n="Retiro en courier - ".concat(e.alias||"Urbano"),r=e.address||"";break;default:let t=e.storeId&&""!==e.storeId;n=t?"Retiro - ".concat(e.alias||"Todohogar"):"Env\xedo - ".concat(e.alias||"Mi casa"),r=t?e.address||"".concat(e.mainStreet," ").concat(e.secondaryStreet,", ").concat(e.city):"".concat(e.mainStreet," ").concat(e.secondaryStreet,", ").concat(e.state,", ").concat(e.city,", ").concat(e.localidad)}return{id:e.id,provincia:e.state,canton:e.city,localidad:e.localidad,sector:e.homeSector,callePrincipal:e.mainStreet,numeracion:e.n
1omenclature,calleSecundaria:e.secondaryStreet,referencia1:e.reference,referencia2:e.anotherReference,celular:e.phoneNumber,alias:e.alias,isDefault:e.principal,isSelected:e.principal,type:n,fullAddress:r,reference:e.reference||e.anotherReference,phone:e.phoneNumber,cost:e.cost,addressTypeId:e.addressTypeId,storeId:e.storeId}}},60853:(e,n,r)=>{r.d(n,{T:()=>o});var t=r(14232);let i=e=>async()=>{try{return await e.getAllProvinces()}catch(e){throw console.error("Error en getAllProvincesUseCase:",e),Error("Error al obtener las provincias")}};var a=r(11158);let o=()=>{let[e,n]=(0,t.useState)(null),[r,o]=(0,t.useState)(!1),[l,d]=(0,t.useState)(null),s=(0,t.useCallback)(async()=>{o(!0),d(null);try{let e=await i(a.x)();n(e.data)}catch(e){d(e instanceof Error?e.message:"Error al cargar las provincias")}finally{o(!1)}},[]),c=(0,t.useCallback)(async()=>{await s()},[s]);return(0,t.useEffect)(()=>{s()},[s]),{provinces:e,loading:r,error:l,loadProvinces:s,refetch:c}}},64484:(e,n,r)=>{r.d(n,{Gg:()=>a,Sr:()=>o,c1:()=>i});var t=r(37876);r(14232);let i=()=>(0,t.jsx)("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M6.25 20.5H33.75M20 6.75V34.25",stroke:"#585858",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),a=e=>{let{color:n="white",filled:r=!1}=e;return(0,t.jsx)("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M7.75846 11.6757L10.7137 13.548C11.0914 13.7874 11.5604 13.4314 11.4483 12.9905L10.5945 9.63173C10.5705 9.53818 10.5733 9.43975 10.6027 9.34775C10.6321 9.25575 10.6869 9.17391 10.7608 9.11166L13.4108 6.90599C13.759 6.61617 13.5793 6.03829 13.1319 6.00926L9.67114 5.78465C9.57792 5.77799 9.48852 5.74499 9.41333 5.68948C9.33815 5.63398 9.28028 5.55826 9.24646 5.47114L7.95573 2.22077C7.92065 2.1283 7.85827 2.04869 7.77687 1.99251C7.69547 1.93634 7.5989 1.90625 7.5 1.90625C7.4011 1.90625 7.30454 1.93634 7.22314 1.99251C7.14174 2.04869 7.07936 2.1283 7.04427 2.22077L5.75355 5.47114C5.71973 5.55826 5.66186 5.63398 5.58667 5.68948C5.51149 5.74499 5.42208 5.77799 5.32886 5.78465L1.86809 6.00926C1.42072 6.03829 1.241 6.61617 1.5892 6.90599L4.23924 9.11166C4.31309 9.17391 4.36787 9.25575 4.39729 9.34775C4.4267 9.43975 4.42955 9.53818 4.4055 9.63173L3.61368 12.7466C3.47917 13.2757 4.04197 13.7029 4.49527 13.4157L7.24154 11.6757C7.31878 11.6266 7.40844 11.6005 7.5 11.6005C7.59156 11.6005 7.68122 11.6266 7.75846 11.6757V11.6757Z",stroke:r?"none":n,fill:r?n:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},o=()=>(0,t.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M8.125 2.5L3.75 6.875L1.875 5",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})},64718:(e,n,r)=>{r.d(n,{$q:()=>ep,AJ:()=>J,AM:()=>ee,Cc:()=>T,Dn:()=>ex,Ef:()=>X,GU:()=>F,K1:()=>U,N8:()=>W,Og:()=>eh,Q8:()=>ec,RX:()=>en,Rh:()=>G,Si:()=>es,Sl:()=>eo,VT:()=>el,_N:()=>K,bn:()=>Y,cG:()=>Z,eB:()=>Q,er:()=>eu,hE:()=>q,jq:()=>O,k3:()=>D,mc:()=>$,rA:()=>ea,ru:()=>er,uK:()=>et,yh:()=>ei});var t=r(28888),i=r(80427);function a(){let e=(0,t._)(["\n  width: 100%;\n  max-width: 770px;\n  padding: 20px;\n  background: white;\n  border-radius: 12px;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 10px;\n  display: flex;\n  box-sizing: border-box;\n\n  @media (max-width: 810px) {\n    margin: 0 10px;\n    padding: 15px;\n  }\n\n  @media (max-width: 480px) {\n    margin: 0 5px;\n    padding: 10px;\n  }\n"]);return a=function(){return e},e}function o(){let e=(0,t._)(["\n  align-self: stretch;\n  padding-bottom: 10px;\n  flex-direction: column;\n  justify-content: center;\n  align-items: flex-start;\n  gap: 1px;\n  display: flex;\n"]);return o=function(){return e},e}function l(){let e=(0,t._)(["\n  align-self: stretch;\n  justify-content: flex-start;\n  align-items: center;\n  gap: 12px;\n  display: inline-flex;\n"]);return l=function(){return e},e}function d(){let e=(0,t._)(['\n  color: black;\n  font-size: 18px;\n  font-family: "Montserrat";\n  font-weight: 500;\n  line-height: 43px;\n  word-wrap: break-word;\n\n  @media (max-width: 480px) {\n    font-size: 16px;\n    line-height: 24px;\n  }\n']);return d=function(){return e},e}function s(){let e=(0,t._)(["\n  align-self: stretch;\n  padding-top: 2px;\n  padding-bottom: 2px;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 10px;\n  display: flex;\n"]);return s=function(){return e},e}function c(){let e=(0,t._)(["\n  align-self: stretch;\n  height: 1px;\n  background: #cecece;\n"]);return c=function(){return e},e}function u(){let e=(0,t._)(["\n  align-self: stretch;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 10px;\n  display: flex;\n"]);return u=function(){return e},e}function p(){let e=(0,t._)(["\n  align-self: stretch;\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 15px;\n  width: 100%;\n\n  @media (max-width: 1145px) {\n    grid-template-columns: repeat(2, 1fr);\n    gap: 12px;\n  }\n\n  @media (max-width: 480px) {\n    grid-template-columns: 1fr;\n    gap: 10px;\n  }\n"]);return p=function(){return e},e}function h(){let e=(0,t._)(["\n  padding: 20px;\n  background: white;\n  border-radius: 12px;\n  border: 2px dashed #cecece;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  gap: 10px;\n  display: inline-flex;\n  box-sizing: border-box;\n\n  &:hover {\n    border: 2px solid #0064c0;\n  }\n\n  @media (max-width: 480px) {\n    min-height: 108px;\n    padding: 15px;\n  }\n"]);return h=function(){return e},e}function x(){let e=(0,t._)(['\n  color: #313131;\n  font-size: 14px;\n  font-family: "Montserrat";\n  font-weight: 400;\n  line-height: 18px;\n  word-wrap: break-word;\n  text-align: center;\n']);return x=function(){return e},e}function f(){let e=(0,t._)(["\n  align-self: stretch;\n  padding-left: 15px;\n  padding-right: 15px;\n  padding-top: 8px;\n  padding-bottom: 8px;\n  background: ",";\n  border-radius: 6px;\n  justify-content: center;\n  align-items: center;\n  gap: 10px;\n  display: inline-flex;\n  border: ",";\n  cursor: pointer;\n  transition: all 0.2s;\n\n  &:hover {\n    background: ",";\n  }\n\n  @media (max-width: 480px) {\n    padding: 6px 12px;\n  }\n"]);return f=function(){return e},e}function m(){let e=(0,t._)(["\n  justify-content: center;\n  align-items: center;\n  gap: 8px;\n  display: flex;\n"]);return m=function(){return e},e}function g(){let e=(0,t._)(["\n  color: ",';\n  font-size: 14px;\n  font-family: "Montserrat";\n  font-weight: 500;\n  line-height: 24px;\n  word-wrap: break-word;\n\n  @media (max-width: 480px) {\n    font-size: 12px;\n    line-height: 20px;\n  }\n']);return g=function(){return e},e}function w(){let e=(0,t._)(["\n  width: 18px;\n  height: 18px;\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  svg {\n    width: 100%;\n    height: 100%;\n  }\n"]);return w=function(){return e},e}function v(){let e=(0,t._)(["\n  min-height: 200px;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  display: flex;\n  box-sizing: border-box;\n\n  @media (max-width: 480px) {\n    min-height: 150px;\n  }\n"]);return v=function(){return e},e}function y(){let e=(0,t._)(["\n  width: 100%;\n  padding-left: 15px;\n  padding-right: 15px;\n  padding-top: 4px;\n  padding-bottom: 4px;\n  background: ",";\n  border-top-left-radius: 12px;\n  border-top-right-radius: 12px;\n  ","\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 10px;\n  display: flex;\n  box-sizing: border-box;\n\n  @media (max-width: 480px) {\n    padding: 8px 12px;\n  }\n"]);return y=function(){return e},e}function b(){let e=(0,t._)(["\n  justify-content: flex-start;\n  align-items: center;\n  gap: 10px;\n  display: inline-flex;\n"]);return b=function(){return e},e}function j(){let e=(0,t._)(["\n  color: ",';\n  font-size: 12px;\n  font-family: "Montserrat";\n  font-weight: 500;\n  line-height: 20px;\n  word-wrap: break-word;\n']);return j=function(){return e},e}function C(){let e=(0,t._)(["\n  width: 100%;\n  flex: 1 1 0;\n  padding-top: 5px;\n  padding-bottom: 15px;\n  padding-left: 15px;\n  padding-right: 15px;\n  background: white;\n  border-bottom-right-radius: 12px;\n  border-bottom-left-radius: 12px;\n  ","\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 10px;\n  display: flex;\n  box-sizing: border-box;\n\n  @media (max-width: 480px) {\n    padding: 8px 12px 12px 12px;\n    gap: 8px;\n  }\n"]);return C=function(){return e},e}function E(){let e=(0,t._)(["\n  width: 100%;\n  justify-content: flex-start;\n  align-items: center;\n  gap: 10px;\n  display: flex;\n"]);return E=function(){return e},e}function A(){let e=(0,t._)(['\n  color: #313131;\n  font-size: 12px;\n  font-family: "Montserrat";\n  font-weight: 600;\n  line-height: 20px;\n  word-wrap: break-word;\n  flex: 1;\n']);return A=function(){return e},e}function k(){let e=(0,t._)(["\n  align-self: stretch;\n  justify-content: center;\n  align-items: center;\n  gap: 10px;\n  display: inline-flex;\n"]);return k=function(){return e},e}function S(){let e=(0,t._)(['\n  font-size: 12px;\n  font-family: "Montserrat";\n  line-height: 18px;\n  word-wrap: break-word;\n  width: 100%;\n\n  .label {\n    color: #313131;\n    font-weight: 600;\n  }\n\n  .value {\n    color: #313131;\n    font-weight: 400;\n  }\n\n  @media (max-width: 480px) {\n    font-size: 11px;\n    line-height: 16px;\n  }\n']);return S=function(){return e},e}function I(){let e=(0,t._)(["\n  justify-content: flex-start;\n  align-items: center;\n  gap: 5px;\n  display: inline-flex;\n  flex-wrap: wrap;\n  width: 100%;\n\n  @media (max-width: 480px) {\n    gap: 3px;\n  }\n"]);return I=function(){return e},e}function M(){let e=(0,t._)(['\n  overflow: hidden;\n  border-radius: 6px;\n  justify-content: center;\n  align-items: center;\n  gap: 10px;\n  display: flex;\n  background: none;\n  border: none;\n  cursor: pointer;\n  padding: 2px 4px;\n\n  span {\n    color: #0064c0;\n    font-size: 14px;\n    font-family: "Montserrat";\n    font-weight: 500;\n    line-height: 24px;\n    word-wrap: break-word;\n  }\n\n  &:hover span {\n    text-decoration: underline;\n  }\n\n  @media (max-width: 480px) {\n    span {\n      font-size: 12px;\n      line-height: 20px;\n    }\n  }\n']);return M=function(){return e},e}function L(){let e=(0,t._)(['\n  color: #0064c0;\n  font-size: 12px;\n  font-family: "Montserrat";\n  font-weight: 600;\n  line-height: 16px;\n  word-wrap: break-word;\n']);return L=function(){return e},e}function _(){let e=(0,t._)(["\n  width: 16px;\n  height: 16px;\n  min-width: 16px;\n  min-height: 16px;\n  position: relative;\n  background: ",";\n  border-radius: 50%;\n  border: ",";\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-shrink: 0;\n\n  svg {\n    width: 10px;\n    height: 10px;\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n  }\n"]);return _=function(){return e},e}function V(){let e=(0,t._)(["\n  width: ",";\n  height: ",";\n  margin-top: ",";\n  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);\n  background-size: 200px 100%;\n  animation: skeleton-loading 1.5s infinite;\n  border-radius: 4px;\n\n  ","\n"]);return V=function(){return e},e}function z(){let e=(0,t._)(["\n  width: ",";\n  height: ",";\n  border-radius: 50%;\n  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);\n  background-size: 200px 100%;\n  animation: skeleton-loading 1.5s infinite;\n  flex-shrink: 0;\n\n  ","\n"]);return z=function(){return e},e}function N(){let e=(0,t._)(["\n  width: ",";\n  height: ",";\n  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);\n  background-size: 200px 100%;\n  animation: skeleton-loading 1.5s infinite;\n  border-radius: 6px;\n\n  ","\n"]);return N=function(){return e},e}function H(){let e=(0,t._)(["\n  margin-top: 0px;\n  display: flex;\n  justify-content: center;\n\n  @media (max-width: 768px) {\n    width: 100%;\n  }\n"]);return H=function(){return e},e}function P(){let e=(0,t._)(['\n  background-color: #0064c0;\n  color: white;\n  border: none;\n  padding: 12px 24px;\n  border-radius: 8px;\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  min-width: 150px;\n  font-family: "Montserrat";\n  transition: background 0.2s;\n\n  &:hover {\n    background-color: #0052a3;\n  }\n\n  @media (max-width: 768px) {\n    width: 100%;\n    min-width: unset;\n  }\n']);return P=function(){return e},e}function R(){let e=(0,t._)(["\n  .transparent-modal-content {\n    background: transparent !important;\n    border: none !important;\n    box-shadow: none !important;\n  }\n"]);return R=function(){return e},e}function B(){let e=(0,t._)(["\n  background: #fff;\n  position: absolute;\n  top: 30px;\n  right: 30px;\n  border: none;\n  width: 32px;\n  height: 32px;\n  display: flex;\n  align-items: center;\n  justify-content: center;
1\n  cursor: pointer;\n  font-size: 20px;\n  color: #333;\n  z-index: 1000;\n\n  &:hover {\n    background: #ffffffff;\n  }\n"]);return B=function(){return e},e}let $=i.Ay.div(a()),T=i.Ay.div(o()),D=i.Ay.div(l()),q=i.Ay.span(d()),Z=i.Ay.div(s()),F=i.Ay.div(c()),U=i.Ay.div(u()),G=i.Ay.div(p()),K=i.Ay.div(h()),O=i.Ay.span(x());i.Ay.button(f(),e=>e.$inverted?"white":"#0064c0",e=>e.$inverted?"1px solid #0076E1":"none",e=>e.$inverted?"#f5f5f5":"#0052a3"),i.Ay.div(m()),i.Ay.span(g(),e=>e.$inverted?"#0064C0":"white"),i.Ay.div(w());let W=i.Ay.div(v()),Q=i.Ay.div(y(),e=>e.isDefault?"#0064C0":"white",e=>e.isDefault?"outline: 2px #0064C0 solid; outline-offset: -2px;":"border: 1px #CECECE solid; border-bottom: 1px solid #CECECE;"),J=i.Ay.div(b()),Y=i.Ay.span(j(),e=>e.isDefault?"white":"#0064C0"),X=i.Ay.div(C(),e=>e.isDefault?"outline: 2px #0064C0 solid; outline-offset: -2px;":"border: 1px #CECECE solid; border-top: none;"),ee=i.Ay.div(E()),en=i.Ay.span(A()),er=i.Ay.div(k()),et=i.Ay.div(S()),ei=i.Ay.div(I()),ea=i.Ay.button(M()),eo=i.Ay.span(L()),el=i.Ay.div(_(),e=>e.checked?"#0064C0":"#F9FAFB",e=>e.checked?"none":"1px #AFBACA solid"),ed="\n  @keyframes skeleton-loading {\n    0% {\n      background-position: -200px 0;\n    }\n    100% {\n      background-position: calc(200px + 100%) 0;\n    }\n  }\n",es=i.Ay.div(V(),e=>e.width||"100%",e=>e.height||"14px",e=>e.marginTop||"0",ed),ec=i.Ay.div(z(),e=>e.size||"16px",e=>e.size||"16px",ed),eu=i.Ay.div(N(),e=>e.width||"60px",e=>e.height||"24px",ed),ep=i.Ay.div(H()),eh=i.Ay.button(P()),ex=(0,i.DU)(R());i.Ay.button(B())},75e3:(e,n,r)=>{r.d(n,{T:()=>l});var t=r(37876),i=r(62945),a=r(14232),o=r(33100);let l=e=>{let{markers:n,height:r="300px",position:l=0,storeSelect:d=null}=e,[s,c]=(0,a.useState)(null),[u,p]=(0,a.useState)(null),{isLoaded:h}=(0,i.RH)({googleMapsApiKey:o.Ps});if(!h)return(0,t.jsx)("div",{children:"Cargando mapa..."});let x=d?d.latitude:n[l].latitude?n[l].latitude:0,f=d?d.longitude:n[l].longitude?n[l].longitude:0;return(0,t.jsx)(i.u6,{id:"map",mapContainerStyle:{height:r,width:"100%",borderRadius:"8px"},zoom:d?15:7,center:{lat:x,lng:f},children:n.map(e=>(0,t.jsx)(i.pH,{position:{lat:e.latitude?e.latitude:0,lng:e.longitude?e.longitude:0},title:e.name,label:u===e.id?{text:e.name,color:"black",className:"label-gmaps"}:void 0,onClick:()=>c(e),onMouseOver:()=>p(e.id),onMouseOut:()=>p(null),children:s===e&&(0,t.jsx)(i.Fu,{onCloseClick:()=>c(null),options:{maxWidth:250},children:(0,t.jsxs)("div",{style:{textAlign:"left"},children:[(0,t.jsx)("p",{className:"m-0",children:(0,t.jsx)("strong",{style:{fontWeight:"bold"},children:e.name})}),(0,t.jsx)("p",{className:"m-0",children:e.address1}),(0,t.jsx)("p",{className:"m-0",children:e.description})]})})},e.id))})}},83941:(e,n,r)=>{r.d(n,{g:()=>c});var t=r(14232);let i=e=>async n=>{if(!n||""===n.trim())throw Error("ID de formato es requerido");return await e.getStoresByFormat(n)};function a(e){var n,r,t,i,a,o,l,d,s,c,u,p,h,x,f,m,g,w,v,y,b;if(!e||!e.id||!e.name)throw Error("Datos de tienda inv\xe1lidos");return{id:e.id,description:null!=(n=e.description)?n:"",storeId:e.storeId,name:e.name,address1:null!=(r=e.address1)?r:"",address2:null!=(t=e.address2)?t:"",code:null!=(i=e.code)?i:"",latitude:null!=(a=e.latitude)?a:0,longitude:null!=(o=e.longitude)?o:0,altitude:e.altitude,phone:null!=(l=e.phone)?l:"",fax:null!=(d=e.fax)?d:"",email:null!=(s=e.email)?s:"",image:function(e){var n,r,t,i,a,o,l,d;if(!e)return null;if(!e.id||!e.resourceUrl)throw Error("Datos de imagen de tienda inv\xe1lidos");return{id:e.id,resourceUrl:e.resourceUrl,active:null==(n=e.active)||n,type:null!=(r=e.type)?r:"",coverImage:null!=(t=e.coverImage)&&t,description:null!=(i=e.description)?i:"",fileBase64:null!=(a=e.fileBase64)?a:"",origin:null!=(o=e.origin)?o:"",messageImage:null!=(l=e.messageImage)?l:null,norder:null!=(d=e.norder)?d:null}}(e.image),additionalInformation:null!=(c=e.additionalInformation)?c:"",mondaySchedule:null!=(u=e.mondaySchedule)?u:"",tuesdaySchedule:null!=(p=e.tuesdaySchedule)?p:"",wednesdaySchedule:null!=(h=e.wednesdaySchedule)?h:"",thursdaySchedule:null!=(x=e.thursdaySchedule)?x:"",fridaySchedule:null!=(f=e.fridaySchedule)?f:"",saturdaySchedule:null!=(m=e.saturdaySchedule)?m:"",sundaySchedule:null!=(g=e.sundaySchedule)?g:"",parishId:e.parishId,formatId:e.formatId,deliveryId:e.deliveryId,storeTypeId:e.storeTypeId,createdAt:e.createdAt,updatedAt:e.updatedAt,enabled:null==(w=e.enabled)||w,viewPortal:null==(v=e.viewPortal)||v,norder:null!=(y=e.norder)?y:0,viewDelivery:null==(b=e.viewDelivery)||b,selected:!1,openMore:!1}}var o=r(91040);let l=r(94990).Mq,d={async getStoresByFormat(e){try{var n,r,t=(await o.A.get("".concat(l,"/catalog-api/store/get_stores_by_format/").concat(e))).data;if(!t||"boolean"!=typeof t.correctProcess)throw Error("Respuesta de tiendas inv\xe1lida");return{correctProcess:t.correctProcess,message:null!=(n=t.message)?n:"",data:Array.isArray(t.data)?t.data.map(a):[],pagination:null!=(r=t.pagination)?r:null}}catch(e){throw e}}};var s=r(33100);let c=()=>{let[e,n]=(0,t.useState)([]),[r,a]=(0,t.useState)(!1),[o,l]=(0,t.useState)(null),c=s.$j,u=async()=>
1{if(c){a(!0),l(null);try{let e=i(d),r=await e(c);r.correctProcess?n(r.data):l(r.message||"Error al cargar tiendas")}catch(e){l("Error al cargar tiendas"),console.error("Error fetching stores:",e)}finally{a(!1)}}};return(0,t.useEffect)(()=>{u()},[c]),{stores:e,loading:r,error:o,getStoresByFormat:u}}},84254:(e,n,r)=>{r.d(n,{X:()=>e7});var t=r(37876),i=r(14232);let a=e=>{let{color:n="#808080"}=e;return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M1.5 12.75C1.08579 12.75 0.75 13.0858 0.75 13.5C0.75 13.9142 1.08579 14.25 1.5 14.25V13.5V12.75ZM16.5 14.25C16.9142 14.25 17.25 13.9142 17.25 13.5C17.25 13.0858 16.9142 12.75 16.5 12.75V13.5V14.25ZM15.75 16.0514C15.75 16.4656 16.0858 16.8014 16.5 16.8014C16.9142 16.8014 17.25 16.4656 17.25 16.0514H16.5H15.75ZM22.5 11.25H23.25C23.25 11.1546 23.2318 11.06 23.1964 10.9715L22.5 11.25ZM16.5 7.5V6.75C16.0858 6.75 15.75 7.08579 15.75 7.5H16.5ZM20.4922 7.5V6.75V7.5ZM21.1886 7.97146L21.8849 7.69291V7.69291L21.1886 7.97146ZM1.5 17.25H0.75H1.5ZM2.25 6V6.75V6ZM16.5 6H17.25C17.25 5.58579 16.9142 5.25 16.5 5.25V6ZM15.375 18V17.25H8.625V18V18.75H15.375V18ZM19.875 18H19.125C19.125 18.8284 18.4534 19.5 17.625 19.5V20.25V21C19.2819 21 20.625 19.6569 20.625 18H19.875ZM17.625 20.25V19.5C16.7966 19.5 16.125 18.8284 16.125 18H15.375H14.625C14.625 19.6569 15.9681 21 17.625 21V20.25ZM15.375 18H16.125C16.125 17.1716 16.7966 16.5 17.625 16.5V15.75V15C15.9681 15 14.625 16.3431 14.625 18H15.375ZM17.625 15.75V16.5C18.4534 16.5 19.125 17.1716 19.125 18H19.875H20.625C20.625 16.3431 19.2819 15 17.625 15V15.75ZM8.625 18H7.875C7.875 18.8284 7.20343 19.5 6.375 19.5V20.25V21C8.03185 21 9.375 19.6569 9.375 18H8.625ZM6.375 20.25V19.5C5.54657 19.5 4.875 18.8284 4.875 18H4.125H3.375C3.375 19.6569 4.71815 21 6.375 21V20.25ZM4.125 18H4.875C4.875 17.1716 5.54657 16.5 6.375 16.5V15.75V15C4.71815 15 3.375 16.3431 3.375 18H4.125ZM6.375 15.75V16.5C7.20343 16.5 7.875 17.1716 7.875 18H8.625H9.375C9.375 16.3431 8.03185 15 6.375 15V15.75ZM1.5 13.5V14.25H16.5V13.5V12.75H1.5V13.5ZM16.5 16.0514H17.25V11.25H16.5H15.75V16.0514H16.5ZM16.5 11.25V12H22.5V11.25V10.5H16.5V11.25ZM22.5 11.25H21.75V17.25H22.5H23.25V11.25H22.5ZM22.5 17.25H21.75V17.25L22.2803 17.7803L22.8107 18.3107C23.092 18.0294 23.25 17.6478 23.25 17.25H22.5ZM22.2803 17.7803L21.75 17.25V17.25V18V18.75C22.1478 18.75 22.5294 18.592 22.8107 18.3107L22.2803 17.7803ZM21.75 18V17.25H19.875V18V18.75H21.75V18ZM16.5 11.25H17.25V7.5H16.5H15.75V11.25H16.5ZM16.5 7.5V8.25H20.4922V7.5V6.75H16.5V7.5ZM20.4922 7.5V8.25V8.25L20.9127 7.62895L21.3332 7.0079C21.0849 6.83983 20.792 6.75 20.4922 6.75V7.5ZM20.9127 7.62895L20.4922 8.25V8.25L21.1886 7.97146L21.8849 7.69291C21.7736 7.41457 21.5814 7.17597 21.3332 7.0079L20.9127 7.62895ZM21.1886 7.97146L20.4922 8.25L21.8036 11.5285L22.5 11.25L23.1964 10.9715L21.8849 7.69291L21.1886 7.97146ZM4.125 18V17.25H2.25V18V18.75H4.125V18ZM2.25 18V17.25L2.25 17.25L1.71967 17.7803L1.18934 18.3107C1.47065 18.592 1.85218 18.75 2.25 18.75V18ZM1.71967 17.7803L2.25 17.25L2.25 17.25H1.5H0.75C0.75 17.6478 0.908035 18.0294 1.18934 18.3107L1.71967 17.7803ZM1.5 17.25H2.25V6.75H1.5H0.75V17.25H1.5ZM1.5 6.75H2.25L2.25 6.75L1.71967 6.21967L1.18934 5.68934C0.908035 5.97064 0.75 6.35218 0.75 6.75H1.5ZM1.71967 6.21967L2.25 6.75L2.25 6.75V6V5.25C1.85217 5.25 1.47064 5.40804 1.18934 5.68934L1.71967 6.21967ZM2.25 6V6.75H16.5V6V5.25H2.25V6ZM16.5 6H15.75V16.0514H16.5H17.25V6H16.5Z",fill:n})})},o=e=>{let{color:n="#808080"}=e;return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M4.5 13.0864V19.5C4.5 19.6989 4.57902 19.8897 4.71967 20.0303C4.86032 20.171 5.05109 20.25 5.25 20.25H18.75C18.9489 20.25 19.1397 20.171 19.2803 20.0303C19.421 19.8897 19.5 19.6989 19.5 19.5V13.0865M21 9V10.5C21 11.2956 20.6839 12.0587 20.1213 12.6213C19.5587 13.1839 18.7956 13.5 18 13.5C17.2044 13.5 16.4413 13.1839 15.8787 12.6213C15.3161 12.0587 15 11.2956 15 10.5M21 9L19.6554 4.29396C19.6106 4.13725 19.516 3.99939 19.3859 3.90124C19.2558 3.80309 19.0973 3.75 18.9343 3.75H5.06573C4.90274 3.75 4.7442 3.80309 4.61408 3.90124C4.48396 3.99939 4.38936 4.13725 4.34458 4.29396L3 9M21 9H3M15 10.5V9M15 10.5C15 11.2956 14.6839 12.0587 14.1213 12.6213C13.5587 13.1839 12.7956 13.5 12 13.5C11.2044 13.5 10.4413 13.1839 9.87868 12.6213C9.31607 12.0587 9 11.2956 9 10.5M9 10.5V9M9 10.5C9 11.2956 8.68393 12.0587 8.12132 12.6213C7.55871 13.1839 6.79565 13.5 6 13.5C5.20435 13.5 4.44129 13.1839 3.87868 12.6213C3.31607 12.0587 3 11.2956 3 10.5V9",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},l=e=>{let{color:n="#808080"}=e;return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M1.5 20.2485H22.5M20.9995 20.2485V9.74854C20.9995 9.54962 20.9204 9.35886 20.7798 9.21821C20.6391 9.07755 20.4484 8.99854 20.2495 8.99854H13.4995M16.4995 16.4985H17.9995M13.4995 20.2485V3.74853C13.4995 3.54962 13.4204 3.35886 13.2798 3.21821C13.1391 3.07755 12.9484 2.99854 12.7495 2.99854H3.74945C3.55054 2.99854 3.35977 3.07755 3.21912 3.21821C3.07847 3.35886 2.99945 3.54962 2.99945 3.74853V20.2485M5.99945 16.4985H8.99945M16.4995 12.7485H17.9995M7.49945 12.7485H10.4995M5.99945 6.74854H8.99945",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},d=()=>(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M16.25 7.5L10 13.75L3.75 7.5",stroke:"#585858",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),s=()=>(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M10 3L4.5 8.5L2 6",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),c=()=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"#313131",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});var u=r(3033),p=r(21260),h=r(93763),x=r(28888),f=r(80427);function m(){let e=(0,x._)(["\n  width: 100%;\n  max-width: 780px;\n  max-height: 90vh;\n  background: white;\n  overflow-x: hidden;\n  overflow-y: auto;\n  border-radius: 6px;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  display: inline-flex;\n  box-sizing: border-box;\n\n  @media (max-width: 768px) {\n    width: 100%;\n    max-width: 100%;\n  }\n\n  @media (max-width: 480px) {\n    width: 100%;\n    max-width: 100%;\n    border-radius: 6px;\n  }\n"]);return m=function(){return e},e}function g(){let e=(0,x._)(["\n  align-self: stretch;\n  padding-top: 24px;\n  padding-bottom: 24px;\n  background: #e9f3fb;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  gap: 10px;\n  display: flex;\n\n  width: 100%;\n  box-sizing: border-box;
1\n\n  @media (max-width: 768px) {\n    align-items: flex-start;\n  }\n"]);return g=function(){return e},e}function w(){let e=(0,x._)(["\n  align-self: stretch;\n  position: relative;\n  justify-content: center;\n  align-items: center;\n  display: inline-flex;\n  padding: 0;\n\n  @media (max-width: 768px) {\n    justify-content: flex-start;\n    padding: 0 24px;\n  }\n\n  @media (max-width: 480px) {\n    padding: 0 24px;\n  }\n"]);return w=function(){return e},e}function v(){let e=(0,x._)(['\n  color: #313131;\n  font-size: 18px;\n  font-family: "Montserrat";\n  font-weight: 600;\n  line-height: 30px;\n  word-wrap: break-word;\n\n  @media (max-width: 480px) {\n    font-size: 16px;\n    line-height: 26px;\n  }\n']);return v=function(){return e},e}function y(){let e=(0,x._)(["\n  width: 24px;\n  height: 24px;\n  right: 24px;\n  top: -9px;\n  position: absolute;\n  cursor: pointer;\n\n  @media (max-width: 768px) {\n    right: 24px;\n    top: -12px;\n  }\n\n  @media (max-width: 480px) {\n    right: 24px;\n    top: -12px;\n  }\n"]);return y=function(){return e},e}function b(){let e=(0,x._)(["\n  justify-content: flex-start;\n  align-items: stretch;\n  gap: 10px;\n  display: flex;\n  width: 100%;\n  max-width: 100%;\n  overflow-x: auto;\n  overflow-y: hidden;\n  padding: 0 24px;\n\n  /* Hide scrollbar but keep functionality */\n  scrollbar-width: none; /* Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n\n  &::-webkit-scrollbar {\n    display: none; /* Chrome, Safari, Opera */\n  }\n\n  @media (max-width: 768px) {\n    justify-content: flex-start;\n    padding: 0 24px;\n    gap: 15px;\n  }\n\n  @media (max-width: 480px) {\n    padding: 0 24px;\n    gap: 15px;\n  }\n"]);return b=function(){return e},e}function j(){let e=(0,x._)(["\n  width: 240px;\n  min-width: 240px;\n  min-height: 90px;\n  max-height: 90px;\n  padding: 10px;\n  background: white;\n  border-radius: 12px;\n  border: ",";\n  justify-content: space-between;\n  align-items: center;\n  display: flex;\n  cursor: pointer;\n  box-sizing: border-box;\n\n  &:hover {\n    border: 2px solid #0064c0;\n  }\n\n  @media (max-width: 768px) {\n    min-height: 90px;\n    max-height: 90px;\n    padding: 10px;\n  }\n\n  @media (max-width: 480px) {\n    width: 260px;\n    min-width: 260px;\n    min-height: 90px;\n    max-height: 90px;\n    padding: 10px;\n  }\n"]);return j=function(){return e},e}function C(){let e=(0,x._)(["\n  justify-content: flex-start;\n  align-items: center;\n  gap: 10px;\n  display: flex;\n  flex: 1;\n  overflow: hidden;\n  min-height: 100%;\n"]);return C=function(){return e},e}function E(){let e=(0,x._)(["\n  width: 16px;\n  height: 16px;\n  min-width: 16px;\n  min-height: 16px;\n  position: relative;\n  background: ",";\n  border-radius: 50%;\n  border: ",";\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-shrink: 0;\n\n  svg {\n    width: 10px;\n    height: 10px;\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n  }\n"]);return E=function(){return e},e}function A(){let e=(0,x._)(["\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 2px;\n  display: flex;\n  flex: 1;\n  overflow: hidden;\n  min-height: 60px;\n  max-height: 60px;\n"]);return A=function(){return e},e}function k(){let e=(0,x._)(['\n  color: #313131;\n  font-size: 14px;\n  font-family: "Montserrat";\n  font-weight: 500;\n  line-height: 18px;\n  word-wrap: break-word;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  display: -webkit-box;\n  -webkit-line-clamp: 1;\n  -webkit-box-orient: vertical;\n']);return k=function(){return e},e}function S(){let e=(0,x._)(['\n  font-size: 12px;\n  font-family: "Montserrat";\n  font-weight: 400;\n  line-height: 16px;\n  word-wrap: break-word;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  width: 100%;\n\n  .label {\n    color: #313131;\n  }\n\n  .value {\n    color: #0a9952;\n    font-weight: 500;\n  }\n']);return S=function(){return e},e}function I(){let e=(0,x._)(["\n  align-self: stretch;\n  padding: 24px;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 24px;\n  display: flex;\n  overflow-x: hidden;\n  width: 100%;\n  box-sizing: border-box;\n\n  @media (max-width: 768px) {\n    padding: 24px;\n    gap: 20px;\n  }\n\n  @media (max-width: 480px) {\n    padding: 24px;\n    gap: 20px;\n  }\n"]);return I=function(){return e},e}function M(){let e=(0,x._)(["\n  align-self: stretch;\n  justify-content: space-between;\n  align-items: flex-start;\n  display: inline-flex;\n  box-sizing: border-box;\n  margin-bottom: 20px;\n"]);return M=function(){return e},e}function L(){let e=(0,x._)(["\n  flex: 1 1 0;\n  flex-direction: column;\n  justify-content: center;\n  align-items: flex-start;\n  display: inline-flex;\n  box-sizing: border-box;\n"]);return L=function(){return e},e}function _(){let e=(0,x._)(['\n  color: #313131;\n  font-size: 18px;\n  font-family: "Montserrat";\n  font-weight: 600;\n  line-height: 30px;\n  word-wrap: break-word;\n\n  @media (max-width: 480px) {\n    font-size: 16px;
1\n    line-height: 26px;\n  }\n']);return _=function(){return e},e}function V(){let e=(0,x._)(['\n  color: #585858;\n  font-size: 14px;\n  font-family: "Montserrat";\n  font-weight: 400;\n  line-height: 19px;\n  word-wrap: break-word;\n\n  @media (max-width: 480px) {\n    font-size: 13px;\n    line-height: 18px;\n  }\n']);return V=function(){return e},e}function z(){let e=(0,x._)(["\n  align-self: stretch;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 20px;\n  display: flex;\n  box-sizing: border-box;\n"]);return z=function(){return e},e}function N(){let e=(0,x._)(["\n  align-self: stretch;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 20px;\n  display: inline-flex;\n  box-sizing: border-box;\n\n  @media (max-width: 768px) {\n    flex-direction: column;\n    gap: 20px;\n  }\n\n  @media (max-width: 480px) {\n    gap: 20px;\n  }\n"]);return N=function(){return e},e}function H(){let e=(0,x._)(["\n  flex: 1 1 0;\n  min-height: 76px;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 6px;\n  display: inline-flex;\n  box-sizing: border-box;\n\n  @media (max-width: 768px) {\n    width: 100%;\n    flex: none;\n  }\n"]);return H=function(){return e},e}function P(){let e=(0,x._)(["\n  width: 341px;\n  min-height: 76px;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 6px;\n  display: inline-flex;\n  box-sizing: border-box;\n\n  @media (max-width: 768px) {\n    width: 100%;\n  }\n\n  @media (max-width: 480px) {\n    width: 100%;\n  }\n"]);return P=function(){return e},e}function R(){let e=(0,x._)(["\n  flex: 1 1 0;\n  align-self: stretch;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  gap: 6px;\n  display: inline-flex;\n  box-sizing: border-box;\n"]);return R=function(){return e},e}function B(){let e=(0,x._)(["\n  color: ",';\n  font-size: 14px;\n  font-family: "Montserrat";\n  font-weight: 500;\n  line-height: 24px;\n  word-wrap: break-word;\n']);return B=function(){return e},e}function $(){let e=(0,x._)(["\n  align-self: stretch;\n  height: 46px;\n  position: relative;\n  background: ",";\n  overflow: hidden;\n  border-radius: 6px;\n  border: 1px solid ",";\n  box-sizing: border-box;\n\n  &:focus-within {\n    border: 1px solid ",";\n  }\n"]);return $=function(){return e},e}function T(){let e=(0,x._)(['\n  width: 100%;\n  height: 100%;\n  border: none;\n  outline: none;\n  padding: 0 12px;\n  font-size: 14px;\n  font-family: "Montserrat";\n  background: transparent;\n  color: #313131;\n  font-weight: 500;\n  box-sizing: border-box;\n\n  &::placeholder {\n    color: #a7a7a7;\n    font-weight: 500;\n  }\n\n  &:focus::placeholder {\n    color: #bababa;\n  }\n']);return T=function(){return e},e}function D(){let e=(0,x._)(['\n  width: 100%;\n  height: 100%;\n  border: none;\n  outline: none;\n  padding: 0 12px;\n  padding-right: 40px;\n  font-size: 14px;\n  font-family: "Montserrat";\n  background: transparent;\n  color: ',";\n  font-weight: 500;\n  cursor: pointer;\n  appearance: none;\n  -webkit-appearance: none;\n  -moz-appearance: none;\n  box-sizing: border-box;\n\n  &::-ms-expand {\n    display: none;\n  }\n\n  &:focus {\n    color: ",";\n  }\n\n  option {\n    color: #313131;\n    background: white;\n  }\n\n  option:first-child {\n    color: #a7a7a7;\n  }\n\n  option:disabled {\n    color: #a7a7a7;\n  }\n"]);return D=function(){return e},e}function q(){let e=(0,x._)(['\n  color: #a7a7a7;\n  font-size: 14px;\n  font-family: "Montserrat";\n  font-weight: 500;\n  line-height: 24px;\n  word-wrap: break-word;\n  position: absolute;\n  left: 12px;\n  top: 50%;\n  transform: translateY(-50%);\n  pointer-events: none;\n']);return q=function(){return e},e}function Z(){let e=(0,x._)(['\n  color: #e92215;\n  font-size: 14px;\n  font-family: "Montserrat";\n  font-weight: 400;\n  line-height: 24px;\n  word-wrap: break-word;\n']);return Z=function(){return e},e}function F(){let e=(0,x._)(["\n  width: 20px;\n  height: 20px;\n  position: absolute;\n  right: 13px;\n  top: 50%;\n  transform: translateY(-50%);\n  pointer-events: none;\n"]);return F=function(){return e},e}function U(){let e=(0,x._)(["\n  align-self: stretch;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: center;\n  gap: 10px;\n  display: flex;\n  box-sizing: border-box;\n  margin-bottom: 10px;\n  margin-top: 10px;\n"]);return U=function(){return e},e}function G(){let e=(0,x._)(["\n  align-self: stretch;\n  justify-content: flex-start;\n  align-items: center;\n  gap: 10px;\n  display: inline-flex;\n  box-sizing: border-box;\n  margin-top: 10px;\n"]);return G=function(){return e},e}
1function K(){let e=(0,x._)(["\n  width: 20px;\n  height: 20px;\n  min-width: 20px;\n  min-height: 20px;\n  position: relative;\n  background: ",";\n  border-radius: 4px;\n  border: ",";\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-shrink: 0;\n\n  svg {\n    width: 12px;\n    height: 12px;\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n  }\n"]);return K=function(){return e},e}function O(){let e=(0,x._)(['\n  color: #313131;\n  font-size: 14px;\n  font-family: "Montserrat";\n  font-weight: 500;\n  line-height: 17px;\n  word-wrap: break-word;\n']);return O=function(){return e},e}function W(){let e=(0,x._)(['\n  color: #313131;\n  font-size: 12px;\n  font-family: "Montserrat";\n  font-weight: 500;\n  line-height: 17px;\n  word-wrap: break-word;\n\n  @media (max-width: 480px) {\n    font-size: 12px;\n    line-height: 17px;\n  }\n']);return W=function(){return e},e}function Q(){let e=(0,x._)(["\n  width: 250px;\n  padding: 8px 15px;\n  background: #0064c0;\n  border-radius: 6px;\n  justify-content: center;\n  align-items: center;\n  gap: 10px;\n  display: inline-flex;\n  border: none;\n  cursor: pointer;\n  box-sizing: border-box;\n\n  &:hover {\n    background: #0052a3;\n  }\n\n  &:disabled {\n    background: #bababa;\n    cursor: not-allowed;\n  }\n\n  @media (max-width: 768px) {\n    width: 100%;\n    max-width: 100%;\n  }\n\n  @media (max-width: 480px) {\n    width: 100%;\n    align-self: stretch;\n    padding: 8px 15px;\n  }\n"]);return Q=function(){return e},e}function J(){let e=(0,x._)(['\n  color: white;\n  font-size: 16px;\n  font-family: "Montserrat";\n  font-weight: 500;\n  line-height: 28px;\n  word-wrap: break-word;\n\n  @media (max-width: 480px) {\n    font-size: 14px;\n    line-height: 24px;\n  }\n']);return J=function(){return e},e}function Y(){let e=(0,x._)(["\n  width: ",";\n  height: ",";\n  margin-bottom: ",";\n  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);\n  background-size: 200px 100%;\n  animation: skeleton-loading 1.5s infinite;\n  border-radius: 6px;\n\n  ","\n"]);return Y=function(){return e},e}function X(){let e=(0,x._)(["\n  width: ",";\n  height: ",";\n  margin-bottom: ",";\n  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);\n  background-size: 200px 100%;\n  animation: skeleton-loading 1.5s infinite;\n  border-radius: 4px;\n\n  ","\n"]);return X=function(){return e},e}function ee(){let e=(0,x._)(["\n  width: ",";\n  height: ",";\n  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);\n  background-size: 200px 100%;\n  animation: skeleton-loading 1.5s infinite;\n  border-radius: 6px;\n\n  ","\n"]);return ee=function(){return e},e}let en=f.Ay.div(m()),er=f.Ay.div(g()),et=f.Ay.div(w()),ei=f.Ay.span(v()),ea=f.Ay.div(y()),eo=f.Ay.div(b()),el=f.Ay.div(j(),e=>e.selected?"2px solid #0064C0":"1px solid #CECECE"),ed=f.Ay.div(C()),es=f.Ay.div(E(),e=>e.checked?"#0064C0":"#F9FAFB",e=>e.checked?"none":"1px #AFBACA solid"),ec=f.Ay.div(A()),eu=f.Ay.span(k()),ep=f.Ay.div(S()),eh=f.Ay.div(I()),ex=f.Ay.div(M()),ef=f.Ay.div(L()),em=f.Ay.span(_()),eg=f.Ay.span(V()),ew=f.Ay.div(z()),ev=f.Ay.div(N()),ey=f.Ay.div(H()),eb=f.Ay.div(P());f.Ay.div(R());let ej=f.Ay.span(B(),e=>e.$isError?"#E92215":"#313131"),eC=f.Ay.div($(),e=>e.$isError?"#FFF5F4":"white",e=>e.$isError?"#FFA19B":"#BABABA",e=>e.$isError?"#FFA19B":"#585858"),eE=f.Ay.input(T()),eA=f.Ay.select(D(),e=>e.$hasValue?"#313131":"#A7A7A7",e=>e.$hasValue?"#313131":"#BABABA");f.Ay.span(q());let ek=f.Ay.span(Z()),eS=f.Ay.div(F()),eI=f.Ay.div(U()),eM=f.Ay.div(G()),eL=f.Ay.div(K(),e=>e.checked?"#0064C0":"#F9FAFB",e=>e.checked?"none":"1px #AFBACA solid"),e_=f.Ay.span(O()),eV=f.Ay.span(W());f.Ay.button(Q()),f.Ay.span(J());let ez="\n  @keyframes skeleton-loading {\n    0% {\n      background-position: -200px 0;\n    }\n    100% {\n      background-position: calc(200px + 100%) 0;\n    }\n  }\n",eN=f.Ay.div(Y(),e=>e.width||"100%",e=>e.height||"46px",e=>e.marginBottom||"0",ez),eH=f.Ay.div(X(),e=>e.width||"100%",e=>e.height||"20px",e=>e.marginBottom||"0",ez),eP=f.Ay.div(ee(),e=>e.width||"250px",e=>e.height||"42px",ez),eR=e=>{if(!/^\d{10}$/.test(e))return!1;let n=parseInt(e.substring(0,2),10);if(n<1||n>24||parseInt(e.charAt(2),10)>=6)return!1;let r=e.split("").map(Number),t=r[9],i=0;for(let e=0;e<9;e++){let n=r[e];e%2==0&&(n*=2)>9&&(n-=9),i+=n}return(i%10==0?0:10-i%10)===t},eB=e=>{let{receiverName:n,receiverLastName:r,receiverIdCard:i,onReceiverNameChange:a,onReceiverLastNameChange:o,onReceiverIdCardChange:l,showValidationErrors:d,validationErrors:s}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(ev,{children:[(0,t.jsxs)(ey,{children:[(0,t.jsx)(ej,{$isError:!!(d&&s.receiverName),children:"Nombre*"}),(0,t.jsx)(eC,{$isError:!!(d&&s.receiverName),children:(0,t.jsx)(eE,{type:"text",value:n,onChange:e=>a(e.target.value),placeholder:"Ingresa el nombre del receptor",maxLength:60})}),d&&s.receiverName&&(0,t.jsx)(ek,{children:s.receiverName})]}),(0,t.jsxs)(ey,{children:[(0,t.jsx)(ej,{$isError:!!(d&&s.receiverLastName),children:"Apellido*"}),(0,t.jsx)(eC,{$isError:!!(d&&s.receiverLastName),children:(0,t.jsx)(eE,{type:"text",value:r,onChange:e=>o(e.target.value),placeholder:"Ingresa el apellido del receptor",maxLength:60})}),d&&s.receiverLastName&&(0,t.jsx)(ek,{children:s.receiverLastName})]})]}),(0,t.jsx)(ev,{children:(0,t.jsxs)(eb,{children:[(0,t.jsx)(ej,{$isError:!!(d&&s.receiverIdCard),children:"C\xe9dula*"}),(0,t.jsx)(eC,{$isError:!!(d&&s.receiverIdCard),children:(0,t.jsx)(eE,{type:"text",value:i,onChange:e=>{let n=e.target.value;/^\d*$/.test(n)&&n.length<=10&&l(n)},placeholder:"Ingresa la c\xe9dula (10 d\xedgitos)",maxLength:10})}),d&&s.receiverIdCard&&(0,t.jsx)(ek,{children:s.receiverIdCard})]})})]})};var e$=r(47269),eT=r(33955);let eD=e=>{let{onSubmit:n,memberId:r,provinces:a,provincesLoading:o,provincesError:l,isEditing:c=!1,addressToEdit:x=null,isFromCheckout:f=!1,onBillingDataPrefill:m,receiverName:g="",receiverLastName:w="",receiverIdCard:v="",isReceiver:y=!0,onReceiverDataChange:b}=e,{isMovil:j}=(0,eT.b)(),{createAddress:C,loading:E,error:A}=(0,u.a)(),{updateAddress:k,loading:S,error:I}=(0,p.x)(),[M,L]=(0,i.useState)(""),[_,V]=(0,i.useState)(""),[z,N]=(0,i.useState)(""),[H,P]=(0,i.useState)({sector:"",callePrincipal:"",numeracion:"",calleSecundaria:"",celular:"",referencia1:"",referencia2:""}),[R,B]=(0,i.useState)(!!f),[$,T]=(0,i.useState)({}),[D,q]=(0,i.useState)(!1),Z=!r||"guest"===r;(0,i.useEffect)(()=>{c&&x&&(L(x.state||""),V(x.city||""),N(x.localidad||""),P({sector:x.homeSector||"",callePrincipal:x.mainStreet||"",numeracion:x.nomenclature||"",calleSecundaria:x.secondaryStreet||"",celular:x.phoneNumber||"",referencia1:x.reference||"",referencia2:x.anotherReference||""}))},[c,x]),(0,i.useEffect)(()=>{f&&m&&R&&m({address:"".concat(H.sector,", ").concat(H.callePrincipal," ").concat(H.numeracion," y ").concat(H.calleSecundaria).trim(),phone:H.celular,useForBilling:R})},[H,R,f,m]);let F=null==a?void 0:a.find(e=>e.id===M),U=(null==F?void 0:F.listCanton)||[],G=U.find(e=>e.id===_),K=(null==G?void 0:G.listParish)||[];(0,i.useEffect)(()=>{c||""===M||(V(""),N(""),T(e=>({...e,provincia:"",canton:"",localidad:""})))},[M,c]),(0,i.useEffect)(()=>{c||""===_||(N(""),T(e=>({...e,localidad:""})))},[_,c]);let O=(e,n)=>{P(r=>({...r,[e]:n})),$[e]&&T(n=>({...n,[e]:""}))},W=(e,n)=>{"provincia"===e?L(n):"canton"===e?V(n):"localidad"===e&&N(n),$[e]&&T(n=>({...n,[e]:""}))},Q=async()=>{let e={};if(M||(e.provincia="El campo es requerido"),_||(e.canton="El campo es requerido"),z||(e.localidad="El campo es requerido"),H.sector.trim()||(e.sector="El campo es requerido"),H.callePrincipal.trim()||(e.callePrincipal="El campo es requerido"),H.calleSecundaria.trim()||(e.calleSecundaria="El campo es requerido"),H.celular.trim()||(e.celular="El campo es requerido"),H.referencia1.trim()||(e.referencia1="El campo es requerido"),Z||y||(g.trim()||(e.receiverName="Ingresa el nombre del receptor"),w.trim()||(e.receiverLastName="Ingresa el apellido del receptor"),v.trim()?eR(v)||(e.receiverIdCard="C\xe9dula inv\xe1lida. Debe ser una c\xe9dula ecuatoriana v\xe1lida de 10 d\xedgitos"):e.receiverIdCard="Ingresa la c\xe9dula del receptor"),T(e),q
1(!0),Object.keys(e).length>0)return void h.oR.error("Por favor, completa todos los campos requeridos",h.Kf);try{let e={address:"".concat(H.sector,", ").concat(H.callePrincipal," ").concat(H.numeracion," y ").concat(H.calleSecundaria),alias:"Mi casa en ".concat(H.sector),city:_,lat:"",lon:"",reference:H.referencia1,state:M,enabled:!0,phoneNumber:H.celular,localidad:z,addressTypeId:"1",cost:0,storeId:"",homeSector:H.sector,mainStreet:H.callePrincipal,secondaryStreet:H.calleSecundaria,nomenclature:H.numeracion,anotherReference:H.referencia2,receiverName:Z||y?"":g,receiverLastName:Z||y?"":w,receiverIdCard:Z||y?"":v};if(Z){let r={...e,id:c&&x?x.id:"",idMember:"guest",principal:!c||(null==x?void 0:x.principal)||!1};n(r)}else if(c&&x){let t={...e,id:x.id,idMember:r,principal:x.principal||!1},i=await k(x.id,t);i&&(h.oR.success("Direcci\xf3n de entrega actualizada exitosamente",h.tP),n(i))}else{let t={...e,id:"",idMember:r,principal:!0},i=await C(t);i&&(h.oR.success("Direcci\xf3n de entrega creada exitosamente",h.tP),n(i))}}catch(n){console.error("Error al procesar la direcci\xf3n:",n);let e=c?I:A;h.oR.error(e||"Error al guardar la direcci\xf3n de entrega. Por favor, int\xe9ntalo de nuevo.",h.Kf)}};if(o)return(0,t.jsx)("div",{children:"Cargando provincias..."});if(l)return(0,t.jsxs)("div",{children:["Error al cargar provincias: ",l]});let J=E||S,Y=A||I;return(0,t.jsx)(eh,{children:(0,t.jsxs)("div",{"data-testid":"address-form-section",children:[(0,t.jsx)(ex,{children:(0,t.jsxs)(ef,{children:[(0,t.jsx)(em,{children:"Entrega a domicilio"}),(0,t.jsx)(eg,{children:"Solo est\xe1n habilitadas las \xe1reas donde nuestro servicio de courier est\xe1 disponible."})]})}),Y&&(0,t.jsxs)("div",{style:{color:"red",marginBottom:"16px"},children:["Error al ",c?"actualizar":"crear"," la direcci\xf3n: ",Y]}),(0,t.jsxs)(ew,{children:[(0,t.jsxs)(ev,{children:[(0,t.jsxs)(ey,{children:[(0,t.jsx)(ej,{$isError:!!(D&&$.provincia),children:"Provincia*"}),(0,t.jsxs)(eC,{$isError:!!(D&&$.provincia),children:[(0,t.jsxs)(eA,{id:"home-province",name:"homeProvince",value:M,onChange:e=>W("provincia",e.target.value),required:!0,$hasValue:!!M,"data-testid":"address-province-select",children:[(0,t.jsx)("option",{value:"",children:"Selecciona una provincia"}),null==a?void 0:a.map(e=>(0,t.jsx)("option",{value:e.id,children:e.provinceName},e.id))]}),(0,t.jsx)(eS,{children:(0,t.jsx)(d,{})})]}),D&&$.provincia&&(0,t.jsx)(ek,{children:$.provincia})]}),(0,t.jsxs)(ey,{children:[(0,t.jsx)(ej,{$isError:!!(D&&$.canton),children:"Cant\xf3n / Ciudad*"}),(0,t.jsxs)(eC,{$isError:!!(D&&$.canton),children:[(0,t.jsxs)(eA,{id:"home-canton",name:"homeCanton",value:_,$hasValue:!!_,onChange:e=>W("canton",e.target.value),required:!0,disabled:!M,children:[(0,t.jsx)("option",{value:"",children:"Selecciona un cant\xf3n"}),U.map(e=>(0,t.jsx)("option",{value:e.id,children:e.cantonName},e.id))]}),(0,t.jsx)(eS,{children:(0,t.jsx)(d,{})})]}),D&&$.canton&&(0,t.jsx)(ek,{children:$.canton})]})]}),(0,t.jsxs)(ev,{children:[(0,t.jsxs)(ey,{children:[(0,t.jsx)(ej,{$isError:!!(D&&$.localidad),children:"Localidad*"}),(0,t.jsxs)(eC,{$isError:!!(D&&$.localidad),children:[(0,t.jsxs)(eA,{id:"home-parish",name:"homeParish",value:z,$hasValue:!!z,onChange:e=>W("localidad",e.target.value),required:!0,disabled:!_,children:[(0,t.jsx)("option",{value:"",children:"Selecciona una localidad"}),K.map(e=>(0,t.jsx)("option",{value:e.id,children:e.parishName},e.id))]}),(0,t.jsx)(eS,{children:(0,t.jsx)(d,{})})]}),D&&$.localidad&&(0,t.jsx)(ek,{children:$.localidad})]}),(0,t.jsxs)(ey,{children:[(0,t.jsx)(ej,{$isError:!!(D&&$.sector),children:"Sector*"}),(0,t.jsx)(eC,{$isError:!!(D&&$.sector),children:(0,t.jsx)(eE,{id:"home-sector",name:"homeSector",type:"text",autoComplete:"nope",placeholder:"Ingresa tu sector",value:H.sector,onChange:e=>O("sector",e.target.value)})}),D&&$.sector&&(0,t.jsx)(ek,{children:$.sector})]})]}),(0,t.jsxs)(ev,{children:[(0,t.jsxs)(ey,{children:[(0,t.jsx)(ej,{$isError:!!(D&&$.callePrincipal),children:"Calle principal*"}),(0,t.jsx)(eC,{$isError:!!(D&&$.callePrincipal),children:(0,t.jsx)(eE,{id:"home-main-street",name:"homeMainStreet",type:"text",placeholder:"Selecciona una localidad",value:H.callePrincipal,onChange:e=>O("callePrincipal",e.target.value),"data-testid":"address-main-street"})}),D&&$.callePrincipal&&(0,t.jsx)(ek,{children:$.callePrincipal})]}),(0,t.jsxs)(ey,{children:[(0,t.jsx)(ej,{children:"Numeraci\xf3n"}),(0,t.jsx)(eC,{children:(0,t.jsx)(eE,{id:"home-numbering",name:"homeNumbering",type:"text",placeholder:"Ingresa la numeraci\xf3n",value:H.numeracion,onChange:e=>O("numeracion",e.target.value)})})]})]}),(0,t.jsxs)(ev,{children:[(0,t.jsxs)(ey,{children:[(0,t.jsx)(ej,{$isError:!!(D&&$.calleSecundaria),children:"Calle secundaria*"}),(0,t.jsx)(eC,{$isError:!!(D&&$.calleSecundaria),children:(0,t.jsx)(eE,{id:"home-secondary-street",name:"homeSecondaryStreet",type:"text",placeholder:"Selecciona una localidad",value:H.calleSecundaria,onChange:e=>O("calleSecundaria",e.target.value)})}),D&&$.calleSecundaria&&(0,t.jsx)(ek,{children:$.calleSecundaria})]}),(0,t.jsxs)(ey,{children:[(0,t.jsx)(ej,{$isError:!!(D&&$.referencia1),children:"Referencia 1*"}),(0,t.jsx)(eC,{$isError:!!(D&&$.referencia1),children:(0,t.jsx)(eE,{id:"home-reference1",name:"homeReference1",type:"text",placeholder:"Ingresa tu referencia",value:H.referencia1,onChange:e=>O("referencia1",e.target.value),"data-testid":"address-reference"})}),D&&$.referencia1&&(0,t.jsx)(ek,{children:$.referencia1})]})]}),(0,t.jsxs)(ev,{children:[(0,t.jsxs)(ey,{children:[(0,t.jsx)(ej,{children:"Referencia 2"}),(0,t.jsx)(eC,{children:(0,t.jsx)(eE,{id:"home-reference2",name:"homeReference2",type:"text",placeholder:"Ingresa una referencia",value:H.referencia2,onChange:e=>O("referencia2",e.target.value)})})]}),(0,t.jsxs)(ey,{"data-testid":"address-phone",children:[(0,t.jsx)(ej,{$isError:!!(D&&$.celular),children:"Celular*"}),(0,t.jsx)(eC,{$isError:!!(D&&$.celular),children:(0,t.jsx)(eE,{id:"home-phone",name:"homePhone",type:"tel",placeholder:"Ingresa tu n\xfamero de celular",value:H.celular,onChange:e=>O("celular",e.target.value)})}),D&&$.celular&&(0,t.jsx)(ek,{children:$.celular})]})]})]}),!Z&&(0,t.jsx)(eI,{children:(0,t.jsxs)(eM,{children:[(0,t.jsx)(eL,{checked:y,onClick:()=>{b&&b(g,w,v,!y)},children:y&&(0,t.jsx)(s,{})}),(0,t.jsx)(e_,{children:"Soy la persona que va a recibir el pedido"})]})}),!Z&&!y&&(0,t.jsx)(ew,{children:(0,t.jsx)(eB,{receiverName:g,receiverLastName:w,receiverIdCard:v,onReceiverNameChange:e=>{b&&b(e,w,v,y)},onReceiverLastNameChange:e=>{b&&b(g,e,v,y)},onReceiverIdCardChange:e=>{b&&b(g,w,e,y)},showValidationErrors:D,validationErrors:$})}),f&&(0,t.jsx)(eI,{children:(0,t.jsxs)(eM,{children:[(0,t.jsx)(eL,{checked:R,onClick:()=>{let e=!R;B(e),m&&m({address:"".concat(H.sector,", ").concat(H.callePrincipal," ").concat(H.numeracion," y ").concat(H.calleSecundaria),phone:H.celular,useForBilling:e})},children:R&&(0,t.jsx)(s,{})}),(0,t.jsx)(e_,{children:"Utilizar estos datos para la factura"})]})}),(0,t.jsx)(eV,{children:"\xbfNo logras encontrar la informaci\xf3n para ingresar tu direcci\xf3n? Posiblemente nuestro courier no tiene cobertura en el sector que buscas. Elije entre las opciones dis
1ponibles en la parte superior."}),(0,t.jsx)(e$.$$,{onClick:Q,disabled:E||S||J,width:j?"100%":"250px",height:"42px",style:{marginTop:"25px"},fontSize:j?"16px !important":"16px",children:E||S?"Guardando...":"Guardar"})]})})};var eq=r(86710);let eZ=e=>{let{onSubmit:n,memberId:r,isEditing:a=!1,addressToEdit:o=null,memberPhone:l="",receiverName:c="",receiverLastName:x="",receiverIdCard:f="",isReceiver:m=!0,onReceiverDataChange:g}=e,{isMovil:w}=(0,eT.b)(),{stores:v,loading:y,error:b}=(0,eq.g)(),{createAddress:j,loading:C,error:E}=(0,u.a)(),{updateAddress:A,loading:k,error:S}=(0,p.x)(),[I,M]=(0,i.useState)(""),[L,_]=(0,i.useState)(""),[V,z]=(0,i.useState)({}),[N,H]=(0,i.useState)(!1),P=!r||"guest"===r;i.useEffect(()=>{if(a&&o){let e=o.storeId;if(e&&v.length>0)for(let n of v){let r=n.listStores.find(n=>n.storeId.toString()===e);if(r){M(n.id),_(r.id);break}}}},[a,o,v]);let R=v.find(e=>e.id===I),B=(null==R?void 0:R.listStores.filter(e=>e.enabled&&e.viewDelivery))||[];i.useEffect(()=>{a||""===I||(_(""),z(e=>({...e,city:"",store:""})))},[I,a]);let $=async()=>{let e={};if(I||(e.city="Selecciona una ciudad"),L||(e.store="Selecciona una tienda"),P||m||(c.trim()||(e.receiverName="Ingresa el nombre del receptor"),x.trim()||(e.receiverLastName="Ingresa el apellido del receptor"),f.trim()?eR(f)||(e.receiverIdCard="C\xe9dula inv\xe1lida. Debe ser una c\xe9dula ecuatoriana v\xe1lida de 10 d\xedgitos"):e.receiverIdCard="Ingresa la c\xe9dula del receptor"),z(e),H(!0),Object.keys(e).length>0)return void h.oR.error("Por favor, completa todos los campos requeridos",h.Kf);let t=B.find(e=>e.id===L);if(!t){z({store:"Tienda no encontrada"}),h.oR.error("Tienda seleccionada no encontrada. Por favor, selecciona otra tienda.",h.Kf);return}try{var i,d;let e={address:"".concat(t.address1,", ").concat(t.address2),alias:"Retiro - ".concat(t.name),city:(null==R?void 0:R.id)||"",lat:(null==(i=t.latitude)?void 0:i.toString())||"",lon:(null==(d=t.longitude)?void 0:d.toString())||"",reference:t.name,state:(null==R?void 0:R.stateCode)||"",enabled:!0,phoneNumber:l||"",localidad:t.parishId,addressTypeId:"2",cost:0,storeId:t.storeId.toString(),homeSector:"",mainStreet:"".concat(t.address1,", ").concat(t.address2),secondaryStreet:"",nomenclature:"",anotherReference:"",receiverName:P||m?"":c,receiverLastName:P||m?"":x,receiverIdCard:P||m?"":f};if(P){let r={...e,id:a&&o?o.id:"",idMember:"guest",principal:!!a&&((null==o?void 0:o.principal)||!1)};n(r)}else if(a&&o){let t={...e,id:o.id,idMember:r,principal:o.principal||!1},i=await A(o.id,t);i&&(h.oR.success("Direcci\xf3n de retiro en tienda actualizada exitosamente",h.tP),n(i))}else{let t={...e,id:"",idMember:r,principal:!1},i=await j(t);i&&(h.oR.success("Direcci\xf3n de retiro en tienda creada exitosamente",h.tP),n(i))}}catch(n){console.error("Error al procesar la direcci\xf3n de tienda:",n);let e=a?S:E;h.oR.error(e||"Error al guardar la direcci\xf3n de retiro en tienda. Por favor, int\xe9ntalo de nuevo.",h.Kf)}};return y?(0,t.jsxs)(eh,{children:[(0,t.jsx)(ex,{children:(0,t.jsxs)(ef,{children:[(0,t.jsx)(eH,{width:"280px",height:"30px",marginBottom:"6px"}),(0,t.jsx)(eH,{width:"320px",height:"19px"})]})}),(0,t.jsxs)(ew,{children:[(0,t.jsx)(ev,{children:(0,t.jsxs)(eb,{children:[(0,t.jsx)(eH,{width:"80px",height:"24px",marginBottom:"6px"}),(0,t.jsx)(eN,{height:"46px"})]})}),(0,t.jsx)(ev,{children:(0,t.jsxs)(ey,{children:[(0,t.jsx)(eH,{width:"100px",height:"24px",marginBottom:"6px"}),(0,t.jsx)(eN,{height:"46px"})]})})]}),(0,t.jsx)(eI,{children:(0,t.jsxs)(eM,{children:[(0,t.jsx)(eN,{width:"20px",height:"20px"}),(0,t.jsx)(eH,{width:"280px",height:"17px"})]})}),(0,t.jsx)(eH,{width:"100%",height:"51px",marginBottom:"0"}),(0,t.jsx)(eP,{width:"250px",height:"42px"})]}):b?(0,t.jsx)(eh,{children:(0,t.jsxs)("div",{style:{textAlign:"center",padding:"20px",color:"red"},children:["Error al cargar tiendas: ",b]})}):(0,t.jsx)(eh,{children:(0,t.jsxs)("div",{"data-testid":"address-form-section",children:[(0,t.jsx)(ex,{children:(0,t.jsxs)(ef,{children:[(0,t.jsx)(em,{children:"Almacenes de Comohogar"}),(0,t.jsx)(eg,{children:"Elije el almac\xe9n de tu conveniencia."})]})}),(0,t.jsxs)(ew,{children:[(0,t.jsx)(ev,{children:(0,t.jsxs)(eb,{children:[(0,t.jsx)(ej,{$isError:!!(N&&V.city),children:"Ciudad*"}),(0,t.jsxs)(eC,{$isError:!!(N&&V.city),children:[(0,t.jsxs)(eA,{id:"store-city",name:"storeCity",value:I,onChange:e=>M(e.target.value),$hasValue:!!I,children:[(0,t.jsx)("option",{value:"",children:"Selecciona una ciudad"}),v.map(e=>(0,t.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,t.jsx)(eS,{children:(0,t.jsx)(d,{})})]}),N&&V.city&&(0,t.jsx)(ek,{children:V.city})]})}),(0,t.jsx)(ev,{children:(0,t.jsxs)(ey,{children:[(0,t.jsx)(ej,{$isError:!!(N&&V.store),
1children:"Almacenes*"}),(0,t.jsxs)(eC,{$isError:!!(N&&V.store),children:[(0,t.jsxs)(eA,{id:"store-selection",name:"storeSelection",value:L,onChange:e=>_(e.target.value),disabled:!I,$hasValue:!!L,children:[(0,t.jsx)("option",{value:"",children:"Selecciona un almacen"}),B.map(e=>(0,t.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,t.jsx)(eS,{children:(0,t.jsx)(d,{})})]}),N&&V.store&&(0,t.jsx)(ek,{children:V.store})]})})]}),!P&&(0,t.jsx)(eI,{children:(0,t.jsxs)(eM,{children:[(0,t.jsx)(eL,{checked:m,onClick:()=>{g&&g(c,x,f,!m)},children:m&&(0,t.jsx)(s,{})}),(0,t.jsx)(e_,{children:"Soy la persona que va a recibir el pedido"})]})}),(0,t.jsxs)(e_,{style:{marginTop:"20px"},children:["Debes presentar tu documento de identificaci\xf3n al momento de retirar el pedido. ",(0,t.jsx)("br",{})]}),!P&&!m&&(0,t.jsx)(ew,{children:(0,t.jsx)(eB,{receiverName:c,receiverLastName:x,receiverIdCard:f,onReceiverNameChange:e=>{g&&g(e,x,f,m)},onReceiverLastNameChange:e=>{g&&g(c,e,f,m)},onReceiverIdCardChange:e=>{g&&g(c,x,e,m)},showValidationErrors:N,validationErrors:V})}),(0,t.jsx)(eV,{children:"Te enviaremos un mensaje cuando tu pedido est\xe9 listo para ser retirado en almac\xe9n. Esto puede tardar entre 7 y 15 d\xedas h\xe1biles desde la emisi\xf3n de la factura. \xa1Recuerda que esta opci\xf3n no tiene costo adicional!"}),(0,t.jsx)("div",{style:{marginTop:"25px"},children:(0,t.jsx)(e$.$$,{onClick:$,disabled:C||k||y,width:w?"100%":"250px",fontSize:w?"16px !important":"16px",height:"42px",children:C||k?"Guardando...":"Guardar"})})]})})},eF=e=>async()=>await e.getAllProviderAddresses();function eU(e){var n,r,t,i,a,o,l,d,s,c,u,p,h,x,f;if(!e||!e.id||!e.name)throw Error("Datos de direcci\xf3n de proveedor inv\xe1lidos");return{id:e.id,providersDeliveryId:null!=(n=e.providersDeliveryId)?n:"",name:e.name,cantonId:null!=(r=e.cantonId)?r:"",address:null!=(t=e.address)?t:"",phone:null!=(i=e.phone)?i:"",mondaySchedule:null!=(a=e.mondaySchedule)?a:"",tuesdaySchedule:null!=(o=e.tuesdaySchedule)?o:"",wednesdaySchedule:null!=(l=e.wednesdaySchedule)?l:"",thursdaySchedule:null!=(d=e.thursdaySchedule)?d:"",fridaySchedule:null!=(s=e.fridaySchedule)?s:"",saturdaySchedule:null!=(c=e.saturdaySchedule)?c:"",sundaySchedule:null!=(u=e.sundaySchedule)?u:null,createdAt:null!=(p=e.createdAt)?p:"",updatedAt:null!=(h=e.updatedAt)?h:null,enabled:null!=(x=e.enabled)&&x,parishId:null!=(f=e.parishId)?f:""}}function eG(e){var n;if(!e||!e.id||!e.name)throw Error("Datos de ciudad con direcciones de proveedor inv\xe1lidos");return{id:e.id,name:e.name,stateCode:null!=(n=e.stateCode)?n:"",listAddresses:Array.isArray(e.listAddresses)?e.listAddresses.map(eU):[]}}var eK=r(80798);let eO={async getAllProviderAddresses(){try{var e,n,r=await eK.A.get("/orders-api/providerAddress/getAll_provider_address");if(!r||"boolean"!=typeof r.correctProcess)throw Error("Respuesta de direcciones de proveedor inv\xe1lida");return{correctProcess:r.correctProcess,message:null!=(e=r.message)?e:"",data:Array.isArray(r.data)?r.data.map(eG):[],pagination:null!=(n=r.pagination)?n:null}}catch(e){throw e}}},eW=()=>{let[e,n]=(0,i.useState)([]),[r,t]=(0,i.useState)(!1),[a,o]=(0,i.useState)(null),l=async()=>{try{t(!0),o(null);let e=eF(eO),r=await e();r.correctProcess?n(r.data):o(r.message||"Error al obtener las direcciones de courier")}catch(e){o(e instanceof Error?e.message:"Error al obtener las direcciones de courier")}finally{t(!1)}};return(0,i.useEffect)(()=>
1{l()},[]),{providerAddresses:e,loading:r,error:a,refetch:l}},eQ=e=>{let{onSubmit:n,memberId:r,isEditing:a=!1,addressToEdit:o=null,memberPhone:l="",receiverName:c="",receiverLastName:x="",receiverIdCard:f="",isReceiver:m=!0,onReceiverDataChange:g}=e,{isMovil:w}=(0,eT.b)(),{providerAddresses:v,loading:y,error:b}=eW(),{createAddress:j,loading:C,error:E}=(0,u.a)(),{updateAddress:A,loading:k,error:S}=(0,p.x)(),[I,M]=(0,i.useState)(""),[L,_]=(0,i.useState)(""),[V,z]=(0,i.useState)({}),[N,H]=(0,i.useState)(!1),P=!r||"guest"===r;i.useEffect(()=>{if(a&&o&&v.length>0){let e=o.address;if(e)for(let n of v){let r=n.listAddresses.find(n=>n.address===e||n.name===o.reference);if(r){M(n.id),_(r.id);break}}}},[a,o,v]);let R=v.find(e=>e.id===I),B=(null==R?void 0:R.listAddresses.filter(e=>e.enabled))||[];i.useEffect(()=>{a||""===I||(_(""),z(e=>({...e,city:"",address:""})))},[I,a]);let $=async()=>{let e={};if(I||(e.city="Selecciona una ciudad"),L||(e.address="Selecciona una agencia"),P||m||(c.trim()||(e.receiverName="Ingresa el nombre del receptor"),x.trim()||(e.receiverLastName="Ingresa el apellido del receptor"),f.trim()?eR(f)||(e.receiverIdCard="C\xe9dula inv\xe1lida. Debe ser una c\xe9dula ecuatoriana v\xe1lida de 10 d\xedgitos"):e.receiverIdCard="Ingresa la c\xe9dula del receptor"),z(e),H(!0),Object.keys(e).length>0)return void h.oR.error("Por favor, completa todos los campos requeridos",h.Kf);let t=B.find(e=>e.id===L);if(!t){z({address:"Agencia no encontrada"}),h.oR.error("Agencia seleccionada no encontrada. Por favor, selecciona otra agencia.",h.Kf);return}if(!t.parishId){z({address:"Esta agencia no tiene localidad configurada"}),h.oR.error("Esta agencia no est\xe1 disponible por ahora. Por favor, selecciona otra.",h.Kf);return}try{let e={address:t.address,alias:"Retiro - ".concat(t.name),city:(null==R?void 0:R.id)||"",lat:"",lon:"",reference:t.name,state:(null==R?void 0:R.stateCode)||"",enabled:!0,phoneNumber:l||"",localidad:t.parishId||"",addressTypeId:"3",cost:0,storeId:"",homeSector:"",mainStreet:t.address,secondaryStreet:"",nomenclature:"",anotherReference:"",receiverName:P||m?"":c,receiverLastName:P||m?"":x,receiverIdCard:P||m?"":f};if(P){let r={...e,id:a&&o?o.id:"",idMember:"guest",principal:!!a&&((null==o?void 0:o.principal)||!1)};n(r)}else if(a&&o){let t={...e,id:o.id,idMember:r,principal:o.principal||!1},i=await A(o.id,t);i&&(h.oR.success("Direcci\xf3n de retiro en courier actualizada exitosamente",h.tP),n(i))}else{let t={...e,id:"",idMember:r,principal:!1},i=await j(t);i&&(h.oR.success("Direcci\xf3n de retiro en courier creada exitosamente",h.tP),n(i))}}catch(n){console.error("Error al procesar la direcci\xf3n de courier:",n);let e=a?S:E;h.oR.error(e||"Error al guardar la direcci\xf3n de retiro en courier. Por favor, int\xe9ntalo de nuevo.",h.Kf)}};return y?(0,t.jsxs)(eh,{children:[(0,t.jsx)(ex,{children:(0,t.jsxs)(ef,{children:[(0,t.jsx)(eH,{width:"220px",height:"30px",marginBottom:"6px"}),(0,t.jsx)(eH,{width:"280px",height:"19px"})]})}),(0,t.jsxs)(ew,{children:[(0,t.jsx)(ev,{children:(0,t.jsxs)(eb,{children:[(0,t.jsx)(eH,{width:"80px",height:"24px",marginBottom:"6px"}),(0,t.jsx)(eN,{height:"46px"})]})}),(0,t.jsx)(ev,{children:(0,t.jsxs)(ey,{children:[(0,t.jsx)(eH,{width:"130px",height:"24px",marginBottom:"6px"}),(0,t.jsx)(eN,{height:"46px"})]})})]}),(0,t.jsx)(eH,{width:"100%",height:"51px",marginBottom:"0"}),(0,t.jsx)(eP,{width:"250px",height:"42px"})]}):b?(0,t.jsx)(eh,{children:(0,t.jsxs)("div",{style:{textAlign:"center",padding:"20px",color:"red"},children:["Error al cargar agencias: ",b]})}):(0,t.jsxs)(eh,{children:[(0,t.jsxs)("div",{"data-testid":"address-form-section",children:[(0,t.jsx)(ex,{children:(0,t.jsxs)(ef,{children:[(0,t.jsx)(em,{children:"Agencias de Urbano"}),(0,t.jsx)(eg,{children:"Elije la agencia de tu conveniencia."})]})}),(0,t.jsxs)(ew,{children:[(0,t.jsx)(ev,{children:(0,t.jsxs)(eb,{children:[(0,t.jsx)(ej,{$isError:!!(N&&V.city),children:"Ciudad*"}),(0,t.jsxs)(eC,{$isError:!!(N&&V.city),children:[(0,t.jsxs)(eA,{id:"courier-city",name:"courierCity",value:I,onChange:e=>M(e.target.value),$hasValue:!!I,children:[(0,t.jsx)("option",{value:"",children:"Selecciona una ciudad"}),v.map(e=>(0,t.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,t.jsx)(eS,{children:(0,t.jsx)(d,{})})]}),N&&V.city&&(0,t.jsx)(ek,{children:V.city})]})}),(0,t.jsx)(ev,{children:(0,t.jsxs)(ey,{children:[(0,t.jsx)(ej,{$isError:!!(N&&V.address),children:"Agencias Urbano*"}),(0,t.jsxs)(eC,{$isError:!!(N&&V.address),children:[(0,t.jsxs)(eA,{id:"courier-a
1ddress",name:"courierAddress",value:L,onChange:e=>_(e.target.value),disabled:!I,$hasValue:!!L,children:[(0,t.jsx)("option",{value:"",children:"Selecciona una agencia"}),B.map(e=>(0,t.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,t.jsx)(eS,{children:(0,t.jsx)(d,{})})]}),N&&V.address&&(0,t.jsx)(ek,{children:V.address})]})})]}),!P&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eI,{children:(0,t.jsxs)(eM,{children:[(0,t.jsx)(eL,{checked:m,onClick:()=>{g&&g(c,x,f,!m)},children:m&&(0,t.jsx)(s,{})}),(0,t.jsx)(e_,{children:"Soy la persona que va a recibir el pedido"})]})}),!m&&(0,t.jsx)(ew,{children:(0,t.jsx)(eB,{receiverName:c,receiverLastName:x,receiverIdCard:f,onReceiverNameChange:e=>{g&&g(e,x,f,m)},onReceiverLastNameChange:e=>{g&&g(c,e,f,m)},onReceiverIdCardChange:e=>{g&&g(c,x,e,m)},showValidationErrors:N,validationErrors:V})})]}),(0,t.jsx)(eV,{children:"Cuando la compra haya concluido, nos pondremos en contacto contigo para brindarte instrucciones del retiro."})]}),(0,t.jsx)(e$.$$,{onClick:$,disabled:C||k||y,width:w?"100%":"250px",height:"42px",fontSize:w?"16px !important":"16px",children:C||k?"Guardando...":"Guardar"})]})};var eJ=r(61467);r(20039);let eY="address_modal_tour_seen",eX=()=>{let e="driver-mobile-styles";if(document.getElementById(e))return;let n=document.createElement("style");n.id=e,n.textContent="\n    @media (max-width: 768px) {\n      .driver-popover {\n        max-width: 90vw !important;\n        margin: 10px !important;\n      }\n      .driver-popover-title {\n        font-size: 16px !important;\n      }\n      .driver-popover-description {\n        font-size: 14px !important;\n      }\n      .driver-popover-footer {\n        flex-wrap: wrap !important;\n        gap: 8px !important;\n      }\n      .driver-popover-navigation-btns {\n        display: flex !important;\n        flex-direction: row !important;\n        gap: 8px !important;\n        width: 100% !important;\n        justify-content: space-between !important;\n      }\n      .driver-popover-navigation-btns button {\n        flex: 1 !important;\n        white-space: nowrap !important;\n        padding: 8px 12px !important;\n        font-size: 14px !important;\n      }\n      .driver-popover-progress-text {\n        width: 100% !important;\n        text-align: center !important;\n        margin-top: 8px !important;\n      }\n    }\n  ",document.head.appendChild(n)},e0=()=>{let[e,n]=(0,i.useState)(!1),r=(0,i.useRef)(null);(0,i.useEffect)(()=>{eX()},[]);let t=(0,i.useCallback)(()=>"true"===localStorage.getItem(eY),[]),a=(0,i.useCallback)(()=>{localStorage.setItem(eY,"true")},[]),o=(0,i.useCallback)(()=>{if(r.current){try{r.current.destroy()}catch(e){}r.current=null}n(!1)},[]);return{isTourActive:e,startTour:(0,i.useCallback)(()=>{o();let e=[],t=1;document.querySelector('[data-testid="address-type-select"]')&&(e.push({element:'[data-testid="address-type-select"]',popover:{title:"".concat(t,". Tipo de env\xedo"),description:"Selecciona c\xf3mo deseas recibir tu pedido: entrega a domicilio, retiro en almac\xe9n o retiro en courier.",side:"bottom",align:"center"}}),t++);let i=document.querySelector('[data-testid="address-reference"]');i&&(e.push({element:'[data-testid="address-reference"]',popover:{title:"".concat(t,". Referencia"),description:"Indica lugares cercanos a tu domicilio que faciliten la ubicaci\xf3n (ej: cerca del parque central, frente a la farmacia, diagonal al supermercado).",side:"bottom",align:"start"}}),t++);let l=document.querySelector('[data-testid="address-phone"]');if(l&&(e.push({element:'[data-testid="address-phone"]',popover:{title:"".concat(t,". Celular"),description:"Ingresa tu n\xfamero de celular (10 d\xedgitos). Este n\xfamero ser\xe1 usado para contactarte sobre la entrega de tu pedido.",side:"bottom",align:"start"}}),t++),document.querySelector('[data-testid="address-form-section"]')&&!i&&!l&&(e.push({element:'[data-testid="address-form-section"]',popover:{title:"".concat(t,". Completa la informaci\xf3n"),description:"Selecciona la ciudad y el punto de retiro de tu preferencia.",side:"left",align:"start"}}),t++),document.querySelector('[data-testid="address-save-button"]')&&e.push({element:'[data-testid="address-save-button"]',popover:{title:"".concat(t,". Guardar"),description:"Una vez completados todos los campos, haz clic aqu\xed para guardar tu direcci\xf3n.",side:"top",align:"center"}}),0===e.length)return void console.warn("No se encontraron elementos para el tour del modal de direcci\xf3n");let d=(0,eJ.B)({showProgress:!0,showButtons:["next","previous","close"],steps:e,animate:!0,overlayColor:"rgba(0, 0, 0, 0.75)",stagePadding:10,stageRadius:8,allowClose:!0,disableActiveInteraction:!0,popoverClass:"address-modal-tour-popover",progressText:"Paso {{current}} de {{total}}",nextBtnText:"Siguiente →",prevBtnText:"← Anterior",doneBtnText:"\xa1Entendido!",onNextClick:()=>{r.current&&(r.current.hasNextStep()?r.current.moveNext():(o(),a()))},onCloseClick:()=>{o(),a()},onDestroyed:()=>{n(!1)}});r.current=d,n(!0),setTimeout(()=>{d.drive(0)},100)},[o,a]),stopTour:o,hasSeenTour:t()}};var e1=r(37393);let e5=[{id:"home",title:"Entrega a domicilio",value:"Por determinar",delivery:"7 - 15 d\xedas h\xe1biles"},{id:"store",title:"Retirar en almac\xe9n",value:"Sin costo",delivery:"7 - 15 d\xedas h\xe1biles"},{id:"courier",title:"Retirar de un courier",value:"Por determinar",delivery:"7 - 15 d\xedas h\xe1biles"}],e2=e=>{let{onCancel:n,onSubmit:r,memberId:d,provinces:u,provincesLoading:p,provincesError:h,isEditing:x=!1,addressToEdit:f=null,memberPhone:m="",isFromCheckout:g=!1,onBillingDataPrefill:w,receiverName:v="",receiverLastName:y="",receiverIdCard:b="",isReceiver:j=!0,onReceiverDataChange:C}=e,E=e=>{switch(e){case"1":default:return"home";case"2":return"store";case"3":return"courier"}},{isMovil:A}=(0,eT.b)(),k=x&&(null==f?void 0:f.addressTypeId)?E(f.addressTypeId):"home",[S,I]=(0,i.useState)(k),{isTourActive:M,startTour:L}=e0();i.useEffect(()=>{x&&(null==f?void 0:f.addressTypeId)&&I(E(f.addressTypeId))},[x,null==f?void 0:f.addressTypeId]),i.useEffect(()=>{g&&w&&"home"!==S&&w({address:"",phone:"",useForBilling:!1})},[S,g,w]);let _=(0,i.useMemo)(()=>{let e=[...e5];if(x&&k){let n=e.findIndex(e=>e.id===k);if(n>0){let[r]=e.splice(n,1);e=[r,...e]}}return e.map(e=>({...e,icon:"home"===e.id?(0,t.jsx)(a,{color:"home"===S?"#00529F":"#808080"}):"store"===e.id?(0,t.jsx)(o,{color:"store"===S?"#00529F":"#808080"}
1):(0,t.jsx)(l,{color:"courier"===S?"#00529F":"#808080"}),selected:S===e.id}))},[x,k,S]),V=e=>{I(e)};return(0,t.jsxs)(en,{children:[(0,t.jsxs)(er,{children:[(0,t.jsxs)(et,{children:[(0,t.jsx)(ei,{children:"Opciones de env\xedo o retiro"}),(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"10px"},children:[!M&&(0,t.jsxs)(e$.$$,{onClick:L,height:"30px",fontSize:A?"10px !important":"14px",children:["Ver tutorial",(0,t.jsx)(e1.Z5,{})]}),(0,t.jsx)(ea,{onClick:n,children:(0,t.jsx)(c,{})})]})]}),(0,t.jsx)(eo,{"data-testid":"address-type-select",children:_.map(e=>(0,t.jsxs)(el,{selected:e.selected,onClick:()=>V(e.id),children:[(0,t.jsxs)(ed,{children:[(0,t.jsx)(es,{checked:e.selected,children:e.selected&&(0,t.jsx)(s,{})}),(0,t.jsxs)(ec,{children:[(0,t.jsx)(eu,{children:e.title}),(0,t.jsxs)(ep,{children:[(0,t.jsx)("span",{className:"label",children:"Valor: "}),(0,t.jsx)("span",{className:"value",children:e.value})]}),(0,t.jsxs)(ep,{children:[(0,t.jsx)("span",{className:"label",children:"Entrega: "}),(0,t.jsx)("span",{className:"value",children:e.delivery})]})]})]}),e.icon]},e.id))})]}),(()=>{switch(S){case"home":return(0,t.jsx)(eD,{onSubmit:r,memberId:d,provinces:u,provincesLoading:p,provincesError:h,isEditing:x,addressToEdit:f,memberPhone:m,isFromCheckout:g,onBillingDataPrefill:w,receiverName:v,receiverLastName:y,receiverIdCard:b,isReceiver:j,onReceiverDataChange:C});case"store":return(0,t.jsx)(eZ,{onSubmit:r,memberId:d,isEditing:x,addressToEdit:f,memberPhone:m,receiverName:v,receiverLastName:y,receiverIdCard:b,isReceiver:j,onReceiverDataChange:C});case"courier":return(0,t.jsx)(eQ,{onSubmit:r,memberId:d,isEditing:x,addressToEdit:f,memberPhone:m,receiverName:v,receiverLastName:y,receiverIdCard:b,isReceiver:j,onReceiverDataChange:C});default:return null}})()]})},e7=e=>{let{onCancel:n,onSubmit:r,memberId:i,provinces:a,provincesLoading:o,provincesError:l,isEditing:d=!1,addressToEdit:s=null,memberPhone:c="",isFromCheckout:u=!1,onBillingDataPrefill:p,receiverName:h="",receiverLastName:x="",receiverIdCard:f="",isReceiver:m=!0,onReceiverDataChange:g}=e;return(0,t.jsx)(e2,{onCancel:n,onSubmit:r,memberId:i,provinces:a,provincesLoading:o,provincesError:l,isEditing:d,addressToEdit:s,memberPhone:c,isFromCheckout:u,onBillingDataPrefill:p,receiverName:h,receiverLastName:x,receiverIdCard:f,isReceiver:m,onReceiverDataChange:g})}},91672:(e,n,r)=>{r.d(n,{I:()=>s});var t=r(14232);let i=e=>async n=>{if(!n.documentNumber||""===n.documentNumber.trim())throw Error("N\xfamero de documento es requerido");return await e.updateSyscardUserDataOTP(n)};var a=r(91040),o=r(73571),l=r(33100);let d={async updateSyscardUserDataOTP(e){try{var n=(await a.A.post("".concat(l.Mq,"/users-api/user-members/syscard-user-data-update-otp-credit"),{...e,formatId:l.$j})).data;if(!n||"string"!=typeof n.accessToken||"string"!=typeof n.address)throw Error("Respuesta de actualizaci\xf3n de datos de usuario Syscard inv\xe1lida");return{accessToken:n.accessToken,address:n.address}}catch(e){throw(0,o.t)(e)}}},s=()=>{let[e,n]=(0,t.useState)(!1),[r,a]=(0,t.useState)(null),[o,l]=(0,t.useState)(null),[s,c]=(0,t.useState)(null);return{updateSyscardUserDataOTP:(0,t.useCallback)(async e=>{try{n(!0),a(null),l(null);let r=i(d),t=await r(e);return c(t),t}catch(e){throw a(e.message||"Error al actualizar datos de usuario Syscard"),l(e),e}finally{n(!1)}},[]),loading:e,error:r,lastError:o,data:s,clearState:(0,t.useCallback)(()=>{a(null),l(null),c(null)},[])}}}}]);

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.