1(self.webpackChunkvisitaecuador_com=self.webpackChunkvisitaecuador_com||[]).push([[1768],{32908:function(e,t,o){"use strict";o.r(t);var l=o(10467),r=o(5544),s=o(24765),i=o(89379),n=o(54756),a=o.n(n),c=o(65043),d=o(74078),f=o(73216),x=o(70579),h="#AAD524",m="#96c121",u="#f7fde8",p="#d4ed72",y="#1c1917",g="#57534e",j="#a8a29e",b="#f5f5f4",S="#e7e5e4",E="#FFFFFF",v="#d97706",w="#fffbeb",C="#fcd34d",B="#92400e",Y="#1d4ed8",F=d.vv.create({page:{flexDirection:"column",backgroundColor:E,fontFamily:"Helvetica"},topBand:{height:5,backgroundColor:h},bottomBand:{height:5,backgroundColor:h},body:{margin:"8pt 14pt",flexGrow:1},header:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:8,borderBottomWidth:1,borderBottomColor:p,marginBottom:8},logo:{width:85,height:28,objectFit:"contain"},headerCenter:{flex:1,alignItems:"center",paddingHorizontal:8},certTitle:{fontSize:13,fontFamily:"Helvetica-Bold",color:g,textAlign:"center"},certSubtitle:{fontSize:6,color:m,textAlign:"center",marginTop:1.5,fontFamily:"Helvetica-Oblique"},idBadge:{alignItems:"flex-end",borderWidth:1,borderColor:p,borderRadius:4,paddingHorizontal:8,paddingVertical:5,backgroundColor:u},idBadgeLabel:{fontSize:5,color:j,fontFamily:"Helvetica-Bold",textTransform:"uppercase"},idBadgeValue:{fontSize:8,color:y,fontFamily:"Helvetica-Bold"},folioBadge:{backgroundColor:h,borderRadius:4,paddingHorizontal:8,paddingVertical:5,alignItems:"flex-end"},folioLabel:{fontSize:5,color:u,fontFamily:"Helvetica-Bold",textTransform:"uppercase"},folioValue:{fontSize:7.5,color:E,fontFamily:"Helvetica-Bold"},susRow:{flexDirection:"row",backgroundColor:b,borderRadius:4,padding:"5pt 8pt",marginBottom:8,gap:12,borderWidth:1,borderColor:S},susCell:{flex:1},susLabel:{fontSize:5.5,color:j,fontFamily:"Helvetica-Bold",textTransform:"uppercase",marginBottom:1.5},susValue:{fontSize:8.5,color:y,fontFamily:"Helvetica-Bold"},susSub:{fontSize:6,color:g,marginTop:1},sectionHeader:{flexDirection:"row",alignItems:"center",paddingVertical:3,paddingHorizontal:8,backgroundColor:b,borderLeftWidth:3,borderLeftColor:h,marginBottom:5,marginTop:6},sectionTitle:{fontSize:7.5,fontFamily:"Helvetica-Bold",color:g,textTransform:"uppercase",letterSpacing:.3},estBlock:{flexDirection:"row",gap:8,padding:"7pt 8pt",borderWidth:1,borderColor:S,borderRadius:5,marginBottom:4},estImage:{width:55,height:55,borderRadius:3,objectFit:"cover",flexShrink:0},estInfo:{flex:1},estName:{fontSize:10,fontFamily:"Helvetica-Bold",color:y,marginBottom:3},estMetaRow:{flexDirection:"row",alignItems:"flex-start",marginTop:1.5},estMetaLabel:{fontSize:5.5,color:j,fontFamily:"Helvetica-Bold",width:40},estMetaValue:{fontSize:7,color:g,flex:1},reservaCards:{flexDirection:"row",gap:5,marginBottom:5},reservaCard:{flex:1,borderWidth:1,borderColor:S,borderRadius:5,padding:"5pt 6pt",alignItems:"center"},reservaCardLabel:{fontSize:5.5,color:j,fontFamily:"Helvetica-Bold",textTransform:"uppercase",marginBottom:2},reservaCardDay:{fontSize:20,color:y,fontFamily:"Helvetica-Bold",lineHeight:1},reservaCardMonth:{fontSize:7,color:g,textTransform:"uppercase"},reservaCardWeekday:{fontSize:6,color:j},reservaCardSub:{fontSize:6,color:m,marginTop:2},reservaStatCard:{flex:1,borderWidth:1,borderColor:S,borderRadius:5,padding:"5pt 6pt",alignItems:"center",justifyContent:"center"},reservaStatLabel:{fontSize:5.5,color:j,fontFamily:"Helvetica-Bold",textTransform:"uppercase",marginBottom:2,textAlign:"center"},reservaStatValue:{fontSize:18,color:y,fontFamily:"Helvetica-Bold",textAlign:"center",lineHeight:1},reservaStatSep:{fontSize:18,color:j,fontFamily:"Helvetica",lineHeight:1},reservaStatUnit:{fontSize:6,color:g,textAlign:"center",marginTop:1},precioBlock:{borderWidth:1,borderColor:S,borderRadius:5,overflow:"hidden",marginBottom:5},precioRow:{flexDirection:"row",alignItems:"center",paddingVertical:4,paddingHorizontal:8,borderBottomWidth:.5,borderBottomColor:S},precioRowLast:{flexDirection:"row",alignItems:"center",paddingVertical:4,paddingHorizontal:8},precioDesc:{flex:1,fontSize:7.5,color:y},precioAplica:{fontSize:6.5,color:Y,fontFamily:"Helvetica-Bold"},precioValor:{fontSize:7.5,color:y,fontFamily:"Helvetica-Bold",textAlign:"right"},precioValorAccent:{fontSize:7.5,color:v,fontFamily:"Helvetica-Bold",textAlign:"right"},subtotalRow:{flexDirection:"row",alignItems:"center",paddingVertical:4,paddingHorizontal:8,borderTopWidth:1,borderTopColor:S,backgroundColor:b},totalRow:{flexDirection:"row",alignItems:"center",paddingVertical:5,paddingHorizontal:8,backgroundColor:u},subtotalLabel:{flex:1,fontSize:7.5,color:g,fontFamily:"Helvetica-Bold"},subtotalValor:{fontSize:7.5,color:g,fontFamily:"Helvetica-Bold",textAlign:"right"},totalLabel:{flex:1,fontSize:8.5,color:y,fontFamily:"Helvetica-Bold"},totalValor:{fontSize:11,color:m,fontFamily:"Helvetica-Bold",textAlign:"right"},wineBlock:{borderWidth:1,borderColor:C,borderRadius:5,overflow:"hidden",marginBottom:5,backgroundColor:w},wineHeader:{flexDirection:"row",alignItems:"center",paddingVertical:4,paddingHorizontal:8,backgroundColor:v,gap:5},wineHeaderText:{fontSize:7.5,color:E,fontFamily:"Helvetica-Bold"},wineBody:{flexDirection:"row",padding:"6pt 8pt",gap:8},wineImg:{width:40,height:40,borderRadius:3,objectFit:"cover"},wineInfo:{flex:1},wineName:{fontSize:8.5,color:B,fontFamily:"Helvetica-Bold",marginBottom:2},wineDesc:{fontSize:6.5,color:g},winePrice:{fontSize:11,color:v,fontFamily:"Helvetica-Bold",alignSelf:"flex-end"},wineRegalos:{paddingHorizontal:8,paddingBottom:5},wineRegalosText:{fontSize:6.5,color:B},wineNote:{borderTopWidth:.5,borderTopColor:C,padding:"4pt 8pt"},wineNoteText:{fontSize:6,color:B,fontFamily:"Helvetica-Oblique"},infoGrid:{flexDirection:"row",gap:5,marginBottom:5},infoCell:{flex:1,borderWidth:1,borderColor:S,borderRadius:5,padding:"5pt 7pt"},infoCellTitle:{fontSize:6,color:j,fontFamily:"Helvetica-Bold",textTransform:"uppercase",marginBottom:3},infoCellText:{fontSize:6.5,color:g},mapBlock:{borderWidth:1,borderColor:S,borderRadius:5,overflow:"hidden",marginBottom:5},termBlock:{marginBottom:6},termTitle:{fontSize:6,fontFamily:"Helvetica-Bold",color:g,marginBottom:3,textTransform:"uppercase"},termRow:{flexDirection:"row",marginBottom:1.5},termBullet:{fontSize:6,color:h,marginRight:3,fontFamily:"Helvetica-Bold"},termText:{fontSize:5.5,color:g,flex:1}
1,footerDivider:{borderTopWidth:1,borderTopColor:p,marginTop:6,paddingTop:6},footer:{flexDirection:"row",alignItems:"center"},footerLeft:{flex:2.5},footerCenter:{flex:1.5,alignItems:"center"},footerRight:{flex:1,alignItems:"flex-end"},footerLabel:{fontSize:6,color:j,fontFamily:"Helvetica-Bold",textTransform:"uppercase",marginBottom:1.5},footerText:{fontSize:6,color:g},footerBold:{fontSize:6.5,color:y,fontFamily:"Helvetica-Bold"},footerPhone:{fontSize:7,color:m,fontFamily:"Helvetica-Bold"},whatsappImg:{height:26,width:26,objectFit:"contain"},patrocinadores:{height:50,width:210,objectFit:"contain"}}),T=function(e,t){var o={full:{weekday:"long",day:"2-digit",month:"long",year:"numeric"},weekday:{weekday:"long"},day:{day:"2-digit"},month:{month:"long"}};return e.toLocaleDateString("es-ES",o[t]||o.full)},z=function(e){var t=e.title;return(0,x.jsx)(d.Ss,{style:F.sectionHeader,children:(0,x.jsx)(d.EY,{style:F.sectionTitle,children:t})})},I=function(e){var t=e.reserva,o=e.nombreSuscriptorPDF,l=e.wineOffer,r=e.hasWineOffer,s=e.staticMapImageUrl,n=null!=t.IdRes&&""!==t.IdRes,a="Cotizaci\xf3n"===t.Estado,f=t.Folio||(n?"VE-".concat(t.IdRes,"-").concat(t.IdSus||""):"VE-".concat(Date.now().toString(36).toUpperCase(),"-").concat(t.IdSus||"")),h=n?a?"Cotizaci\xf3n de Reserva":"Certificado de ".concat("Confirmada"!==t.Estado?"Pre-Reserva":"Reserva"):"Certificado",u=t.FechaIn&&t.FechaOut?Math.round((new Date(t.FechaOut)-new Date(t.FechaIn))/864e5):0,p=Number(t.Subtotal)+(r?l.precio:0),y=Number(t.Total)+(r?l.precio:0);return(0,x.jsx)(d.yo,{fileName:"Certificado",children:(0,x.jsxs)(d.YW,{size:"A4",style:F.page,children:[(0,x.jsx)(d.Ss,{style:F.topBand}),(0,x.jsxs)(d.Ss,{style:F.body,children:[(0,x.jsxs)(d.Ss,{style:F.header,children:[(0,x.jsx)(d._V,{src:"https://visitaecuador.com/img/web/logo_verde.png",style:F.logo}),(0,x.jsxs)(d.Ss,{style:F.headerCenter,children:[(0,x.jsx)(d.EY,{style:F.certTitle,children:h}),(0,x.jsx)(d.EY,{style:F.certSubtitle,children:"VisitaEcuador.com \xb7 Central de Reservas \xb7 Cuenca, Ecuador"})]}),(0,x.jsx)(d.Ss,{style:{alignItems:"flex-end",gap:4},children:(0,x.jsxs)(d.Ss,{style:F.folioBadge,children:[(0,x.jsx)(d.EY,{style:F.folioLabel,children:"N\xb0 Folio"}),(0,x.jsx)(d.EY,{style:F.folioValue,children:f})]})})]}),(0,x.jsxs)(d.Ss,{style:F.susRow,children:[(0,x.jsxs)(d.Ss,{style:F.susCell,children:[(0,x.jsx)(d.EY,{style:F.susLabel,children:"Suscriptor"}),(0,x.jsx)(d.EY,{style:F.susValue,children:o||"\u2014"})]}),(0,x.jsxs)(d.Ss,{style:F.susCell,children:[(0,x.jsx)(d.EY,{style:F.susLabel,children:"ID Suscriptor"}),(0,x.jsx)(d.EY,{style:F.susValue,children:t.IdSus||"\u2014"}),(0,x.jsx)(d.EY,{style:F.susSub,children:"VisitaEcuador.com"})]}),(0,x.jsxs)(d.Ss,{style:F.susCell,children:[(0,x.jsx)(d.EY,{style:F.susLabel,children:"Fecha de emisi\xf3n"}),(0,x.jsx)(d.EY,{style:F.susValue,children:t.fecha_reserva||"\u2014"})]})]}),(0,x.jsx)(z,{title:"Establecimiento"}),(0,x.jsxs)(d.Ss,{style:F.estBlock,children:[t.FotoEst&&(0,x.jsx)(d._V,{src:t.FotoEst,style:F.estImage,cache:!1}),(0,x.jsxs)(d.Ss,{style:F.estInfo,children:[(0,x.jsx)(d.EY,{style:F.estName,children:t.NombreEst||"\u2014"}),t.DireccionEst&&(0,x.jsxs)(d.Ss,{style:F.estMetaRow,children:[(0,x.jsx)(d.EY,{style:F.estMetaLabel,children:"Direcci\xf3n"}),(0,x.jsx)(d.EY,{style:F.estMetaValue,children:t.DireccionEst})]}),t.LugarEst&&(0,x.jsxs)(d.Ss,{style:F.estMetaRow,children:[(0,x.jsx)(d.EY,{style:F.estMetaLabel,children:"Ubicaci\xf3n"}),(0,x.jsx)(d.EY,{style:F.estMetaValue,children:t.LugarEst})]}),(0,x.jsxs)(d.Ss,{style:{flexDirection:"row",gap:8,marginTop:3,flexWrap:"wrap"},children:[null!=t.TelefonoEst&&""!==t.TelefonoEst&&(0,x.jsxs)(d.Ss,{style:{flexDirection:"row",gap:2,alignItems:"center"},children:[(0,x.jsx)(d.EY,{style:{fontSize:5.5,color:j,fontFamily:"Helvetica-Bold"},children:"TEL"}),(0,x.jsx)(d.EY,{style:{fontSize:6.5,color:g},children:t.TelefonoEst})]}),null!=t.WhatsappEst&&""!==t.WhatsappEst&&(0,x.jsxs)(d.Ss,{style:{flexDirection:"row",gap:2,alignItems:"center"},children:[(0,x.jsx)(d.EY,{style:{fontSize:5.5,color:j,fontFamily:"Helvetica-Bold"},children:"WS"}),(0,x.jsx)(d.EY,{style:{fontSize:6.5,color:g},children:t.WhatsappEst})]}),null!=t.EmailEst&&""!==t.EmailEst&&(0,x.jsxs)(d.Ss,{style:{flexDirection:"row",gap:2,alignItems:"center"},children:[(0,x.jsx)(d.EY,{style:{fontSize:5.5,color:j,fontFamily:"Helvetica-Bold"},children:"EMAIL"}),(0,x.jsx)(d.EY,{style:{fontSize:6.5,color:g},children:t.EmailEst})]})]})]})]}),(n||t.FechaIn&&t.FechaOut)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(z,{title:"Detalles de la estad\xeda"}),(0,x.jsxs)(d.Ss,{style:F.reservaCards,children:[(0,x.jsxs)(d.Ss,{style:F.reservaCard,children:[(0,x.jsx)(d.EY,{style:F.reservaCardLabel,children:"Entrada"}),(0,x.jsx)(d.EY,{style:F.reservaCardDay,children:T(new Date(t.FechaIn+"T00:00:00"),"day")}),(0,x.jsx)(d.EY,{style:F.reservaCardMonth,children:T(new Date(t.FechaIn+"T00:00:00"),"month").toUpperCase()}),(0,x.jsx)(d.EY,{style:F.reservaCardWeekday,children:T(new Date(t.FechaIn+"T00:00:00"),"weekday")}),(0,x.jsxs)(d.EY,{style:F.reservaCardSub,children:["desde ",t.CheckIn]})]}),(0,x.jsxs)(d.Ss,{style:F.reservaCard,children:[(0,x.jsx)(d.EY,{style:F.reservaCardLabel,children:"Salida"}),(0,x.jsx)(d.EY,{style:F.reservaCardDay,children:T(new Date(t.FechaOut+"T00:00:00"),"day")}),(0,x.jsx)(d.EY,{style:F.reservaCardMonth,children:T(new Date(t.FechaOut+"T00:00:00"),"month").toUpperCase()}),(0,x.jsx)(d.EY,{style:F.reservaCardWeekday,children:T(new Date(t.FechaOut+"T00:00:00"),"weekday")}),(0,x.jsxs)(d.EY,{style:F.reservaCardSub,children:["hasta ",t.CheckOut]})]}),(0,x.jsxs)(d.Ss,{style:F.reservaStatCard,children:[(0,x.jsx)(d.EY,{style:F.reservaStatLabel,children:"Hab. / Noches"}),(0,x.jsxs)(d.Ss,{style:{flexDirection:"row",alignItems:"baseline",gap:1},children:[(0,x.jsx)(d.EY,{style:F.reservaStatValue,children:t.CantidadHab}
1),(0,x.jsx)(d.EY,{style:F.reservaStatSep,children:" / "}),(0,x.jsx)(d.EY,{style:F.reservaStatValue,children:u})]}),(0,x.jsx)(d.EY,{style:F.reservaStatUnit,children:"habitaciones / noches"})]}),(0,x.jsxs)(d.Ss,{style:F.reservaStatCard,children:[(0,x.jsx)(d.EY,{style:F.reservaStatLabel,children:"Adultos / Ni\xf1os"}),(0,x.jsxs)(d.Ss,{style:{flexDirection:"row",alignItems:"baseline",gap:1},children:[(0,x.jsx)(d.EY,{style:F.reservaStatValue,children:t.Adultos}),(0,x.jsx)(d.EY,{style:F.reservaStatSep,children:" / "}),(0,x.jsx)(d.EY,{style:F.reservaStatValue,children:t.Ninos})]}),(0,x.jsx)(d.EY,{style:F.reservaStatUnit,children:"personas"})]})]})]}),(0,x.jsx)(z,{title:"Detalle de precio"}),(0,x.jsxs)(d.Ss,{style:F.precioBlock,children:[t.Habitaciones.map((function(e,t){return(0,x.jsxs)(c.Fragment,{children:[(0,x.jsxs)(d.Ss,{style:F.precioRow,children:[(0,x.jsxs)(d.EY,{style:F.precioDesc,children:[e.Cantidad," \xd7 ",e.Nombre," ",(0,x.jsxs)(d.EY,{style:{fontSize:6.5,color:j},children:["(m\xe1x. ",e.Adultos," adulto",1!==e.Adultos?"s":"",e.Ninos>0?", ".concat(e.Ninos," ni\xf1o").concat(1!==e.Ninos?"s":""):"",")"]}),e.AplicaEn?(0,x.jsxs)(d.EY,{style:F.precioAplica,children:[" ","* Aplica ",e.AplicaEn.toLowerCase()]}):null]}),(0,x.jsxs)(d.EY,{style:F.precioValor,children:["$",e.Subtotal.toFixed(2)]})]}),e.NinosAdicionales?(0,x.jsxs)(d.Ss,{style:F.precioRow,children:[(0,x.jsxs)(d.EY,{style:F.precioDesc,children:[e.NinosAdicionales," \xd7 ",e.Nombre," ",(0,x.jsx)(d.EY,{style:{fontSize:6.5,color:m,fontFamily:"Helvetica-Bold"},children:"Ni\xf1o adicional"})]}),(0,x.jsxs)(d.EY,{style:F.precioValor,children:["$",e.SubtotalNino.toFixed(2)]})]},"ninos-".concat(t)):null,e.AdultosAdicionales?(0,x.jsxs)(d.Ss,{style:F.precioRow,children:[(0,x.jsxs)(d.EY,{style:F.precioDesc,children:[e.AdultosAdicionales," \xd7 ",e.Nombre," ",(0,x.jsx)(d.EY,{style:{fontSize:6.5,color:m,fontFamily:"Helvetica-Bold"},children:"Adulto adicional"})]}),(0,x.jsxs)(d.EY,{style:F.precioValor,children:["$",e.SubtotalAdulto.toFixed(2)]})]},"adultos-".concat(t)):null]},t)})),r&&l.precio>0&&(0,x.jsxs)(d.Ss,{style:F.precioRow,children:[(0,x.jsxs)(d.EY,{style:(0,i.A)((0,i.A)({},F.precioDesc),{},{color:v}),children:["\ud83c\udf77 Oferta Ruta del Vino: ",l.titulo]}),(0,x.jsxs)(d.EY,{style:F.precioValorAccent,children:["$",l.precio.toFixed(2)]})]}),(0,x.jsxs)(d.Ss,{style:F.subtotalRow,children:[(0,x.jsx)(d.EY,{style:F.subtotalLabel,children:"Subtotal"}),(0,x.jsxs)(d.EY,{style:F.subtotalValor,children:["$",p.toFixed(2)]})]}),(0,x.jsxs)(d.Ss,{style:[F.subtotalRow,{borderTopWidth:0}],children:[(0,x.jsx)(d.EY,{style:F.subtotalLabel,children:"Impuestos / Servicios"}),(0,x.jsxs)(d.EY,{style:F.subtotalValor,children:["$",Number(t.Impuestos).toFixed(2)]})]}),(0,x.jsxs)(d.Ss,{style:F.totalRow,children:[(0,x.jsx)(d.EY,{style:F.totalLabel,children:"Total (impuestos incluidos)"}),(0,x.jsxs)(d.EY,{style:F.totalValor,children:["$",y.toFixed(2)]})]})]}),r&&(0,x.jsxs)(d.Ss,{style:F.wineBlock,children:[(0,x.jsx)(d.Ss,{style:F.wineHeader,children:(0,x.jsx)(d.EY,{style:F.wineHeaderText,children:"\ud83c\udf77 Oferta Especial \xb7 Ruta del Vino"})}),(0,x.jsxs)(d.Ss,{style:F.wineBody,children:[l.imagen&&(0,x.jsx)(d._V,{src:l.imagen,style:F.wineImg,cache:!1}),(0,x.jsxs)(d.Ss,{style:F.wineInfo,children:[(0,x.jsx)(d.EY,{style:F.wineName,children:l.titulo}),l.descripcion&&(0,x.jsx)(d.EY,{style:F.wineDesc,children:l.descripcion})]}),l.precio>0&&(0,x.jsxs)(d.EY,{style:F.winePrice,children:["$",l.precio.toFixed(2)]})]}),l.regalos&&(0,x.jsx)(d.Ss,{style:F.wineRegalos,children:(0,x.jsxs)(d.EY,{style:F.wineRegalosText,children:[(0,x.jsx)(d.EY,{style:{fontFamily:"Helvetica-Bold"},children:"\ud83c\udf81 Regalos incluidos: "}),l.regalos]})}),(0,x.jsx)(d.Ss,{style:F.wineNote,children:(0,x.jsx)(d.EY,{style:F.wineNoteText,children:"Presente este certificado al momento del check-in para reclamar sus regalos de la Ruta del Vino."})})]}),(0,x.jsx)(z,{title:"Informaci\xf3n del establecimiento"}),(0,x.jsxs)(d.Ss,{style:F.infoGrid,children:[t.serviciosEst&&(0,x.jsxs)(d.Ss,{style:F.infoCell,children:[(0,x.jsx)(d.EY,{style:F.infoCellTitle,children:"Servicios"}),(0,x.jsx)(d.EY,{style:F.infoCellText,children:t.serviciosEst.replaceAll("-","\u2022")})]}),t.restriccionesEst&&(0,x.jsxs)(d.Ss,{style:F.infoCell,children:[(0,x.jsx)(d.EY,{style:F.infoCellTitle,children:"Restricciones"}),(0,x.jsx)(d.EY,{style:F.infoCellText,children:t.restriccionesEst.replaceAll("-","\u2022")})]}),t.sistemaServEst&&(0,x.jsxs)(d.Ss,{style:F.infoCell,children:[(0,x.jsx)(d.EY,{style:F.infoCellTitle,children:"Sistema de servicios"}),(0,x.jsx)(d.EY,{style:F.infoCellText,children:t.sistemaServEst.replaceAll("-","\u2022")})]})]}),t.Habitaciones.map((function(e,o){return(0,x.jsx)(c.Fragment,{children:(t.incluyeEst||t.noIncluyeEst||e.Acomodacion)&&(0,x.jsxs)(d.Ss,{style:[F.infoGrid,{marginTop:0}],children:[t.incluyeEst&&(0,x.jsxs)(d.Ss,{style:F.infoCell,children:[(0,x.jsx)(d.EY,{style:F.infoCellTitle,children:"Incluye"}),(0,x.jsx)(d.EY,{style:F.infoCellText,children:t.incluyeEst.replaceAll("-","\u2022")})]}),t.noIncluyeEst&&(0,x.jsxs)(d.Ss,{style:F.infoCell,children:[(0,x.jsx)(d.EY,{style:F.infoCellTitle,children:"No incluye"}),(0,x.jsx)(d.EY,{style:F.infoCellText,children:t.noIncluyeEst.replaceAll("-","\u2022")})]}),e.Acomodacion&&(0,x.jsxs)(d.Ss,{style:F.infoCell,children:[(0,x.jsx)(d.EY,{style:F.infoCellTitle,children:"Acomodaci\xf3n"}),(0,x.jsx)(d.EY,{style:F.infoCellText,children:e.Acomodacion})]})]})},"hab-detail-".concat(o))}
1)),(0,x.jsx)(d.Ss,{style:F.mapBlock,children:(0,x.jsx)(d._V,{src:s,style:{width:"100%",height:70}})}),(0,x.jsxs)(d.Ss,{style:F.termBlock,children:[(0,x.jsx)(d.EY,{style:F.termTitle,children:"T\xe9rminos y condiciones"}),["Para hacer la reserva sugerimos comunicarse con 5 d\xedas de anticipaci\xf3n al lugar de destino y realizar el pago respectivo.","Los beneficiarios deber\xe1n cancelar la suma del paquete promocional previo a su utilizaci\xf3n. No cancele a otra persona o empresa.","Los beneficiarios aceptan cancelar los gastos extras como: comida, bebida, fee de emisi\xf3n y otros.","Este Certificado deslinda de toda responsabilidad a VisitaEcuador.com; el cumplimiento estar\xe1 a cargo del hospedaje.","Este Certificado es transferible hasta 1er Grado de Consanguineidad (Padres e hijos hasta 21 a\xf1os, solteros).","Aplica no show. Aplica restricciones.","Horario de atenci\xf3n Central de Reservas: Lunes a Viernes 08h30-13h00 y 14h30-18h00."].map((function(e,t){return(0,x.jsxs)(d.Ss,{style:F.termRow,children:[(0,x.jsx)(d.EY,{style:F.termBullet,children:"\u203a"}),(0,x.jsx)(d.EY,{style:F.termText,children:e})]},t)}))]}),(0,x.jsx)(d.Ss,{style:F.footerDivider,children:(0,x.jsxs)(d.Ss,{style:F.footer,children:[(0,x.jsxs)(d.Ss,{style:F.footerLeft,children:[(0,x.jsx)(d.EY,{style:F.footerBold,children:"VisitaEcuador.com"}),(0,x.jsx)(d.EY,{style:F.footerText,children:"PBX: +593 7 413 4500"}),(0,x.jsx)(d.EY,{style:F.footerText,children:"Calle del Bat\xe1n 5-317 y Esmeraldas :: Cuenca :: Ecuador"}),(0,x.jsxs)(d.Ss,{style:{flexDirection:"row",alignItems:"center",gap:5},children:[(0,x.jsx)(d._V,{src:"https://visitaecuador.com/img/web/whatsapp_cert.png",style:F.whatsappImg}),(0,x.jsxs)(d.Ss,{children:[(0,x.jsx)(d.EY,{style:(0,i.A)((0,i.A)({},F.footerBold),{},{marginBottom:2}),children:"CENTRAL DE RESERVAS:"}),(0,x.jsx)(d.EY,{style:F.footerPhone,children:"+593 98 185 0436"}),(0,x.jsx)(d.EY,{style:F.footerPhone,children:"+593 98 626 3432"})]})]})]}),(0,x.jsxs)(d.Ss,{style:F.footerRight,children:[(0,x.jsx)(d.EY,{style:F.footerLabel,children:"Con el auspicio de:"}),(0,x.jsx)(d._V,{src:"https://visitaecuador.com/img/web/patrocinadores.png",style:F.patrocinadores})]})]})})]}),(0,x.jsx)(d.Ss,{style:F.bottomBand})]})})};t.default=function(){var e=(0,f.zy)(),t=(0,c.useMemo)((function(){var t,o=new URLSearchParams(e.search),l={},i=(0,s.A)(o);try{for(i.s();!(t=i.n()).done;){var n=(0,r.A)(t.value,2),a=n[0],c=n[1];c.startsWith("[")&&c.endsWith("]")?l[a]=JSON.parse(c):l[a]=c}}catch(d){i.e(d)}finally{i.f()}return l}),[e.search]),o=(0,c.useMemo)((function(){return{titulo:t.WineOfferTitulo?decodeURIComponent(t.WineOfferTitulo):null,precio:t.WineOfferPrecio?parseFloat(t.WineOfferPrecio):0,imagen:t.WineOfferImagen?decodeURIComponent(t.WineOfferImagen):null,descripcion:t.WineOfferDescripcion?decodeURIComponent(t.WineOfferDescripcion):null,regalos:t.WineOfferRegalos?decodeURIComponent(t.WineOfferRegalos):null}}),[t]),i=null!==o.titulo,n=(0,c.useMemo)((function(){return function(e,t){var o="".concat(e,",").concat(t);return"https://dev.virtualearth.net/REST/v1/Imagery/Map/Road?center=".concat(o,"&zoomlevel=17&mapSize=").concat(encodeURI("1600,200"),"&pushpin=").concat(o,"&fmt=png&key=").concat("AuSqEteaBOw8m-3YvPjgvgjh9XysayCKT5xj4GmKONe5aNQZHbtTgAccVtsjf45Z")}(t.LatitudEst,t.LongitudEst)}),[t.LatitudEst,t.LongitudEst]),h=(0,c.useState)(t.NombreSus||""),m=(0,r.A)(h,2),u=m[0],p=m[1],y=(0,c.useState)(t.NombreSus||""),g=(0,r.A)(y,2),j=g[0],b=g[1],S=(0,c.useState)(!1),E=(0,r.A)(S,2),v=E[0],w=E[1],C=["39579","77562","79277","77424"].includes(function(){try{var e,t,o=localStorage.getItem("datos");if(o)return(null===(e=JSON.parse(o))||void 0===e||null===(t=e.data)||void 0===t?void 0:t.codigo)||null}catch(l){}return null}()),B=(0,c.useMemo)((function(){return(0,x.jsx)(I,{reserva:t,nombreSuscriptorPDF:u,wineOffer:o,hasWineOffer:i,staticMapImageUrl:n})}),[t,u,o,i,n]),Y=function(){var e=(0,l.A)(a().mark((function e(){var o,l,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.x8)(B).toBlob();case 2:o=e.sent,l=URL.createObjectURL(o),(r=document.createElement("a")).href=l,r.download="".concat(u.replaceAll("-",""),"-").concat(t.IdSus,"-").concat(null==t.IdRes||""===t.IdRes?t.fecha_reserva:t.IdRes,".pdf"),r.click(),URL.revokeObjectURL(l);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,x.jsxs)("div",{className:"w-screen h-screen flex flex-col",children:[(0,x.jsx)("div",{className:"bg-gray-100 p-2 sm:p-4 border-b shadow-sm",children:(0,x.jsxs)("div",{className:"max-w-6xl mx-auto flex flex-col sm:flex-row items-start sm:items-center gap-2 sm:gap-4",children:[(0,x.jsx)("label",{className:"font-semibold text-gray-700 text-sm sm:text-base whitespace-nowrap",children:"Nombre del Suscriptor:"}),v&&C?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("input",{type:"text",value:j,onChange:function(e){return b(e.target.value)},className:"flex-1 w-full sm:w-auto px-3 py-2 text-sm sm:text-base border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500",placeholder:"Ingrese el nombre",autoFocus:!0}),(0,x.jsxs)("div",{className:"flex gap-2 w-full sm:w-auto",children:[(0,x.jsx)("button",{onClick:function(){w(!1),p(j)},className:"flex-1 sm:flex-none px-3 sm:px-4 py-2 text-sm bg-green-600 text-white rounded-md hover:bg-green-700 transition whitespace-nowrap",children:"Aplicar"}),(0,x.jsx)("button",{onClick:function(){b(u),w(!1)},className:"flex-1 sm:flex-none px-3 sm:px-4 py-2 text-sm bg-gray-400 text-white rounded-md hover:bg-gray-500 transition whitespace-nowrap",children:"Cancelar"})]})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{className:"flex-1 text-gray-900 font-medium text-sm sm:text-base break-words",children:u}),(0,x.jsxs)("div",{className:"flex gap-2 w-full sm:w-auto",children:[C&&
1(0,x.jsx)("button",{onClick:function(){return w(!0)},className:"flex-1 sm:flex-none px-3 sm:px-4 py-2 text-sm bg-blue-600 text-white rounded-md hover:bg-blue-700 transition whitespace-nowrap",children:"Editar Nombre"}),(0,x.jsxs)("button",{onClick:Y,className:"ml-auto flex items-center gap-1.5 px-3 py-1.5 text-xs bg-greenVE-600 text-white rounded-md hover:bg-greenVE-700",children:[(0,x.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,x.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),"Descargar PDF"]})]})]})]})}),i&&(0,x.jsx)("div",{className:"bg-amber-50 border-b border-amber-200 px-4 py-2",children:(0,x.jsx)("div",{className:"max-w-6xl mx-auto flex items-center gap-2",children:(0,x.jsxs)("span",{className:"text-sm text-amber-800",children:["Este certificado incluye la ",(0,x.jsxs)("strong",{children:["Oferta Ruta del Vino: ",o.titulo]}),o.regalos&&(0,x.jsxs)("span",{children:[" con regalos: ",o.regalos]})]})})}),(0,x.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,x.jsx)(d.TO,{className:"w-full h-full",children:B})})]})}},50477:function(){}}]); 2//# sourceMappingURL=1768.b96a4bd5.chunk.js.map
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.