PageSourceSearch

https://visitaecuador.com/webnueva/static/js/8304.b749b1bd.chunk.js

js visitaecuador.com collected 2026-09-24 17:51:13 UTC 12,784 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkvisitaecuador_com=self.webpackChunkvisitaecuador_com||[]).push([[8304],{76920:function(e,t,o){var r=o(5544),n=o(65043),i=o(84855),a=o(73216),s=o(21690),l=o(70579);t.A=function(e){var t=e.accountData,o=e.nombre,c=(0,n.useState)(!1),u=(0,r.A)(c,2),d=u[0],p=u[1],v=(0,a.Zp)();return t?(0,l.jsxs)("div",{className:"flex flex-col md:flex-row mt-10 mx-auto mb-28 max-w-6xl py-6 px-6  sm:px-6 lg:px-8 ",children:[(0,l.jsx)("div",{className:"w-full px-16 pb-6 md:px-0 md:w-1/2",children:(0,l.jsx)("img",{src:"https://visitaecuador.com/img/diseno/compra/codigopromocional.png"})}),(0,l.jsxs)("div",{className:"w-full md:w-1/2 flex flex-col justify-between",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2 items-center md:items-start",children:[(0,l.jsxs)("label",{className:"text-2xl md:text-3xl font-semibold text-center md:text-left",children:["Hola ",o]}),(0,l.jsx)("label",{className:"text-lg md:text-xl text-greenVE-600 font-medium text-center md:text-left",children:"VisitaEcuador.com te da la Bienvenida !!!."}),(0,l.jsx)("label",{className:"text-sm md:text-base text-center md:text-left",children:"Desde hoy formas parte de nuestra prestigiosa plataforma."}),(0,l.jsx)("label",{className:"text-sm md:text-base text-center md:text-left",children:"Te recordamos que estos son tus datos para el ingreso, y para tu tranquilidad los enviamos a tu cuenta de correo electr\xf3nico."}),(0,l.jsxs)("div",{className:"flex bg-slate-100 w-64 p-2 items-center gap-3 ",children:[(0,l.jsx)("label",{children:"Usuario:"}),(0,l.jsx)("label",{className:"text-greenVE-600 text-xl md:text-2xl",children:t.identificacion})]}),(0,l.jsxs)("div",{className:"flex bg-slate-100 w-64 p-2 items-center gap-3",children:[(0,l.jsx)("label",{children:"Clave:"}),(0,l.jsx)("label",{className:"text-greenVE-600 text-xl md:text-2xl",children:t.clave})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsxs)("label",{className:"text-xs md:text-sm md:text-left text-center mt-4",children:["No olvides que tu suscripcion caduca el ",(0,l.jsx)("label",{className:"font-semibold",children:t.fecha_caducidad_texto})]}),(0,l.jsxs)("button",{className:"".concat(d?"bg-gray-500":"bg-greenVE-500"," text-white flex flex-col rounded-md py-1 md:text-lg"),onClick:function(){return function(){if(!d){p(!0);var e={id_metodo:s.A.IDMETODO,id_servicio:s.A.IDSERVICIO,id:t.codigo,pass:t.clave,servicio:s.A.SERVICIO,metodo:s.A.METODO};try{(0,i.qe)(e).then((function(e){p(!1),1==e&&v("/")})).catch((function(e){}))}catch(o){console.error("Error:",o)}}}()},children:[(0,l.jsx)("label",{className:"cursor-pointer",children:"Disfruta de tu suscripcion ahora !!!"}),(0,l.jsx)("label",{className:"cursor-pointer",children:"Clic Aqu\xed"})]})]})]})]}):(0,l.jsxs)("div",{className:"flex flex-col  mt-10 mx-auto mb-28 max-w-6xl py-6  sm:px-6 lg:px-8 items-center justify-center h-60",children:[(0,l.jsx)("span",{className:"icon-[eos-icons--bubble-loading] text-greenVE-500 h-14 w-14 mb-10"}),(0,l.jsx)("label",{className:"text-greenVE-600 font-medium text-lg cursor-pointer",children:"Estamos creando su cuenta."}),(0,l.jsx)("label",{className:"text-greenVE-600 font-medium text-lg cursor-pointer",children:"No cierre esta ventana por favor."})]})}},84855:function(e,t,o){o.d(t,{Ky:function(){return m},VE:function(){return p},f6:function(){return f},mO:function(){return v},n7:function(){return x},qe:function(){return u},xg:function(){return d}});var r=o(10467),n=o(54756),i=o.n(n),a=o(21690),s=o(82005),l=o(1880),c=o(70579),u=function(){var e=(0,r.A)(i().mark((function e(t){var o,r,n,a,u,d,p,v,m,x,f,b,g,h;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=new s.A,e.next=4,r.getInformacionPerfil(t);case 4:if((n=e.sent)&&n.estado&&0==n.codigo){e.next=7;break}return e.abrupt("return",(null===n||void 0===n?void 0:n.msj)||!1);case 7:if(null==n.data.fin){e.next=10;break}if(!(new Date(n.data.fin)<new Date)){e.next=10;break}return e.abrupt("return",(0,c.jsxs)("label",{children:["Cuenta caducada el "+n.data.fin,(0,c.jsx)("br",{}),(0,c.jsx)("a",{className:"text-blue-500 underline cursor-pointer",href:window.location.origin+"/suscripcion",children:"Renueva aqu\xed"})]}));case 10:if(localStorage.setItem("datos",JSON.stringify(n)),!(a=null===(o=n.data)||void 0===o?void 0:o.ci)){e.
1next=25;break}return u=a,d=a.substring(0,5),e.prev=15,e.next=18,r.getInformacionBiosite({cedula:u,password:d});case 18:null!==(p=e.sent)&&void 0!==p&&p.userId&&(v=p.accessToken,m=p.refreshToken,x=p.userId,f=p.roleName,b=p.biositeId,g=new Date,h=new Date,g.setDate(g.getDate()+2),h.setDate(h.getDate()+7),l.A.set("accessToken",v,{expires:g}),l.A.set("refreshToken",m,{expires:h}),l.A.set("userId",x,{expires:h}),l.A.set("roleName",f.toString(),{expires:h}),l.A.set("biositeId",b,{expires:h})),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(15),console.warn("Biosite no disponible:",e.t0);case 25:return e.abrupt("return",!0);case 28:return e.prev=28,e.t1=e.catch(0),console.error("Error en loginRemote:",e.t1),e.abrupt("return",!1);case 32:case"end":return e.stop()}}),e,null,[[0,28],[15,22]])})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=(0,r.A)(i().mark((function e(t){var o,r,n,a,l,c,u,d,p,v,m,x,f,b,g,h,_,w,P;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.state,r=t.dataSuscripcion,e.prev=1,f=(null===o||void 0===o?void 0:o.producto)||{},b=parseFloat(f.PrecioProducto||0),g=b.toFixed(2),h=(1.12*b).toFixed(2),_=(1.12*b-b).toFixed(2),w=new s.A,e.next=10,w.notificarPagoPayphone({personal:{nombres:(null===o||void 0===o||null===(n=o.persona)||void 0===n?void 0:n.nombres)||"",ci:(null===o||void 0===o||null===(a=o.persona)||void 0===a?void 0:a.cedula)||"",email:(null===o||void 0===o||null===(l=o.persona)||void 0===l?void 0:l.correo)||"",celular:(null===o||void 0===o||null===(c=o.persona)||void 0===c?void 0:c.telefono)||""},producto:{titulo:f.Titulo||f.nombreProducto||"",subtotal:g,iva:_,total:h},pago:{id_boton:String((null===o||void 0===o||null===(u=o.pago)||void 0===u?void 0:u.IdTipoBotonPago)||""),boton:(null===o||void 0===o||null===(d=o.pago)||void 0===d?void 0:d.TipoBotonPago)||(null===o||void 0===o||null===(p=o.pago)||void 0===p?void 0:p.IdTipoBotonPago)||"",diferido:(null===o||void 0===o||null===(v=o.pago)||void 0===v?void 0:v.Meses)||"",intereses:(null===o||void 0===o||null===(m=o.pago)||void 0===m?void 0:m.Intereses)||"",codigo_suscripcion:(null===r||void 0===r?void 0:r.codigo)||""},transaccion:(null===o||void 0===o||null===(x=o.pago)||void 0===x?void 0:x.transaccion)||{}});case 10:return P=e.sent,e.abrupt("return",!(!P||!P.estado));case 14:return e.prev=14,e.t0=e.catch(1),console.error("No se pudo notificar el pago de PayPhone:",e.t0),e.abrupt("return",!1);case 18:case"end":return e.stop()}}),e,null,[[1,14]])})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=(0,r.A)(i().mark((function e(t){var o,r,n,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,o=new s.A,JSON.parse(localStorage.getItem("datos")),r={i
1d_usuario:t},e.next=6,o.setAdministrador(r);case 6:if(!(n=e.sent).estado){e.next=12;break}return(a=new Date).setTime(a.getTime()+288e5),document.cookie="PHPSESSID=".concat(n.data,";expires=").concat(a.toUTCString()),e.abrupt("return",n.estado);case 12:return e.abrupt("return",!1);case 15:e.prev=15,e.t0=e.catch(0);case 17:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=(0,r.A)(i().mark((function e(){var t,o,r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=new s.A,o=JSON.parse(localStorage.getItem("datos")),r={token:o.token},e.next=6,t.getPermisos(r);case 6:if(!(n=e.sent).estado){e.next=10;break}return localStorage.setItem("permisos",JSON.stringify(n.data)),e.abrupt("return",n.estado);case 10:return e.abrupt("return",!1);case 13:e.prev=13,e.t0=e.catch(0);case 15:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=(0,r.A)(i().mark((function e(){var t,o,r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=JSON.parse(localStorage.getItem("datos")),o={token:t.token},localStorage.removeItem("datos"),localStorage.removeItem("permisos"),document.cookie="PHPSESSID=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",r=new s.A,e.next=9,r.cerrarSesion(o);case 9:if(!(n=e.sent).estado||0!=n.codigo){e.next=12;break}return e.abrupt("return",n.estado);case 12:if(401!=n.codigo){e.next=14;break}return e.abrupt("return",401);case 14:e.next=18;break;case 16:e.prev=16,e.t0=e.catch(0);case 18:case"end":return e.stop()}}),e,null,[[0,16]])})));return function(){return e.apply(this,arguments)}}(),x=function(){var e=(0,r.A)(i().mark((function e(t){var o,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,o=new s.A,e.next=4,o.registroTransaccion(t);case 4:if(!(r=e.sent).estado){e.next=8;break}return o.sendNotificationSubscription({id_suscripcion_renovacion:r.data.id_suscripcion_renovacion}),e.abrupt("return",r);case 8:return e.abrupt("return",!1);case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=(0,r.A)(i().mark((function e(t,o){var r,n,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={tipo:t,valor:o,servicio:a.A.SERVICIO},n=new s.A,e.next=5,n.reenviarContrasena(r);case 5:if(null==(l=e.sent)){e.next=8;break}return e.abrupt("return",l);case 8:e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t,o){return e.apply(this,arguments)}}()},43177:function(e,t,o){o.d(t,{p:function(){return n}});var r=o(21690);function n(e){var t,o,n,i,a,s,l,c,u,d,p,v,m,x,f,b,g,h,_,w,P;return{id_empresa:r.A.IDEMPRESA,tiempo:5,canal:"web",aceptocondiciones:1,notificar:!1,verificar:!1,id_servicio:r.A.IDSERVICIO,metodo:"visitaecuador",personal:{ci:(null===e||void 0===e||null===(t=e.customer)||void 0===t?void 0:t.identificationDocId)||"",nombres:(null===e||void 0===e||null===(o=e.customer)||void 0===o?void 0:o.givenName)||"",celular:(null===e||void 0===e||null===(n=e.customer)||void 0===n?void 0:n.phone)||"",email:(null===e||void 0===e||null===(i=e.customer)||void 0===i?void 0:i.email)||"",pais:r.A.IDPAIS,ciudad:297},producto:{id_codigo_promocional:(null===e||void 0===e||null===(a=e.customParameters)||void 0===a?void 0:a.id_codigo_promocional)||"",beneficio_cantidad_tiempo:(null===e||void 0===e||null===(s=e.customParameters)||void 0===s?void 0:s.beneficio_cantidad_tiempo)||0,beneficio_tipo_tiempo:(null===e||void 0===e||null===(l=e.customParameters)||void 0===l?void 0:l.beneficio_tipo_tiempo)||0,id_usuario_vendedor:(null===e||void 0===e||null===(c=e.customParameters)||void 0===c?void 0:c.id_usuario_vendedor)||"",id_suscripcion_vendedor:(null===e||void 0===e||null===(u=e.customParameters)||void 0===u?void 0:u.id_suscripcion_vendedor)||"",cantidad:1,fecha_final:"",precio:parseFloat((null===e||void 0===e?void 0:e.amount)||0).toFixed(2),id_producto:(null===e||void 0===e||null===(d=e.customParameters)||void 0===d?void 0:d.id_producto)||"",id_lista_precio_producto:(null===e||void 0===e||null===(p=e.customParameters)||void 0===p?void 0:p.id_lista_precio_producto)||"",id_prod_suscripcion:(null===e||void 0===e||null===(v=e.customParameters)||void 0===v?void 0:v.id_prod_suscripcion)||"",id_tipo_canal:(null===e||void 0===e||null===(m=e.customParameters)||void 0===m?void 0:m.id_tipo_canal)||"",pago:[{tipo_pago:(null===e||void 0===e||null===(x=e.customParameters)||void 0===x?void 0:x.tipo_pago)||0,id_prepago:0,tipo_pago_boton:(null===e||void 0===e||null===(f=e.customParameters)||void 0===f?void 0:f.tipo_pago_boton)||0,intereses:"0"===(null===e||void 0===e||null===(b=e.customParameters)||void 0===b?void 0:b.SHOPPER_interes)?"2":"1",diferido:(null===e||void 0===e||null===(g=e.recurring)||void 0===g?void 0:g.numberOfInstallments)||0,envio:0,subtotal:parseFloat((null===e||void 0===e||null===(h=e.customParameters)||void 0===h?void 0:h.SHOPPER_VAL_BASEIMP)||0).toFixed(2),iva:parseFloat((null===e||void 0===e||null===(_=e.customParameters)||void 0===_?void 0:_.SHOPPER_VAL_IVA)||0).toFixed(2),total:parseFloat((null===e||void 0===e?void 0:e.amount)||0).toFixed(2),cuenta:{nombreTitular:(null===e||void 0===e||null===(w=e.customer)||void 0===w?void 0:w.givenName)||"",id_diferido:(null===e||void 0===e||null===(P=e.customParameters)||void 0===P?void 0:P.id_diferido)||0,datap
1ago:(null===e||void 0===e?void 0:e.id)||""},transaccion:e||{}}]}}}}}]);
2//# sourceMappingURL=8304.b749b1bd.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.