1(function(e){function t(t){for(var s,n,l=t[0],o=t[1],c=t[2],u=0,p=[];u<l.length;u++)n=l[u],Object.prototype.hasOwnProperty.call(r,n)&&r[n]&&p.push(r[n][0]),r[n]=0;for(s in o)Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s]);d&&d(t);while(p.length)p.shift()();return i.push.apply(i,c||[]),a()}function a(){for(var e,t=0;t<i.length;t++){for(var a=i[t],s=!0,l=1;l<a.length;l++){var o=a[l];0!==r[o]&&(s=!1)}s&&(i.splice(t--,1),e=n(n.s=a[0]))}return e}var s={},r={app:0},i=[];function n(t){if(s[t])return s[t].exports;var a=s[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=s,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(a,s,function(t){return e[t]}.bind(null,s));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/";var l=window["webpackJsonp"]=window["webpackJsonp"]||[],o=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var d=o;i.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},"0a00":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"breandcrumbs py-3"}),null!==e.listoptions?a("section",{staticClass:"height-main-full"},[e.confirmation?e._e():a("div",{staticClass:"container align-items-center text-left home-box"},[a("div",{staticClass:"row"},[a("qw-title",{attrs:{title:e.$t("Búsqueda de paquetes")}}),a("div",{staticClass:"container mt-2 mt-md-5"},[a("form",{staticClass:"animated pulse",attrs:{id:"form-search-travel"}},[a("div",{staticClass:"d-lg-flex mb-3 justify-content-center row"},[a("div",{staticClass:"col-md-6 col-lg-4 d-inline-block p-0 p-lg-0 mb-45 mb-lg-0 mb-md-3"},[e._m(0),a("div",{staticClass:"border-l-tb border-script-horizontal box-search-travel"},[a("p",{staticClass:"text-preselect"},[e._v(e._s(e.$t("Ingrese serie y correlativo")))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.serieCorrelative,expression:"serieCorrelative"}],attrs:{placeholder:"Por ejemplo: BE02-00012149",label:"label",id:"aliasPackage"},domProps:{value:e.serieCorrelative},on:{input:function(t){t.target.composing||(e.serieCorrelative=t.target.value)}}})])]),a("div",{staticClass:"col-md-6 col-lg-3 d-inline-block p-0"},[a("button",{staticClass:"btn-search border-r-tb btn btn-primary rounded-0 text-uppercase",attrs:{type:"button"},on:{click:e.searchPackage}},[a("i",{staticClass:"far fa-search mr-2"}),e._v(e._s(e.$t("Rastrear"))+"\n ")])])]),0==e.packageFound?a("div",{staticClass:"row justify-content-center"},[a("div",{staticClass:"col-md-6"},[a("b-alert",{staticClass:"text-center text-lg",attrs:{variant:"danger",dismissible:"",show:""},model:{value:e.showDismissibleAlert,callback:function(t){e.showDismissibleAlert=t},expression:"showDismissibleAlert"}},[a("strong",[e._v("No se encontro el paquete")])])],1)]):e._e()])]),e.packageFound?a("div",{staticClass:"container"},[e._m(1),a("div",{staticClass:"container-tracking"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-6 col-lg-3"},[a("small",[e._v("Nº de Transaccion")]),a("h5",[e._v(e._s(e.idPackageAlias))])]),a("div",{staticClass:"col-6 col-lg-3"},[a("small",[e._v("Nº de Correlativo")]),a("h5",[e._v(e._s(e.correlative))])]),a("div",{staticClass:"col-6 col-lg-3"},[a("small",[e._v("EnvÃo")]),a("h6",[e._v(e._s(e.citySoure)+" "),a("br"),e._v(" "+e._s(e.officeSource))])]),a("div",{staticClass:"col-6 col-lg-3"},[a("small",[e._v("Entrega")]),a("h6",[e._v(e._s(e.cityDestination)+" "),a("br"),e._v(" "+e._s(e.officeDestination))])])]),a("div",{staticClass:"row tracking-row"},[a("div",{staticClass:"col-4 col-lg-3"},[a("small",[e._v("Tipo")]),a("h5",[a("i",{staticClass:"fa fa-box mr-2"}),e._v(e._s(e.type))])]),a("div",{staticClass:"col-8 col-lg-6"},[a("small",[e._v("Descripcion")]),a("h5",[e._v(e._s(e.description))])]),a("div",{staticClass:"col-4 col-lg-1"},[a("small",[e._v("Cantidad")]),a("h5",[e._v(e._s(e.quantity))])]),a("div",{staticClass:"col-4 col-lg-1"},[a("small",[e._v("P. Unit.")]),a("h5",[e._v(e._s(e.unitPrice))])]),a("div",{staticClass:"col-4 col-lg-1"},[a("small",[e._v("Total")]),a("h5",[e._v(e._s(e.totalPrice))])])]),a("br"),a("div",{staticClass:"row justify-content-center mb-5"},e._l(e.packageDetailTracking,(function(t){return a("div",{key:t.dateTracking,staticClass:"col text-center position-relative"},[a("div",{staticClass:"tracking-trayect actual"},[a("h5",[e._v(" "+e._s(t.status)+" ")]),a("p",[a("small",[e._v(" "+e._s(t.cityDeparture)+" "),a("br"),a("hr"),a("i",{staticClass:"fa fa-calendar fa-clock mr-1"}),a("i",{staticClass:"fa fa-clock mr-1"}),a("br"),e._v("\n "+e._s(t.dateTracking)+"\n ")])])])])}
1)),0)])]):e._e()],1)])]):e._e()])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"d-inline-block d-md-none icon-mobile-map-search"},[a("i",{staticClass:"far fa-box text-light-blue"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h3",{staticClass:"text-blue font-weight-600 mt-3 mb-0"},[a("i",{staticClass:"mr-2 far fa-box"}),e._v("Información del Rastreo")])}],i=(a("8e6e"),a("ac6a"),a("456d"),a("bd86")),n=a("6968"),l=a("2f62"),o=a("bc3a"),c=a.n(o);function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function u(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?d(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var p={components:{qwTitle:n["a"]},created:function(){window.addEventListener("scroll",this.handleScroll)},mounted:function(){var e=this;this.confirmation=!1,this.serieCorrelative=this.$route.params.alias,c.a.get("tracking/getTrackingPackage2?ALIAS="+this.serieCorrelative).then((function(t){return e.idPackageAlias=t["data"]["data"].hasOwnProperty("package")?t["data"]["data"]["package"][0]["idPackageAlias"]:null,e.correlative=e.serieCorrelative,e.citySoure=t["data"]["data"].hasOwnProperty("package")?t["data"]["data"]["package"][0]["citySoure"]:null,e.officeSource=t["data"]["data"].hasOwnProperty("package")?t["data"]["data"]["package"][0]["officeSource"]:null,e.cityDestination=t["data"]["data"].hasOwnProperty("package")?t["data"]["data"]["package"][0]["cityDestination"]:null,e.officeDestination=t["data"]["data"].hasOwnProperty("package")?t["data"]["data"]["package"][0]["officeDestination"]:null,e.type=t["data"]["data"].hasOwnProperty("packageDetail")?t["data"]["data"]["packageDetail"][0]["type"]:null,e.description=t["data"]["data"].hasOwnProperty("packageDetail")?t["data"]["data"]["packageDetail"][0]["description"]:null,e.quantity=t["data"]["data"].hasOwnProperty("packageDetail")?t["data"]["data"]["packageDetail"][0]["quantity"]:null,e.unitPrice=t["data"]["data"].hasOwnProperty("packageDetail")?t["data"]["data"]["packageDetail"][0]["unitPrice"]:null,e.totalPrice=t["data"]["data"].hasOwnProperty("packageDetail")?t["data"]["data"]["packageDetail"][0]["totalPrice"]:null,e.packageDetailTracking=t["data"]["data"].hasOwnProperty("packageDetailTracking")?t["data"]["data"]["packageDetailTracking"]:null,e.packageFound=!!t["data"]["data"].hasOwnProperty("package")})),this.packageFound||(this.showDismissibleAlert=!0)},destroyed:function(){window.removeEventListener("scroll",this.handleScroll)},data:function(){return{serieCorrelative:null,showDismissibleAlert:!1,idPackageAlias:null,correlative:null,citySoure:null,officeSource:null,cityDestination:null,officeDestination:null,type:null,description:null,quantity:null,unitPrice:null,totalPrice:null,packageDetailTracking:null,packageFound:!1}},computed:u({},Object(l["c"])({getCache:"cache/getCache",listTravel:"travels/listTravel",listoptions:"options/listoptions",selectOrder:"options/selectOrder",seachTravel:"search/travel"})),methods:u({handleScroll:function(){document.body.scrollTop>330||document.documentElement.scrollTop>330?(document.getElementById("title-h1").style.color="var(--blue)",document.getElementById("title-h1").style.fontSize="1.3rem",document.getElementById("title-h1").style.transition="all 0.2s ease-in",document.getElementById("title-h1").style.padding="0",document.getElementById("title-h1").style.margin="0",document.getElementById("title-bar").style.padding="0",document.getElementById("title-bar").style.margin="0"):(document.getElementById("title-h1").style.color="var(--dark)",document.getElementById("title-h1").style.fontSize="2rem",document.getElementById("title-h1").style.transition="all 0.2s ease-out")},searchPackage:function(){var e=this,t=document.getElementById("aliasPackage").value;c.a.get("tracking/getTrackingPackage2?ALIAS="+t).then((function(a){return e.idPackageAlias=a["data"]["data"].hasOwnProperty("package")?a["data"]["data"]["package"][0]["idPackageAlias"]:null,e.correlative=t,e.citySoure=a["data"]["data"].hasOwnProperty("package")?a["data"]["data"]["package"][0]["citySoure"]:null,e.officeSource=a["data"]["data"].hasOwnProperty("package")?a["data"]["data"]["package"][0]["officeSource"]:null,e.cityDestination=a["data"]["data"].hasOwnProperty("package")?a["data"]["data"]["package"][0]["cityDestination"]:null,e.officeDestination=a["data"]["data"].hasOwnProperty("package")?a["data"]["data"]["package"][0]["officeDestination"]:null,e.type=a["data"]["data"].hasOwnProperty("packageDetail")?a["data"]["data"]["packageDetail"][0]["type"]:null,e.description=a["data"]["data"].hasOwnProperty("packageDetail")?a["data"]["data"]["packageDetail"][0]["description"]:null,e.quantity=a["data"]["data"].hasOwnProperty("packageDetail")?a["data"]["data"]["packageDetail"][0]["quantity"]:null,e.unitPrice=a["data"]["data"].hasOwnProperty("packageDetail")?a["data"]["data"]["packageDetail"][0]["unitPrice"]:null,e.totalPrice=a["data"]["data"].hasOwnProperty("packageDetail")?a["data"]["data"]["packageDetail"][0]["totalPrice"]:null,e.packageDetailTracking=a["data"]["data"].hasOwnProperty("packageDetailTracking")?a["data"]["data"]["packageDetailTracking"]:null,e.packageFound=!!a["data"]["data"].hasOwnProperty("package")})),this.packageFound||(this.showDismissibleAlert=!0)}},Object(l["b"])({addCache:"cache/addCache",setLoading:"options/setLoading"}))},m=p,v=(a("45cd"),a("2877")),h=Object(v["a"])(m,s,r,!1,null,null,null);t["default"]=h.exports},"0c1a":function(e,t,a){"use strict";var s=a("2b0e"),r=a("a925");s["default"].use(r["a"]);var i={},n=new r["a"]({locale:"es",fallbackLocale:"es",messages:i});t["a"]=n},"0e0b":function(e,t,a){"use strict";a.d(t,"c",(function(){return l})),a.d(t,"a",(function(){return o}
1)),a.d(t,"e",(function(){return c})),a.d(t,"b",(function(){return d})),a.d(t,"d",(function(){return u}));a("28a5"),a("456d"),a("a481"),a("ac6a");var s=a("c1df"),r=a.n(s),i=a("4360"),n=function(e,t){var a="";if("required"==t)switch(e){case"doctype":a="Tipo de Documento es requerido";break;case"numberDocType":a="Numero de documento es requerido";break;case"name_passenger":a="Nombre del pasajero es requerido";break;case"last_name_passenger":a="Apellido del pasajero es requerido";break;case"type_ticket":a="Tipo de boleto es requerido";break;case"dateBirth":a="Fecha de nacimiento es requerido";break;case"cellphone":a="Teléfono celular es requerido";break;case"phone":a="Teléfono es requerido";break;case"email":a="Correo electrónico es requerido";break;case"student":a="Código de estudiante es requerido";break;case"sexo":a="Género es requerido";break;case"company_ruc":a="Número de RUC es requerido";break;case"company_name":a="Nombre de compañÃa es requerido";break;case"company_address":a="Dirección de compañÃa es requerido";break;case"issuing_country":a="PaÃs emisor es requerido";break;case"expiredDate":a="Fecha de expiración es requerida";break;case"nationality":a="Nacionalidad es requerida";break;case"residency":a="Residencia es requerida";break;case"address_pasp":a="Dirección es requerido";break;case"city":a="Ciudad es requerida";break;case"state_pasp":a="Estado es requerido";break;case"code_zip":a="Código zip es requerido";break}else if("format"==t)switch(e){case"email":a="Formato de Email invalido ([email protected])";break}return a},l=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=new Object;return e.forEach((function(e,r){if((t.WEB_SALE_FORM_SHOW_DOC_TYPE.value||a)&&(e.hasOwnProperty("doctype")&&""!=e.doctype.value.trim()||(s["doctype_"+r]=n("doctype","required")),e.hasOwnProperty("numberDocType")&&""!=e.numberDocType.trim()||(s["numberDocType_"+r]=n("numberDocType","required"))),e.hasOwnProperty("first_name")&&""!=e.first_name.trim()||(s["first_name_"+r]=n("name_passenger","required")),e.hasOwnProperty("last_name")&&""!=e.last_name||(s["last_name_"+r]=n("last_name_passenger","required")),a&&(e.hasOwnProperty("issuing_country")||(s["issuing_country_"+r]=n("issuing_country","required")),e.hasOwnProperty("expiredDate")||(s["expiredDate_"+r]=n("expiredDate","required")),e.hasOwnProperty("nationality")||(s["nationality_"+r]=n("nationality","required")),e.hasOwnProperty("residency")||(s["residency_"+r]=n("residency","required")),e.hasOwnProperty("address_pasp")||(s["address_pasp_"+r]=n("address_pasp","required")),e.hasOwnProperty("city")||(s["city_"+r]=n("city","required")),e.hasOwnProperty("state_pasp")||(s["state_pasp_"+r]=n("state_pasp","required")),e.hasOwnProperty("code_zip")||(s["code_zip_"+r]=n("code_zip","required"))),e.hasOwnProperty("type_ticket")||(s["type_ticket_"+r]=n("type_ticket","required")),t.WEB_SALE_FORM_SHOW_DOB.value&&(e.hasOwnProperty("dateBirth")&&""!=e.dateBirth.trim()||(s["dateBirth_"+r]=n("dateBirth","required"))),e.hasOwnProperty("type_ticket")&&e.type_ticket.value.isStudent&&(e.hasOwnProperty("student")&&null!=e.student||(s["student_"+r]=n("student","required"))),t.WEB_SALE_FORM_SHOW_CELLPHONE.value&&(t.WEB_SALE_FORM_SHOW_CELLPHONE_REQUIRED.value||e.type_ticket.value.needPhone)&&(e.hasOwnProperty("cellphone")&&""!=e.cellphone.trim()||(s["cellphone_"+r]=n("cellphone","required"))),t.WEB_SALE_FORM_SHOW_PHONE.value&&(t.WEB_SALE_FORM_SHOW_PHONE_REQUIRED.value||e.type_ticket.value.needPhone)&&(e.hasOwnProperty("phone")&&""!=e.phone.trim()||(s["phone_"+r]=n("phone","required"))),t.WEB_SALE_FORM_SHOW_EMAIL.value&&e.type_ticket.value.needEmail){e.hasOwnProperty("email")&&""!=e.email.trim()||(s["email_"+r]=n("email","required"));var i=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;i.test(String(e.email).toLowerCase())||(s["email_"+r]=n("email","format"))}t.WEB_SALE_FORM_SHOW_SEX.value&&(e.hasOwnProperty("sexo")&&""!=e.sexo||(s["sexo_"+r]=n("sexo","required"))),"PE"==t.PAIS_RESIDENTE.value&&t.REGISTRO_INFORMACION_RUC_COMPANY.value&&e.hasOwnProperty("checkRuc")&&e.checkRuc&&(e.hasOwnProperty("company_ruc")&&""!=e.company_ruc.trim()||(s["company_ruc"+r]=n("company_ruc","required")),e.hasOwnProperty("company_name")&&""!=e.company_name.trim()||(s["company_name"+r]=n("company_name","required")),e.hasOwnProperty("company_address")&&""!=e.company_address.trim()||(s["company_address"+r]=n("company_address","required"))),t.REGISTRO_INFORMACION_INFANTE.value&&e.hasOwnProperty("with_child")&&e.with_child&&((t.WEB_SALE_FORM_SHOW_DOC_TYPE.value||a)&&(e.hasOwnProperty("children_doctype")&&""!=e.children_doctype.value.trim()||(s["children_doctype_"+r]=n("doctype","required")),e.hasOwnProperty("children_numberdoctype")&&""!=e.numberDocType.trim()||(s["children_numberdoctype_"+r]=n("numberDocType","required"))),e.hasOwnProperty("children_first_name")&&""!=e.children_first_name.trim()||(s["children_first_name_"+r]=n("name_passenger","required")),e.hasOwnProperty("children_last_name")&&""!=e.children_last_name||(s["children_last_name_"+r]=n("last_name_passenger","required")),a&&(e.hasOwnProperty("children_issuing_country")||(s["children_issuing_country_"+r]=n("issuing_country","required")),e.hasOwnProperty("children_expiredDate")||(s["children_expiredDate_"+r]=n("expiredDate","required")),e.hasOwnProperty("children_nationality")||(s["children_nationality_"+r]=n("nationality","required")),e.hasOwnProperty("children_residency")||(s["children_residency_"+r]=n("residency","required")),e.hasOwnProperty("children_address_pasp")||(s["children_address_pasp_"+r]=n("address_pasp","required")),e.hasOwnProperty("children_city")||(s["children_city_"+r]=n("city","required")),e.hasOwnProperty("children_state_pasp")||(s["children_state_pasp_"+r]=n("state_pasp","required")),e.hasOwnProperty("children_code_zip")||(s["children_code_zip_"+r]=n("code_zip","required"))),t.WEB_SALE_FORM_SHOW_DOB.value&&(e.hasOwnProperty("children_dateBirth")&&""!=e.children_dateBirth.trim()||(s["children_dateBirth_"+r]=n("dateBirth","required"))),t.WEB_SALE_FORM_SHOW_SEX.value&&(e.hasOwnProperty("children_sexo")&&""!=e.children_sexo||(s["children_sexo_"+r]=n("sexo","required"))))})),s},o=function(e){if(""==e)return new Object;var t=/(\d{1,4})/,a=[{type:"amex",pattern:/^3[47]/,format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,cclength:[15],cvcLength:[4],luhn:!0},{type:"dankort",pattern:/^5019/,format:t,cclength:[16],cvcLength:[3],luhn:!0},{type:"hipercard",pattern:/^(384100|384140|384160|606282|637095|637568|60(?!11))/,format:t,cclength:[14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"dinersclub",pattern:/^(36|38|30[0-5])/,format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,cclength:[14],cvcLength:[3],luhn:!0},{type:"discover",pattern:/^(6011|65|64[4-9]|622)/,format:t,cclength:[16],cvcLength:[3],luhn:!0},{type:"jcb",pattern:/^35/,format:t,cclength:[16],cvcLength:[3],luhn:!0},{type:"laser",pattern:/^(6706|6771|6709)/,format:t,cclength:[16,17,18,19],cvcLength:[3],luhn:!0},{type:"maestro",pattern:/^(5018|5020|5038|6304|6703|6708|6759|676[1-3])/,format:t,cclength:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"mastercard",pattern:/^(5[1-5]|677189)|^(222[1-9]|2[3-6]\d{2}|27[0-1]\d|2720)/,format:t,cclength:[16],cvcLength:[3],luhn:!0},{type:"unionpay",pattern:/^62/,format:t,cclength:[16,17,18,19],cvcLength:[3],luhn:!1}
1,{type:"visaelectron",pattern:/^4(026|17500|405|508|844|91[37])/,format:t,cclength:[16],cvcLength:[3],luhn:!0},{type:"elo",pattern:/^(4011(78|79)|43(1274|8935)|45(1416|7393|763(1|2))|50(4175|6699|67[0-7][0-9]|9000)|627780|63(6297|6368)|650(03([^4])|04([0-9])|05(0|1)|4(0[5-9]|3[0-9]|8[5-9]|9[0-9])|5([0-2][0-9]|3[0-8])|9([2-6][0-9]|7[0-8])|541|700|720|901)|651652|655000|655021)/,format:t,cclength:[16],cvcLength:[3],luhn:!0},{type:"visa",pattern:/^4/,format:t,cclength:[13,16,19],cvcLength:[3],luhn:!0}];e=(e+"").replace(/\D/g,"");for(var s=0,r=a.length;s<r;s++){var i=a[s];if(i.pattern.test(e))return i}return{}},c=function(e,t,a,s,i,n,l,o,c,d,u,p,m,v){var h={errorsownernamecard:"",errorsownerlastnamecard:"",errorsnumbercard:"",errorscardduedate:"",errorscardcvv:"",errorsowneraddresscard:"",errorsownercitycard:"",errorsownercountrycard:"",errorsownerstatecard:"",errorsownerzipcodecard:"",errorsowneremailcard:"",errorsownernumdocumentcard:"",err:!1};if(""==t.trim()&&(h.errorsownernamecard="Nombre del titular requerido",h.err=!0),""==a.trim()&&(h.errorsownerlastnamecard="Apellido del titular requerido",h.err=!0),""==s.trim()&&(h.errorsnumbercard="Numero de tarjeta requerido",h.err=!0),""==i.trim()&&(h.errorscardduedate="Fecha de expiracion requerido",h.err=!0),""==n.trim()&&(h.errorscardcvv="CVV requerido",h.err=!0),Object.keys(l).length>0){l.cclength[0]>s.length&&(h.errorsnumbercard="Lo minimo de caracteres es "+l.cclength[0],h.err=!0);var f=i.split("/");"undefined"==typeof f[1]&&(h.errorscardduedate="falta año de vencimiento",h.err=!0),parseInt(f[0])>12&&(h.errorscardduedate="elegir mes correcto",h.err=!0),r()(i,"MM/YYYY").valueOf()<=r()().valueOf()&&(h.errorscardduedate="elegir fecha mayor a la actual",h.err=!0),l.cvcLength[0]<n.length&&(h.errorscardcvv="Lo minimo de caracteres es "+l.cvcLength[0],h.err=!0)}return e.BILLING_ADDRESS_FRAUD_DETECTION.value&&(""==o.trim()&&(h.errorsowneraddresscard="Dirección requerida",h.err=!0),""==c.trim()&&(h.errorsownercitycard="Ciudad requerida",h.err=!0),""==d.trim()&&(h.errorsownercountrycard="Pais requerido",h.err=!0),"us"==d&&""==u.trim()&&(h.errorsownerstatecard="Estado requerido",h.err=!0)),"PE"!=d&&""==p.trim()&&(h.errorsownerzipcodecard="Código Postal requerido",h.err=!0),e.PAGO_CULQI.value&&""==m.trim()&&(h.errorsowneremailcard="Email requerido",h.err=!0),e.PAGO_GLICPAY.value&&""==v.trim()&&(h.errorsownernumdocumentcard="Numero de document requerido",h.err=!0),h},d=function(e){var t="",a=0;if("string"!=typeof e){var s=e.response;"undefined"!=typeof s.data.details?(a=s.code,t=s.data.details):"undefined"!=typeof s.data.msg?(a=s.data.code,t=s.data.msg):"undefined"!=typeof s.details&&(a=s.code,t=s.details)}else t=e;return{code:a,msg:t}},u=function(e){return 0!==i["a"].getters["search/travel"].ID_AIRLINE&&(i["a"].dispatch("search/checkIdAirlineExists"),0!==i["a"].getters["search/travel"].ID_AIRLINE&&Object.assign(e,{ID_AIRLINE:i["a"].getters["search/travel"].ID_AIRLINE})),e}},1409:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tab-pane fade in active show",attrs:{id:"proximo"}},[a("div",{staticClass:"accordion accordion-spaced mt-4",attrs:{id:"accordion-1"}},[0===e.travels.length?a("div",{staticClass:"card b-shadow-n"},[a("div",{staticClass:" bg-gray-1 border-mv p-0"},[a("div",{staticClass:"d-block py-4 special-col bg-gray-1"},[a("p",{staticClass:"mb-0 text-center"},[e._v(e._s(e.$t("No tienes viajes programados"))+". "),a("a",{staticClass:"text-light-blue text-light-blue-hover text-underline",attrs:{href:"#"},on:{click:function(t){return e.$router.push({name:"home"})}}},[e._v(e._s(e.$t("Planea uno ahora"))+".")])])])])]):a("div",{attrs:{role:"tablist"}},e._l(e.travels,(function(t,s){return a("b-card",{key:s,staticClass:"b-shadow-n",attrs:{"no-body":""}},[a("b-card-header",{staticClass:"card-mis-viajes bg-gray-1 p-0",attrs:{"header-tag":"header","aria-expanded":"false",role:"tab"},on:{click:function(t){return e.$root.$emit("bv::toggle::collapse","accordion-"+s)}}},[a("div",{staticClass:"text-center border-mv py-lg-4 pt-45 special-col align-items-center bg-gray-1"},[a("div",{staticClass:"w-15 p-lr-small date-travel-mobile"},[a("span",{staticClass:"d-inline-block d-lg-none"},[a("i",{staticClass:"far fa-bus mr-2"})]),a("p",{staticClass:"font-weight-700 mb-0 text-xlg lh-100 day-travel-mobile"},[e._v(e._s(e.formatDay(t.cell[4])))]),a("p",{staticClass:"mb-0 lh-110 month-travel-mobile"},[e._v(e._s(e.$t(e.formatMonthYear(t.cell[4]))))])]),a("div",{staticClass:"w-30 p-lr-small departure-t-travel-mobile"},[a("p",{staticClass:"mb-0 text-limit",attrs:{title:t.cell[8]}},[e._v(e._s(t.cell[8]))])]),a("i",{staticClass:"w-5 fa-angle-right far text-center text-light-blue"}),a("div",{staticClass:"w-30 p-lr-small return-t-travel-mobile"},[a("p",{staticClass:"mb-0 text-limit",attrs:{title:t.cell[9]}},[e._v(e._s(t.cell[9]))])]),a("div",{staticClass:"w-20 p-lr-small price-travel-mobile"},[a("p",{staticClass:"mb-0 text-limit text-xlg font-weight-600"},[a("span",{staticClass:"text-sm"},[e._v(e._s(t.cell[11]))]),e._v(" "+e._s(e.getAmountPayment(t.cell[6])[0])),a("span",{staticClass:"text-sm"}
1,[e._v("."+e._s(e.getAmountPayment(t.cell[6])[1]))])])])])]),a("b-collapse",{staticClass:"accordion-trevels-coming",attrs:{id:"accordion-"+s,accordion:"accordion-travels-completed",role:"tabpanel"}},[a("b-card-body",[a("div",{staticClass:"p-0 col-12 lh-100 text-center text-dark text-sm"},[a("div",{staticClass:"w-100 special-col border-bottom pb-3 mb-2 align-items-center"},[a("div",{staticClass:"col-3 p-lr-small text-left"},[a("strong",[e._v(e._s(e.$t("Número de Boletos")))])]),a("div",{staticClass:"col-3 p-lr-small"},[a("strong",[e._v(e._s(e.$t("Tarifa Base")))])]),a("div",{staticClass:"col-2 p-lr-small"},[a("strong",[e._v(e._s(e.$t("Estado")))])]),a("div",{staticClass:"col-2 p-lr-small"},[a("strong",[e._v(e._s(e.$t("Método de Pago")))])]),a("div",{staticClass:"col-2 p-lr-small text-capitalize"},[a("strong",[e._v(e._s(e.$t("Puntos")))])])]),a("div",{staticClass:"w-100 special-col pt-3 pb-3 align-items-center"},[a("div",{staticClass:"col-3 p-lr-small text-left"},[e._v(e._s(t.cell[0]))]),a("div",{staticClass:"col-3 p-lr-small"},[e._v(e._s(t.cell[2]))]),a("div",{staticClass:"col-2 p-lr-small"},[e._v(e._s(t.cell[3]))]),a("div",{staticClass:"col-2 p-lr-small"},[e._v(e._s(t.cell[5]))]),a("div",{staticClass:"col-2 p-lr-small"},[e._v(e._s(t.cell[7]))])])]),a("div",{staticClass:"p-0 col-12 lh-100 text-center text-dark text-sm mt-4"},[a("div",{staticClass:"w-100 special-col border-bottom pb-3 mb-2 align-items-center"},[a("div",{staticClass:"col-3 p-lr-small text-left"},[a("strong",[e._v(e._s(e.$t("Fecha Compra")))])]),a("div",{staticClass:"col-3 p-lr-small"},[a("strong",[e._v(e._s(e.$t("Fecha de Viaje"))+" ")])]),a("div",{staticClass:"col-3 p-lr-small text-capitalize"},[a("strong",[e._v(e._s(e.$t("CÃDIGO TRANSACCIONAL DE PAYPAL")))])])]),a("div",{staticClass:"w-100 special-col pt-3 pb-3 align-items-center"},[a("div",{staticClass:"col-3 p-lr-small text-left"},[e._v(e._s(t.cell[1]))]),a("div",{staticClass:"col-3 p-lr-small"},[e._v(e._s(t.cell[4]))]),a("div",{staticClass:"col-3 p-lr-small"},[e._v(e._s(t.cell[12]))]),a("div",{staticClass:"col-3 p-lr-small text-rigth d-none d-lg-inline-block"},[a("button",{staticClass:"btn btn-link text-danger float-right text-sm refund-travel-coming",attrs:{type:"button","data-toggle":"modal","data-dismiss":"modal","data-target":"#anular_boleto"},on:{click:function(a){return e.preProcessRefund(t.cell[0],t.cell[11])}}},[a("i",{staticClass:"far fa-ban"}),e._v(" "+e._s(e.$t("Procesar Anulación")))])])])])])],1)],1)})),1),a("nav",{staticClass:"d-table mt-5 mx-auto",attrs:{"aria-label":"..."}},[e.records>e.travels.length?a("ul",{staticClass:"pagination"},[a("li",{staticClass:"page-item",class:{disabled:1===e.page}},[a("a",{staticClass:"page-link",attrs:{href:"#",tabindex:"-1"},on:{click:function(t){return t.preventDefault(),e.changePage(e.page-1)}}},[e._v(e._s(e.$t("Anterior")))])]),e._l(e.total,(function(t,s){return a("li",{key:s,staticClass:"page-item",class:{active:s+1===e.page}},[a("a",{staticClass:"page-link",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.changePage(s+1)}}},[e._v(e._s(s+1))])])})),a("li",{staticClass:"page-item",class:{disabled:e.page===e.total}},[a("a",{staticClass:"page-link",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.changePage(e.page+1)}}},[e._v(e._s(e.$t("Siguiente")))])])],2):e._e()])]),a("b-modal",{attrs:{id:"modal_penalidad_por_anulacion","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("h5",{staticClass:"modal-title pb-4 text-center",attrs:{id:"exampleModalLabel"}},[e._v(e._s(e.$t("Penalidad por anulación")))]),null!=e.preProcess?a("div",{staticClass:"d-block text-left"},[a("p",{staticClass:"font-weight-300"},[e._v(" "+e._s(e.$t("Por la anulación de la tarifa"))+" "+e._s(e.fear)+" "+e._s(e.$t("Usted abonará una penalidad de"))+" "+e._s(e.percentagePenalty))]),a("p",{staticClass:"font-weight-700 text-gray-4 text-lg mb-4"},[e._v(e._s(e.$t("Monto a devolver"))+": "+e._s(e.currentCurrency)+e._s(e.amountPenalty))])]):e._e(
1),e.loadProcess?a("b-button",{staticClass:"btn-primary w-100 ver-detalles mb-3",attrs:{variant:"primary",block:"",disabled:""}},[a("div",{staticClass:"spinner-border text-light",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[e._v("Loading...")])])]):a("b-button",{staticClass:"btn-primary w-100 ver-detalles mb-3",attrs:{variant:"primary",block:""},on:{click:function(t){return e.processRefund()}}},[e._v(e._s(e.$t("Aceptar Penalidad y Anular")))]),a("span",{staticClass:"cursor-pointer text-center text-sm d-block mb-2",on:{click:function(e){return s()}}},[e._v(e._s(e.$t("Cancelar")))])],1)]}}])}),a("b-modal",{attrs:{id:"modal_confirm_refund","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("h5",{staticClass:"modal-title pb-4 text-center text-green"},[e._v(e._s(e.$t("Anulación correcta")))]),a("div",{staticClass:"d-block text-left"},[a("p",{staticClass:"font-weight-300"},[e._v(e._s(e.$t("Se Anulo correctamente el Ticket"))+" , "),a("strong",[e._v(e._s(e.$t("se hizo el reembolso a su tarjeta. Espere 3 dÃas para ver el reembolso en su tarjeta")))]),e._v(". "+e._s(e.$t("En breve te enviaremos un email con la confirmación de la anulación"))+".")]),a("p",{staticClass:"font-weight-700 text-gray-4 mb-4"},[e._v(e._s(e.$t("Código de Transacción"))+" "),a("span",{},[e._v(e._s(e.transactionCode))])])]),e.loadProcess?e._e():a("b-button",{staticClass:"btn-primary w-100 ver-detalles mb-3",attrs:{variant:"primary"},on:{click:function(t){return e.$router.push({name:"home"})}}},[e._v(e._s(e.$t("Busca un nuevo viaje")))]),a("span",{staticClass:"cursor-pointer text-center text-sm d-block mb-2",on:{click:function(e){return s()}}},[e._v(e._s(e.$t("Cerrar")))])],1)]}}])})],1)},r=[],i=(a("8e6e"),a("456d"),a("ac4d"),a("8a81"),a("ac6a"),a("28a5"),a("bd86")),n=a("2f62"),l=a("c1df"),o=a.n(l),c=a("0e0b");function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function u(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?d(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var p={headers:{"Content-Type":"application/x-www-form-urlencoded"}},m={data:function(){return{pagination:{page:1,rows:5},page:null,records:null,total:null,travels:[],preProcess:null,percentagePenalty:"",amountPenalty:"",fear:"",loadProcess:!1,currentCurrency:"",transactionCode:""}},created:function(){this.loadTravels()},methods:u({home:function(){this.$router.push({name:"home"})},actionHidden:function(){this.loadTravels()},changePage:function(e){this.pagination.page=e,this.loadTravels()},formatDay:function(e){var t=o()(e,"MM/DD/YYYY HH:mm").format("DD");return t},formatMonthYear:function(e){o.a.locale(this.options.LANG);var t=o()(e,"MM/DD/YYYY HH:mm").format("MMMM YYYY");return t},loadTravels:function(){var e=this;this.setLoading({state:!0,msg:this.$t("Cargando Viajes"),class:""}),this.$http({method:"POST",url:"user/listRecordShopping",data:{page:this.pagination.page,rows:this.pagination.rows,idPassenger:this.user.idUser,typeList:"coming"}}).then((function(t){e.travels=t.data.data.rows,e.page=t.data.data.page,e.records=t.data.data.records,e.total=t.data.data.total,e.setLoading({state:!1,msg:"",class:""})})).catch((function(t){e.$eventBus.$emit("loadError",Object(c["b"])(t)),e.setLoading({state:!1,msg:"",class:""})}))},getAmountPayment:function(e){return String(e.toFixed(2)).split(".")},preProcessRefund:function(e,t){var a=this;this.setLoading({state:!0,msg:this.$t("Pre Procesando Reembolso"),class:""});var s=new Array;s.push(e);var r={A_ID_TICKETS:s};this.$http.post("refund/preProcess",r,p).then((function(e){var t=e.data.data,s=0,r=0,i=!0,n=!1,l=void 0;try{for(var o,c=t[Symbol.iterator]();!(i=(o=c.next()).done);i=!0){var d=o.value;if(console.log(d.penalty),d.penalty){s+=d.amountRetPenalty;var u=d.penalty.split(" ");r+=parseFloat(u[0])}else r=0,s+=parseFloat(d.amountRet)}}catch(p){n=!0,l=p}finally{try{i||null==c.return||c.return()}finally{if(n)throw l}}a.percentagePenalty=t.penalty?r/t.length:r,a.amountPenalty=t.penalty?s/t.length:s,a.preProcess=t,a.setLoading({state:!1,msg:"",class:""}
1),a.$bvModal.show("modal_penalidad_por_anulacion")})).catch((function(e){a.preProcess=null,a.$eventBus.$emit("loadError",Object(c["b"])(e)),a.setLoading({state:!1,msg:"",class:""})}))},processRefund:function(){var e=this;if(this.loadProcess=!0,null!=this.preProcess){var t={A_TICKETS:this.preProcess};this.$http.post("refund/processRefund",t,p).then((function(t){e.transactionCode=t.data.data.id[0],e.$bvModal.hide("modal_penalidad_por_anulacion"),e.$bvModal.show("modal_confirm_refund"),e.loadProcess=!1})).catch((function(t){e.$eventBus.$emit("loadError",Object(c["b"])(t)),e.loadProcess=!1}))}}},Object(n["b"])({setLoading:"options/setLoading"})),computed:u({},Object(n["c"])({user:"auth/user",options:"options/listoptions"}))},v=m,h=a("2877"),f=Object(h["a"])(v,s,r,!1,null,null,null);t["default"]=f.exports},"191e":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"row"},[e._m(0),a("div",{staticClass:"col-12"},[a("button",{staticClass:"btn btn-primary",on:{click:function(t){return e.returnHome()}}},[e._v("Home")])])])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"col-12 mb-5 mt-5"},[a("h3",[e._v("Clean all cache for views")]),a("h3",[e._v("User login session destroyed")]),a("h3",[e._v("Native session destroyed")])])}],i=(a("8e6e"),a("ac6a"),a("456d"),a("bd86")),n=a("2f62");function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var c={created:function(){var e=this;this.setLoading({state:!0,msg:"",class:""});var t={headers:{"Content-Type":"application/x-www-form-urlencoded"}};this.$http.post("options/cleanCache",{},t).then((function(t){e.setstateOption(1),e.setlistoptions(null),e.setskin(null),e.setSelectOrder(null),e.resetSelectOrder(null),e.setAuth(null),e.checkTimeLife(null),e.deleteCache(),e.setShoppingCart(null),e.setShoppingCartList(null),e.setMaxSeatSelected(1),e.setNumberSelectedSeats(0),e.setSelectedSeatsOw(null),e.setSelectedSeatsRw(null),e.setIsReturn(null),e.setDirection(0),e.setIsMultiroute(!1),e.setPassengers(null),e.setTravel(null),e.setcurrentdateOw(null),e.setcurrentdateRw(null),e.setTypeway(null),e.setListTravel(null),e.setTrvListOptions(null),e.setSelectTravel(null),e.setListDates(null),e.setpreviewBusbyTravel(null),e.setdetailsFares(null),e.restartState(),e.setLoading({state:!1,msg:"",class:""})})).catch((function(e){}))},computed:{},methods:o({returnHome:function(){this.$router.push({name:"home"}),window.location.href=window.location.origin}},Object(n["b"])({setLoading:"options/setLoading",setstateOption:"options/setstateOption",setlistoptions:"options/setlistoptions",setskin:"options/setskin",setSelectOrder:"options/setSelectOrder",resetSelectOrder:"options/resetSelectOrder",setAuth:"auth/setAuth",checkTimeLife:"auth/checkTimeLife",deleteCache:"cache/deleteCache",setShoppingCart:"cart/setShoppingCart",setShoppingCartList:"cart/setShoppingCartList",setMaxSeatSelected:"cart/setMaxSeatSelected",setNumberSelectedSeats:"cart/setNumberSelectedSeats",setSelectedSeatsOw:"cart/setSelectedSeatsOw",setSelectedSeatsRw:"cart/setSelectedSeatsRw",setIsReturn:"cart/setIsReturn",setDirection:"cart/setDirection",setIsMultiroute:"cart/setIsMultiroute",setPassengers:"cart/setPassengers",setTravel:"search/setTravel",setcurrentdateOw:"search/setcurrentdateOw",setcurrentdateRw:"search/setcurrentdateRw",setTypeway:"search/setTypeway",setListTravel:"travels/setListTravel",setTrvListOptions:"travels/setListOptions",setSelectTravel:"travels/setSelectTravel",setListDates:"travels/setListDates",setpreviewBusbyTravel:"travels/setpreviewBusbyTravel",setdetailsFares:"travels/setdetailsFares",restartState:"travels/restartState"}))},d=c,u=a("2877"),p=Object(u["a"])(d,s,r,!1,null,null,null);t["default"]=p.exports},"22de":function(e,t,a){e.exports=a.p+"static/img/bus-404.1b97f5c6.gif"},"23c5":function(e,t,a){},"28bb":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;
1return a("div",{attrs:{id:"content"}},[a("div",{staticClass:"container text-left mt-5",staticStyle:{"margin-bottom":"100px"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[a("h2",{staticClass:"d-none d-lg-block font-weight-600 text-xl mb-4 lh-100"},[e._v(e._s(e.$t("Tu Perfil"))+" "),a("span",{staticClass:"text-capitalize"},[e._v(e._s(e.user.completeName))])]),a("div",{staticClass:"d-block d-lg-none mb-3 lh-100 d-flex align-items-center"},[a("img",{staticClass:"avatar-lg mb-2 d-inline-block mr-3",attrs:{src:e.imgUser,alt:"Icono usuario"}}),a("div",{staticClass:"d-inline-block"},[a("h2",{staticClass:"font-weight-600 text-lg mb-0 text-capitalize lh-100"},[e._v(e._s(e.user.completeName))]),a("h3",{staticClass:"text-md mb-0"},[e._v(e._s(e.$t("Código"))+" "+e._s(e.user.code))]),a("h3",{staticClass:"text-md mb-0 text-gray-3"},[e._v(e._s(e.$t("Ver mi perfil")))])])]),a("div",{staticClass:"special-col"},[a("h3",{staticClass:"col-auto font-weight-600 text-lg p-0"},[e._v(e._s(e.$t("Datos Generales")))]),a("div",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"update-password",expression:"'update-password'"}],staticClass:"col text-right text-light-blue p-0 no-link-pointer d-none d-sm-block"},[a("span",[e._v(e._s(e.$t("Cambiar Contraseña")))])]),a("div",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"update-password",expression:"'update-password'"}],staticClass:"col text-right text-light-blue p-0 no-link-pointer d-block d-sm-none"},[e._m(0)])]),a("div",{staticClass:"w-100 special-col"},[a("div",{staticClass:"col-md-4 p-r-small"},[a("div",{staticClass:"form-field form-field__control overflow-visible",class:{"is-invalid":e.errors.user.firstName.length>0,"disabled-profile":e.isDisabled}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.userTemp.firstName,expression:"userTemp.firstName"}],staticClass:"form-field__input text-capitalize",attrs:{id:"firstname",type:"text",onkeyup:"this.setAttribute('value', this.value);",disabled:e.isDisabled},domProps:{value:e.userTemp.firstName},on:{input:function(t){t.target.composing||e.$set(e.userTemp,"firstName",t.target.value)}}}),a("label",{staticClass:"form-field__label text-capitalize",attrs:{for:"firstname"}},[e._v(e._s(e.$t("Nombres")))]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.user.firstName.length>0,expression:"errors.user.firstName.length > 0"}],staticClass:"text-error"},[e._v(e._s(e.errors.user.firstName[0]))])])]),a("div",{staticClass:"col-md-4 p-lr-small"},[a("div",{staticClass:"form-field form-field__control overflow-visible",class:{"is-invalid":e.errors.user.lastName.length>0,"disabled-profile":e.isDisabled}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.userTemp.lastName,expression:"userTemp.lastName"}],staticClass:"form-field__input text-capitalize",attrs:{id:"secondname",type:"text",onkeyup:"this.setAttribute('value', this.value);",disabled:e.isDisabled},domProps:{value:e.userTemp.lastName},on:{input:function(t){t.target.composing||e.$set(e.userTemp,"lastName",t.target.value)}}}),a("label",{staticClass:"form-field__label text-capitalize",attrs:{for:"secondname"}},[e._v(e._s(e.$t("Apellidos")))]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.user.lastName.length>0,expression:"errors.user.lastName.length > 0"}],staticClass:"text-error"},[e._v(e._s(e.errors.user.lastName[0]))])])]),a("div",{staticClass:"col-md-4 p-l-small"},[a("div",{staticClass:"form-field form-field__control overflow-visible",class:{"is-invalid":e.errors.user.email.length>0,"disabled-profile":e.isDisabled}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.userTemp.email,expression:"userTemp.email"}],staticClass:"form-field__input",attrs:{id:"email",type:"text",onkeyup:"this.setAttribute('value', this.value);",disabled:e.isDisabled},domProps:{value:e.userTemp.email},on:{input:function(t){t.target.composing||e.$set(e.userTemp,"email",t.target.value)}}}),a("label",{staticClass:"form-field__label text-capitalize",attrs:{for:"email"}},[e._v("Email")]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.user.email.length>0,expression:"errors.user.email.length > 0"}],staticClass:"text-error"},[e._v(e._s(e.errors.user.email[0]))])])]),a("div",{staticClass:"col-md-4 p-r-small"},[a("div",{staticClass:"form-field form-field__control overflow-visible",class:{"
1is-invalid":e.errors.user.phone.length>0,"disabled-profile":e.isDisabled}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.userTemp.phone,expression:"userTemp.phone"}],staticClass:"form-field__input",attrs:{id:"phone",type:"text",onkeyup:"this.setAttribute('value', this.value);",disabled:e.isDisabled},domProps:{value:e.userTemp.phone},on:{input:function(t){t.target.composing||e.$set(e.userTemp,"phone",t.target.value)}}}),a("label",{staticClass:"form-field__label text-capitalize",attrs:{for:"phone"}},[e._v(e._s(e.$t("Teléfono")))]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.user.phone.length>0,expression:"errors.user.phone.length > 0"}],staticClass:"text-error"},[e._v(e._s(e.errors.user.phone[0]))])])]),a("div",{staticClass:"col-md-4 p-lr-small"},[a("div",{staticClass:"form-field form-field__control",class:{"disabled-profile":e.isDisabled}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.userTemp.dob,expression:"userTemp.dob"}],staticClass:"form-field__input",attrs:{id:"travelcode",type:"date",onkeyup:"this.setAttribute('value', this.value);",disabled:e.isDisabled},domProps:{value:e.userTemp.dob},on:{input:function(t){t.target.composing||e.$set(e.userTemp,"dob",t.target.value)}}}),a("label",{staticClass:"form-field__label text-uppercase label-up",attrs:{for:"travelcode"}}
1,[e._v(e._s(e.$t("Fecha de Nacimiento")))])])]),a("div",{staticClass:"col-md-4 p-l-small"},[a("p",{staticClass:"mb-0 text-xs"},[e._v(e._s(e.$t("Género")))]),a("div",{staticClass:"custom-control custom-radio d-inline-block"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.userTemp.sex,expression:"userTemp.sex"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"customRadio1",name:"customRadio",value:"M",disabled:e.isDisabled},domProps:{checked:e._q(e.userTemp.sex,"M")},on:{change:function(t){return e.$set(e.userTemp,"sex","M")}}}),a("label",{staticClass:"custom-control-label",attrs:{for:"customRadio1"}},[e._v(e._s(e.$t("Masculino")))])]),a("div",{staticClass:"custom-control custom-radio d-inline-block ml-4"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.userTemp.sex,expression:"userTemp.sex"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"customRadio2",name:"customRadio",value:"F",disabled:e.isDisabled},domProps:{checked:e._q(e.userTemp.sex,"F")},on:{change:function(t){return e.$set(e.userTemp,"sex","F")}}}),a("label",{staticClass:"custom-control-label",attrs:{for:"customRadio2"}},[e._v(e._s(e.$t("Femenino")))])])])]),a("div",{staticClass:"text-right mb-4 mt-3 mt-lg-0"},[e.isDisabled?a("button",{staticClass:"btn btn-outline-edit w-12",staticStyle:{"font-size":"14px"},on:{click:e.disabledInput}},[e._v(e._s(e.$t("Editar Pasajero")))]):[a("a",{staticClass:"btn text-base",on:{click:e.enableInput}},[e._v(e._s(e.$t("Cancelar")))]),e.loadRegister?a("button",{staticClass:"btn btn-outline-edit w-12",on:{click:e.updateUser}},[a("b-spinner",{attrs:{small:"",label:"Small Spinner"}})],1):a("button",{staticClass:"btn btn-outline-edit w-12",on:{click:e.updateUser}},[e._v(e._s(e.$t("Actualizar")))])]],2),a("div",{staticClass:"d-block"},[a("h3",{staticClass:"font-weight-600 text-lg"},[e._v(e._s(e.$t("Direcciones")))])]),e.listAddress.length>0?a("div",{staticClass:"row"},e._l(e.listAddress,(function(t,s){return a("div",{key:s,staticClass:"col-lg-4 col-sm-6 col-12"},[a("div",{staticClass:"box-direcciones"},[a("p",{staticClass:"header-box-direcciones"},[e._v(e._s(e.$t("Dirección"))+" "+e._s(s+1))]),a("div",{staticClass:"text-direction d-flex lh-130"},[e._m(1,!0),a("div",{staticClass:"text-list d-inline-block"},[e._v("\n "+e._s(t.address)+"\n "),a("br"),e._v(e._s(t.customCityName)+" - "+e._s(t.colony)+" - "+e._s(t.name)+"\n ")])]),a("div",{staticClass:"text-direction-phone d-flex lh-130 mt-1"},[e._m(2,!0),a("div",{staticClass:"text-list d-inline-block"},[e._v("\n "+e._s(t.cellphone||""!==t.cellphone?t.cellphone:"-")+"\n ")])]),a("div",{staticClass:"icons-direction"},[a("i",{staticClass:"far fa-edit mr-3 no-link-pointer",attrs:{title:e.$t("Editar")},on:{click:function(a){return e.editAddress(t)}}}),a("i",{staticClass:"far fa-trash no-link-pointer",attrs:{title:e.$t("Eliminar")},on:{click:function(a){return e.showModalDeleteAddress(t.idAddress)}}})])])])})),0):a("div",[a("br"),a("p",{staticStyle:{"text-align":"center"}},[e._v(e._s(e.$t("No hay Registros")))]),a("br")]),a("div",{staticClass:"col text-light-blue p-0"},[a("span",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"address",expression:"'address'"}],staticClass:"cursor-pointer"},[e._v("+ "+e._s(e.$t("Agregar Dirección")))])])])])]),a("b-modal",{ref:"address-ref",attrs:{id:"address","hide-footer":"","hide-header":"",centered:""},on:{shown:e.actionsShown,hidden:e.actionsHidden},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("form",{staticClass:"pt-1",on:{submit:function(t){return t.preventDefault(),e.saveUpdateAddress(t)}}},[a("h5",{staticClass:"modal-title pb-4 text-center",attrs:{id:"exampleModalLabel"}},[e._v(e._s(e.isEdit?e.$t("Actualizar"):e.$t("Nuevo"))+" "+e._s(e.$t("Dirección")))]),a("div",{staticClass:"form-field form-field__control mb-3 input-group overflow-visible form-field__select",class:{"
1is-invalid":e.errors.address.country.length>0}},[a("select",{directives:[{name:"model",rawName:"v-model",value:e.address.country,expression:"address.country"}],staticClass:"form-field__input select-form",attrs:{id:"add-country",name:"country"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.address,"country",t.target.multiple?a:a[0])}}},e._l(e.countries,(function(t,s){return a("option",{key:s,domProps:{value:t.value}},[e._v(e._s(t.label))])})),0),a("label",{ref:"country",staticClass:"form-field__label label-up",attrs:{for:"add-country"}},[e._v(e._s(e.$t("PaÃs")))]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.address.country.length>0,expression:"errors.address.country.length > 0"}],staticClass:"text-error"},[e._v(e._s(e.errors.address.country[0]))])]),a("div",{staticClass:"form-field form-field__control mb-3 input-group overflow-visible",class:{"is-invalid":e.errors.address.city.length>0}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.address.city,expression:"address.city"}],staticClass:"form-field__input",attrs:{id:"add-city",name:"username",type:"text",value:"",onkeyup:"this.setAttribute('value', this.value);"},domProps:{value:e.address.city},on:{input:function(t){t.target.composing||e.$set(e.address,"city",t.target.value)}}}),a("label",{staticClass:"form-field__label",class:{"label-up":e.isEdit},attrs:{for:"add-city"}},[e._v(e._s(e.$t("Ciudad")))]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.address.city.length>0,expression:"errors.address.city.length > 0"}],staticClass:"text-error"},[e._v(e._s(e.errors.address.city[0]))])]),a("div",{staticClass:"form-field form-field__control mb-3 input-group overflow-visible",class:{"is-invalid":e.errors.address.state.length>0}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.address.state,expression:"address.state"}],staticClass:"form-field__input",attrs:{id:"add-state",name:"username",type:"text",value:"",onkeyup:"this.setAttribute('value', this.value);"},domProps:{value:e.address.state},on:{input:function(t){t.target.composing||e.$set(e.address,"state",t.target.value)}}}),a("label",{staticClass:"form-field__label",class:{"label-up":e.isEdit},attrs:{for:"add-state"}},[e._v(e._s(e.$t("Estado")))]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.address.state.length>0,expression:"errors.address.state.length > 0"}],staticClass:"text-error"},[e._v(e._s(e.errors.address.state[0]))])]),a("div",{staticClass:"form-field form-field__control mb-3 input-group overflow-visible",class:{"is-invalid":e.errors.address.address.length>0}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.address.address,expression:"address.address"}],staticClass:"form-field__input",attrs:{id:"add-adress",name:"username",type:"text",value:"",onkeyup:"this.setAttribute('value', this.value);"},domProps:{value:e.address.address},on:{input:function(t){t.target.composing||e.$set(e.address,"address",t.target.value)}}}),a("label",{staticClass:"form-field__label",class:{"label-up":e.isEdit},attrs:{for:"add-adress"}},[e._v(e._s(e.$t("Dirección")))]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.address.address.length>0,expression:"errors.address.address.length > 0"}],staticClass:"text-error"},[e._v(e._s(e.errors.address.address[0]))])]),a("div",{staticClass:"form-field form-field__control mb-3 input-group overflow-visible",class:{"is-invalid":e.errors.address.cellPhone.length>0}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.address.cellPhone,expression:"address.cellPhone"}],staticClass:"form-field__input",attrs:{id:"add-cellphone",name:"username",type:"text",value:"",onkeyup:"this.setAttribute('value', this.value);"},domProps:{value:e.address.cellPhone},on:{input:function(t){t.target.composing||e.$set(e.address,"cellPhone",t.target.value)}}}),a("label",{staticClass:"form-field__label",class:{"label-up":e.isEdit},attrs:{for:"add-cellphone"}},[e._v(e._s(e.$t("Teléfono Móvil")))]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.address.cellPhone.length>0,expression:"errors.address.cellPhone.length > 0"}],staticClass:"text-error"},[e._v(e._s(e.errors.address.cellPhone[0]))])]),e.loadRegister?a("button",{staticClass:"btn-primary w-100 ver-detalles pt-1 mb-4",attrs:{type:"submit",disabled:""}},[a("div",{staticClass:"spinner-border text-light",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[e._v("Loading...")])])]):a("button",{staticClass:"btn-primary w-100 ver-detalles py-2 mb-4 text-uppercase",attrs:{type:"submit"}},[e._v(e._s(e.isEdit?e.$t("Actualizar"):e.$t("Registrar")))])])],1
1)])]}}])}),a("b-modal",{attrs:{id:"bv-address-delete",size:"md","hide-footer":"","hide-header":"",centered:""},on:{hidden:e.actionsHidden},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("div",{staticClass:"d-block"},[a("div",{staticClass:"pt-2 text-center"},[a("i",{staticClass:"far fa-trash fa-4x text-blue"}),a("p",{staticClass:"mt-4"},[e._v(e._s(e.$t("¿Seguro de eliminar esta dirección?")))])])]),a("div",{staticClass:"d-block text-center mt-4 mb-2"},[e.loadRegister?a("button",{staticClass:"btn btn-clean-cart-cancel mr-4",attrs:{block:"",disabled:""}},[a("div",{staticClass:"spinner-border text-light",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[e._v("Loading...")])])]):a("button",{staticClass:"btn btn-clean-cart-cancel mr-4",attrs:{block:""},on:{click:function(t){return e.deleteAddress()}}},[e._v(e._s(e.$t("SÃ, Seguro")))]),a("button",{staticClass:"btn btn-cancel-light",attrs:{block:""},on:{click:function(t){return e.$bvModal.hide("bv-address-delete")}}},[e._v(e._s(e.$t("Cancelar")))])])],1)]}}])}),a("b-modal",{ref:"update-password-ref",attrs:{id:"update-password","hide-footer":"","hide-header":"",centered:""},on:{hidden:e.actionsHidden,shown:e.actionsShownPass},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("form",{staticClass:"pt-1 pb-3",on:{submit:function(t){return t.preventDefault(),e.updatePassword(t)}}},[a("h5",{staticClass:"modal-title pb-4 text-center",attrs:{id:"exampleModalLabel"}},[e._v(e._s(e.$t("Actualizar Contraseña")))]),a("div",{staticClass:"form-field form-field__control mb-4 input-group overflow-visible"},["checkbox"===(e.isVisiblePass?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.password.pass,expression:"password.pass"}],ref:"pass",staticClass:"form-field__input",attrs:{id:"pass",name:"pass",value:"",onkeyup:"this.setAttribute('value', this.value);",type:"checkbox"},domProps:{checked:Array.isArray(e.password.pass)?e._i(e.password.pass,"")>-1:e.password.pass},on:{change:function(t){var a=e.password.pass,s=t.target,r=!!s.checked;if(Array.isArray(a)){var i="",n=e._i(a,i);s.checked?n<0&&e.$set(e.password,"pass",a.concat([i])):n>-1&&e.$set(e.password,"pass",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.password,"pass",r)}}}):"radio"===(e.isVisiblePass?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.password.pass,expression:"password.pass"}],ref:"pass",staticClass:"form-field__input",attrs:{id:"pass",name:"pass",value:"",onkeyup:"this.setAttribute('value', this.value);",type:"radio"},domProps:{checked:e._q(e.password.pass,"")},on:{change:function(t){return e.$set(e.password,"pass","")}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.password.pass,expression:"password.pass"}],ref:"pass",staticClass:"form-field__input",attrs:{id:"pass",name:"pass",value:"",onkeyup:"this.setAttribute('value', this.value);",type:e.isVisiblePass?"text":"password"},domProps:{value:e.password.pass},on:{input:function(t){t.target.composing||e.$set(e.password,"pass",t.target.value)}}}),a("label",{staticClass:"form-field__label",attrs:{for:"pass"}},[e._v(e._s(e.$t("Contraseña actual")))]),a("span",{class:[e.isVisiblePass?"show-password":"hidden-password"],on:{click:function(t){e.isVisiblePass=!e.isVisiblePass}}})]),a("div",{staticClass:"form-field form-field__control mb-4 input-group overflow-visible",class:{"is-invalid":e.errors.password.newPass.length>0}},["checkbox"===(e.isVisibleNewPass?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.password.newPass,expression:"password.newPass"}],staticClass:"form-field__input",attrs:{id:"new-pass",name:"new-pass",value:"",onkeyup:"this.setAttribute('value', this.value);",type:"checkbox"},domProps:{checked:Array.isArray(e.password.newPass)?e._i(e.password.newPass,"")>-1:e.password.newPass},on:{change:function(t){var a=e.password.newPass,s=t.target,r=!!s.checked;if(Array.isArray(a)){var i="",n=e._i(a,i);s.checked?n<0&&e.$set(e.password,"newPass",a.concat([i])):n>-1&&e.$set(e.password,"newPass",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.password,"newPass",r)}}}):"radio"===(e.isVisibleNewPass?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.password.newPass,expression:"password.newPass"}],staticClass:"form-field__input",attrs:{id:"new-pass",name:"new-pass",value:"",onkeyup:"this.setAttribute('value', this.value);",type:"radio"},domProps:{checked:e._q(e.password.newPass,"")},on:{change:function(t){return e.$set(e.password,"newPass","")}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.password.newPass,expression:"password.newPass"}],staticClass:"form-field__input",attrs:{id:"new-pass",name:"new-pass",value:"",onkeyup:"this.setAttribute('value', this.value);",type:e.isVisibleNewPass?"text":"password"},domProps:{value:e.password.newPass},on:{input:function(t){t.target.composing||e.$set(e.password,"newPass",t.target.value)}}}),a("label",{staticClass:"form-field__label",attrs:{for:"new-pass"}},[e._v(e._s(e.$t("Contraseña nueva")))]),a("span",{class:[e.isVisibleNewPass?"show-password":"hidden-password"],on:{click:function(t){e.isVisibleNewPass=!e.isVisibleNewPass}}}),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.password.newPass.length>0,expression:"errors.password.newPass.length > 0"}],staticClass:"text-error"},[e._v(e._s(e.errors.password.newPass[0]))])]),a("div",{staticClass:"form-field form-field__control mb-4 input-group overflow-visible",class:{"
1is-invalid":e.errors.password.newPassSame.length>0}},["checkbox"===(e.isVisibleNewPassSame?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.password.newPassSame,expression:"password.newPassSame"}],staticClass:"form-field__input",attrs:{id:"new-pass-same",name:"new-pass-same",value:"",onkeyup:"this.setAttribute('value', this.value);",type:"checkbox"},domProps:{checked:Array.isArray(e.password.newPassSame)?e._i(e.password.newPassSame,"")>-1:e.password.newPassSame},on:{change:function(t){var a=e.password.newPassSame,s=t.target,r=!!s.checked;if(Array.isArray(a)){var i="",n=e._i(a,i);s.checked?n<0&&e.$set(e.password,"newPassSame",a.concat([i])):n>-1&&e.$set(e.password,"newPassSame",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.password,"newPassSame",r)}}}):"radio"===(e.isVisibleNewPassSame?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.password.newPassSame,expression:"password.newPassSame"}],staticClass:"form-field__input",attrs:{id:"new-pass-same",name:"new-pass-same",value:"",onkeyup:"this.setAttribute('value', this.value);",type:"radio"},domProps:{checked:e._q(e.password.newPassSame,"")},on:{change:function(t){return e.$set(e.password,"newPassSame","")}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.password.newPassSame,expression:"password.newPassSame"}],staticClass:"form-field__input",attrs:{id:"new-pass-same",name:"new-pass-same",value:"",onkeyup:"this.setAttribute('value', this.value);",type:e.isVisibleNewPassSame?"text":"password"},domProps:{value:e.password.newPassSame},on:{input:function(t){t.target.composing||e.$set(e.password,"newPassSame",t.target.value)}}}),a("label",{staticClass:"form-field__label",attrs:{for:"new-pass-same"}},[e._v(e._s(e.$t("Repite la Contraseña")))]),a("span",{class:[e.isVisibleNewPassSame?"show-password":"hidden-password"],on:{click:function(t){e.isVisibleNewPassSame=!e.isVisibleNewPassSame}}}),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.password.newPassSame.length>0,expression:"errors.password.newPassSame.length > 0"}],staticClass:"text-error"},[e._v(e._s(e.errors.password.newPassSame[0]))])]),e.loadRegister?a("button",{staticClass:"btn-primary w-100 ver-detalles pt-1 mb-4",attrs:{type:"submit",disabled:""}},[a("div",{staticClass:"spinner-border text-light",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[e._v("Loading...")])])]):a("button",{staticClass:"btn-primary w-100 ver-detalles pt-1 mb-4 text-uppercase",attrs:{type:"submit"}},[e._v(e._s(e.$t("Actualizar")))])])],1)])]}}])})],1)},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",[a("i",{staticClass:"far fa-unlock-alt"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"icon-list d-inline-block"},[a("i",{staticClass:"far fa-map-marker",attrs:{"aria-hidden":"true"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"icon-list d-inline-block"},[a("i",{staticClass:"far fa-mobile",attrs:{"aria-hidden":"true"}})])}],i=(a("8e6e"),a("ac6a"),a("456d"),a("20d6"),a("bd86")),n=a("2f62"),l=a("0e0b");function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?o(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var d={data:function(){return{isDisabled:!0,isEdit:!1,loadRegister:!1,isVisiblePass:!1,isVisibleNewPass:!1,isVisibleNewPassSame:!1,listAddress:[],countries:[],userTemp:{firstName:"",lastName:"",email:"",phone:"",dob:"",sex:""},address:{country:"",address:"",cellPhone:"",city:"",phone:"",state:"",idAddress:null},password:{pass:"",newPass:"",newPassSame:""},errors:{user:{firstName:[],lastName:[],phone:[],email:[]},address:{country:[],address:[],cellPhone:[],city:[],phone:[],state:[]},password:{newPass:[],newPassSame:[]}}}},created:function(){this.copyData(),this.getListAddressById()},computed:c({},Object(n["c"])({user:"auth/user"}),{imgUser:function(){var e="F"===this.user.sex?"women":"men";return a("e1f3")("./user-".concat(e,".svg"))}}
1),methods:c({disabledInput:function(){this.isDisabled=!1},enableInput:function(){this.isDisabled=!0,this.userTemp.firstName=this.user.firstName,this.userTemp.lastName=this.user.lastName,this.userTemp.sex=this.user.sex,this.userTemp.email=this.user.email,this.userTemp.dob=this.user.dob,this.userTemp.phone=this.user.phone},updateUser:function(){var e=this;this.loadRegister=!0,this.$http({method:"POST",url:"user/updateUser",data:{USER_ID:this.user.idUser,FIRST_USER_NAME:this.userTemp.firstName,LAST_USER_NAME:this.userTemp.lastName,C_WEB_SEX:this.userTemp.sex,C_WEB_EMAIL:this.userTemp.email,C_WEB_DOB:this.userTemp.dob,C_WEB_PHONE:this.userTemp.phone}}).then((function(t){e.getUserById(),e.clearErrors(),e.loadRegister=!1,e.isDisabled=!0})).catch((function(t){if(e.copyData(),"422"==t.response.data.code){var a=t.response.data.details,s=a.findIndex((function(e){return"FIRST_USER_NAME"==e.field})),r=a.findIndex((function(e){return"LAST_USER_NAME"==e.field})),i=a.findIndex((function(e){return"C_WEB_EMAIL"==e.field})),n=a.findIndex((function(e){return"C_WEB_PHONE"==e.field}));e.errors.user.firstName=-1!=s?a[s].messages:[],e.errors.user.lastName=-1!=r?a[r].messages:[],e.errors.user.email=-1!=i?a[i].messages:[],e.errors.user.phone=-1!=n?a[n].messages:[],e.loadRegister=!1}else e.$eventBus.$emit("loadError",Object(l["b"])(t)),e.loadRegister=!1,e.isDisabled=!0;e.loadRegister=!1}))},getUserById:function(){var e=this;this.$http({method:"POST",url:"user/getUserById",data:{ID_USER:this.user.idUser}}).then((function(t){e.setAuth({USER:t.data.data}),e.copyData()})).catch((function(t){e.$eventBus.$emit("loadError",Object(l["b"])(t))}))},getSelectCountry:function(){var e=this;this.$http({method:"post",url:"user/getSelectCountry"}).then((function(t){e.countries=t.data.data})).catch((function(t){e.$eventBus.$emit("loadError",Object(l["b"])(t))}))},saveUpdateAddress:function(){var e=this;this.loadRegister=!0;var t={user_id:this.user.idUser,country:this.address.country,customerWebAddress:this.address.address,customerWebCellPhone:this.address.cellPhone,customerWebCity:this.address.city,customerWebPhone:this.address.phone,customerWebState:this.address.state};this.isEdit&&Object.assign(t,{idAddressHidden:this.address.idAddress}),this.$http({method:"POST",url:"user/saveUpdateAddressCustomer",data:t}).then((function(t){e.getListAddressById(),e.loadRegister=!1,e.$bvModal.hide("address")})).catch((function(t){if("422"==t.response.data.code){var a=t.response.data.details,s=a.findIndex((function(e){return"country"==e.field})),r=a.findIndex((function(e){return"customerWebAddress"==e.field})),i=a.findIndex((function(e){return"customerWebCity"==e.field})),n=a.findIndex((function(e){return"customerWebState"==e.field}));e.errors.address.country=-1!=s?a[s].messages:[],e.errors.address.address=-1!=r?a[r].messages:[],e.errors.address.city=-1!=i?a[i].messages:[],e.errors.address.state=-1!=n?a[n].messages:[],e.loadRegister=!1}else e.$eventBus.$emit("loadError",Object(l["b"])(t)),e.loadRegister=!1;e.loadRegister=!1}))},getListAddressById:function(){var e=this;this.$http({method:"POST",url:"user/getListAddressByUser",data:{ID_USER:this.user.idUser}}).then((function(t){e.listAddress=t.data.data})).catch((function(t){e.$eventBus.$emit("loadError",Object(l["b"])(t))}))},editAddress:function(e){this.$bvModal.show("address"),this.isEdit=!0,this.address.idAddress=e.idAddress,this.address.country=e.idCountry,this.address.address=e.address,this.address.cellPhone=e.cellphone,this.address.city=e.customCityName,this.address.phone=e.phone,this.address.state=e.colony},showModalDeleteAddress:function(e){this.address.idAddress=e,this.$bvModal.show("bv-address-delete")},deleteAddress:function(){var e=this;this.loadRegister=!0,this.$http({method:"POST",url:"user/removeAddress",data:{ID_ADDRESS:this.address.idAddress}}).then((function(t){e.getListAddressById(),e.loadRegister=!1,e.$bvModal.hide("bv-address-delete")})).catch((function(t){e.$eventBus.$emit("loadError",Object(l["b"])(t)),e.loadRegister=!1}))},updatePassword:function(){var e=this;this.loadRegister=!0,this.$http({method:"POST",url:"user/updatePassword",data:{ID_USER:this.user.idUser,PASS:this.password.pass,NEW_PASS:this.password.newPass,NEW_PASS_SAME:this.password.newPassSame}}).then((function(t){e.logOut(),e.loadRegister=!1,e.$bvModal.hide("update-password")})).catch((function(t){if("404"==t.response.data.code)e.$eventBus.$emit("loadError",e.$t("La contraseña actual no es correcta")),e.loadRegister=!1;else if("422"==t.response.data.code){var a=t.response.data.details,s=a.findIndex((function(e){return"NEW_PASS"==e.field})),r=a.findIndex((function(e){return"NEW_PASS_SAME"==e.field}));e.errors.password.newPass=-1!=s?a[s].messages:[],e.errors.password.newPassSame=-1!=r?a[r].messages:[],e.loadRegister=!1}else e.$eventBus.$emit("loadError",Object(l["b"])(t)),e.loadRegister=!1;e.loadRegister=!1}))}
1,actionsShown:function(){this.$refs.country.focus(),this.getSelectCountry()},actionsShownPass:function(){this.$refs.pass.focus()},actionsHidden:function(){this.clearErrors(),this.clearAddress(),this.clearPassword(),this.isEdit=!1},copyData:function(){this.userTemp.firstName=this.user.firstName,this.userTemp.lastName=this.user.lastName,this.userTemp.email=this.user.email,this.userTemp.phone=this.user.phone,this.userTemp.dob=this.user.dob,this.userTemp.sex=this.user.sex},clearAddress:function(){this.address={country:"",address:"",cellPhone:"",city:"",phone:"",state:"",idAddress:null}},clearPassword:function(){this.password={pass:"",newPass:"",newPassSame:""}},clearErrors:function(){this.errors.user={firstName:[],lastName:[],phone:[],email:[]},this.errors.address={country:[],address:[],cellPhone:[],city:[],phone:[],state:[]},this.errors.password={newPass:[],newPassSame:[]}}},Object(n["b"])({setAuth:"auth/setAuth",logOut:"auth/logOut"})),watch:{"password.newPass":function(){var e=this;""!=this.password&&this.$http({method:"POST",url:"user/getValidateCurrentpass",data:{CURRENT_PASS:this.password.newPass}}).then((function(t){e.errors.password.newPass=[]})).catch((function(t){"422"==t.response.data.code?e.errors.password.newPass.unshift(t.response.data.details[0].messages[0]):e.$eventBus.$emit("loadError",Object(l["b"])(t))}))}}},u=d,p=(a("7cf3"),a("2877")),m=Object(p["a"])(u,s,r,!1,null,null,null);t["default"]=m.exports},"2cbd":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"breandcrumbs",attrs:{id:"breandcrumbs"}},[a("div",{staticClass:"container"},[a("div",{staticClass:"mx-auto col-lg-9 col-sm-12 col-md-11 justify-content-between py-3 row text-breandcrumbs"},[a("div",{staticClass:"line-breandcrumbs"},[a("div",{staticClass:"step step-one",class:{active:e.stateoption>=2}}),a("div",{staticClass:"step step-second",class:{active:e.stateoption>=3}}),a("div",{staticClass:"step step-third",class:{active:e.stateoption>=4}})]),a("div",{staticClass:"col-2 col-md-2 col-sm-2 p-0 mt-n3"},[a("a",{class:{active:e.stateoption>=1},attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.stateoption>=2&&e.loadStepOne()}}},[a("span",[e._v("1")]),a("br"),e._v(e._s(e.$t("Buscar"))),a("br"),e._v(" ")])]),a("div",{staticClass:"col-2 col-md-2 col-sm-2 p-0 mt-n3"},[a("a",{class:{active:e.stateoption>=2},attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.stateoption>=3&&e.loadStepTwo()}}},[a("span",[e._v("2")]),a("br"),e._v(e._s(e.$t("Selección de viaje y asiento")))])]),a("div",{staticClass:"col-2 col-md-2 col-sm-2 p-0 mt-n3"},[a("a",{class:{active:e.stateoption>=3},attrs:{href:"#"}},[a("span",[e._v("3")]),a("br"),e._v(e._s(e.$t("Información de pasajeros y pago")))])]),a("div",{staticClass:"col-2 col-md-2 col-sm-2 p-0 mt-n3"},[a("a",{class:{active:e.stateoption>=4},attrs:{href:"#"}},[a("span",[e._v("4")]),a("br"),e._v(e._s(e.$t("Confirmación de compra")))])])])])])},r=[],i=(a("8e6e"),a("ac6a"),a("456d"),a("7f7f"),a("bd86")),n=a("2f62");function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var c={mounted:function(){var e=this;this.$eventBus.$on("loadStepOne",(function(t){e.loadStepOne()})),this.$eventBus.$on("restartShoppingCartAction",(function(t){e.restartShoppingCartAction()}))},computed:o({},Object(n["c"])({stateoption:"options/stateoption",queryparams:"options/queryparams"})),methods:o({loadStepOne:function(){var e=this;this.setLoading({state:!0,msg:this.$t("Nueva búsqueda"),class:""}),this.restartTravels(),this.restartShoppingCart(),this.setstateOption(1),this.resetSelectOrder(),setTimeout((function(){e.$router.push({name:"home"}).catch((function(e){e.name})),e.setLoading({state:!1,msg:"",class:""})}),300)},loadStepTwo:function(){var e=this;this.setstateOption(2),setTimeout((function(){e.$router.push({name:"home",query:e.queryparams}).catch((function(e){e.name})),e.setLoading({state:!1,msg:"",class:""})}),300)},restartShoppingCartAction:function(){this.restartShoppingCart(),this.restartTravels(),this.setstateOption(1),this.resetSelectOrder()}},Object(n["b"])({clearTravel:"search/clearTravel",restartTravels:"travels/restartState",restartShoppingCart:"cart/restartState",setstateOption:"options/setstateOption",setLoading:"options/setLoading",setSelectOrder:"options/setSelectOrder",resetSelectOrder:"options/resetSelectOrder"}))},d=c,u=a("2877"),p=Object(u["a"])(d,s,r,!1,null,null,null);t["a"]=p.exports},"33fd":function(e,t,a){},"354e":function(e,t,a){"use strict";var s=a("b357"),r=a.n(s);r.a},"39ef":function(e,t,a){e.exports=a.p+"static/img/user-men.b119bbcc.svg"},"3bfc":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;
1return a("div",{attrs:{id:"content"}},[a("div",{staticClass:"container text-left mt-5",staticStyle:{"margin-bottom":"100px"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 vales"},[a("div",{staticClass:"d-flex"},[e._m(0),a("h2",{staticClass:"font-weight-600 text-xl mb-4 d-inline-block lh-200"},[e._v(e._s(e.$t("Lista de Viajes")))])]),a("ul",{staticClass:"nav nav-pills font-weight-600 text-slg"},[a("li",{staticClass:"pr-4 pr-sm-5 mr-sm-4"},[a("router-link",{attrs:{"exact-active-class":"active",to:{name:"profile.travels"}}},[e._v(e._s(e.$t("Próximo")))])],1),a("li",{staticClass:"pr-4 pr-sm-5 mr-sm-4"},[a("router-link",{attrs:{"active-class":"active",to:{name:"profile.travels.completed"}}},[e._v(e._s(e.$t("Completados")))])],1),a("li",[a("router-link",{attrs:{"active-class":"active",to:{name:"profile.travels.canceled"}}},[e._v(e._s(e.$t("Cancelados")))])],1)]),a("div",{staticClass:"tab-content"},[a("transition",{attrs:{"enter-active-class":"animated fadeIn faster",mode:"out-in"}},[a("router-view")],1)],1)])])])])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"d-inline-block d-lg-none icon-mobile "},[a("i",{staticClass:"far fa-clipboard-list text-light-blue"})])}],i={data:function(){return{}}},n=i,l=a("2877"),o=Object(l["a"])(n,s,r,!1,null,null,null);t["default"]=o.exports},"3fb6":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("b-modal",{attrs:{id:"confirmation-reemail",size:"md","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("div",{staticClass:"d-block text-center"},[a("p",[e._v(e._s(e.$t("Se confirma envÃo de ticket al correo"))+".")])]),a("div",{staticClass:"d-block text-center"},[a("button",{staticClass:"mt-2 btn btn-light rounded-pill",attrs:{block:""},on:{click:function(t){return e.$bvModal.hide("confirmation-reemail")}}},[e._v("Ok")])])],1)])]}}])}),a("b-modal",{attrs:{id:"confirmation-sms",size:"md","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("div",{staticClass:"d-block text-center"},[a("p",[e._v(e._s(e.$t("Se confirma envÃo de ticket al celular por SMS"))+".")])]),a("div",{staticClass:"d-block text-center"},[a("button",{staticClass:"mt-2 btn btn-light rounded-pill",attrs:{block:""},on:{click:function(t){return e.$bvModal.hide("confirmation-sms")}}},[e._v("Ok")])])],1)])]}}])}),a("b-modal",{attrs:{id:"bv-send-sms","hide-footer":"","hide-header":""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("h5",{staticClass:"modal-title pb-4 text-center",attrs:{id:"exampleModalLabel"}},[e._v(e._s(e.$t("Enviar SMS")))]),a("div",{staticClass:"col-12 col-md-12 p-r-small mb-3"},[a("vue-phone-number-input",{attrs:{translations:{countrySelectorLabel:e.$t("Código paÃs"),phoneNumberLabel:e.$t("Celular")},"default-country-code":e.options.DATE_FORMAT.value},on:{update:e.eventCountryCode},model:{value:e.cellphone,callback:function(t){e.cellphone=t},expression:"cellphone"}})],1),a("button",{staticClass:"btn-primary w-100 ver-detalles pt-1 mb-4",staticStyle:{"text-transform":"uppercase"},attrs:{type:"submit"},on:{click:function(t){return e.SendSMS(e.cellphone)}}},[e._v(e._s(e.$t("Enviar")))])],1)])]}}])}),a("vue-headful",{attrs:{title:e.options.COMPANY_NAME.value.charAt(0).toUpperCase()+e.options.COMPANY_NAME.value.slice(1)+" - "+e.$t("Confirmación de Pago")}}),a("div",{staticClass:"container my-2 mt-lg-5 border rounded-lg align-items-center text-left bg-light"},[a("div",{staticClass:"px-lg-4 py-lg-5 px-0 py-4 row"},[a("div",{staticClass:"col-12 col-lg-8"},[a("h1",{staticClass:"text-green text-center font-weight-600 text-xl lh-110"},[a("i",{staticClass:"mr-2 far fa-suitcase-rolling"}),e._v(e._s(e.$t("Su compra se ha realizado con éxito"))+"!")]),a("p",{staticClass:"text-dark px-0 px-md-5 lh-130",class:{"text-justify":"napaway"==e.options.SKIN.value,"text-center":"napaway"!=e.options.SKIN.value}},[e._v("\n "+e._s(e.$t("Gracias por viajar con"))+" "),a("strong",{staticClass:"text-uppercase"},[e._v(" "+e._s(e.options.COMPANY_NAME.value)+" ")]),e._v(". "+e._s(e.$t("Recibirá un correo electrónico con una copia de su compra e instrucciones de viaje. Verifique su carpeta de correo no deseado en caso de que no la reciba en su bandeja de entrada."))+"\n ")]),a("div",{},[a("h5",{staticClass:"font-weight-600 text-blue pb-1 pt-2"},[a("i",{staticClass:"far fa-id-card mr-2"}),e._v(e._s(e.$t("Lista de Pasajeros")))]),a("div",{staticClass:"n-shopping bg-white shadow text-dark px-4"},[a("div",{staticClass:"row d-none d-md-flex text-sm"},[a("div",{staticClass:"col-5"},[a("i",{staticClass:"far fa-user mr-1 w-5"}),e._v(e._s(e.$t("Nombre del viajero")))]),e._m(0),e._m(1)]),e._l(e.listpassengers,(function(t,s){return a("div",{key:s,staticClass:"row text-sm border-top py-2"},[a("div",{staticClass:"col-12 col-md-10"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6 font-weight-700 text-capitalize"},[e._m(2,!0),e._v(e._s(t.first_name+" "+t.last_name)+"\n ")]),a("div",{staticClass:"col-12 col-md-6"},[e._m(3,!0),e._v(e._s(t.email)+"\n ")])])]),a("div",{staticClass:"col-12 col-md-2 text-md-center"},[e._m(4,!0),e._v(e._s(t.type_ticket.value.value)+"\n ")])])}))],2),a("div",{staticClass:"mt-4",attrs:{id:"detalles-de-ruta"}},[a("div",[a("h5",{staticClass:"font-weight-600 text-blue pb-1 pt-2 text-capitalize"},[a("i",{staticClass:"far fa-map-marker-alt mr-2"}),e._v(e._s(e.$t("Información de Viaje:")))]),a("div",{staticClass:"n-shopping bg-white shadow text-dark px-3"},[a("div",[a("i",{staticClass:"mr-1 far fa-arrow-circle-right"}),e._v(e._s(e.$t("Información del viaje de Origen")))]),e._l(e.shoppingCartList.ow.PATH,(function(t,s){return[a("div",{key:"ow-"+s,staticClass:"row align-items-center border-top mx-md-0 pt-3 mb-3"},[a("div",{staticClass:"col-12 col-md-4 text-sm lh-120 px-lg-1"},[null==e.shoppingCartList.ow.ID_DEPARTURE_NEAR?a("p",{staticClass:"my-1"},[e._v(e._s(t.DEPARTURE_NAME))]):a("p",{staticClass:"my-1"},[e._v(e._s(t.DEPARTURE_NEAR_NAME))]),a("p",{staticClass:"my-1"},[a("span",[a("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormatDeparture(t.DATE_DEPARTURE)))]),a("span",[a("i",{staticClass:"far fa-clock ml-3 mr-1"}),e._v(e._s(e.changeDateFormatDeparture(t.DATE_DEPARTURE,!0)))])])]),e._m(5,!0),a("div",{staticClass:"col-12 col-md-4 text-sm lh-120 px-lg-1"},[a("p",{staticClass:"my-1"},[e._v(e._s(t.ARRIVAL_NAME))]),a("div",{staticClass:"my-1"},[a("span",[a("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(t.DATE_ARRIVAL)))]),a("span",[a("i",{staticClass:"far fa-clock mr-1 ml-3"}),e._v(e._s(e.changeDateFormat(t.DATE_ARRIVAL,!0)))])])]),a("div",{staticClass:"col-12 col-lg-3 text-lg lh-120 py-lg-0 py-2 px-lg-1"},[a("div",{staticClass:"d-md-flex d-lg-block"},[a("div",{staticClass:"d-flex mr-lg-0 mr-4"}
1,[a("p",{staticClass:"text-sm mr-2 mt-1 mb-0"},[e._v(" "+e._s(e.$t("Horas"))+": ")]),a("p",{staticClass:"text-sm my-1"},[a("i",{staticClass:"far fa-clock mr-1"}),a("span",[e._v(e._s(e.tTime(t.TRAVELTIME)))])])]),a("div",{staticClass:"d-flex"},[a("p",{staticClass:"mt-1 mb-0 text-sm mr-2"},[e._v(" "+e._s(e.$t("Asiento"))+": ")]),a("div",{staticClass:"mt-0 mb-1"},[a("span",[a("svg",{staticClass:"mt-n1 mr-1",attrs:{width:"1rem",viewBox:"0 0 17.3 17.7"}},[a("g",{attrs:{id:"seat"}},[a("path",{attrs:{fill:"var(--base)",d:"M12.5,10.9c-1.2-0.2-2.4,0-3.6,0.4c-0.5,0.2-1.1,0.4-1.6,0.5c-0.3-1.4-0.6-2.8-0.9-4.2 C6.2,6.6,5.8,5.7,5.2,4.9C4.4,3.8,2.6,4.1,2,5.1c0,0.2,0,0.3,0,0.5c0.2,0.7,0.5,1.3,0.7,2c0.8,2.3,1.6,4.7,2.3,7 c0.2,0.5,0.5,0.7,1.1,0.7c1.8,0,3.5-0.1,5.3-0.1c0.8,0,1.5,0,2.3,0c0.9,0,1.2-0.2,1.5-1.2c0-0.1,0.1-0.2,0.1-0.3c0-0.2,0-0.5,0-0.7 C14.8,11.7,13.9,11,12.5,10.9z"}}),a("path",{attrs:{fill:"var(--base)",d:"M3.9,3.7c0.2-0.1,0.4-0.3,0.4-0.5c0.1-0.7,0.2-1.5,0.3-2.2C4.7,0.4,4.4,0,3.9,0C3.6,0,3.3,0,3,0 C2.4,0,2.1,0.3,2.1,0.9c0,0.4-0.1,0.9-0.1,1.3c0,0.3,0,0.6,0,0.9C2.4,3.7,3.3,4,3.9,3.7z"}}),a("path",{attrs:{fill:"var(--base)",d:"M13.3,16c-2.3,0-4.5,0-6.8,0c-0.1,0-0.2,0-0.3,0c0,0.6,0,1.1,0,1.7c0.6,0,1.1,0,1.7,0c1.8,0,3.6,0,5.4,0 c0.3,0,0.4-0.1,0.4-0.4c0-0.3,0-0.6,0-0.9C13.7,16.1,13.6,16,13.3,16z"}})])])]),e._l(t.SEATS,(function(t,s){return a("span",{key:"seat-ow-"+s,staticClass:"text-sm font-weight-700"},[e._v(e._s(t.NUMBER_SEAT)+" ")])}))],2)])])])])]})),e.options.SALES_TRAVEL_SERVICE.value&&e.shoppingCartList.hasOwnProperty("ADDITIONAL_SERVICE")&&e.shoppingCartList.ADDITIONAL_SERVICE>0&&e.getAditionalServicesOw.length>0?[a("div",[a("i",{staticClass:"icon-aditionalService3 mr-1"}),e._v(" "+e._s(e.$t("Servicios adicionales")))]),e._l(e.getAditionalServicesOw,(function(t,s){return a("div",{key:s,staticClass:"row align-items-center mx-md-0 pt-1 border-top"},[a("div",{staticClass:"col-12 col-lg-5 pm-service text-sm"},[e._v(e._s(t.shortName))]),a("div",{staticClass:"col-12 col-lg-4 pm-service text-sm"},[e._v(e._s(e.$t("Cantidad"))+": "+e._s(t.quantity))]),a("div",{staticClass:"col-12 col-lg-3 pm-service text-sm"},[e._v(e._s(e.$t("Precio"))+": "),a("strong",[e._v(e._s(e.shoppingCartList.SYMBOL)+" "+e._s(t.price*t.quantity))])])])}))]:e._e()],2),e.shoppingCartList.rw.PATH.length>0?[a("div",{staticClass:"n-shopping bg-white shadow text-dark px-3"},[a("div",[a("i",{staticClass:"mr-1 far fa-arrow-circle-right"}),e._v(e._s(e.$t("Información del viaje de Retorno")))]),e._l(e.shoppingCartList.rw.PATH,(function(t,s){return[a("div",{key:"rw-"+s,staticClass:"row align-items-center border-top mx-md-0 pt-3 mb-3"},[a("div",{staticClass:"col-12 col-md-4 text-sm lh-120 px-lg-1"},[a("p",{staticClass:"my-1"},[e._v(e._s(t.DEPARTURE_NAME))]),a("p",{staticClass:"my-1"},[a("span",[a("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(t.DATE_DEPARTURE)))]),a("span",[a("i",{staticClass:"far fa-clock ml-3 mr-1"}),e._v(e._s(e.changeDateFormat(t.DATE_DEPARTURE,!0)))])])]),e._m(6,!0),a("div",{staticClass:"col-12 col-md-4 text-sm lh-120 px-lg-1"},[null==t.ID_ARRIVAL_NEAR?a("p",{staticClass:"my-1"},[e._v(e._s(t.ARRIVAL_NAME))]):a("p",{staticClass:"my-1"},[e._v(e._s(t.ARRIVAL_NEAR_NAME))]),a("div",{staticClass:"my-1"},[a("span",[a("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(t.DATE_ARRIVAL)))]),a("span",[a("i",{staticClass:"far fa-clock mr-1 ml-3"}),e._v(e._s(e.changeDateFormatArrival(t.DATE_ARRIVAL,!0)))])])]),a("div",{staticClass:"col-12 col-lg-3 text-lg lh-120 py-lg-0 py-2 px-lg-1"},[a("div",{staticClass:"d-md-flex d-lg-block"},[a("div",{staticClass:"d-flex mr-lg-0 mr-4"},[a("p",{staticClass:"text-sm mr-2 mt-1 mb-0"},[e._v(" "+e._s(e.$t("Horas"))+": ")]),a("p",{staticClass:"text-sm my-1"},[a("i",{staticClass:"far fa-clock mr-1"}),a("span",[e._v(e._s(e.tTime(t.TRAVELTIME)))])])]),a("div",{staticClass:"d-flex"},[a("p",{staticClass:"mt-1 mb-0 text-sm mr-2"},[e._v(" "+e._s(e.$t("Asiento"))+": ")]),a("div",{staticClass:"mt-0 mb-1"},[a("span",[a("svg",{staticClass:"mt-n1 mr-1",attrs:{width:"1rem",viewBox:"0 0 17.3 17.7"}},[a("g",{attrs:{id:"seat"}},[a("path",{attrs:{fill:"var(--base)",d:"M12.5,10.9c-1.2-0.2-2.4,0-3.6,0.4c-0.5,0.2-1.1,0.4-1.6,0.5c-0.3-1.4-0.6-2.8-0.9-4.2 C6.2,6.6,5.8,5.7,5.2,4.9C4.4,3.8,2.6,4.1,2,5.1c0,0.2,0,0.3,0,0.5c0.2,0.7,0.5,1.3,0.7,2c0.8,2.3,1.6,4.7,2.3,7 c0.2,0.5,0.5,0.7,1.1,0.7c1.8,0,3.5-0.1,5.3-0.1c0.8,0,1.5,0,2.3,0c0.9,0,1.2-0.2,1.5-1.2c0-0.1,0.1-0.2,0.1-0.3c0-0.2,0-0.5,0-0.7 C14.8,11.7,13.9,11,12.5,10.9z"}}),a("path",{attrs:{fill:"var(--base)",d:"M3.9,3.7c0.2-0.1,0.4-0.3,0.4-0.5c0.1-0.7,0.2-1.5,0.3-2.2C4.7,0.4,4.4,0,3.9,0C3.6,0,3.3,0,3,0 C2.4,0,2.1,0.3,2.1,0.9c0,0.4-0.1,0.9-0.1,1.3c0,0.3,0,0.6,0,0.9C2.4,3.7,3.3,4,3.9,3.7z"}}),a("path",{attrs:{fill:"var(--base)",d:"M13.3,16c-2.3,0-4.5,0-6.8,0c-0.1,0-0.2,0-0.3,0c0,0.6,0,1.1,0,1.7c0.6,0,1.1,0,1.7,0c1.8,0,3.6,0,5.4,0 c0.3,0,0.4-0.1,0.4-0.4c0-0.3,0-0.6,0-0.9C13.7,16.1,13.6,16,13.3,16z"}})])])]),e._l(t.SEATS,(function(t,s){return a("span",{key:"seat-rw-"+s,staticClass:"text-sm font-weight-700"},[e._v(e._s(t.NUMBER_SEAT)+" ")])}))],2)])])])])]})),e.options.SALES_TRAVEL_SERVICE.value&&e.shoppingCartList.hasOwnProperty("ADDITIONAL_SERVICE")&&e.shoppingCartList.ADDITIONAL_SERVICE>0&&e.getAditionalServicesRw.length>0?[a("div",[a("i",{staticClass:"icon-aditionalService3 mr-1"}),e._v(" "+e._s(e.$t("Servicios adicionales")))]),e._l(e.getAditionalServicesRw,(function(t,s){return a("div",{key:s,staticClass:"row align-items-center mx-md-0 pt-1 border-top"},[a("div",{staticClass:"col-12 col-lg-5 pm-service text-sm"},[e._v(e._s(t.shortName))]),a("div",{staticClass:"col-12 col-lg-4 pm-service text-sm"},[e._v(e._s(e.$t("Cantidad"))+": "+e._s(t.quantity))]),a("div",{staticClass:"col-12 col-lg-3 pm-service text-sm"},[e._v(e._s(e.$t("Precio"))+": "),a("strong",[e._v(e._s(e.shoppingCartList.SYMBOL)+" "+e._s(t.price*t.quantity))])])])}
1))]:e._e()],2)]:e._e()],2)]),a("div",{staticClass:"send-ticket-email-desktop"},[a("send-ticket-email",{attrs:{options:e.options,shoppingCartList:e.shoppingCartList,optLang:e.optLang}})],1)])]),a("div",{staticClass:"col-12 col-lg-4 text-sm"},[a("h5",{staticClass:"text-blue font-weight-600 text-xl pb-3 lh-110"},[a("i",{staticClass:"mr-2 far fa-shopping-cart"}),e._v(e._s(e.$t("Información de Compras")))]),a("div",{staticClass:"n-shopping bg-white shadow"},[a("div",[a("div",[a("h6",{staticClass:"text-capitalize text-blue"},[e._v(e._s(e.$t("Información del viaje de Origen")))]),null==e.shoppingCartList.ow.ID_DEPARTURE_NEAR?a("p",{staticClass:"m-0 font-weight-bolder"},[a("i",{staticClass:"itinerary-ico-path2 far fa-bus"}),e._v(e._s(e.shoppingCartList.ow.DEPARTURE_NAME))]):a("p",{staticClass:"m-0 font-weight-bolder"},[a("i",{staticClass:"itinerary-ico-path2 far fa-bus"}),e._v(e._s(e.shoppingCartList.ow.DEPARTURE_NEAR_NAME))]),a("div",{staticClass:"d-flex"},[a("p",{staticClass:"itinerary-terminal-line2"}),a("div",{staticClass:"text-sm lh-120"},[a("p",{},[a("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormatDeparture(e.shoppingCartList.ow.DATE_DEPARTURE))),a("i",{staticClass:"far fa-clock ml-3"}),e._v(" "+e._s(e.changeDateFormatDeparture(e.shoppingCartList.ow.DATE_DEPARTURE,!0)))])])]),a("p",{staticClass:"m-0 font-weight-bold"},[a("i",{staticClass:"itinerary-ico-path2 far fa-map-marker-alt"}),e._v(e._s(e.shoppingCartList.ow.ARRIVAL_NAME))]),a("div",{staticClass:"d-flex"},[a("div",{staticClass:"text-sm lh-120",staticStyle:{"margin-left":"3em"}},[a("p",[a("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(e.shoppingCartList.ow.DATE_ARRIVAL))),a("i",{staticClass:"far fa-clock ml-3"}),e._v(" "+e._s(e.changeDateFormat(e.shoppingCartList.ow.DATE_ARRIVAL,!0)))])])])]),e.shoppingCartList.rw.PATH.length>0?[a("div",[a("h6",{staticClass:"text-capitalize text-blue"},[e._v(e._s(e.$t("Información del viaje de Retorno")))]),a("p",{staticClass:"m-0 font-weight-bolder"},[a("i",{staticClass:"itinerary-ico-path2 far fa-bus"}),e._v(e._s(e.shoppingCartList.rw.DEPARTURE_NAME)+" ")]),a("div",{staticClass:"d-flex"},[a("p",{staticClass:"itinerary-terminal-line2"}),a("div",{staticClass:"text-sm lh-120"},[a("p",{},[a("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(e.shoppingCartList.rw.DATE_DEPARTURE))),a("i",{staticClass:"far fa-clock ml-3"}),e._v(" "+e._s(e.changeDateFormat(e.shoppingCartList.rw.DATE_DEPARTURE,!0)))])])]),null==e.shoppingCartList.rw.ID_ARRIVAL_NEAR?a("p",{staticClass:"m-0 font-weight-bold"},[a("i",{staticClass:"itinerary-ico-path2 far fa-map-marker-alt"}),e._v(e._s(e.shoppingCartList.rw.ARRIVAL_NAME)+" ")]):a("p",{staticClass:"m-0 font-weight-bold"},[a("i",{staticClass:"itinerary-ico-path2 far fa-map-marker-alt"}),e._v(e._s(e.shoppingCartList.rw.ARRIVAL_NEAR_NAME)+" ")]),a("div",{staticClass:"d-flex"},[a("div",{staticClass:"text-sm lh-120",staticStyle:{"margin-left":"3em"}},[a("p",[a("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(e.shoppingCartList.rw.DATE_ARRIVAL))),a("i",{staticClass:"far fa-clock ml-3"}),e._v(" "+e._s(e.changeDateFormatArrival(e.shoppingCartList.rw.DATE_ARRIVAL,!0)))])])])])]:e._e(),a("hr",{staticClass:"border-top border-gray border-dashed my-4"}),a("div",{staticClass:"text-center"},[a("i",{staticClass:"text-blue far fa-barcode-read fa-6x mr-2 my-3"}),1==e.options.PAGO_PAYPAL.value?[a("p",{staticClass:"mt-4 m-0 mx-3 text-uppercase"},[e._v(e._s(e.$t("Código de transacción de tarjeta de crédito")))]),a("h3",{staticClass:"m-0 text-blue"},[e._v(e._s(e.transaction.transactionId))])]:e._e(),a("p",{staticClass:"mt-4 mb-0 mx-3 text-uppercase"},[e._v(e._s(e.$t("Referencia de ticket de Venta Web")))]),a("h5",{staticClass:"m-0 text-blue"},[e._v(e._s(e.transaction.transactionResCode))])],2),a("div",{staticClass:"mt-5"},[a("div",{staticClass:"shopping-total text-center mx-3"},[a("h5",{staticClass:"d-inline-block pr-2"},[e._v(e._s(e.$t("Monto Pagado"))+": ")]),a("h5",{staticClass:"d-inline-block text-green"}
1,[a("span",[e._v(e._s(e.shoppingCartList.SYMBOL))]),e._v(" "+e._s(e.transaction.transactionAmount))])])])],2)]),a("div",{staticClass:"send-ticket-email-mobile"},[a("send-ticket-email",{attrs:{options:e.options,shoppingCartList:e.shoppingCartList,optLang:e.optLang}})],1)]),a("b-button",{staticClass:"btn-lg btn-primary d-block mx-auto d-none d-lg-none mt-5 mb-4 text-slg",attrs:{variant:"primary"},on:{click:function(t){return e.$router.push({name:"home"})}}},[e._v(e._s(e.$t("Comprar más boletos")))])],1)])],1)},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"col-5"},[a("i",{staticClass:"mr-1 far fa-ticket-alt"}),e._v("Email")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"col-2 text-center"},[a("i",{staticClass:"mr-1 far fa-id-card-alt"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",{staticClass:"d-md-none mx-3"},[a("i",{staticClass:"far fa-user mr-2"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",{staticClass:"d-md-none mx-3"},[a("i",{staticClass:"far fa-ticket-alt mr-1"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",{staticClass:"d-md-none mx-3"},[a("i",{staticClass:"far fa-id-card-alt mr-1"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"col-12 col-md-1 mb-n2 mb-lg-0 text-lg-center text-left px-lg-1"},[a("i",{staticClass:"d-none d-md-block text-blue far fa-angle-right fa-2x"}),a("i",{staticClass:"d-md-none far fa-angle-down text-blue "})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"col-12 col-md-1 mb-n2 mb-lg-0 text-lg-center text-left px-lg-1"},[a("i",{staticClass:"d-none d-md-block text-blue far fa-angle-right fa-2x"}),a("i",{staticClass:"d-md-none far fa-angle-down text-blue "})])}],i=(a("8e6e"),a("ac6a"),a("456d"),a("28a5"),a("bd86")),n=a("c1df"),l=a.n(n),o=a("2f62"),c=a("0e0b"),d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"row no-gutters my-5"},[a("b-input-group",{staticClass:"col-lg-7 col-12 mb-4"},[a("b-form-input",{staticClass:"col-lg-8 col-12 text-sm py-lg-auto py-2 pl-2",class:{"is-invalid":""!=e.errorsemail},attrs:{placeholder:e.$t("EnvÃe una copia de su boleto por Email"),"aria-label":"Recipient's username","aria-describedby":"button-addon2"},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}}),a("b-button",{staticClass:"col-lg-4 col-12 btn-resend",attrs:{variant:"outline-secondary",id:"button-addon2"},on:{click:function(t){return e.resendemail(e.email)}}},[a("i",{staticClass:"far fa-envelope mr-1"}),e._v(e._s(e.$t("Enviar")))]),""!=e.errorsemail?a("p",{staticClass:"mt-n4 pl-2 text-error-only email-text-error-resend"},[e._v(e._s(e.errorsemail))]):e._e()],1),a("b-input-group",{staticClass:"col-lg-5 col-12 text-center d-inline-block "},[a("b-button",{attrs:{variant:"outline-secondary"},on:{click:function(t){return e.downloadTiket()}}},[a("i",{staticClass:"far fa-print mr-1"}),e._v(e._s(e.$t("Imprimir")))]),"napaway"!=e.skin?a("b-button",{attrs:{variant:"outline-secondary"},on:{click:function(t){return e.downloadTiket()}}},[a("i",{staticClass:"far fa-download mr-1"}),e._v("PDF")]):e._e(),1==e.options.SALE_SEND_SMS.value?a("b-button",{attrs:{variant:"outline-secondary"},on:{click:function(t){return e.modalSendSMS()}}},[a("i",{staticClass:"fa fa-mobile mr-1"}),e._v("SMS")]):e._e()],1)],1)},u=[];function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function m(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?p(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var v={props:{options:{type:Object,required:!0},shoppingCartList:{type:Object,required:!0},optLang:{type:String,required:!0}},data:function(){return{email:"",errorsemail:"",urlPdf:""}},watch:{email:function(e){if(""!=this.errorsemail){var t=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;t.test(String(e).toLowerCase())?this.errorsemail="":this.errorsemail="Formato de Email invalido ([email protected])"}}},methods:m({},Object(o["b"])({setLoading:"options/setLoading"}),{resendemail:function(){var e=this;this.errorsemail="";var t=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,a=this.email.trim();if(t.test(String(a).toLowerCase())){this.setLoading({state:!0,msg:"",class:"fa-check"});var s={ID_SHOPPINGCART:this.shoppingCartList.ID_SHOPPING_CART,EMAIL:a,LANG:this.optLang+"-quatrobus"},r={headers:{"Content-Type":"application/x-www-form-urlencoded"}};this.$http.post("user/sendEmailSale",s,r).then((function(t){e.$bvModal.show("confirmation-reemail"),e.email="",e.setLoading({state:!1,msg:"",class:"fa-check"})})).catch((function(t){e.setLoading({state:!1,msg:"",class:"fa-check"}),e.$eventBus.$emit("loadError",Object(c["b"])(t))}))}else this.errorsemail="Formato de Email invalido ([email protected])"},downloadTiket:function(){var e=this,t={headers:{"Content-Type":"application/x-www-form-urlencoded"}},a={ID_SHOPPINGCART:this.shoppingCartList.ID_SHOPPING_CART,LANG:this.optLang};this.$http.post("shoppingcart/downloadTickets",a,t).then((function(t){var a=document.createElement("a");e.urlPdf="".concat(window.location.protocol)+"//"+t.data.data,a.href="".concat(window.location.protocol)+"//"+t.data.data,a.target="_blank",a.setAttribute("download","file.pdf"),document.body.appendChild(a),a.click()})).catch((function(t){e.$eventBus.$emit("loadError",Object(c["b"])(t)),e.setLoading({state:!1,msg:"",class:"fa-check"}),e.urlPdf=""}))},modalSendSMS:function(){this.$bvModal.show("bv-send-sms")}}),computed:m({},Object(o["c"])({skin:"options/skin"}))},h=v,f=a("2877"),_=Object(f["a"])(h,d,u,!1,null,null,null),g=_.exports;function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function C(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?b(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):b(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var w={components:{SendTicketEmail:g},created:function(){if(this.setSelectedSeatsOw(null),this.setSelectedSeatsRw(null),"redcoach"==this.options.SKIN.value&&this.transaction.hasOwnProperty("dataLayer")&&(window.dataLayer.push({ecommerce:null}),window.dataLayer.push({ecommerce:{purchase:this.transaction.dataLayer}})),this.restartState(),null==this.shoppingCart&&null==this.shoppingCartList)return this.$router.push({name:"home"}),this.setLoading({state:!1,msg:"",class:"fa-check"}),void(window.href=window.location.origin);if(this.options.SALES_TRAVEL_SERVICE.value&&this.shoppingCartList.hasOwnProperty("ADDITIONAL_SERVICE")){var e=JSON.parse(JSON.stringify(this.transaction));e.transactionAmount=this.shoppingCartList.ADDITIONAL_SERVICE+this.transaction.transactionAmount,this.setTransaction(e)}},mounted:function(){this.checkButtonBackBrowser(),scroll(0,0),"orange"==this.options.SKIN&&(fbq("track","Purchase"),gtag("event","Purchase",{event_category:"Conversion",event_label:"Web"}),gtag("event","conversion",{send_to:"AW-10819213565/nVrtCNG6l4kDEP2xgKco",transaction_id:""}))},data:function(){return{email:"",errorsemail:"",urlPdf:"",cellphone:"",numberCellphone:""}},computed:C({},Object(o["c"])({shoppingCartList:"cart/shoppingCartList",options:"options/listoptions",optLang:"options/lang",listpassengers:"cart/passengers",transaction:"cart/transaction",shoppingCart:"cart/shoppingCart",getAditionalServicesOw:"cart/getAditionalServicesOw",getAditionalServicesRw:"cart/getAditionalServicesRw"})),methods:C({changeDateFormat:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.$moment(e).format(t?"h:mm a":this.options.DATE_FORMAT_CALENDAR.value.toUpperCase())},changeDateFormatDeparture:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.shoppingCartList.ow.ID_DEPARTURE_NEAR,s=this.shoppingCartList.ow.TIME_DEPARTURE_NEAR;if(""!=a){var r=Math.floor(s/60),i=s%60,n=l()(e),o=n.subtract(r,"hours").subtract(i,"minutes"),c=l()(o).format(t?"h:mm a":this.options.DATE_FORMAT_CALENDAR.value.toUpperCase());return c}return l()(e).format(t?"h:mm a":this.options.DATE_FORMAT_CALENDAR.value.toUpperCase())},changeDateFormatArrival:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.shoppingCartList.rw.ID_ARRIVAL_NEAR,s=this.shoppingCartList.rw.TIME_ARRIVAL_NEAR;if(""!=a){var r=Math.floor(s/60),i=s%60,n=l()(e),o=n.add(r,"hours").add(i,"minutes"),c=l()(o).format(t?"h:mm a":this.options.DATE_FORMAT_CALENDAR.value.toUpperCase());return c}return l()(e).format(t?"h:mm a":this.options.DATE_FORMAT_CALENDAR.value.toUpperCase())},eventCountryCode:function(e){this.numberCellphone=e.formattedNumber},downloadTiket:function(e){var t=this,a={headers:{"Content-Type":"application/x-www-form-urlencoded"}},s={ID_SHOPPINGCART:this.shoppingCartList.ID_SHOPPING_CART,LANG:this.optLang};this.$http.post("shoppingcart/downloadTickets",s,a).then((function(a){if("pdf"===e){var s=document.createElement("a");t.urlPdf="".concat(window.location.protocol)+"//"+a.data.data[0],s.href="".concat(window.location.protocol)+"//"+a.data.data[0],s.target="_blank",s.setAttribute("download","file.pdf"),document.body.appendChild(s),s.click()}else if("print"===e){var r=window.open("","Print");r.document.write(a.data.data[1]),r.document.close(),r.addEventListener("DOMContentLoaded",(function(e){r.focus(),r.print(),r.close()}))}})).catch((function(e){t.$eventBus.$emit("loadError",Object(c["b"])(e)),t.setLoading({state:!1,msg:"",class:"fa-check"}),t.urlPdf=""}))},modalSendSMS:function(){this.$bvModal.show("bv-send-sms")},SendSMS:function(){var e=this,t={ID_SHOPPINGCART:this.shoppingCartList.ID_SHOPPING_CART,NUMBER_CELLPHONE:this.numberCellphone,LANG:this.optLang+"-quatrobus"};this.$http.post("user/sendSMSSale",t).then((function(t){e.$bvModal.hide("bv-send-sms"),e.$bvModal.show("confirmation-sms"),e.numberCellphone="",e.setLoading({state:!1,msg:"",class:"fa-check"})})).catch((function(t){e.setLoading({state:!1,msg:"",class:"fa-check"}),e.$eventBus.$emit("loadError",Object(c["b"])(t))}))},printPdfDocument:function(){var e=this;if(""==this.urlPdf){var t={headers:{"Content-Type":"application/x-www-form-urlencoded"}},a={ID_SHOPPINGCART:this.shoppingCartList.ID_SHOPPING_CART,LANG:this.optLang};this.$http.post("shoppingcart/downloadTickets",a,t).then((function(t){e.urlPdf="http://"+t.data.data}
1)).catch((function(t){e.$eventBus.$emit("loadError",Object(c["b"])(t)),e.setLoading({state:!1,msg:"",class:"fa-check"}),e.urlPdf=""}))}else $("<iframe>",{name:"myiframe",class:"printFrame"}).attr("src",this.urlPdf),window.frames["myiframe"].focus(),window.frames["myiframe"].print(),setTimeout((function(){$(".printFrame").remove()}),1e3)},tTime:function(e){return e.split(":")[0]+"h "+e.split(":")[1]+"m"}},Object(o["b"])({setLoading:"options/setLoading",setShoppingCartList:"cart/setShoppingCartList",setShoppingCart:"cart/setShoppingCart",setSelectedSeatsOw:"cart/setSelectedSeatsOw",setSelectedSeatsRw:"cart/setSelectedSeatsRw",cleanCart:"cart/cleanCart",restartState:"travels/restartState",clearTravel:"search/clearTravel",setTransaction:"cart/setTransaction"}),{clearAllCacheAndStateVuex:function(){this.cleanCart(),this.clearTravel(),this.restartState(),this.setSelectedSeatsOw(null),this.setSelectedSeatsRw(null),this.$router.push({name:"home"}),window.href=window.location.origin},checkButtonBackBrowser:function(){var e=this;window.addEventListener("hashchange",(function(t){e.clearAllCacheAndStateVuex()})),window.addEventListener("beforeunload",(function(e){this.clearAllCacheAndStateVuex()}))}}),destroyed:function(){this.clearAllCacheAndStateVuex()}},y=w,E=Object(f["a"])(y,s,r,!1,null,null,null);t["default"]=E.exports},"40c8":function(e,t,a){"use strict";var s=a("6d2c"),r=a.n(s);r.a},4360:function(e,t,a){"use strict";var s,r,i,n,l,o,c=a("2b0e"),d=a("2f62"),u=a("6360"),p=a.n(u),m="SWAP_LOCATIONS",v="SET_TRAVEL",h="LIST_TRAVEL",f="CLEAR_TRAVEL",_="CHANGE_TRAVEL_FARE",g="RESTART_STATE",b="REMOVE_RETURN",C="SELECT_CURRENT_DATE_OW",w="SELECT_CURRENT_DATE_RW",y="SELECT_TYPE_WAY",E="CHECK_ID_AIRLINE_EXISTS",S="CLEAR_ID_AIRLINE",A="CLEAN_SEARCH",T=function(e){var t=e.commit;t(m)},O=function(e,t){var a=e.commit;a(v,t)},R=function(e,t){var a=e.commit;a(h,t)},x=function(e){var t=e.commit;t(f)},D=function(e,t){var a=e.commit;a(_,t)},P=function(e){var t=e.commit;t(g)},L=function(e){var t=e.commit;t(b)},k=function(e,t){var a=e.commit;a(C,t)},I=function(e,t){var a=e.commit;a(w,t)},N=function(e,t){var a=e.commit;a(y,t)},$=function(e){var t=e.commit;t(E)},j=function(e){var t=e.commit;t(A)},M=function(e){var t=e.commit;t(S)},U={swapLocations:T,setTravel:O,listTravel:R,clearTravel:x,changeTravelFare:D,restartState:P,removeReturn:L,setcurrentdateOw:k,setcurrentdateRw:I,setTypeway:N,checkIdAirlineExists:$,cleanSearch:j,cleanIdAirline:M},F={travel:function(e){return{DEPARTURE:e.DEPARTURE,ARRIVAL:e.ARRIVAL,DEPARTURE_SHUTTLE:e.DEPARTURE_SHUTTLE,ARRIVAL_SHUTTLE:e.ARRIVAL_SHUTTLE,IS_DEPARTURE_SHUTTLE:e.IS_DEPARTURE_SHUTTLE,IS_ARRIVAL_SHUTTLE:e.IS_ARRIVAL_SHUTTLE,DATE_DEPARTURE:e.DATE_DEPARTURE,DATE_RETURN:e.DATE_RETURN,TYPE_WAY:e.TYPE_WAY,TYPE_TRAVEL:e.TYPE_TRAVEL,ID_AIRLINE:e.ID_AIRLINE,LOW_PRICES:e.LOW_PRICES,DEPARTURE_ROUTE:e.DEPARTURE_ROUTE,ARRIVAL_ROUTE:e.ARRIVAL_ROUTE,ID_DEPARTURE_NEAR:e.ID_DEPARTURE_NEAR,ID_ARRIVAL_NEAR:e.ID_ARRIVAL_NEAR}},way:function(e){return e.TYPE_WAY},departure:function(e){return e.DEPARTURE},arrival:function(e){return e.ARRIVAL},departureShuttle:function(e){return e.DEPARTURE_SHUTTLE},arrivalShuttle:function(e){return e.ARRIVAL_SHUTTLE},dateDeparture:function(e){return e.DATE_DEPARTURE},dateReturn:function(e){return e.DATE_RETURN},typeTravel:function(e){return e.TYPE_TRAVEL},getCurrentdateOw:function(e){return e.CURRENT_DATE_OW},getCurrentdateRw:function(e){return e.CURRENT_DATE_RW}},B=a("bd86"),Y=(a("7514"),s={},Object(B["a"])(s,m,(function(e){var t=e.DEPARTURE,a=e.ARRIVAL;e.DEPARTURE=a,e.ARRIVAL=t})),Object(B["a"])(s,v,(function(e,t){Object.assign(e,t)})),Object(B["a"])(s,f,(function(e){var t={DEPARTURE:{},ARRIVAL:{},DEPARTURE_SHUTTLE:{},ARRIVAL_SHUTTLE:{},DATE_RETURN:null,DATE_DEPARTURE:null,TYPE_WAY:0,TYPE_TRAVEL:0,ID_AIRLINE:0,CURRENT_DATE_OW:null,CURRENT_DATE_RW:null,LOW_PRICES:[]};Object.assign(e,t)})),Object(B["a"])(s,_,(function(e,t){var a=e.LIST_TRAVEL.find((function(e){return e===t.travelItem}));c["default"].set(a,"selectedFare",t.selectedFare)})),Object(B["a"])(s,g,(function(e){e.DEPARTURE={},e.ARRIVAL={},e.DEPARTURE_SHUTTLE={},e.ARRIVAL_SHUTTLE={},e.IS_DEPARTURE_SHUTTLE=!1,e.IS_ARRIVAL_SHUTTLE=!1,e.DATE_DEPARTURE=null,e.DATE_RETURN=null,e.TYPE_WAY=0,e.TYPE_TRAVEL=0,e.ID_AIRLINE=0,e.CURRENT_DATE_OW=null,e.CURRENT_DATE_RW=null,e.LOW_PRICES=[],e.ID_DEPARTURE_NEAR=null,e.ID_ARRIVAL_NEAR=null})),Object(B["a"])(s,b,(function(e){e.DATE_RETURN=null})),Object(B["a"])(s,C,(function(e,t){e.CURRENT_DATE_OW=t})),Object(B["a"])(s,w,(function(e,t){e.CURRENT_DATE_RW=t})),Object(B["a"])(s,y,(function(e,t){e.TYPE_WAY=t})),Object(B["a"])(s,E,(function(e){null!==sessionStorage.getItem("idAirline")&&""!==sessionStorage.getItem("idAirline")?e.ID_AIRLINE=sessionStorage.getItem("idAirline"):e.ID_AIRLINE=0})),Object(B["a"])(s,S,(function(e){e.ID_AIRLINE=0})),Object(B["a"])(s,A,(function(e){e.DEPARTURE={},e.ARRIVAL={},e.DEPARTURE_SHUTTLE={},e.ARRIVAL_SHUTTLE={},e.IS_DEPARTURE_SHUTTLE=!1,e.IS_ARRIVAL_SHUTTLE=!1,e.DATE_DEPARTURE=null,e.DATE_RETURN=null,e.TYPE_WAY=0,e.TYPE_TRAVEL=0,e.ID_AIRLINE=0,e.CURRENT_DATE_OW=null,e.CURRENT_DATE_RW=null,e.LOW_PRICES=[],e.ID_DEPARTURE_NEAR=null,e.ID_ARRIVAL_NEAR=null})),s),V={DEPARTURE:{},ARRIVAL:{},DEPARTURE_SHUTTLE:{},ARRIVAL_SHUTTLE:{},IS_DEPARTURE_SHUTTLE:!1,IS_ARRIVAL_SHUTTLE:!1,DATE_DEPARTURE:null,DATE_RETURN:null,TYPE_WAY:0,TYPE_TRAVEL:0,ID_AIRLINE:0,CURRENT_DATE_OW:null,CURRENT_DATE_RW:null,LOW_PRICES:[],DEPARTURE_ROUTE:null,ARRIVAL_ROUTE:null,ID_DEPARTURE_NEAR:null,ID_ARRIVAL_NEAR:null},q={namespaced:!0,actions:U,getters:F,mutations:Y,state:V},H="ADD_CACHE",W="DELETE_CACHE",G="CHANGE_DATE_CACHE",z="CHECK_CACHE",K="SET_CACHE",J=function(e,t){var a=e.commit;a(H,t)},X=function(e,t){var a=e.commit;a(K,t)},Q=function(e,t){var a=e.commit;a(W,t)},Z=function(e,t){var a=e.commit;a(z,t)}
1,ee={addCache:J,setCache:X,deleteCache:Q,checkCache:Z},te={getCache:function(e){return function(t){return e.DATA[t]}},existCache:function(e){return e.DATA},statusCache:function(e){return e.STATUS_CACHE}},ae=a("c1df"),se=a.n(ae),re=(r={},Object(B["a"])(r,H,(function(e,t){e.DATE_CACHE=se()().format("YYYY-MM-DD HH:mm");var a=new Object;a[t[0]]=t[1],Object.assign(e.DATA,a)})),Object(B["a"])(r,K,(function(e,t){var a=new Object;a[t[0]]=t[1],Object.assign(e.DATA,a)})),Object(B["a"])(r,W,(function(e,t){e.DATA={}})),Object(B["a"])(r,G,(function(e,t){e.DATE_CACHE=t})),Object(B["a"])(r,z,(function(e){var t="6",a=se()(new Date).format("YYYY-MM-DD HH:mm"),s=se()(new Date).add(parseInt(t),"hours").format("YYYY-MM-DD HH:mm");e.DATE_CACHE=null==e.DATE_CACHE?a:e.DATE_CACHE,e.DATE_CACHE_EXPIRED=null==e.DATE_CACHE_EXPIRED?s:e.DATE_CACHE_EXPIRED,se()(new Date).format("YYYY-MM-DD HH:mm").valueOf()>=se()(e.DATE_CACHE_EXPIRED).format("YYYY-MM-DD HH:mm").valueOf()?(e.DATA={},e.DATE_CACHE=null,e.DATE_CACHE_EXPIRED=null,e.STATUS_CACHE=!0):e.STATUS_CACHE=!1})),r),ie={DATA:{},DATE_CACHE:null,DATE_CACHE_EXPIRED:null,STATUS_CACHE:!0},ne={namespaced:!0,actions:ee,getters:te,mutations:re,state:ie},le=a("bc3a"),oe=a.n(le),ce="RESTART_STATE",de="SET_SHOPPING_CART",ue="SET_SHOPPING_CART_LIST",pe="SET_MAX_SEAT_SELETED",me="SET_NUMBER_SELECTED_SEATS",ve="SET_SELECTED_SEATS_OW",he="SET_SELECTED_SEATS_RW",fe="SET_IS_RETURN",_e="SET_DIRECTION",ge="SET_IS_MULTIROUTE",be="SET_PASSENGERS",Ce="SET_TRANSACTION",we="CLEAN_CART",ye="SET_TRAVEL_OW",Ee="SET_TRAVEL_RW",Se="SET_ADITIONAL_SERVICES_OW",Ae="SET_ADITIONAL_SERVICES_RW",Te=function(e){var t=e.commit,a=e.state;if(a&&a.hasOwnProperty("shoppingCart")&&null!=a.shoppingCart&&null!=a.shoppingCart){var s={headers:{"Content-Type":"application/x-www-form-urlencoded"}},r={ID_SHOPPINGCART:a.shoppingCart,ROUND:0};try{oe.a.post("shoppingcart/cleanShoppingCart",r,s).then((function(){t(ce)}))}catch(i){console.log(i)}}localStorage.getItem("expirationData")&&localStorage.removeItem("expirationData"),t(ce)},Oe=function(e,t){var a=e.commit;a(de,t)},Re=function(e,t){var a=e.commit,s=null!=t?JSON.parse(JSON.stringify(t)):null;null!=s&&("undefined"==typeof t.applycoupon?(s.applycoupon=0,s.codecoupon=""):0==t.applycoupon&&(s.codecoupon=""),"undefined"==typeof t.ow.PATH&&(s.ow.PATH=[],s.ow.PATH.push(t.ow)),"undefined"!=typeof t.rw?"undefined"==typeof t.rw.PATH&&(s.rw.PATH=[],s.rw.PATH.push(t.rw)):(s.rw=new Object,s.rw.PATH=[])),a(ue,s)},xe=function(e,t){var a=e.commit;a(pe,t)},De=function(e,t){var a=e.commit;a(me,t)},Pe=function(e,t){var a=e.commit;a(ve,t)},Le=function(e,t){var a=e.commit;a(he,t)},ke=function(e,t){var a=e.commit;a(fe,t)},Ie=function(e,t){var a=e.commit;a(_e,t)},Ne=function(e,t){var a=e.commit;a(ge,t)},$e=function(e,t){var a=e.commit;a(be,t)},je=function(e,t){var a=e.commit;a(Ce,t)},Me=function(e,t){var a=e.commit;a(we,t)},Ue=function(e,t){var a=e.commit;a(ye,t)},Fe=function(e,t){var a=e.commit;a(Ee,t)},Be=function(e,t){var a=e.commit;a(Se,t)},Ye=function(e,t){var a=e.commit;a(Ae,t)},Ve={restartState:Te,setShoppingCart:Oe,setShoppingCartList:Re,setMaxSeatSelected:xe,setNumberSelectedSeats:De,setSelectedSeatsOw:Pe,setSelectedSeatsRw:Le,setIsReturn:ke,setDirection:Ie,setIsMultiroute:Ne,setPassengers:$e,setTransaction:je,cleanCart:Me,setTravelOw:Ue,setTravelRw:Fe,setAditionalServicesOw:Be,setAditionalServicesRw:Ye},qe={shoppingCart:function(e){return e.shoppingCart},shoppingCartList:function(e){return e.shoppingCartList},maxSeatSelected:function(e){return e.maxSeatSelected},numberSelectSeats:function(e){return e.numberSelectSeats},selectSeatsOw:function(e){return e.selectSeatsOw},selectSeatsRw:function(e){return e.selectSeatsRw},isReturn:function(e){return e.isReturn},direction:function(e){return e.direction},isMultiroute:function(e){return e.isMultiroute},passengers:function(e){return e.passengers},transaction:function(e){return e.transaction},getTravelOw:function(e){return e.travelOw},getTravelRw:function(e){return e.travelRw},getAditionalServicesOw:function(e){return e.aditionalServicesOw},getAditionalServicesRw:function(e){return e.aditionalServicesRw}},He=(i={},Object(B["a"])(i,ce,(function(e){var t={shoppingCart:null,shoppingCartList:null,numberSelectSeats:0,selectSeatsOw:null,selectSeatsRw:null,isReturn:!1,direction:0,isMultiroute:!1,travelOw:null,travelRw:null,aditionalServicesOw:null,aditionalServicesRw:null};Object.assign(e,t)})),Object(B["a"])(i,de,(function(e,t){e.shoppingCart=t})),Object(B["a"])(i,ue,(function(e,t){e.shoppingCartList=t})),Object(B["a"])(i,pe,(function(e,t){e.maxSeatSelected=t})),Object(B["a"])(i,me,(function(e,t){e.numberSelectSeats=t})),Object(B["a"])(i,ve,(function(e,t){e.selectSeatsOw=t})),Object(B["a"])(i,he,(function(e,t){e.selectSeatsRw=t})),Object(B["a"])(i,fe,(function(e,t){e.isReturn=t})),Object(B["a"])(i,_e,(function(e,t){e.direction=t})),Object(B["a"])(i,ge,(function(e,t){e.isMultiroute=t})),Object(B["a"])(i,be,(function(e,t){e.passengers=t})),Object(B["a"])(i,Ce,(function(e,t){e.transaction=t})),Object(B["a"])(i,we,(function(e){e.shoppingCart=null,e.shoppingCartList=null,e.maxSeatSelected=1,e.numberSelectSeats=0,e.selectSeatsOw=null,e.selectSeatsRw=null,e.isReturn=!1,e.direction=0,e.isMultiroute=!1,e.passengers=null,e.transaction=null,e.aditionalServicesOw=null,e.aditionalServicesRw=null})),Object(B["a"])(i,ye,(function(e,t){e.travelOw=t})),Object(B["a"])(i,Ee,(function(e,t){e.travelRw=t})),Object(B["a"])(i,Se,(function(e,t){e.aditionalServicesOw=t})),Object(B["a"])(i,Ae,(function(e,t){e.aditionalServicesRw=t})),i),We={shoppingCart:null,shoppingCartList:null,maxSeatSelected:1,numberSelectSeats:0,selectSeatsOw:null,selectSeatsRw:null,isReturn:!1,direction:0,isMultiroute:!1,passengers:null,transaction:null,travelOw:null,travelRw:null,aditionalServicesOw:null,aditionalServicesRw:null},Ge={namespaced:!0,actions:Ve,getters:qe,mutations:He,state:We},ze="SET_LIST_TRAVEL",Ke="SET_LIST_OPTIONS",Je="SET_SELECT_TRAVEL",Xe="SET_LIST_DATES",Qe="RESTART_STATE",Ze="SET_PREVIEW_BUS_TRAVEL",et="SET_DETAILS_FARE",tt="SHOW_SERVICE_OW",at="SHOW_SERVICE_RW",st=function(e,t){var a=e.commit;a(ze,t)},rt=function(e,t){var a=e.commit;a(Ke,t)},it=function(e,t){var a=e.commit;a(Je,t)},nt=function(e,t){var a=e.commit;a(Xe,t)},lt=function(e){var t=e.commit;t(Qe)},ot=function(e,t){var a=e.commit;a(Ze,t)},ct=function(e,t){var a=e.commit;a(et,t)},dt=function(e,t){var a=e.commit;a(tt,t)},ut=function(e,t){var a=e.commit;a(at,t)},pt={setListTravel:st,setListOptions:rt,setSelectTravel:it,setListDates:nt,restartState:lt,setpreviewBusbyTravel:ot,setdetailsFares:ct,setshowServiceOw:dt,setshowServiceRw:ut},mt={listTravel:function(e){return e.LIST_TRAVEL},selectTravel:function(e){return e.SELECT_TRAVEL},listOptions:function(e){return e.LIST_OPTIONS},listDates:function(e){return e.LIST_DATES},previewBusTravel:function(e){return e.PREVIEW_BUS_TRAVEL},detailsFares:function(e){return e.DETAILS_FARE},showServiceOw:function(e){return e.SHOW_SERVICE_OW},showServiceRw:function(e){return e.SHOW_SERVICE_RW}},vt=(n={},Object(B["a"])(n,ze,(function(e,t){e.LIST_TRAVEL=t})),Object(B["a"])(n,Ke,(function(e,t){e.LIST_OPTIONS=t})),Object(B["a"])(n,Je,(function(e,t){Object.assign(e.SELECT_TRAVEL,t)})),Object(B["a"])(n,Xe,(function(e,t){e.LIST_DATES=t})),Object(B["a"])(n,Qe,(function(e){e.LIST_TRAVEL=null,e.PREVIEW_BUS_TRAVEL=null,e.DETAILS_FARE=null,Object.assign(e.SELECT_TRAVEL,{TYPE_WAY:0,FARE_ID:null,FARE_ID_RW:null,TRAVEL_ADD_CART_OW:!1,TRAVEL_ADD_CART_RW:!1,ID_MULTIROUTE:[],ID_DEPARTURE_MR:null,ID_ARRIVAL_MR:null,KEY_TRAVEL_OW:null,KEY_TRAVEL_RW:null,TRAVEL_ID_OW:null,TRAVEL_ID_RW:null,ID_DEPARTURE_NEAR:null,ID_ARRIVAL_NEAR:null})})),Object(B["a"])(n,Ze,(function(e,t){e.PREVIEW_BUS_TRAVEL=t})),Object(B["a"])(n,et,(function(e,t){e.DETAILS_FARE=t})),Object(B["a"])(n,tt,(function(e,t){e.SHOW_SERVICE_OW=t})),Object(B["a"])(n,at,(function(e,t){e.SHOW_SERVICE_RW=t})),n),ht={LIST_TRAVEL:null,LIST_DATES:null,SELECT_TRAVEL:{TYPE_WAY:0,FARE_ID:null,FARE_ID_RW:null,TRAVEL_ADD_CART_OW:!1,TRAVEL_ADD_CART_RW:!1,ID_MULTIROUTE:[],ID_DEPARTURE_MR:null,ID_ARRIVAL_MR:null,KEY_TRAVEL_OW:null,KEY_TRAVEL_RW:null,ID_DEPARTURE_NEAR:null,ID_ARRIVAL_NEAR:null},PREVIEW_BUS_TRAVEL:null,DETAILS_FARE:null,SHOW_SERVICE_OW:!1,SHOW_SERVICE_RW:!1},ft={namespaced:!0,actions:pt,getters:mt,mutations:vt,state:ht},_t="SET_LOADING",gt="OPTION_STATE",bt="SET_LISTOPTIONS",Ct="SET_SKIN",wt="SET_SELECT_ORDER",yt="RESET_SELECT_ORDER",Et="SET_OPTIONS_FORM_STATE",St="SET_TIME",At="SET_LINK",Tt="SET_SIDEBAR_ACTIVE",Ot="SET_QUERY",Rt="SET_LANG",xt="SET_OPTIONS",Dt="RESET_OPTIONS",Pt=function(e,t){var a=e.commit;a(_t,t)},Lt=function(e,t){var a=e.commit;a(gt,t)},kt=function(e,t){var a=e.commit;a(bt,t)},It=function(e,t){var a=e.commit;a(Ct,t)},Nt=function(e,t){var a=e.commit;a(wt,t)},$t=function(e,t){var a=e.commit;a(yt,t)},jt=function(e,t){var a=e.commit;a(Et,t)},Mt=function(e,t){var a=e.commit;a(St,t)},Ut=function(e,t){var a=e.commit;a(At,t)},Ft=function(e,t){var a=e.commit;a(Tt,t)},Bt=function(e,t){var a=e.commit;a(Ot,t)},Yt=function(e,t){var a=e.commit;a(Rt,t)},Vt=function(e,t){var a=e.commit;a(xt,t)},qt=function(e,t){var a=e.commit;a(Dt,t)},Ht={setLoading:Pt,setstateOption:Lt,setlistoptions:kt,setskin:It,setSelectOrder:Nt,resetSelectOrder:$t,setOtptionsForm:jt,setTime:Mt,setLink:Ut,setSidebarActive:Ft,setQueryParams:Bt,setLang:Yt,setOptions:Vt,setRe
1setOptions:qt},Wt={loading:function(e){return e.LOADING},stateoption:function(e){return e.STATE},listoptions:function(e){return e.LISTOPTIONS},skin:function(e){return e.SKIN},selectOrder:function(e){return e.SELECT_ORDER},listoptionsform:function(e){return e.OPTIONS_FORM},timer:function(e){return e.TIMER},link:function(e){return e.LINK},sidebarActive:function(e){return e.SIDEBAR_ACTIVE},queryparams:function(e){return e.QUERY},lang:function(e){return e.LANG},termsConditions:function(e){return e.TERMS_CONDITIONS},countries:function(e){return e.COUNTRIES},states:function(e){return e.STATES}},Gt=(l={},Object(B["a"])(l,_t,(function(e,t){Object.assign(e.LOADING,t)})),Object(B["a"])(l,gt,(function(e,t){e.STATE=t})),Object(B["a"])(l,bt,(function(e,t){e.LISTOPTIONS=t})),Object(B["a"])(l,Ct,(function(e,t){e.SKIN=t})),Object(B["a"])(l,wt,(function(e,t){Object.assign(e.SELECT_ORDER,t)})),Object(B["a"])(l,yt,(function(e){e.SELECT_ORDER={TYPE:null,OPTION:null}})),Object(B["a"])(l,Et,(function(e,t){e.OPTIONS_FORM=t})),Object(B["a"])(l,St,(function(e,t){e.TIMER=t})),Object(B["a"])(l,At,(function(e,t){e.LINK=t})),Object(B["a"])(l,Tt,(function(e,t){e.SIDEBAR_ACTIVE=t})),Object(B["a"])(l,Ot,(function(e,t){e.QUERY=t})),Object(B["a"])(l,Rt,(function(e,t){e.LANG=t})),Object(B["a"])(l,xt,(function(e,t){Object.assign(e,t)})),Object(B["a"])(l,Dt,(function(e){e.LOADING={state:!1,msg:"",class:""},e.STATE=1,e.LISTOPTIONS=null,e.SKIN=null,e.SELECT_ORDER={TYPE:null,OPTION:null},e.OPTIONS_FORM=null,e.TIMER={show:!1,minutes:0,seconds:0,date:null,startDate:null,endDate:null},e.LINK={url:null,query:null},e.SIDEBAR_ACTIVE=!1,e.QUERY=null,e.LANG=null,e.TERMS_CONDITIONS=""})),l),zt={LOADING:{state:!1,msg:"",class:""},STATE:1,LISTOPTIONS:null,SKIN:null,SELECT_ORDER:{TYPE:null,OPTION:null},OPTIONS_FORM:null,TIMER:{show:!1,minutes:0,seconds:0,date:null,startDate:null,endDate:null},LINK:{url:null,query:null},SIDEBAR_ACTIVE:!1,QUERY:null,LANG:null,TERMS_CONDITIONS:"",COUNTRIES:[{value:"us",label:"United States"},{value:"AF",label:"Afghanistan"},{value:"AX",label:"Ã
land Islands"},{value:"AL",label:"Albania"},{value:"DZ",label:"Algeria"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Armenia"},{value:"AW",label:"Aruba"},{value:"AU",label:"Australia"},{value:"AT",label:"Austria"},{value:"AZ",label:"Azerbaijan"},{value:"BS",label:"Bahamas"},{value:"BH",label:"Bahrain"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Belarus"},{value:"BE",label:"Belgium"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Benin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"Bhutan"},{value:"BO",label:"Bolivia, Plurinational State of"},{value:"BA",label:"Bosnia and Herzegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvet Island"},{value:"BR",label:"Brazil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Brunei Darussalam"},{value:"BG",label:"Bulgaria"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"KH",label:"Cambodia"},{value:"CM",label:"Cameroon"},{value:"ca",label:"Canada"},{value:"CV",label:"Cape Verde"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Central African Republic"},{value:"TD",label:"Chad"},{value:"CL",label:"Chile"},{value:"CN",label:"China"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Comoros"},{value:"CG",label:"Congo"},{value:"CD",label:"Congo, The Democratic Republic of the"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"CI",label:"Côte d'Ivoire"},{value:"HR",label:"Croatia"},{value:"CU",label:"Cuba"},{value:"CY",label:"Cyprus"},{value:"CZ",label:"Czech Republic"},{value:"DK",label:"Denmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"Dominican Republic"},{value:"EC",label:"Ecuador"},{value:"EG",label:"Egypt"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Equatorial Guinea"},{value:"ER",label:"Eritrea"},{value:"US",label:"United States"},{value:"EE",label:"Estonia"},{value:"ET",label:"Ethiopia"},{value:"FK",label:"Falkland Islands (Malvinas)"},{value:"FO",label:"Faroe Islands"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Finland"},{value:"FR",label:"France"},{value:"GF",label:"French Guiana"},{value:"PF",label:"French Polynesia"},{value:"TF",label:"French Southern Territories"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"Georgia"},{value:"DE",label:"Germany"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Greece"},{value:"GL",label:"Greenland"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinea"},{value:"GW",label:"Guinea-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haiti"},{value:"HM",label:"Heard Island and McDonald Islands"},{value:"VA",label:"Holy See (Vatican City State)"},{value:"HN",label:"Honduras"},{value:"HK",label:"Hong Kong"},{value:"HU",label:"Hungary"},{value:"IS",label:"Iceland"},{value:"IN",label:"India"},{value:"ID",label:"Indonesia"}
1,{value:"IR",label:"Iran, Islamic Republic of"},{value:"IQ",label:"Iraq"},{value:"IE",label:"Ireland"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"Israel"},{value:"it",label:"Italy"},{value:"JM",label:"Jamaica"},{value:"JP",label:"Japan"},{value:"JE",label:"Jersey"},{value:"JO",label:"Jordan"},{value:"KZ",label:"Kazakhstan"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"KP",label:"Korea, Democratic People's Republic of"},{value:"KR",label:"Korea, Republic of"},{value:"KW",label:"Kuwait"},{value:"KG",label:"Kyrgyzstan"},{value:"LA",label:"Lao People's Democratic Republic"},{value:"LV",label:"Latvia"},{value:"LB",label:"Lebanon"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"Libyan Arab Jamahiriya"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lithuania"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"Macao"},{value:"MK",label:"Macedonia, The Former Yugoslav Republic of"},{value:"MG",label:"Madagascar"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"Marshall Islands"},{value:"MQ",label:"Martinique"},{value:"MR",label:"Mauritania"},{value:"MU",label:"Mauritius"},{value:"YT",label:"Mayotte"},{value:"mx",label:"Mexico"},{value:"FM",label:"Micronesia, Federated States of"},{value:"MD",label:"Moldova, Republic of"},{value:"MC",label:"Monaco"},{value:"MN",label:"Mongolia"},{value:"ME",label:"Montenegro"},{value:"MS",label:"Montserrat"},{value:"MA",label:"Morocco"},{value:"MZ",label:"Mozambique"},{value:"MM",label:"Myanmar"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"Nepal"},{value:"NL",label:"Netherlands"},{value:"AN",label:"Netherlands Antilles"},{value:"NC",label:"New Caledonia"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niue"},{value:"NF",label:"Norfolk Island"},{value:"MP",label:"Northern Mariana Islands"},{value:"NO",label:"Norway"},{value:"OM",label:"Oman"},{value:"PK",label:"Pakistan"},{value:"PW",label:"Palau"},{value:"PS",label:"Palestinian Territory, Occupied"},{value:"PA",label:"Panama"},{value:"PG",label:"Papua New Guinea"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Peru"},{value:"PH",label:"Philippines"},{value:"PN",label:"Pitcairn"},{value:"PL",label:"Poland"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"Qatar"},{value:"RE",label:"Réunion"},{value:"RO",label:"Romania"},{value:"RU",label:"Russian Federation"},{value:"RW",label:"Rwanda"},{value:"BL",label:"Saint Barthélemy"},{value:"SH",label:"Saint Helena, Ascension and Tristan Da Cunha"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"MF",label:"Saint Martin"},{value:"PM",label:"Saint Pierre and Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"WS",label:"Samoa"},{value:"SM",label:"San Marino"},{value:"ST",label:"Sao Tome and Principe"},{value:"SA",label:"Saudi Arabia"},{value:"SN",label:"Senegal"},{value:"RS",label:"Serbia"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SK",label:"Slovakia"},{value:"SI",label:"Slovenia"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Somalia"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia and the South Sandwich Islands"},{value:"ES",label:"Spain"},{value:"LK",label:"Sri Lanka"},{value:"SD",label:"Sudan"},{value:"SR",label:"Suriname"},{value:"SJ",label:"Svalbard and Jan Mayen"},{value:"SZ",label:"Swaziland"},{value:"SE",label:"Sweden"},{value:"CH",label:"Switzerland"},{value:"SY",label:"Syrian Arab Republic"},{value:"TW",label:"Taiwan, Province of China"},{value:"TJ",label:"Tajikistan"},{value:"TZ",label:"Tanzania, United Republic of"},{value:"TH",label:"Thailand"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"Tunisia"},{value:"TR",label:"Turkey"},{value:"TM",label:"Turkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Ukraine"},{value:"AE",label:"United Arab Emirates"},{value:"GB",label:"United Kingdom"},{value:"UM",label:"United States Minor Outlying Islands"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"Uzbekistan"},{value:"VU",label:"Vanuatu"},{value:"ve",label:"Venezuela"},{value:"VN",label:"Viet Nam"},{value:"VG",label:"Virgin Islands, British"},{value:"VI",label:"Virgin Islands, U.S."},{value:"WF",label:"Wallis and Futuna"},{value:"EH",label:"Western Sahara"},{value:"YE",label:"Yemen"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"}],STATES:[{value:"AK",label:"AK"},{value:"AL",label:"AL"},{value:"AR",label:"AR"},{value:"AZ",label:"AZ"},{value:"CA",label:"CA"},{value:"CO",label:"CO"},{value:"CT",label:"CT"},{value:"DC",label:"DC"},{value:"DE",label:"DE"},{value:"FL",label:"FL"},{value:"GA",label:"GA"},{value:"HI",label:"HI"},{value:"IA",label:"IA"},{value:"ID",label:"ID"},{value:"IL",label:"IL"},{value:"IN",label:"IN"},{value:"KS",label:"KS"},{value:"KY",label:"KY"},{value:"LA",label:"LA"},{value:"MA",label:"MA"},{value:"MD",label:"MD"},{value:"ME",label:"ME"},{value:"MI",label:"MI"},{value:"MN",label:"MN"},{value:"MO",label:"MO"},{value:"MS",label:"MS"},{value:"MT",label:"MT"},{value:"NC",label:"NC"},{value:"ND",label:"ND"},{value:"NE",label:"NE"},{value:"NH",label:"NH"},{value:"NJ",label:"NJ"},{value:"NM",label:"NM"},{value:"NV",label:"NV"},{value:"NY",label:"NY"},{value:"OH",label:"OH"},{value:"OK",label:"OK"},{value:"OR",label:"OR"},{value:"PA",label:"PA"},{value:"RI",label:"RI"},{value:"SC",label:"SC"},{value:"SD",label:"SD"},{value:"TN",label:"TN"},{value:"TX",label:"TX"},{value:"UT",label:"UT"},{value:"VA",label:"VA"},{value:"VT",label:"VT"},{value:"WA",label:"WA"},{value:"WI",label:"WI"},{value:"WV",label:"WV"},{value:"WY",label:"WY"},{value:"AA",label:"AA"},{value:"AE",label:"AE"},{value:"AP",label:"AP"},{value:"AS",label:"AS"},{value:"FM",label:"FM"},{value:"GU",label:"GU"},{value:"MH",label:"MH"},{value:"MP",label:"MP"},{value:"PR",label:"PR"},{value:"PW",label:"PW"},{value:"VI",label:"VI"}]},Kt={namespaced:!0,actions:Ht,getters:Wt,mutations:Gt,state:zt},Jt="LOGOUT",Xt="SET_AUTH",Qt="CHECK_TIME_LIFE",Zt="SET_URL_FREQUENT",ea=function(e){var t=e.commit;t(Jt)},ta=function(e,t){var a=e.commit;a(Xt,t)},aa=function(e,t){var a=e.commit;a(Qt,t)},sa=function(e,t){var a=e.commit;a(Zt,t)},ra={logOut:ea,setAuth:ta,checkTimeLife:aa,urlFrequent:sa},ia={user:function(e){return e.USER},urlFrequent:function(e){return e.URL_FREQUENT}},na=(o={},Object(B["a"])(o,Jt,(function(e){e.USER=null,e.DATE_SESSION=null})),Object(B["a"])(o,Xt,(function(e,t){Object.assign(e,t)}
1)),Object(B["a"])(o,Qt,(function(e){var t="60",a=se()();null==e.DATE_SESSION&&(e.DATE_SESSION=se()(a).format("YYYY-MM-DD HH:mm"));se()(e.DATE_SESSION).add(parseInt(t),"m")})),Object(B["a"])(o,Zt,(function(e,t){e.URL_FREQUENT=t.value})),o),la={USER:null,DATE_SESSION:null,URL_FREQUENT:0},oa={namespaced:!0,actions:ra,getters:ia,mutations:na,state:la};c["default"].use(d["a"]);var ca=!1;t["a"]=new d["a"].Store({modules:{search:q,cache:ne,cart:Ge,travels:ft,options:Kt,auth:oa},strict:ca,plugins:[p()()]})},"451d":function(e,t,a){e.exports=a.p+"static/img/user-men-mcets.8de440bf.svg"},"45cd":function(e,t,a){"use strict";var s=a("4f07"),r=a.n(s);r.a},4678:function(e,t,a){var s={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function r(e){var t=i(e);return a(t)}function i(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}r.keys=function(){return Object.keys(s)},r.resolve=i,e.exports=r,r.id="4678"},"4f07":function(e,t,a){},"4fa3":function(e,t,a){"use strict";var s=a("9230"),r=a.n(s);r.a},5670:function(e,t,a){e.exports=a.p+"static/img/us.853d7f14.svg"},"56d7":function(e,t,a){"use strict";a.r(t);a("cadf"),a("551c"),a("f751"),a("097d");var s=a("2b0e"),r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return null!=e.listoptions?a("div",{attrs:{id:"app"}},["0"==e.getUrlFrequent?a("qw-login"):e._e(),a("qw-register"),a("qw-recovery-pass"),a("b-modal",{ref:"m-error-global",attrs:{id:"bv-error-global",size:"md","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("h4",{staticClass:"text-center ml-n3 mb-3 text-blue"},[a("i",{staticClass:"text-green px-3 far fa-surprise fa-2x"}),e._v(e._s(e.$t("¡Ups!")))]),a("div",{staticClass:"d-block text-center"},["html"in e.error&&e.error.html?a("p",{domProps:{innerHTML:e._s(e.error.msg)}}):a("p",[e._v(e._s(e.error.msg))]),"buttons"in e.error&&e.error.buttons.length>0?e._l(e.error.buttons,(function(t,s){return a("button",{key:s,staticClass:"btn btn-primary rounded-pill",attrs:{role:"button"},on:{click:function(a){"click"in t&&e.actionButton(t.click)}}},[a("small",{staticClass:"text-uppercase"},[e._v(e._s(t.text))])])}
1)):e._e()],2)],1)])]}}],null,!1,3763478485)}),a("b-modal",{attrs:{id:"bv-modal-message-type-ticket",size:"md","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("h4",{staticClass:"text-center ml-n3 mb-3 text-blue"},[a("i",{staticClass:"text-green px-3 far fa-info fa-2x"}),e._v(e._s(e.$t("Información")))]),a("div",{staticClass:"d-block text-center"},[a("p",[e._v(e._s(e.msgTicketType))])])],1)])]}}],null,!1,2198809777)}),a("b-modal",{ref:"m-itinerary",staticClass:"text-white modal-dialog modal-dialog-centered ",attrs:{id:"bv-itinerary",title:"Itinerario","header-bg-variant":"white","header-text-variant":"secondary","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("h4",{staticClass:"ml-n3 mb-3 text-blue text-capitalize"},[a("i",{staticClass:"text-green pl-3 pr-3 far fa-map-marked-alt"}),e._v(e._s(e.$t("detalle de ruta")))]),a("div",{staticStyle:{display:"flex","flex-direction":"row","flex-wrap":"wrap","justify-content":"center","align-items":"flex-start"}},[a("div",[e._l(e.travel.routeDetail.routeDetail,(function(t,s){return a("div",{key:t.departureName},[0==s?a("div",[a("div",{staticClass:"d-block d-lg-flex"},[a("p",{staticClass:"itinerary-info-path d-lg-block"},[a("span",[e._v("\n "+e._s(e.customDateFormat(t.dateDeparture))+"\n ")])]),a("p",{staticClass:"itinerary-terminal-path"},[a("i",{staticClass:"itinerary-ico-path far far fa-bus"}),e._v(e._s(t.departureName)+"\n ")])])]):e._e(),a("div",[a("div",{staticClass:"d-flex"},[a("p",{staticClass:"itinerary-info-path d-lg-block d-none"}),"redcoach"!=e.skin?a("p",{staticClass:"itinerary-terminal-line"},[a("i",{staticClass:"ml-3 mr-1 far fa-clock text-blue"}),a("small",[e._v(e._s(e.timeFormatCustom(t.travelTime)))])]):e._e(),a("p",{staticClass:"itinerary-terminal-line"})]),a("div",{staticClass:"d-block d-lg-flex"},[a("p",{staticClass:"itinerary-info-path d-block"},[a("span",[e._v("\n "+e._s(e.customDateFormat(t.dateArrival))+"\n ")])]),e.travel.routeDetail.routeDetail.length-1>s?a("p",{staticClass:"itinerary-terminal-path"},[a("i",{staticClass:"itinerary-ico-path far far fa-bus"}),e._v(e._s(t.arrivalName)+"\n ")]):a("p",{staticClass:"itinerary-terminal-path"},[a("i",{staticClass:"itinerary-ico-path far fa-map-marker-alt"}),e._v(e._s(t.arrivalName)+"\n ")])])])])})),e.travel.path.length>1?a("div",[a("div",{staticClass:"d-flex"},[a("p",{staticClass:"itinerary-info-path d-lg-block d-none"}),a("p",{staticClass:"itinerary-terminal-line"}),a("p",{staticClass:"itinerary-info-path ml-3 mt-0 pt-0 mt-n1 d-lg-none"},[e._v("\n "+e._s(e.dateFormatOne(e.travel.path[0].travelPathGo.travelDepartureDatetime)))])]),e._l(e.travel.path,(function(t,s){return a("div",{key:t.travelPathGo.travelId},[s!=e.travel.path.length-1?a("div",{staticClass:"d-flex"},[a("p",{staticClass:"itinerary-info-path d-lg-block d-none"},[e._v("\n "+e._s(e.dateFormatOne(t.travelPathGo.travelArrivalDatetime)))]),a("p",{staticClass:"itinerary-terminal-path"},[a("i",{staticClass:"itinerary-ico-path far fa-map-marker-alt"}),e._v(e._s(t.travelPathGo.routeDetail.routeHeader[0].arrivalName)+"\n ")])]):e._e(),s!=e.travel.path.length-1?a("div",{staticClass:"d-flex d-lg-none"},[a("p",{staticClass:"itinerary-info-path d-lg-block d-none"}),a("p",{staticClass:"itinerary-terminal-space"}),a("p",{staticClass:"itinerary-info-path ml-3 mt-0 pt-0 mt-n1"},[e._v("\n "+e._s(e.dateFormatOne(t.travelPathGo.travelArrivalDatetime)))])]):e._e(),s!=e.travel.path.length-1?a("div",{staticClass:"d-flex my-3"},[a("p",{staticClass:"itinerary-info-path d-lg-block d-none"}),a("p",{staticClass:"itinerary-terminal-path"},[a("i",{staticClass:"itinerary-ico-path far fa-random"}),a("span",{staticClass:"itinerary-info-path mt-1 mb-2",staticStyle:{color:"#8492A6"}},[a("i",{staticClass:"far fa-shuttle-van ml-1"}),a("span",[e._v(" »")]),a("i",{staticClass:"far fa-shuttle-van ml-1 mr-2"}),e._v("\n "+e._s(e.$t("Transbordo"))+": "),a("i",{staticClass:"far fa-clock ml-1"}),e._v("\n "+e._s(e.calculateTimeTravel(t.travelPathGo.travelArrivalDatetime,e.travel.path[s+1].travelPathGo.travelDepartureDatetime))+"\n ")])])]):e._e(
1),s!=e.travel.path.length-1?a("div",{staticClass:"d-flex"},[a("p",{staticClass:"itinerary-info-path d-lg-block d-none"},[e._v("\n "+e._s(e.dateFormatOne(e.travel.path[s+1].travelPathGo.travelDepartureDatetime)))]),a("p",{staticClass:"itinerary-terminal-path"},[a("i",{staticClass:"itinerary-ico-path far fa-bus"}),e._v(e._s(e.travel.path[s+1].travelPathGo.routeDetail.routeHeader[0].departureName)+"\n ")])]):e._e(),s!=e.travel.path.length-1?a("div",{staticClass:"d-flex"},[a("p",{staticClass:"itinerary-info-path d-lg-block d-none"}),a("p",{staticClass:"itinerary-terminal-line"}),a("p",{staticClass:"itinerary-info-path ml-3 mt-0 pt-0 mt-n1 d-lg-none"},[e._v("\n "+e._s(e.dateFormatOne(e.travel.path[s+1].travelPathGo.travelDepartureDatetime)))])]):e._e()])}))],2):e._e(),a("div",{staticClass:"mt-2 d-flex align-items-center",staticStyle:{"margin-left":"11px","margin-bottom":"15px"}},[a("i",{staticClass:"far fa-clock"}),a("small",{staticClass:"mt-1 ml-1"},[e._v("\n "+e._s(e.$t("Las horas mostradas son en hora local"))+".")])])],2),a("div",{staticClass:"map-width map-route-detail"},[a("MapBoxGL",{attrs:{stops:e.travel.path[0]["travelPathGo"]["routeDetail"]["routeDetail"]}},[e._v("/")])],1)])],1)]}}],null,!1,513144401)}),a("transition",{attrs:{"enter-active-class":"animated fadeIn faster-plus","leave-active-class":"animated fadeOut faster-plus",mode:"out-in"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.loading.state,expression:"loading.state"}],ref:"loader",staticClass:"preloader"},[a("div",{staticClass:"text-blue justify-content-center"},[a("div",{staticClass:"v-spinner m-auto position-relative",staticStyle:{height:"200px",width:"200px"}},[a("div",{staticClass:"v-moon v-moon1",staticStyle:{height:"200px",width:"200px","border-rhttps":"//www.npmjs.com/package/vue-headadius: 100%"}},[a("div",{staticClass:"v-moon v-moon2",staticStyle:{"border-radius":"100%",width:"18.57143px",height:"18.57143px","background-color":"var(--blue)",top:"70.7143px"}}),a("div",{staticClass:"v-moon v-moon3",staticStyle:{"border-radius":"100%",width:"200px",height:"200px",border:"18.57143px solid var(--green-5)"}})]),a("i",{staticClass:"text-green animated pulse infinite opacity-5 position-absolute far fa-3x",class:e.showLoadingIcon,staticStyle:{top:"4.5rem",left:"4.5rem","border-width":"0.5rem"}})]),a("h3",{staticClass:"mx-3 mt-3 text-center"},[a("b",[e._v(e._s(e.loading.msg)+e._s(""==e.loading.msg?"":"...")+" ")])])]),a("div",{staticClass:"justify-content-center border text-blue"})])]),e.loader?a("router-view"):e._e(),e.isTimer?a("div",{staticClass:"timer-sesion"},[null!=e.timers&&null!=e.timers.endDate?a("div",{staticClass:"align-items-center d-flex font-weight-900"},[a("p",{staticClass:"mb-0 font-weight-400 d-none d-lg-block"},[e._v(e._s(e.$t("Por favor, paga dentro de")))]),a("i",{staticClass:"my-0 p-1 far fa-stopwatch fa-2x"}),a("countdownTime",{attrs:{experitationtime:e.timers.endDate}})],1):e._e()]):e._e(),e.messageLogin&&e.isMobilDevice?a("p",{staticClass:"center position-absolute hi-name"},[e._v("j")]):e._e()],1):e._e()},i=[],n=(a("8e6e"),a("ac6a"),a("456d"),a("28a5"),a("bd86")),l=(a("7f7f"),a("a481"),new Promise((function(e,t){var a="2022.04.23.16.00";localStorage.getItem("appVersion")!==a?(window.localStorage.removeItem("vuex"),window.sessionStorage.removeItem("maxSeatSelected"),window.localStorage.clear(),window.sessionStorage.clear(),window.localStorage.setItem("vuex",JSON.stringify(null)),window.localStorage.setItem("appVersion",a),document.cookie.split(";").forEach((function(e){document.cookie=e.replace(/^ +/,"").replace(/=.*/,"=;expires="+(new Date).toUTCString()+";path=/")})),o(),e()):t()}))),o=function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var a=e[t],s=a.indexOf("="),r=s>-1?a.substr(0,s):a;document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}},c=(a("f9e3"),a("2dd8"),a("6dfc"),a("c1df")),d=a.n(c),u=a("4360"),p=a("e9f8"),m=a("9029"),v=a("2f62"),h=a("8b16"),f=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("countdown",{attrs:{"end-time":e.experitationtime},on:{finish:function(t){return e.clearSessionCartAndRedirectToHOme()}},scopedSlots:e._u([{key:"process",fn:function(t){return[a("span",[e._v(e._s(t.timeObj.m+":"+t.timeObj.s))])]}},{key:"finish",fn:function(){return[a("span",[e._v("Done!")])]},proxy:!0}])})],1)},_=[];function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function b(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?g(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var C={name:"countdownTime",props:{experitationtime:{type:Date,required:!0}},data:function(){return{boxOne:""}},computed:b({},Object(v["c"])({direction:"cart/direction",shoppingCart:"cart/shoppingCart"})),methods:b({},Object(v["b"])({setLoading:"options/setLoading",setShoppingCartList:"cart/setShoppingCartList",setShoppingCart:"cart/setShoppingCart",setSelectedSeatsOw:"cart/setSelectedSeatsOw",setSelectedSeatsRw:"cart/setSelectedSeatsRw",cleanCart:"cart/cleanCart",restartState:"travels/restartState",clearTravel:"search/clearTravel",qwsetstateOption:"options/setstateOption"}),{clearAllCacheAndStateVuex:function(){this.cleanCart(),this.clearTravel(),this.restartState(),this.setSelectedSeatsOw(null),this.setSelectedSeatsRw(null),this.qwsetstateOption(1),this.$router.push({name:"home"}),window.href=window.location.origin},clearSessionCartAndRedirectToHOme:function(){localStorage.getItem("expirationData")&&localStorage.removeItem("expirationData"),this.$eventBus.$emit("timerCart",{istimer:!1,startDate:null,endDate:null});var e="shoppingcart/expiresBySession",t={ID_SHOPPINGCART:this.shoppingCart};this.$eventBus.$emit("loadError",{msg:this.$t("Su sesión ha estado inactiva por mucho tiempo. Le invitamos nuevamente a comprar su boleto en nuestra web")+"."}),this.$http.post(e,t).then((function(e){scroll(0,0)})).catch((function(e){console.log(e)})),this.clearAllCacheAndStateVuex()}})},w=C,y=a("2877"),E=Object(y["a"])(w,f,_,!1,null,null,null),S=E.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("b-modal",{ref:"register-ref",staticClass:"p-0",attrs:{"no-close-on-backdrop":"1"==e.getUrlFrequent,"no-close-on-esc":"1"==e.getUrlFrequent,id:"register","hide-footer":"","hide-header":"",centered:""},on:{shown:e.actionsShown},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",["0"==e.getUrlFrequent?a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]):e._e(),a("form",{staticClass:"pt-1 pb-3",on:{submit:function(t){return t.preventDefault(),e.register()}}},[a("h5",{staticClass:"modal-title pb-4 text-center",attrs:{id:"exampleModalLabel"}},[e._v(e._s(e.$t("RegÃstrate gratis y acumula puntos")))]),a("div",{staticClass:"row"},[a("div",{staticClass:"col-sm-12 special-col"},[a("div",{staticClass:"col-sm-6 p-r-small"},[a("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.firstName.length>0}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.firstName,expression:"user.firstName"}],staticClass:"form-field__input",attrs:{id:"register-name2",type:"text",value:"",onkeyup:"this.setAttribute('value', this.value);",max:"50"},domProps:{value:e.user.firstName},on:{input:function(t){t.target.composing||e.$set(e.user,"firstName",t.target.value)}}}),a("label",{ref:"firstName",staticClass:"form-field__label",attrs:{for:"register-name2"}},[e._v(e._s(e.$t("Nombres")))])]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.firstName.length>0,expression:"errors.firstName.length > 0"}],staticClass:"text-error2"},[a("i",{staticClass:"fas fa-exclamation-circle"})])]),a("div",{staticClass:"col-sm-6 p-r-small"},[a("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.lastName.length>0}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.lastName,expression:"user.lastName"}],staticClass:"form-field__input",attrs:{id:"register-last-name",type:"text",value:"",onkeyup:"this.setAttribute('value', this.value);",max:"50"},domProps:{value:e.user.lastName},on:{input:function(t){t.target.composing||e.$set(e.user,"lastName",t.target.value)}}}),a("label",{staticClass:"form-field__label",attrs:{for:"register-last-name"}},[e._v(e._s(e.$t("Apellidos")))])]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.lastName.length>0,expression:"errors.lastName.length > 0"}],staticClass:"text-error2"},[a("i",{staticClass:"fas fa-exclamation-circle"}
1)])]),a("div",{staticClass:"col-sm-12 p-0 form-field ",class:{"is-invalid":e.errors.phone.length>0}},[a("vue-phone-number-input",{attrs:{"no-example":"","default-country-code":e.options.DATE_FORMAT.value},on:{update:e.inputphone},model:{value:e.telephone,callback:function(t){e.telephone=t},expression:"telephone"}}),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.phone.length>0,expression:"errors.phone.length > 0"}],staticClass:"text-error2"},[a("i",{staticClass:"fas fa-exclamation-circle"})])],1),a("div",{staticClass:"col-sm-12 p-0"},[a("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.email.length>0}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.email,expression:"user.email"}],staticClass:"form-field__input",attrs:{id:"register-email",type:"text",value:"",onkeyup:"this.setAttribute('value', this.value);",maxlength:"100"},domProps:{value:e.user.email},on:{input:function(t){t.target.composing||e.$set(e.user,"email",t.target.value)}}}),a("label",{staticClass:"form-field__label",attrs:{for:"register-email"}},[e._v("Email")])]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.email.length>0,expression:"errors.email.length > 0"}],staticClass:"text-error2"},[a("i",{staticClass:"fas fa-exclamation-circle"})])]),a("div",{staticClass:"col-sm-12 p-0"},[a("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.username.length>0,"is-valid":e.usernameValidate}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.username,expression:"user.username"}],staticClass:"form-field__input",attrs:{id:"username",type:"text",value:"",onkeyup:"this.setAttribute('value', this.value);",maxlength:"20",autocomplete:"off"},domProps:{value:e.user.username},on:{input:function(t){t.target.composing||e.$set(e.user,"username",t.target.value)}}}),a("label",{staticClass:"form-field__label",attrs:{for:"username"}},[e._v("Username")])]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.username.length>0,expression:"errors.username.length > 0"}],staticClass:"text-error2"},[a("i",{staticClass:"fas fa-exclamation-circle"})])]),a("div",{staticClass:"col-sm-12 p-0"},[a("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.password.length>0,"is-valid":e.passwordValidate}},["checkbox"===(e.isVisibleNewPass?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.password,expression:"user.password"}],staticClass:"form-field__input",attrs:{id:"register-password",value:"",onkeyup:"this.setAttribute('value', this.value);",maxlength:"20",autocomplete:"off",type:"checkbox"},domProps:{checked:Array.isArray(e.user.password)?e._i(e.user.password,"")>-1:e.user.password},on:{change:function(t){var a=e.user.password,s=t.target,r=!!s.checked;if(Array.isArray(a)){var i="",n=e._i(a,i);s.checked?n<0&&e.$set(e.user,"password",a.concat([i])):n>-1&&e.$set(e.user,"password",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.user,"password",r)}}}):"radio"===(e.isVisibleNewPass?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.password,expression:"user.password"}],staticClass:"form-field__input",attrs:{id:"register-password",value:"",onkeyup:"this.setAttribute('value', this.value);",maxlength:"20",autocomplete:"off",type:"radio"},domProps:{checked:e._q(e.user.password,"")},on:{change:function(t){return e.$set(e.user,"password","")}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.password,expression:"user.password"}],staticClass:"form-field__input",attrs:{id:"register-password",value:"",onkeyup:"this.setAttribute('value', this.value);",maxlength:"20",autocomplete:"off",type:e.isVisibleNewPass?"text":"password"},domProps:{value:e.user.password},on:{input:function(t){t.target.composing||e.$set(e.user,"password",t.target.value)}}}),a("label",{staticClass:"form-field__label",attrs:{for:"register-password"}},[e._v(e._s(e.$t("Contraseña")))])]),a("span",{class:[e.isVisibleNewPass?"show-password":"hidden-password"],on:{click:function(t){e.isVisibleNewPass=!e.isVisibleNewPass}}}),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.password.length>0,expression:"errors.password.length > 0"}],staticClass:"text-error2"},[a("i",{staticClass:"fas fa-exclamation-circle"})])]),a("div",{staticClass:"col-sm-12 p-0"},[a("div",{staticClass:"form-field form-field__control",class:{"
1is-invalid":e.errors.passwordConfirm.length>0}},["checkbox"===(e.isVisibleNewPassSame?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.passwordConfirm,expression:"user.passwordConfirm"}],staticClass:"form-field__input",attrs:{id:"register-password-repeat",value:"",onkeyup:"this.setAttribute('value', this.value);",max:"20",autocomplete:"off",type:"checkbox"},domProps:{checked:Array.isArray(e.user.passwordConfirm)?e._i(e.user.passwordConfirm,"")>-1:e.user.passwordConfirm},on:{change:function(t){var a=e.user.passwordConfirm,s=t.target,r=!!s.checked;if(Array.isArray(a)){var i="",n=e._i(a,i);s.checked?n<0&&e.$set(e.user,"passwordConfirm",a.concat([i])):n>-1&&e.$set(e.user,"passwordConfirm",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.user,"passwordConfirm",r)}}}):"radio"===(e.isVisibleNewPassSame?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.passwordConfirm,expression:"user.passwordConfirm"}],staticClass:"form-field__input",attrs:{id:"register-password-repeat",value:"",onkeyup:"this.setAttribute('value', this.value);",max:"20",autocomplete:"off",type:"radio"},domProps:{checked:e._q(e.user.passwordConfirm,"")},on:{change:function(t){return e.$set(e.user,"passwordConfirm","")}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.passwordConfirm,expression:"user.passwordConfirm"}],staticClass:"form-field__input",attrs:{id:"register-password-repeat",value:"",onkeyup:"this.setAttribute('value', this.value);",max:"20",autocomplete:"off",type:e.isVisibleNewPassSame?"text":"password"},domProps:{value:e.user.passwordConfirm},on:{input:function(t){t.target.composing||e.$set(e.user,"passwordConfirm",t.target.value)}}}),a("label",{staticClass:"form-field__label",attrs:{for:"register-password"}},[e._v(e._s(e.$t("Repite la Contraseña")))])]),a("span",{class:[e.isVisibleNewPassSame?"show-password":"hidden-password"],on:{click:function(t){e.isVisibleNewPassSame=!e.isVisibleNewPassSame}}}),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.passwordConfirm.length>0,expression:"errors.passwordConfirm.length > 0"}],staticClass:"text-error2"},[a("i",{staticClass:"fas fa-exclamation-circle"})])]),e.showTermsConditions?a("div",{staticClass:"col-sm-12 mb-3 mt-n1 p-0"},[a("div",{staticClass:"custom-checkbox form-check ml-2 pl-0"},[a("div",{ref:"termsConditions",staticClass:"text-sm font-weight-300 lh-120 d-inline",domProps:{innerHTML:e._s(e.termsConditions)}})])]):e._e()])]),e.loadRegister?a("button",{staticClass:"btn-primary w-100 ver-detalles pt-1 mb-4",attrs:{type:"submit","data-toggle":"modal","data-dismiss":"modal","data-target":"#modal_verify_email",disabled:""}},[a("div",{staticClass:"spinner-border text-light",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[e._v("Loading...")])])]):a("button",{staticClass:"btn-primary w-100 ver-detalles pt-1 mb-4",attrs:{type:"submit","data-toggle":"modal","data-dismiss":"modal","data-target":"#modal_verify_email"}},[e._v(e._s(e.$t("Registrarse")))]),a("span",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"login",expression:"'login'"}],staticClass:"cursor-pointer text-center text-light-blue mb-0 text-sm d-block",attrs:{"data-toggle":"modal","data-dismiss":"modal"}},[e._v(e._s(e.$t("¿Ya tienes una cuenta?")))])])],1)])]}}])}),a("b-modal",{ref:"confirm-ref",attrs:{"no-close-on-backdrop":"1"==e.getUrlFrequent,"no-close-on-esc":"1"==e.getUrlFrequent,id:"confirm","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",["0"==e.getUrlFrequent?a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]):e._e(),a("div",{staticClass:"pt-1 pb-3 text-center"},[a("i",{staticClass:"far fa-envelope-open-text fa-5x text-light-blue"}),a("h5",{staticClass:"mt-4"},[e._v(e._s(e.$t("Verifique su correo electrónico")))]),a("p",{staticClass:"text-left text-md"},[e._v(e._s(e.$t("Le enviamos un correo electrónico, hacer clic en el enlace de confirmación para verificar su dirección de correo y poder comenzar a usar su cuenta.")))]),a("p",{staticClass:"text-left text-md"},[e._v(e._s(e.$t("Una vez su cuenta esté activa, podrá ver sus puntos acumulados, próximos viajes y detalles de reserva en lÃnea en cualquier momento.")))]),a("span",{staticClass:"cursor-pointer text-center text-light-blue mb-0 text-sm d-block",attrs:{"data-dismiss":"modal","aria-label":"Close"},on:{click:e.verifyUrlrFrequent}}
1,[e._v(e._s(e.$t("Entendido")))])])],1)])]}}])})],1)},T=[],O=(a("20d6"),a("0e0b")),R=a("0c1a");function x(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function D(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?x(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):x(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var P={data:function(){return{usernameValidate:!1,passwordValidate:!1,showTermsConditions:!1,loadRegister:!1,isVisibleNewPass:!1,isVisibleNewPassSame:!1,termsConditions:"",user:{firstName:"",lastName:"",email:"",phone:"",username:"",password:"",passwordConfirm:""},errors:{firstName:[],lastName:[],email:[],phone:[],username:[],password:[],passwordConfirm:[],cStatusTerms:[]},telephone:""}},components:{},created:function(){this.loadTermsConditions()},mounted:function(){var e=this;this.$eventBus.$on("load-terms",(function(t){e.loadTermsConditions()}))},computed:D({},Object(v["c"])({options:"options/listoptions",getUrlFrequent:"auth/urlFrequent"})),methods:D({inputphone:function(e){this.user.phone=e.nationalNumber},register:function(){var e=this;if(this.loadRegister=!0,this.usernameValidate||0==this.user.username.length)if(this.passwordValidate||0==this.user.password.length){var t={FIRST_USER_NAME:this.user.firstName,LAST_USER_NAME:this.user.lastName,C_WEB_EMAIL:this.user.email,C_WEB_PHONE:this.user.phone,C_WEB_USER:this.user.username,C_WEB_PASS:this.user.password,C_WEB_SAME_PASS:this.user.passwordConfirm};this.showTermsConditions&&(t=Object.assign(t,{C_SHOW_TERMS:this.showTermsConditions,C_STATUS_TERMS:!!this.showTermsConditions&&this.$refs.termsConditions.children[0].checked})),this.$http({method:"POST",url:"user/saveUser",data:t}).then((function(t){e.$bvModal.hide("register"),e.$bvModal.show("confirm"),e.loadRegister=!1})).catch((function(t){if("422"==t.response.data.code){var a=t.response.data.details,s=a.findIndex((function(e){return"FIRST_USER_NAME"==e.field})),r=a.findIndex((function(e){return"LAST_USER_NAME"==e.field})),i=a.findIndex((function(e){return"C_WEB_EMAIL"==e.field})),n=a.findIndex((function(e){return"C_WEB_PHONE"==e.field})),l=a.findIndex((function(e){return"C_WEB_USER"==e.field})),o=a.findIndex((function(e){return"C_WEB_PASS"==e.field})),c=a.findIndex((function(e){return"C_WEB_SAME_PASS"==e.field})),d=a.findIndex((function(e){return"C_STATUS_TERMS"==e.field}));e.errors.firstName=-1!=s?a[s].messages:[],e.errors.lastName=-1!=r?a[r].messages:[],e.errors.email=-1!=i?a[i].messages:[],e.errors.phone=-1!=n?a[n].messages:[],e.errors.username=-1!=l?a[l].messages:[],e.errors.password=-1!=o?a[o].messages:[],e.errors.passwordConfirm=-1!=c?a[c].messages:[],e.errors.cStatusTerms=-1!=d?a[d].messages:[]}else e.$eventBus.$emit("loadError",Object(O["b"])(t));e.loadRegister=!1}))}else this.errors.password.unshift("Debe ingresar una Contraseña válida"),this.loadRegister=!1;else this.errors.username.unshift("Debe ingresar un Username válido"),this.loadRegister=!1},loadTermsConditions:function(){var e=this;this.$http({method:"POST",url:"user/showTerms",data:{LANG:R["a"].locale+"-"+R["a"].locale}}).then((function(t){""!==t.data.data.data&&(e.showTermsConditions=!0,e.setOptions({TERMS_CONDITIONS:t.data.data}),e.termsConditions=t.data.data)})).catch((function(t){e.$eventBus.$emit("loadError",Object(O["b"])(t)),e.showTermsConditions=!1}))},actionsShown:function(){this.loadRegister=!1,this.$bvModal.hide("login"),this.clearUser(),this.clearErrors(),this.usernameValidate=!1,this.passwordValidate=!1,this.$refs.firstName.focus()},clearErrors:function(){this.errors={firstName:[],lastName:[],email:[],phone:[],username:[],password:[],passwordConfirm:[]}},clearUser:function(){this.user={firstName:"",lastName:"",email:"",phone:"",username:"",password:"",passwordConfirm:""}}},Object(v["b"])({setOptions:"options/setOptions"}),{verifyUrlrFrequent:function(){this.$bvModal.hide("confirm"),"1"==this.getUrlFrequent&&this.$router.replace("/")}}),watch:{"user.username":function(){var e=this;""!=this.user.username&&this.$http({method:"POST",url:"user/getValidateUser",data:{USER_NAME:this.user.username}}).then((function(t){e.errors.username=[],e.usernameValidate=!0})).catch((function(t){"404"==t.response.data.code?(e.errors.username.unshift(t.response.data.details),e.usernameValidate=!1):e.$eventBus.$emit("loadError",Object(O["b"])(t))}))},"user.password":function(){var e=this;""!=this.user.password&&this.$http({method:"POST",url:"user/getValidateCurrentpass",data:{CURRENT_PASS:this.user.password}}).then((function(t){e.errors.password=[],e.passwordValidate=!0})).catch((function(t){"422"==t.response.data.code?(e.errors.password.unshift(t.response.data.details[0].messages[0]),e.passwordValidate=!1):e.$eventBus.$emit("loadError",Object(O["b"])(t))}))}}},L=P,k=Object(y["a"])(L,A,T,!1,null,null,null),I=k.exports,N=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("b-modal",{ref:"recovery-pass-ref",attrs:{"no-close-on-backdrop":"1"==e.getUrlFrequent,"no-close-on-esc":"1"==e.getUrlFrequent,id:"recovery-pass","hide-footer":"","hide-header":"",centered:""},on:{shown:e.actionsShown},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",["0"==e.getUrlFrequent?a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}}
1,[e._v("X")]):e._e(),a("form",{staticClass:"pt-1 pb-3",on:{submit:function(t){return t.preventDefault(),e.recoveryPass(t)}}},[a("h5",{staticClass:"modal-title pb-4 text-center",attrs:{id:"exampleModalLabel"}},[e._v(e._s(e.$t("¿Olvidaste tu contraseña? No hay problema")))]),a("div",{staticClass:"form-field form-field__control mb-4 overflow-visible",class:{"is-invalid":e.errors.emailForgot.length>0}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.emailForgot,expression:"emailForgot"}],ref:"emailForgot",staticClass:"form-field__input",attrs:{id:"recovery-email",type:"text",value:"",onkeyup:"this.setAttribute('value', this.value);"},domProps:{value:e.emailForgot},on:{input:function(t){t.target.composing||(e.emailForgot=t.target.value)}}}),a("label",{staticClass:"form-field__label",attrs:{for:"recovery-email"}},[e._v("Email")]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.emailForgot.length>0,expression:"errors.emailForgot.length > 0"}],staticClass:"text-error"},[e._v(e._s(e.errors.emailForgot[0]))])]),e.loadAction?a("button",{staticClass:"btn-primary w-100 ver-detalles pt-1 mb-4",attrs:{type:"submit",disabled:""}},[a("div",{staticClass:"spinner-border text-light",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[e._v("Loading...")])])]):a("button",{staticClass:"btn-primary w-100 ver-detalles pt-1 mb-4 text-uppercase",attrs:{type:"submit"}},[e._v(e._s(e.$t("Recuperar")))]),a("span",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"login",expression:"'login'"}],staticClass:"cursor-pointer text-center text-sm d-block mb-2",attrs:{"data-toggle":"modal","data-dismiss":"modal","data-target":"#modal_login"}},[e._v(e._s(e.$t("Si la tengo")))])])],1)])]}}])}),a("b-modal",{ref:"confirm-recovery-pass-ref",attrs:{"no-close-on-backdrop":"1"==e.getUrlFrequent,"no-close-on-esc":"1"==e.getUrlFrequent,id:"confirm-recovery-pass","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",["0"==e.getUrlFrequent?a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]):e._e(),a("div",{staticClass:"pt-1 pb-3 text-center"},[a("i",{staticClass:"far fa-envelope-open-text fa-5x text-light-blue"}),a("h5",{staticClass:"mt-4"},[e._v(e._s(e.$t("Verifique su correo electrónico")))]),a("p",{staticClass:"text-left text-md"},[e._v(e._s(e.$t("Hemos enviado un enlace a su correo electrónico para que pueda restablecer su contraseña.")))]),a("span",{staticClass:"cursor-pointer text-center text-light-blue mb-0 text-sm d-block",attrs:{"data-dismiss":"modal","aria-label":"Close"},on:{click:e.verifyUrlrFrequent}},[e._v(e._s(e.$t("Entendido")))])])],1)])]}}])}),a("b-modal",{ref:"error-recovery-pass-ref",attrs:{id:"error-recovery-pass","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("div",{staticClass:"pt-1 pb-3 text-center"},[a("i",{staticClass:"far fa-envelope-open-text fa-5x text-light-blue"}),a("h5",{staticClass:"mt-4"},[e._v(e._s(e.$t("Correo electrónico no registrado")))]),a("p",{staticClass:"text-left text-md"},[e._v(e._s(e.$t("Hemos revisado nuestra base de datos y no existe una cuenta relacionada al correo ingresado.")))]),a("span",{staticClass:"cursor-pointer text-center text-light-blue mb-0 text-sm d-block",attrs:{"data-dismiss":"modal","aria-label":"Close"},on:{click:function(e){return s()}}},[e._v(e._s(e.$t("Entendido")))])])],1)])]}}])})],1)},$=[];function j(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function M(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?j(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):j(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var U={data:function(){return{loadAction:!1,emailForgot:"",errors:{emailForgot:[]}}},methods:{recoveryPass:function(){var e=this;this.loadAction=!0,this.$http({method:"POST",url:"user/recoveryPass",data:{EMAIL_FORGOT:this.emailForgot}}).then((function(t){e.$bvModal.hide("recovery-pass"),e.$bvModal.show("confirm-recovery-pass"),e.loadAction=!1})).catch((function(t){if("404"==t.response.data.code&&(e.$eventBus.$emit("loadError",t.response.data.details),e.emailForgot="",e.clearErrors(),e.loadAction=!1,e.$bvModal.show("error-recovery-pass")),"422"==t.response.data.code){var a=t.response.data.details,s=a.findIndex((function(e){return"EMAIL_FORGOT"==e.field}));e.errors.emailForgot=-1!=s?a[s].messages:[],e.loadAction=!1}e.loadAction=!1}))},actionsShown:function(){this.$bvModal.hide("login"),this.emailForgot="",this.$refs.emailForgot.focus(),this.clearErrors()},clearErrors:function(){this.errors={emailForgot:[]}},verifyUrlrFrequent:function(){this.$bvModal.hide("confirm-recovery-pass"),"1"==this.getUrlFrequent&&this.$router.replace("/")}},computed:M({},Object(v["c"])({getUrlFrequent:"auth/urlFrequent"}))},F=U,B=Object(y["a"])(F,N,$,!1,null,null,null),Y=B.exports,V=a("8a5d"),q=a("2fc2"),H=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},W=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{attrs:{id:"mapBox"}})])}],G=a("e192"),z=a.n(G),K=a("bc3a"),J=a.n(K),X={data:function(){return{accessToken:"pk.eyJ1IjoiamFpc29ubW9yYTEzIiwiYSI6ImNrcHBwbjZ4YzA1b2cyb3FwOWVhaHVsY2EifQ.UWE9FIkC3N1tXr9VxoZlvA",profile:"driving",coordinates:[],addressDeparture:[],addressArrival:[],coordinatesUrl:"",responseDirection:{}}},props:{stops:Array},mounted:function(){var e=this,t=this.stops;if(t.length>21){t.forEach((function(t,a){0==a&&(e.coordinates.push([t["departureLng"],t["departureLat"]]),e.addressDeparture.push(t["addressDeparture"]),e.coordinatesUrl+="".concat(t["departureLng"],", ").concat(t["departureLat"],";"),a+1===2&&(e.coordinates.push([t["arrivalLng"],t["arrivalLat"]]),e.addressArrival.push(t["addressArrival"]),e.coordinatesUrl+="".concat(t["arrivalLng"],", ").concat(t["arrivalLat"])))}));var a=t.length-1;t.forEach((function(s,r){r==a&&(e.coordinates.push([s["departureLng"],s["departureLat"]]),e.addressDeparture.push(s["addressDeparture"]),e.coordinatesUrl+="".concat(s["departureLng"],", ").concat(s["departureLat"],";"),r+1===t.length&&(e.coordinates.push([s["arrivalLng"],s["arrivalLat"]]),e.addressArrival.push(s["addressArrival"]),e.coordinatesUrl+="".concat(s["arrivalLng"],", ").concat(s["arrivalLat"])))}))}else t.forEach((function(a,s){e.coordinates.push([a["departureLng"],a["departureLat"]]),e.addressDeparture.push(a["addressDeparture"]),e.coordinatesUrl+="".concat(a["departureLng"],", ").concat(a["departureLat"],";"),s+1===t.length&&(e.coordinates.push([a["arrivalLng"],a["arrivalLat"]]),e.addressArrival.push(a["addressArrival"]),e.coordinatesUrl+="".concat(a["arrivalLng"],", ").concat(a["arrivalLat"]))}));J.a.get("https://api.mapbox.com/directions/v5/mapbox/".concat(this.profile,"/").concat(this.coordinatesUrl),{params:{access_token:this.accessToken,geometries:"geojson"}}).then((function(t){return Object.assign(e.responseDirection,t.data)}))},updated:function(){var e=this;z.a.accessToken=this.accessToken;var t=this.coordinates.reduce((function(e,t){return e.extend(t)}),new z.a.LngLatBounds(this.coordinates[0],this.coordinates[this.coordinates.length-1])),a=t.getCenter(),s=new z.a.Map({container:"mapBox",style:"mapbox://styles/mapbox/light-v10",center:a,trackResize:!0,attributionControl:!1});new z.a.Marker({draggable:!1,scale:.6}).setLngLat(this.coordinates[0]).setPopup((new z.a.Popup).setHTML(this.addressDeparture[0])).addTo(s),new z.a.Marker({draggable:!1,scale:.6}).setLngLat(this.coordinates[this.coordinates.length-1]).setPopup((new z.a.Popup).setHTML(this.addressArrival[0])).addTo(s),s.on("load",(function(){s.addSource("route",{type:"geojson",data:{type:"Feature",properties:{},geometry:{type:"LineString",coordinates:e.responseDirection["routes"][0]["geometry"]["coordinates"]},legs:e.responseDirection["routes"][0]["legs"]}}),s.addLayer({id:"route",type:"line",source:"route",layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":"#888","line-width":4}}),s.fitBounds(t,{padding:30})}))}},Q=X,Z=(a("75e2"),Object(y["a"])(Q,H,W,!1,null,null,null)),ee=Z.exports,te=a("342d"),ae=a.n(te);function se(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function re(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?se(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):se(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ie={name:"app",store:u["a"],router:p["router"],VueHead:ae.a,components:{qwLogin:h["default"],qwRegister:I,qwRecoveryPass:Y,PulseLoader:V["a"],MoonLoader:q["a"],MapBoxGL:ee,VueHead:ae.a,countdownTime:S},data:function(){return{stateCache:null,language:"",loader:!0,error:{msg:"",html:!1,buttons:[]},travel:null,isTimer:!1,txtTimer:"",loadminutes:0,loadseconds:0,messageLogin:!1,isMobilDevice:m["isMobile"],scene:{accessToken:"pk.eyJ1IjoibWNldHNpbmMiLCJhIjoiY2s2czVsM3hoMDN4ZzNsbzNyazBxMDA2cSJ9.pLXPfNY1WKAjdcSqaKbvCw",lng:-73.984495,lat:40.756027,zoom:13,pitch:20,bearing:0},msgTicketType:""}},script:[{type:"text/javascript",src:"https://www.googletagmanager.com/gtag/js?id=AW-10819213565",async:!0}],created:function(){var e=this;l.then((function(){e.stateCache="cleared",e.setResetOptions(null),e.restartShoppingCart(),e.restartTravels(),e.deleteCache(),window.location.href="/"})).catch((function(){e.stateCache="use cache"})),"lvs"==this.skin&&(!function(e,t,a,s,r,i,n){e.fbq||(r=e.fbq=function(){r.callMethod?r.callMethod.apply(r,arguments):r.queue.push(arguments)},e._fbq||(e._fbq=r),r.push=r,r.loaded=!0,r.version="2.0",r.queue=[],i=t.createElement(a),i.async=!0,i.src=s,n=t.getElementsByTagName(a)[0],n.parentNode.insertBefore(i,n))}(window,document,"script","https://connect.facebook.net/en_US/fbevents.js"),fbq("init","356447745619105"),fbq("track","PageView"),function(e,t,a,s,r,i,n){e.fbq||(r=e.fbq=function(){r.callMethod?r.callMethod.apply(r,arguments):r.queue.push(arguments)},e._fbq||(e._fbq=r),r.push=r,r.loaded=!0,r.version="2.0",r.queue=[],i=t.createElement(a),i.async=!0,i.src=s,n=t.getElementsByTagName(a)[0],n.parentNode.insertBefore(i,n))}(window,document,"script","https://connect.facebook.net/en_US/fbevents.js"),fbq("init","396601472172055"),fbq("track","PageView")),"orange"==this.skin&&(!function(e,t,a,s,r,i,n){e.fbq||(r=e.fbq=function(){r.callMethod?r.callMethod.apply(r,arguments):r.queue.push(arguments)},e._fbq||(e._fbq=r),r.push=r,r.loaded=!0,r.version="2.0",r.queue=[],i=t.createElement(a),i.async=!0,i.src=s,n=t.getElementsByTagName(a)[0],n.parentNode.insertBefore(i,n))}(window,document,"script","https://connect.facebook.net/en_US/fbevents.js"),fbq("init","429537632155592"),fbq("track","PageView"))},mounted:function(){var e=this;if("frequent"===this.$route.name&&null===this.user&&(this.$bvModal.show("login"),this.setUrlFrequent({TYPE:"urlFrequent",value:1})),"lvs"==this.skin){var t=document.createElement("script");t.async="async",t.setAttribute("async","async"),t.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=UA-182211776-2");var a=document.createElement("script");a.type="text/javascript";var s="\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', 'UA-182211776-2');\n ",r=document.createElement("noscript"),i='\n <img height="1" width="1" style="display:none"\n src="https://www.facebook.com/tr?id=356447745619105&ev=PageView&noscript=1"\n />\n ';try{a.appendChild(document.createTextNode(s)),r.appendChild(document.createTextNode(i)),document.head.appendChild(t),document.head.appendChild(a),document.head.appendChild(r)}catch(h){a.text=s,document.head.appendChild(t),document.head.appendChild(a)}}if("tnu"==this.skin){var n=document.createElement("script");n.async="async",n.setAttribute("async","async"),n.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=G-XXS4SWHPTR");var l=document.createElement("script");l.type="text/javascript";var o="\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', 'G-XXS4SWHPTR');\n ";try{l.appendChild(document.createTextNode(o)),document.head.appendChild(n),document.head.appendChild(l)}catch(h){l.text=o,document.head.appendChild(n),document.head.appendChild(l)}}if("orange"==this.skin){(function(){var e=document.createElement("script");e.setAttribute("data-account","c1nzVzOEGG"),e.setAttribute("src","https://cdn.userw
1ay.org/widget.js"),document.body.appendChild(e)})(),function(e,t,a,s,r){e[s]=e[s]||[],e[s].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var i=t.getElementsByTagName(a)[0],n=t.createElement(a),l="dataLayer"!=s?"&l="+s:"";n.async=!0,n.src="https://www.googletagmanager.com/gtm.js?id="+r+l,i.parentNode.insertBefore(n,i)}(window,document,"script","dataLayer","GTM-PLLFK8B");var c=document.createElement("script");c.async="async",c.setAttribute("async","async"),c.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=AW-10819213565"),document.head.appendChild(c);var d=document.createElement("script");d.type="text/javascript";var u="\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', 'AW-10819213565');\n ";d.appendChild(document.createTextNode(u)),document.head.appendChild(d);var p=document.createElement("script");p.async="async",p.setAttribute("async","async"),p.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=UA-213420507-1"),document.head.appendChild(p);var m=document.createElement("script");m.type="text/javascript";var v="\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);};\n gtag('js', new Date());\n gtag('config', 'UA-213420507-1', {\n 'linker': {\n 'domains': ['web.orangebuses.com']\n }\n });\n ";m.appendChild(document.createTextNode(v)),document.head.appendChild(m)}this.$eventBus.$on("languages",(function(t){e.$moment.locale(t.langs)})),this.$eventBus.$on("loadError",(function(t){e.error=t,e.$bvModal.show("bv-error-global")})),this.$eventBus.$on("loadItinerary",(function(t){e.travel=t,e.$bvModal.show("bv-itinerary")})),this.$eventBus.$on("timerCart",(function(t){if(0!=e.listoptions.WEB_EXPIRATION_TIME.value){var a=t.istimer,s=t.startDate,r=t.endDate;a?(e.isTimer=!0,e.setTimer({show:!0,minutes:e.listoptions.WEB_EXPIRATION_TIME.value,seconds:0,date:new Date,startDate:s,endDate:r})):(e.isTimer=!1,e.setTimer({show:!1,minutes:0,seconds:0,date:null,startDate:null,endDate:null}))}})),this.$eventBus.$on("message-login",(function(){e.messageLogin=!0,setTimeout((function(){e.messageLogin=!1}),4e3)})),this.$eventBus.$on("messageTicketType",(function(t){e.msgTicketType=t.message,e.$bvModal.show("bv-modal-message-type-ticket")})),this.initialTimerShoppingCart()},watch:{$route:function(){this.initialTimerShoppingCart()}},methods:re({customDateFormat:function(e){return"napaway"==this.skin?d()(e,"MM-DD-YYYY h:mm A").format("MM-DD-YYYY h:mm A"):e},initialTimerShoppingCart:function(){if(localStorage.getItem("expirationData")){var e=JSON.parse(localStorage.getItem("expirationData")),t=this.$moment(),a=this.$moment(e.endDate);t<a&&(this.isTimer=!0,this.setTimer({show:!0,minutes:this.listoptions.WEB_EXPIRATION_TIME.value,seconds:0,date:new Date,startDate:new Date(e.startDate),endDate:new Date(e.endDate)}))}else this.isTimer=!1,this.setTimer({show:!1,minutes:0,seconds:0,date:null,startDate:null,endDate:null})},countdownTimer:function(){var e=this,t=0,a=0;if(e.timers.show){var s=this.$moment(new Date),r=this.$moment(e.timers.date),i=this.$moment.duration(s.diff(r)),n=null==e.timers.date?0:i.minutes(),l=null==e.timers.date?0:i.seconds();0==n&&0==l&&(e.txtTimer=e.timers.minutes+":00");var o=60-l==60?0:1;t=e.timers.minutes-n-o,a=0==l?0:60-l;var c=this.$moment.duration({minutes:t,seconds:a}),d=new Date(0,0,0,2,10,30),u=1}var p=setInterval((function(){if(e.timers.show){d=new Date(d.getTime()+1e3*u),c=e.$moment.duration(c.asSeconds()-u,"seconds");var t=c.minutes(),a=c.seconds();if(a-=1,t<0)return clearInterval(p);t<10&&2!=t.length&&(t="0"+t),a<0&&0!=t?(t-=1,a=59):a<10&&2!=length.sec&&(a="0"+a),e.loadminutes=t,e.loadseconds=a,e.txtTimer=t+":"+a,0==t&&0==a&&(e.setTimer({show:!1,minutes:0,seconds:0,date:null}),e.isTimer=!1,clearInterval(p),e.$eventBus.$emit("loadError",e.$t("s_expiry_time")),setTimeout((function(){e.$router.push({path:"/"}),window.location.href=window.location.origin}),5e3))}else e.setTimer({show:!1,minutes:0,seconds:0,date:null}),clearInterval(p)}),1e3)},momenthour:function(e){return d()(e).format("h:mm a")},calculateTimeTravel:function(e,t){var a=d()(t,"YYY-MM-DD HH:mm:ss").diff(d()(e,"YYY-MM-DD HH:mm:ss"),"minutes"),s="";return a>=60?(s+="".concat(Math.floor(a/60),"h "),s+="".concat(a%60,"m")):s+="0h ".concat(a,"m"),s},dateFormatOne:function(e){return d()(e,"YYY-MM-DD HH:mm:ss").format("hh:mm a")},timeFormatCustom:function(e){if("napaway"==this.skin){var t=e.split(":");if(3==t.length)return"".concat(t[0],":").concat(t[1])}return e},actionButton:function(e){"eventBus"in e&&this.$eventBus.$emit(e.eventBus),this.$bvModal.hide("bv-error-global")}}
1,Object(v["b"])({checkCache:"cache/checkCache",deleteCache:"cache/deleteCache",setlistoptions:"options/setlistoptions",setskin:"options/setskin",setTimer:"options/setTime",setLang:"options/setLang",setResetOptions:"options/setResetOptions",setUrlFrequent:"auth/urlFrequent",restartShoppingCart:"cart/restartState",restartTravels:"travels/restartState"})),computed:re({},Object(v["c"])({loading:"options/loading",listoptions:"options/listoptions",skin:"options/skin",timers:"options/timer",lang:"options/lang",existCache:"cache/existCache",user:"auth/user",getUrlFrequent:"auth/urlFrequent"}),{showLoadingIcon:{get:function(){var e={},t=""==this.loading.class?"fa-route":this.loading.class;return e[t]=!0,e}}})},ne=ie,le=Object(y["a"])(ne,r,i,!1,null,null,null),oe=le.exports;s["default"].config.productionTip=!1,a("e9f8"),new s["default"]({i18n:R["a"],render:function(e){return e(oe)}}).$mount("#app")},"5aea":function(e,t,a){},"5ca9":function(e,t,a){"use strict";var s=a("673c"),r=a.n(s);r.a},6462:function(e,t,a){e.exports=a.p+"static/img/es.b01b3652.svg"},"673c":function(e,t,a){},6968:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"d-flex title-block justify-content-center",attrs:{id:"title-bar"}},[a("h1",{staticClass:"mt-4 text-select-your-travel-horizontal",attrs:{id:"title-h1"}},[e._v(e._s(e.title))])])},r=[],i={props:["title"]},n=i,l=a("2877"),o=Object(l["a"])(n,s,r,!1,null,null,null);t["a"]=o.exports},"6a97":function(e,t,a){e.exports=a.p+"static/img/autobus.3a235b78.svg"},"6d2c":function(e,t,a){},"6f25":function(e,t,a){e.exports=a.p+"static/img/seat-available.9dfd2f86.svg"},"6fc4":function(e,t,a){"use strict";var s=a("869d"),r=a.n(s);r.a},"74c0":function(e,t,a){e.exports=a.p+"static/img/user-women-mcets.d31629c3.svg"},"75e2":function(e,t,a){"use strict";var s=a("23c5"),r=a.n(s);r.a},7863:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAwFBMVEUAAACjp6uoqqymqaqmqKqmqKump6ulp6mfn6+nqaumqKunqKyfp6+mqKumqayoqKulqKufn5+lp6qmqKimp6qmp6ynqKmmqaqmqKunp6elpqymqKqkpqulpqqmp6ulqKumqKumqKulp6ump6ymqKurrbDT09XS09Wxs7W3ubve3t+xs7bd3t/NztCsrbC8vsC3uLvMztDY2NrHyMvHycrBw8XS1NXo6eq8vcDCw8XHyMrY2drj4+Xp6erj5OXX2NqV1dhbAAAAJHRSTlMAQG+v3+/PgBB/358gj1+PvxBgcKCvsM9wIJDecI/Ovv7ugK4lNc32AAABjUlEQVQ4y42Vi1aCQBCG1wtQqOU90SytkQUENTK7WPn+b9UsC8plFvrPARbOd+ZfZnZnGcuoVm80NQBNbxg1ptTVNTIXma02jXWgIAqta0DIvMlzHVDoNmvbBaX0XgrUoUTdf/jm3PtQoYHk2mYVqMlpDpP3lc0p2bF5O+EcvspFcr013n28eumABS4INn4MGgieZ8hznIPENpCghusFVCBwNOa7CIQaM9RgZOxJcMBGahBcG1xfguNU9YogvHg4x1CMTKaVgYCJsF+jnDP5gyHn4Zoqyt7fykEEvh1WADT2ngwj65DGPryt/JPIGvPtBBTm8s8420J3Ij3OF8E5x+h7Ao7ZRAHu1xnQECUkQQ4ZENuBBhteCTZx9WCxg50S/JZvLbFV8XkIC+v6h/PjLw/jPFpiiU/B9ouS03H4OSCGJJuJcxJxZclmltyG91ChcwOalnPzS6volnEP6SZV0nwe001K7b6Ys5z6TYpbToot1xoS4XqMkjVMRV0slk80Jo8PY6SL42P2XM8dH3+rSbMXGftcVwAAAABJRU5ErkJggg=="},"7b3d":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("qw-header"),a("router-view"),a("qw-footer")],1)},r=[],i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return null!=e.options?s("header",{staticClass:"header",attrs:{id:"header-main"}},[s("nav",{staticClass:"navbar navbar-main navbar-expand-lg navbar-sticky navbar-dark d-none d-lg-block",attrs:{id:"navbar-main"}},[s("div",{staticClass:"container"},[s("a",{staticClass:"navbar-brand",attrs:{href:"/"},on:{click:function(t){return e.home(t)}}},[s("img",{attrs:{alt:"logo-mcets",src:e.getSkin,id:"navbar-logo"}})]),s("qw-header-actions")],1)]),s("nav",{staticClass:"d-none navbar navbar-main navbar-expand-lg navbar-sticky navbar-dark d-block d-lg-none",attrs:{id:"navbar-main"}},[s("div",{staticClass:"container"},[s("a",{staticClass:"navbar-brand my-0",attrs:{href:"/"},on:{click:function(t){return e.home(t)}}},[s("img",{attrs:{alt:"logo-mcets",src:e.getSkin,id:"navbar-logo"}})]),s("div",[s("div",{staticClass:"bandera-mobile"},["en"==e.currentLocale?s("a",{attrs:{role:"button"},on:{click:function(t){return e.changeLocale("es")}}},[s("img",{staticClass:"mr-3",staticStyle:{width:"25px",border:"0.1rem solid white","border-radius":"50%"},attrs:{alt:"ES",src:a("b6b9")}})]):s("a",{attrs:{role:"button"},on:{click:function(t){return e.changeLocale("en")}}},[s("img",{staticClass:"mr-3",staticStyle:{width:"25px",border:"0.1rem solid white","border-radius":"50%"},attrs:{alt:"EN",src:a("ab2d")}})]),1==e.options.WEBSALE_FRECUENT_PASSENGER.value?[null!=e.user?s("a",{on:{click:function(t){return e.$router.push({name:"profile.main"})}}},[s("i",{staticClass:"text-white fa fa-user mr-1"})]):s("a",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"login",expression:"'login'"}],on:{click:function(e){return e.preventDefault()}}},[s("i",{staticClass:"text-white fa fa-user mr-1"})])]:e._e()],2)]),s("div",{attrs:{id:"menu-mobile"}}
1,[s("div",{staticClass:"text-center",on:{click:function(t){return e.setSidebarActive(!e.sidebarActiveMain)}}},[s("i",{staticClass:"far fa-bars icon-menu-mobile",class:{"fa-times":e.sidebarActiveMain}})]),s("div",{staticClass:"ocultar-menu",class:{showMenu:e.sidebarActiveMain},staticStyle:{"z-index":"1000"}},[s("div",{staticClass:"vs-sidebar--background",class:{open:e.sidebarActiveMain},on:{click:function(t){return e.setSidebarActive(!1)}}}),s("div",{staticClass:"vs-sidebar vs-sidebar-primary",class:{open:e.sidebarActiveMain}},[null!=e.user?s("header",{staticClass:"vs-sidebar--header"},[s("div",{staticClass:"header-sidebar mt-1"},[s("img",{attrs:{width:"65px",src:e.imgUser}}),s("h4",[e._v(e._s(e.user.completeName))]),s("p",{staticClass:"text-xs m-0 lh-100"},[e._v(e._s(e.user.pointsAvailable)+" pts. "+e._s(e.$t("Disponibles")))])])]):e._e(),s("div",{staticClass:"vs-sidebar--items"},[null!=e.user?s("div",{staticClass:"vs-sidebar--item"},[s("a",{on:{click:function(t){e.$router.push({name:"profile.main"}),e.setSidebarActive(!1)}}},[s("span",{staticClass:"w-100"},[s("i",{staticClass:"far fa-user mr-2",attrs:{"aria-hidden":"true"}}),e._v(e._s(e.$t("Ver mi perfil")))])])]):e._e(),1==e.options.WEBSALE_FRECUENT_PASSENGER.value?[null==e.user?s("div",{staticClass:"vs-sidebar--item",on:{click:function(t){return e.setSidebarActive(!1)}}},[s("a",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"register",expression:"'register'"}],attrs:{href:"#"},on:{click:function(e){return e.preventDefault()}}},[s("span",{staticClass:"w-100"},[s("i",{staticClass:"far fa-user-plus mr-2",attrs:{"aria-hidden":"true"}}),e._v(e._s(e.$t("Registrarse")))])])]):e._e()]:e._e(),s("div",{staticClass:"vs-sidebar--item"},[s("a",{on:{click:function(t){e.$router.push({name:"home"}),e.setSidebarActive(!1)}}},[s("span",{staticClass:"w-100"},[s("i",{staticClass:"far fa-search mr-2",attrs:{"aria-hidden":"true"}}),e._v(e._s(e.$t("Buscar viajes")))])])]),1==e.options.WEB_SALE_FRECUENT_PASSANGER_CANCEL_TICKET.value&&"redcoach"!=e.skin?s("div",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"modal_refund_mobile",expression:"'modal_refund_mobile'"}],staticClass:"vs-sidebar--item",on:{click:function(t){return e.setSidebarActive(!1)}}},[s("a",{on:{click:function(e){return e.preventDefault()}}},[s("span",{staticClass:"w-100"},[s("i",{staticClass:"far fa-ban mr-2",attrs:{"aria-hidden":"true"}}),e._v(e._s(e.$t("Anulación de Boleto")))])])]):e._e(),null!=e.user?s("div",{staticClass:"vs-sidebar-points mt-1 pt-3"},[s("div",{staticClass:"col-10 special-col puntos-disponibles text-sm py-1 mb-2 mx-auto text-white"},[s("div",{staticClass:"col-auto p-0"},[s("span",[e._v(e._s(e.$t("Puntos Disponibles")))])]),s("div",{staticClass:"col p-0 text-right"},[s("span",[e._v(e._s(e.user.pointsAvailable))])])]),s("div",{staticClass:"col-10 special-col puntos-usados text-sm py-1 mb-2 mx-auto text-white"},[s("div",{staticClass:"col-auto p-0"},[s("span",[e._v(e._s(e.$t("Puntos Usados")))])]),s("div",{staticClass:"col p-0 text-right"},[s("span",[e._v(e._s(e.user.pointsUsed))])])]),s("div",{staticClass:"col-10 special-col puntos-cancelados text-sm py-1 mb-2 mx-auto text-white"},[s("div",{staticClass:"col-auto p-0"},[s("span",[e._v(e._s(e.$t("Puntos Cancelados")))])]),s("div",{staticClass:"col p-0 text-right"},[s("span",[e._v(e._s(e.user.pointsCanceled))])])]),s("div",{staticClass:"align-items-center col-10 special-col puntos-cancelados text-sm py-1 mb-2 mx-auto text-white",on:{click:function(t){return e.updatePoints(e.user.idUser)}}},[s("i",{staticClass:"fas fa-redo-alt mr-1"}),e._v(" "+e._s(e.$t("Actualizar puntos"))+"\n ")])]):e._e()],2),null!=e.user?s("footer",{staticClass:"vs-sidebar--footer"},[s("div",{staticClass:"footer-sidebar"},[s("div",{staticClass:"vs-component vs-button vs-button-danger vs-button-flat",on:{click:e.logOutLocal}},[s("span",{staticClass:"vs-button--text"},[s("i",{staticClass:"far fa-sign-out mr-1",attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.$t("Cerrar Sesión")))])])])]):e._e()])]),s("b-modal",{attrs:{id:"modal_refund_mobile","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(e){e.hide;return[s("div",{staticClass:"modal-body"},[s("section-refund")],1)]}}],null,!1,3645993026)}
1)],1)])])]):e._e()},n=[],l=(a("8e6e"),a("ac6a"),a("456d"),a("c5f6"),a("7f7f"),a("bd86")),o=a("0c1a"),c=function(){var e=this,t=e.$createElement,a=e._self._c||t;return null!=this.options?a("ul",{staticClass:"navbar-nav ml-auto align-items-center"},["redcoach"==e.options.SKIN.value?a("li",{staticClass:"nav-item text-right nav-link contact-header"},[e._v(e._s(e.$t("Teléfono"))+": "),a("strong",[e._v(" "+e._s(e.options.INFO_CONTACT_COMPANY.value.phone)+" ")]),a("br"),a("span",{staticClass:"text-capitalize"},[e._v(e._s(e.$t("Email")))]),e._v(": "),a("strong",[e._v("[email protected]")])]):"napaway"==e.options.SKIN.value?a("li",{staticClass:"nav-item text-right nav-link contact-header"},[e._v(e._s(e.$t("Teléfono"))+": "),a("strong",[e._v(" "+e._s(e.options.INFO_CONTACT_COMPANY.value.phone)+" ")]),a("br"),a("span",{staticClass:"text-capitalize"},[e._v(e._s(e.$t("Email")))]),e._v(": "),a("strong",[e._v("[email protected]")])]):a("li",{staticClass:"nav-item text-right nav-link contact-header"},[e._v(e._s(e.$t("Teléfono"))+": "),a("strong",[e._v(" "+e._s(e.options.INFO_CONTACT_COMPANY.value.phone)+" ")]),a("br"),a("span",{staticClass:"text-capitalize"},[e._v(e._s(e.$t("Email")))]),e._v(": "),a("strong",[e._v(" "+e._s(e.options.INFO_CONTACT_COMPANY.value.email)+" ")])]),"PE"==e.options.PAIS_RESIDENTE.value?a("li",{staticClass:"nav-item"},[a("a",{staticClass:"nav-link",attrs:{href:"/#/tracking"}},[a("i",{staticClass:"far fa-box mr-3"}),e._v(e._s(e.$t("Rastreo de paquetes")))])]):e._e(),1==e.options.WEBSALE_FRECUENT_PASSENGER.value?[null===e.user?a("li",{staticClass:"nav-item"},[a("a",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"login",expression:"'login'"}],staticClass:"nav-link",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.setUrlFrequentGlobal(t)}}},[a("i",{staticClass:"far fa-user"}),e._v(e._s(e.$t("Inicio de sesión"))+"\n ")])]):a("li",{staticClass:"nav-item dropdown dropdown-animate",attrs:{"data-toggle":"hover"}},[a("a",{staticClass:"nav-link dropdown-toggle d-flex align-items-center py-2",attrs:{href:"#",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},on:{click:function(e){return e.preventDefault()}}},[a("i",{staticClass:"far fa-user mr-3"}),a("div",{staticClass:"lh-100"},[e._v(e._s(e.user.completeName)),a("br"),a("span",{staticClass:"font-weight-300 text-sm"},[e._v(e._s(e.user.pointsAvailable)+" "+e._s(e.$t("Puntos")))])])]),a("div",{staticClass:"dropdown-menu dropdown-menu-lg p-0 mt-1"},[a("div",{staticClass:"row row-grid no-gutters"},[a("div",{staticClass:"col-12 col-lg-7 delimiter"},[a("div",{staticClass:"dropdown-body"},[a("div",{staticClass:"row align-items-center"},[a("div",{staticClass:"col-auto"},[a("span",{staticClass:"dropdown-item"},[e._v(e._s(e.$t("Puntos Disponibles")))]),a("span",{staticClass:"dropdown-item"},[e._v(e._s(e.$t("Puntos Usados")))]),a("span",{staticClass:"dropdown-item"},[e._v(e._s(e.$t("Puntos Cancelados")))])]),a("div",{staticClass:"col text-right"},[a("span",{staticClass:"dropdown-item"},[e._v(e._s(e.user.pointsAvailable))]),a("span",{staticClass:"dropdown-item"},[e._v(e._s(e.user.pointsUsed))]),a("span",{staticClass:"dropdown-item"},[e._v(e._s(e.user.pointsCanceled))])]),a("div",{staticClass:"col-auto updatepoint",on:{click:function(t){return e.updatePoints(e.user.idUser)}}},[a("i",{staticClass:"fas fa-redo-alt"}),e._v(" "+e._s(e.$t("Actualizar puntos")))]),a("span",{staticClass:"dropdown-item font-weight-600 mt-5"},[e._v(e._s(e.$t("Código"))+" "+e._s(e.user.code))])])])]),a("div",{staticClass:"col-12 col-lg-5"},[a("div",{staticClass:"dropdown-body"},[a("div",{staticClass:"row no-gutters"},[a("div",{staticClass:"col-12"},[a("router-link",{staticClass:"dropdown-item",attrs:{"exact-active-class":"active-menu",to:{name:"profile.main"}}},[a("span",{staticClass:"icon-list"},[a("i",{staticClass:"far fa-user"})]),a("span",{staticClass:"text-list"},[e._v(e._s(e.$t("Ver mi perfil")))])]),a("router-link",{staticClass:"dropdown-item",attrs:{"active-class":"active-menu",to:{name:"profile.travels"}}},[a("span",{staticClass:"icon-list"},[a("i",{staticClass:"far fa-clipboard-list"})]),a("span",{staticClass:"text-list"},[e._v(e._s(e.$t("Lista de Viajes")))])]),a("router-link",{staticClass:"dropdown-item",attrs:{"active-class":"active-menu",to:{name:"profile.vouchers"}}},[a("span",{staticClass:"icon-list"},[a("i",{staticClass:"far fa-ticket"})]),a("span",{staticClass:"text-list"},[e._v(e._s(e.$t("Vales")))])]),a("router-link",{staticClass:"dropdown-item",attrs:{"active-class":"active-menu",to:{name:"home"}}},[a("a",{staticClass:"dropdown-item dropdown-logout font-weight-600 mt-5",attrs:{href:"#"},on:{click:e.logOutLocal}},[a("span",{staticClass:"icon-list"},[a("i",{staticClass:"far fa-sign-out font-weight-800"})]),a("span",{staticClass:"text-list"}
1,[e._v(e._s(e.$t("Cerrar Sesión")))])])])],1)])])])])])])]:e._e(),a("li",{staticClass:"nav-item dropdown dropdown-animate",attrs:{"data-toggle":"hover"}},[a("a",{staticClass:"nav-link dropdown-toggle",staticStyle:{cursor:"pointer"},attrs:{role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e._v(e._s(e.$t("Lenguaje")))]),a("div",{staticClass:"dropdown-menu ml-lg-n1 ml-n5 p-0"},[a("div",{staticClass:"list-group list-group-flush"},[a("a",{staticClass:"list-group-item list-group-item-action border-bottom",attrs:{href:"#",role:"button"},on:{click:function(t){return e.changeLocale("en",t)}}},[a("div",{staticClass:"media d-flex align-items-center"},[e._m(0),a("div",{staticClass:"media-body ml-3"},[a("h6",{staticClass:"mb-0"},[e._v(e._s(e.$t("Inglés")))])])])]),a("a",{staticClass:"list-group-item list-group-item-action",attrs:{href:"#",role:"button"},on:{click:function(t){return e.changeLocale("es",t)}}},[a("div",{staticClass:"media d-flex align-items-center"},[e._m(1),a("div",{staticClass:"media-body ml-3"},[a("h6",{staticClass:"mb-0"},[e._v(e._s(e.$t("Español")))])])])])])])]),1==e.options.WEB_SALE_FRECUENT_PASSANGER_CANCEL_TICKET.value&&"redcoach"!=e.skin?a("li",{staticClass:"nav-item dropdown dropdown-animate m-0",attrs:{"data-toggle":"hover"}},[a("a",{staticClass:"nav-link px-0",attrs:{href:"#",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},on:{click:function(e){return e.preventDefault()}}},[a("i",{staticClass:"far fa-ellipsis-v px-1 cursor-pointer m-0"})]),a("div",{staticClass:"dropdown-menu p-0 ml-n6"},[a("div",{staticClass:"list-group list-group-flush"},[a("section-refund")],1)])]):e._e()],2):e._e()},d=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("figure",{staticStyle:{width:"50px"}},[s("img",{staticClass:"img-fluid",staticStyle:{width:"40px"},attrs:{alt:"Image placeholder",src:a("5670")}})])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("figure",{staticStyle:{width:"50px"}},[s("img",{staticClass:"img-fluid",staticStyle:{width:"40px"},attrs:{alt:"Image placeholder",src:a("6462")}})])}],u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"text-center list-group-item border-bottom"},[a("h6",{staticClass:"mb-0"},[e._v(e._s(e.$t("Anulación de Boleto")))])]),a("div",{staticClass:"list-group-item"},[a("div",{staticClass:"form-group"},[1==e.options.PAGO_AUTHORIZE.value?[a("label",{staticClass:"lh-120 mb-3"},[e._v(e._s(e.$t("Ingrese código de transacción authorize"))+":")])]:1==e.options.PAGO_PAYPAL.value?[a("label",{staticClass:"lh-120 mb-3"},[e._v(e._s(e.$t("Ingrese código de transacción paypal"))+":")])]:1==e.options.PAGO_CULQI.value?[a("label",{staticClass:"lh-120 mb-3"},[e._v(e._s(e.$t("Ingrese código de transacción culqi"))+":")])]:1==e.options.PAGO_PAYU.value?[a("label",{staticClass:"lh-120 mb-3"},[e._v(e._s(e.$t("Ingrese código de transacción payu"))+":")])]:1==e.options.PAGO_BRAINTREE.value?[a("label",{staticClass:"lh-120 mb-3"},[e._v(e._s(e.$t("Ingrese código de transacción braintree"))+":")])]:1==e.options.PAGO_GLICPAY.value?[a("label",{staticClass:"lh-120 mb-3"},[e._v(e._s(e.$t("Ingrese código de transacción glicpay"))+":")])]:e._e(),1==e.options.PAGO_AUTHORIZE.value?a("input",{directives:[{name:"model",rawName:"v-model",value:e.codetransaction,expression:"codetransaction"}],staticClass:"form-control input-mask refund-input",attrs:{type:"text",placeholder:"1234 5678 123"},domProps:{value:e.codetransaction},on:{input:function(t){t.target.composing||(e.codetransaction=t.target.value)}}}):1==e.options.PAGO_PAYPAL.value?a("input",{directives:[{name:"model",rawName:"v-model",value:e.codetransaction,expression:"codetransaction"}],staticClass:"form-control input-mask refund-input",attrs:{type:"text",placeholder:"VLCA 8A27 4A4E"},domProps:{value:e.codetransaction},on:{input:function(t){t.target.composing||(e.codetransaction=t.target.value)}}}):1==e.options.PAGO_CULQI.value?a("input",{directives:[{name:"model",rawName:"v-model",value:e.codetransaction,expression:"codetransaction"}],staticClass:"form-control input-mask refund-input",attrs:{type:"text",placeholder:"chr_live_XhXDYRRDmNCTdYIn"},domProps:{value:e.codetransaction},on:{input:function(t){t.target.composing||(e.codetransaction=t.target.value)}}}):1==e.options.PAGO_PAYU.value||1==e.options.PAGO_BRAINTREE.value?a("input",{directives:[{name:"model",rawName:"v-model",value:e.codetransaction,expression:"codetransaction"}],staticClass:"form-control input-mask refund-input",attrs:{type:"text",placeholder:"XXXXXXXXXXXX"},domProps:{value:e.codetransaction},on:{input:function(t){t.target.composing||(e.codetransaction=t.target.value)}}}):1==e.options.PAGO_GLICPAY.value?a("input",{directives:[{name:"model",rawName:"v-model",value:e.codetransaction,expression:"codetransaction"}],staticClass:"form-control input-mask refund-input",attrs:{type:"text",placeholder:"1000000001234321"},domProps:{value:e.codetransaction},on:{input:function(t){t.target.composing||(e.codetransaction=t.target.value)}}}
1):e._e(),e.hasError("codetransaction")?a("span",{staticClass:"mt-1 error-label-input"},[e._v(e._s(e.getError("codetransaction")))]):e._e(),a("button",{staticClass:"btn btn-danger mt-3 w-100 text-sm",on:{click:function(t){return e.processRefund()}}},[e._v(e._s(e.$t("Procesar Anulación")))]),e.isprocesstrans?a("p",{staticClass:"mt-2 lh-120"},[e._v(e._s(e.$t("Recibirá un correo electrónico de confirmación para completar el proceso de reembolso.")))]):e._e(),e.isprocesstrans?a("p",{staticClass:"mt-2 lh-120"},[e._v(e._s(e.$t("Haga clic en el enlace del correo electrónico para completar el proceso.")))]):e._e()],2)])])},p=[],m=(a("7514"),a("2f62")),v=a("0e0b");function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function f(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?h(Object(a),!0).forEach((function(t){Object(l["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):h(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var _={data:function(){return{codetransaction:"",isprocesstrans:!1,errors:[]}},created:function(){this.isprocesstrans=!1},methods:f({hasError:function(e){return!!this.errors.find((function(t){return t.field===e}))},getError:function(e){return this.errors.find((function(t){return t.field===e})).message},processRefund:function(){var e=this,t=[];if(this.errors=[],(""==this.codetransaction||this.codetransaction.length<3)&&t.push({field:"codetransaction",message:this.$t("El código de transacción es requerido")+"."}),t.length>0)this.errors=t;else{var a={headers:{"Content-Type":"application/x-www-form-urlencoded"}},s={CODE:this.codetransaction,LANG:this.optLang+"-quatrobus"};this.setLoading({state:!0,msg:this.$t("Procesando Reembolso"),class:"fa-retweet"}),this.$http.post("refund/request",s,a).then((function(t){setTimeout((function(){e.codetransaction="",e.isprocesstrans=!0,e.setLoading({state:!1,msg:"",class:"fa-retweet"})}),2500)})).catch((function(t){e.$eventBus.$emit("loadError",Object(v["b"])(t)),e.setLoading({state:!1,msg:"",class:"fa-retweet"})}))}}},Object(m["b"])({logOut:"auth/logOut",setLoading:"options/setLoading"})),computed:f({},Object(m["c"])({options:"options/listoptions",user:"auth/user",optLang:"options/lang"}))},g=_,b=(a("a260"),a("2877")),C=Object(b["a"])(g,u,p,!1,null,"69641276",null),w=C.exports;function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function E(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?y(Object(a),!0).forEach((function(t){Object(l["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):y(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var S,A={components:{sectionRefund:w},data:function(){return{codetransaction:"",isprocesstrans:!1}},created:function(){this.isprocesstrans=!1},methods:E({setUrlFrequentGlobal:function(){this.setUrlFrequent({TYPE:"",value:0})},goRoute:function(e){this.$router.currentRoute.name!==e&&this.$router.push({name:e})},changeLocale:function(e,t){t.preventDefault(),o["a"].locale=e,this.setLang(e),this.$moment.locale(e),this.$eventBus.$emit("languages",{langs:e}),this.$eventBus.$emit("load-terms")},logOutLocal:function(){this.logOut()},updatePoints:function(e){var t=this;if(null!=this.user&&this.options.SALES_PAYMENT_POINTS.value){var a={user_id:this.user.idUser};this.$http.post("user/getPointUser",a).then((function(e){e=e.data.data;var a=JSON.parse(JSON.stringify(t.user));a.pointsTotal=e[0].pointsTotal,a.pointsAvailable=e[0].pointsAvailable,a.pointsUsed=e[0].pointsUsed,a.pointsCanceled=e[0].pointsCanceled,t.setAuth({USER:a})})).catch((function(e){t.$eventBus.$emit("loadError",Object(v["b"])(e))}))}}},Object(m["b"])({logOut:"auth/logOut",setLoading:"options/setLoading",setLang:"options/setLang",setAuth:"auth/setAuth",setUrlFrequent:"auth/urlFrequent"})),computed:E({},Object(m["c"])({options:"options/listoptions",user:"auth/user",skin:"options/skin"}))},T=A,O=Object(b["a"])(T,c,d,!1,null,null,null),R=O.exports;function x(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function D(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?x(Object(a),!0).forEach((function(t){Object(l["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):x(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var P={components:{qwHeaderActions:R,sectionRefund:w},data:function(){return{currentLocale:o["a"].locale}},computed:D((S={imgUser:function(){if(null!=this.user){var e="F"===this.user.sex?"women":"men";return a("e1f3")("./user-".concat(e,".svg"))}},sidebarActiveMain:{get:function(){return this.sidebarActive},set:function(){this.setSidebarActive(!this.sidebarActive)}}},Object(l["a"])(S,"imgUser",(function(){return a("39ef")})),Object(l["a"])(S,"getSkin",(function(){return"mcets"==this.skin?a("8dce"):this.options.URL_MINI_LOGO.value})),S),Object(m["c"])({sidebarActive:"options/sidebarActive",user:"auth/user",options:"options/listoptions",skin:"options/skin"})),methods:D({home:function(e){e.preventDefault(),this.$router.push({name:"home"}).catch((function(e){e.name})),"napaway"===this.skin&&(this.setTravel({DATE_RETURN:null}),this.setTravel({TYPE_WAY:Number(0)})),this.$eventBus.$emit("loadStepOne")},logOutLocal:function(){this.logOut(),window.location.href=window.location.origin}},Object(m["b"])({setSidebarActive:"options/setSidebarActive",logOut:"auth/logOut",setLang:"options/setLang",setUrlFrequent:"auth/urlFrequent",setTravel:"search/setTravel"}),{changeLocale:function(e){o["a"].locale=e,this.currentLocale=e,this.setLang(e),this.$eventBus.$emit("languages",{langs:e})}},Object(m["b"])({setAuth:"auth/setAuth"}),{updatePoints:function(e){var t=this;if(null!=this.user&&this.options.SALES_PAYMENT_POINTS.value){var a={user_id:this.user.idUser};this.$http.post("user/getPointUser",a).then((function(e){e=e.data.data;var a=JSON.parse(JSON.stringify(t.user));a.pointsTotal=e[0].pointsTotal,a.pointsAvailable=e[0].pointsAvailable,a.pointsUsed=e[0].pointsUsed,a.pointsCanceled=e[0].pointsCanceled,t.setAuth({USER:a})})).catch((function(e){}))}}}),watch:{sidebarActive:function(e){e?(document.body.classList.add("overflow-hidden"),scroll(0,0)):document.body.classList.remove("overflow-hidden")}}},L=P,k=Object(b["a"])(L,i,n,!1,null,null,null),I=k.exports,N=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("footer",{attrs:{id:"footer-main"}},[a("div",{staticClass:"footer"},[a("div",{staticClass:"container"},[a("div",{staticClass:"row align-items-center justify-content-md-between py-3 mx-0",class:{"mt-5":e.withMargin}},[a("div",{staticClass:"w-60"},[a("div",{staticClass:"copyright lh-130 text-sm font-weight-bold text-md-left"},[e._v("\n Copyright © 2010 - "+e._s(e.currentYear())+" MCETS INC (MotorCoach eTicket Solutions)"),a("br"),e._v("\n Quatrobus 4.0 - "+e._s(e.$t("Desarrollado por"))+" "),a("a",{staticClass:"font-weight-bold",attrs:{href:"http://mcets-inc.com",target:"_blank"}},[e._v("MCeTS Inc.")])])]),e._m(0)])])])])},$=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"w-40"},[s("a",{staticClass:"desarrollado-por-mcets",attrs:{target:"_blank",href:"http://www.mcets-inc.com"}},[s("img",{staticClass:"footer-logo",attrs:{alt:"Desarrollado por MCeTS",src:a("c9ac")}})])])}],j={data:function(){return{withMargin:!0}},created:function(){"profile"!==this.$route.name&&"confirmRegister"!==this.$route.name&&"resetPassword"!==this.$route.name||(this.withMargin=!1)},methods:{currentYear:function(){return(new Date).getFullYear()}}},M=j,U=Object(b["a"])(M,N,$,!1,null,null,null),F=U.exports,B={components:{qwHeader:I,qwFooter:F},computed:{},methods:{home:function(){this.$router.push({name:"home"})}}},Y=B,V=Object(b["a"])(Y,s,r,!1,null,null,null);t["default"]=V.exports},"7cf3":function(e,t,a){"use strict";var s=a("ade9"),r=a.n(s);r.a},"7d03":function(e){e.exports=JSON.parse('[{"value":"AL","label":"AL"},{"value":"AR","label":"AR"},{"value":"AZ","label":"AZ"},{"value":"CA","label":"CA"},{"value":"CO","label":"CO"},{"value":"CT","label":"CT"},{"value":"DC","label":"DC"},{"value":"DE","label":"DE"},{"value":"FL","label":"FL"},{"value":"GA","label":"GA"},{"value":"HI","label":"HI"},{"value":"IA","label":"IA"},{"value":"ID","label":"ID"},{"value":"IN","label":"IN"},{"value":"KS","label":"KS"},{"value":"KY","label":"KY"},{"value":"LA","label":"LA"},{"value":"MA","label":"MA"},{"value":"MD","label":"MD"},{"value":"ME","label":"ME"},{"value":"MI","label":"MI"},{"value":"MN","label":"MN"},{"value":"MO","label":"MO"},{"value":"MS","label":"MS"},{"value":"MT","label":"MT"},{"value":"NC","label":"NC"},{"value":"ND","label":"ND"},{"value":"NE","label":"NE"},{"value":"NH","label":"NH"},{"value":"NJ","label":"NJ"},{"value":"NM","label":"NM"},{"value":"NV","label":"NV"},{"value":"NY","label":"NY"},{"value":"OH","label":"OH"},{"value":"OK","label":"OK"},{"value":"OR","label":"OR"},{"value":"PA","label":"PA"},{"value":"RI","label":"RI"},{"value":"SC","label":"SC"},{"value":"SD","label":"SD"},{"value":"TN","label":"TN"},{"value":"TX","label":"TX"},{"value":"UT","label":"UT"},{"value":"VA","label":"VA"},{"value":"VT","label":"VT"},{"value":"WA","label":"WA"},{"value":"WI","label":"WI"},{"value":"WV","label":"WV"},{"value":"WY","label":"WY"},{"value":"AA","label":"AA"},{"value":"AE","label":"AE"},{"value":"AP","label":"AP"},{"value":"AS","label":"AS"},{"value":"FM","label":"FM"},{"value":"GU","label":"GU"},{"value":"MH","label":"MH"},{"value":"MP","label":"MP"},{"value":"PR","label":"PR"},{"value":"PW","label":"PW"},{"value":"VI","label":"VI"}]')}
1,"869d":function(e,t,a){},"877a":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"pb-0 slice slice-xl",staticStyle:{"min-height":"calc(100vh - 88px - 87px)"}},[a("div",{staticClass:"container align-items-center text-center text-lg-left"},[a("div",{staticClass:"row"},[e.finishAction?[e._m(0),a("h1",{staticClass:"text-titular text-center mb-1 w-100 animated fadeIn show"},[e._v(e._s(e.$t("Cambio de contraseña exitoso")))]),a("p",{staticClass:"text-center countdown"},[e._v(e._s(e.$t("Se cambió la contraseña con éxito, será redireccionado a la página principal en"))+" "),a("span",{staticClass:"font-weight-800"},[e._v(e._s(e.count))])])]:[e.isResetable?a("div",{staticClass:"col-lg-12 center"},[a("h1",{staticClass:"text-select-your-travel-horizontal text-center mb-4 w-100 animated fadeIn show"},[e._v(e._s(e.$t("Cambia tu contraseña")))]),a("form",{staticClass:"col-5 p-0 center",on:{submit:function(t){return t.preventDefault(),e.changePassword(t)}}},[a("div",{staticClass:"form-field form-field__control mb-4 overflow-visible",class:{"is-invalid":e.errors.password.length>0}},["checkbox"===(e.isVisibleNewPass?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"form-field__input",attrs:{id:"login-password",value:"",onkeyup:"this.setAttribute('value', this.value);",type:"checkbox"},domProps:{checked:Array.isArray(e.password)?e._i(e.password,"")>-1:e.password},on:{change:function(t){var a=e.password,s=t.target,r=!!s.checked;if(Array.isArray(a)){var i="",n=e._i(a,i);s.checked?n<0&&(e.password=a.concat([i])):n>-1&&(e.password=a.slice(0,n).concat(a.slice(n+1)))}else e.password=r}}}):"radio"===(e.isVisibleNewPass?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"form-field__input",attrs:{id:"login-password",value:"",onkeyup:"this.setAttribute('value', this.value);",type:"radio"},domProps:{checked:e._q(e.password,"")},on:{change:function(t){e.password=""}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"form-field__input",attrs:{id:"login-password",value:"",onkeyup:"this.setAttribute('value', this.value);",type:e.isVisibleNewPass?"text":"password"},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}}),a("label",{staticClass:"form-field__label",attrs:{for:"login-password"}},[e._v("Contraseña")]),a("span",{class:[e.isVisibleNewPass?"show-password":"hidden-password"],on:{click:function(t){e.isVisibleNewPass=!e.isVisibleNewPass}}}),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.password.length>0,expression:"errors.password.length > 0"}],staticClass:"text-error"},[e._v(e._s(e.errors.password[0]))])]),a("div",{staticClass:"form-field form-field__control mb-4 overflow-visible",class:{"is-invalid":e.errors.passwordConfirm.length>0}},["checkbox"===(e.isVisibleNewPassSame?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.passwordConfirm,expression:"passwordConfirm"}],staticClass:"form-field__input",attrs:{id:"login-password-repeat",value:"",onkeyup:"this.setAttribute('value', this.value);",type:"checkbox"},domProps:{checked:Array.isArray(e.passwordConfirm)?e._i(e.passwordConfirm,"")>-1:e.passwordConfirm},on:{change:function(t){var a=e.passwordConfirm,s=t.target,r=!!s.checked;if(Array.isArray(a)){var i="",n=e._i(a,i);s.checked?n<0&&(e.passwordConfirm=a.concat([i])):n>-1&&(e.passwordConfirm=a.slice(0,n).concat(a.slice(n+1)))}else e.passwordConfirm=r}}}):"radio"===(e.isVisibleNewPassSame?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.passwordConfirm,expression:"passwordConfirm"}],staticClass:"form-field__input",attrs:{id:"login-password-repeat",value:"",onkeyup:"this.setAttribute('value', this.value);",type:"radio"},domProps:{checked:e._q(e.passwordConfirm,"")},on:{change:function(t){e.passwordConfirm=""}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.passwordConfirm,expression:"passwordConfirm"}],staticClass:"form-field__input",attrs:{id:"login-password-repeat",value:"",onkeyup:"this.setAttribute('value', this.value);",type:e.isVisibleNewPassSame?"text":"password"},domProps:{value:e.passwordConfirm},on:{input:function(t){t.target.composing||(e.passwordConfirm=t.target.value)}}}),a("label",{staticClass:"form-field__label",attrs:{for:"login-password-repeat"}},[e._v(e._s(e.$t("Repetir Contraseña")))]),a("span",{class:[e.isVisibleNewPassSame?"show-password":"hidden-password"],on:{click:function(t){e.isVisibleNewPassSame=!e.isVisibleNewPassSame}}}),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.passwordConfirm.length>0,expression:"errors.passwordConfirm.length > 0"}],staticClass:"text-error"},[e._v(e._s(e.errors.passwordConfirm[0]))])]),e.loadAction?a("button",{staticClass:"btn-primary w-100 ver-detalles pt-1 mt-2",attrs:{type:"submit",disabled:""}},[e._m(1)]):a("button",{staticClass:"btn-primary w-100 ver-detalles pt-1 mt-2",attrs:{type:"submit"}},[e._v(e._s(e.$t("Cambiar Contraseña")))])])]):[a("div",{staticClass:"warning-circle mb-3 position-relative"},[a("svg",{staticClass:"circular yellow-stroke"},[a("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"50",fill:"none","stroke-width":"5","stroke-miterlimit":"10"}})]),a("svg",{staticClass:"alert-sign yellow-stroke"},[a("g",{attrs:{transform:"matrix(1,0,0,1,-615.516,-257.346)"}},[a("g",{attrs:{transform:"matrix(0.56541,-0.56541,0.56541,0.56541,93.7153,495.69)"}},[a("path",{staticClass:"line",attrs:{d:"M634.087,300.805L673.361,261.53",fill:"none"}})]),a("g",{attrs:{transform:"matrix(2.27612,-2.46519e-32,0,2.27612,-792.339,-404.147)"}},[a("circle",{staticClass:"dot",attrs:{cx:"621.52",cy:"316.126",r:"1.318"}})])])])]),a("h1",{staticClass:"text-titular text-center mb-1 w-100 animated fadeIn show"},[e._v(e._s(e.$t("Ocurrió un error")))]),a("p",{staticClass:"text-center countdown"},[e._v(e._s(e.$t("No se pudo cambiar la contraseña, será redireccionado a la página principal en"))+" "),a("span",{staticClass:"font-weight-800"},[e._v(e._s(e.count))])])]]],2)])])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"success-checkmark"},[a("div",{staticClass:"check-icon"},[a("span",{staticClass:"icon-line line-tip"}),a("span",{staticClass:"icon-line line-long"}),a("div",{staticClass:"icon-circle"}),a("div",{staticClass:"icon-fix"})])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"spinner-border text-light",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[e._v("Loading...")])])}],i=(a("8e6e"),a("ac6a"),a("456d"),a("20d6"),a("bd86")),n=a("2f62");function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?l(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var c={data:function(){return{lang:"",idPerson:null,isResetable:!1,password:"",passwordConfirm:"",passwordValidate:!1,loadAction:!1,finishAction:!1,isVisibleNewPass:!1,isVisibleNewPassSame:!1,count:6,errors:{password:[],passwordConfirm:[]}}},created:function(){var e=this;this.lang=this.$route.query.lang,this.idPerson=this.$route.query.idPerson,this.setLoading({state:!0,msg:this.$t("Verificando"),class:"fa-unlock"}),this.$http({method:"POST",url:"user/resetPassword",data:{ukey:this.$route.query.ukey}}).then((function(t){e.isResetable=!0,e.setLoading({state:!1,msg:"",class:"fa-unlock"})})).catch((function(t){"422"==t.response.data.code?(e.isResetable=!1,e.countdown()):(e.$eventBus.$emit("loadError",t.response.data),e.isResetable=!1,e.countdown()),e.setLoading({state:!1,msg:"",class:"fa-unlock"})}))},methods:o({changePassword:function(){var e=this;this.loadAction=!0,this.$http({method:"POST",url:"user/updatePassword",data:{ID_USER:this.idPerson,NEW_PASS:this.password,NEW_PASS_SAME:this.passwordConfirm}}).then((function(t){e.loadAction=!1,e.finishAction=!0,e.countdown(),e.getUserById(e.idPerson)})).catch((function(t){if("404"==t.response.data.code&&(e.$eventBus.$emit("loadError",t.response.data.details),e.loadAction=!1),"422"==t.response.data.code){var a=t.response.data.details,s=a.findIndex((function(e){return"NEW_PASS"==e.field})),r=a.findIndex((function(e){return"NEW_PASS_SAME"==e.field}));e.errors.password=-1!=s?a[s].messages:[],e.errors.passwordConfirm=-1!=r?a[r].messages:[],e.loadAction=!1}e.loadAction=!1}))},getUserById:function(e){var t=this;this.$http({method:"POST",url:"user/getUserById",data:{ID_USER:e}}).then((function(e){t.setAuth({USER:e.data.data})})).catch((function(e){t.$eventBus.$emit("loadError",t.$t("No se pudo iniciar Sesión"))}))},countdown:function(){var e=this;1==this.count?this.$router.push({name:"profile.main"}):(this.count--,setTimeout((function(){e.countdown()}),1e3))}},Object(n["b"])({setLoading:"options/setLoading",setAuth:"auth/setAuth"})),watch:{password:function(){var e=this;""!=this.password&&this.$http({method:"POST",url:"user/getValidateCurrentpass",data:{CURRENT_PASS:this.password}}).then((function(t){e.errors.password=[],e.passwordValidate=!0})).catch((function(t){"422"==t.response.data.code?(e.errors.password.unshift(t.response.data.details[0].messages[0]),e.passwordValidate=!1):e.loadError(t.response.data.details)}))}}},d=c,u=a("2877"),p=Object(u["a"])(d,s,r,!1,null,null,null);t["default"]=p.exports},"89e0":function(e,t,a){"use strict";var s=a("cdf1"),r=a.n(s);r.a},"8b16":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("b-modal",{ref:"login-ref",attrs:{"no-close-on-backdrop":"1"==e.getUrlFrequent,"no-close-on-esc":"1"==e.getUrlFrequent,id:"login","hide-footer":"","hide-header":"",centered:""},on:{shown:e.actionsShown},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",["0"==e.getUrlFrequent?a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]):e._e(),a("form",{staticClass:"pt-1 pb-3",on:{submit:function(t){return t.preventDefault(),e.login(t)}}},[a("h5",{staticClass:"modal-title pb-4 text-center",attrs:{id:"exampleModalLabel"}},[e._v(e._s(e.$t("Inicio de sesión")))]),a("div",{staticClass:"col-sm-12 p-0"},[a("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.username.length>0}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.username,expression:"user.username"}],staticClass:"form-field__input",attrs:{id:"login-username",name:"username",type:"text",value:"",onkeyup:"this.setAttribute('value', this.value);",autocomplete:"off"},domProps:{value:e.user.username},on:{input:function(t){t.target.composing||e.$set(e.user,"username",t.target.value)}}}),a("label",{ref:"loginUsername",staticClass:"form-field__label",attrs:{for:"login-username"}},[e._v(e._s(e.$t("Usuario")))])]),a("span",{directives:[{name:"show",rawName:"v-show",value:e.errors.username.length>0,expression:"errors.username.length > 0"}],staticClass:"text-error2"},[a("i",{staticClass:"fas fa-exclamation-circle"})])]),a("div",{staticClass:"col-sm-12 p-0"},[a("div",{staticClass:"form-field form-field__control",class:{"
1is-invalid":e.errors.password.length>0}},["checkbox"===(e.isVisible?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.password,expression:"user.password"}],staticClass:"form-field__input",class:{"is-invalid":e.errors.password.length>0},attrs:{id:"login-password",name:"password",value:"",onkeyup:"this.setAttribute('value', this.value);",autocomplete:"off",type:"checkbox"},domProps:{checked:Array.isArray(e.user.password)?e._i(e.user.password,"")>-1:e.user.password},on:{change:function(t){var a=e.user.password,s=t.target,r=!!s.checked;if(Array.isArray(a)){var i="",n=e._i(a,i);s.checked?n<0&&e.$set(e.user,"password",a.concat([i])):n>-1&&e.$set(e.user,"password",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.user,"password",r)}}}):"radio"===(e.isVisible?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.password,expression:"user.password"}],staticClass:"form-field__input",class:{"is-invalid":e.errors.password.length>0},attrs:{id:"login-password",name:"password",value:"",onkeyup:"this.setAttribute('value', this.value);",autocomplete:"off",type:"radio"},domProps:{checked:e._q(e.user.password,"")},on:{change:function(t){return e.$set(e.user,"password","")}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.password,expression:"user.password"}],staticClass:"form-field__input",class:{"is-invalid":e.errors.password.length>0},attrs:{id:"login-password",name:"password",value:"",onkeyup:"this.setAttribute('value', this.value);",autocomplete:"off",type:e.isVisible?"text":"password"},domProps:{value:e.user.password},on:{input:function(t){t.target.composing||e.$set(e.user,"password",t.target.value)}}}),a("label",{staticClass:"form-field__label",attrs:{for:"login-password"}},[e._v(e._s(e.$t("Contraseña")))])]),a("span",{class:[e.isVisible?"show-password":"hidden-password"],on:{click:function(t){e.isVisible=!e.isVisible}}}),e.errors.password.length>0?a("span",{staticClass:"text-error2"},[a("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]),a("button",{staticClass:"btn-primary w-100 ver-detalles pt-1 mb-4",staticStyle:{"text-transform":"uppercase"},attrs:{type:"submit"}},[e._v(e._s(e.$t("Ingresar")))]),a("span",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"recovery-pass",expression:"'recovery-pass'"}],staticClass:"cursor-pointer text-center text-sm d-block mb-2",attrs:{"data-toggle":"modal","data-dismiss":"modal","data-target":"#modal_recovery_password"}},[e._v(e._s(e.$t("Olvidé mi contraseña")))]),a("span",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"register",expression:"'register'"}],staticClass:"cursor-pointer text-center text-light-blue mb-0 text-sm d-block",attrs:{"data-toggle":"modal","data-dismiss":"modal"}},[e._v(e._s(e.$t("Registrarse ahora")))])])],1)])]}}])})},r=[],i=(a("8e6e"),a("ac6a"),a("456d"),a("20d6"),a("bd86")),n=(a("7f7f"),a("a481"),a("2f62")),l=a("c1df"),o=a.n(l),c=a("0e0b");function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function u(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?d(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var p={data:function(){return{isVisible:!1,user:{username:"",password:""},errors:{username:[],password:[]}}},mounted:function(){this.setLoading({state:!1,msg:"",class:""}),null!=this.userGlobal&&this.$router.replace("/").catch((function(e){e.name}))},methods:u({login:function(){var e=this;this.$http({method:"POST",url:"user/authentication",data:{USER_NAME:this.user.username.trim(),USER_PASSWORD:this.user.password.trim()}}).then((function(t){e.setAuth({USER:t.data.data,DATE_SESSION:o()().format("YYYY-MM-DD HH:mm")}),e.$bvModal.hide("login"),e.setSidebarActive(!1),e.$eventBus.$emit("message-login"),"1"==e.getUrlFrequent&&e.$router.push({name:"home"})})).catch((function(t){if(e.setLoading({state:!1,msg:"",class:""}),e.clearErrors(),e.clearUser(),"422"==t.response.data.code){var a=t.response.data.details,s=a.findIndex((function(e){return"USER_NAME"==e.field})),r=a.findIndex((function(e){return"USER_PASSWORD"==e.field}));e.errors.username=-1!=s?a[s].messages:[],e.errors.password=-1!=r?a[r].messages:[]}else e.$eventBus.$emit("loadError",Object(c["b"])(t))}))},actionsShown:function(e){this.$bvModal.hide("register"),this.$bvModal.hide("recovery-pass"),this.clearUser(),this.isVisible=!1,this.$refs.loginUsername.focus(),this.clearErrors()},clearErrors:function(){this.errors={username:[],password:[]}},clearUser:function(){this.user={username:"",password:""}}},Object(n["b"])({setAuth:"auth/setAuth",setLoading:"options/setLoading",setSidebarActive:"options/setSidebarActive",setUrlFrequent:"auth/urlFrequent"})),computed:u({},Object(n["c"])({getUrlFrequent:"auth/urlFrequent",userGlobal:"auth/user"}))},m=p,v=(a("e5aa"),a("2877")),h=Object(v["a"])(m,s,r,!1,null,"6c938b74",null);t["default"]=h.exports},"8d10":function(e,t){function a(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}a.keys=function(){return[]},a.resolve=a,e.exports=a,a.id="8d10"},"8dce":function(e,t,a){e.exports=a.p+"static/img/logo-mcets.92a12a79.svg"},9230:function(e,t,a){},"934f":function(e){e.exports=JSON.parse('[{"value":"P","emision-usa":1,"_length":9,"label":"PASSPORT - P"},{"value":"IP","emision-usa":1,"_length":9,"label":"U.S. PASSPORT CARD - IP"},{"value":"C","emision-usa":1,"_length":9,"label":"PERMANENT RESIDENT CARD - C"},{"value":"C1","emision-usa":1,"_length":9,"label":"PERMANENT RESIDENT CARD (1998 - 2003) - C1"},{"value":"C2","emision-usa":1,"_length":9,"label":"PERMANENT RESIDENT CARD - C2"},{"value":"VB","emision-usa":1,"_length":12,"label":"LASER VISA - BCC - VB"},{"value":"VI","emision-usa":1,"_length":9,"label":"VISA IMMIGRANT - VI"},{"value":"VN","emision-usa":0,"_length":9,"label":"VISA NON-IMMIGRANT - VN"},{"value":"IF","emision-usa":0,"_length":9,"label":"FAST CARD - IF"},{"value":"IG","emision-usa":0,"_length":9,"label":"GLOBAL ENTRY CARD - IG"},{"value":"IN","emision-usa":0,"_length":9,"label":"NEXUS CARD - IN"},{"value":"IS","emision-usa":0,"_length":9,"label":"SENTRI CARD - IS"},{"value":"N","emision-usa":0,"_length":9,"label":"NATURALIZATION CERTIFICATE - N"},{"value":"FB","emision-usa":0,"_length":9,"label":"BIRTH CERTIFICATE - FB"},{"value":"DL","emision-usa":0,"_length":0,"label":"DRIVER LICENSE - DL"}]')},"9e91":function(e,t,a){},a260:function(e,t,a){"use strict";var s=a("9e91"),r=a.n(s);r.a},a3ca:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"slice height-main-full paddingrefund",staticStyle:{"min-height":"calc(100vh - 88px - 87px)"}},[a("div",{staticClass:"container align-items-center text-center"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-12"},[a("h1",{staticClass:"text-select-your-travel-horizontal text-center mb-5 w-100 lh-120 titlerefund"},[e._v(e._s(e.$t("Anulación de Boletos en LÃnea")))]),a("div",{staticClass:"overflow-auto"},[a("table",{staticClass:"table table-cards text-center"},[a("thead",[a("tr",[a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Opción")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Fecha Compra")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Tipo de Ticket")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Fecha de Viaje")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Estados")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Método de Pago")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Importe")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Ciudad Origen")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Ciudad destino")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Pasajero")))])])]),a("tbody",{staticClass:"list"},[e._l(e.tickets,(function(t,s){return[a("tr",{key:s+"-tr",staticClass:"shadow-none"},[a("th",{staticClass:"custom-checkbox",attrs:{scope:"row"}},[1==t.cancel?[a("input",{directives:[{name:"model",rawName:"v-model",value:t.check,expression:"ticket.check"}],staticClass:"custom-control-input",attrs:{type:"checkbox",value:"1",id:"refund_"+s},domProps:{checked:Array.isArray(t.check)?e._i(t.check,"1")>-1:t.check},on:{change:function(a){var s=t.check,r=a.target,i=!!r.checked;if(Array.isArray(s)){var n="1",l=e._i(s,n);r.checked?l<0&&e.$set(t,"check",s.concat([n])):l>-1&&e.$set(t,"check",s.slice(0,l).concat(s.slice(l+1)))}else e.$set(t,"check",i)}}}),a("label",{staticClass:"custom-control-label check",attrs:{for:"refund_"+s}})]:e._e()],2),a("td",[e._v(e._s(e.changeDate(t.datePurchase)))]),a("td",[e._v(e._s(t.typebasefare))]),a("td",[e._v(e._s(e.changeDate(t.dateTravel)))]),a("td",[e._v(e._s(t.status))]),a("td",{staticClass:"text-uppercase"},[e._v(e._s(t.methodPayment))]),a("td",[e._v(e._s(t.amountPayment))]),a("td",[e._v(e._s(t.cityDeparture))]),a("td",[e._v(e._s(t.cityArrival))]),a("td",[e._v(e._s(t.passangerName))])]),a("tr",{key:s+"-divider",staticClass:"table-divider"})]}))],2)])]),null!=e.tickets&&0==e.tickets[0].cancel&&"canceled"!=e.tickets[0].status?a("div",{staticClass:"container"},[a("p",{staticClass:"font-weight-bolder text-center text-danger"},[a("i",{staticClass:"far fa-info-circle mr-2"}),a("label",[e._v(" "+e._s(e.$t("No es posible anular boletos por este canal. por que la fecha de viaje es anterior a la fecha actual."))+" ")])])]):e._e(
1),e.selectRefund()?a("div",{staticClass:"col-lg-2 col-sm-3 p-0 offset-lg-10 offset-sm-9"},[a("button",{staticClass:"btn btn-danger my-3 w-100 text-sm",attrs:{"data-toggle":"modal"},on:{click:function(t){return e.preProcessRefund()}}},[e._v(e._s(e.$t("Devolución")))])]):e._e()])])]),a("b-modal",{attrs:{id:"modal_penalidad_por_anulacion","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("h5",{staticClass:"modal-title pb-4 text-center",attrs:{id:"exampleModalLabel"}},[e._v(e._s(e.$t("Penalización por cancelación")))]),null!=e.preProcess?a("div",{staticClass:"d-block text-left"},[a("p",{staticClass:"font-weight-300"},[e._v(" "+e._s(e.$t("Anulación en venta interna usa tarifas base"))+" "+e._s(e.percentagePenalty))]),a("p",{staticClass:"font-weight-700 text-gray-4 text-lg mb-4"},[e._v(e._s(e.$t("Monto a devolver"))+" "+e._s(e.amountPenalty))])]):e._e(),e.loadProcess?a("b-button",{staticClass:"btn-primary w-100 ver-detalles mb-3",attrs:{variant:"primary",block:"",disabled:""}},[a("div",{staticClass:"spinner-border text-light",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[e._v("Loading...")])])]):a("b-button",{staticClass:"btn-primary w-100 ver-detalles mb-3",attrs:{variant:"primary",block:""},on:{click:function(t){return e.processRefund()}}},[e._v(e._s(e.$t("Aceptar Penalidad y Anular")))]),a("span",{staticClass:"cursor-pointer text-center text-sm d-block mb-2",on:{click:function(e){return s()}}}
1,[e._v(e._s(e.$t("Cancelar")))])],1)]}}])}),a("b-modal",{attrs:{id:"modal_confirm_refund","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("h5",{staticClass:"modal-title pb-4 text-center text-green"},[e._v(e._s(e.$t("Anulación y Devolución")))]),a("div",{staticClass:"d-block text-left"},[a("p",{staticClass:"font-weight-300"},[e._v(e._s(e.$t("Se Anulo correctamente el Ticket"))+" , "),a("strong",[e._v(e._s(e.$t("se hizo el reembolso a su tarjeta. Espere 3 dÃas para ver el reembolso en su tarjeta")))]),e._v(". "+e._s(e.$t("En breve te enviaremos un email con la confirmación de la anulación"))+".")]),a("p",{staticClass:"font-weight-700 text-gray-4 mb-4"},[e._v(e._s(e.$t("Código de Transacción"))+" "),a("span",{},[e._v(e._s(e.transactionCode))])])]),a("b-button",{staticClass:"btn-primary w-100 ver-detalles mb-3",attrs:{variant:"primary"},on:{click:function(t){return e.$router.push({name:"home"})}}},[e._v(e._s(e.$t("Busca un nuevo viaje")))]),a("span",{staticClass:"cursor-pointer text-center text-sm d-block mb-2",on:{click:function(e){return s()}}}
1,[e._v(e._s(e.$t("Cancelar")))])],1)]}}])})],1)},r=[],i=(a("8e6e"),a("456d"),a("ac4d"),a("8a81"),a("ac6a"),a("bd86")),n=a("2f62"),l=a("0e0b");function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?o(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}a("72bf");var d={headers:{"Content-Type":"application/x-www-form-urlencoded"}},u={mounted:function(){this.setLoading({state:!1,msg:"",class:""}),"undefined"!=typeof this.$route.query.code&&this.loadTicketsbyCode(this.$route.query.code)},data:function(){return{tickets:null,preProcess:null,percentagePenalty:"",amountPenalty:"",loadProcess:!1,transactionCode:""}},computed:c({},Object(n["c"])({options:"options/listoptions"})),methods:c({changeDate:function(e){return this.$moment(e,this.options.DATE_FORMAT_CALENDAR.value.toUpperCase()).format("DD MMM YYYY")},loadTicketsbyCode:function(e){var t=this,a={CODE:e};this.$http.post("refund/getTicketsByCode",a,d).then((function(e){t.tickets=e.data.data})).catch((function(e){}))},selectRefund:function(){if(null==this.tickets)return!1;var e=this.tickets.map((function(e){return{check:e.check,cancel:e.cancel}})),t=e.filter((function(e){return 1==e.check&&1==e.cancel}));return""!=t},preProcessRefund:function(){var e=this,t=new Array,a=!0,s=!1,r=void 0;try{for(var i,n=this.tickets[Symbol.iterator]();!(a=(i=n.next()).done);a=!0){var o=i.value;"undefined"!=typeof o.check&&1==o.check&&t.push(o.ticket)}}catch(u){s=!0,r=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}var c={A_ID_TICKETS:t};this.$http.post("refund/preProcess",c,d).then((function(t){var a=t.data.data,s=0,r=0,i=!0,n=!1,l=void 0;try{for(var o,c=a[Symbol.iterator]();!(i=(o=c.next()).done);i=!0){var d=o.value;1==d.op?(s+=d.amountRetPenalty,r=d.penalty):(r=0,s+=parseFloat(d.amountRet))}}catch(u){n=!0,l=u}finally{try{i||null==c.return||c.return()}finally{if(n)throw l}}e.percentagePenalty=a.penalty?r/a.length:r,e.amountPenalty=a.penalty?s/a.length:s,e.preProcess=a,e.$bvModal.show("modal_penalidad_por_anulacion")})).catch((function(t){var a;e.preProcess=null;var s=Object(l["b"])(t);"No Authorized"==s.msg?(e.$eventBus.$emit("loadError",{msg:e.$t("No es posible anular su boleto. No existen Condiciones de Anulación para la tarifa de su boleto.")}),e.setLoading({state:!1,msg:"",class:"fa-bus"})):(a="es"==e.changelang?e.$t(s.msg):s.msg,e.$eventBus.$emit("loadError",{msg:a}),e.setLoading({state:!1,msg:"",class:"fa-bus"}))}))},processRefund:function(){var e=this;if(null!=this.preProcess){this.setLoading({state:!0,msg:this.$t("Procesando Reembolso"),class:"fa-retweet"});var t={A_TICKETS:this.preProcess};this.$http.post("refund/processRefund",t,d).then((function(t){var a=t.data.data.tickets,s=JSON.parse(JSON.stringify(e.tickets));s.map((function(e){var t=a.filter((function(t){return t==e.ticket}));return t.length>0&&(e.cancel=0),e})),e.tickets=s,e.transactionCode=t.data.data.id[0],e.$bvModal.hide("modal_penalidad_por_anulacion"),e.$bvModal.show("modal_confirm_refund"),e.setLoading({state:!1,msg:"",class:"fa-retweet"})})).catch((function(t){e.$eventBus.$emit("loadError",Object(l["b"])(t)),e.setLoading({state:!1,msg:"",class:"fa-retweet"})}))}},home:function(){this.$router.push({name:"home"})}},Object(n["b"])({setLoading:"options/setLoading"}))},p=u,m=a("2877"),v=Object(m["a"])(p,s,r,!1,null,null,null);t["default"]=v.exports},ab2d:function(e,t,a){e.exports=a.p+"static/img/es-mobile.2a0bfaba.svg"},ade9:function(e,t,a){},b357:function(e,t,a){},b49b:function(e,t,a){},b6b9:function(e,t,a){e.exports=a.p+"static/img/en-mobile.3f23528f.svg"},b79a:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"pb-0 slice slice-xl",staticStyle:{"min-height":"calc(100vh - 88px - 87px)"}},[a("div",{staticClass:"container align-items-center text-center text-lg-left ",staticStyle:{"min-height":"calc(100vh - 200px)"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-12 center"},[e.confirm?e._e():a("div",[a("div",{staticClass:"d-flex justify-content-center"},[a("loaderCircle",{attrs:{size:"85px"}})],1),a("div",{staticClass:"mt-2 d-flex justify-content-center"},[e._v("\n "+e._s(e.$t("Cargando..."))+"\n ")])]),a("div",{staticClass:"icon-animated"},[e.confirm?a("div",{staticClass:"success-checkmark"}
1,[e._m(0)]):e._e(),e.hasError?a("div",{staticClass:"warning-circle mb-3 position-relative"},[a("svg",{staticClass:"circular yellow-stroke"},[a("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"50",fill:"none","stroke-width":"5","stroke-miterlimit":"10"}})]),a("svg",{staticClass:"alert-sign yellow-stroke"},[a("g",{attrs:{transform:"matrix(1,0,0,1,-615.516,-257.346)"}},[a("g",{attrs:{transform:"matrix(0.56541,-0.56541,0.56541,0.56541,93.7153,495.69)"}},[a("path",{staticClass:"line",attrs:{d:"M634.087,300.805L673.361,261.53",fill:"none"}})]),a("g",{attrs:{transform:"matrix(2.27612,-2.46519e-32,0,2.27612,-792.339,-404.147)"}},[a("circle",{staticClass:"dot",attrs:{cx:"621.52",cy:"316.126",r:"1.318"}})])])])]):e._e()]),e.confirm?a("h1",{staticClass:"text-titular text-center mb-1 w-100 animated fadeIn show"},[e._v(e._s(e.$t("Confirmación de correo exitosa")))]):e._e(),e.hasError?a("h1",{staticClass:"text-titular text-center mb-1 w-100 animated fadeIn show"},[e._v(e._s(e.$t("Ocurrió un error")))]):e._e(),e.confirm?a("p",{staticClass:"text-center countdown"},[e._v(e._s(e.$t("Se completo el registro con éxito, será redireccionado a la página principal en"))+" "),a("span",{staticClass:"font-weight-800"},[e._v(e._s(e.count))])]):e._e(),e.hasError?[a("p",{staticClass:"text-center countdown"},[e._v(e._s(e.msg))]),a("p",{staticClass:"text-center countdown"},[e._v(e._s(e.$t("No se pudo completar el registro, será redireccionado a la página principal en"))+" "),a("span",{staticClass:"font-weight-800"},[e._v(e._s(e.count))])])]:e._e()],2)])])])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"check-icon"},[a("span",{staticClass:"icon-line line-tip"}),a("span",{staticClass:"icon-line line-long"}),a("div",{staticClass:"icon-circle"}),a("div",{staticClass:"icon-fix"})])}],i=(a("8e6e"),a("ac6a"),a("456d"),a("bd86")),n=a("2f62"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container-loadin",style:{"--size-loading-circle":e.size,"--size-loading-border":e.border}},[e._m(0)])},o=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"loading-circle-app-div"},[a("div",{staticClass:"loading-circle-app"})])}],c={props:{size:{type:String,default:"40px"},border:{type:String,default:"4px"}}},d=c,u=(a("4fa3"),a("2877")),p=Object(u["a"])(d,l,o,!1,null,"33ec2036",null),m=p.exports;function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function h(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?v(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):v(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var f={components:{LoaderCircle:m},data:function(){return{confirm:!1,msg:"",count:6,hasError:!1}},created:function(){var e=this;this.setLoading({state:!0,msg:this.$t("Confirmando el Registro"),class:"fa-poll-people"}),this.hasError=!1,this.$http({method:"POST",url:"user/confirmRegister",data:{CODE:this.$route.query.code,LANG:this.$route.query.lang}}).then((function(t){e.confirm=!0,e.hasError=!1,e.setLoading({state:!1,msg:"",class:"fa-poll-people"}),e.countdown(),e.getUserById(t.data.data.idPerson)})).catch((function(t){e.$eventBus.$emit("loadError",t.response.data.details),e.confirm=!1,e.hasError=!0,e.setLoading({state:!1,msg:"",class:"fa-poll-people"}),e.msg=t.response.data.details,e.countdown()}))},methods:h({getUserById:function(e){var t=this;this.$http({method:"POST",url:"user/getUserById",data:{ID_USER:e}}).then((function(e){t.setAuth({USER:e.data.data})})).catch((function(e){t.hasError=!0,t.$eventBus.$emit("loadError",t.$t("No se pudo iniciar Sesión"))}))},countdown:function(){var e=this;1==this.count?this.$router.push({name:"profile.main"}):(this.count--,setTimeout((function(){e.countdown()}),1e3))}},Object(n["b"])({setLoading:"options/setLoading",setAuth:"auth/setAuth"}))},_=f,g=Object(u["a"])(_,s,r,!1,null,null,null);t["default"]=g.exports},bbf5:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.user,expression:"user"}],staticStyle:{border:"1px red solid"},attrs:{type:"text",placeholder:"User"},domProps:{value:e.user},on:{input:function(t){t.target.composing||(e.user=t.target.value)}}}),a("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],staticStyle:{border:"1px red solid"},attrs:{type:"text",placeholder:"Email"},domProps:{value:e.email},on:{input:function(t){t.target.composing||(e.email=t.target.value)}}}),a("input",{attrs:{type:"button",value:"Registrar"},on:{click:e.register}})])},r=[],i={data:function(){return{user:"",email:""}},methods:{register:function(){this.$http({method:"POST",url:"user/saveUser",data:{FIRST_USER_NAME:"Erick",LAST_USER_NAME:"Acuña",C_WEB_EMAIL:this.email,C_WEB_PHONE:"966685004",C_WEB_USER:this.user,C_WEB_PASS:"123qaz",C_WEB_SAME_PASS:"123qaz",C_SHOW_TERMS:!0,C_STATUS_TERMS:!0}}).then((function(e){})).catch((function(e){if("422"==e.response.data.code)e.response.data.details}))}}},n=i,l=a("2877"),o=Object(l["a"])(n,s,r,!1,null,null,null);t["default"]=o.exports},c66b:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("qw-side-profile"),a("transition",{attrs:{"enter-active-class":"animated fadeIn faster",mode:"out-in"}},[a("router-view")],1)],1)},r=[],i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("nav",{staticClass:"d-lg-block d-none",attrs:{id:"sidebar"}},[a("div",{staticClass:"sidebar-header text-center pb-1"},[a("img",{staticClass:"avatar-lg mb-2",attrs:{src:e.imgUser,alt:"Icono usuario"}}),a("h5",{staticClass:"mb-0 lh-100 text-capitalize"},[e._v(e._s(e.user.completeName))]),a("p",{staticClass:"text-sm"},[e._v(e._s(e.$t("Código"))+" "+e._s(e.user.code))])]),a("button",{staticClass:"btn btn-primary d-block m-auto",on:{click:function(t){return e.$router.push({name:"home"})}}},[e._v(e._s(e.$t("Buscar viajes")))]),a("ul",{staticClass:"list-unstyled components"},[a("router-link",{attrs:{tag:"li","exact-active-class":"active",to:"/profile"}},[a("a",{staticClass:"text-base"},[a("span",{staticClass:"icon-list"},[a("i",{staticClass:"far fa-user"})]),a("span",{staticClass:"text-list"},[e._v(e._s(e.$t("Ver mi perfil")))])])]),a("router-link",{attrs:{tag:"li","active-class":"active",to:{name:"profile.travels"}}},[a("a",{staticClass:"text-base"},[a("span",{staticClass:"icon-list"},[a("i",{staticClass:"far fa-clipboard-list"})]),a("span",{staticClass:"text-list"},[e._v(e._s(e.$t("Lista de Viajes")))])])]),a("router-link",{attrs:{tag:"li","active-class":"active",to:{name:"profile.vouchers"}}},[a("a",{staticClass:"text-base"},[a("span",{staticClass:"icon-list"},[a("i",{staticClass:"far fa-ticket"})]),a("span",{staticClass:"text-list"}
1,[e._v(e._s(e.$t("Vales")))])])])],1),a("div",{staticClass:"list-unstyled components text-white viajero-frecuente pb-3"},[a("h5",{staticClass:"text-center text-slg text-blue pt-3 pb-2"},[e._v(e._s(e.$t("Pasajero Frecuente")))]),a("div",{staticClass:"align-items-center col-9 center special-col puntos-disponibles text-sm py-1 mb-3"},[a("div",{staticClass:"col-auto p-0"},[a("span",{},[e._v(e._s(e.$t("Puntos Disponibles")))])]),a("div",{staticClass:"col p-0 text-right"},[a("span",{},[e._v(e._s(e.user.pointsAvailable))])])]),a("div",{staticClass:"align-items-center col-9 center special-col puntos-usados text-sm py-1 mb-3"},[a("div",{staticClass:"col-auto p-0"},[a("span",{},[e._v(e._s(e.$t("Puntos Usados")))])]),a("div",{staticClass:"col p-0 text-right"},[a("span",{},[e._v(e._s(e.user.pointsUsed))])])]),a("div",{staticClass:"align-items-center col-9 center special-col puntos-cancelados text-sm py-1 mb-3"},[a("div",{staticClass:"col-auto p-0"},[a("span",{},[e._v(e._s(e.$t("Puntos Cancelados")))])]),a("div",{staticClass:"col p-0 text-right"},[a("span",{},[e._v(e._s(e.user.pointsCanceled))])])])]),a("ul",{staticClass:"list-unstyled pt-3"},[a("li",[a("a",{staticClass:"text-base",attrs:{role:"button"},on:{click:function(t){return t.preventDefault(),e.logOutLocal(t)}}},[e._m(0),a("span",{staticClass:"text-list font-weight-800"},[e._v(e._s(e.$t("Cerrar Sesión")))])])])])]),a("nav",{staticClass:"d-lg-none d-block text-xs lh-130",attrs:{id:"sidebar-mobile"}},[a("router-link",{staticClass:"col-3 d-inline-block p-0 text-center",attrs:{tag:"li","exact-active-class":"active",to:"/profile"}},[a("i",{staticClass:"far fa-user"}),a("br"),e._v(e._s(e.$t("Mi Perfil"))+"\n ")]),a("router-link",{staticClass:"col-3 d-inline-block p-0 text-center",attrs:{tag:"li","active-class":"active",to:{name:"profile.travels"}}},[a("i",{staticClass:"far fa-clipboard-list"}),a("br"),e._v(e._s(e.$t("Lista de Viajes"))+"\n ")]),a("router-link",{staticClass:"col-3 d-inline-block p-0 text-center",attrs:{tag:"li","active-class":"active",to:{name:"profile.vouchers"}}},[a("i",{staticClass:"far fa-ticket"}),a("br"),e._v("Vouchers\n ")]),a("div",{staticClass:"col-3 d-inline-block p-0 text-center",on:{click:function(t){return e.$router.push({name:"home"})}}},[a("i",{staticClass:"far fa-search"}),a("br"),e._v(e._s(e.$t("Buscar viajes"))+"\n ")])],1)])},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",{staticClass:"icon-list"},[a("i",{staticClass:"far fa-sign-out"})])}],l=(a("8e6e"),a("ac6a"),a("456d"),a("bd86")),o=a("2f62");function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach((function(t){Object(l["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var u={computed:d({imgUser:function(){var e="F"===this.user.sex?"women":"men";return a("e1f3")("./user-".concat(e,".svg"))}},Object(o["c"])({user:"auth/user"})),methods:d({logOutLocal:function(){this.logOut(),this.$router.push({name:"home"})},home:function(){this.$router.push({name:"home"})}},Object(o["b"])({logOut:"auth/logOut"}))},p=u,m=a("2877"),v=Object(m["a"])(p,i,n,!1,null,null,null),h=v.exports,f={components:{qwSideProfile:h},data:function(){return{}}},_=f,g=Object(m["a"])(_,s,r,!1,null,null,null);t["default"]=g.exports},c673:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tab-pane fade in active show",attrs:{id:"completado"}},[a("div",{staticClass:"accordion accordion-spaced mt-4",attrs:{id:"accordion-2"}},[0===e.travels.length?a("div",{staticClass:"card b-shadow-n"},[a("div",{staticClass:" bg-gray-1 border-mv p-0"},[a("div",{staticClass:"d-block py-4 special-col bg-gray-1"},[a("p",{staticClass:"mb-0 text-center"},[e._v(e._s(e.$t("No tiene viajes completados"))+".")])])])]):a("div",{attrs:{role:"tablist"}},e._l(e.travels,(function(t,s){return a("b-card",{key:s,staticClass:"b-shadow-n",attrs:{"no-body":""}},[a("b-card-header",{staticClass:"card-mis-viajes bg-gray-1 p-0",attrs:{"header-tag":"header","aria-expanded":"false",role:"tab"},on:{click:function(t){return e.$root.$emit("bv::toggle::collapse","accordion-"+s)}}},[a("div",{staticClass:"text-center border-mv py-lg-4 pt-45 special-col align-items-center bg-gray-1"},[a("div",{staticClass:"w-15 p-lr-small date-travel-mobile"},[a("span",{staticClass:"d-inline-block d-lg-none"},[a("i",{staticClass:"far fa-bus mr-2"})]),a("p",{staticClass:"font-weight-700 mb-0 text-xlg lh-100 day-travel-mobile"},[e._v(e._s(e.formatDay(t.cell[4])))]),a("p",{staticClass:"mb-0 lh-110 month-travel-mobile"},[e._v(e._s(e.formatMonthYear(t.cell[4])))])]),a("div",{staticClass:"w-30 p-lr-small departure-t-travel-mobile"},[a("p",{staticClass:"mb-0 text-limit",attrs:{title:t.cell[8]}},[e._v(e._s(t.cell[8]))])]),a("i",{staticClass:"w-5 fa-angle-right far text-center text-light-blue"}),a("div",{staticClass:"w-30 p-lr-small return-t-travel-mobile"},[a("p",{staticClass:"mb-0 text-limit",attrs:{title:t.cell[9]}},[e._v(e._s(t.cell[9]))])]),a("div",{staticClass:"w-20 p-lr-small price-travel-mobile"},[a("p",{staticClass:"mb-0 text-limit text-xlg font-weight-600"},[a("span",{staticClass:"text-sm"},[e._v(e._s(t.cell[11])+"\n ")]),e._v(" "+e._s(e.getAmountPayment(t.cell[6])[0])),a("span",{staticClass:"text-sm"}
1,[e._v("."+e._s(e.getAmountPayment(t.cell[6])[1])+"\n ")])])])])]),a("b-collapse",{staticClass:"accordion-trevels-coming",attrs:{id:"accordion-"+s,accordion:"accordion-travels-completed",role:"tabpanel"}},[a("b-card-body",[a("div",{staticClass:"p-0 col-12 lh-100 text-center text-dark text-sm"},[a("div",{staticClass:"w-100 special-col border-bottom pb-3 mb-2 align-items-center"},[a("div",{staticClass:"col-3 p-lr-small text-left"},[a("strong",[e._v(e._s(e.$t("Número de Boletos")))])]),a("div",{staticClass:"col-3 p-lr-small"},[a("strong",[e._v(e._s(e.$t("Tarifa Base")))])]),a("div",{staticClass:"col-2 p-lr-small"},[a("strong",[e._v(e._s(e.$t("Estado")))])]),a("div",{staticClass:"col-2 p-lr-small"},[a("strong",[e._v(e._s(e.$t("Método de Pago")))])]),a("div",{staticClass:"col-2 p-lr-small text-capitalize"},[a("strong",[e._v(e._s(e.$t("Puntos")))])])]),a("div",{staticClass:"w-100 special-col pt-3 pb-3 align-items-center"},[a("div",{staticClass:"col-3 p-lr-small text-left"},[e._v(e._s(t.cell[0]))]),a("div",{staticClass:"col-3 p-lr-small"},[e._v(e._s(t.cell[2]))]),a("div",{staticClass:"col-2 p-lr-small"},[e._v(e._s(t.cell[3]))]),a("div",{staticClass:"col-2 p-lr-small"},[e._v(e._s(t.cell[5]))]),a("div",{staticClass:"col-2 p-lr-small"},[e._v(e._s(t.cell[7]))])])]),a("div",{staticClass:"p-0 col-12 lh-100 text-center text-dark text-sm mt-4"},[a("div",{staticClass:"w-100 special-col border-bottom pb-3 mb-2 align-items-center"},[a("div",{staticClass:"col-3 p-lr-small text-left"},[a("strong",[e._v(e._s(e.$t("Fecha Compra")))])]),a("div",{staticClass:"col-3 p-lr-small"},[a("strong",[e._v(e._s(e.$t("Fecha de Viaje")))])])]),a("div",{staticClass:"w-100 special-col pt-3 pb-3 align-items-center"},[a("div",{staticClass:"col-3 p-lr-small text-left"},[e._v(e._s(t.cell[1]))]),a("div",{staticClass:"col-3 p-lr-small"},[e._v(e._s(t.cell[4]))])])])])],1)],1)})),1),a("nav",{staticClass:"d-table mt-5 mx-auto",attrs:{"aria-label":"..."}},[e.records>e.travels.length?a("ul",{staticClass:"pagination"},[a("li",{staticClass:"page-item",class:{disabled:1===e.page}},[a("a",{staticClass:"page-link",attrs:{href:"#",tabindex:"-1"},on:{click:function(t){return t.preventDefault(),e.changePage(e.page-1)}}},[e._v(e._s(e.$t("Anterior")))])]),e._l(e.total,(function(t,s){return a("li",{key:s,staticClass:"page-item",class:{active:s+1===e.page}},[a("a",{staticClass:"page-link",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.changePage(s+1)}}},[e._v(e._s(s+1))])])})),a("li",{staticClass:"page-item",class:{disabled:e.page===e.total}},[a("a",{staticClass:"page-link",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.changePage(e.page+1)}}},[e._v(e._s(e.$t("Siguiente")))])])],2):e._e()])])])},r=[],i=(a("8e6e"),a("ac6a"),a("456d"),a("28a5"),a("bd86")),n=a("2f62"),l=a("c1df"),o=a.n(l);function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var u={data:function(){return{pagination:{page:1,rows:5},page:null,records:null,total:null,travels:[]}},created:function(){this.loadTravels()},methods:d({changePage:function(e){this.pagination.page=e,this.loadTravels()},formatDay:function(e){var t=o()(e,"MM/DD/YYYY HH:mm").format("DD");return t},formatMonthYear:function(e){var t=o()(e,"MM/DD/YYYY HH:mm").format("MMMM YYYY");return t},loadTravels:function(){var e=this;this.setLoading({state:!0,msg:this.$t("Cargando Viajes"),class:""}),this.$http({method:"POST",url:"user/listRecordShopping",data:{page:this.pagination.page,rows:this.pagination.rows,idPassenger:this.user.idUser,typeList:"completed"}}).then((function(t){e.travels=t.data.data.rows,e.page=t.data.data.page,e.records=t.data.data.records,e.total=t.data.data.total,e.setLoading({state:!1,msg:"",class:""})})).catch((function(t){"404"==t.response.data.code||"500"==t.response.data.code?(e.$eventBus.$emit("loadError",t.response.data.details),e.setLoading({state:!1,msg:"",class:""})):(e.$eventBus.$emit("loadError",t.response),e.setLoading({state:!1,msg:"",class:""})),e.setLoading({state:!1,msg:"",class:""})}))},getAmountPayment:function(e){return String(e.toFixed(2)).split(".")}}
1,Object(n["b"])({setLoading:"options/setLoading"})),computed:d({},Object(n["c"])({user:"auth/user"}))},p=u,m=a("2877"),v=Object(m["a"])(p,s,r,!1,null,null,null);t["default"]=v.exports},c9ac:function(e,t,a){e.exports=a.p+"static/img/desarrollado-por-mcets.160a70cb.svg"},cd67:function(e,t,a){"use strict";var s=a("ee74"),r=a.n(s);r.a},cdf1:function(e,t,a){},d85f:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("qw-breadcrumbs"),s("vue-headful",{attrs:{title:e.options.COMPANY_NAME.value.charAt(0).toUpperCase()+e.options.COMPANY_NAME.value.slice(1)+" - "+e.$t("Pago")}}),s("div",{staticClass:"container align-items-center text-left mt-4 mb-4"},[s("div",{staticClass:"row flex-column-reverse flex-lg-row"},[null!=e.shoppingCartList?s("div",{staticClass:"col-12 col-lg-8",attrs:{id:"passengers"}},[s("h2",{staticClass:"text-blue font-weight-600 text-xl"},[s("i",{staticClass:"mr-2 far fa-user-friends"}),e._v(e._s(e.$t("Información de los Pasajeros")))]),e._l(e.passengers,(function(t,r){return s("div",{key:r},[s("div",{staticClass:"row pt-4 pb-1"},[s("h6",{staticClass:"col-auto mb-0"},[s("i",{staticClass:"mr-1 far fa-id-card"}),e._v(" "+e._s(e.$t("Pasajero"))+" "+e._s(r+1)+"\n ")]),s("div",{staticClass:"col text-right pr-4"},[s("i",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"passenger-delete-"+r,expression:"'passenger-delete-'+index_pass"},{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"pt-1 pb-1 position-relative far fa-trash cursor-pointer",attrs:{title:e.$t("Eliminar Pasajero")}}),s("b-collapse",{staticClass:"position-absolute passenger-delete-style bg-white",attrs:{id:"passenger-delete-"+r}},[s("div",{staticClass:"alert-content d-none d-md-inline ml-1 mr-3"},[e._v("\n "+e._s(e.$t("¿Estás seguro de eliminar?"))+" "),s("strong",[e._v(e._s(e.$t("Pasajero"))+" "+e._s(r+1))]),e._v("?\n ")]),s("div",{staticClass:"d-inline"},[s("b-button",{attrs:{variant:"danger",size:"sm"},on:{click:function(t){return e.removePassengerFromTravel(r)}}},[e._v(e._s(e.$t("Si"))+", "+e._s(e.$t("Eliminar")))]),s("b-button",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"passenger-delete-"+r,expression:"'passenger-delete-'+index_pass"}],attrs:{variant:"outline-secondary",size:"sm"}},[e._v("No")])],1)])],1)]),s("div",{staticClass:"special-col"},[e.options.WEBSALE_FRECUENT_PASSENGER.value?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.cod,expression:"p.cod"}],staticClass:"form-field__input",class:{"is-content":""!=t.cod&&"undefined"!=typeof t.cod},attrs:{type:"text",value:"",id:"travelcode"+r,readonly:t.hasOwnProperty("isStudent")&&t.isStudent&&null!=t.id_passenger},domProps:{value:t.cod},on:{keyup:[function(a){if(!a.type.indexOf("key")&&13!==a.keyCode)return null;""!=t.cod&&"undefined"!=typeof t.cod&&e.searchPassengerFreq(t.cod,r)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.cleanPassangerForm(r)}],input:function(a){a.target.composing||e.$set(t,"cod",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"travelcode"+r}},[e._v(e._s(e.$t("Código de Pasajero Frecuente")))]),s("a",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"icon-search-passenger",attrs:{title:e.$t("Ingrese su código de viajero frecuente y pulse enter o haga clic aquÃ")},on:{click:function(a){""!=t.cod&&"undefined"!=typeof t.cod&&e.searchPassengerFreq(t.cod,r)}}},[s("i",{staticClass:"fas fa-search"})])]),e.errors.hasOwnProperty("cod_"+r)?s("span",{staticClass:"text-error"},[e._v(e._s(e.errors["cod_"+r]))]):e._e()]):e._e(),e.options.WEB_SALE_FORM_SHOW_DOC_TYPE.value||e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{placeholder:e.$t("Tipo de Documento"),options:e.optionsDocTypes},on:{input:function(t){return e.changeDocType(t,r)}},model:{value:t.doctype,callback:function(a){e.$set(t,"doctype",a)},expression:"p.doctype"}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"},[e._v(e._s(e.$t("Tipo de Documento")))]),e.errors.hasOwnProperty("doctype_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"}
1)]):e._e()],1):e._e(),e.options.WEB_SALE_FORM_SHOW_DOC_TYPE.value||e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("numberDocType_"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.numberDocType,expression:"p.numberDocType"}],staticClass:"form-field__input",class:{"is-content":""!=t.numberDocType&&"undefined"!=typeof t.numberDocType},attrs:{type:"text",value:"",id:"numberdoctype"+r,maxlength:"undefined"!=typeof t.lengthdoctype?t.lengthdoctype:20,disabled:!t.hasOwnProperty("doctype")},domProps:{value:t.numberDocType},on:{input:function(a){a.target.composing||e.$set(t,"numberDocType",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"numberdoctype"+r}},[e._v(e._s(e.$t("Número de Documento")))])]),e.errors.hasOwnProperty("numberDocType_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]):e._e(),s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("first_name_"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.first_name,expression:"p.first_name"}],staticClass:"form-field__input",class:{"is-content":""!=t.first_name&&"undefined"!=typeof t.first_name},attrs:{type:"text",value:"",id:"firstname"+r,readonly:t.hasOwnProperty("isFrecuentPassenger")&&t.isFrecuentPassenger&&null!=t.id_passenger||t.hasOwnProperty("isStudent")&&t.isStudent&&null!=t.id_passenger},domProps:{value:t.first_name},on:{keypress:function(t){return e.isLetter(t)},input:function(a){a.target.composing||e.$set(t,"first_name",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"firstname"+r}},[e._v(e._s(e.$t("Nombres")))])]),e.errors.hasOwnProperty("first_name_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]),s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("last_name_"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.last_name,expression:"p.last_name"}],staticClass:"form-field__input",class:{"is-content":""!=t.last_name&&"undefined"!=typeof t.last_name},attrs:{type:"text",value:"",id:"secondname"+r,readonly:t.hasOwnProperty("isFrecuentPassenger")&&t.isFrecuentPassenger&&null!=t.id_passenger||t.hasOwnProperty("isStudent")&&t.isStudent&&null!=t.id_passenger},domProps:{value:t.last_name},on:{keypress:function(t){return e.isLetter(t)},input:function(a){a.target.composing||e.$set(t,"last_name",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"secondname"+r}},[e._v(e._s(e.$t("Apellidos")))])]),e.errors.hasOwnProperty("last_name_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{placeholder:e.$t("PaÃs Emisor"),options:e.optionsCountries},model:{value:t.issuing_country,callback:function(a){e.$set(t,"issuing_country",a)},expression:"p.issuing_country"}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"},[e._v(e._s(e.$t("PaÃs Emisor")))]),e.errors.hasOwnProperty("issuing_country_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()],1):e._e(),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field payment"},[s("vuejs-datepicker",{attrs:{"calendar-button-icon":"far fa-times",placeholder:e.$t("Fecha de Expiración"),format:e.options.DATE_FORMAT_CALENDAR.value,"full-month-name":!0,language:e.languages[e.changelang],"disabled-dates":e.disableddate},model:{value:t.expiredDate,callback:function(a){e.$set(t,"expiredDate",a)},expression:"p.expiredDate"}})],1),e.errors.hasOwnProperty("expiredDate_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"}
1)]):e._e()]):e._e(),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{placeholder:e.$t("Nacionalidad"),options:e.optionsNationality},model:{value:t.nationality,callback:function(a){e.$set(t,"nationality",a)},expression:"p.nationality"}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"},[e._v(e._s(e.$t("Nacionalidad")))]),e.errors.hasOwnProperty("nationality_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()],1):e._e(),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{placeholder:e.$t("Residencia"),options:e.optionsCountries},model:{value:t.residency,callback:function(a){e.$set(t,"residency",a)},expression:"p.residency"}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"},[e._v(e._s(e.$t("Residencia")))]),e.errors.hasOwnProperty("residency_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()],1):e._e(),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("address_pasp_"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.address_pasp,expression:"p.address_pasp"}],staticClass:"form-field__input",class:{"is-content":""!=t.address_pasp&&"undefined"!=typeof t.address_pasp},attrs:{type:"text",value:"",id:"travel-address_pasp"+r},domProps:{value:t.address_pasp},on:{input:function(a){a.target.composing||e.$set(t,"address_pasp",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"travel-address_pasp"+r}},[e._v(e._s(e.$t("Dirección")))])]),e.errors.hasOwnProperty("address_pasp_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]):e._e(),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("city_"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.city,expression:"p.city"}],staticClass:"form-field__input",class:{"is-content":""!=t.city&&"undefined"!=typeof t.city},attrs:{type:"text",value:"",id:"travel-city"+r},domProps:{value:t.city},on:{input:function(a){a.target.composing||e.$set(t,"city",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"travel-city"+r}},[e._v(e._s(e.$t("Ciudad")))])]),e.errors.hasOwnProperty("city_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]):e._e(),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{placeholder:e.$t("Estado"),options:e.optionsStates},model:{value:t.state_pasp,callback:function(a){e.$set(t,"state_pasp",a)},expression:"p.state_pasp"}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"},[e._v(e._s(e.$t("Estado")))]),e.errors.hasOwnProperty("state_pasp_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()],1):e._e(),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("code_zip_"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.code_zip,expression:"p.code_zip"}],staticClass:"form-field__input",class:{"is-content":""!=t.code_zip&&"undefined"!=typeof t.code_zip},attrs:{type:"text",value:"",id:"travel-code_zip"+r},domProps:{value:t.code_zip},on:{input:function(a){a.target.composing||e.$set(t,"code_zip",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"travel-code_zip"+r}},[e._v(e._s(e.$t("Código Postal:")))])]),e.errors.hasOwnProperty("code_zip_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"}
1)]):e._e()]):e._e(),s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{placeholder:"Tipo Boleto",options:e.optionsTypesTicket,disabled:t.hasOwnProperty("isFrecuentPassenger")&&t.isFrecuentPassenger&&null!=t.id_passenger||t.hasOwnProperty("isStudent")&&t.isStudent&&null!=t.id_passenger},on:{input:function(t){return e.changeTicketType(t,r)}},model:{value:t.type_ticket,callback:function(a){e.$set(t,"type_ticket",a)},expression:"p.type_ticket"}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"},[e._v(e._s(e.$t("Tipo de Ticket")))]),e.errors.hasOwnProperty("type_ticket_"+r)?s("span",{staticClass:"text-error"},[e._v(e._s(e.errors["type_ticket_"+r]))]):e._e()],1),1==t.type_ticket.value.isStudent?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("student_"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.student,expression:"p.student"}],staticClass:"form-field__input",class:{"is-content":""!=t.student&&"undefined"!=typeof t.student},attrs:{type:"text",value:"",id:"student"+r,readonly:t.hasOwnProperty("isFrecuentPassenger")&&t.isFrecuentPassenger&&null!=t.id_passenger},domProps:{value:t.student},on:{keyup:[function(a){if(!a.type.indexOf("key")&&13!==a.keyCode)return null;""!=t.student&&"undefined"!=typeof t.student&&e.searchStudent(t.student,r)},function(t){return e.verifyForm()},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.cleanPassangerForm(r)}],input:function(a){a.target.composing||e.$set(t,"student",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"student"+r}},[e._v(e._s(e.$t("Código de Estudiante")))]),s("a",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"icon-search-passenger",attrs:{title:e.$t("Código de Estudiante")},on:{click:function(a){""!=t.student&&"undefined"!=typeof t.student&&e.searchStudent(t.student,r)}}},[s("i",{staticClass:"fas fa-search"})])]),e.errors.hasOwnProperty("student_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]):e._e(),1==e.options.WEB_SALE_FORM_SHOW_DOB.value?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field payment",class:{"is-invalid":e.errors.hasOwnProperty("dateBirth_"+r)}},[s("date-picker",{directives:[{name:"mask",rawName:"v-mask",value:e.formtatMask(),expression:"formtatMask()"}],attrs:{"value-type":"format","default-panel":"year",placeholder:e.options.DATE_FORMAT_CALENDAR.value.toUpperCase(),format:e.formatCalendar().toUpperCase(),"disabled-date":function(e){return e>=new Date},lang:e.languages[e.changelang]},on:{input:function(a){return e.changeDateDOB(t.type_ticket,r)}},model:{value:t.dateBirth,callback:function(a){e.$set(t,"dateBirth",a)},expression:"p.dateBirth"}}),s("label",{staticClass:"form-field__label type-ticket-label"}
1,[e._v(e._s(e.$t("Fecha de Nacimiento")))])],1),e.errors.hasOwnProperty("dateBirth_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]):e._e(),e.options.WEB_SALE_FORM_SHOW_CELLPHONE.value?s("div",{staticClass:"col-12 col-md-4 p-r-small mb-3"},[s("vue-phone-number-input",{class:{"is-invalid":e.errors.hasOwnProperty("cellphone_"+r)},attrs:{"no-example":"",translations:{countrySelectorLabel:e.$t("Código paÃs"),phoneNumberLabel:e.$t("Celular")},"default-country-code":e.options.DATE_FORMAT.value},model:{value:t.cellphone,callback:function(a){e.$set(t,"cellphone",a)},expression:"p.cellphone"}}),e.errors.hasOwnProperty("cellphone_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()],1):e._e(),e.options.WEB_SALE_FORM_SHOW_PHONE.value?s("div",{staticClass:"col-12 col-md-4 p-r-small mb-3"},[s("vue-phone-number-input",{class:{"is-invalid":e.errors.hasOwnProperty("phone_"+r)},attrs:{"no-example":"",translations:{countrySelectorLabel:e.$t("Código paÃs"),phoneNumberLabel:e.$t("Teléfono")},"default-country-code":e.options.DATE_FORMAT.value},model:{value:t.phone,callback:function(a){e.$set(t,"phone",a)},expression:"p.phone"}}),e.errors.hasOwnProperty("phone_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()],1):e._e(),e.options.WEB_SALE_FORM_SHOW_EMAIL.value?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("email_"+r)}},[s("input",{directives:[{name:"focus",rawName:"v-focus",value:e.focus_error=="email_"+r,expression:"focus_error == 'email_'+index_pass"},{name:"model",rawName:"v-model",value:t.email,expression:"p.email"}],staticClass:"form-field__input",class:{"is-content":""!=t.email&&"undefined"!=typeof t.email},attrs:{id:"email"+r,type:"text",value:"",readonly:t.hasOwnProperty("isFrecuentPassenger")&&t.isFrecuentPassenger&&null!=t.id_passenger||t.hasOwnProperty("isStudent")&&t.isStudent&&null!=t.id_passenger},domProps:{value:t.email},on:{focus:function(t){e.focus_error="email_"+r},blur:function(t){e.focus_error=""},keyup:function(t){return e.verifyForm()},input:function(a){a.target.composing||e.$set(t,"email",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"email"+r}},[e._v(e._s(e.$t("Email")))])]),e.errors.hasOwnProperty("email_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]):e._e(),1==e.options.WEB_SALE_FORM_SHOW_SEX.value?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"custom-control mb-3 text-left",staticStyle:{position:"static"}},[s("div",{staticClass:"custom-checkbox d-inline-block mr-5"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.sexo,expression:"p.sexo"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"customCheck1"+r,name:"some-radios1"+r,value:"F",disabled:t.hasOwnProperty("isFrecuentPassenger")&&t.isFrecuentPassenger&&null!=t.id_passenger||t.hasOwnProperty("isStudent")&&t.isStudent&&null!=t.id_passenger},domProps:{checked:e._q(t.sexo,"F")},on:{change:function(a){return e.$set(t,"sexo","F")}}}),s("label",{staticClass:"custom-control-label",attrs:{for:"customCheck1"+r}},[s("small",{staticClass:"ml-n1"},[e._v(e._s(e.$t("Femenino")))])])]),s("div",{staticClass:"custom-checkbox d-inline-block"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.sexo,expression:"p.sexo"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"customCheck2"+r,name:"some-radios1"+r,value:"M",disabled:t.hasOwnProperty("isFrecuentPassenger")&&t.isFrecuentPassenger&&null!=t.id_passenger||t.hasOwnProperty("isStudent")&&t.isStudent&&null!=t.id_passenger},domProps:{checked:e._q(t.sexo,"M")},on:{change:function(a){return e.$set(t,"sexo","M")}}}),s("label",{staticClass:"custom-control-label",attrs:{for:"customCheck2"+r}},[s("small",{staticClass:"ml-n1"},[e._v(e._s(e.$t("Masculino")))])])])])]):e._e()]),e.optionsform.saleMultipleOffice?s("div",{staticClass:"special-col"},[e.officeDepartures.length?s("div",{staticClass:"col-6 col-md-4 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{placeholder:e.$t("Origen"),options:e.officeDepartures},on:{input:function(t){return e.changeOfficeDeparture(t,r)}}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"}
1,[e._v(e._s(e.$t("Sube en")))])],1):e._e(),e.officeArrivals.length?s("div",{staticClass:"col-6 col-md-4 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{placeholder:e.$t("Destino"),options:e.officeArrivals},on:{input:function(t){return e.changeOfficeArrival(t,r)}}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"},[e._v(e._s(e.$t("Baja en")))])],1):e._e()]):e._e(),"PE"==e.options.PAIS_RESIDENTE.value&&e.options.REGISTRO_INFORMACION_RUC_COMPANY.value?s("div",{staticClass:"special-col mb-2"},[s("div",{staticClass:"col-12 p-r-small"},[s("b-form-checkbox",{on:{change:function(t){return e.clearFormCompany(t,r)}},model:{value:t.checkRuc,callback:function(a){e.$set(t,"checkRuc",a)},expression:"p.checkRuc"}},[e._v(e._s(e.$t("Registrar RUC")))])],1),t.checkRuc?s("div",{staticClass:"special-col col-12 p-r-small"},[s("div",{staticClass:"col-3 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("company_ruc"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.company_ruc,expression:"p.company_ruc"},{name:"mask",rawName:"v-mask",value:{mask:e.themaskRuc,tokens:e.hexTokens},expression:"{mask : themaskRuc, tokens: hexTokens}"}],staticClass:"form-field__input",class:{"is-content":""!=t.company_ruc&&"undefined"!=typeof t.company_ruc},attrs:{type:"text",value:"",maxlength:"11",id:"company_ruc"+r},domProps:{value:t.company_ruc},on:{input:[function(a){a.target.composing||e.$set(t,"company_ruc",a.target.value)},function(t){return e.searchCompanyRuc(r)}]}}),s("label",{staticClass:"form-field__label",attrs:{for:"company_ruc"+r}},[e._v(e._s(e.$t("Buscar RUC")))])]),e.errors.hasOwnProperty("company_ruc"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]),s("div",{staticClass:"col-9 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("company_name"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.company_name,expression:"p.company_name"}],staticClass:"form-field__input",class:{"is-content":""!=t.company_name&&"undefined"!=typeof t.company_name},attrs:{type:"text",value:"",id:"company_name"+r},domProps:{value:t.company_name},on:{input:function(a){a.target.composing||e.$set(t,"company_name",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{id:"LrazonSocial"+r,for:"company_name"+r}},[e._v(e._s(e.$t("Razon Social")))])]),e.errors.hasOwnProperty("company_name"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]),s("div",{staticClass:"col-12 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("company_address"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.company_address,expression:"p.company_address"}],staticClass:"form-field__input",class:{"is-content":""!=t.company_address&&"undefined"!=typeof t.company_address},attrs:{type:"text",value:"",id:"company_address"+r},domProps:{value:t.company_address},on:{input:function(a){a.target.composing||e.$set(t,"company_address",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"company_address"+r}},[e._v(e._s(e.$t("Direccion")))])]),e.errors.hasOwnProperty("company_address"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()])]):e._e()]):e._e(),e.options.REGISTRO_INFORMACION_INFANTE.value?s("div",{staticClass:"special-col mb-2"},[s("div",{staticClass:"col-12 p-r-small"},[s("b-form-checkbox",{on:{change:function(t){return e.clearFormPassangerChild(t,r)}},model:{value:t.with_child,callback:function(a){e.$set(t,"with_child",a)},expression:"p.with_child"}},[e._v(e._s(e.$t("Registrar Infante")))])],1),t.with_child?s("div",{staticClass:"special-col col-12 p-r-small"},[e.options.WEB_SALE_FORM_SHOW_DOC_TYPE.value||e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{placeholder:e.$t("Tipo de Documento"),options:e.children_optionsDoctypes},on:{input:function(t){return e.changeDocTypeChildren(t,r)}},model:{value:t.children_doctype,callback:function(a){e.$set(t,"children_doctype",a)},expression:"p.children_doctype"}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"},[e._v(e._s(e.$t("Tipo de Documento")))]),e.errors.hasOwnProperty("children_doctype_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"}
1)]):e._e()],1):e._e(),e.options.WEB_SALE_FORM_SHOW_DOC_TYPE.value||e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("children_numberdoctype_"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.children_numberDocType,expression:"p.children_numberDocType"}],staticClass:"form-field__input",class:{"is-content":""!=t.children_numberDocType&&"undefined"!=typeof t.children_numberDocType},attrs:{type:"text",value:"",id:"children_numberdoctype_"+r,maxlength:"undefined"!==typeof t.lengthdoctype?t.lengthdoctype:20},domProps:{value:t.children_numberDocType},on:{keyup:function(t){return e.verifyForm()},input:function(a){a.target.composing||e.$set(t,"children_numberDocType",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"children_numberdoctype_"+r}},[e._v(e._s(e.$t("Número de Documento")))])]),e.errors.hasOwnProperty("children_numberdoctype_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]):e._e(),s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("children_first_name_"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.children_first_name,expression:"p.children_first_name"}],staticClass:"form-field__input",class:{"is-content":""!=t.children_first_name&&"undefined"!=typeof t.children_first_name},attrs:{type:"text",value:"",id:"children_first_name"+r},domProps:{value:t.children_first_name},on:{keyup:function(t){return e.verifyForm()},input:function(a){a.target.composing||e.$set(t,"children_first_name",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"children_first_name"+r}},[e._v(e._s(e.$t("Nombres")))])]),e.errors.hasOwnProperty("children_first_name_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]),s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("children_last_name_"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.children_last_name,expression:"p.children_last_name"}],staticClass:"form-field__input",class:{"is-content":""!=t.children_last_name&&"undefined"!=typeof t.children_last_name},attrs:{type:"text",value:"",id:"children_last_name"+r},domProps:{value:t.children_last_name},on:{keyup:function(t){return e.verifyForm()},input:function(a){a.target.composing||e.$set(t,"children_last_name",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"children_last_name"+r}},[e._v(e._s(e.$t("Apellidos")))])]),e.errors.hasOwnProperty("children_last_name_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{placeholder:e.$t("PaÃs Emisor"),options:e.children_optionsCountries},model:{value:t.children_issuing_country,callback:function(a){e.$set(t,"children_issuing_country",a)},expression:"p.children_issuing_country"}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"},[e._v(e._s(e.$t("PaÃs Emisor")))]),e.errors.hasOwnProperty("children_issuing_country_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()],1):e._e(),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field payment"},[s("vuejs-datepicker",{attrs:{placeholder:e.$t("Fecha de Expiración"),"calendar-button-icon":"far fa-times",format:e.options.DATE_FORMAT_CALENDAR.value,"full-month-name":!0,language:e.languages[e.changelang],"disabled-dates":e.disableddate},model:{value:t.children_expiredDate,callback:function(a){e.$set(t,"children_expiredDate",a)},expression:"p.children_expiredDate"}})],1),e.errors.hasOwnProperty("children_expiredDate_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"}
1)]):e._e()]):e._e(),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{placeholder:e.$t("Nacionalidad"),options:e.children_optionsNationality},model:{value:t.children_nationality,callback:function(a){e.$set(t,"children_nationality",a)},expression:"p.children_nationality"}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"},[e._v(e._s(e.$t("Nacionalidad")))]),e.errors.hasOwnProperty("children_nationality_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()],1):e._e(),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{placeholder:e.$t("Residencia"),options:e.children_optionsCountries},model:{value:t.children_residency,callback:function(a){e.$set(t,"children_residency",a)},expression:"p.children_residency"}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"},[e._v(e._s(e.$t("Residencia")))]),e.errors.hasOwnProperty("children_residency_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()],1):e._e(),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("children_address_pasp_"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.children_address_pasp,expression:"p.children_address_pasp"}],staticClass:"form-field__input",class:{"is-content":""!=t.cod&&"undefined"!=typeof t.children_address_pasp},attrs:{type:"text",value:"",id:"children_address_pasp"+r},domProps:{value:t.children_address_pasp},on:{input:function(a){a.target.composing||e.$set(t,"children_address_pasp",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"children_address_pasp"+r}},[e._v(e._s(e.$t("Dirección")))])]),e.errors.hasOwnProperty("children_address_pasp_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]):e._e(),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":e.errors.hasOwnProperty("children_city_"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.children_city,expression:"p.children_city"}],staticClass:"form-field__input",class:{"is-content":""!=t.children_city&&"undefined"!=typeof t.children_city},attrs:{type:"text",value:"",id:"travel-children_city_"+r},domProps:{value:t.children_city},on:{input:function(a){a.target.composing||e.$set(t,"children_city",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"travel-children_city_"+r}},[e._v(e._s(e.$t("Ciudad")))])]),e.errors.hasOwnProperty("children_city_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]):e._e(),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{placeholder:e.$t("Estado"),options:e.children_optionsStates},model:{value:t.children_state_pasp,callback:function(a){e.$set(t,"children_state_pasp",a)},expression:"p.children_state_pasp"}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"},[e._v(e._s(e.$t("Estado")))]),e.errors.hasOwnProperty("children_state_pasp_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()],1):e._e(),e.loadSalePassegerInfoComplementary()?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"
1is-invalid":e.errors.hasOwnProperty("children_code_zip_"+r)}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.children_code_zip,expression:"p.children_code_zip"}],staticClass:"form-field__input",class:{"is-content":""!=t.children_code_zip&&"undefined"!=typeof t.children_code_zip},attrs:{id:"travel-children_code_zip"+r,type:"text",value:"",onkeyup:"this.setAttribute('value', this.value);"},domProps:{value:t.children_code_zip},on:{input:function(a){a.target.composing||e.$set(t,"children_code_zip",a.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"travel-children_code_zip"+r}},[e._v(e._s(e.$t("Código Postal:")))])]),e.errors.hasOwnProperty("children_code_zip_"+r)?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]):e._e(),1==e.options.WEB_SALE_FORM_SHOW_DOB.value?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"form-field payment"},[s("vuejs-datepicker",{directives:[{name:"mask",rawName:"v-mask",value:e.formtatMask(),expression:"formtatMask()"}],attrs:{minimumView:"day",maximumView:"year",initialView:"year",placeholder:e.options.DATE_FORMAT_CALENDAR.value.toUpperCase(),typeable:!0,"calendar-button-icon":"far fa-times",format:e.formatCalendar(),"full-month-name":!0,language:e.languages[e.changelang],"disabled-dates":e.disabledDate,"input-class":{"is-invalid":e.errors.hasOwnProperty("children_dateBirth_"+r)},"bootstrap-styling":"true;"},model:{value:t.children_dateBirth,callback:function(a){e.$set(t,"children_dateBirth",a)},expression:"p.children_dateBirth"}}),s("label",{staticClass:"form-field__label type-ticket-label"}
1,[e._v(e._s(e.$t("Fecha de Nacimiento")))])],1)]):e._e(),e.options.WEB_SALE_FORM_SHOW_SEX.value?s("div",{staticClass:"col-12 col-md-4 p-r-small"},[s("div",{staticClass:"custom-control mb-3 text-left",staticStyle:{position:"static"}},[s("div",{staticClass:"custom-checkbox d-inline-block mr-5"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.children_sexo,expression:"p.children_sexo"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"children_checkF"+r,name:"children_radios"+r,value:"F"},domProps:{checked:e._q(t.children_sexo,"F")},on:{change:function(a){return e.$set(t,"children_sexo","F")}}}),s("label",{staticClass:"custom-control-label",attrs:{for:"children_checkF"+r}},[s("small",{staticClass:"ml-n1"},[e._v(e._s(e.$t("Femenino")))])])]),s("div",{staticClass:"custom-checkbox d-inline-block"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.children_sexo,expression:"p.children_sexo"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"children_checkM"+r,name:"children_radios"+r,value:"M"},domProps:{checked:e._q(t.children_sexo,"M")},on:{change:function(a){return e.$set(t,"children_sexo","M")}}}),s("label",{staticClass:"custom-control-label",attrs:{for:"children_checkM"+r}},[s("small",{staticClass:"ml-n1"},[e._v(e._s(e.$t("Masculino")))])])])])]):e._e()]):e._e()]):e._e(),s("div",{staticClass:"d-flex justify-content-md-end justify-content-center mr-md-2 mr-0"},[s("span",{staticClass:"bg-white border col-6 col-lg-3 col-md-3 mr-n4 px-4 py-2 rounded-left-pill text-blue text-center"},[e._v(e._s(e.$t("Precio"))+" "+e._s(e.shoppingCartList.SYMBOL)+" "+e._s(e.calculateAmountByPassenger(r)))]),s("button",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"b-collapse-details-route-by-passenger"+r,expression:"'b-collapse-details-route-by-passenger'+index_pass"}],staticClass:"col-6 col-md-3 col-lg-3 rounded-pill px-3 btn btn-secondary text-center",attrs:{type:"button",id:"VerDetalles2"}},[s("span",{staticClass:"when-closed"},[e._v(e._s(e.$t("Ver Detalles"))),s("i",{staticClass:"far fa-angle-down ml-2"})]),s("span",{staticClass:"when-opened"},[e._v(e._s(e.$t("Ocultar detalles"))),s("i",{staticClass:"far fa-angle-up ml-2"})])])]),null!=e.shoppingCartList?s("b-collapse",{attrs:{id:"b-collapse-details-route-by-passenger"+r}},[s("div",{staticClass:"n-shopping"},[s("h5",{},[s("i",{staticClass:"far fa-map-marker-alt mr-1"}),e._v(e._s(e.$t("Información de Viaje:")))]),s("p",{staticClass:"text-blue mb-1"},[s("i",{staticClass:"far fa-arrow-circle-right mr-1"}),e._v(e._s(e.$t("Ida")))]),e._l(e.shoppingCartList.ow.PATH,(function(t,a){return[s("div",{key:a+"-detail-ow",staticClass:"row mx-lg-2 mb-3 align-items-center"},[s("div",{staticClass:"text-sm lh-120 col-12 col-lg-auto"},[s("p",{staticClass:"my-1"},[e._v(e._s(t.DEPARTURE_NAME))]),s("p",{directives:[{name:"show",rawName:"v-show",value:t.IS_DEPARTURE_SHUTTLE,expression:"path.IS_DEPARTURE_SHUTTLE"}],staticClass:"my-1 "},[e._v("( "+e._s(e.departureShuttle.label)+" )")]),s("p",{staticClass:"my-1"},[s("span",[s("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(t.DATE_DEPARTURE)))]),s("span",[s("i",{staticClass:"far fa-clock ml-3 mr-1"}),e._v(e._s(e.changeDateFormat(t.DATE_DEPARTURE,!0)))])])]),s("div",{staticClass:"col-lg-1 mb-n2 mb-lg-0 text-lg-center text-left"},[s("i",{staticClass:"d-none d-lg-block far fa-angle-right fa-2x"}),s("i",{staticClass:"d-lg-none far fa-angle-down"})]),s("div",{staticClass:"col-12 col-lg-auto text-sm lh-120"},[s("p",{staticClass:"my-1"},[e._v(e._s(t.ARRIVAL_NAME))]),s("p",{directives:[{name:"show",rawName:"v-show",value:t.IS_ARRIVAL_SHUTTLE,expression:"path.IS_ARRIVAL_SHUTTLE"}],staticClass:"my-1 "},[e._v("( "+e._s(e.arrivalShuttle.label)+" )")]),s("div",{staticClass:"my-1"},[s("span",[s("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(t.DATE_ARRIVAL)))]),s("span",[s("i",{staticClass:"far fa-clock mr-1 ml-3"}),e._v(e._s(e.changeDateFormat(t.DATE_ARRIVAL,!0)))])])]),s("div",{staticClass:"col-12 col-lg-2 text-lg lh-120 pt-1 pt-lg-0"},[s("p",{staticClass:"mt-1 mb-0 text-sm"},[e._v(" "+e._s(e.$t("Asiento"))+": ")]),s("div",{staticClass:"mt-0 mb-1"},[s("span",[s("svg",{staticClass:"mt-n1 mr-1",attrs:{width:"1rem",viewBox:"0 0 17.3 17.7"}},[s("g",{attrs:{id:"seat"}},[s("path",{attrs:{fill:"var(--base)",d:"M12.5,10.9c-1.2-0.2-2.4,0-3.6,0.4c-0.5,0.2-1.1,0.4-1.6,0.5c-0.3-1.4-0.6-2.8-0.9-4.2 C6.2,6.6,5.8,5.7,5.2,4.9C4.4,3.8,2.6,4.1,2,5.1c0,0.2,0,0.3,0,0.5c0.2,0.7,0.5,1.3,0.7,2c0.8,2.3,1.6,4.7,2.3,7 c0.2,0.5,0.5,0.7,1.1,0.7c1.8,0,3.5-0.1,5.3-0.1c0.8,0,1.5,0,2.3,0c0.9,0,1.2-0.2,1.5-1.2c0-0.1,0.1-0.2,0.1-0.3c0-0.2,0-0.5,0-0.7 C14.8,11.7,13.9,11,12.5,10.9z"}}),s("path",{attrs:{fill:"var(--base)",d:"M3.9,3.7c0.2-0.1,0.4-0.3,0.4-0.5c0.1-0.7,0.2-1.5,0.3-2.2C4.7,0.4,4.4,0,3.9,0C3.6,0,3.3,0,3,0 C2.4,0,2.1,0.3,2.1,0.9c0,0.4-0.1,0.9-0.1,1.3c0,0.3,0,0.6,0,0.9C2.4,3.7,3.3,4,3.9,3.7z"}}),s("path",{attrs:{fill:"var(--base)",d:"M13.3,16c-2.3,0-4.5,0-6.8,0c-0.1,0-0.2,0-0.3,0c0,0.6,0,1.1,0,1.7c0.6,0,1.1,0,1.7,0c1.8,0,3.6,0,5.4,0 c0.3,0,0.4-0.1,0.4-0.4c0-0.3,0-0.6,0-0.9C13.7,16.1,13.6,16,13.3,16z"}})])])]),s("span",{staticClass:"font-weight-700"},[e._v(e._s(t.SEATS[r].NUMBER_SEAT))])])])])]})),e.shoppingCartList.rw.PATH.length>0?s("hr",{staticClass:"border-top border-white mb-3"}):e._e(),e.shoppingCartList.rw.PATH.length>0?s("p",{staticClass:"text-blue mb-1"},[s("i",{staticClass:"far fa-arrow-circle-left mr-1"}
1),e._v(e._s(e.$t("Vuelta")))]):e._e(),e._l(e.shoppingCartList.rw.PATH,(function(t,a){return[s("div",{key:a+"-detail-rw"},[s("div",{staticClass:"row mx-lg-2 mb-3 align-items-center"},[s("div",{staticClass:"text-sm lh-120 col-12 col-lg-auto"},[s("p",{staticClass:"my-1"},[e._v(e._s(t.DEPARTURE_NAME))]),s("p",{staticClass:"my-1"},[s("span",[s("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(t.DATE_DEPARTURE)))]),s("span",[s("i",{staticClass:"far fa-clock mr-1 ml-3"}),e._v(e._s(e.changeDateFormat(t.DATE_DEPARTURE,!0)))])])]),s("div",{staticClass:"col-lg-1 mb-n2 mb-lg-0 text-lg-center text-left"},[s("i",{staticClass:"d-none d-lg-block far fa-angle-right fa-2x"}),s("i",{staticClass:"d-lg-none far fa-angle-down"})]),s("div",{staticClass:"col-12 col-lg-auto text-sm lh-120"},[s("p",{staticClass:"my-1"},[e._v(e._s(t.ARRIVAL_NAME))]),s("div",{staticClass:"my-1"},[s("span",[s("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(t.DATE_ARRIVAL)))]),s("span",[s("i",{staticClass:"far fa-clock mr-1 ml-3"}),e._v(e._s(e.changeDateFormat(t.DATE_ARRIVAL,!0)))])])]),s("div",{staticClass:"col-12 col-lg-2 text-lg lh-120 pt-1 pt-lg-0"},[s("p",{staticClass:"mt-1 mb-0 text-sm"},[e._v(" "+e._s(e.$t("Asiento"))+": ")]),s("div",{staticClass:"mt-0 mb-1"},[s("span",[s("svg",{staticClass:"mt-n1 mr-1",attrs:{width:"1rem",viewBox:"0 0 17.3 17.7"}},[s("g",{attrs:{id:"seat"}},[s("path",{attrs:{fill:"var(--base)",d:"M12.5,10.9c-1.2-0.2-2.4,0-3.6,0.4c-0.5,0.2-1.1,0.4-1.6,0.5c-0.3-1.4-0.6-2.8-0.9-4.2 C6.2,6.6,5.8,5.7,5.2,4.9C4.4,3.8,2.6,4.1,2,5.1c0,0.2,0,0.3,0,0.5c0.2,0.7,0.5,1.3,0.7,2c0.8,2.3,1.6,4.7,2.3,7 c0.2,0.5,0.5,0.7,1.1,0.7c1.8,0,3.5-0.1,5.3-0.1c0.8,0,1.5,0,2.3,0c0.9,0,1.2-0.2,1.5-1.2c0-0.1,0.1-0.2,0.1-0.3c0-0.2,0-0.5,0-0.7 C14.8,11.7,13.9,11,12.5,10.9z"}}),s("path",{attrs:{fill:"var(--base)",d:"M3.9,3.7c0.2-0.1,0.4-0.3,0.4-0.5c0.1-0.7,0.2-1.5,0.3-2.2C4.7,0.4,4.4,0,3.9,0C3.6,0,3.3,0,3,0 C2.4,0,2.1,0.3,2.1,0.9c0,0.4-0.1,0.9-0.1,1.3c0,0.3,0,0.6,0,0.9C2.4,3.7,3.3,4,3.9,3.7z"}}),s("path",{attrs:{fill:"var(--base)",d:"M13.3,16c-2.3,0-4.5,0-6.8,0c-0.1,0-0.2,0-0.3,0c0,0.6,0,1.1,0,1.7c0.6,0,1.1,0,1.7,0c1.8,0,3.6,0,5.4,0 c0.3,0,0.4-0.1,0.4-0.4c0-0.3,0-0.6,0-0.9C13.7,16.1,13.6,16,13.3,16z"}})])])]),s("span",{staticClass:"font-weight-700"},[e._v(e._s(t.SEATS[r].NUMBER_SEAT))])])])])])]}))],2)]):e._e(),s("div",{staticClass:"overflow-auto d-none"},[null!=e.shoppingCartList?s("b-collapse",{staticClass:"col-12 mt-4 mt-md-0 collapse-one-way-trip-stops",attrs:{id:"b-collapse-details-route-by-passenger"+r}},[s("p",{staticClass:"mt-2 mb-1 text-blue"},[s("i",{staticClass:"far fa-arrow-circle-right ml-n1 mr-2"}),e._v(e._s(e.$t("Paradas del viaje de ida")))]),e._l(e.shoppingCartList.ow.PATH,(function(t,i){return[s("div",{key:i+"-detail-ow",staticClass:"bg-white rounded-pill text-sm special-col my-2 mx-n2 p-1"},[s("div",{staticClass:"w-40 d-flex p-lr-small rutas-collapse"},[s("p",{staticClass:"w-45 p-0 text-limit m-0"},[e._v(e._s(t.DEPARTURE_NAME))]),s("i",{staticClass:"fa-angle-right far m-auto text-center text-blue w-5"}),s("p",{staticClass:"w-45 p-0 text-limit m-0"},[e._v(e._s(t.ARRIVAL_NAME))])]),s("div",{staticClass:"w-15 d-flex p-lr-small rutas-collapse"},[s("p",{staticClass:"p-0 text-limit m-auto"},[e._v(e._s(e.changeDateFormat(t.DATE_ARRIVAL)))])]),s("div",{staticClass:"w-10 d-flex p-lr-small rutas-collapse"},[s("p",{staticClass:"p-0 text-limit m-auto"},[e._v(e._s(e.changeDateFormat(t.DATE_ARRIVAL,!0)))])]),s("div",{staticClass:"w-10 d-flex p-lr-small rutas-collapse"},[s("div",{staticClass:"mr-2 bg-secondary text-center text-white rounded-circle",staticStyle:{"min-width":"25px","min-height":"25px"}},[s("img",{staticStyle:{width:"12px"},attrs:{src:a("e89b"),alt:""}})]),s("p",{staticClass:"m-0 text-blue font-weight-700"},[e._v(" "+e._s(t.SEATS[r].NUMBER_SEAT)+" ")])])])]})),e.shoppingCartList.rw.PATH.length>0?s("p",{staticClass:"mt-4 mb-1 text-blue"},[s("i",{staticClass:"far fa-arrow-circle-left ml-n1 mr-2"}),e._v(e._s(e.$t("Paradas del viaje de regreso")))]):e._e(),e._l(e.shoppingCartList.rw.PATH,(function(t,i){return[s("div",{key:i+"deatile-rw",staticClass:"bg-white rounded-pill text-sm special-col my-2 mx-n2 p-1"},[s("div",{staticClass:"w-40 d-flex p-lr-small rutas-collapse"},[s("p",{staticClass:"w-45 p-0 text-limit m-0"},[e._v(e._s(t.DEPARTURE_NAME))]),s("i",{staticClass:"fa-angle-right far m-auto text-center text-blue w-5"}),s("p",{staticClass:"w-45 p-0 text-limit m-0"},[e._v(e._s(t.ARRIVAL_NAME))])]),s("div",{staticClass:"w-15 d-flex p-lr-small rutas-collapse"},[s("p",{staticClass:"p-0 text-limit m-auto"},[e._v(e._s(e.changeDateFormat(t.DATE_ARRIVAL)))])]),s("div",{staticClass:"w-10 d-flex p-lr-small rutas-collapse"},[s("p",{staticClass:"p-0 text-limit m-auto"},[e._v(e._s(e.changeDateFormat(t.DATE_ARRIVAL,!0)))])]),s("div",{staticClass:"w-10 d-flex p-lr-small rutas-collapse"},[s("div",{staticClass:"mr-2 bg-secondary text-center text-white rounded-circle",staticStyle:{width:"25px",height:"25px"}},[s("img",{staticStyle:{width:"12px"},attrs:{src:a("e89b"),alt:""}})]),s("p",{staticClass:"m-0 text-blue font-weight-700"},[e._v(" "+e._s(t.SEATS[r].NUMBER_SEAT)+" ")])])])]}))],2):e._e()],1)],1)})),s("div",{staticClass:"col-12",staticStyle:{padding:"0 !important"}},[s("aditionalServicePayment",{attrs:{travels:this.shoppingCartList}})],1),s("h2",{staticClass:"text-blue font-weight-600 text-xl pt-5"},[s("i",{staticClass:"mr-2 far fa-credit-card"}),e._v(e._s(e.$t("Detalles del pago")))]),s("div",{staticClass:"special-col pt-4 pb-5 pb-lg-1"},[s("b-form-group",{staticClass:"text-blue",attrs:{label:e.$t("Opciones de pago o reserva")+":"}},[1==e.options.WEB_SALE_RESERVED.value?[s("b-form-radio",{staticClass:"text-secondary",attrs:{name:"some-radios",value:"3"},model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},[s("i",{staticClass:"fas fa-user-check font-weight-700 mr-1"}),e._v(e._s(e.$t("Reservar")))]),null!=e.shoppingCartList?s("div",{staticClass:"align-items-center ml-4 mb-2 py-2",staticStyle:{width:"30rem"},attrs:{id:"payment-points"}},[s("p",{staticClass:"text-secondary"},[e._v(e._s(e.$t("Tu viaje se mantendrá reservado por"))+" "),s("span",{staticClass:"text-blue"},[e._v(e._s(e.changeTimeReserve(e.options.WEB_CUSTOMERS_TIME_MAX_RESERVE.value)))])])]):e._e(
1)]:e._e(),1==e.options.SALES_PAYMENT_POINTS.value&&1==e.options.WEBSALE_FRECUENT_PASSENGER.value?[null!=e.getUser&&""==e.shoppingCartList.codecoupon?[e.getUser.pointsAvailable>=e.shoppingCartList.totalpoints.totalPointsConsume?[s("b-form-radio",{staticClass:"text-secondary",attrs:{name:"some-radios",value:"2"},model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},[s("i",{staticClass:"mr-1 far fa-trophy-alt"}),e._v(e._s(e.$t("Pagar con puntos")))]),null!=e.shoppingCartList?s("div",{staticClass:"row align-items-center border ml-4 mt-2 mb-4 py-2 widthpoint",attrs:{id:"payment-points"}},[s("div",{staticClass:"col-5 responsiveimg"},[s("div",{staticClass:"text-center"},[s("img",{staticStyle:{"max-width":"180px"},attrs:{src:"https://bogatiurns.com/wp-content/uploads/2016/11/Earn-Rewards-Points.gif"}})])]),s("div",{staticClass:"col-7 pt-3 responsivepoint"},[s("p",{staticClass:"text-secondary"},[e._v(e._s(e.$t("Puntos requeridos"))+":"),s("span",{staticClass:"text-blue ml-4"},[s("i",{staticClass:"fas far fa-trophy-alt mr-1"}),e._v(e._s(e.shoppingCartList.totalpoints.totalPointsConsume))]),s("br"),e._v("\n "+e._s(e.$t("Puntos Disponibles"))+": "),s("i",{staticClass:"fas far fa-trophy-alt mr-1 ml-3"}),e._v(e._s(e.getUser.pointsAvailable))])])]):e._e()]:e._e()]:e._e()]:e._e(),s("b-form-radio",{staticClass:"my-4 text-secondary",attrs:{name:"some-radios",value:"1"},model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},[s("i",{staticClass:"mr-1 far fa-credit-card"}),e._v(e._s(e.$t("Pagar con tarjeta de crédito")))]),null!=e.shoppingCartList?s("div",{staticClass:"mb-1 mb-lg-0",attrs:{id:"payment-card"}},[1==e.selected?[s("div",{staticClass:"form-check ml-1 my-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.customPassengercheck,expression:"customPassengercheck"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"defaultCheck1",value:"1",disabled:1!=e.selected},domProps:{checked:Array.isArray(e.customPassengercheck)?e._i(e.customPassengercheck,"1")>-1:e.customPassengercheck},on:{change:function(t){var a=e.customPassengercheck,s=t.target,r=!!s.checked;if(Array.isArray(a)){var i="1",n=e._i(a,i);s.checked?n<0&&(e.customPassengercheck=a.concat([i])):n>-1&&(e.customPassengercheck=a.slice(0,n).concat(a.slice(n+1)))}else e.customPassengercheck=r}}}),s("label",{staticClass:"w-100 form-check-label text-dark lh-100",attrs:{for:"defaultCheck1"}},[e._v(e._s(e.$t("Usar datos del pasajero"))+" \n "),s("b-form-select",{staticClass:"mx-2",staticStyle:{width:"6.5rem"},attrs:{size:"sm",disabled:!e.customPassengercheck||1!=e.selected},model:{value:e.selectPassengerCard,callback:function(t){e.selectPassengerCard=t},expression:"selectPassengerCard"}},[e._l(e.passengers,(function(t,a){return[e.showPassengerAvailable(t)?s("option",{key:a,domProps:{value:a+1}},[e._v(e._s(t.first_name))]):e._e()]}))],2),e._v(e._s(e.$t("para el pago"))+"\n ")],1)]),s("div",{staticClass:"special-col mt-4"},[s("div",{staticClass:"col-12 col-md-6 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":""!=e.errorsownernamecard}},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.ownernamecard,expression:"ownernamecard"},{name:"focus",rawName:"v-focus",value:"errorsownernamecard"==e.focus_error,expression:"focus_error == 'errorsownernamecard'"}],staticClass:"form-field__input",class:{"is-content":""!=e.ownernamecard},attrs:{id:"firstname-card",type:"text",value:"",autocomplete:"off"},domProps:{value:e.ownernamecard},on:{focus:function(t){e.focus_error="errorsownernamecard"},blur:function(t){e.focus_error=""},input:function(t){t.target.composing||(e.ownernamecard=t.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"firstname-card"}},[e._v(e._s(e.$t("Nombre(s)")))])]),""!=e.errorsownernamecard?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]),s("div",{staticClass:"col-12 col-md-6 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"
1is-invalid":""!=e.errorsownerlastnamecard}},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.ownerlastnamecard,expression:"ownerlastnamecard"},{name:"focus",rawName:"v-focus",value:"errorsownerlastnamecard"==e.focus_error,expression:"focus_error == 'errorsownerlastnamecard'"}],staticClass:"form-field__input",class:{"is-content":""!=e.ownerlastnamecard},attrs:{id:"secondname-card",type:"text",value:"",autocomplete:"off"},domProps:{value:e.ownerlastnamecard},on:{focus:function(t){e.focus_error="errorsownerlastnamecard"},blur:function(t){e.focus_error=""},input:function(t){t.target.composing||(e.ownerlastnamecard=t.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"secondname-card"}},[e._v(e._s(e.$t("Apellidos")))])]),""!=e.errorsownerlastnamecard?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]),s("div",{staticClass:"col-12 col-md-6 p-r-small position-relative"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":""!=e.errorsnumbercard}},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.numbercard,expression:"numbercard"},{name:"mask",rawName:"v-mask",value:{mask:e.themask,tokens:e.hexTokens},expression:"{ mask : themask, tokens: hexTokens }"},{name:"focus",rawName:"v-focus",value:"errorsnumbercard"==e.focus_error,expression:"focus_error == 'errorsnumbercard'"}],staticClass:"form-field__input",class:{"is-content":""!=e.numbercard},attrs:{id:"numbercard",maxlength:"19",type:"text",value:"",autocomplete:"off",placeholder:e.placeholdernumber},domProps:{value:e.numbercard},on:{focus:function(t){e.placeholdernumber="#### #### #### ####",e.focus_error="errorsnumbercard"},blur:function(t){e.placeholdernumber="",e.focus_error=""},input:function(t){t.target.composing||(e.numbercard=t.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"numbercard"}},[e._v(e._s(e.$t("Número de Tarjeta")))]),s("div",{staticClass:"card-img",class:e.typecard})]),""!=e.errorsnumbercard?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]),s("div",{staticClass:"col-6 col-md-3 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":""!=e.errorscardduedate}},[s("input",{directives:[{name:"focus",rawName:"v-focus",value:"errorscardduedate"==e.focus_error,expression:" focus_error == 'errorscardduedate' "},{name:"model",rawName:"v-model",value:e.cardduedate,expression:"cardduedate"},{name:"mask",rawName:"v-mask",value:"## / ####",expression:"'## / ####'"}],staticClass:"form-field__input",class:{"is-content":""!=e.cardduedate},attrs:{id:"datecard",type:"text",value:"",autocomplete:"off",placeholder:e.yearplaceholder},domProps:{value:e.cardduedate},on:{focus:function(t){e.yearplaceholder="MM / YYYY",e.focus_error="errorscardduedate"},blur:function(t){e.yearplaceholder="",e.focus_error=""},input:function(t){t.target.composing||(e.cardduedate=t.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"datecard"}},[e._v(e._s(e.$t("Fecha de Expiración")))])]),""!=e.errorscardduedate?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]),s("div",{staticClass:"col-6 col-md-3 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":""!=e.errorscardcvv}},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.cardcvv,expression:"cardcvv"},{name:"mask",rawName:"v-mask",value:"####",expression:"'####'"},{name:"focus",rawName:"v-focus",value:"errorscardcvv"==e.focus_error,expression:"focus_error == 'errorscardcvv'"}],staticClass:"form-field__input",class:{"is-content":""!=e.cardcvv},attrs:{id:"pass",type:"text",value:"",autocomplete:"off"},domProps:{value:e.cardcvv},on:{focus:function(t){e.focus_error="errorscardcvv"},blur:function(t){e.focus_error=""},input:function(t){t.target.composing||(e.cardcvv=t.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"pass"}},[e._v("CVV")]),s("a",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"bg-circle text-white bg-gray-600 cvv",attrs:{title:e.$t("CVV son los últimos tres dÃgitos en el reverso de su tarjeta de crédito.")}},[e._v("?")])]),""!=e.errorscardcvv?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"}
1)]):e._e()]),e.options.BILLING_ADDRESS_FRAUD_DETECTION.value?s("div",{staticClass:"col-12 col-md-6 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":""!=e.errorsowneraddresscard}},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.owneraddresscard,expression:"owneraddresscard"},{name:"focus",rawName:"v-focus",value:"errorsowneraddresscard"==e.focus_error,expression:"focus_error == 'errorsowneraddresscard'"}],staticClass:"form-field__input",class:{"is-content":""!=e.owneraddresscard},attrs:{id:"direction-card",type:"text",value:"",autocomplete:"off"},domProps:{value:e.owneraddresscard},on:{focus:function(t){e.focus_error="errorsowneraddresscard"},blur:function(t){e.focus_error=""},input:function(t){t.target.composing||(e.owneraddresscard=t.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"direction-card"}},[e._v(e._s(e.$t("Dirección")))])]),""!=e.errorsowneraddresscard?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]):e._e(),e.options.BILLING_ADDRESS_FRAUD_DETECTION.value?s("div",{staticClass:"col-12 col-md-6 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":""!=e.errorsownercitycard}},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.ownercitycard,expression:"ownercitycard"},{name:"focus",rawName:"v-focus",value:"errorsownercitycard"==e.focus_error,expression:"focus_error == 'errorsownercitycard'"}],staticClass:"form-field__input",class:{"is-content":""!=e.ownercitycard},attrs:{id:"ciudad-card",type:"text",value:"",autocomplete:"off"},domProps:{value:e.ownercitycard},on:{focus:function(t){e.focus_error="errorsownercitycard"},blur:function(t){e.focus_error=""},input:function(t){t.target.composing||(e.ownercitycard=t.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"ciudad-card"}},[e._v(e._s(e.$t("Ciudad")))])]),""!=e.errorsownercitycard?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]):e._e(),e.options.BILLING_ADDRESS_FRAUD_DETECTION.value?s("div",{staticClass:"col-12 col-md-6 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{options:e.countries,reduce:function(e){return e.value},placeholder:e.$t("PaÃs")},model:{value:e.ownercountrycard,callback:function(t){e.ownercountrycard=t},expression:"ownercountrycard"}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"},[e._v(e._s(e.$t("PaÃs")))]),""!=e.errorsownercountrycard?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()],1):e._e(),e.options.BILLING_ADDRESS_FRAUD_DETECTION.value&&"us"==e.ownercountrycard?s("div",{staticClass:"col-6 col-md-3 p-r-small"},[s("v-select",{staticClass:"form-passenger type-ticket-text",attrs:{options:e.states,reduce:function(e){return e.value},placeholder:e.$t("Estado")},model:{value:e.ownerstatecard,callback:function(t){e.ownerstatecard=t},expression:"ownerstatecard"}},[s("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.$t("Lo sentimos, no hay opciones de coincidencia")))])]),s("label",{staticClass:"form-field__label type-ticket-label"},[e._v(e._s(e.$t("Estado")))]),""!=e.errorsownerstatecard?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()],1):e._e(),"PE"!=e.ownercountrycard?s("div",{staticClass:"col-6 col-md-3 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":""!=e.errorsownerzipcodecard}},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.ownerzipcodecard,expression:"ownerzipcodecard"},{name:"focus",rawName:"v-focus",value:"errorsownerzipcodecard"==e.focus_error,expression:"focus_error == 'errorsownerzipcodecard'"}],staticClass:"form-field__input",class:{"is-content":""!=e.ownerzipcodecard},attrs:{id:"zipcode-card",type:"text",value:"",autocomplete:"off"},domProps:{value:e.ownerzipcodecard},on:{focus:function(t){e.focus_error="errorsownerzipcodecard"},blur:function(t){e.focus_error=""},input:function(t){t.target.composing||(e.ownerzipcodecard=t.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"zipcode-card"}},[e._v(e._s(e.$t("Código Postal:")))])]),""!=e.errorsownerzipcodecard?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"}
1)]):e._e()]):e._e(),e.options.PAGO_CULQI.value?s("div",{staticClass:"col-12 col-md-6 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":""!=e.errorsowneremailcard}},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.owneremailcard,expression:"owneremailcard"},{name:"focus",rawName:"v-focus",value:"errorsowneremailcard"==e.focus_error,expression:"focus_error == 'errorsowneremailcard'"}],staticClass:"form-field__input",class:{"is-content":""!=e.owneremailcard},attrs:{id:"card[email]",type:"text",value:"","data-culqi":"card[email]",autocomplete:"off"},domProps:{value:e.owneremailcard},on:{focus:function(t){e.focus_error="errorsowneremailcard"},blur:function(t){e.focus_error=""},input:function(t){t.target.composing||(e.owneremailcard=t.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"card[email]"}},[e._v(e._s(e.$t("Email")))])]),""!=e.errorsowneremailcard?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]):e._e(),e.options.PAGO_GLICPAY.value?s("div",{staticClass:"col-12 col-md-6 p-r-small"},[s("div",{staticClass:"form-field form-field__control",class:{"is-invalid":""!=e.errorsownernumdocumentcard}},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.ownernumdocumentcard,expression:"ownernumdocumentcard"},{name:"focus",rawName:"v-focus",value:"errorsownernumdocumentcard"==e.focus_error,expression:"focus_error == 'errorsownernumdocumentcard'"}],staticClass:"form-field__input",class:{"is-content":""!=e.ownernumdocumentcard},attrs:{id:"ownernumdocumentcard",type:"text",value:"",autocomplete:"off",maxlength:"8"},domProps:{value:e.ownernumdocumentcard},on:{focus:function(t){e.focus_error="errorsownernumdocumentcard"},blur:function(t){e.focus_error=""},keypress:e.onlyNumbers,input:function(t){t.target.composing||(e.ownernumdocumentcard=t.target.value)}}}),s("label",{staticClass:"form-field__label",attrs:{for:"ownernumdocumentcard"}},[e._v(e._s(e.$t("Número de Documento")))])]),""!=e.errorsownernumdocumentcard?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]):e._e()]),e.options.PAGO_CULQI.value?[s("div",{staticStyle:{display:"none"},attrs:{id:"formCulqi"}})]:e._e()]:e._e()],2):e._e(),1==e.selected&&1==e.options.WEBSALE_COUPON.value?s("div",{staticClass:"special-col pt-4 pb-1 position-relative"},[s("div",{staticClass:"col-12 pt-3 pb-2 px-0"},["napaway"!=e.skin?s("h6",{staticClass:"mb-0"},[s("i",{staticClass:"mr-1 far fa-gift-card"}),e._v(" "+e._s(e.$t("¿Tiene un cupón?")))]):s("h6",{staticClass:"mb-0"},[s("i",{staticClass:"mr-1 far fa-gift-card"}),e._v(" "+e._s(e.$t("¿Tiene un código promocional?")))])]),s("div",{staticClass:"col-12 col-lg-6 p-r-small"},[s("div",{staticClass:"form-field form-field__control"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.code_coupon,expression:"code_coupon"}],staticClass:"form-field__input",class:{"is-content":""!=e.code_coupon},attrs:{type:"text",value:"",id:"code_coupon",disabled:0!=e.shoppingCartList.applycoupon},domProps:{value:e.code_coupon},on:{keyup:function(t){if(!t.type.indexOf("key")&&13!==t.keyCode)return null;""!=e.code_coupon&&e.applyCoupon()},input:function(t){t.target.composing||(e.code_coupon=t.target.value)}}}),"napaway"!=e.skin?s("label",{staticClass:"form-field__label",attrs:{for:"code_coupon"}},[e._v(e._s(e.$t("Ingrese el cupón aquÃ")))]):s("label",{staticClass:"form-field__label",attrs:{for:"code_coupon"}},[e._v(e._s(e.$t("Ingrese el código promocional")))])]),e.errorrcode_coupon?s("span",{staticClass:"text-error2"},[s("i",{staticClass:"fas fa-exclamation-circle"})]):e._e()]),s("div",{staticClass:"col-12 text-center col-lg-auto pt-2"},[s("button",{staticClass:"btn btn-primary mb-3",attrs:{disabled:0!=e.shoppingCartList.applycoupon},on:{click:e.applyCoupon}},[e._v(e._s(e.$t("Validar")))]),s("button",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"coupon-delete",expression:"'coupon-delete'"}],staticClass:"btn mb-3",attrs:{disabled:0==e.shoppingCartList.applycoupon}},[s("i",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"far fa-trash cursor-pointer mr-0",attrs:{title:e.$t("Eliminar Cupón")}})])]),s("b-collapse",{staticClass:"row position-absolute bg-white m-auto w-100 text-center py-3",attrs:{id:"c
1oupon-delete"}},[s("div",{staticClass:"col"},[e._v("\n "+e._s(e.$t("¿Estas seguro que quieres eliminar el cupón?"))+"\n ")]),s("div",{staticClass:"col-auto"},[s("b-button",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"coupon-delete",expression:"'coupon-delete'"}],attrs:{variant:"danger",size:"sm"},on:{click:e.removeCoupon}},[e._v(e._s(e.$t("Si")))]),s("b-button",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"coupon-delete",expression:"'coupon-delete'"}],attrs:{variant:"light"}},[e._v("No")])],1)])],1):e._e(),1==e.options.WEB_SALE_CONFIRM_TERMS.value?s("div",{staticClass:"form-group form-check pl-0 mb-5"},[e.showTermsConditions?s("div",{ref:"termsConditions",staticClass:"lh-120 check-terms-conditions-flex",domProps:{innerHTML:e._s(e.termsConditions)}}):e._e()]):e._e()],2)],1),s("div",{staticClass:"mt-3 special-col align-items-center align-justify-right"},[s("div",{staticClass:"col align-items-center d-flex d-lg-block text-pay-total"},[s("h5",{staticClass:"text-pay-total-2 d-block m-auto mb-0 mb-lg-2 pr-3"},[e._v(e._s(e.$t("Total a Cobrar"))+": "),s("span",{staticClass:"text-green"},[e._v(e._s(e.shoppingCartList.SYMBOL)+" "+e._s((e.shoppingCartList.TOTAL+e.shoppingCartList.FEE).toFixed(2)))])])]),s("button",{staticClass:"btn-primary btn-pay-now rounded-pill px-4 ver-detalles text-uppercase",attrs:{disabled:e.isAjaxReponse},on:{click:function(t){return e.confirmationPayment()}}},[3!=e.selected?[e._v(" "+e._s(e.$t("Procesar pago")))]:[e._v(" "+e._s(e.$t("s_reserve")))],s("i",{staticClass:"fa-lock far ml-2 ml-lg-1"})],2)])],2):e._e(),null!=e.shoppingCartList?s("div",{staticClass:"col-lg-4 col-12 text-sm mb-4 d-none"},[s("h2",{staticClass:"text-blue font-weight-600 text-xl pb-3"},[s("i",{staticClass:"mr-2 far fa-shopping-cart"}),e._v(e._s(e.$t("Carrito de Compra")))]),s("div",{staticClass:"shopping"},[s("div",{staticClass:"shopping-top"},[s("p",{staticClass:"mb-2"},[s("strong",[e._v(e._s(e.$t("Información del viaje de Origen")))])]),s("div",{staticClass:"align-items-center d-flex mb-3 font-weight-600 justify-content-center lh-110 text-header-shopping-cart"},[s("div",{staticClass:"w-45"},[s("p",{staticClass:"m-0 mb-1"},[e._v(e._s(e.shoppingCartList.ow.DEPARTURE_NAME))]),s("p",{staticClass:"m-0 mr-2"},[s("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(e.shoppingCartList.ow.DATE_DEPARTURE)))])]),s("img",{staticClass:"mx-1 w-10 icon-bus-shopping-cart",attrs:{alt:"autobus",src:a("6a97")}}),s("div",{staticClass:"w-45"},[s("p",{staticClass:"m-0 mb-1"},[e._v(e._s(e.shoppingCartList.ow.ARRIVAL_NAME))]),s("p",{staticClass:"m-0 mr-2 d-block"},[s("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(e.shoppingCartList.ow.DATE_ARRIVAL)))])])]),s("div",{directives:[{name:"b-toggle",rawName:"v-b-toggle.shopping-box-1",modifiers:{"shopping-box-1":!0}}],staticClass:"icon-shopping-box-collapse d-block d-lg-none"},[e._m(0),e._m(1)])]),s("b-collapse",{staticClass:"shopping-box",attrs:{id:"shopping-box-1",visible:!e.isMobileData}},[e._l(e.showTicketsTypeByCartByTravel(e.shoppingCartList.ow.PATH),(function(t,a){return[s("div",{key:a+"-sh-ow",staticClass:"shopping-box-subtotal d-flex align-items-center"},[s("p",{staticClass:"m-0 p-0 col text-left"},[s("i",{staticClass:"far fa-ticket mr-2"}),e._v(e._s(t.type)+" x "+e._s(t.count))]),s("p",{staticClass:"m-0 p-0 col-auto text-right"},[e._v(e._s(e.shoppingCartList.SYMBOL)+" "+e._s(t.mount))])])]})),s("div",{staticClass:"shopping-box-detail"},[s("div",[s("h6",{staticClass:"text-blue my-0"},[e._v(e._s(e.$t("Información de Origen")))]),s("p",{staticClass:"mb-2"},[e._v(e._s(e.isMultiroute?e.shoppingCartList.ow.PATH[0].ADDRESS_DEPARTURE:e.shoppingCartList.ow.ADDRESS_DEPARTURE))]),s("div",{staticClass:"align-items-center d-flex text-xs justify-content-center lh-120 mt-1"},[s("p",{staticClass:"mr-2"},[s("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(e.shoppingCartList.ow.DATE_DEPARTURE)))]),s("p",[s("i",{staticClass:"far fa-clock"}),e._v(" "+e._s(e.changeDateFormat(e.shoppingCartList.ow.DATE_DEPARTURE,!0)))])])]),s("div",[s("i",{staticClass:"far fa-ellipsis-v-alt mb-3 text-blue"})]),s("div",[s("h6",{staticClass:"text-blue my-0"},[e._v(e._s(e.$t("Información de Retorno")))]),s("p",{staticClass:"mb-2"},[e._v(e._s(e.isMultiroute?e.shoppingCartList.ow.PATH[e.shoppingCartList.ow.PATH.length-1].ADDRESS_ARRIVAL:e.shoppingCartList.ow.ADDRESS_ARRIVAL))]),s("div",{staticClass:"align-items-center d-flex text-xs justify-content-center lh-120 mt-1"},[s("p",{staticClass:"mr-2"},[s("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(e.shoppingCartList.ow.DATE_ARRIVAL)))]),s("p",[s("i",{staticClass:"far fa-clock"}),e._v(" "+e._s(e.changeDateFormat(e.shoppingCartList.ow.DATE_ARRIVAL,!0)))])])])])],2),e.shoppingCartList.rw.PATH.length>0?[e.shoppingCartList.rw.PATH.length>0?s("div",{staticClass:"shopping-top-arrival"},[e._m(2),s("p",{staticClass:"mb-2"},[s("strong",[e._v(e._s(e.$t("Información del viaje de Retorno")))])]),s("div",{staticClass:"align-items-center d-flex font-weight-600 justify-content-center lh-110 text-header-shopping-cart"},[s("p",{staticClass:"w-45 m-0"},[e._v(e._s(e.shoppingCartList.rw.DEPARTURE_NAME))]),s("img",{staticClass:"mx-1 w-10 icon-bus-shopping-cart",staticStyle:{transform:"scale(-1,1)"},attrs:{alt:"autobus",src:a("6a97")}}),s("p",{staticClass:"w-45 m-0"}
1,[e._v(e._s(e.shoppingCartList.rw.ARRIVAL_NAME))])])]):e._e(),s("div",{staticClass:"d-block d-lg-none"},[s("div",{directives:[{name:"b-toggle",rawName:"v-b-toggle.shopping-box-2",modifiers:{"shopping-box-2":!0}}],staticClass:"icon-shopping-box-collapse"},[e._m(3),e._m(4)])]),e.shoppingCartList.rw.PATH.length>0?s("b-collapse",{staticClass:"shopping-box",attrs:{id:"shopping-box-2",visible:!e.isMobileData}},[e._l(e.showTicketsTypeByCartByTravel(e.shoppingCartList.rw.PATH),(function(t,a){return[s("div",{key:a+"-rw",staticClass:"shopping-box-subtotal d-flex align-items-center"},[s("p",{staticClass:"m-0 w-50 text-left"},[s("i",{staticClass:"far fa-ticket mr-2"}),e._v(e._s(t.type)+" x "+e._s(t.count))]),s("p",{staticClass:"m-0 w-50 text-right"},[e._v(e._s(e.shoppingCartList.SYMBOL)+" "+e._s(t.mount))])])]})),s("div",{staticClass:"shopping-box-detail"},[s("div",[s("h6",{staticClass:"text-blue my-0"},[e._v(e._s(e.$t("Información de Origen")))]),s("p",{staticClass:"mb-2"},[e._v(e._s(e.isMultiroute?e.shoppingCartList.rw.PATH[0].ADDRESS_DEPARTURE:e.shoppingCartList.rw.ADDRESS_DEPARTURE))]),s("div",{staticClass:"align-items-center d-flex text-xs justify-content-center lh-120 mt-1"},[s("p",{staticClass:"mr-2"},[s("i",{staticClass:"far fa-calendar"}),e._v(" "+e._s(e.$t("Origen"))+": "+e._s(e.changeDateFormat(e.shoppingCartList.rw.DATE_DEPARTURE)))]),s("p",[s("i",{staticClass:"far fa-clock"}),e._v(" "+e._s(e.changeDateFormat(e.shoppingCartList.rw.DATE_DEPARTURE,!0)))])])]),s("div",[s("i",{staticClass:"far fa-angle-down text-xl"})]),s("div",[s("h6",{staticClass:"text-blue my-0"},[e._v(e._s(e.$t("Información de Retorno")))]),s("p",{staticClass:"mb-2"},[e._v(e._s(e.isMultiroute?e.shoppingCartList.rw.PATH[e.shoppingCartList.rw.PATH.length-1].ADDRESS_ARRIVAL:e.shoppingCartList.rw.ADDRESS_ARRIVAL))]),s("div",{staticClass:"align-items-center d-flex text-xs justify-content-center lh-120 mt-1"},[s("p",{staticClass:"mr-2"},[s("i",{staticClass:"far fa-calendar"}),e._v(" "+e._s(e.$t("Destino"))+": "+e._s(e.changeDateFormat(e.shoppingCartList.rw.DATE_ARRIVAL)))]),s("p",[s("i",{staticClass:"far fa-clock"}),e._v(" "+e._s(e.changeDateFormat(e.shoppingCartList.rw.DATE_ARRIVAL,!0)))])])])])],2):e._e()]:e._e(),s("div",{staticClass:"shopping-footer d-none d-lg-block pt-3"},[e.shoppingCartList.DISCOUNT>0?s("div",{staticClass:"d-none d-lg-flex align-items-center shopping-box-subtotal m-4"},[s("p",{staticClass:"m-0 p-0 col text-left"},[s("i",{staticClass:"far fa-gift-card mr-2"}),e._v(e._s(e.$t("Descuento Cupón"))+" ")]),s("p",{staticClass:"m-0 p-0 col-4 text-right"},[e._v(e._s(e.shoppingCartList.SYMBOL)+" "+e._s(e.shoppingCartList.DISCOUNT.toFixed(2)))])]):e._e(),e.shoppingCartList.FEE>0?s("div",{staticClass:"d-none d-lg-flex align-items-center shopping-box-subtotal m-3 px-3"},[s("p",{staticClass:"m-0 p-0 col text-left"},[s("i",{staticClass:"far fa-gift-card mr-2"}),e._v(e._s(e.$t("Costo de Proceso"))+" ")]),s("p",{staticClass:"m-0 p-0 col-3 text-right"},[e._v(e._s(e.shoppingCartList.SYMBOL)+" "+e._s(e.shoppingCartList.FEE))])]):e._e(),s("div",{staticClass:"d-none d-lg-block shopping-total"},[s("h5",{staticClass:"d-inline-block pr-2"},[e._v(e._s(e.$t("Total a Cobrar"))+": ")]),s("h5",{staticClass:"d-inline-block text-green"},[s("small",[e._v(e._s(e.shoppingCartList.SYMBOL))]),e._v(e._s((e.shoppingCartList.TOTAL+e.shoppingCartList.FEE).toFixed(2)))])]),s("div",{staticClass:"d-flex justify-content-end"},[s("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"rounded-pill px-3 py-1 mr-4",attrs:{title:e.$t("Eliminar Carrito de compras"),variant:"light"},on:{click:function(t){return e.showModalCancelTravel()}}},[s("i",{staticClass:"far fa-trash"})])],1)])],2)]):e._e(),s("div",{staticClass:"col-lg-4 col-12"},[s("h2",{staticClass:"text-blue font-weight-600 text-xl pb-3"},[s("i",{staticClass:"mr-2 far fa-shopping-cart"}),e._v(e._s(e.$t("Carrito de Compra")))]),s("div",{staticClass:"n-shopping position-relative",class:{"bg-shopping-loading":e.shoppingCartLoaderActive}},[s("div",{staticClass:"position-absolute spinner-border spinner-border-md spinner-border-md-center",class:{"d-none":!e.shoppingCartLoaderActive}}),s("div",{class:{"opacity-2":e.shoppingCartLoaderActive}},[s("div",{},[s("h6",{staticClass:"text-capitalize text-blue"},[e._v(e._s(e.$t("Información del viaje de Origen")))]),null==e.shoppingCartList.ow.ID_DEPARTURE_NEAR?s("p",{staticClass:"m-0 font-weight-bolder"},[s("i",{staticClass:"itinerary-ico-path2 far fa-bus"}),e._v(e._s(e.shoppingCartList.ow.DEPARTURE_NAME))]):s("p",{staticClass:"m-0 font-weight-bolder"},[s("i",{staticClass:"itinerary-ico-path2 far fa-bus"}),e._v(e._s(e.shoppingCartList.ow.DEPARTURE_NEAR_NAME))]),s("div",{staticClass:"d-flex"},[s("p",{staticClass:"itinerary-terminal-line2"}),s("div",{staticClass:"text-sm lh-120"},[s("p",[e._v(e._s(e.isMultiroute?e.shoppingCartList.ow.PATH[0].ADDRESS_DEPARTURE:e.shoppingCartList.ow.ADDRESS_DEPARTURE))]),s("p",{directives:[{name:"show",rawName:"v-show",value:e.isMultiroute?e.shoppingCartList.ow.PATH[0].IS_DEPARTURE_SHUTTLE:e.shoppingCartList.ow.IS_DEPARTURE_SHUTTLE,expression:"(isMultiroute)? shoppingCartList.ow.PATH[0].IS_DEPARTURE_SHUTTLE : shoppingCartList.ow.IS_DEPARTURE_SHUTTLE"}]},[s("i",{staticClass:"far fa-shuttle-van mr-1"}),e._v("\n "+e._s(e.isMultiroute?e.shoppingCartList.ow.PATH[0].DEPARTURE_SHUTTLE:e.shoppingCartList.ow.DEPARTURE_SHUTTLE)+"\n ")]),s("p",{},[s("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.dayOfweek(e.shoppingCartList.ow.DATE_DEPARTURE))+" "+e._s(e.changeDateFormatDeparture(e.shoppingCartList.ow.DATE_DEPARTURE))+"\n "),s("i",{staticClass:"far fa-clock ml-3"}),e._v(" "+e._s(e.changeDateFormatDeparture(e.shoppingCartList.ow.DATE_DEPARTURE,!0))+"\n ")])])]),s("p",{staticClass:"m-0 font-weight-bold"},[s("i",{staticClass:"itinerary-ico-path2 far fa-map-marker-alt"}),e._v(e._s(e.shoppingCartList.ow.ARRIVAL_NAME))]),s("div",{staticClass:"d-flex"},[s("div",{staticClass:"text-sm lh-120",staticStyle:{"margin-left":"3em"}},[s("p",[e._v(e._s(e.isMultiroute?e.shoppingCartList.ow.PATH[e.shoppingCartList.ow.PATH.length-1].ADDRESS_ARRIVAL:e.shoppingCartList.ow.ADDRESS_ARRIVAL)),s("br")]),s("p",{directives:[{name:"show",rawName:"v-show",value:e.isMultiroute?e.shoppingCartList.ow.PATH[e.shoppingCartList.ow.PATH.length-1].IS_ARRIVAL_SHUTTLE:e.shoppingCartList.ow.IS_ARRIVAL_SHUTTLE,expression:"(isMultiroute)? shoppingCartList.ow.PATH[shoppingCartList.ow.PATH.length - 1].IS_ARRIVAL_SHUTTLE : shoppingCartList.ow.IS_ARRIVAL_SHUTTLE"}]},[s("i",{staticClass:"far fa-shuttle-van mr-1"}),e._v("\n "+e._s(e.isMultiroute?e.shoppingCartList.ow.PATH[e.shoppingCartList.ow.PATH.length-1].ARRIVAL_SHUTTLE:e.shoppingCartList.ow.ARRIVAL_SHUTTLE)+"\n ")]),s("p",[s("i",{staticClass:"far fa-calendar mr-1"}),e._v(" "+e._s(e.dayOfweek(e.shoppingCartList.ow.DATE_ARRIVAL))+" "+e._s(e.changeDateFormatArrival(e.shoppingCartList.ow.DATE_ARRIVAL))+"\n "),s("i",{staticClass:"far fa-clock ml-3"}),e._v(" "+e._s(e.changeDateFormatArrival(e.shoppingCartList.ow.DATE_ARRIVAL,!0)))])])]),e._l(e.showTicketsTypeByCartByTravel(e.shoppingCartList.ow.PATH),(function(t,a){return[s("div",{key:a+"-sh-ow",staticClass:"d-flex align-items-center text-blue"},[s("p",{staticClass:"px-0 col font-weight-bolder"},[s("i",{staticClass:"itinerary-ico-path far fa-ticket bg-white"}),e._v(e._s(t.type)+" x "+e._s(t.count))]),s("p",{staticClass:" col-auto font-weight-bolder text-right"},[e._v(e._s(e.shoppingCartList.SYMBOL)+" "+e._s(t.mount.toFixed(2)))])])]}))],2),e.shoppingCartList.rw.PATH.length>0?[s("div",[s("h6",{staticClass:"text-capitalize text-blue"},[e._v(e._s(e.$t("Información del viaje de Retorno")))]),s("p",{staticClass:"m-0 font-weight-bolder"},[s("i",{staticClass:"itinerary-ico-path2 far fa-bus"}),e._v(e._s(e.shoppingCartList.rw.DEPARTURE_NAME)+" ")]),s("div",{staticClass:"d-flex"},[s("p",{staticClass:"itinerary-terminal-line2"}),s("div",{staticClass:"text-sm lh-120"},[s("p",[e._v(e._s(e.isMultiroute?e.shoppingCartList.rw.PATH[0].ADDRESS_DEPARTURE:e.shoppingCartList.rw.ADDRESS_DEPARTURE))]),s("p",{},[s("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(e.shoppingCartList.rw.DATE_DEPARTURE))),s("i",{staticClass:"far fa-clock ml-3"}),e._v(" "+e._s(e.changeDateFormat(e.shoppingCartList.rw.DATE_DEPARTURE,!0)))])])]),null==e.shoppingCartList.rw.ID_ARRIVAL_NEAR?s("p",{staticClass:"m-0 font-weight-bold"},[s("i",{staticClass:"itinerary-ico-path2 far fa-map-marker-alt"}),e._v(e._s(e.shoppingCartList.rw.ARRIVAL_NAME)+" ")]):s("p",{staticClass:"m-0 font-weight-bold"},[s("i",{staticClass:"itinerary-ico-path2 far fa-map-marker-alt"}),e._v(e._s(e.shoppingCartList.rw.ARRIVAL_NEAR_NAME)+" ")]),s("div",{staticClass:"d-flex"},[s("div",{staticClass:"text-sm lh-120",staticStyle:{"margin-left":"3em"}},[s("p",[e._v(e._s(e.isMultiroute?e.shoppingCartList.rw.PATH[e.shoppingCartList.rw.PATH.length-1].ADDRESS_ARRIVAL:e.shoppingCartList.rw.ADDRESS_ARRIVAL)),s("br")]),s("p",[s("i",{staticClass:"far fa-calendar mr-1"}),e._v(e._s(e.changeDateFormat(e.shoppingCartList.rw.DATE_ARRIVAL))),s("i",{staticClass:"far fa-clock ml-3"}),e._v(" "+e._s(e.changeDateFormatArrival(e.shoppingCartList.rw.DATE_ARRIVAL,!0)))])])]),e._l(e.showTicketsTypeByCartByTravel(e.shoppingCartList.rw.PATH),(function(t,a){return[s("div",{key:a+"-rw",staticClass:"d-flex align-items-center text-blue"},[s("p",{staticClass:"px-0 col font-weight-bolder"},[s("i",{staticClass:"itinerary-ico-path far fa-ticket bg-white"}),e._v(e._s(t.type)+" x "+e._s(t.count))]),s("p",{staticClass:"col-auto font-weight-bolder text-right"},[e._v(e._s(e.shoppingCartList.SYMBOL)+" "+e._s(t.mount.toFixed(2)))])])]}
1))],2)]:e._e(),"lvs"==e.skin?[1==e.shoppingCartList.ow.DEPARTURE_NAME.includes("NV")||e.shoppingCartList.ow.DEPARTURE_NAME.includes("Las Vegas")?s("div",{staticClass:"ml-1"},[s("p",{staticClass:"px-0 col font-weight-bolder align-items-center"},[e._v(e._s(e.$t("Incluye impuestos y tarifas"))),s("i",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"info-taxes",expression:"'info-taxes'"}],staticClass:"cursor-pointer far fa-info-circle pl-2 mt-n1"})])]):e._e()]:e._e(),s("div",{staticClass:"mt-0"},[e.options.SALES_TRAVEL_SERVICE&&e.showServiceOw||e.options.SALES_TRAVEL_SERVICE&&e.showServiceRw?s("div",{staticClass:"d-flex align-items-center text-blue"},[s("p",{staticClass:"px-0 col font-weight-bolder my-1"},[s("i",{staticClass:"itinerary-ico-path icon-aditionalService2 "}),e._v(e._s(e.$t("Servicios adicionales"))+":")]),s("p",{staticClass:"col-auto font-weight-bolder text-right my-1"},[e._v(e._s(e.shoppingCartList.SYMBOL)+" "+e._s(e.shoppingCartList.ADDITIONAL_SERVICE.toFixed(2)))])]):e._e(),s("hr",{staticClass:"border-top border-primary border-dashed my-1"}),e.shoppingCartList.DISCOUNT>0?s("div",{staticClass:"d-flex align-items-center text-blue"},[s("p",{staticClass:"px-0 col font-weight-bolder my-1"},[s("i",{staticClass:"itinerary-ico-path far fa-percent bg-white"}),e._v(e._s(e.$t("Descuento Cupón"))+":")]),s("p",{staticClass:"col-auto font-weight-bolder text-right my-1"},[e._v(e._s(e.shoppingCartList.SYMBOL)+" "+e._s(e.shoppingCartList.DISCOUNT.toFixed(2)))])]):e._e(),e.shoppingCartList.FEE>0?s("div",{staticClass:"d-flex align-items-center text-blue"},[s("p",{staticClass:"px-0 col font-weight-bolder my-1 my-1"},[s("i",{staticClass:"itinerary-ico-path far fa-gift-card bg-white"}),e._v(e._s(e.$t("Costo de Proceso"))+":")]),s("p",{staticClass:"col-auto font-weight-bolder text-right my-1"},[e._v(e._s(e.shoppingCartList.SYMBOL)+" "+e._s(e.shoppingCartList.FEE.toFixed(2)))])]):e._e(),s("div",{staticClass:"d-flex align-items-center text-blue"},[s("p",{staticClass:"px-0 col font-weight-bolder text-uppercase my-1"},[s("i",{staticClass:"itinerary-ico-path far fa-shopping-cart bg-white"}),e._v(e._s(e.$t("Total a Cobrar"))+": ")]),s("p",{staticClass:"col-auto font-weight-bolder text-right my-1"},[e._v(e._s(e.shoppingCartList.SYMBOL)+" "+e._s((e.shoppingCartList.TOTAL+e.shoppingCartList.FEE).toFixed(2)))])]),s("div",{staticClass:"d-flex align-items-center justify-content-center text-blue"},[s("a",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"cursor-pointer",attrs:{title:e.$t("Eliminar Carrito de compras")},on:{click:function(t){return e.showModalCancelTravel()}}},[s("i",{staticClass:"itinerary-ico-path2 far fa-trash text-base"})])])])],2)])])])]),s("b-modal",{attrs:{id:"cancel-travel",size:"md","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.hide;return[s("div",{staticClass:"modal-body"},[s("div",[s("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return a()}}},[e._v("X")]),s("h4",{staticClass:"text-center ml-n3 mb-3 text-blue"},[s("i",{staticClass:"text-green px-3 far fa-surprise fa-2x"}),e._v(e._s(e.$t("¡Ups!")))]),s("div",{staticClass:"d-block text-center"},[s("p",[e._v(e._s(e.$t("¿Está seguro de que desea eliminar todos los viajes en su carrito de compras?")))])]),s("div",{staticClass:"d-block text-center"},[s("button",{staticClass:"mt-2 btn btn-light rounded-pill",attrs:{block:""},on:{click:function(t){return e.$bvModal.hide("cancel-travel")}}},[e._v(e._s(e.$t("No, quiero viajar!")))]),s("button",{staticClass:"mt-2 btn btn-danger rounded-pill",attrs:{block:""},on:{click:function(t){return e.cleanShoppinCart()}}},[e._v(e._s(e.$t("SÃ, Seguro")))])])],1)])]}}])}),s("b-modal",{attrs:{id:"bv-coupon-availible","hide-footer":"","hide-header":""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.hide;return[s("div",{staticClass:"modal-body"},[s("div",[s("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return a()}}},[e._v("X")]),s("h4",{staticClass:"text-center ml-n3 mb-3 text-blue"},[s("i",{staticClass:"text-green px-3 far fa-gift-card fa-2x"}),e._v(e._s(e.$t("Cupón no válido!")))]),s("div",{staticClass:"d-block text-center"},[s("p",[e._v(e._s(e.$t("Cupon no aplica a este tipo de venta, se han excedido los boletos a comprar o la fecha ha expirado.")))])]),s("div",{staticClass:"d-block text-center"},[s("button",{staticClass:"mt-2 btn btn-primary rounded-pill",attrs:{block:""},on:{click:function(t){return e.$bvModal.hide("bv-coupon-availible")}}}
1,[e._v(e._s(e.$t("Aceptar")))])])],1)])]}}])}),s("b-modal",{attrs:{id:"info-taxes","hide-footer":"","hide-header":""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.hide;return[s("div",{staticClass:"modal-body"},[s("div",[s("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return a()}}},[e._v("X")]),s("h4",{staticClass:"text-center ml-n3 mb-3 text-blue"},[e._v(e._s(e.$t("Información")))]),s("div",{staticClass:"d-block text-center"},[s("p",[s("b",[e._v(e._s(e.$t("Total de impuestos y tarifas (3%):"))+"   "+e._s(e.shoppingCartList.SYMBOL)+" "+e._s(3*e.shoppingCartList.TOTAL.toFixed(2)/100)+" ")])])]),s("div",{staticClass:"d-block text-center"},[s("button",{staticClass:"mt-2 btn btn-danger rounded-pill",attrs:{block:""},on:{click:function(t){return e.$bvModal.hide("info-taxes")}}},[e._v(e._s(e.$t("Aceptar")))])])],1)])]}}])})],1)},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",{staticClass:"when-closed"},[a("i",{staticClass:"far fa-chevron-double-down font-weight-600 text-blue "})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",{staticClass:"when-opened"},[a("i",{staticClass:"far fa-chevron-double-up font-weight-600 text-blue "})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shopping-top-arrival-divider d-flex"},[a("div",{staticClass:"shopping-circle-left"}),a("div",{staticClass:"shopping-top-line"}),a("div",{staticClass:"shopping-circle-right"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",{staticClass:"when-closed"},[a("i",{staticClass:"far fa-chevron-down pt-2 font-weight-600"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",{staticClass:"when-opened"},[a("i",{staticClass:"far fa-chevron-up pt-2 font-weight-600"})])}],i=(a("8e6e"),a("7618")),n=(a("96cf"),a("3b8d")),l=(a("456d"),a("7514"),a("ac4d"),a("8a81"),a("28a5"),a("bd86")),o=(a("a481"),a("ac6a"),a("7f7f"),a("c1df")),c=a.n(o),d=a("3e84"),u=a("2f62"),p=a("3a60"),m=a("2cbd"),v=a("0e0b"),h=a("f837"),f=a("934f"),_=a("7d03"),g=a("0c1a"),b=a("9029"),C=a("fa33"),w=a("ee9b"),y=a("ec45"),E=(a("411c"),a("53b4"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.dataServicesOw.length>0?a("div",{staticClass:"justify-content-star align-items-star"},[a("h2",{staticClass:"text-blue font-weight-600 text-xl pt-5"},[a("i",{staticClass:"mr-2 icon-aditionalService "}),e._v(e._s(e.$t("Servicios Adicionales"))+" "),e.shoppingCartList.rw.hasOwnProperty("INCLUDED_SERVICES")?a("span",[e._v("("+e._s(e.$t("Ida"))+")")]):e._e()]),e._l(e.dataServicesOw,(function(t,s){return a("div",{key:s,staticClass:"row mb-2 col-8 px-0"},[a("div",{staticClass:"col-md-6 col-5 pr-1 lh-100 pt-1",staticStyle:{"text-align":"left"}},[e._v("\n "+e._s(t.shortName)+"\n ")]),a("div",{staticClass:"col-md-2 col-3 px-1",staticStyle:{"text-align":"left"}},[e._v("\n $ "+e._s(t.price)+"\n ")]),a("div",{staticClass:"col-md-4 col-4 px-1"},[a("div",{staticClass:"add-service align-items-center justify-content-center",staticStyle:{display:"flex"}},[a("div",{staticClass:"minus-service text-blue text-center",class:{disabledBtn:0==t.quantity,aditionalBtn:t.quantity>0},on:{click:function(a){return e.addServiceShoppingCart(t.idIncludedServiceTravel,"less",t.quantity,e.shoppingCartList.ow.ID_TRAVEL,s)}}},[a("span",[e._v("-")])]),a("div",{staticClass:"number-service mr-3 ml-3 aditionalinptMonto text-center",attrs:{disabled:""}},[a("small",{staticClass:"text-capitalize"},[e._v(e._s(t.quantity))])]),a("div",{staticClass:"plus-service text-blue text-center",class:{disabledBtn:t.quantity==t.maxQuantity*e.selectSeatsOw[0].number,aditionalBtn:t.maxQuantity*e.selectSeatsOw[0].number>t.quantity},on:{click:function(a){return e.addServiceShoppingCart(t.idIncludedServiceTravel,"more",t.quantity,e.shoppingCartList.ow.ID_TRAVEL,s)}}},[a("span",[e._v("+")])]),a("div",{staticClass:"ml-2 small",class:{disabledBtn:0==t.quantity,aditionalBtn:t.quantity>0},staticStyle:{"border-top-right-radius":"5px","border-bottom-right-radius":"5px","text-align":"center"},on:{click:function(a){return e.addServiceShoppingCart(t.idIncludedServiceTravel,"trash",t.quantity,e.shoppingCartList.ow.ID_TRAVEL,s)}}},[a("i",{staticClass:"far fa-trash"})])])])])}))],2):e._e(),e.dataServicesRw.length>0?a("div",{staticClass:"justify-content-star align-items-star"},[a("h2",{staticClass:"text-blue font-weight-600 text-xl pt-3"},[a("i",{staticClass:"icon-aditionalService mr-2"}),e._v(e._s(e.$t("Servicios Adicionales"))+" ("+e._s(e.$t("Vuelta"))+")")]),e._l(e.dataServicesRw,(function(t,s){return a("div",{key:s,staticClass:"row mb-2 col-8 px-0"},[a("div",{staticClass:"col-md-6 col-5 pr-1 lh-100 pt-1",staticStyle:{"text-align":"left"}},[e._v("\n "+e._s(t.shortName)+"\n ")]),a("div",{staticClass:"text-capitalize col-md-2",staticStyle:{"text-align":"left"}},[e._v("\n $ "+e._s(t.price)+"\n ")]),a("div",{staticClass:"col-md-4 col-4 px-1"},[a("div",{staticClass:"add-service align-items-center justify-content-center",staticStyle:{display:"flex"}},[a("div",{staticClass:"minus-service text-blue text-center",class:{disabledBtn:0==t.quantity,aditionalBtn:t.quantity>0},on:{click:function(a){return e.addServiceShoppingCartRw(t.idIncludedServiceTravel,"less",t.quantity,e.shoppingCartList.rw.ID_TRAVEL,s)}}},[a("span",[e._v("-")])]),a("div",{staticClass:"number-service mr-3 ml-3 aditionalinptMonto text-center",attrs:{disabled:""}},[a("small",{staticClass:"text-capitalize"},[e._v(e._s(t.quantity))])]),a("div",{staticClass:"plus-service text-blue text-center",class:{disabledBtn:t.quantity==t.maxQuantity*e.selectSeatsRw[0].number,aditionalBtn:t.maxQuantity*e.selectSeatsRw[0].number>t.quantity},on:{click:function(a){return e.addServiceShoppingCartRw(t.idIncludedServiceTravel,"more",t.quantity,e.shoppingCartList.rw.ID_TRAVEL,s)}}},[a("span",[e._v("+")])]),a("div",{staticClass:"ml-2 small",class:{disabledBtn:0==t.quantity,aditionalBtn:t.quantity>0},staticStyle:{"border-top-right-radius":"5px","border-bottom-right-radius":"5px","text-align":"center"},on:{click:function(a){return e.addServiceShoppingCartRw(t.idIncludedServiceTravel,"trash",t.quantity,e.shoppingCartList.rw.ID_TRAVEL,s)}}},[a("i",{staticClass:"far fa-trash"})])])])])}))],2):e._e()])}),S=[];function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function T(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?A(Object(a),!0).forEach((function(t){Object(l["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):A(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var O={mounted:function(){if(this.travels.ow.hasOwnProperty("INCLUDED_SERVICES")){var e=[];this.travels.ow.INCLUDED_SERVICES.DETAILS.forEach((function(t){var a={};a.idIncludedServiceTravel=t.idIncludedServiceTravel,a.maxQuantity=t.maxQuantity,a.price=t.price,a.shortName=t.name,a.quantity=t.quantity,e.push(a)}));var t=e.filter((function(e){return e.quantity>0}));this.dataServicesOw=t,this.setAditionalServicesOw(t),this.setshowServiceOw(this.showDetailServicesOw())}if(this.travels.rw.hasOwnProperty("INCLUDED_SERVICES")){var a=[];this.travels.rw.INCLUDED_SERVICES.DETAILS.forEach((function(e){var t={};t.idIncludedServiceTravel=e.idIncludedServiceTravel,t.maxQuantity=e.maxQuantity,t.price=e.price,t.shortName=e.name,t.quantity=e.quantity,a.push(t)}));var s=a.filter((function(e){return e.quantity>0}));this.dataServicesRw=s,this.setAditionalServicesRw(s),this.setshowServiceRw(this.showDetailServicesRw())}},data:function(){return{dataServicesOw:[],dataServicesRw:[]}},props:["travels"],computed:T({},Object(u["c"])({idShoppingCart:"cart/shoppingCart",shoppingCartList:"cart/shoppingCartList",showServiceOw:"travels/showServiceOw",showServiceRw:"travels/showServiceRw",selectSeatsOw:"cart/selectSeatsOw",selectSeatsRw:"cart/selectSeatsRw",getAditionalServicesOw:"cart/getAditionalServicesOw",getAditionalServicesRw:"cart/getAditionalServicesRw"})),methods:T({},Object(u["b"])({setShoppingCartList:"cart/setShoppingCartList",setshowServiceOw:"travels/setshowServiceOw",setshowServiceRw:"travels/setshowServiceRw",setAditionalServicesOw:"cart/setAditionalServicesOw",setAditionalServicesRw:"cart/setAditionalServicesRw"}),{addServiceShoppingCart:function(e,t,a,s,r){var i,n=this;if("more"==t)this.dataServicesOw[r].maxQuantity*this.selectSeatsOw[0].number>this.dataServicesOw[r]["quantity"]&&(a++,i=this.createParamsService(this.idShoppingCart,e,s,this.selectSeatsOw[0].number,a),this.$http.post("shoppingcart/addIncludedService",i).then((function(e){n.dataServicesOw[r].quantity=a,n.setShoppingCartList(e.data.data),n.setshowServiceOw(n.showDetailServicesOw()),n.ow=n.showDetailServicesOw()})).catch((function(e){n.$eventBus.$emit("loadError",Object(v["b"])(e))})));else if("less"==t){var l;this.dataServicesOw[r]["quantity"]>0&&(a--,l=this.createParamsService(this.idShoppingCart,e,s,this.selectSeatsOw[0].number,a),this.$http.post("shoppingcart/addIncludedService",l).then((function(e){n.dataServicesOw[r].quantity=a,n.setShoppingCartList(e.data.data),n.setshowServiceOw(n.showDetailServicesOw()),n.ow=n.showDetailServicesOw()})).catch((function(e){n.$eventBus.$emit("loadError",Object(v["b"])(e))})))}else if("trash"==t){var o;if(this.dataServicesOw[r]["quantity"]>0)a=0,o=this.createParamsService(this.idShoppingCart,e,s,this.selectSeatsOw[0].number,a),this.$http.post("shoppingcart/addIncludedService",o).then((function(e){n.dataServicesOw[r].quantity=0,n.setShoppingCartList(e.data.data),n.setshowServiceOw(n.showDetailServicesOw()),n.ow=n.showDetailServicesOw()})).catch((function(e){n.$eventBus.$emit("loadError",Object(v["b"])(e))}))}},addServiceShoppingCartRw:function(e,t,a,s,r){var i,n=this;if("more"==t)this.dataServicesRw[r].maxQuantity*this.selectSeatsRw[0].number>this.dataServicesRw[r]["quantity"]&&(a++,i=this.createParamsService(this.idShoppingCart,e,s,this.selectSeatsRw[0].number,a),this.$http.post("shoppingcart/addIncludedService",i).then((function(e){n.dataServicesRw[r].quantity=a,n.setShoppingCartList(e.data.data),n.setshowServiceRw(n.showDetailServicesRw()),n.rw=n.showDetailServicesRw()})).catch((function(e){n.$eventBus.$emit("loadError",Object(v["b"])(e))})));else if("less"==t){var l;this.dataServicesRw[r]["quantity"]>0&&(a--,l=this.createParamsService(this.idShoppingCart,e,s,this.selectSeatsRw[0].number,a),this.$http.post("shoppingcart/addIncludedService",l).then((function(e){n.dataServicesRw[r].quantity=a,n.setShoppingCartList(e.data.data),n.setshowServiceRw(n.showDetailServicesRw()),n.rw=n.showDetailServicesRw()})).catch((function(e){n.$eventBus.$emit("loadError",Object(v["b"])(e))})))}else if("trash"==t){var o;if(this.dataServicesRw[r]["quantity"]>0)a=0,o=this.createParamsService(this.idShoppingCart,e,s,this.selectSeatsRw[0].number,a),this.$http.post("shoppingcart/addIncludedService",o).then((function(e){n.dataServicesRw[r].quantity=a,n.setShoppingCartList(e.data.data),n.setshowServiceRw(n.showDetailServicesRw()),n.rw=n.showDetailServicesRw()})).catch((function(e){n.$eventBus.$emit("loadError",Object(v["b"])(e))}))}},createParamsService:function(e,t,a,s,r){var i={ID_SHOPPING_CART:e,ID_INCLUDED_SERVICE_TRAVEL:t,ID_TRAVEL:a,SEATS:s,QUANTITY:r};return i},showDetailServicesOw:function(){for(var e,t,a=0;a<this.shoppingCartList.ow.INCLUDED_SERVICES.DETAILS.length;a++)for(var s in e=this.shoppingCartList.ow.INCLUDED_SERVICES.DETAILS[a],e){if(e.quantity>0)return t=!0,t;0==e.quantity&&(t=!1)}return t},showDetailServicesRw:function(){for(var e,t,a=0;a<this.shoppingCartList.rw.INCLUDED_SERVICES.DETAILS.length;a++)for(var s in e=this.shoppingCartList.rw.INCLUDED_SERVICES.DETAILS[a],e){if(e.quantity>0)return t=!0,t;0==e.quantity&&(t=!1)}return t}})},R=O,x=a("2877"),D=Object(x["a"])(R,E,S,!1,null,null,null),P=D.exports;function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function k(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?L(Object(a),!0).forEach((function(t){Object(l["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):L(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var I={headers:{"Content-Type":"application/x-www-form-urlencoded"}},N={name:"Payment",components:{qwBreadcrumbs:m["a"],vuejsDatepicker:C["a"],DatePicker:y["a"],aditionalServicePayment:P},directives:{mask:p["mask"],focus:h["focus"]},data:function(){return{errors:new Object,hexTokens:{F:{pattern:/(\d{1,9})/}},themask:"FFFF",themaskRuc:"FFFFFFFFFFF",fncard:new Object,numbercard:"",ownernamecard:"",ownerlastnamecard:"",cardduedate:"",cardcvv:"",owneraddresscard:"",ownercitycard:"",ownercountrycard:"",ownerstatecard:"",ownerzipcodecard:"",owneremailcard:"",ownernumdocumentcard:"",ownertoken:"",errorsnumbercard:"",errorsownernamecard:"",errorscardduedate:"",errorscardcvv:"",errorsownerlastnamecard:"",errorsowneraddresscard:"",errorsownercitycard:"",errorsownercountrycard:"",errorsownerstatecard:"",errorsownerzipcodecard:"",errorsowneremailcard:"",errorsownernumdocumentcard:"",customPassengercheck:!1,selectPassengerCard:null,code_coupon:"",errorrcode_coupon:!1,optionsTypesTicket:[],optionsDocTypes:[],children_optionsDoctypes:[],optionsNationality:[],children_optionsNationality:[],officeDepartures:[],officeArrivals:[],typecard:"",yearplaceholder:"",selectItem:null,selected:1,selected1:"",focus_error:"",placeholdernumber:"",passengers:[],isinfant:0,domicilioFiscal:null,razonSocial:"",code_dicount_disabled:!1,changelang:g["a"].locale,languages:w,optionsCountries:[],children_optionsCountries:[],optionsStates:_,children_optionsStates:_,isMobileData:b["isMobile"],disableddate:{to:new Date(this.$moment().format("YYYY-MM-DD")),dates:[]},disabledDate:{from:new Date(this.$moment().format("YYYY-MM-DD")),dates:[]},shoppingCartLoaderActive:!1,isAjaxReponse:!1}},created:function(){null!=this.shoppingCart||null!=this.shoppingCartList?this.options.PAGO_CULQI.value&&(window.Culqi.publicKey=this.options.CULQI_PUBLIC_KEY.value,window.Culqi.init()):this.$router.push({name:"home"})},mounted:function(){var e=this;if(this.ownercountrycard=this.options.PAIS_RESIDENTE.value,scroll(0,0),this.setOtptionsForm(null),null!=this.shoppingCartList&&(this.code_coupon=this.shoppingCartList.codecoupon),this.$eventBus.$on("languages",(function(t){e.changelang=t.langs})),null==this.optionsform)this.$http.post("options/getOptionsFormPassenger",{},I).then((function(t){var a=[],s=t.data.data;e.setOtptionsForm(s),e.optionsTypesTicket=e.optionsform.TICKETS_TYPE.map((function(e){return{value:e,label:e.value}}));var r=s.countrys.map((function(e){return{value:e.idCountry,label:e.name+" - "+e.codeThree,visa:e.visaWaiver,code:e.codeThree}}));if(e.optionsCountries=r,e.children_optionsCountries=r,"NONE"!=e.options.SALE_PASSANGER_INFO_COMPLEMENTARY.value)e.optionsDocTypes=f,e.children_optionsDoctypes=f;else if("1"==e.options.WEB_SALE_FORM_SHOW_DOC_TYPE.value)if("PE"==e.options.PAIS_RESIDENTE.value){var i=[];s.docsTypes.forEach((function(e){"DNI"!=e.value&&"PASAPORTE"!=e.value&&"CARNET"!=e.value||i.push(e)})),e.optionsDocTypes=i,e.children_optionsDoctypes=i}else e.optionsDocTypes=s.docsTypes,e.children_optionsDoctypes=s.docTypes;s.saleMultipleOffice&&e.$http.post("shoppingcart/listOfficeToBoarding",{ID_DEPARTURE:e.storeDeparture.value,ID_ARRIVAL:e.storeArrival.value,ID_TEMPBUSCEL:e.shoppingCartList.ow.PATH[0].SEATS[0].ID_TEMPBUSCEL},I).then((function(t){var a=t.data.data;a.length>0&&a.forEach((function(t){t.label=t.officeName,t.value=t.idOffice,"Arrival"===t.typeBoarding?e.officeArrivals.push(t):"Departure"===t.typeBoarding&&e.officeDepartures.push(t)}))})).catch((function(t){e.$eventBus.$emit("loadError",Object(v["b"])(t)),e.setLoading({state:!1,msg:"",class:"fa-credit-card"})}));for(var n=0;n<e.selectSeatsOw[0].number;n++){var l={};e.optionsTypesTicket.length>0?(l.passenger=n,l.type_ticket=e.optionsTypesTicket[0]):l.passenger=n,l.numberDocType="",l.id_passenger=null,l.first_name="",l.last_name="",l.sexo="",l.email="",l.cellphone="",l.phone="",l.with_child=!1,l.checkRuc=!1,l.company_ruc="",l.company_name="",l.company_address="";for(var o=0,c=0,d=0;d<e.shoppingCartList.ow.PATH.length;d++)o+=e.shoppingCartList.ow.PATH[d].SEATS[n].SUBTOTAL;if("undefined"!=typeof e.shoppingCartList.rw)for(var u=0;u<e.shoppingCartList.rw.PATH.length;u++)c+=e.shoppingCartList.rw.PATH[u].SEATS[n].SUBTOTAL;l.total_mount=o+c,l.phonemask="### ### ### ###",a.push(l),e.$eventBus.$emit("isShowFare",{show:!1,formpass:!0})}if(null!=e.getUser){a[0].id_passenger=e.getUser.idUser,a[0].first_name=e.getUser.firstName,a[0].last_name=e.getUser.lastName,a[0].isFrecuentPassenger=e.getUser.isFrecuentPassenger,a[0].cod=e.getUser.code,a[0].email=e.getUser.email,a[0].phone=String(e.getUser.phone);var p=e.optionsform.TICKETS_TYPE.filter((function(t){return t.id==e.getUser.idTicketType}));if(a[0].type_ticket={value:p[0],label:p[0].value},e.changeTicketType(a[0].type_ticket,0),1==e.options.WEB_SALE_FORM_SHOW_DOB.value){var m=e.$moment(e.getUser.dob,"YYYY-MM-DD").format(e.options.DATE_FORMAT_CALENDAR.value.toUpperCase());a[0].dateBirth=m.replace(/-/g,"/")}
1e.options.WEB_SALE_FORM_SHOW_SEX.value&&(a[0].sexo=e.getUser.sex),a[0].student=e.getUser.codeStudent}e.passengers=a,e.setLoading({state:!1,msg:"",class:"fa-credit-card"})})).catch((function(t){e.$eventBus.$emit("loadError",Object(v["b"])(t)),e.setLoading({state:!1,msg:"",class:"fa-credit-card"})}));else{if(this.optionsCountries=this.optionsform.countrys.map((function(e){return{value:e.idCountry,label:e.name+" - "+e.codeThree,visa:e.visaWaiver,code:e.codeThree}})),"NONE"!=this.options.SALE_PASSANGER_INFO_COMPLEMENTARY.value)this.optionsDocTypes=f,this.children_optionsDoctypes=f;else if("1"==this.options.WEB_SALE_FORM_SHOW_DOC_TYPE.value)if("PE"==this.options.PAIS_RESIDENTE.value){var t=[];optionsForm.docsTypes.forEach((function(e,a){"DNI"!=e.value&&"PASAPORTE"!=e.value&&"CARNET"!=e.value||t.push(e)})),this.optionsDocTypes=t,this.children_optionsDoctypes=t}else this.optionsDocTypes=optionsForm.docsTypes,this.children_optionsDoctypes=optionsForm.docsTypes;this.setLoading({state:!1,msg:"",class:"fa-credit-card"})}"orange"==this.skin&&(fbq("track","InitiateCheckout"),gtag("event","InitiateCheckout",{event_category:"Conversion",event_label:"Web"}),gtag("event","conversion",{send_to:"AW-10819213565/RPckCKCdmYkDEP2xgKco"}))},computed:k({showTermsConditions:function(){return""!=this.termsConditions}},Object(u["c"])({getUser:"auth/user",options:"options/listoptions",optionsform:"options/listoptionsform",termsConditions:"options/termsConditions",countries:"options/countries",states:"options/states",optLang:"options/lang",skin:"options/skin",shoppingCart:"cart/shoppingCart",shoppingCartList:"cart/shoppingCartList",selectSeatsOw:"cart/selectSeatsOw",maxSeatSelected:"cart/maxSeatSelected",numberSelectSeats:"cart/numberSelectSeats",selectSeatsRw:"cart/selectSeatsRw",isMultiroute:"cart/isMultiroute",way:"search/way",departureShuttle:"search/departureShuttle",arrivalShuttle:"search/arrivalShuttle",storeDeparture:"search/departure",storeArrival:"search/arrival",previewBusTravel:"travels/previewBusTravel",selectTravel:"travels/selectTravel",showServiceOw:"travels/showServiceOw",showServiceRw:"travels/showServiceRw",restartTravels:"travels/restartState"})),methods:k({formTokenCulqi:function(){var e=document.querySelector("#formCulqi");e.innerHTML="";var t=this.owneremailcard,a=this.numbercard.split(" ").join(""),s=this.cardcvv,r=this.cardduedate.replace(/ /g,"").split("/"),i=r[0],n=r[1],l=null,o=null,c=null,d=null,u=null;return l=document.createElement("input"),l.setAttribute("type","text"),l.setAttribute("data-culqi","card[email]"),l.setAttribute("id","card[email]"),l.value=t,o=document.createElement("input"),o.setAttribute("type","text"),o.setAttribute("data-culqi","card[number]"),o.setAttribute("id","card[number]"),o.value=a,c=document.createElement("input"),c.setAttribute("type","text"),c.setAttribute("data-culqi","card[cvv]"),c.setAttribute("id","card[cvv]"),c.value=s,d=document.createElement("input"),d.setAttribute("type","text"),d.setAttribute("data-culqi","card[exp_month]"),d.setAttribute("id","card[exp_month]"),d.value=i,u=document.createElement("input"),u.setAttribute("type","text"),u.setAttribute("data-culqi","card[exp_year]"),u.setAttribute("id","card[exp_year]"),u.value=n,e.appendChild(l),e.appendChild(o),e.appendChild(c),e.appendChild(d),e.appendChild(u),window.Culqi.createToken(),new Promise((function(e){setTimeout((function(){window.Culqi.token&&e(window.Culqi.token.id)}),2500)}))},onlyNumbers:function(e){(e.keyCode<48||e.keyCode>57)&&e.preventDefault()},isLetter:function(e){var t=String.fromCharCode(e.keyCode);if(/^[a-zA-Z ]+$/.test(t))return!0;e.preventDefault()},formatCalendar:function(){var e=this.options.DATE_FORMAT_CALENDAR.value,t=e.replace(/-/g,"/");return t},formtatMask:function(){var e=this.options.DATE_FORMAT_CALENDAR.value.toUpperCase(),t={D:"#",M:"#",Y:"#"},a=e;a=a.replace(/[DMY]/g,(function(e){return t[e]}));var s=a.replace(/-/g,"/"),r=s;return r},changeTimeReserve:function(e){var t=e/60,a=e%60,s=parseInt(t)+" "+this.$t("Horas"),r=0==a?"":" "+parseInt(a)+" "+this.$t("Minutos");return s+r},changeDateFormat:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return c()(e).format(t?"h:mm a":this.options.DATE_FORMAT_CALENDAR.value.toUpperCase())},dayOfweek:function(e){return c()(e).format("dddd")},changeDateFormatDeparture:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.shoppingCartList.ow.ID_DEPARTURE_NEAR,s=this.shoppingCartList.ow.TIME_DEPARTURE_NEAR;if(""!=a&&null!=a){var r=Math.floor(s/60),i=s%60,n=c()(e),l=n.subtract(r,"hours").subtract(i,"minutes"),o=c()(l).format(t?"h:mm a":this.options.DATE_FORMAT_CALENDAR.value.toUpperCase());return o}return c()(e).format(t?"h:mm a":"LL")},changeDateFormatArrival:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.shoppingCartList.rw.ID_ARRIVAL_NEAR,s=this.shoppingCartList.rw.TIME_ARRIVAL_NEAR;if(""!=a&&null!=a){var r=Math.floor(s/60),i=s%60,n=c()(e),l=n.add(r,"hours").add(i,"minutes"),o=c()(l).format(t?"h:mm a":this.options.DATE_FORMAT_CALENDAR.value.toUpperCase());return o}return c()(e).format(t?"h:mm a":"LL")},showTicketsTypeByCartByTravel:function(e){var t=[],a=!0,s=!1,r=void 0;try{for(var i,n=e[Symbol.iterator]();!(a=(i=n.next()).done);a=!0){var l=i.value;t=t.concat(l.SEATS)}}catch(c){s=!0,r=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}var o=t.map((function(a){return{id:a.ID_TYPE_TICKET,type:a.TYPE_TICKET,count:e[0].SEATS.filter((function(e){return e.ID_TYPE_TICKET==a.ID_TYPE_TICKET})).length,mount:t.filter((function(e){return e.ID_TYPE_TICKET==a.ID_TYPE_TICKET})).map((function(e){return e.SUBTOTAL})).reduce((function(e,t){return e+t}))}}));return o=o.filter((function(e,t,a){return a.map((function(e){return e.id})).indexOf(e.id)===t})),o},calculateYearsOld:function(e){var t=new c.a,a=new c.a(e,this.options.DATE_FORMAT_CALENDAR.value.toUpperCase());return t.diff(a,"years")},changeDateDOB:function(e,t){var a=this;if(1==this.options.WEB_SALE_FORM_SHOW_DOB.value){var s=this.options.WEBSALE_MINIMUM_AGE_ALONE.value,r=this.calculateYearsOld(this.passengers[t].dateBirth);if(r>120)return this.$eventBus.$emit("loadError",{msg:this.$t("La fecha de nacimiento no es valida")}),delete this.passengers[t].dateBirth,this.buildErrorDateBirthTemp(t),!1;if(1==e.value.needAgeRange){if(!(r>=e.value.minAgeRange&&r<=e.value.maxAgeRange))return this.$eventBus.$emit("loadError",{msg:this.$t("La fecha de nacimiento no coincide con el ticket seleccionado")}),delete this.passengers[t].dateBirth,this.buildErrorDateBirthTemp(t),!1}else if(1==this.passengers.length){if(r<s)return this.$eventBus.$emit("loadError",{msg:this.$t("La edad mÃnima para comprar boletos es de :year años").replace(":year",s)}),delete this.passengers[t].dateBirth,this.buildErrorDateBirthTemp(t),!1}else{s=this.options.WEBSALE_MINIMUM_AGE_ATTORNEY.value;var i=this.passengers.filter((function(e){var t=a.calculateYearsOld(e.dateBirth);if(t>=s)return!0}));if(!(i.length>0)&&r<s)return this.$eventBus.$emit("loadError",{msg:this.$t("Menores de edad deben viajar acompañados por un adulto mayor o igual a :year años, primero registre al adulto").replace(":year",s)}),delete this.passengers[t].dateBirth,this.buildErrorDateBirthTemp(t),!1}this.buildErrorDateBirthTemp(t,!0)}},buildErrorDateBirthTemp:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=JSON.parse(JSON.stringify(this.errors));if(t)delete a["dateBirth_"+e];else{var s=new Object;s["dateBirth_"+e]="error temp",Object.assign(a,s)}this.errors=a}
1,calculateAmountByPassenger:function(e){var t=0,a=!0,s=!1,r=void 0;try{for(var i,n=this.shoppingCartList.ow.PATH[Symbol.iterator]();!(a=(i=n.next()).done);a=!0){var l=i.value;t+=l.SEATS[e].SUBTOTAL}}catch(v){s=!0,r=v}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}var o=!0,c=!1,d=void 0;try{for(var u,p=this.shoppingCartList.rw.PATH[Symbol.iterator]();!(o=(u=p.next()).done);o=!0){var m=u.value;t+=m.SEATS[e].SUBTOTAL}}catch(v){c=!0,d=v}finally{try{o||null==p.return||p.return()}finally{if(c)throw d}}return t},calculateMount:function(e){return e.map((function(e){return e.SUBTOTAL})).reduce((function(e,t){return e+t}))},searchPassengerFreq:function(e,t){var a=this,s={CODE_PASSENGER:e};this.$http.post("user/searchPassengerFrequent",s,I).then((function(e){var s=e.data.data,r=a.optionsTypesTicket.find((function(e){return e.value.id==s.idTicketType}));a.passengers[t].type_ticket={},a.passengers[t].type_ticket=r,a.changeTicketType(a.passengers[t].type_ticket,t),a.passengers[t].id_passenger=s.id,a.passengers[t].first_name=s.firstName,a.passengers[t].last_name=s.lastName,a.passengers[t].isFrecuentPassenger=s.isFrecuentPassenger,null!=s.document&&(a.passengers[t].numberDocType=s.document,a.passengers[t].doctype=s.documentType),a.options.WEB_SALE_FORM_SHOW_PHONE.value&&(
1a.passengers[t].phone=s.hasOwnProperty("phone")&&null!=s.phone?String(s.phone):""),a.options.WEB_SALE_FORM_SHOW_CELLPHONE.value&&(a.passengers[t].cellphone=s.hasOwnProperty("cellphone")&&null!=s.cellphone?String(s.cellphone):""),s.isStudent&&(a.passengers[t].student=s.stud_code),a.options.WEB_SALE_FORM_SHOW_SEX.value&&(a.passengers[t].sexo=s.sex),a.options.WEB_SALE_FORM_SHOW_EMAIL.value&&(a.passengers[t].email=s.email)})).catch((function(e){a.cleanPassangerForm(t),a.$eventBus.$emit("loadError",Object(v["b"])(e)),a.setLoading({state:!1,msg:"",class:"fa-credit-card"})}))},searchStudent:function(e,t){var a=this,s={CODE_STUDENT:e};this.$http.post("user/searchStudentByCode",s,I).then((function(e){var s=e.data.data;a.passengers[t].cod=s.pas_code?s.pas_code:"",a.passengers[t].id_passenger=s.id,a.passengers[t].isStudent=s.isStudent,a.passengers[t].first_name=s.firstName,a.passengers[t].last_name=s.lastName,a.options.WEB_SALE_FORM_SHOW_PHONE.value&&(a.passengers[t].phone=s.hasOwnProperty("phone")&&null!=s.phone?String(s.phone):""),a.options.WEB_SALE_FORM_SHOW_CELLPHONE.value&&(
1a.passengers[t].cellphone=s.hasOwnProperty("cellphone")&&null!=s.cellphone?String(s.cellphone):""),a.options.WEB_SALE_FORM_SHOW_SEX.value&&(a.passengers[t].sexo=s.sex),a.options.WEB_SALE_FORM_SHOW_EMAIL.value&&(a.passengers[t].email=s.email),null!=s.document&&(a.passengers[t].numberDocType=s.document,a.passengers[t].doctype=s.documentType)})).catch((function(e){a.cleanPassangerForm(t),a.$eventBus.$emit("loadError",Object(v["b"])(e)),a.setLoading({state:!1,msg:"",class:"fa-credit-card"})}))},cleanPassangerForm:function(e){if(this.passengers[e].hasOwnProperty("isFrecuentPassenger")&&this.passengers[e].isFrecuentPassenger&&this.passengers[e].id_passenger||this.passengers[e].hasOwnProperty("isStudent")&&this.passengers[e].isStudent&&this.passengers[e].id_passenger)for(var t in this.passengers[e])"type_ticket"!=t&&(this.passengers[e][t]="first_name"!=t&&"last_name"!=t&&"cod"!=t&&"email"!=t&&"student"!=t?null:"")},changeTicketType:function(e,t){var a=this;this.shoppingCartLoaderActive=!0,e.value.showMessage&&(this.$eventBus.$emit("messageTicketType",{message:e.value.msgText}),this.$bvModal.show("bv-modal-message-type-ticket"));for(var s={headers:{"Content-Type":"application/x-www-form-urlencoded"}},r=JSON.parse(JSON.stringify(this.shoppingCartList)),i=[],n=0;n<r.ow.PATH.length;n++)i.push(r.ow.PATH[n].SEATS[t].ID_TEMPBUSCEL);for(var l=0;l<r.rw.PATH.length;l++)i.push(r.rw.PATH[l].SEATS[t].ID_TEMPBUSCEL);var o={ID_SHOPPINGCART:this.shoppingCart,A_SEATS:i,ID_TICKET_TYPE:e.value.id};o=Object(v["d"])(o),this.$http.post("shoppingcart/changeTypeTicket",o,s).then((function(e){var t=e.data.data;a.setShoppingCartList(t),a.setLoading({state:!1,msg:"",class:"fa-credit-card"}),a.shoppingCartLoaderActive=!1})).catch((function(e){a.$eventBus.$emit("loadError",Object(v["b"])(e)),a.setLoading({state:!1,msg:"",class:"fa-credit-card"}),a.shoppingCartLoaderActive=!1}))},validationCreditCardForm:function(){var e=!0,t=Object(v["e"])(this.options,this.ownernamecard,this.ownerlastnamecard,this.numbercard,this.cardduedate,this.cardcvv,this.fncard,this.owneraddresscard,this.ownercitycard,this.ownercountrycard,this.ownerstatecard,this.ownerzipcodecard,this.owneremailcard,this.ownernumdocumentcard);if(this.options.PAGO_CULQI.value&&(this.errorsowneremailcard=t.errorsowneremailcard),this.options.PAGO_GLICPAY.value&&(this.errorsownernumdocumentcard=t.errorsownernumdocumentcard),this.options.BILLING_ADDRESS_FRAUD_DETECTION.value&&(this.errorsowneraddresscard=t.errorsowneraddresscard,this.errorsownercitycard=t.errorsownercitycard,this.errorsownercountrycard=t.errorsownercountrycard,this.errorsownerstatecard=t.errorsownerstatecard),"PE"!=this.ownercountrycard.value&&(this.errorsownerzipcodecard=t.errorsownerzipcodecard),this.errorsownernamecard=t.errorsownernamecard,this.errorsownerlastnamecard=t.errorsownerlastnamecard,this.errorsnumbercard=t.errorsnumbercard,this.errorscardduedate=t.errorscardduedate,this.errorscardcvv=t.errorscardcvv,t.err){for(var a in t)if("err"!=a&&""!=t[a]){this.focus_error=a;break}e=!1}return e},validationTerms:function(){if(1==this.options.WEB_SALE_CONFIRM_TERMS.value&&this.showTermsConditions&&1!=this.$refs.termsConditions.children.termAndConditions.checked)throw this.$t("Aceptar los Términos y Condiciones")},verifyForm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e){var t=e.split("_");if("phone"==t[0]){var a=new d["a"](this.options.DATE_FORMAT.value);a.input(this.passengers[t[1]].phone);var s=a.template;this.passengers[t[1]].phonemask="undefined"!=typeof s?s.replace(/x/g,"#"):"### ### ### ###"}}else Object.keys(this.errors).length>0&&(this.errors=new Object,this.errors=Object(v["c"])(this.passengers,this.options))},validationPassengersForm:function(){if(this.errors=new Object,this.errors=Object(v["c"])(this.passengers,this.options,this.loadSalePassegerInfoComplementary()),Object.keys(this.errors).length>0)for(var e in this.$scrollTo("#passengers",300,{offset:110,force:!0}),this.errors)throw this.$eventBus.$emit("loadError",{msg:this.$t(this.errors[e])}),this.$t(this.errors[e])},confirmationPayment:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,s,r,i,n,l,o,d,u,p,m,h,f=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.isAjaxReponse){e.next=2;break}return e.abrupt("return");case 2:if(e.prev=2,this.setLoading({state:!0,msg:this.$t("Procesando Pago"),class:"fa-credit-card"}),this.validationPassengersForm(),1!=this.selected){e.next=11;break}if(t=this.validationCreditCardForm(),t){e.next=11;break}return this.setLoading({state:!1,msg:"",class:"fa-credit-card"}),this.qwsetstateOption(3),e.abrupt("return");case 11:if(this.validationTerms(),this.isAjaxReponse=!0,a=this.loadSalePassegerInfoComplementary(),s=this.passengers.map((function(e){var t=new Object;return t.ID_PASS=e.id_passenger,t.FIRST_NAME=e.first_name,t.LAST_NAME=e.last_name,t.ID_TICKET_TYPE=e.type_ticket.value.id,f.options.WEB_SALE_FORM_SHOW_PHONE.value&&(t.PHONE="undefined"!=typeof e.phone?e.phone:null),f.options.WEB_SALE_FORM_SHOW_CELLPHONE.value&&(t.CELLPHONE="undefined"!=typeof e.cellphone?e.cellphone:null),f.options.WEB_SALE_FORM_SHOW_DOB.value&&(t.DATE_BIRTHDAY="undefined"!=typeof e.dateBirth?c()(e.dateBirth,f.options.DATE_FORMAT_CALENDAR.value).format("YYYY-MM-DD"):null),f.options.WEB_SALE_FORM_SHOW_EMAIL.value&&(t.EMAIL="undefined"!=typeof e.email?e.email:null),f.options.WEB_SALE_FORM_SHOW_SEX.value&&(t.SEX="undefined"!=typeof e.sexo?e.sexo:null),(f.options.WEB_SALE_FORM_SHOW_DOC_TYPE.value||a)&&(t.DOC_TYPE="undefined"!=typeof e.doctype?e.doctype.value:null,t.DOC_NUM="undefined"!=typeof e.numberDocType?e.numberDocType:null),f.options.WEBSALE_FRECUENT_PASSENGER.value&&(t.CODE="undefined"!=typeof e.cod?e.cod:null),f.options.WEB_SALE_COUNT_LUGGAGE.value&&(t.C_LUGGAGE="undefined"!=typeof e.luggage?e.luggage:null),f.options.REGISTRO_INFORMACION_RUC_COMPANY.value&&"PE"==f.options.PAIS_RESIDENTE.value&&e.checkRuc&&(t.COMPANY_RUC="undefined"!=typeof e.company_ruc?e.company_ruc:null,t.COMPANY_NAME="undefined"!=typeof e.company_name?e.company_name:null,t.COMPANY_ADDRESS="undefined"!=typeof e.company_address?e.company_address:null),a&&(t.C_CODEZIP="undefined"!=typeof e.code_zip?e.code_zip:null,t.C_COUNTRY_CITIZENSHIP="undefined"!=typeof e.nationality?e.nationality.value:null,t.C_COUNTRY_RESIDENCE="undefined"!=typeof e.residency?e.residency.value:null,t.C_ADDRESS="undefined"!=typeof e.address_pasp?e.address_pasp:null,t.C_CITY="undefined"!=typeof e.city?e.city:null,t.C_STATE="undefined"!=typeof e.state_pasp?e.state_pasp.value:null,t.C_COUNTRY_ISSUE="undefined"!=typeof e.issuing_country?e.issu
1ing_country.value:null,t.C_DATEXPIRED="undefined"!=typeof e.expiredDate?c()(e.expiredDate).format("YYYY-MM-DD"):null),f.options.REGISTRO_INFORMACION_INFANTE.value&&e.with_child&&(t.WITH_CHILD=e.with_child,t.FNAME_CHILD=e.children_first_name,t.LNAME_CHILD=e.children_last_name,f.options.WEB_SALE_FORM_SHOW_DOC_TYPE.value&&(t.DOCTYPE_CHILD="undefined"!=typeof e.children_doctype?e.children_doctype.value:null,t.DOCNUMBER_CHILD="undefined"!=typeof e.children_numberDocType?e.children_numberDocType:null),f.options.WEB_SALE_FORM_SHOW_SEX.value&&(t.GENDER_CHILD="undefined"!=typeof e.children_sexo?e.children_sexo:null),a&&(t.IDCOUNTRYPASSPORT_CHILD="undefined"!=typeof e.children_issuing_country?e.children_issuing_country.value:null,t.PASSPORTDATEEXPIRED_CHILD="undefined"!=typeof e.children_expiredDate?c()(e.children_expiredDate).format("YYYY-MM-DD"):null,t.CITYZENSHIPCOUNTRY_CHILD="undefined"!=typeof e.children_nationality?e.children_nationality.value:null,t.RESIDENCECOUNTRY_CHILD="undefined"!=typeof e.children_residency?e.children_residency.value:null,t.ADDRESS_CHILD="undefined"!=typeof e.children_address_pasp?e.children_address_pasp:null,t.CITY_CHILD="undefined"!=typeof e.children_city?e.children_city:null,t.STATE_CHILD="undefined"!=typeof e.children_state_pasp?e.children_state_pasp.value:null,t.ZIPCODE_CHILD="undefined"!=typeof e.children_code_zip?e.children_code_zip:null)),t.showInfoTravel=a,t})),r=this.cardduedate.split("/"),i=this.numbercard.split(" "),n={A_DATA:s,ID_SHOPPINGCART:this.shoppingCart,CARD_NUM:i.join(""),CARD_EXP_Y:"undefined"==typeof r[1]?"":r[1],CARD_EXP_M:r[0],CARD_TYPE:"undefined"==typeof this.fncard.type?"":this.fncard.type,CARD_CVV:this.cardcvv,FIRST_NAME:this.ownernamecard,LAST_NAME:this.ownerlastnamecard,EMAIL:"undefined"==typeof s[0].EMAIL?"":s[0].EMAIL,DOC_TYPE:"undefined"==typeof s[0].DOC_TYPE?"":s[0].DOC_TYPE,NRO_DOCUMENT:"undefined"==typeof s[0].DOC_NUM?"":s[0].DOC_NUM,PHONE:"undefined"==typeof s[0].PHONE?"":s[0].PHONE,LANG:this.optLang+"-quatrobus"},"pe"!=this.ownercountrycard&&(n.ZIPCODE=this.ownerzipcodecard),this.options.BILLING_ADDRESS_FRAUD_DETECTION.value&&(n.ADDRESS=this.owneraddresscard,n.CITY=this.ownercitycard,n.STATE=this.ownerstatecard,n.COUNTRY=this.ownercountrycard),1==this.selected&&this.options.PAGO_GLICPAY.value&&(n.NRO_DOCUMENT=this.ownernumdocumentcard),1!=this.selected||!this.options.PAGO_CULQI.value){e.next=28;break}return e.next=24,this.formTokenCulqi();case 24:l=e.sent,this.ownertoken=l,n.TOKEN=this.ownertoken,n.EMAIL=this.owneremailcard;case 28:return n=Object(v["d"])(n),2==this.selected&&(n.IS_POINTS=!0),o=this.passengers.map((function(e){return{ID_TICKET_TYPE:e.type_ticket.value.id,DATE_BIRTHDAY:"undefined"!=typeof e.dateBirth?c()(e.dateBirth,f.options.DATE_FORMAT_CALENDAR.value).format("YYYY-MM-DD"):null}})),d={DATA_PASSENGERS:o,ID_SHOPPINGCART:this.shoppingCart,LANG:this.optLang+"-quatrobus"},e.next=34,this.wsTicketTypeValidation(d);case 34:return e.next=36,this.wsCompletepurchase(n);case 36:if(u=e.sent,null==this.getUser||!this.options.SALES_PAYMENT_POINTS.value){e.next=46;break}return e.next=40,this.wsGetPointsUser({user_id:this.getUser.idUser});case 40:p=e.sent,m=p.data.data,h=JSON.parse(JSON.stringify(this.getUser)),h.pointsAvailable=m[0].pointsAvailable,h.pointsUsed=m[0].pointsUsed,this.setAuth({USER:h});case 46:this.isAjaxReponse=!1,this.qwsetstateOption(4),this.setTransaction(u.data.data),this.setPassengers(this.passengers),this.$eventBus.$emit("timerCart",{istimer:!1}),this.$router.push({path:"confirmationpayment"}),this.setLoading({state:!1,msg:"",class:"fa-credit-card"}),e.next=61;break;case 55:e.prev=55,e.t0=e["catch"](2),this.isAjaxReponse=!1,this.setLoading({state:!1,msg:"",class:"fa-credit-card"}),this.$eventBus.$emit("loadError",Object(v["b"])(e.t0)),this.qwsetstateOption(3);case 61:case"end":return e.stop()}}),e,this,[[2,55]])})));function t(){return e.apply(this,arguments)}return t}(),removePassengerFromTravel:function(e){var t=this;this.shoppingCartLoaderActive=!0;for(var a=JSON.parse(JSON.stringify(this.shoppingCartList)),s=new Array,r=new Array,i=new Array,n=new Array,l=new Array,o=0;o<a.ow.PATH.length;o++)s.push({ID_TRAVEL:a.ow.PATH[o].ID_TRAVEL,ID_SEAT:a.ow.PATH[o].SEATS[e].ID_BUSCEL,ROUNDTRIP:1,NUMBER_FLOOR:a.ow.PATH[o].SEATS[e].NUMBER_FLOOR}
1),a.ow.PATH[o].SEATS.forEach((function(t,a){a!==e&&r.push({seat:t.ID_TEMPBUSCEL,idTicketType:t.ID_TYPE_TICKET})}));for(var c=0;c<a.rw.PATH.length;c++)s.push({ID_TRAVEL:a.rw.PATH[c].ID_TRAVEL,ID_SEAT:a.rw.PATH[c].SEATS[e].ID_BUSCEL,ROUNDTRIP:2,NUMBER_FLOOR:a.rw.PATH[c].SEATS[e].NUMBER_FLOOR}),a.rw.PATH[c].SEATS.forEach((function(t,a){a!==e&&r.push({seat:t.ID_TEMPBUSCEL,idTicketType:t.ID_TYPE_TICKET})}));r.forEach((function(e){i.push(e.idTicketType)})),n=i.filter((function(e,t,a){return a.indexOf(e)===t})),n.forEach((function(e){var a={ID_SHOPPING_CART:t.shoppingCartList.ID_SHOPPING_CART,ID_TICKET_TYPE:e,A_SEATS:[]};r.forEach((function(t){e==t.idTicketType&&a.A_SEATS.push(t.seat)})),l.push(a)}));var d={A_TRAVELS:s,ID_SHOPPINGCART:this.shoppingCartList.ID_SHOPPING_CART,DATA_TYPE_TICKETS_UPDATE:l};localStorage.getItem("expirationData")&&localStorage.removeItem("expirationData"),this.$http.post("shoppingcart/removePassenger",d,I).then((function(a){t.$root.$emit("bv::toggle::collapse","passenger-delete-"+e);for(var r=JSON.parse(JSON.stringify(t.previewBusTravel)),i=0;i<s.length;i++)for(var n=0;n<r.length;n++)for(var l=0;l<r[n].detail[s[i].NUMBER_FLOOR].length;l++)for(var o=0;o<r[n].detail[s[i].NUMBER_FLOOR][l].length;o++)r[n].detail[s[i].NUMBER_FLOOR][l][o].seatId===s[i].ID_SEAT&&(r[n].detail[s[i].NUMBER_FLOOR][l][o].type=10,r[n].detail[s[i].NUMBER_FLOOR][l][o].typeCode="FREE_SEAT");t.setpreviewBusTravel(r);var c=JSON.parse(JSON.stringify(t.passengers));c.splice(e,1);var d=JSON.parse(JSON.stringify(t.selectSeatsOw));if(d=d.map((function(e){return e.number-=1,e})),d=d.filter((function(e){if(e.number>0)return e})),null!=t.selectSeatsRw){var u=JSON.parse(JSON.stringify(t.selectSeatsRw));u=u.map((function(e){return e.number-=1,e})),u=u.filter((function(e){if(e.number>0)return e})),t.setSelectedSeatsRw(u)}0==d.length?(t.passengers=[],t.cleanShoppinCart(),t.$router.push({name:"home"}),window.location.href=window.location.origin,t.setShoppingCartList(null)):(t.setPassengers(c),t.passengers=c,t.setShoppingCartList(a.data.data),t.setSelectedSeatsOw(d)),t.setpreviewBusTravel(null),t.shoppingCartLoaderActive=!1})).catch((function(e){t.$eventBus.$emit("loadError",Object(v["b"])(e)),t.setLoading({state:!1,msg:"",class:"fa-credit-card"}),t.shoppingCartLoaderActive=!1}))},showModalCancelTravel:function(){this.$bvModal.show("cancel-travel")},cleanShoppinCart:function(){var e=this;this.setLoading({state:!0,msg:this.$t("Estás siendo redirigido a la página de búsqueda."),class:"fa-route"});var t={headers:{"Content-Type":"application/x-www-form-urlencoded"}},a={ID_SHOPPINGCART:this.shoppingCartList.ID_SHOPPING_CART,ROUND:1==this.shoppingCartList.TYPE_WAY?0:1};this.$http.post("shoppingcart/cleanShoppingCart",a,t).then((function(){e.$bvModal.hide("cancel-travel"),e.$router.push({name:"home"}),e.restartTravels(),e.setpreviewBusTravel(null),e.setSelectedSeatsOw(null),e.setSelectedSeatsRw(null),e.setShoppingCart(null),e.setShoppingCartList(null),e.setNumberSelectedSeats(null),e.setPassengers(null),e.setSelectTravel({KEY_TRAVEL_RW:null}),e.setSelectTravel({KEY_TRAVEL_OW:null}),e.setLoading({state:!1,msg:"",class:"fa-route"})})).catch((function(t){e.error=Object(v["b"])(t),e.$refs["m-error"].show(),e.setLoading({state:!1,msg:"",class:"fa-route"})}))},applyCoupon:function(){var e=this;if(this.errorrcode_coupon=!1,""!=this.code_coupon){this.setLoading({state:!0,msg:"",class:"fa-credit-card"});var t={headers:{"Content-Type":"application/x-www-form-urlencoded"}},a={ID_SHOPPING_CART:this.shoppingCartList.ID_SHOPPING_CART,CODE:this.code_coupon};this.$http.post("shoppingcart/applyCoupon",a,t).then((function(t){var a=t.data.data;1==a.applycoupon?e.setShoppingCartList(a):(e.code_coupon="",e.$bvModal.show("bv-coupon-availible")),e.setLoading({state:!1,msg:"",class:"fa-credit-card"})})).catch((function(t){e.$eventBus.$emit("loadError",Object(v["b"])(t)),e.setLoading({state:!1,msg:"",class:"fa-credit-card"})}))}else this.errorrcode_coupon=!0},searchPassenger:function(e){var t=this;"PE"==this.options.PAIS_RESIDENTE.value&&this.passengers[e].hasOwnProperty("doctype")&&"DNI"==this.passengers[e].doctype.value&&this.passengers[e].numberDocType.length<this.passengers[e].lengthdoctype&&(this.passengers[e].id_passenger=null,this.passengers[e].first_name="",this.passengers[e].last_name="",this.passengers[e].sexo=null,this.passengers[e].email="",this.passengers[e].cellphone=""),"PE"==this.options.PAIS_RESIDENTE.value&&this.passengers[e].hasOwnProperty("doctype")&&"DNI"==this.passengers[e].doctype.value&&this.passengers[e].numberDocType.length==this.passengers[e].lengthdoctype&&this.$http.post("user/searchPassengerDocument",{term:this.passengers[e].numberDocType},I).then((function(a){var s=a.data.data;null==s.firstname?(t.passengers[e].id_passenger=null,t.passengers[e].first_name="",t.passengers[e].last_name="",t.passengers[e].sexo=null,t.passengers[e].email="",t.passengers[e].cellphone=""):(t.passengers[e].id_passenger=s.idPassenger,t.passengers[e].first_name=s.firstname,t.passengers[e].last_name=s.lastname,t.passengers[e].sexo=s.genre,t.passengers[e].email="",t.passengers[e].cellphone=s.cellphone)}))},searchCompanyRuc:function(e){var t,a=this,s=document.getElementById("company_ruc"+e),r=document.getElementById("company_name"+e),i=document.getElementById("company_address"+e);t=s.value;var n={term:t};11==t.length&&this.$http.post("company/searchCompanyRuc",n,I).then((function(t){var s=t.data.data;
1s.hasOwnProperty("code")&&441==s.code?(r.removeAttribute("readonly"),i.removeAttribute("readonly"),a.passengers[e].company_name="",a.passengers[e].company_address=""):(r.readOnly=!0,i.readOnly=!0,a.passengers[e].company_name=s.name,a.passengers[e].company_address=s.addressLine1)})).catch((function(e){a.$eventBus.$emit("loadError",Object(v["b"])(e)),a.setLoading({state:!1,msg:"",class:"fa-credit-card"})}))},removeCoupon:function(){var e=this,t={headers:{"Content-Type":"application/x-www-form-urlencoded"}},a={ID_SHOPPING_CART:this.shoppingCartList.ID_SHOPPING_CART};this.setLoading({state:!0,msg:"",class:"fa-credit-card"}),this.$http.post("shoppingcart/removeCoupon",a,t).then((function(t){e.code_coupon="",e.setShoppingCartList(t.data.data),e.setLoading({state:!1,msg:"",class:"fa-credit-card"})})).catch((function(t){e.$eventBus.$emit("loadError",Object(v["b"])(t)),e.setLoading({state:!1,msg:"",class:"fa-credit-card"})}))},changeDocType:function(e,t){void 0!=Object(i["a"])(e)&&(this.passengers[t].numberDocType="",this.passengers[t].first_name="",this.passengers[t].last_name="",this.passengers[t].sexo=""),("NONE"!=this.options.SALE_PASSANGER_INFO_COMPLEMENTARY.value||"1"==this.options.WEB_SALE_FORM_SHOW_DOC_TYPE.value)&&(this.passengers[t].lengthdoctype=e._length),"P"==e.value||"IP"==e.value?this.getCountryBySale(0):this.optionsNationality=this.optionsCountries},changeDocTypeChildren:function(e,t){void 0!=Object(i["a"])(e)&&(this.passengers[t].children_numberDocType="",this.passengers[t].children_first_name="",this.passengers[t].children_last_name="",this.passengers[t].children_sexo=""),("NONE"!=this.options.SALE_PASSANGER_INFO_COMPLEMENTARY.value||"1"==this.options.WEB_SALE_FORM_SHOW_DOC_TYPE.value)&&(this.passengers[t].lengthdoctype=e._length),"P"==e.value||"IP"==e.value?this.getCountryBySale(0):this.children_optionsNationality=this.optionsCountries},changeOfficeDeparture:function(e,t){var a={ID_TEMPBUSCEL:this.shoppingCartList.ow.PATH[0].SEATS[t].ID_TEMPBUSCEL,ID_OFFICE_DEPARTURE:e.idOffice,TYPE_WAY:this.shoppingCartList.TYPE_WAY};a["ID_TEMPBUSCEL_RND"]=this.shoppingCartList.rw.PATH.length>0?this.shoppingCartList.rw.PATH[0].SEATS[t].ID_TEMPBUSCEL:"",this.changeOffice(a)},changeOfficeArrival:function(e,t){var a={ID_TEMPBUSCEL:this.shoppingCartList.ow.PATH[0].SEATS[t].ID_TEMPBUSCEL,ID_OFFICE_ARRIVAL:e.idOffice,TYPE_WAY:this.shoppingCartList.TYPE_WAY};a["ID_TEMPBUSCEL_RND"]=this.shoppingCartList.rw.PATH.length>0?this.shoppingCartList.rw.PATH[0].SEATS[t].ID_TEMPBUSCEL:"",this.changeOffice(a)},changeOffice:function(e){var t=this;this.$http.post("shoppingcart/addboardingTerminal",e,I).catch((function(e){t.$eventBus.$emit("loadError",Object(v["b"])(e)),t.setLoading({state:!1,msg:"",class:"fa-credit-card"})}))},getCountryBySale:function(e){var t=e,a=this.optionsCountries.filter((function(e){return e.visa==t}));this.optionsNationality=a,this.children_optionsNationality=a},showPassengerAvailable:function(e){var t=this.options.WEB_SALE_MIN_AGE.value,a=this.options.WEB_SALE_FORM_SHOW_DOB.value,s=!0;return t>0&&a&&(s=this.calculateYearsOld(e.dateBirth)>=t),this.options.PAGO_CULQI.value?"first_name"in e&&""!=e.first_name&&"last_name"in e&&""!=e.last_name&&s&&"email"in e&&""!=e.email:"first_name"in e&&""!=e.first_name&&"last_name"in e&&""!=e.last_name&&s},loadSalePassegerInfoComplementary:function(){var e=!1,t=this.options.SALE_PASSANGER_INFO_COMPLEMENTARY.value;if("NONE"!=t){t="MXUSA"==this.options.SALE_PASSANGER_INFO_COMPLEMENTARY.value?"MXUS":"USMX";var a="".concat(this.shoppingCartList.ow.ID_COUNTRY_DEPARTURE).concat(this.shoppingCartList.ow.ID_COUNTRY_ARRIVAL),s=null;"rw"in this.shoppingCartList&&(s="".concat(this.shoppingCartList.rw.ID_COUNTRY_DEPARTURE).concat(this.shoppingCartList.rw.ID_COUNTRY_ARRIVAL)),a!=t&&s!=t||(e=!0)}return e}},Object(u["b"])({setOtptionsForm:"options/setOtptionsForm",setLoading:"options/setLoading",qwsetstateOption:"options/setstateOption",setTimer:"options/setTime",setPassengers:"cart/setPassengers",setShoppingCart:"cart/setShoppingCart",setShoppingCartList:"cart/setShoppingCartList",setSelectedSeatsOw:"cart/setSelectedSeatsOw",setSelectedSeatsRw:"cart/setSelectedSeatsRw",setTransaction:"cart/setTransaction",setNumberSelectedSeats:"cart/setNumberSelectedSeats",setpreviewBusTravel:"travels/setpreviewBusbyTravel",setSelectTravel:"travels/setSelectTravel",setAuth:"auth/setAuth"}),{clearFormCompany:function(e,t){e||(this.passengers[t].company_ruc="",this.passengers[t].company_name="",this.passengers[t].company_address="")},clearFormPassangerChild:function(e,t){e||(this.passengers[t].children_numberDocType="",this.passengers[t].children_first_name="",this.passengers[t].children_last_name="")},wsTicketTypeValidation:function(e){return this.$http.post("shoppingcart/ticketTypeValidation",e)},wsCompletepurchase:function(e){return this.$http.post("shoppingcart/completePurchase",e,I)},wsGetPointsUser:function(e){return this.$http.post("user/getPointUser",e)}}),watch:{numbercard:function(e){if(""==e||e.length<=2)this.hexTokens={F:{pattern:/(\d{1,9})/}},this.themask="FFFF",this.typecard="",this.fncard={},this.errorsnumbercard=""==e?"errorsnumbercard":"";else if(this.fncard=Object(v["a"])(e),this.themask="",Object.keys(this.fncard).length>0){this.hexTokens={F:{pattern:this.fncard.format}},this.typecard=this.fncard.type;for(var t=0;t<this.fncard.cclength[this.fncard.cclength.length-1];t++)4!=t&&8!=t&&12!=t&&16!=t||(this.themask+=" "),this.themask+="F"}else this.hexTokens={F:{pattern:/(\d{1,9})/}},this.themask="FFFF FFFF FFFF FFFF",this.fncard={},this.errorsnumbercard="errorsnumbercard"},cardduedate:function(){var e=!1;if(this.cardduedate.length>1){var t=this.cardduedate,a=t.split(" ");parseInt(a[0])>12&&(e=!0),this.cardduedate.length>5&&(a[2].length<4||parseInt(a[2])<this.$moment().year())&&(e=!0)}else if(1==this.cardduedate.length){var s=this.cardduedate;parseInt(s)>1?this.cardduedate="0"+s:this.cardduedate=s}this.errorscardduedate=e?"errorscardduedate":""},selectPassengerCard:function(e){1==this.customPassengercheck?(this.ownernamecard=this.passengers[e-1].first_name,this.ownerlastnamecard=this.passengers[e-1].last_name,this.owneremailcard=this.passengers[e-1].email):(this.ownernamecard="",this.ownerlastnamecard="",this.owneremailcard="")}
1,ownernamecard:function(){""!=this.ownernamecard&&(this.errorsownernamecard="")},customPassengercheck:function(e){if(1==e){var t=this.selectPassengerCard;null!=t&&""!=this.passengers[t-1].first_name&&""!=this.passengers[t-1].last_name&&(this.ownernamecard=this.passengers[t-1].first_name,this.ownerlastnamecard=this.passengers[t-1].last_name,this.owneremailcard=this.passengers[t-1].email)}else this.ownernamecard="",this.ownerlastnamecard="",this.owneremailcard=""},ownerlastnamecard:function(){""!=this.ownerlastnamecard&&(this.errorsownerlastnamecard="")},cardcvv:function(){""!=this.cvv&&(this.errorscardcvv="")},owneraddresscard:function(){""!=this.owneraddresscard&&(this.errorsowneraddresscard="")},ownercitycard:function(){""!=this.ownercitycard&&(this.errorsownercitycard="")},ownerzipcodecard:function(){""!=this.ownerzipcodecard&&(this.errorsownerzipcodecard="")},ownernumdocumentcard:function(){""!=this.ownernumdocumentcard&&(this.errorsownernumdocumentcard="")},getUser:function(){if(null!=this.getUser){for(var e=JSON.parse(JSON.stringify(this.passengers)),t=0;t<e.length;t++){if("undefined"==typeof e[t].cod&&"undefined"==typeof e[t].first_name){e[t].cod=this.getUser.code,e[t].first_name=this.getUser.firstName,e[t].last_name=this.getUser.lastName,e[t].email=this.getUser.email,e[t].phone=String(this.getUser.phone);var a=this.$moment(this.getUser.dob,"YYYY-MM-DD").format(this.options.DATE_FORMAT_CALENDAR.value.toUpperCase());e[0].dateBirth=a.replace(/-/g,"/");break}if(""==e[t].cod&&""==e[t].first_name){e[t].cod=this.getUser.code,e[t].first_name=this.getUser.firstName,e[t].last_name=this.getUser.lastName,e[t].email=this.getUser.email,e[t].phone=String(this.getUser.phone);var s=this.$moment(this.getUser.dob,"YYYY-MM-DD").format(this.options.DATE_FORMAT_CALENDAR.value.toUpperCase());e[0].dateBirth=s.replace(/-/g,"/");break}}this.passengers=e}}}},$=N,j=(a("cd67"),Object(x["a"])($,s,r,!1,null,null,null));t["default"]=j.exports},e18f:function(e,t,a){e.exports=a.p+"static/img/user-women.0c6be403.svg"},e1f3:function(e,t,a){var s={"./user-men-mcets.svg":"451d","./user-men.svg":"39ef","./user-women-mcets.svg":"74c0","./user-women.svg":"e18f"};function r(e){var t=i(e);return a(t)}function i(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}r.keys=function(){return Object.keys(s)},r.resolve=i,e.exports=r,r.id="e1f3"},e5aa:function(e,t,a){"use strict";var s=a("ff8c"),r=a.n(s);r.a},e5b4:function(e,t,a){"use strict";var s=a("b49b"),r=a.n(s);r.a},e89b:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIIAAACgCAYAAADAZ7TAAAAACXBIWXMAAAsSAAALEgHS3X78AAAJnUlEQVR4nO2d0XXjthKGv/XJu5UKlqnASgXmrWCVCpauIL4VXKUDp4IoFcRbwaUriF1BuBVEqoB5gJQosi1hwAFAkPOdo4f1giCO9HMwGAyGH/q+JzELYHn072dgm3oQxr/5JsE9KmC1/9yeafcEtMAjThxGQj5EtAg1sOb8j/8eT/trW7XRGGeJIYQKeAA+KfT1BDRAp9CXcYYr5f5WOLOuIQJw1uQZJwYjIppCaIDfgGvFPtn39wtwr9yvcYTW1NDgfqzY3AGbBPeZHRpCWAK/K4zFlx9wKwtDkaFCWODm8I86w/Fih3NILfagyFAfYU1aEYDzGR4S33PyDLEIFfCH3lDEfIctK9UYYhFye/HrzPefFEMswhb9paKUbzFfQYVQi1CTXwTgxmEoMEQIY6DOPYCpECqE5eUmSRjLOIonVAgL1VGEU+UewFQoXQipYxiTJVQIleYgjPyECmEsGUS73AOYCtr5CKkZiyCLp3SLYMEkJUoXQpt7AFMhVAit5iAG0OYewFQIFUKHSyzNyQvjsUzFM8RZ3GgNIhDLSVBkaIZSR56gzlcslqHK0OVjozGIAHLnQkyOoUJogZ8VxiHhC5a8qo5WOvszcKPR0QVecFvPFj9QRiuyWON+pJiYCCKiJYQt7keKtaQ0EURGc6/hIIafFPsE54MsMRFEJdax+AoXZwg5En/AjsYnJGZ9BHCCuMedkvaJN+xwK4IHLGqYlNhCOGa5/1Rv/F+H++Htx89ESiEYI6b0xBRDCROCAaSpqubDin98iOMM6YPf0GIHXqOS00eocMvDFX7H52w5GZEcQljgloefA6+3SmsRSC2EJe6JHnqAdocTg+1CKpHSWdQSAfs+fsPK7qmRyiJoiuCU77FA1GBOhVDhnLcFbg5+RGezJ2a+wldsU2o4fd/T9/2i7/u2f8227/tm3yb0s36jX20eBo5x9p8Pfd8vcGb73BMbWujyYFlSVFex4loDuMLtDl4y2w+EHYX3jRFosEp0n0lyhZ/nfe3Z7pSUP06T8F6T40Pfey8bXpCXqkldec2mh0AkcYQb5NND6sprdeL7TYYr3PLLF4mpr2VDUcH8hECukIVp60jj0KLOPYBSuUK2mzf2J+4aE0MQUotwjb/DmCvsO3axjpKDs/hFcE3j2S5XyLfOdN+iOQihFVxTC9rmKKYRsrqZPQchSKaHG/xrE7SSwShi04OQgxA6ZIdYa892uRJH6kz3LZbjgFIruM73iXsmT1FMswhCjoUgeXolL/hsBW21kKxuDF5bBMnT6/vU2fRQAKd7Da3g2tqznaRPTWx6EHAqBMnT6/tFd8SvpvIWQ47kz44hQviILSMnw6kQtsieXt8vuhX0qUmd6b7F8VY+QozpwRzGkTNUCLf4h3NzhZurDPctjreEIA0C1Z7tzCqMmPdS1WJMD62gT03qTPctiveE0Ar6sHDzBNCwCJJwbo7pwcLNHrwnhC0y527s04NZhQucS2e3ZeSMOHcsfgn8LujrW/zS01JVcj/Fd3yz5JxFeCbOmYdW0Kcmdab7FsGlk06toC+bHgrmUsWUFa5EjQ87/KOMOUq52XugznDJIkiXkbVnW0n6vBaS3dLZ4XMIVvKjmZ9QKD5CaAX9jd1PsHjCO/hUVauAPwR9+tYo6Ej/zkiJHzMrfCxCx3SWkRZufgffQhkxjs7b9DAifAtu1sD/Jf16tFkAfwr61CKkBNDk8bUILfpnHqT5kVrYIdk3kNRQagVtx756qDPdd7RIhGB+woSRFOWWzum+xbJTl+ADCze/QmIRpHN67dmuFfSphYWbT5C+r0FiypsIfWpi08MRMYXg6523wjFoYUI4QioEaSayz5fdke+QrMUT9oS8yifG6qGVD0OFDSYGIOxVPjGSVSR9xuAJZ+3GktN4eN9ll+qGIUKItYy0l1S/5gX3rsvoDnXI1CA989B4tsuRtTR2bnCW8pHIYfHQ1/1NyU8ogU+47yeaGFIIwfdoehs0kvlwg5smohAqhA5Zskrt0UZ6jmKO/EikDbMhb4Kd0tH5kljH6HSIEFpBW98CnZI+58otEazCUIugHWXMte9QGvfaHQ59SXgraFt7tMmVtVQan1DePR0qhBh+wkPIQGbIWrOzoW+LjxFlXJDuNcKlo/aey6EWIUayyhazCr40Wh0NFQLESVZ5wGIKPtyjFG1MLQTfKOMWSxzxIfSd3a/QEII0ItgI+r0Tj2Z+qCwlNYQAsmWkxJxtcGLIUZ+xFD6iYBW0hCAtqCFR8QbnZOao5VwK66EdDF0+HiM5n7DD+QrSjKBm/7GXcrzmPwwI0WsKYQN8FrT/QrhDuMBZiSVlHV9bEi8+8sSA70JTCBWyghoAPzC//YUatzyOUWsy2Cpo+QjgIlzSeXzD/LKIW5wYYuypNKEXaloEkNdRAOcvLEmYsTsSauTflQ9BYWdNiwBO7dIk1Ov9dXO0DDFWQuuQi7QtAjhf4Rm5U7TDOY+t8njGTAP8EqFfcd1pbYsAziyFbBpd40zlWnMwI2dDnD0VcbQxhkU4MKQK+1fc09JqDWbENOhbBXGcJoZFOLAiPDT8EWcdWhS3WkfKBv0QungzKqYQOobvIN7inpYt7gtbMc1CWDHyL0TTQ8yp4UCDvun7ihPa4TNGOpxF6zzaxsrKusM9QBdJIQSI5x2XwM84B/jSfL0G/qd8b+9aUamEAPMWg88+QIU8RO+DV9g5po9wyga3tzDH3IJbLjtvHfBrhHuvfRqlFAK4DaaaeZ5d8HGc1xHu63UyKrUQwMUXatzcOSd8VjsdcepENJca5BACOMfpHjd/zdE6nCPGUvIzF5zGXEI40OI2m+6Yfvp659muJcNmVMpVgw8rnBnzPT1
1dEpKkkVjFxd7djMptEU55xH0J3wH/ZToJq3fI9k0eSbwZNTaL8B71/lPtPwvyvFZYyhPOJLcB1zYk3IwqRQgpWKK7j9Eq9NGh/wK0N8POJoRxsyZR2HlsPoLxbx7Qj8S+eTLKhDBuYpUIeOU02tQwfioSbEaZRRg/HQk2o8wilEFFHKvwdykjswhl0BFnM+pvX8EsQjnURDwZZRahHFrihNzvwSxCacTYjNoBlQmhPDoihJ1taiiPdYQ+V2YRykT7NcovZhHKRDvsfGMWoUy0T0btzCKUyeEsqBbPJoRy0ZweTAgF06G3GfVoPkLZVAzfjHoBlmYRyqYDfhrYRwO2+zgF1oRPEXfYNvSkaJCJYcdJNrMJYTo0uPSzSzuUv+JS9zfHfzRncZpUuB/7uIhpi5sG3jzy9hcDavNVGUnphAAAAABJRU5ErkJggg=="},e9f8:function(e,t,a){"use strict";a.r(t),a.d(t,"router",(function(){return j}));var s=a("2b0e"),r=a("31bd"),i=a.n(r),n=a("4360"),l=a("8c4f"),o=[{path:"/",component:a("7b3d").default,children:[{path:"/",component:a("eea6").default,name:"home"},{path:"/payment",component:a("d85f").default,name:"payment"},{path:"/confirmationpayment",component:a("3fb6").default,name:"confirmationpayment"},{path:"/websale/profile/confirmRegister",component:a("b79a").default,name:"confirmRegister"},{path:"/websale/profile/resetPassword",component:a("877a").default,name:"resetPassword"},{path:"/websale/refund/index",component:a("a3ca").default,name:"refundList"},{path:"/cleaningSessions",component:a("191e").default,name:"cleaningVuex"},{path:"/profile",component:a("c66b").default,children:[{path:"/",component:a("28bb").default,name:"profile.main",meta:{requiresAuth:!0}},{path:"vouchers",component:a("f827").default,name:"profile.vouchers",meta:{requiresAuth:!0}},{path:"my-travels",component:a("3bfc").default,children:[{path:"/",component:a("1409").default,name:"profile.travels",meta:{requiresAuth:!0}},{path:"completed",component:a("c673").default,name:"profile.travels.completed",meta:{requiresAuth:!0}},{path:"canceled",component:a("f303").default,name:"profile.travels.canceled",meta:{requiresAuth:!0}}]}]},{path:"/tracking",component:a("0a00").default},{path:"/tracking/:alias",component:a("0a00").default}]},{path:"/testMail",component:a("bbf5").default},{path:"/frequent",component:a("8b16").default,name:"frequent"},{path:"/",component:a("7b3d").default,children:[{path:"*",name:"404",component:a("ee5d").default}]}],c=a("5f5b"),d=a("bc3a"),u=a.n(d),p=a("4a7a"),m=a.n(p),v=a("c1df"),h=a.n(v),f=a("528a"),_=a.n(f),g=a("2ead"),b=a.n(g),C=a("4623"),w=a.n(C),y=a("d152"),E=a("7bec"),S=a.n(E),A=(a("4413"),a("c986")),T=a.n(A),O=a("ec02"),R=a.n(O),x=(a("5aea"),a("ebd9"),a("33fd"),a("0c1a"));w()(h.a);var D=a("f13c");if(s["default"].use(T.a,"countdown"),s["default"].component("vue-phone-number-input",S.a),s["default"].component("vue-headful",R.a),s["default"].use(y["default"]),s["default"].use(_.a),s["default"].component("square",y["SquareSpinner"]),s["default"].use(c["a"]),s["default"].use(l["a"]),s["default"].use(D),s["default"].component("v-select",m.a),s["default"].config.debug=!1,u.a.defaults.baseURL="".concat(window.location.protocol,"//").concat(window.location.hostname,"/").concat("api/v1/"),u.a.defaults.headers.common.Accept="application/x-www-form-urlencoded",u.a.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",u.a.interceptors.request.use((function(e){return e}),(function(e){return Promise.reject(e)})),u.a.interceptors.response.use((function(e){return e}),(function(e){if(80!==e.response.data.code)return Promise.reject(e);location.href="/"})),s["default"].$http=u.a,Object.defineProperty(s["default"].prototype,"$http",{get:function(){return u.a}}),n["a"].dispatch("cache/checkCache"),n["a"].getters["cache/statusCache"]&&(n["a"].dispatch("options/setlistoptions",null),n["a"].dispatch("cart/cleanCart"),n["a"].dispatch("search/restartState"),window.location.href=window.location.href),null==n["a"].getters["options/listoptions"])u.a.post("options/getAllOptions",{},{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(e){n["a"].dispatch("options/setLoading",{state:!0,msg:"",class:"fa-route"});var t=e.data.data;n["a"].dispatch("options/setlistoptions",t),n["a"].dispatch("options/setskin",t.SKIN.value);try{var a=document.createElement("link");a.setAttribute("rel","stylesheet");var s="".concat(window.location.protocol,"//").concat(window.location.hostname,"/static/css/skins/").concat(n["a"].getters["options/skin"],".css"),r=new XMLHttpRequest;if(r.open("GET",s,!1),r.send(null),200!=r.status)throw"No existe archivo";a.setAttribute("href",s),document.getElementsByTagName("head")[0].appendChild(a)}catch(i){}if(null==n["a"].getters["options/lang"])switch(t.DATE_FORMAT.value){case"PE":n["a"].dispatch("options/setLang","es");break;case"MX":n["a"].dispatch("options/setLang","es");break;default:n["a"].dispatch("options/setLang","en");break}x["a"].locale=n["a"].getters["options/lang"],h.a.locale(n["a"].getters["options/lang"])})).catch((function(e){}));else{var P=n["a"].getters["options/listoptions"];try{var L=document.createElement("link");L.setAttribute("rel","stylesheet");var k="".concat(window.location.protocol,"//").concat(window.location.hostname,"/static/css/skins/").concat(n["a"].getters["options/skin"],".css"),I=new XMLHttpRequest;if(I.open("GET",k,!1),I.send(null),200!=I.status)throw"No existe archivo";L.setAttribute("href",k),document.getElementsByTagName("head")[0].appendChild(L)}catch(U){}if(null==n["a"].getters["options/lang"])switch(P.DATE_FORMAT.value){case"PE":n["a"].dispatch("options/setLang","es");break;case"MX":n["a"].dispatch("options/setLang","es");break;default:n["a"].dispatch("options/setLang","en");break}x["a"].locale=n["a"].getters["options/lang"],h.a.locale(n["a"].getters["options/lang"])}var N=null;for(var $ in u.a.post("options/loadLangs",{},{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(e){for(var t in e.data.data)x["a"].setLocaleMessage(t,e.data.data[t])})).catch((function(e){})),N)x["a"].setLocaleMessage($,N[$]);h.a.locale(["es","en"]),s["default"].use(b.a,{moment:h.a});var j=new l["a"]({mode:"history",routes:o});j.beforeEach((function(e,t,a){n["a"].dispatch("auth/checkTimeLife"),e.matched.some((function(e){return e.meta.requiresAuth}))?n["a"].getters["auth/user"]?a():a({name:"home"}):a(),a()})),i.a.sync(n["a"],j),s["default"].router=j;t["default"]={router:j};var M=new s["default"];Object.defineProperties(s["default"].prototype,{$eventBus:{get:function(){return M}}})},ebd9:function(e,t,a){},ee5d:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"slice height-main-full"},[a("div",{staticClass:"container align-items-center text-center text-lg-left"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[e._m(0),a("h3",{staticClass:"text-center mb-4 lh-110 mt-4"},[e._v(e._s(e.$t("s_404_title")))]),a("p",{staticClass:"text-center lh-140 mb-4"},[e._v(e._s(e.$t("s_404_copy")))]),a("b-button",{staticClass:"btn-lg btn-primary d-block mx-auto",attrs:{variant:"primary"},on:{click:function(t){return e.$router.push({name:"home"})}}}
1,[e._v(e._s(e.$t("Buscar viajes")))])],1)])])])},r=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("figure",{staticClass:"text-center"},[s("img",{staticClass:"img-fluid",attrs:{alt:"Página no encontrada",src:a("22de")}})])}],i=a("2877"),n={},l=Object(i["a"])(n,s,r,!1,null,null,null);t["default"]=l.exports},ee74:function(e,t,a){},eea6:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("vue-headful",{attrs:{title:e.listoptions.COMPANY_NAME.value.charAt(0).toUpperCase()+e.listoptions.COMPANY_NAME.value.slice(1)+" - "+e.$t("Buscar viajes")}}),a("qwBreadcrumbs"),null!==e.listoptions?a("section",{staticClass:"height-main-full"},[e.confirmation?e._e():a("div",{staticClass:"container align-items-center text-left home-box"},[a("div",{staticClass:"row"},[null===e.listTravel?a("qwTitle",{attrs:{title:e.$t("Búsqueda de viaje")}}):e._e(),a("qwSearchTravel",{staticStyle:{"z-index":"1"},attrs:{id:"point-before-search-ow"}}),null!==e.listTravel?a("qwTitle",{attrs:{title:e.$t("Búsqueda de viaje")}}):e._e(),null!=e.filterTravels?a("qwTravelList",{attrs:{travels:e.filterTravels}}):e._e()],1)]),e.seachTravel.ID_AIRLINE>0?a("div",{staticClass:"align-items-center bg-gray-alliances mb-5 mb-md-n5 mt-5 py-5 text-center"},[a("div",{staticClass:"container p-0"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-5 col-lg-5"}),a("div",{staticClass:"col-12 col-md-7 col-lg-7 bg-white box-our-stops",staticStyle:{"--border-radius-images":"6px"}},[a("h3",{staticClass:"font-weight-700 pt-3"},[e._v(e._s(e.$t("Nuestras paradas")))]),a("div",{staticClass:"row images-alliance"})])])])]):e._e()]):e._e()],1)},r=[],i=(a("8e6e"),a("ac6a"),a("456d"),a("75fc")),n=(a("55dd"),a("bd86")),l=a("2cbd"),o=a("6968"),c=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container mt-2 mt-md-5"},[a("vue-headful",{attrs:{title:e.options.COMPANY_NAME.value.charAt(0).toUpperCase()+e.options.COMPANY_NAME.value.slice(1)+" - "+e.$t("Buscar viajes")}}),a("b-modal",{ref:"m-error",attrs:{id:"bv-modal-example",size:"md","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("h4",{staticClass:"text-center ml-n3 mb-3 text-blue"},[a("i",{staticClass:"text-green px-3 far fa-surprise fa-2x"}),e._v(e._s(e.$t("¡Ups!")))]),a("div",{staticClass:"d-block text-center"},[a("p",[e._v(e._s(e.$t("No se encontraron viajes disponibles")))])])],1)])]}}])}),a("b-modal",{attrs:{id:"bv-modal-citynear",size:"md","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("h4",{staticClass:"text-center ml-n3 mb-3 text-blue"},[a("i",{staticClass:"text-green px-3 far fa-map-marker-exclamation fa-2x"}),e._v(e._s(e.$t("Transbordo"))+"!")]),null!=e.arr_messages?a("div",{staticClass:"d-block"},[a("p",{staticClass:"text-center"},[e._v(e._s(e.$t("Este viaje tiene una conexión en"))+" "+e._s(e.cityNearName))])]):e._e(),a("div",{staticClass:"d-block text-center"},[a("button",{staticClass:"mt-2 btn btn-light rounded-pill",attrs:{block:""},on:{click:function(t){return e.$bvModal.hide("bv-modal-citynear")}}},[e._v(e._s(e.$t("Aceptar")))])])],1)]}}])}),a("b-modal",{attrs:{id:"bv-modal-message-web",size:"md","hide-footer":"","hide-header":"",centered:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("b-button",{staticClass:"float-right absolute mr-n1 mt-n5 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("h4",{staticClass:"text-center ml-n3 mb-3 text-blue"},[a("i",{staticClass:"text-green px-3 far fa-map-marker-exclamation fa-2x"})]),null!=e.arr_messages?a("div",{staticClass:"d-block"},e._l(e.arr_messages,(function(t,s){return a("div",{key:s,staticClass:"text-center"},[0!=s?a("hr",{staticClass:"mt-3 mb-4"}):e._e(),null!=t.message?a("div",{staticClass:"text-center",domProps:{innerHTML:e._s(t.message)}}
1):e._e(),null!=t.image?a("img",{staticStyle:{"max-width":"100%"},attrs:{src:t.image,alt:""}}):e._e()])})),0):e._e(),a("div",{staticClass:"d-block text-center"},[a("button",{staticClass:"mt-2 btn btn-primary rounded-pill",attrs:{block:""},on:{click:function(t){return e.$bvModal.hide("bv-modal-message-web")}}},[e._v(e._s(e.$t("Aceptar")))])])],1)]}}])}),a("form",{staticClass:"animated pulse-old",attrs:{id:"form-search-travel"}},["napaway"!==e.options.SKIN.value?a("div",{staticClass:"d-none d-md-block custom-control mb-3 text-dark"},["rangel"!=e.options.SKIN.value?a("div",{staticClass:"custom-checkbox d-inline-block mr-5"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.typeWaySearch,expression:"typeWaySearch"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"customCheck1",name:"werd",value:"1"},domProps:{checked:e._q(e.typeWaySearch,"1")},on:{change:[function(t){e.typeWaySearch="1"},function(t){return e.changeWay(1)}]}}),a("label",{staticClass:"custom-control-label",attrs:{for:"customCheck1"}},[e._v(e._s(e.$t("Ida y Vuelta")))])]):e._e(),a("div",{ref:"dddd",staticClass:"custom-checkbox d-inline-block mr-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.typeWaySearch,expression:"typeWaySearch"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"customCheck2",name:"werd",value:"0"},domProps:{checked:e._q(e.typeWaySearch,"0")},on:{change:[function(t){e.typeWaySearch="0"},function(t){return e.changeWay(0)}]}}),a("label",{staticClass:"custom-control-label",attrs:{for:"customCheck2"}},[e._v(e._s(e.$t("Sólo Ida")))])]),0!=e.options.WEB_MAX_SELECTABLE_SEATS.value?a("div",{staticClass:"d-inline-block number-passanger-mcets"},[a("span",[e._v(e._s(e.$t("Pasajero")+"s"))]),a("div",{staticClass:"numberpicker"},[a("button",{attrs:{type:"button"},on:{click:e.dscSeatSelect}},[e._v("â")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.maxSeatSelectedTravel,expression:"maxSeatSelectedTravel"}],attrs:{type:"number",id:"numberpicker",readonly:""},domProps:{value:e.maxSeatSelectedTravel},on:{input:function(t){t.target.composing||(e.maxSeatSelectedTravel=t.target.value)}}}),a("button",{attrs:{type:"button"},on:{click:e.ascSeatSelect}},[e._v("+")])])]):e._e()]):e._e(),"napaway"!==e.options.SKIN.value?a("div",{staticClass:"d-md-none mb-5 row"},["rangel"!=e.options.SKIN.value?a("div",{staticClass:"col-6 pl-0 pr-2"},[a("button",{staticClass:"btn btn-ida-vuelta w-100",class:{active:1==e.typeWaySearch},attrs:{type:"button"},on:{click:function(t){return e.changeWay(1)}}},[e._v("\n "+e._s(e.$t("Ida y Vuelta"))+"\n ")])]):e._e(),a("div",{staticClass:"col-6 pr-0 pl-2"},[a("button",{staticClass:"btn btn-ida-vuelta w-100",class:{active:0==e.typeWaySearch},attrs:{type:"button"},on:{click:function(t){return e.changeWay(0)}}},[e._v("\n "+e._s(e.$t("Sólo Ida"))+"\n ")])])]):e._e(),a("div",{staticClass:"d-lg-flex mb-3 justify-content-center row"},[a("div",{staticClass:"col-12 col-lg-3 col-md-6 d-inline-block p-0 p-lg-0 mb-45 mb-lg-0 mb-md-3",class:{"max-width-napaway":"napaway"===e.options.SKIN.value}},[e._m(0),a("div",{staticClass:"border-l-tb border-script-horizontal box-search-travel"},[a("p",{staticClass:"text-preselect"},[e._v(e._s(e.$t("Origen")))]),a("v-select",{attrs:{placeholder:e.$t("Seleccione Dirección"),label:"label",options:e.optionsDeparture},on:{input:function(t){return e.changeDeparture(t)}},model:{value:e.departureSearch,callback:function(t){e.departureSearch=t},expression:"departureSearch"}})],1),a("div",{staticClass:"shuttle-search mb-1 mb-md-0"},[e.optionsDepartureShuttle.length>0?a("div",[a("p",{staticClass:"pt-1 mb-0 mb-md-1 small text-blue"},[a("i",{staticClass:"far fa-shuttle-van mr-2"}),e._v(e._s(e.$t("Origen Shuttle")))]),a("v-select",{staticClass:"border shuttle-select",attrs:{placeholder:e.$t("Seleccione Dirección"),options:e.optionsDepartureShuttle},model:{value:e.departureShuttleSearch,callback:function(t){e.departureShuttleSearch=t},expression:"departureShuttleSearch"}})],1):e._e()])]),a("div",{staticClass:"change-route d-none d-md-block",on:{click:e.changeDestinies}},[a("i",{staticClass:"far fa-angle-left"}),a("i",{staticClass:"far fa-angle-right"})]),a("div",{staticClass:"col-12 col-lg-3 col-md-6 d-inline-block p-0 p-lg-0 mb-45 mb-lg-0 mb-md-3",class:{"max-width-napaway":"napaway"===e.options.SKIN.value}},[e._m(1),a("div",{staticClass:"border-script-horizontal border-r-1 border-lg-r-0 box-search-travel"},[a("p",{staticClass:"text-preselect"},[e._v(e._s(e.$t("Destino")))]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.loadingArrival,expression:"loadingArrival"}],staticClass:"loading-searching"}),a("v-select",{directives:[{name:"show",rawName:"v-show",value:!e.loadingArrival,expression:"!loadingArrival"}],ref:"arrivalSearch",attrs:{placeholder:e.$t("Seleccione Dirección"),options:e.optionsArrival},on:{input:function(t){return e.changeArrival(t)}}
1,model:{value:e.arrivalSearch,callback:function(t){e.arrivalSearch=t},expression:"arrivalSearch"}})],1),a("div",{staticClass:"shuttle-search mb-1 mb-md-0"},[e.optionsArrivalShuttle.length>0?a("div",{attrs:{id:"shuttler-info"}},[a("p",{staticClass:"pt-1 mb-0 mb-md-1 small text-blue"},[a("i",{staticClass:"far fa-shuttle-van mr-2"}),e._v(e._s(e.$t("Destino Shuttle")))]),a("v-select",{staticClass:"border shuttle-select",attrs:{placeholder:e.$t("Seleccione Dirección"),options:e.optionsArrivalShuttle},model:{value:e.arrivalShuttleSearch,callback:function(t){e.arrivalShuttleSearch=t},expression:"arrivalShuttleSearch"}})],1):e._e()])]),a("div",{staticClass:"col-12 col-lg col-md-12 d-inline-block mb-2 mb-lg-0 p-lg-0 w-100 p-0"},[e._m(2),a("div",{staticClass:"border-script-horizontal border-1 box-date-travel p-relative"},[a("p",{staticClass:"text-preselect"},[e._v(e._s("napaway"!==e.options.SKIN.value?e.$t("Fecha de Búsqueda"):e.$t("Fecha")))]),e.loadingDateEnabled?a("p",{staticClass:"skeleton-loading text-p",staticStyle:{"--height-loading":"23px","--width-loading":"170px"}}):e._e(),e.loadingDateEnabled?a("div",{staticClass:"skeleton-loading loading-div",staticStyle:{"--height-loading":"23px","--width-loading":"196px"}}):e._e(),a("vuejs-datepicker",{attrs:{language:e.languages[e.changelang],format:e.options.DATE_FORMAT_CALENDAR.value,placeholder:1==e.way?e.$t("Fecha Ida"):e.$t("Fecha de Búsqueda"),"disabled-dates":e.disableddateOw,"full-month-name":!0},on:{input:e.changeDateDeparture},model:{value:e.dateDepartureSearch,callback:function(t){e.dateDepartureSearch=t},expression:"dateDepartureSearch"}}),1==e.way&&"napaway"!==e.options.SKIN.value?a("div",{staticClass:"d-inline-block"},[e._v(e._s(e.$t("a")))]):e._e(),1==e.way&&"napaway"!==e.options.SKIN.value?a("vuejs-datepicker",{attrs:{language:e.languages[e.changelang],format:e.options.DATE_FORMAT_CALENDAR.value,placeholder:e.$t("Fecha Retorno"),"disabled-dates":e.disableddateRw,"full-month-name":!0},on:{input:e.changeDateReturn},model:{value:e.dateReturnSearch,callback:function(t){e.dateReturnSearch=t},expression:"dateReturnSearch"}}):e._e(),a("b-toast",{staticClass:"position-absolute",attrs:{id:"example-toast",title:"Shuttle",static:"","auto-hide":""}},[e._v("\n "+e._s(e.$t("s_toast_shuttle"))+"\n ")])],1)]),"napaway"===e.options.SKIN.value?a("div",{staticClass:"col-12 col-lg col-md-12 d-inline-block mb-2 mb-lg-0 p-lg-0 w-100 p-0"},[e._m(3),a("div",{staticClass:"border-script-horizontal border-1 box-date-travel"},[a("p",{staticClass:"text-preselect"},[e._v(e._s(e.$t("Fecha de regreso")))]),a("vuejs-datepicker",{attrs:{language:e.languages[e.changelang],format:e.options.DATE_FORMAT_CALENDAR.value,placeholder:e.$t("Agregar fecha de retorno"),"disabled-dates":e.disableddateRw,"full-month-name":!0},on:{input:e.changeDateReturn},model:{value:e.dateReturnSearch,callback:function(t){e.dateReturnSearch=t},expression:"dateReturnSearch"}}),a("i",{directives:[{name:"show",rawName:"v-show",value:""!=e.dateReturnSearch&&null!=e.dateReturnSearch&&"Fecha invalida"!=e.dateReturnSearch&&"Fecha inválida"!=e.dateReturnSearch&&"Invalid date"!=e.dateReturnSearch,expression:"dateReturnSearch != '' && dateReturnSearch != null && dateReturnSearch != 'Fecha invalida' && dateReturnSearch != 'Fecha inválida' && dateReturnSearch != 'Invalid date'"}],staticClass:"return-cancel far fa-x",on:{click:function(t){return e.removeDateReturn(null)}}}),a("b-toast",{staticClass:"position-absolute",attrs:{id:"example-toast",title:"Shuttle",static:"","auto-hide":""}},[e._v("\n "+e._s(e.$t("s_toast_shuttle"))+"\n ")])],1)]):e._e(),"napaway"===e.options.SKIN.value&&0!=e.options.WEB_MAX_SELECTABLE_SEATS.value?a("div",{staticClass:"d-none-napaway col-12 col-lg col-md-12 d-inline-block mb-2 mb-lg-0 p-lg-0 w-100 p-0 border-script-horizontal max-width-napaway-passengers border-1"},[a("div",{staticClass:"d-inline-block"},[a("p",{staticClass:"text-preselect"},[e._v(e._s(e.$t("Pasajero")+"s"))]),a("div",{staticClass:"numberpicker border-none-napaway"},[a("button",{attrs:{type:"button"},on:{click:e.dscSeatSelect}},[e._v("â")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.maxSeatSelectedTravel,expression:"maxSeatSelectedTravel"}],attrs:{type:"number",id:"numberpicker",readonly:""},domProps:{value:e.maxSeatSelectedTravel},on:{input:function(t){t.target.composing||(e.maxSeatSelectedTravel=t.target.value)}}}),a("button",{attrs:{type:"button"},on:{click:e.ascSeatSelect}}
1,[e._v("+")])])])]):e._e(),0!=e.options.WEB_MAX_SELECTABLE_SEATS.value?[0!=e.options.WEB_MAX_SELECTABLE_SEATS.value?a("div",{staticClass:"col-12 col-lg col-md-6 d-inline-block mb-2 mt-4 mt-lg-0 mb-lg-0 p-lg-0 w-100 p-0 d-md-none"},[a("div",{staticClass:"d-inline-block icon-mobile-map-search"},[a("svg",{staticClass:"mt-n1 mr-1",attrs:{width:"1.5rem",viewBox:"0 0 17.3 17.7"}},[a("g",{attrs:{id:"seat"}},[a("path",{attrs:{fill:"var(--light-blue)",d:"M12.5,10.9c-1.2-0.2-2.4,0-3.6,0.4c-0.5,0.2-1.1,0.4-1.6,0.5c-0.3-1.4-0.6-2.8-0.9-4.2\n C6.2,6.6,5.8,5.7,5.2,4.9C4.4,3.8,2.6,4.1,2,5.1c0,0.2,0,0.3,0,0.5c0.2,0.7,0.5,1.3,0.7,2c0.8,2.3,1.6,4.7,2.3,7\n c0.2,0.5,0.5,0.7,1.1,0.7c1.8,0,3.5-0.1,5.3-0.1c0.8,0,1.5,0,2.3,0c0.9,0,1.2-0.2,1.5-1.2c0-0.1,0.1-0.2,0.1-0.3c0-0.2,0-0.5,0-0.7\n C14.8,11.7,13.9,11,12.5,10.9z"}}),a("path",{attrs:{fill:"var(--light-blue)",d:"M3.9,3.7c0.2-0.1,0.4-0.3,0.4-0.5c0.1-0.7,0.2-1.5,0.3-2.2C4.7,0.4,4.4,0,3.9,0C3.6,0,3.3,0,3,0\n C2.4,0,2.1,0.3,2.1,0.9c0,0.4-0.1,0.9-0.1,1.3c0,0.3,0,0.6,0,0.9C2.4,3.7,3.3,4,3.9,3.7z"}}),a("path",{attrs:{fill:"var(--light-blue)",d:"M13.3,16c-2.3,0-4.5,0-6.8,0c-0.1,0-0.2,0-0.3,0c0,0.6,0,1.1,0,1.7c0.6,0,1.1,0,1.7,0c1.8,0,3.6,0,5.4,0\n c0.3,0,0.4-0.1,0.4-0.4c0-0.3,0-0.6,0-0.9C13.7,16.1,13.6,16,13.3,16z"}})])])]),a("div",{staticClass:"border-script-horizontal border-1 box-search-travel"},[a("p",{staticClass:"text-preselect"},[e._v(e._s(e.$t("Pasajero")+"s"))]),a("select",{directives:[{name:"model",rawName:"v-model",value:e.maxSeatSelectedTravel,expression:"maxSeatSelectedTravel"}],staticClass:"custom-select-horizontal",on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.maxSeatSelectedTravel=t.target.multiple?a:a[0]},e.changeRestartTravels]}},e._l(e.options.WEB_MAX_SELECTABLE_SEATS.value,(function(t,s){return a("option",{key:s,domProps:{selected:t==e.maxSeatSelectedTravel,value:t}},[e._v("\n "+e._s(t)+"\n ")])})),0)])]):e._e()]:e._e(),a("div",{staticClass:"col-12 col-lg-2 d-inline-block p-0 p-relative",class:{"max-width-napaway-search":"napaway"===e.options.SKIN.value}},[a("button",{staticClass:"btn-search btn btn-primary rounded-0 text-uppercase border-r-tb",attrs:{type:"button",disabled:0==e.completeDataSearch},on:{click:function(t){return e.searchTravels()}}},[a("i",{staticClass:"far fa-search mr-2"}),e._v(e._s(e.$t("Buscar"))+"\n ")]),e.loadingDateEnabled?a("div",{staticClass:"skeleton-loading loading-div-buttom-search"}):e._e()])],2),a("div",{staticClass:"mx-0 px-0 mx-lg-5 px-lg-4"},[e.optionsArrivalShuttle.length>0||e.optionsDepartureShuttle.length>0&&"redcoach"==e.skin?a("b-alert",{staticStyle:{"z-index":"0"},attrs:{show:"",variant:"secondary",dismissible:""}},["en"==e.changelang?[a("b",[e._v("Please select an option below to continue.")]),e._v("\n If your destination is not listed,\n please contact Customer Service at "),a("a",{attrs:{href:"callto:1-877-733-0724"}},[e._v("1-877-733-0724")]),e._v(" or\n "),a("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")]),e._v("\n and we will respond you within 24 hours.\n ")]:e._e(),"es"==e.changelang?[a("b",[e._v("Por favor seleccione una opción debajo para continuar.")]),e._v("\n Si su destino no se encuentra en el menú desplegable,\n por favor contacte a Atención al Cliente al "),a("a",{attrs:{href:"callto:1-877-733-0724"}},[e._v("1-877-733-0724")]),e._v(" o\n "),a("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")]),e._v("\n y le responderemos dentro de las siguientes 24 horas.\n ")]:e._e()],2):e._e()],1)])],1)},d=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"d-inline-block d-md-none icon-mobile-map-search"},[a("i",{staticClass:"far fa-map-marked-alt text-light-blue"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"d-inline-block d-md-none icon-mobile-map-search"},[a("i",{staticClass:"far fa-map-marked-alt text-light-blue"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"d-inline-block d-md-none icon-mobile-map-search"},[a("i",{staticClass:"far fa-calendar text-light-blue"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"d-inline-block d-md-none icon-mobile-map-search"},[a("i",{staticClass:"far fa-calendar text-light-blue"})])}],u=(a("7514"),a("6762"),a("2fdb"),a("a481"),a("ac4d"),a("8a81"),a("7f7f"),a("c5f6"),a("7618")),p=(a("20d6"),a("96cf"),a("3b8d")),m=a("fa33"),v=a("ee9b"),h=(a("53b4"),a("2f62")),f=a("0e0b"),_=a("9029"),g=a("0c1a");function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function C(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?b(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):b(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var w=a("72bf"),y={components:{vuejsDatepicker:m["a"]},data:function(){return{showModalCityNear:!1,cityNearName:"",sendDataGetTravel:!1,loadingArrival:!1,optionsDeparture:[],optionsDepartureShuttle:[],optionsArrival:[],optionsArrivalShuttle:[],changelang:g["a"].locale,languages:v,locale:{direction:"ltr",separator:" | ",applyLabel:"Aplicar",cancelLabel:null,weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:this.$moment.weekdaysMin(),monthNames:this.$moment.months(),firstDay:0},disableddateOw:{to:new Date(this.$moment().format("YYYY-MM-DD")),dates:[]},disableddateRw:{to:new Date(this.$moment().format("YYYY-MM-DD")),dates:[]},error:{msg:""},arr_messages:null,offsetScroll:_["isMobile"]?330:10,loadingDateEnabled:!1}},mounted:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t,a,s,r,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.t
1ypeWaySearch=this.options.WEB_SALE_TYPE_TRAVEL_DEFAULT.value?1:0,this.checkMaxSeatSelected(),this.qwsetstateOption(1),0==this.options.WEB_SALE_SHOW_ITINERARIES_DATEPICKER.value&&(this.dateDepartureSearch=new Date(this.$moment().format("YYYY-MM-DD")),this.dateReturnSearch=new Date(this.$moment().format("YYYY-MM-DD"))),this.checkIdAirlineExists(),!(Object.keys(this.$route.query).length>0)){e.next=12;break}"undefined"!=typeof this.$route.query.lang&&(this.setLang(this.$route.query.lang),g["a"].locale=this.$route.query.lang),t=this.$route.query.idAirline,"undefined"!==typeof t&&""!==t&&(a=this.checkAirlines(t),a&&(this.setTravel({ID_AIRLINE:t}),sessionStorage.setItem("idAirline",t))),this.loadDataSearchTravels(),e.next=19;break;case 12:return e.next=14,this.loadDepartures();case 14:return 0!=this.options.DEFAULT_CITY_DEPARTURE.value&&(s=this.optionsDeparture.findIndex((function(e){return e.value==i.options.DEFAULT_CITY_DEPARTURE.value})),-1===Object(u["a"])(s)||"undefined"===typeof this.optionsDeparture[s]||null!==this.departure&&0!==Object.keys(this.departure).length||(this.departureSearch=this.optionsDeparture[s])),e.next=17,this.loadArrivals();case 17:0!=this.options.DEFAULT_CITY_ARRIVAL.value&&(r=this.optionsArrival.findIndex((function(e){return e.value==i.options.DEFAULT_CITY_ARRIVAL.value})),-1===Object(u["a"])(r)||"undefined"===typeof this.optionsArrival[r]||null!==this.arrival&&0!==Object.keys(this.arrival).length||(this.arrivalSearch=this.optionsArrival[r])),this.loadDatesEnabled();case 19:this.$eventBus.$on("languages",(function(e){i.$moment.locale(e.langs),i.changelang=e.langs}));case 20:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),watch:{maxSeatSelected:function(e){sessionStorage.setItem("maxSeatSelected",e)},$route:function(){var e=this;this.$nextTick((function(){e.checkMaxSeatSelected()}))}},computed:C({},Object(h["c"])({getCache:"cache/getCache",departure:"search/departure",arrival:"search/arrival",departureShuttle:"search/departureShuttle",arrivalShuttle:"search/arrivalShuttle",way:"search/way",dateDeparture:"search/dateDeparture",dateReturn:"search/dateReturn",travel:"search/travel",listDates:"travels/listDates",options:"options/listoptions",skin:"options/skin",lang:"options/lang",maxSeatSelected:"cart/maxSeatSelected",shoppingCart:"cart/shoppingCart",shoppingCartList:"cart/shoppingCartList"}),{maxSeatSelectedTravel:{get:function(){return this.maxSeatSelected},set:function(e){this.setMaxSeatSelected(e)}},departureSearch:{get:function(){return this.departure?this.departure:null},set:function(e){this.setTravel({DEPARTURE:e})}},departureShuttleSearch:{get:function(){return this.departureShuttle?this.departureShuttle.label:null},set:function(e){this.setTravel({DEPARTURE_SHUTTLE:e})}},arrivalSearch:{get:function(){return this.arrival?this.arrival:null},set:function(e){this.setTravel({ARRIVAL:e})}},arrivalShuttleSearch:{get:function(){return this.arrivalShuttle?this.arrivalShuttle.label:null},set:function(e){this.setTravel({ARRIVAL_SHUTTLE:e})}},typeWaySearch:{get:function(){return this.way},set:function(e){this.setTravel({TYPE_WAY:Number(e)})}},dateDepartureSearch:{get:function(){return this.dateDeparture?this.$moment(this.dateDeparture,this.options.DATE_FORMAT_CALENDAR.value.toUpperCase()).format():null},set:function(e){this.setTravel({DATE_DEPARTURE:this.$moment(e).format(this.options.DATE_FORMAT_CALENDAR.value.toUpperCase())})}},dateReturnSearch:{get:function(){return this.dateReturn?this.$moment(this.dateReturn,this.options.DATE_FORMAT_CALENDAR.value.toUpperCase()).format():null},set:function(e){this.setTravel({DATE_RETURN:this.$moment(e).format(this.options.DATE_FORMAT_CALENDAR.value.toUpperCase())})}},completeDataSearch:function(){var e=!1;return Object.keys(this.arrival).length>0&&Object.keys(this.departure).length>0&&null!==this.dateDeparture&&(e=!0),e}}),methods:C({checkMaxSeatSelected:function(){if(sessionStorage.getItem("maxSeatSelected")&&!isNaN(sessionStorage.getItem("maxSeatSelected"))){var e=this.$route.query.idDeparture,t=this.$route.query.idArrival;if("undefined"!==typeof e&&""!==e&&"undefined"!==typeof t&&""!==t)return void(this.maxSeatSelectedTravel=Number(sessionStorage.getItem("maxSeatSelected")))}this.maxSeatSelectedTravel=1},changeDeparture:function(e){if(this.sendDataGetTravel&&(this.restartTravels(),this.qwsetstateOption(1)),null!==e){var t=this.loadConnectionByCity(e.value,0);t?(this.optionsDepartureShuttle=t,this.setTravel({IS_DEPARTURE_SHUTTLE:!0})):(this.optionsDepartureShuttle=[],this.setTravel({DEPARTURE_SHUTTLE:{}}),this.setTravel({IS_DEPARTURE_SHUTTLE:!1})),this.setTravel({ARRIVAL:new Object}),this.optionsArrivalShuttle=[],this.loadArrivals(),this.loadDatesEnabled()}},changeArrival:function(e){if(this.sendDataGetTravel&&(this.restartTravels(),this.qwsetstateOption(1)),null!==e){var t=this.loadConnectionByCity(e.value,1);t?(this.optionsArrivalShuttle=t,this.setTravel({IS_ARRIVAL_SHUTTLE:!0})):(this.optionsArrivalShuttle=[],this.setTravel({ARRIVAL_SHUTTLE:{}}),this.setTravel({IS_ARRIVAL_SHUTTLE:!1})),this.loadDatesEnabled()}},changeDestinies:function(){if(this.sendDataGetTravel&&this.restartTravels(),Object.keys(this.arrival).length>0&&Object.keys(this.departure).length>0){var e=JSON.parse(JSON.stringify(this.departure)),t=JSON.parse(JSON.stringify(this.arrival));this.departureSearch=t,this.arrivalSearch=e,this.loadDatesEnabled()}},changeDateDeparture:function(e){if(this.sendDataGetTravel&&(this.restartTravels(),this.qwsetstateOption(1)),"napaway"===this.options.SKIN.value&&(this.dateReturnSearch=null,this.typeWaySearch=0,this.disableddateRw.to=e),1==this.way){var t=new Date(e),a=new Date(this.dateReturnSearch);t.getTime()>a.getTime()&&(this.dateReturnSearch=e)}},changeDateReturn:function(e){if(this.sendDataGetTravel&&(this.restartTravels(),this.qwsetstateOption(1)),"napaway"===this.options.SKIN.value&&(this.t
1ypeWaySearch=1),1==this.way){var t=new Date(this.dateDepartureSearch),a=new Date(e);a.getTime()<t.getTime()&&(this.dateDepartureSearch=e)}},removeDateReturn:function(){this.sendDataGetTravel&&(this.restartTravels(),this.qwsetstateOption(1)),"napaway"===this.options.SKIN.value&&(this.typeWaySearch=0),this.dateReturnSearch=null},changeWay:function(e){this.sendDataGetTravel&&(this.restartTravels(),this.qwsetstateOption(1)),this.typeWaySearch=e,this.loadDatesEnabled()},dscSeatSelect:function(){this.sendDataGetTravel&&(this.restartTravels(),this.qwsetstateOption(1)),this.maxSeatSelectedTravel>1&&this.maxSeatSelectedTravel--},ascSeatSelect:function(){this.sendDataGetTravel&&(this.restartTravels(),this.qwsetstateOption(1)),this.maxSeatSelectedTravel<this.options.WEB_MAX_SELECTABLE_SEATS.value&&this.maxSeatSelectedTravel++},changeRestartTravels:function(){this.sendDataGetTravel&&(this.restartTravels(),this.qwsetstateOption(1))},loadDataSearchTravels:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.$route.query,e.next=4,this.loadDepartures();case 4:if(t.hasOwnProperty("rbtnTravelway")||!0!==t.hasOwnProperty("returnDate")||""==t.returnDate){e.next=9;break}this.changeWay(1),t.rbtnTravelway=1,e.next=14;break;case 9:if(!0!==t.hasOwnProperty("rbtnTravelway")&&""==t.rbtnTravelway){e.next=13;break}this.typeWaySearch=this.$route.query.rbtnTravelway,e.next=14;break;case 13:throw this.$t("Invalid Request. Please check your parameters.");case 14:if(!1!==t.hasOwnProperty("idDeparture")&&""!=t.idDeparture){e.next=16;break}throw this.$t("Invalid Request. Please check your parameters.");case 16:return this.departureSearch={value:this.$route.query.idDeparture,label:this.$route.query.txtDeparture},e.next=19,this.loadArrivals();case 19:if(!1!==t.hasOwnProperty("idArrival")&&""!=t.idArrival){e.next=21;break}throw this.$t("Invalid Request. Please check your parameters.");case 21:return this.arrivalSearch={value:this.$route.query.idArrival,label:this.$route.query.txtArrival},e.next=24,this.loadDatesEnabled();case 24:if(!1!==t.hasOwnProperty("departureDate")&&""!=t.departureDate){e.next=26;break}throw this.$t("Invalid Request. Please check your parameters.");case 26:if(this.dateDepartureSearch=this.$moment(this.$route.query.departureDate,this.options.DATE_FORMAT_CALENDAR.value.toUpperCase()),1!=t.rbtnTravelway){e.next=31;break}if(!1!==t.hasOwnProperty("returnDate")&&""!=t.returnDate){e.next=30;break}throw this.$t("Invalid Request. Please check your parameters.");case 30:this.dateReturnSearch=this.$moment(this.$route.query.returnDate,this.options.DATE_FORMAT_CALENDAR.value.toUpperCase());case 31:a={},"undefined"!==typeof t.idShuttleDeparture&&""!=t.idShuttleDeparture&&(this.changeDeparture(a.DEPARTURE),Object.assign(a,{DEPARTURE_SHUTTLE:{value:t.idShuttleDeparture,label:t.txtShuttleDeparture}})),"undefined"!==typeof t.idShuttleArrival&&""!=this.$route.query.idShuttleArrival&&(this.changeArrival(a.ARRIVAL),Object.assign(a,{ARRIVAL_SHUTTLE:{value:t.idShuttleArrival,label:t.txtShuttleArrival}})),"undefined"!==typeof this.$route.query.idAirline&&Object.assign(a,{ID_AIRLINE:t.idAirline}),"undefined"!==typeof this.$route.query.passengers&&(this.maxSeatSelectedTravel=t.passengers),this.setTravel(a),this.searchTravels(),e.next=46;break;case 40:e.prev=40,e.t0=e["catch"](0),this.qwsetstateOption(1),this.restartTravels(),this.setLoading({state:!1,msg:this.$t(""),class:"fa-route"}),this.$eventBus.$emit("loadError",Object(f["b"])(e.t0));case 46:case"end":return e.stop()}}),e,this,[[0,40]])})));function t(){return e.apply(this,arguments)}return t}(),loadDepartures:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t="quaweb_"+this.options.SKIN.value+"_departures",this.getCache(t)){e.next=11;break}return e.next=5,this.wsGetDepartures();case 5:a=e.sent,s=a.data.data,this.optionsDeparture=s.map((function(e){return{value:e.id,label:e.label}})),this.addCache([t,this.optionsDeparture]),e.next=12;break;case 11:this.optionsDeparture=this.getCache(t);case 12:e.next=18;break;case 14:e.prev=14,e.t0=e["catch"](0),this.error=Object(f["b"])(e.t0),this.$refs["m-error"].show();case 18:case"end":return e.stop()}}),e,this,[[0,14]])}
1)));function t(){return e.apply(this,arguments)}return t}(),loadArrivals:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t,a,s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,!(Object.keys(this.departure).length>0)){e.next=17;break}if(t=this.departure.value,a="quaweb_"+this.options.SKIN.value+"_arrivals_by_departure_"+t,this.loadingArrival=!0,this.getCache(a)){e.next=15;break}return this.setListTravel(null),e.next=9,this.wsGetArrivals(t);case 9:s=e.sent,r=s.data.data,r.length>0?(this.optionsArrival=r.map((function(e){return{value:e.id,label:e.label}})),this.addCache([a,this.optionsArrival])):this.optionsArrival=[],this.loadingArrival=!1,e.next=17;break;case 15:this.optionsArrival=this.getCache(a),this.loadingArrival=!1;case 17:e.next=24;break;case 19:e.prev=19,e.t0=e["catch"](0),this.error=Object(f["b"])(e.t0),this.$refs["m-error"].show(),this.loadingArrival=!1;case 24:case"end":return e.stop()}}),e,this,[[0,19]])})));function t(){return e.apply(this,arguments)}return t}(),loadConnectionByCity:function(e,t){var a=this,s="quaweb_"+this.options.SKIN.value+"_connection_by_city_from_"+e;this.loadingArrival=!0;var r=null;return this.getCache(s)?(r=this.getCache(s),this.loadingArrival=!1):this.$http({method:"GET",url:"travel/getConnectionByCity",params:{ID_CITY:e}}).then((function(e){var i=e.data.data;i.length>0&&(r=i.map((function(e){return{value:e.id,label:e.name}})),a.addCache([s,r]),0===t?a.optionsDepartureShuttle=r:a.optionsArrivalShuttle=r),a.loadingArrival=!1})).catch((function(e){a.error=Object(f["b"])(e),a.$refs["m-error"].show(),a.loadingArrival=!1})),r},searchTravels:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t,a,s,r,i,n,l,o,c,d,u,p,m,v,h,_;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,this.setLoading({state:!0,msg:this.$t(""),class:"fa-route"}),this.restartTravels(),this.sendDataGetTravel=!0,null==this.shoppingCart){e.next=9;break}return t={ID_SHOPPINGCART:this.shoppingCart,ROUND:0},e.next=8,this.wsCleanCart(t);case 8:this.$eventBus.$emit("restartShoppingCartAction");case 9:return a={idDeparture:this.travel.DEPARTURE.value,txtDeparture:this.travel.DEPARTURE.label,txtArrival:this.travel.ARRIVAL.label,idArrival:this.travel.ARRIVAL.value,departureDate:this.travel.DATE_DEPARTURE,rbtnTravelway:this.travel.TYPE_WAY},Object.keys(this.travel.DEPARTURE_SHUTTLE).length>0&&Object.assign(a,{idShuttleDeparture:this.travel.DEPARTURE_SHUTTLE.value,txtShuttleDeparture:this.travel.DEPARTURE_SHUTTLE.label}),Object.keys(this.travel.ARRIVAL_SHUTTLE).length>0&&Object.assign(a,{idShuttleArrival:this.travel.ARRIVAL_SHUTTLE.value,txtShuttleArrival:this.travel.ARRIVAL_SHUTTLE.label}),1==this.travel.TYPE_WAY&&this.travel.DATE_RETURN&&Object.assign(a,{returnDate:this.travel.DATE_RETURN}),this.travel.ID_AIRLINE&&Object.assign(a,{idAirline:this.travel.ID_AIRLINE}),"undefined"!==typeof this.$route.query.lang&&(Object.assign(a,{lang:this.$route.query.lang}),g["a"].locale=this.$route.query.lang,this.setLang(this.$route.query.lang)),this.setQueryParams(a),s={ID_DEPARTURE:this.travel.DEPARTURE.value,ID_ARRIVAL:this.travel.ARRIVAL.value,DATE_DEPARTURE:0==this.travel.DATE_DEPARTURE?this.travel.DATE_DEPARTURE:this.$moment(this.travel.DATE_DEPARTURE,this.options.DATE_FORMAT_CALENDAR.value.toUpperCase()).format("YYYY-MM-DD"),TYPE_WAY:this.travel.TYPE_WAY},this.options.WEB_MAX_SELECTABLE_SEATS.value>0&&(s.PASSENGERS=this.maxSeatSelectedTravel),1==this.travel.TYPE_WAY&&(s.DATE_RETURN=this.$moment(this.travel.DATE_RETURN,this.options.DATE_FORMAT_CALENDAR.value.toUpperCase()).format("YYYY-MM-DD")),s=Object(f["d"])(s),e.next=22,this.wsGetTravels(s);case 22:if(r=e.sent,i=r.data.data,n=i.travels,!this.options.WEB_INFORMATIVE_MESSAGE.value){e.next=49;break}for(this.arr_messages=[],l=!0,o=!1,c=void 0,e.prev=30,d=n.messageweb[Symbol.iterator]();!(l=(u=d.next()).done);l=!0)p=u.value,("WITHOUT"!=p.type||0==n.ow.length)&&("en"==g["a"].locale?this.arr_messages.push({message:p.descriptionEn,image:p.imageEn?"http://"+this.options.SITE_DOMAIN.value+p.imageEn:""}):this.arr_messages.push({message:p.descriptionEs,image:p.imageEs?"http://"+this.options.SITE_DOMAIN.value+p.imageEs:""}));e.next=38;break;case 34:e.prev=34,e.t0=e["catch"](30),o=!0,c=e.t0;case 38:e.prev=38,e.prev=39,l||null==d.return||d.return();case 41:if(e.prev=41,!o){e.next=44;break}throw c;case 44:return e.finish(41);case 45:return e.finish(38);case 46:this.arr_messages.length>0&&this.$bvModal.show("bv-modal-message-web"),e.next=51;break;case 49:if(0!=n.ow.length){e.next=51;break}
1throw this.$t("No se encontraron viajes disponibles");case 51:this.setListTravel(n),this.setTravel({DEPARTURE_ROUTE:n.idDepartureRoute}),this.setTravel({ARRIVAL_ROUTE:n.idArrivalRoute}),this.setTravel({ID_DEPARTURE_NEAR:n.idDepartureNear}),this.setTravel({ID_ARRIVAL_NEAR:n.idArrivalNear}),""!=n.idArrivalNear&&(this.cityNearName=n.nameCityRoute,this.showModalCityNear=!0,this.$bvModal.show("bv-modal-citynear")),this.setdetailsFares(i.rates_desciption),this.qwsetstateOption(2),m=n.ow,v=n.rw,m&&m.length>0&&(h=m[0],h&&h.travelDepartureDatetime&&(this.setTravel({DATE_DEPARTURE:this.$moment(h.travelDepartureDatetime).format(this.options.DATE_FORMAT_CALENDAR.value.toUpperCase())}),this.setcurrentdateOw(this.$moment(h.travelDepartureDatetime).format(this.options.DATE_FORMAT_CALENDAR.value.toUpperCase())))),v&&v.length>0&&(_=v[0],_&&_.travelDepartureDatetime&&(this.setTravel({DATE_RETURN:this.$moment(_.travelDepartureDatetime).format(this.options.DATE_FORMAT_CALENDAR.value.toUpperCase())}),this.setcurrentdateRw(this.$moment(_.travelDepartureDatetime).format(this.options.DATE_FORMAT_CALENDAR.value.toUpperCase())))),this.setLoading({state:!1,msg:this.$t(""),class:"fa-route"}),this.$scrollTo("#point-before-search-ow",600,{offset:this.offsetScroll,force:!0}),this.$router.replace({name:"home",query:a}).catch((function(e){e.name})),e.next=76;break;case 68:e.prev=68,e.t1=e["catch"](0),this.sendDataGetTravel=!1,this.restartTravels(),this.setQueryParams(null),this.qwsetstateOption(1),this.setLoading({state:!1,msg:this.$t(""),class:"fa-route"}),this.$eventBus.$emit("loadError",Object(f["b"])(e.t1));case 76:case"end":return e.stop()}}),e,this,[[0,68],[30,34,38,46],[39,,41,45]])})));function t(){return e.apply(this,arguments)}return t}(),loadDatesEnabled:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t,a,s,r,i,n,l,o,c,d,u,p,m=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,!(this.options.WEB_SALE_SHOW_ITINERARIES_DATEPICKER.value>0&&0!==Object.keys(this.departure).length&&0!==Object.keys(this.arrival).length)){e.next=34;break}return this.setLoading({state:!0,msg:this.$t(""),class:"fa-route"}),this.loadingDateEnabled=!0,t={ID_DEPARTURE:this.travel.DEPARTURE.value,ID_ARRIVAL:this.travel.ARRIVAL.value,TYPE_WAY:"napaway"===this.options.SKIN.value?1:this.travel.TYPE_WAY},e.next=7,this.wsGetDatesEnabled(t);case 7:if(a=e.sent,s=a.data.data,0!=s.ow.length){e.next=12;break}throw this.disableddateOw.from=new Date(this.$moment().format("YYYY-MM-DD")),this.$t("No se encontraron viajes disponibles");case 12:for(this.setListDates(s),this.dateDepartureSearch=this.$moment(new Date(s.ow[0].travelDateReal),this.options.DATE_FORMAT_CALENDAR.value.toUpperCase()),r=s.ow.map((function(e){return new Date(m.$moment(e.travelDateReal,m.options.DATE_FORMAT_CALENDAR.value.toUpperCase())).getTime()})),i=this.options.WEB_SALE_SHOW_ITINERARIES_DATEPICKER.value,n=[],l=0;l<=i;l++)n.push(new Date(this.$moment().startOf("day").add(l,"days").format("YYYY-MM-DD")+"T00:00:00.0"));if(o=n.filter((function(e){return!r.includes(e.getTime())})),this.disableddateOw.from=new Date(this.$moment().add(i,"days")),this.disableddateOw.dates=o,!s.hasOwnProperty("rw")){e.next=32;break}if(0!=s.rw.length){e.next=25;break}throw this.disableddateRw.from=new Date(this.$moment().format("YYYY-MM-DD")),this.$t("No se encontraron viajes disponibles");case 25:c=s.rw.map((function(e){return new Date(m.$moment(e.travelDateReal,m.options.DATE_FORMAT_CALENDAR.value.toUpperCase())).getTime()})),d=n.filter((function(e){return!c.includes(e.getTime())})),u=this.$moment(s.rw[0].travelDateReal,this.options.DATE_FORMAT_CALENDAR.value.toUpperCase()),u.isBefore(this.dateDepartureSearch)?(p=s.rw.find((function(e){var t=new Date(m.dateDepartureSearch),a=new Date(m.$moment(e.travelDateReal,m.options.DATE_FORMAT_CALENDAR.value.toUpperCase()));return a.getTime()>t.getTime()})),this.dateReturnSearch=this.$moment(p.travelDateReal,this.options.DATE_FORMAT_CALENDAR.value.toUpperCase())):this.dateReturnSearch=this.$moment(s.rw[0].travelDateReal,this.options.DATE_FORMAT_CALENDAR.value.toUpperCase()),this.disableddateRw.from=new Date(this.$moment().add(i,"days")),this.disableddateRw.dates=d,"napaway"===this.options.SKIN.value&&(this.dateReturnSearch=null);case 32:this.loadingDateEnabled=!1,this.setLoading({state:!1,msg:"",class:"fa-route"});case 34:e.next=43;break;case 36:e.prev=36,e.t0=e["catch"](0),this.loadingDateEnabled=!1,this.setLoading({state:!1,msg:"",class:"fa-route"}),this.dateDepartureSearch=null,this.dateReturnSearch=null,this.$eventBus.$emit("loadError",Object(f["b"])(e.t0));case 43:case"end":return e.stop()}}),e,this,[[0,36]])})));function t(){return e.apply(this,arguments)}return t}(),checkAirlines:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=!1,e.prev=1,e.next=4,this.wsCheckAirlines(t);case 4:s=e.sent,1==s.data.data.status&&(a=!0),e.next=11;break;case 8:return e.prev=8,e.t0=e["catch"](1),e.abrupt("return",!1);case 11:return e.abrupt("return",a);case 12:case"end":return e.stop()}}),e,this,[[1,8]])})));function t(t){return e.apply(this,arguments)}return t}()},Object(h["b"])({addCache:"cache/addCache",setTravel:"search/setTravel",setcurrentdateOw:"search/setcurrentdateOw",setcurrentdateRw:"search/setcurrentdateRw",checkIdAirlineExists:"search/checkIdAirlineExists",setListTravel:"travels/setListTravel",setListDates:"travels/setListDates",setdetailsFares:"travels/setdetailsFares",restartTravels:"travels/restartState",setLoading:"options/setLoading",qwsetstateOption:"options/setstateOption",setTimer:"options/setTime",setQueryParams:"options/setQueryParams",setLang:"options/setLang",setMaxSeatSelected:"cart/setMaxSeatSelected"}),{wsGetTravels:function(e){return this.$http({method:"GET",url:"travel/getTravels?"+w.stringify(e)})},wsCheckAirlines:function(e){return this.$http.post("alliances/checkAirlines",{idAirlines:e})},wsCleanCart:function(e){return this.$http.post("shoppingcart/cleanShoppingCart",e,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},wsGetDatesEnabled:function(e){return this.$http({method:"GET",url:"travel/getDatesEnabled?"+w.stringify(e)})},wsGetDepartures:function(){return this.$http({method:"GET",url:"travel/getDepartures"})},wsGetArrivals:function(e){return this.$http({method:"get",url:"travel/getArrivals?ID_DEPARTURE="+e})}})},E=y,S=(a("354e"),a("2877")),A=Object(S["a"])(E,c,d,!1,null,null,null),T=A.exports,O=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"col-lg-12 p-0"},[a("vue-headful",{attrs:{title:e.options.COMPANY_NAME.value.charAt(0).toUpperCase()+e.options.COMPANY_NAME.value.slice(1)+" - "+e.$t("Buscar viajes")}}
1),e.isReturn?e._e():a("qwTravelInfo",{attrs:{direction:0}}),a("qwTravelHeader",{attrs:{travelinfo:e.travels,typeway:1},on:{"filter-travels":e.filterSelectOrderOw}}),e._l(e.travels.ow,(function(t,s){return a("qwTravelItem",{directives:[{name:"show",rawName:"v-show",value:null==e.selectTravel.KEY_TRAVEL_OW||e.selectTravel.KEY_TRAVEL_OW==s,expression:"(selectTravel.KEY_TRAVEL_OW == null) ? true : (selectTravel.KEY_TRAVEL_OW == key ? true : false)"}],key:s,attrs:{travel:t,dpName:e.travels.departureName,avName:e.travels.arrivalName,keyTravel:s,direction:0}})})),"undefined"!==e.travels.rw&&e.isReturn?a("div",{staticClass:"mt-3",attrs:{id:"point-before-search-rw"}},[a("qwTravelInfo",{staticClass:"mb-n4",attrs:{direction:1}}),a("qwTravelHeader",{staticClass:"mt-5",attrs:{travelinfo:e.travels,typeway:2},on:{"filter-travels":e.filterSelectOrderRw}}),e._l(e.travels.rw,(function(t,s){return a("qwTravelItem",{directives:[{name:"show",rawName:"v-show",value:null==e.selectTravel.KEY_TRAVEL_RW||e.selectTravel.KEY_TRAVEL_RW==s,expression:"(selectTravel.KEY_TRAVEL_RW == null) ? true : (selectTravel.KEY_TRAVEL_RW == key ? true : false)"}],key:s,attrs:{travel:t,dpName:e.travels.arrivalName,avName:e.travels.departureName,keyTravel:s,direction:1}})}))],2):e._e()],2)},R=[],x=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mt-2 container align-items-center text-center container-slider-mobile"},[a("div",{staticClass:"calendar-row d-flex justify-content-center slider-in-mobile"},e._l(e.listDates,(function(t,s){return a("div",{key:t.date,staticClass:"calendar-box",class:{select:t.current,block:t.block,"low-price-date":"-"==t.price},attrs:{index:s},on:{click:function(a){return e.searchTravelsByDate(t.originalDate)}}},[e.idshowDate?a("p",{staticClass:"calendar-date"},[e._v(e._s(t.date))]):e._e(),a("div",{staticClass:"calendar-line"}),a("p",{staticClass:"calendar-from"},[e._v(e._s(e.$t("desde")))]),t.load?a("p",{staticClass:"calendar-price"},[a("span",[e._v(e._s(t.symbol))]),e._v(e._s(t.price))]):a("p",{staticClass:"spinner-border calendar-price px-2 mt-n3",attrs:{role:"status"}},[a("span",{staticClass:"sr-only calendar"},[e._v("Loading...")])])])})),0)])},D=[],P=a("c1df"),L=a.n(P);function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function I(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?k(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):k(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var N=a("72bf"),$={props:["direction"],data:function(){return{listDates:[],idshowDate:!1,isMobilDevice:_["isMobile"]}},mounted:function(){var e=this;0==this.direction?this.changeFormatDates(this.getCurrentdateOw):1==this.direction&&this.changeFormatDates(this.getCurrentdateRw),this.$eventBus.$on("languages",(function(){0==e.direction?e.changeFormatDates(e.getCurrentdateOw):1==e.direction&&e.changeFormatDates(e.getCurrentdateRw)})),this.$moment.locale(this.lang)},methods:I({changeFormatDates:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var a,s,r,i,n,l,o,c,d,u,p,m,v,h,f,_,g,b,C,w,y=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this.direction,s=this.options.DATE_FORMAT_CALENDAR.value.toUpperCase(),r=t,[],[],this.listDates=[],i=this.$moment(this.$moment().format("MM/DD/YYYY")).valueOf(),n=[],l=[],o=JSON.parse(JSON.stringify(this.reslistDates)),console.log(o),null!=o)l=o.ow,0!=a&&(l=o.rw),l.splice(7),console.log(l),console.log(l.slice(7));else for(c=0;c<7;c++)d=0==this.direction?i:this.$moment(this.travel.DATE_DEPARTURE,s).valueOf(),d<=this.$moment(this.$moment(i).add(c,"days"),s).valueOf()&&l.push({date:this.$moment(r,s).add(c,"days").format("ddd DD MMM"),travelDateReal:this.$moment(r,s).add(c,"days").format("MM/DD/YYYY")});for(u=!0,p=!1,m=void 0,e.prev=15,v=l[Symbol.iterator]();!(u=(h=v.next()).done);u=!0)f=h.value,_=0,g=this.$moment(f.travelDateReal).format("YYYY MM DD").valueOf(),b=this.$moment(r,s).format("YYYY MM DD").valueOf(),g==b&&(_=1),n.push({date:this.$moment(f.travelDateReal).format("ddd DD MMM"),originalDate:f.travelDateReal,current:_,block:!(this.$moment(f.travelDateReal).valueOf()>=i),load:!1,symbol:"",price:null});e.next=23;break;case 19:e.prev=19,e.t0=e["catch"](15),p=!0,m=e.t0;case 23:e.prev=23,e.prev=24,u||null==v.return||v.return();
1case 26:if(e.prev=26,!p){e.next=29;break}throw m;case 29:return e.finish(26);case 30:return e.finish(23);case 31:this.listDates=n,this.isMobilDevice&&(C=this.listDates.findIndex((function(e){return 1===e.current})),0==C?(w=6==this.listDates.length?1:2,this.listDates=this.listDates.slice(0,this.listDates.length-w)):(this.listDates.shift(),6==this.listDates.length&&this.listDates.pop())),this.idshowDate=!0,setTimeout((function(){y.initLoadTravelLowPrice()}),300);case 35:case"end":return e.stop()}}),e,this,[[15,19,23,31],[24,,26,30]])})));function t(t){return e.apply(this,arguments)}return t}(),searchTravelsByDate:function(e){var t=this;this.setLoading({state:!0,msg:this.$t("Estamos procesando su petición, por favor espere..."),class:"fa-calendar-check"});var a=this.options.DATE_FORMAT_CALENDAR.value.toUpperCase(),s={ID_DEPARTURE:this.travel.DEPARTURE.value,ID_ARRIVAL:this.travel.ARRIVAL.value,DATE_DEPARTURE:0==this.direction?this.$moment(e).format("YYYY-MM-DD"):this.$moment(this.travel.DATE_DEPARTURE,a).format("YYYY-MM-DD"),TYPE_WAY:this.travel.TYPE_WAY,PASSENGERS:document.contains(document.querySelector("#numberpicker"))?document.querySelector("#numberpicker").value:1};if(0==this.direction?(this.setSelectTravel({KEY_TRAVEL_OW:null,TRAVEL_ADD_CART_OW:!1,TRAVEL_ID_OW:null,FARE_ID:null}),this.setcurrentdateOw(this.$moment(e).format(a))):1==this.direction&&(this.setSelectTravel({KEY_TRAVEL_RW:null,TRAVEL_ADD_CART_RW:!1,TRAVEL_ID_RW:null,FARE_ID_RW:null}),this.setcurrentdateRw(this.$moment(e).format(a))),this.changeFormatDates(this.$moment(e).format(a)),1==this.travel.TYPE_WAY)if(1==this.direction)s.DATE_RETURN=this.$moment(e).format("YYYY-MM-DD"),this.setTravel({DATE_RETURN:this.$moment(e).format(a)});else if(this.$moment(e).format(a)>this.$moment(this.travel.DATE_RETURN).format(a)){var r=this.$moment(this.travel.DATE_RETURN,a).diff(this.$moment(this.travel.DATE_DEPARTURE,a),"days");s.DATE_RETURN=this.$moment(e).add(r,"days").format("YYYY-MM-DD"),this.setTravel({DATE_RETURN:this.$moment(e).add(r,"days").format(a)})}else s.DATE_RETURN=this.$moment(this.travel.DATE_RETURN,a).format("YYYY-MM-DD");this.setTravel({DATE_DEPARTURE:0==this.direction?this.$moment(e).format(a):this.travel.DATE_DEPARTURE}),s=Object(f["d"])(s),this.$http({method:"get",url:"travel/getTravels?"+N.stringify(s)}).then((function(e){if(t.result=e,1==t.direction&&null!=t.listTravel){var a=JSON.parse(JSON.stringify(t.listTravel));a.rw=e.data.data.travels.rw,t.setListTravel(a),t.$eventBus.$emit("transitionHide")}else t.setTravel({DEPARTURE_ROUTE:e.data.data.travels.idDepartureRoute}),t.setTravel({ARRIVAL_ROUTE:e.data.data.travels.idArrivalRoute}),t.$eventBus.$emit("transitionHide"),t.setListTravel(e.data.data.travels);t.setdetailsFares(e.data.data.rates_desciption),t.setLoading({state:!1,msg:"",class:"fa-calendar-check"}),t.qwsetstateOption(2)})).catch((function(e){t.$eventBus.$emit("loadError",Object(f["b"])(e)),t.setListTravel(null),t.setLoading({state:!1,msg:"",class:"fa-calendar-check"}),t.qwsetstateOption(1)}))},initLoadTravelLowPrice:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t,a,s,r,i,n,l,o,c,d,u=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t="",a=document.contains(document.querySelector("#numberpicker"))?document.querySelector("#numberpicker").value:1,t=0==this.travel.TYPE_WAY||1==this.travel.TYPE_WAY&&0==this.direction?"quaweb_low_price_ow_".concat(this.travel.DEPARTURE.value,"_").concat(this.travel.ARRIVAL.value,"_").concat(a,"_").concat(this.lang):"quaweb_low_price_rw_".concat(this.travel.ARRIVAL.value,"_").concat(this.travel.DEPARTURE.value,"_").concat(this.travel.DATE_DEPARTURE,"_").concat(this.travel.DATE_RETURN,"_").concat(a,"_").concat(this.lang),s=this.getCache(t),r=[],i=!0,n=!1,l=void 0,e.prev=8,o=regeneratorRuntime.mark((function e(){var a,i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=d.value,i=-1,s&&(i=s.findIndex((function(e){return e.date==a.originalDate})),r=JSON.parse(JSON.stringify(s))),-1===i){e.next=9;break}a.load=!0,a.price=r[i].price,a.symbol=r[i].symbol,e.next=20;break;case 9:if(!(L()(a.originalDate).format("YYYY-MM-DD").valueOf()<L()().format("YYYY-MM-DD").valueOf())){e.next=15;break}a.load=!0,a.price="-",r.push({date:a.originalDate,price:"-",symbol:""}),e.next=19;break;case 15:return e.next=17,u.loadTravelLowPrice(a.originalDate);case 17:n=e.sent,0!==n.lowPrice?(a.load=!0,a.price=n.lowPrice,a.symbol=n.symbol,r.push({date:a.originalDate,price:n.lowPrice,symbol
1:n.symbol})):(a.load=!0,a.price="-",r.push({date:a.originalDate,price:"-",symbol:""}));case 19:u.setCache([t,r]);case 20:case"end":return e.stop()}}),e)})),c=this.listDates[Symbol.iterator]();case 11:if(i=(d=c.next()).done){e.next=16;break}return e.delegateYield(o(),"t0",13);case 13:i=!0,e.next=11;break;case 16:e.next=22;break;case 18:e.prev=18,e.t1=e["catch"](8),n=!0,l=e.t1;case 22:e.prev=22,e.prev=23,i||null==c.return||c.return();case 25:if(e.prev=25,!n){e.next=28;break}throw l;case 28:return e.finish(25);case 29:return e.finish(22);case 30:case"end":return e.stop()}}),e,this,[[8,18,22,30],[23,,25,29]])})));function t(){return e.apply(this,arguments)}return t}(),loadTravelLowPrice:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var a,s,r,n,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=[],s=0,r="",n={ID_DEPARTURE:this.travel.DEPARTURE.value,ID_ARRIVAL:this.travel.ARRIVAL.value,DATE_DEPARTURE:0==this.travel.TYPE_WAY||1==this.travel.TYPE_WAY&&0==this.direction?this.$moment(t).format("YYYY-MM-DD"):this.$moment(this.travel.DATE_DEPARTURE,"MM-DD-YYYY").format("YYYY-MM-DD"),TYPE_WAY:0==this.travel.TYPE_WAY||1==this.travel.TYPE_WAY&&0==this.direction?0:1,PASSENGERS:document.contains(document.querySelector("#numberpicker"))?document.querySelector("#numberpicker").value:1},1==this.travel.TYPE_WAY&&1==this.direction&&Object.assign(n,{DATE_RETURN:this.$moment(t).format("YYYY-MM-DD")}),e.prev=5,!(0==this.travel.TYPE_WAY||1==this.travel.TYPE_WAY&&0==this.direction||1==this.travel.TYPE_WAY&&1==this.direction&&n.DATE_DEPARTURE<=n.DATE_RETURN)){e.next=12;break}return e.next=9,this.$http.get("travel/getTravels?"+N.stringify(n));case 9:a=e.sent,l=0==this.direction?"ow":"rw",a.data.data.travels[l].forEach((function(e){r=e.symbol,e.fare.forEach((function(t){"available"in t||(t.available=100),0!=t.exhausted&&t.hasOwnProperty("exhausted")||1!=e.available||(0==s?s=Array.isArray(t.price)?Math.min.apply(Math,Object(i["a"])(t.price.map((function(e){return e.price})))):t.price:s>t.price&&(s=t.price))}))}));case 12:return e.abrupt("return",{lowPrice:s,symbol:r});case 15:return e.prev=15,e.t0=e["catch"](5),e.abrupt("return",{lowPrice:s,symbol:""});case 18:case"end":return e.stop()}}),e,this,[[5,15]])})));function t(t){return e.apply(this,arguments)}return t}()},Object(h["b"])({setLoading:"options/setLoading",qwsetstateOption:"options/setstateOption",setcurrentdateOw:"search/setcurrentdateOw",setcurrentdateRw:"search/setcurrentdateRw",setListTravel:"travels/setListTravel",setTravel:"search/setTravel",setSelectTravel:"travels/setSelectTravel",setCache:"cache/setCache",setdetailsFares:"travels/setdetailsFares"})),computed:I({},Object(h["c"])({getCurrentdateOw:"search/getCurrentdateOw",getCurrentdateRw:"search/getCurrentdateRw",travel:"search/travel",reslistDates:"travels/listDates",listTravel:"travels/listTravel",selectTravel:"travels/selectTravel",options:"options/listoptions",lang:"options/lang",getCache:"cache/getCache"}))},j=$,M=Object(S["a"])(j,x,D,!1,null,null,null),U=M.exports,F=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container px-0 px-lg-3 align-items-center"},[a("div",{staticClass:"d-none d-lg-flex align-items-center "},[1==e.typeway?a("div",{staticClass:"col"},[a("div",{staticClass:"d-flex",class:{"not-text-aditional":!e.departureShuttle.label&&!e.arrivalShuttle.label}},[a("h6",{staticClass:"header-viaje text-uppercase"},[e._v(e._s(e.$t("Ida")))]),a("h6",{staticClass:"header-fecha "},[a("div",{staticClass:"d-flex flex-wrap align-items-center"},[a("div",{staticClass:"header-destino "},[["napaway"==e.skin?a("h6",{staticClass:" text-uppercase"},[e._v(e._s(e.changeShortName(e.dateDeparture))+" - "+e._s(e.travelinfo.departureName))]):a("h6",{staticClass:" text-uppercase"},[e._v(e._s(e.travelinfo.departureName)+" - "+e._s(e.changeShortName(e.dateDeparture)))])],e.departureShuttle.label?a("div",{staticStyle:{"margin-top":"-.5rem"}},[e._v(e._s(e.departureShuttle.label))]):e._e()],2),e._m(0),a("div",{staticClass:"header-destino "},[a("h6",{staticClass:" text-wrap text-uppercase"},[e._v(e._s(e.travelinfo.arrivalName))]),e.arrivalShuttle.label?a("div",{staticClass:"header-destino text-wrap",staticStyle:{"margin-top":"-.5rem"}}
1,[e._v(e._s(e.arrivalShuttle.label))]):e._e()]),a("a",{directives:[{name:"show",rawName:"v-show",value:e.isShowForm,expression:"isShowForm"}],attrs:{title:e.$t("Nueva búsqueda")},on:{click:function(t){return e.showFormSearch()}}},[a("i",{staticClass:"fas fa-times-circle header-new-search "})])])])])]):e._e(),2==e.typeway?a("div",{staticClass:"col d-flex mt-4"},[a("div",{staticClass:"d-flex ",class:{"not-text-aditional":!e.departureShuttle.label&&!e.arrivalShuttle.label}},[a("h6",{staticClass:"header-viaje text-uppercase"},[e._v(e._s(e.$t("Vuelta")))]),a("h6",{staticClass:"header-fecha"},[a("div",{staticClass:"d-flex flex-wrap align-items-center"},[a("div",{staticClass:"header-destino "},[["napaway"==e.skin?a("h6",{staticClass:" text-uppercase"},[e._v(e._s(e.changeShortName(e.dateReturn))+" - "+e._s(e.travelinfo.arrivalName))]):a("h6",{staticClass:" text-uppercase"},[e._v(e._s(e.travelinfo.arrivalName)+" - "+e._s(e.changeShortName(e.dateReturn)))])],e.departureShuttle.label?a("div",{staticStyle:{"margin-top":"-.5rem"}},[e._v(e._s(e.departureShuttle.label))]):e._e()],2),e._m(1),a("div",{staticClass:"header-destino "},[a("h6",{staticClass:" text-wrap text-uppercase"},[e._v(e._s(e.travelinfo.departureName))]),e.arrivalShuttle.label?a("div",{staticClass:"header-destino text-wrap",staticStyle:{"margin-top":"-.5rem"}},[e._v(e._s(e.arrivalShuttle.label))]):e._e()]),a("a",{directives:[{name:"show",rawName:"v-show",value:e.isShowForm,expression:"isShowForm"}],attrs:{title:e.$t("Nueva búsqueda")},on:{click:function(t){return e.showFormSearch()}}},[a("i",{staticClass:"fas fa-backspace header-new-search"})])])])])]):e._e(),a("div",{staticClass:"mr-n3 margin-right pb-1"},[a("label",{staticClass:"text-uppercase"},[e._v(e._s(e.$t("Ordenar por")))]),a("b-dropdown",{attrs:{id:"filtro-opciones",text:"",right:"",variant:"link",size:"lg","no-caret":""},scopedSlots:e._u([{key:"button-content",fn:function(){return[a("i",{staticClass:"text-blue fas",class:[e.iconDownUp?"fa-sort-amount-down-alt":"fa-sort-amount-up-alt"]})]},proxy:!0}])},[a("b-dropdown-item",{on:{click:function(t){return e.filterTravelsEmmit(1)}}},[e._v(e._s(e.$t("Menor precio primero")))]),a("b-dropdown-item",{on:{click:function(t){return e.filterTravelsEmmit(2)}}},[e._v(e._s(e.$t("Mayor precio primero")))]),a("b-dropdown-item",{on:{click:function(t){return e.filterTravelsEmmit(3)}}},[e._v(e._s(e.$t("Más temprano primero")))]),a("b-dropdown-item",{on:{click:function(t){return e.filterTravelsEmmit(4)}}},[e._v(e._s(e.$t("Más tarde primero")))]),a("b-dropdown-item",{on:{click:function(t){return e.filterTravelsEmmit(5)}}},[e._v(e._s(e.$t("Menor duración primero")))]),a("b-dropdown-item",{on:{click:function(t){return e.filterTravelsEmmit(6)}}},[e._v(e._s(e.$t("Mayor duración primero")))])],1)],1)]),a("div",{staticClass:"row d-none d-lg-flex align-items-end text-uppercase border-bottom"},[a("div",{staticClass:"col-lg-7 col-md-12"}),a("div",{staticClass:"col-lg-5 col-md-12"},[a("div",{staticClass:"row header-row"},e._l(e.hFares,(function(t,s){return a("div",{key:s,staticClass:"col text-blue"},[a("small",[e._v(e._s(t.name))]),s===e.hFares.length-1?a("i",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"info-fares",expression:"'info-fares'"}],staticClass:"header-info cursor-pointer far fa-info-circle"}):e._e()])})),0)])]),a("div",[a("div",{staticClass:"d-lg-none d-flex align-items-end mb-2 mx-0 px-0"},[1==e.typeway?a("div",{staticClass:"col p-0"},[a("div",{staticClass:"mx-1 header-mobil"},[a("div",{staticClass:"d-flex"},[a("div",{staticClass:"col-auto header-box text-center bg-primary"},[a("p",{staticClass:"path-title text-white"},[e._v(e._s(e.changeShortName(e.dateDeparture,"MMM")))]),a("p",{staticClass:"path-number text-white pb-0 mb-0"},[e._v(e._s(e.changeShortName(e.dateDeparture,"DD")))])]),a("div",{staticClass:"col px-2 header-box",staticStyle:{"background-color":"var(--green-5)"}},[a("a",{directives:[{name:"show",rawName:"v-show",value:e.isShowForm,expression:"isShowForm"}],attrs:{title:e.$t("Nueva búsqueda")},on:{click:function(t){return e.showFormSearch()}}},[a("i",{staticClass:"fas fa-times-circle header-new-search mr-2 mt-1",staticStyle:{"background-color":"var(--blue-trans)"}})]),a("h5",{staticClass:"text-uppercase lh-100 ml-2 mt-2 mb-0 text-white"},[e._v(e._s(e.$t("Ida"))),a("i",{staticClass:"pl-2 fas fa-arrow-right"})])])]),a("div",{staticClass:"d-flex"},[a("div",{staticClass:"col p-2 header-box"},[a("h6",{staticClass:"header-destino"},[a("i",{staticClass:"pr-1 text-green fas fa-arrow-circle-up"}),e._v(e._s(e.travelinfo.departureName))]),a("h6",{staticClass:"header-destino"},[a("i",{staticClass:"pr-1 text-green fas fa-arrow-circle-down"}
1),e._v(e._s(e.travelinfo.arrivalName))])])])])]):e._e(),2==e.typeway?a("div",{staticClass:"col p-0 mt-2"},[a("div",{staticClass:"mx-1 header-mobil"},[a("div",{staticClass:"d-flex"},[a("div",{staticClass:"col-auto header-box text-center bg-primary"},[a("p",{staticClass:"path-title text-white"},[e._v(e._s(e.changeShortName(e.dateReturn,"MMM")))]),a("p",{staticClass:"path-number text-white pb-0 mb-0"},[e._v(e._s(e.changeShortName(e.dateReturn,"DD")))])]),a("div",{staticClass:"col px-2 header-box",staticStyle:{"background-color":"var(--green-5)"}},[a("a",{directives:[{name:"show",rawName:"v-show",value:e.isShowForm,expression:"isShowForm"}],attrs:{title:e.$t("Nueva búsqueda")},on:{click:function(t){return e.showFormSearch()}}},[a("i",{staticClass:"fas fa-times-circle header-new-search mr-2 mt-1",staticStyle:{"background-color":"var(--blue-trans)"}})]),a("h5",{staticClass:"text-uppercase lh-100 ml-2 mt-2 mb-0 text-white"},[e._v(e._s(e.$t("Vuelta"))),a("i",{staticClass:"pl-2 fas fa-arrow-left"})])])]),a("div",{staticClass:"d-flex"},[a("div",{staticClass:"col p-2 header-box"},[a("h6",{staticClass:"header-destino"},[a("i",{staticClass:"pr-1 text-green fas fa-arrow-circle-up"}),e._v(e._s(e.travelinfo.arrivalName))]),a("h6",{staticClass:"header-destino"},[a("i",{staticClass:"pr-1 text-green fas fa-arrow-circle-down"}),e._v(e._s(e.travelinfo.departureName))])])])])]):e._e()]),a("div",{staticClass:"d-lg-none d-flex align-items-center mx-1"},[e.webFares.length>0?a("div",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"info-fares",expression:"'info-fares'"}]},[a("i",{staticClass:"header-info-mobile cursor-pointer far fa-info-circle px-1"}),a("small",{staticClass:"text-uppercase"},[e._v(e._s(e.$t("INFO TARIFA")))])]):e._e(),a("div",{staticClass:"ml-auto"},[a("small",{staticClass:"text-uppercase"},[e._v(e._s(e.$t("Ordenar por")))]),a("b-dropdown",{attrs:{id:"filtro-opciones",text:"",right:"",variant:"link",size:"lg","no-caret":""},scopedSlots:e._u([{key:"button-content",fn:function(){return[a("i",{staticClass:"text-blue fas",class:[e.iconDownUp?"fa-sort-amount-down-alt":"fa-sort-amount-up-alt"]})]},proxy:!0}])},[a("b-dropdown-item",{on:{click:function(t){return e.filterTravelsEmmit(1)}}},[e._v(e._s(e.$t("Menor precio primero")))]),a("b-dropdown-item",{on:{click:function(t){return e.filterTravelsEmmit(2)}}},[e._v(e._s(e.$t("Mayor precio primero")))]),a("b-dropdown-item",{on:{click:function(t){return e.filterTravelsEmmit(3)}}},[e._v(e._s(e.$t("Más temprano primero")))]),a("b-dropdown-item",{on:{click:function(t){return e.filterTravelsEmmit(4)}}},[e._v(e._s(e.$t("Más tarde primero")))]),a("b-dropdown-item",{on:{click:function(t){return e.filterTravelsEmmit(5)}}},[e._v(e._s(e.$t("Menor duración primero")))]),a("b-dropdown-item",{on:{click:function(t){return e.filterTravelsEmmit(6)}}},[e._v(e._s(e.$t("Mayor duración primero")))])],1)],1)])]),1==e.typeway?a("b-modal",{ref:"explore-rates",attrs:{id:"info-fares","hide-footer":"","hide-header":"",centered:"",size:"lg",scrollable:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.hide;return[a("div",{staticClass:"modal-body"},[a("div",[a("b-button",{staticClass:"float-right mr-n1 mt-0 rounded-pill",attrs:{variant:"light"},on:{click:function(e){return s()}}},[e._v("X")]),a("h4",{staticClass:"ml-n3 mb-5 text-blue"},[a("i",{staticClass:"text-green pl-3 pr-3 far fa-ticket-alt"}),e._v(e._s(e.$t("Nuestras tarifas")))]),a("div",{staticClass:"text-center"},[[a("div",{staticClass:"row",staticStyle:{"max-height":"200px"}},e._l(e.webFares,(function(t){return a("div",{key:t.key,staticClass:"mx-auto col-md-4 text-left",staticStyle:{"line-height":"1em"}},[a("small",[a("h6",{staticClass:"text-blue text-center"},[e._v(e._s(t.header.name))]),e._l(t.detail,(function(t,s){return a("p",{key:s},[e._v(e._s(t.description))])}))],2)])})),0)]],2)],1)])]}},{key:"modal-footer",fn:function(t){var s=t.ok;return[a("b-button",{staticClass:"mt-n2 mb-n2",attrs:{size:"sm",variant:"primary"},on:{click:function(e){return s()}}},[e._v("Aceptar")])]}}],null,!1,186658545)}):e._e()],1)},B=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h4",[a("i",{staticClass:"pl-3 pr-3 far fa-angle-right text-blue"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h4",[a("i",{staticClass:"pl-3 pr-3 far fa-angle-right text-blue"})])}];a("5df3"),a("f400");function Y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function V(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?Y(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Y(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var q={props:["travelinfo","typeway"],data:function(){return{istFare:!1,isShowForm:!1,offsetScroll:_["isMobile"]?0:-105}},components:{},mounted:function(){var e=this;2==this.typeway&&setTimeout((function(){e.$scrollTo("#point-before-search-rw",600,{offset:e.offsetScroll,force:!0})}),600)},computed:V({iconDownUp:function(){return!("ow"!==this.selectOrder.TYPE&&"rw"!==this.selectOrder.TYPE||![1,3].includes(this.selectOrder.OPTION))},hFares:function(){var e=[],t=[];if(null!=this.listTravel){var a=!0,s=!1,r=void 0;try{for(var i,n=this.listTravel.ow[Symbol.iterator]();!(a=(i=n.next()).done);a=!0){var l=i.value,o=!0,c=!1,d=void 0;try{for(var u,p=l.fare[Symbol.iterator]();!(o=(u=p.next()).done);o=!0){var m=u.value;e.push({id:m.fareId,name:m.name})}}catch(g){c=!0,d=g}finally{try{o||null==p.return||p.return()}finally{if(c)throw d}}}}catch(g){s=!0,r=g}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}}for(var v=new Map,h=0,f=e;h<f.length;h++){var _=f[h];v.has(_.id)||(v.set(_.id,!0),t.push({id:_.id,name:_.name}))}return t},webFares:function(){return this.detailsFares.filter((function(e){return 1==e.header.weboption}))}},Object(h["c"])({listTravel:"travels/listTravel",detailsFares:"travels/detailsFares",selectOrder:"options/selectOrder",skin:"options/skin",dateReturn:"search/dateReturn",departureShuttle:"search/departureShuttle",arrivalShuttle:"search/arrivalShuttle",dateDeparture:"search/dateDeparture",options:"options/listoptions"})),methods:{filterTravelsEmmit:function(e){this.$emit("filter-travels",e)},changeShortName:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DD MMM";return this.$moment(e,this.options.DATE_FORMAT_CALENDAR.value.toUpperCase()).format(t)},transitionShow:function(e){this.setListTravel(this.listTravel),this.indexSelected=e,this.show=!0},showFormSearch:function(){this.isShowForm=!1,this.$eventBus.$emit("loadStepOne")}}},H=q,W=(a("89e0"),Object(S["a"])(H,F,B,!1,null,"1695c14f",null)),G=W.exports,z=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"container px-0 px-lg-3 position-relative align-items-center text-center"},[s("div",{class:{select:e.travel.travelId==e.selectItem},attrs:{id:"point-before-select-travel-"+e.travel.travelId}},[s("div",{staticClass:"d-lg-block d-none"},[s("div",{staticClass:"row item"},[s("div",{staticClass:"col-lg-7 col-md-12"},[s("div",{staticClass:"d-flex align-items-center justify-content-center itinerary"},[s("div",[s("h4",{staticClass:"itinerary-hour"},[e._v(e._s(e.tDepartureDate))]),s("p",{staticClass:"itinerary-place"},[e._v(e._s(e.dpName))])]),s("div",{staticClass:"mr-3 text-center"},[e._m(0),1!==e.options.WEB_SALE_SHOW_ROUTE_INFO.value?s("p",{staticClass:"py-1 mx-1 my-0 lh-100 itinerary-place"},[s("i",{staticClass:"far fa-map-marked-alt"}),e._v(" "+e._s(this.pathsCalc))]):e._e()]),s("div",[s("h4",{staticClass:"itinerary-hour"},[e._v(e._s(e.tArrivalDate))]),s("p",{staticClass:"itinerary-place"},[e._v(e._s(e.avName))])]),e.tDiffDay>0?s("div",{staticClass:"ml-2 rounded-circle bg-white text-blue border cursor-pointer",staticStyle:{"font-size":"0.7em",width:"20px",height:"20px"},attrs:{id:"arrive-date-"+e.travel.travelId}},[e._v("+"+e._s(e.tDiffDay))]):e._e(),s("b-tooltip",{attrs:{variant:"primary",target:"arrive-date-"+e.travel.travelId}},[s("small",[e._v(e._s(1==e.tDiffDay?"Al dÃa siguiente":e.tDiffDay+"dias despues"))])]),s("div",{staticClass:"itinerary-duration2 align-items-center justify-content-center"},[s("p",[s("small",[e._v(e._s(e.$t("Duración"))+":")])]),s("p",[s("i",{staticClass:"mr-1 far fa-clock text-blue"}),s("small",[e._v(e._s(e.tTime))])])])],1),s("div",{staticClass:"d-flex py-2 flex-detail-service"},[1==e.options.WEB_SALE_SHOW_ROUTE_INFO.value?s("div",{staticClass:"item-flex-service-detailt mr-2"},[s("a",{staticClass:"itinerary-btn-select btn rounded-pill",attrs:{role:"button"},on:{click:function(t){return e.showItinerary(e.travel)}}},[s("span",[s("i",{staticClass:"far fa-map-marked-alt text-blue"}),s("small",{staticClass:"text-capitalize text-blue"}
1,[e._v(e._s(e.$t("detalle de ruta")))])])])]):e._e(),e.travel.hasOwnProperty("serviceBus")&&e.travel.serviceBus.length>0?s("div",{staticClass:"item-flex-service-detailt mr-3"},[s("div",{staticClass:"d-flex"},e._l(e.travel.serviceBus,(function(e,t){return s("div",{key:t},[s("b-button",{staticClass:"p-1 text-secondary",attrs:{title:e[0].name,variant:"link"}},[s("i",{class:e[0].icon})])],1)})),0)]):e._e(),1==e.options.WEBSALE_SHOW_INFO_TRAVEL.value?[1==e.options.WEB_SALE_SHOW_FREE_SEATS.value?s("div",{staticClass:"item-flex-service-detailt mr-3"},[s("div",{staticClass:"d-flex justify-content-center align-items-center full-height"},[s("div",{staticClass:"mr-2 rounded-circle",staticStyle:{width:"25px",height:"25px",background:"var(--gray-dark)"}},["napaway"!=e.skin?s("img",{staticStyle:{width:"12px"},attrs:{src:a("e89b"),alt:""}}):s("img",{staticStyle:{width:"1.6em"},attrs:{src:a("7863"),alt:""}})]),e.travel.hasOwnProperty("free")?s("div",[s("small",[e._v(e._s(e.travel.free)+" ")]),s("small",[e._v(" "+e._s(e.$t("Disponibles"))+" ")])]):e._e(),"undefined"==typeof e.travel.free?s("div",[s("small",{staticClass:"text-capitalize"},[e._v(e._s(e.$t("Asientos Disponibles")))])]):e._e()])]):e._e(),s("div",{staticClass:"item-flex-service-detailt"},[s("div",{staticClass:"d-flex align-items-center justify-content-center full-height"},["napaway"!=e.skin?s("div",[s("small",[s("b",[e._v(e._s(e.$t(e.travelRouteName))+" "+e._s(e.travelRouteId)+" ")])])]):s("div",[s("small",[s("b",[e._v(e._s(e.$t(e.travelRouteName))+" ")])])])])])]:e._e()],2)]),s("qwTravelFares",{attrs:{fares:e.travel.fare,keyTravel:e.keyTravel,travelDetail:e.travel,direction:e.direction}})],1)]),s("div",{staticClass:"d-lg-none d-md-block p-1"},[s("div",{staticClass:"itinerary-mobil"},[s("div",{staticClass:"itinerary-hour-box align-items-center justify-content-center"},[s("div",{staticClass:"d-flex align-items-center justify-content-center"},[s("h3",{staticClass:"itinerary-hour"},[e._v(e._s(e.tDepartureDate))]),s("i",{staticClass:"far fa-angle-right pt-2",staticStyle:{color:"var(--blue)","padding-top":"1rem","font-size":"1.3rem"}}),s("h3",{staticClass:"itinerary-hour"},[e._v(e._s(e.tArrivalDate))]),e.tDiffDay>0?s("div",{staticClass:"ml-2 rounded-circle bg-white text-blue border cursor-pointer",staticStyle:{"font-size":"0.7em",width:"20px",height:"20px"},attrs:{id:"arrive-date-"+e.travel.travelId}},[e._v("+"+e._s(e.tDiffDay))]):e._e(),s("b-tooltip",{attrs:{variant:"primary",target:"arrive-date-"+e.travel.travelId}},[s("small",[e._v(e._s(1==e.tDiffDay?"Al dÃa siguiente":e.tDiffDay+"dias despues"))])])],1),1==e.options.WEB_SALE_SHOW_ROUTE_INFO.value?s("div",{},[s("a",{staticClass:"itinerary-btn btn rounded-pill",attrs:{role:"button"},on:{click:function(t){return e.showItinerary(e.travel)}}},[s("span",[s("i",{staticClass:"far fa-map-marked-alt text-blue"}),s("small",{staticClass:"text-capitalize text-blue"},[e._v(e._s(e.$t("detalle de ruta")))])])])]):e._e()]),s("qwTravelFares",{attrs:{fares:e.travel.fare,keyTravel:e.keyTravel,travelDetail:e.travel,direction:e.direction}})],1),s("div",{staticClass:"itinerary-detail-mobil"},[s("div",{staticClass:"d-flex my-0 align-items-center justify-content-center mobile-detailt"},[s("div",{staticClass:"ml-2 chip-mobile-detail text-white-space-nowrap"},[s("small",{staticClass:"mx-1"},[s("i",{staticClass:"mx-1 far fa-clock"}),e._v(e._s(e.tTime))])]),1==e.options.WEBSALE_SHOW_INFO_TRAVEL.value?s("div",{staticClass:"d-flex align-items-center justify-content-center chip-mobile-detail uk-padding margin5"},["undefined"!=typeof e.travel.free&&"redcoach"!=e.skin?s("div",{staticClass:"text-white-space-nowrap "},[s("img",{staticClass:"mr-1",staticStyle:{width:"15px"},attrs:{src:a("6f25"),alt:""}}),s("small",[e._v(e._s(e.travel.free)+" ")]),s("small",[e._v(" "+e._s(e.$t("Disponibles"))+" ")])]):e._e()]):e._e(),e.travel.hasOwnProperty("serviceBus")&&e.travel.serviceBus.length>0?s("div",{staticClass:"d-flex align-items-center justify-content-center chip-mobile-detail uk-padding"},[s("div",{staticClass:"d-flex"},e._l(e.travel.serviceBus,(function(e,t){return s("div",{key:t},[s("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}
1],staticClass:"p-1 text-secondary btn-icon-details-mobile",attrs:{title:e[0].name,variant:"link"}},[s("i",{class:e[0].icon})])],1)})),0)]):e._e(),s("div",{staticClass:"d-flex align-items-center justify-content-center margin5 widthfare chip-mobile-detail uk-padding "},["napaway"!=e.skin?s("div",{staticClass:"text-white-space-nowrap"},[s("small",[e._v(e._s(e.travelRouteName)+" "+e._s(e.travelRouteId))])]):s("div",[s("small",{staticClass:"fontSize-15"},[e._v(e._s(e.travelRouteName)+" ")])])])])])])]),s("b-collapse",{attrs:{id:"collapse-bus-seat-"+e.travel.travelId,accordion:"my-accordion-travel-info"}},[s("div",{staticClass:"row d-lg-block d-none bg-lg-light p-3"},[s("h2",{staticClass:"ml-1 text-left text-blue font-weight-600 text-xl w-100"},[s("svg",{staticClass:"mt-n1 mr-1",attrs:{width:"1.5rem",viewBox:"0 0 17.3 17.7"}},[s("path",{attrs:{fill:"var(--blue)",d:"M16.2,12.2a2.78,2.78,0,0,0-2.3-.7L7,12.4l-.2-2.3A19.1,19.1,0,0,0,5.6,5.4l-.2-.7a2.34,2.34,0,0,0-1-1.2A2.57,2.57,0,0,0,4.3,2,3,3,0,0,0,1.4,0,1.37,1.37,0,0,0,0,1.4v.3L2.5,12.4a.66.66,0,0,0,.4.5,2.2,2.2,0,0,0-.2,1.4l.6,2.5a1.17,1.17,0,0,0,1.1.9h9.5a1.71,1.71,0,0,0,1.7-1.3h.2a1.6,1.6,0,0,0,1.6-1.7A4.2,4.2,0,0,0,16.2,12.2ZM6.7,15l-.2-1,7.7-1a1.19,1.19,0,0,1,1.1.4,2,2,0,0,1,.6,1.4.22.22,0,0,1-.2.2ZM3,3.1H1.9L1.5,1.5A1.92,1.92,0,0,1,3,2.6ZM3,4.6h.3a1,1,0,0,1,.7.7l.3.7a15.84,15.84,0,0,1,1,4.3l.2,2.1a2.51,2.51,0,0,0-.7-.4H4.5a.75.75,0,0,0-.5.1L2.3,4.5Zm1.4,8.9a.37.37,0,0,1,.3.1.77.77,0,0,1,.2.3l.6,2.4H4.7L4.1,14A.55.55,0,0,1,4.4,13.5Z"}})]),e._v("\n "+e._s(e.$t("Selección de Asientos"))+"\n ")]),e._l(e.travel.path,(function(t,a){return s("div",{key:a,staticClass:"mb-5 w-100"},[e.travel.isMultiroute?s("div",{staticClass:"pt-3 pb-1 d-flex align-items-center"},[s("h5",{staticClass:"tramo-name"},[e._v(e._s(e.$t("Tramo"))+" "+e._s(a+1))]),s("div",{staticClass:"text-left"},[s("h6",{staticClass:"tramo-title"},[e._v(e._s(0==a?e.stravel.DEPARTURE.label:t.nameDeparture))]),s("p",{staticClass:"tramo-hour"},[s("small",[s("i",{staticClass:"pr-2 far fa-arrow-to-top"}),e._v(e._s(e.momenthour("undefined"!==typeof t.travelPathGo?t.travelPathGo.travelDepartureDatetime:t.travelPathReturn.travelDepartureDatetime)))])])]),s("div",{staticClass:"mt-n3 pl-4 pr-4"},[s("h4",[s("i",{staticClass:"text-blue float-right far fa-angle-right"})])]),s("div",{staticClass:"text-left"},[s("h6",{staticClass:"tramo-title"},[e._v(e._s(e.travel.path.length-1==a?e.stravel.ARRIVAL.label:t.nameArrival))]),s("p",{staticClass:"tramo-hour"},[s("i",{staticClass:"pr-2 far fa-arrow-to-bottom"}),s("small",[e._v(e._s(e.momenthour("undefined"!==typeof t.travelPathGo?t.travelPathGo.travelArrivalDatetime:t.travelPathReturn.travelArrivalDatetime)))])])])]):e._e(),e._l(e.previewBusTravel,(function(a,r){return[("undefined"!==typeof t.travelPathGo?t.travelPathGo.travelId:t.travelPathReturn.travelId)==a.header.travelId?s("div",{key:r,staticClass:"pt-3 pb-3"},[s("div",{staticClass:"d-flex align-items-center",class:{"justify-content-center":!e.serviceTravelComputed,"justify-content-star":!!e.serviceTravelComputed}},[s("div",[0!=e.options.SALE_PRICE_FOR_SEAT_GROUP.value?s("div",{staticClass:"seat-leyenda"},[a.prices.length==a.header.floors?e._l(a.prices,(function(t,a){return s("div",{key:a,staticClass:"text-left"},[s("div",{staticClass:"ml-3 text-blue"},[s("b",[e._v(e._s(t.floor)+"° "+e._s(e.$t("piso"))+":")])]),s("div",{staticClass:"m-1 py-1 d-flex align-items-center"},[s("div",{staticClass:"seat leyenda price-leyenda"},[s("small",{staticClass:"mr-2"},[e._v(e._s(t.free_seats))])]),s("span",{staticClass:"ml-0 mr-4"},[s("small",{staticClass:"text-capitalize"},[e._v(" "+e._s(e.$t("Disponibles"))+" "+e._s(e.$t("desde"))+": "+e._s(t.currency)+e._s(t.price))])])])])})):e._e(),a.prices.length!=a.header.floors?[s("div",{staticClass:"text-left"},[s("div",{staticClass:"m-1 py-1 d-flex align-items-center"},[s("div",{staticClass:"seat leyenda price-leyenda"},[s("small",{staticClass:"ml-3"},[e._v(e._s(a.seatsInfo[0].free))])]),s("span",{staticClass:"ml-0 mr-4"},[s("small",{staticClass:"text-capitalize"},[e._v(" "+e._s(e.$t("Disponibles"))+" "+e._s(e.$t("desde"))+": "+e._s(a.prices[0].currency)+e._s(a.prices[0].price))])])])])]:e._e()],2):e._e(),s("div",{class:{"seat-leyenda":e.serviceTravelComputed2,"seat-leyendaServices":e.serviceTravelComputed}},[s("div",{staticClass:"ml-3 text-blue text-left"},[s("b",[e._v(e._s(e.$t("Leyenda"))+":")])]),s("div",{staticClass:"m-1 d-flex align-items-center"},[s("div",{class:"seat leyenda"+("napaway"==e.skin?" bed-free":" free-leyenda")}),s("span",{staticClass:"ml-0 mr-4"},[s("small",{staticClass:"text-capitalize"},[e._v(e._s(a.seatsInfo[0].free-a.seatsInfo[0].selected)+" "+e._s(e.$t("Disponibles")))])])]),s("div",{staticClass:"m-1 d-flex align-items-center"},[s("div",{class:"seat leyenda"+("napaway"==e.skin?" bed-disabled":" disabled")}),s("span",{staticClass:"ml-0 mr-4"},[s("small",[e._v(e._s(a.seatsInfo[0].solds+a.seatsInfo[0].selected)+" "+e._s(e.$t("Vendidos")))])])]),s("div",{staticClass:"m-1 d-flex align-items-center"},[s("div",{class:"seat leyenda"+("napaway"==e.skin?" bed-select":" select")}),s("span",{staticClass:"ml-0 mr-4"},[s("small",[e._v(e._s(0==e.direction?e.selectSeatsOw[r]?e.selectSeatsOw[r].number:0:e.selectSeatsRw[r]?e.selectSeatsRw[r].number:0)+" "+e._s(e.$t("Seleccionados")))])])])])]),s("div",[s("div",{staticClass:"bus-box mt-4 mb-1 ml-3"},[s("b-tabs",{attrs:{"b-card":"",align:"left","content-class":"mt-5"}},e._l(a.detail,(function(t,i){return s("b-tab",{key:i,staticClass:"mt-n5 pt-2 mb-3",attrs:{"title-item-class":1==a.header.floors?"d-none":"",title:1==i?"1 "+e.$t("piso"):"2 "+e.$t("piso"),active:""}},[s("div",{staticClass:"d-flex justify-content-between m-0"},[s("div",{staticClass:"tires r ml-5"}),s("div",{staticClass:"tires r mr-5"})]),s("div",{staticClass:"bus m-0 p-3"},e._l(a.detail[i],(function(t,i){return s("div",{key:"parent-seat-"+i,staticClass:"col d-flex"},e._l(t,(function(t,n){return s("div",{key:"seat-"+n,staticClass:"seat",class:{disabled:("SOLD_SEAT"==t.typeCode||1==t.status)&&"napaway"!=e.skin,"bed-disabled":("SOLD_SEAT"==t.typeCode||1==t.status)&&"napaway"==e.skin,free:"FREE_SEAT"==t.typeCode&&"napaway"!=e.skin,"bed-free":"FREE_SEAT"==t.typeCode&&"napaway"==e.skin,tv:"TV"==t.typeCode,rudder:"DRIVER_SEAT"==t.typeCode,bathroom:"BATH"==t.typeCode,reserved:"SELECTED_SEAT"==t.typeCode,select:"C_SELECTED_SEAT"==t.typeCode&&"napaway"!=e.skin,"bed-select":"C_SELECTED_SEAT"==t.typeCode&&"napaway"==e.skin,stair:"STAIRS"==t.typeCode,bed:"CABIN"==t.typeCode,expired:"USED_SEAT"==t.typeCode,wheelchair:"WHEELCHAIR"==t.typeCode,"gender-male":e.options.WEB_GENRE_ON_SELECT_SEAT.value&&"SOLD_SEAT"==t.typeCode&&t.hasOwnProperty("sex")&&"M"==t.sex,"gender-female":e.options.WEB_GENRE_ON_SELECT_SEAT.value&&"SOLD_SEAT"==t.typeCode&&t.hasOwnProperty("sex")&&"F"==t.sex},attrs:{id:"tooltip-seat-"+i+"-"+n},on:{click:function(s){["FREE_SEAT","C_SELECTED_SEAT"].includes(t.typeCode)&&e.toggleSeat(t,a.header,r)}}},[s("p",{staticClass:"seat-number"},[e._v(e._s("FREE_SEAT"==t.typeCode||"C_SELECTED_SEAT"==t.typeCode?t.number:""))]),e.options.SALE_PRICE_FOR_SEAT_GROUP.value&&"FREE_SEAT"==t.typeCode?[s("span",{staticClass:"tooltiptext"},[e._v(e._s(t.price.currency)+" "+e._s(t.price.price))])]:e._e(),e.seatLoadingId===t.seatId?[s("div",{staticClass:"sead-loading-container",style:["C_SELECTED_SEAT"==t.typeCode?{"--selected-seat-bg":"#fff"}:{"--selected-seat-bg":"var(--blue)"}]},[s("loader-general")],1)]:e._e()],2)})),0)})),0),s("div",{staticClass:"d-flex justify-content-between m-0"},[s("div",{staticClass:"tires l ml-5"}),s("div",{staticClass:"tires l mr-5"})])])})),1)],1)]),e.options.SALES_TRAVEL_SERVICE&&e.serviceTravelComputed?s("div",{staticClass:"container col-md-4",staticStyle:{padding:"0"}},[s("travelAditionalService",{staticClass:"col-sm-12",attrs:{travels:e.travel}}
1)],1):e._e()]),r==e.previewBusTravel.length-1?s("div",{staticClass:"mt-3 py-3"},[s("button",{staticClass:"btn btn-primary rounded-pill",attrs:{role:"button",disabled:e.disabledButtonReturnRegister},on:{click:function(t){0==e.direction&&1==e.way?e.selectReturn():e.registerPassenger(e.travel.travelId)}}},["redcoach"==e.skin?s("small",{staticClass:"text-uppercase"},[e._v(e._s(0==e.direction&&1==e.way?e.$t("Seleccionar retorno"):e.$t("Continuar")))]):s("small",{staticClass:"text-uppercase"},[e._v(e._s(0==e.direction&&1==e.way?e.$t("Seleccionar retorno"):e.$t("Registrar Pasajeros")))])])]):e._e()]):e._e()]}))],2)}))],2),s("div",{staticClass:"d-lg-none d-md-block p-1 mb-5"},[s("div",{staticClass:"itinerary-mobil"},[s("h4",{staticClass:"text-blue my-2"},[s("svg",{staticClass:"mt-n1 mr-1",attrs:{width:"1.5rem",viewBox:"0 0 17.3 17.7"}},[s("g",{attrs:{id:"seat"}},[s("path",{attrs:{fill:"var(--blue)",d:"M12.5,10.9c-1.2-0.2-2.4,0-3.6,0.4c-0.5,0.2-1.1,0.4-1.6,0.5c-0.3-1.4-0.6-2.8-0.9-4.2\n C6.2,6.6,5.8,5.7,5.2,4.9C4.4,3.8,2.6,4.1,2,5.1c0,0.2,0,0.3,0,0.5c0.2,0.7,0.5,1.3,0.7,2c0.8,2.3,1.6,4.7,2.3,7\n c0.2,0.5,0.5,0.7,1.1,0.7c1.8,0,3.5-0.1,5.3-0.1c0.8,0,1.5,0,2.3,0c0.9,0,1.2-0.2,1.5-1.2c0-0.1,0.1-0.2,0.1-0.3c0-0.2,0-0.5,0-0.7\n C14.8,11.7,13.9,11,12.5,10.9z"}}),s("path",{attrs:{fill:"var(--blue)",d:"M3.9,3.7c0.2-0.1,0.4-0.3,0.4-0.5c0.1-0.7,0.2-1.5,0.3-2.2C4.7,0.4,4.4,0,3.9,0C3.6,0,3.3,0,3,0\n C2.4,0,2.1,0.3,2.1,0.9c0,0.4-0.1,0.9-0.1,1.3c0,0.3,0,0.6,0,0.9C2.4,3.7,3.3,4,3.9,3.7z"}}),s("path",{attrs:{fill:"var(--blue)",d:"M13.3,16c-2.3,0-4.5,0-6.8,0c-0.1,0-0.2,0-0.3,0c0,0.6,0,1.1,0,1.7c0.6,0,1.1,0,1.7,0c1.8,0,3.6,0,5.4,0\n c0.3,0,0.4-0.1,0.4-0.4c0-0.3,0-0.6,0-0.9C13.7,16.1,13.6,16,13.3,16z"}})])]),e._v("\n "+e._s(e.$t("Selección de Asientos"))+":\n ")]),e._l(e.travel.path,(function(t,a){return s("div",{key:a,staticClass:"mb-1"},[s("div",{staticClass:"itinerary-hour-box"},[e.travel.isMultiroute?s("div",{staticClass:"row align-items-center py-3 px-1 m-0"},[s("div",{staticClass:"col-2 p-0 "},[s("p",{staticClass:"path-title"},[e._v(e._s(e.$t("Tramo")))]),s("p",{staticClass:"path-number"},[e._v(e._s(a+1))])]),s("div",{staticClass:"col-10 pl-0 py-0 pr-3"},[s("p",{staticClass:"path-destiny"},[s("i",{staticClass:"pr-1 text-green fas fa-arrow-circle-up"}),e._v(e._s(e.momenthour("undefined"!==typeof t.travelPathGo?t.travelPathGo.travelDepartureDatetime:t.travelPathReturn.travelDepartureDatetime))),s("span",{staticClass:"text-green mx-1"}),e._v(e._s(t.nameDeparture))]),s("p",{staticClass:"path-destiny"},[s("i",{staticClass:"pr-1 text-green fas fa-arrow-circle-down"}),e._v(e._s(e.momenthour("undefined"!==typeof t.travelPathGo?t.travelPathGo.travelArrivalDatetime:t.travelPathReturn.travelArrivalDatetime))),s("span",{staticClass:"text-green mx-1"}),e._v(e._s(t.nameArrival))])])]):e._e(),e._l(e.previewBusTravel,(function(a,r){return[("undefined"!==typeof t.travelPathGo?t.travelPathGo.travelId:t.travelPathReturn.travelId)==a.header.travelId?s("div",{key:r,staticClass:"pb-2"},[s("b-tabs",{attrs:{"b-card":"",align:"left","content-class":""}},e._l(a.detail,(function(t,i){return s("b-tab",{key:i,staticClass:"mt-n5 pt-2 mb-3",attrs:{"title-item-class":1==a.header.floors?"d-none":"",title:1==i?"1 "+e.$t("piso"):"2 "+e.$t("piso"),active:""}},[s("div",{staticClass:"mt-5 d-flex justify-content-center"},[s("div",{staticClass:"position-relative m-0"},[s("div",{staticClass:"tires l mt-5"}),s("div",{staticClass:"tires l mb-5 position-absolute fixed-bottom open-modal-not-padding"})]),s("div",{staticClass:"bus row m-0 p-2"},e._l(a.detail[i],(function(t,n){return s("div",{key:"parent-seat-"+n,staticClass:"col p-0",class:"order-"+(a.detail[i].length-n)},e._l(t,(function(t,i){return s("div",{key:"seat-"+i,staticClass:"seat",class:{disabled:("SOLD_SEAT"==t.typeCode||1==t.status)&&"napaway"!=e.skin,"bed-disabled":("SOLD_SEAT"==t.typeCode||1==t.status)&&"napaway"==e.skin,free:"FREE_SEAT"==t.typeCode&&"napaway"!=e.skin,"bed-free":"FREE_SEAT"==t.typeCode&&"napaway"==e.skin,tv:"TV"==t.typeCode,rudder:"DRIVER_SEAT"==t.typeCode,bathroom:"BATH"==t.typeCode,reserved:"SELECTED_SEAT"==t.typeCode,select:"C_SELECTED_SEAT"==t.typeCode&&"napaway"!=e.skin,"bed-select":"C_SELECTED_SEAT"==t.typeCode&&"napaway"==e.skin,stair:"STAIRS"==t.typeCode,bed:"CABIN"==t.typeCode,expired:"USED_SEAT"==t.typeCode,wheelchair:"WHEELCHAIR"==t.typeCode,"gender-male":e.options.WEB_GENRE_ON_SELECT_SEAT.value&&"SOLD_SEAT"==t.typeCode&&t.hasOwnProperty("sex")&&"M"==t.sex,"gender-female":e.options.WEB_GENRE_ON_SELECT_SEAT.value&&"SOLD_SEAT"==t.typeCode&&t.hasOwnProperty("sex")&&"F"==t.sex},attrs:{id:"tooltip-seat-"+n+"-"+i},on:{click:function(s){["FREE_SEAT","C_SELECTED_SEAT"].includes(t.typeCode)&&e.toggleSeat(t,a.header,r)}}},[s("p",{staticClass:"seat-number"},[e._v(e._s("FREE_SEAT"==t.typeCode||"C_SELECTED_SEAT"==t.typeCode?t.number:""))])])})),0)})),0),s("div",{staticClass:"position-relative m-0"},[s("div",{staticClass:"tires r mt-5"}),s("div",{staticClass:"tires r mb-5 position-absolute fixed-bottom open-modal-not-padding"})])])])})),1),s("div",[0!=e.options.SALE_PRICE_FOR_SEAT_GROUP.value?s("div",{staticClass:"seat-leyenda"},[a.prices.length==a.header.floors?e._l(a.prices,(function(t,a){return s("div",{key:a,staticClass:"text-left"},[s("div",{staticClass:"text-center text-uppercase lh-100 text-green"},[s("b",[e._v(e._s(t.floor)+"° "+e._s(e.$t("piso")))])]),s("div",{staticClass:"pb-2 d-flex justify-content-center align-items-center"},[s("div",{staticClass:"m-0 seat leyenda price-leyenda"},[s("p",{staticClass:"seat-leyenda-number"},[e._v(e._s(t.free_seats))])]),s("span",{staticClass:"m-0 ml-2"},[s("small",{staticClass:"text-capitalize"},[e._v(" "+e._s(e.$t("Disponibles"))+" "+e._s(e.$t("desde"))+": "+e._s(t.currency)+e._s(t.price))])])])])}
1)):e._e(),a.prices.length!=a.header.floors?[s("div",{staticClass:"text-left"},[s("div",{staticClass:"m-1 py-1 d-flex align-items-center"},[s("div",{staticClass:"seat leyenda price-leyenda"},[s("small",{staticClass:"ml-3"},[e._v(e._s(a.seatsInfo[0].free))])]),s("span",{staticClass:"ml-0 mr-4"},[s("small",{staticClass:"text-capitalize"},[e._v(" "+e._s(e.$t("Disponibles"))+" "+e._s(e.$t("desde"))+": "+e._s(a.prices[0].currency)+e._s(a.prices[0].price))])])])])]:e._e()],2):e._e(),s("div",{staticClass:"row seat-leyenda"},[s("div",{staticClass:"col"},[s("div",{class:("napaway"==e.skin?"seat.bed-free":"seat")+" leyenda free-leyenda"},[s("p",{staticClass:"seat-leyenda-number"},[e._v(e._s(a.seatsInfo[0].free-a.seatsInfo[0].selected))])]),s("span",{staticClass:"seat-leyenda-descripcion"},[e._v(e._s(e.$t("Disponibles")))])]),s("div",{staticClass:"col"},[s("div",{staticClass:"seat leyenda disabled"},[s("p",{staticClass:"seat-leyenda-number"},[e._v(e._s(a.seatsInfo[0].solds+a.seatsInfo[0].selected))])]),s("span",{staticClass:"seat-leyenda-descripcion"},[e._v(e._s(e.$t("Vendidos")))])]),s("div",{staticClass:"col"},[s("div",{staticClass:"seat leyenda select"},[s("p",{staticClass:"seat-leyenda-number text-white"},[e._v(e._s(0==e.direction?e.selectSeatsOw[r]?e.selectSeatsOw[r].number:0:e.selectSeatsRw[r]?e.selectSeatsRw[r].number:0))])]),s("span",{staticClass:"seat-leyenda-descripcion"},[e._v(e._s(e.$t("Seleccionados")))])])])]),e.options.SALES_TRAVEL_SERVICE&&e.serviceTravelComputed?s("div",{staticClass:"container-fluid align-items-center justify-content-center"},[s("travelAditionalService",{staticClass:"col-sm-12",attrs:{travels:e.travel}})],1):e._e(),r==e.previewBusTravel.length-1&&null!=e.shoppingCart?s("div",[s("button",{staticClass:"btn-bus-croquis btn-primary",attrs:{disabled:e.disabledButtonReturnRegister},on:{click:function(t){0==e.direction&&1==e.way?e.selectReturn():e.registerPassenger(e.travel.travelId)}}},[s("small",{staticClass:"text-uppercase"},[e._v("\n "+e._s(0==e.direction&&1==e.way?e.$t("Seleccionar retorno"):"redcoach"==e.skin?e.$t("Continuar"):e.$t("Registrar Pasajeros"))+"\n ")])])]):e._e()],1):e._e()]}))],2)])}))],2),s("div",{staticClass:"itinerary-detail-mobil"})])])],1)},K=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h5",{staticClass:"my-n1 py-0 "},[a("i",{staticClass:"far fa-angle-right",staticStyle:{color:"var(--blue)","font-size":"1.3em"}})])}],J=(a("8615"),a("28a5"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"d-flex col-lg-5 py-2 px-0 justify-content-center"},[a("div",{staticClass:"d-lg-flex d-none w-100"},e._l(e.listfares,(function(t,s){return a("div",{key:s,staticClass:"mx-auto my-1"},[0==t.exhausted?[a("div",{staticClass:"btn-fare d-flex align-items-center justify-content-center rounded-circle",on:{click:function(t){"0"!=e.travelDetail.free&&e.transitionShow(s)}}},[Array.isArray(t.price)?e._e():a("div",[a("p",{staticClass:"btn-fare-price"},[a("small",[e._v(e._s(e.travelDetail.symbol))]),a("strong",[e._v(e._s(Array.isArray(t.price)?"array":t.price))])]),a("p",{staticClass:"btn-fare-text text-uppercase"},[a("small",[e._v(e._s(e.$t("Elegir")))])]),1==e.options.SALES_PAYMENT_POINTS.value&&1==e.options.WEBSALE_FRECUENT_PASSENGER.value&&"redcoach"!=e.travelDetail.skin?[0==e.options.SALE_PRICE_FOR_SEAT_GROUP.value?a("p",{staticClass:"btn-fare-text"},[a("small",[e._v(e._s(e.$t("o"))+" "+e._s(t.pPayTrip)+" pts")])]):e._e(),0==e.options.SALE_PRICE_FOR_SEAT_GROUP.value?a("div",{staticClass:"fare-line"}):e._e(),0==e.options.SALE_PRICE_FOR_SEAT_GROUP.value?a("p",{staticClass:"btn-fare-a-pts"},[a("small",[e._v(e._s(e.$t("gana")))])]):e._e(),0==e.options.SALE_PRICE_FOR_SEAT_GROUP.value?a("p",{staticClass:"btn-fare-a-pts"},[a("small",[e._v(e._s(t.pWinTrip)+" pts")])]):e._e()]:e._e()],2),Array.isArray(t.price)?a("div",[t.price.length>2?a("div",[a("p",{staticClass:"btn-fare-price"},[a("small",[e._v("Min "+e._s(e.travelDetail.symbol))]),a("strong",[e._v(e._s(t.price[0]["price"]))])]),a("p",{staticClass:"btn-fare-price"},[a("small",[e._v("Max "+e._s(e.travelDetail.symbol))]),a("strong",[e._v(e._s(t.price[t.price.length-1]["price"]))])])]):a("div",e._l(t.price,(function(s,r){return a("div",{key:r},[1==r?a("div",{staticClass:"fare-line"}):e._e(),a("p",{staticClass:"btn-fare-price"},[a("small",[e._v(e._s(e.travelDetail.symbol))]),a("strong",[e._v(e._s(s.price))])]),a("p",{staticClass:"btn-fare-text text-capitalize"},[a("small",[e._v(e._s(t.price.length-r)+"° "+e._s(e.$t("piso")))])])])}
1)),0)]):e._e()])]:[a("div",{staticClass:"btn-fare-soldout d-flex align-items-center justify-content-center rounded-circle"},[a("p",{staticClass:"btn-fare-soldout-text"},[a("strong",{staticClass:"text-uppercase"},[e._v(e._s(e.$t("Agotado")))])])])]],2)})),0),a("div",{staticClass:"d-lg-none d-flex w-100 justify-content-center"},e._l(e.listfares,(function(t,s){return a("div",{key:s,staticClass:"fare-box-mobil"},[0==t.exhausted?[a("div",{staticClass:"btn-fare valid d-flex align-items-center justify-content-center",on:{click:function(t){return e.transitionShow(s)}}},[Array.isArray(t.price)?e._e():a("div",[a("p",{staticClass:"btn-fare-name"},[e._v(e._s(t.name))]),a("p",{staticClass:"btn-fare-price"},[a("small",[e._v(e._s(e.travelDetail.symbol))]),a("strong",[e._v(e._s(Array.isArray(t.price)?"array":t.price))])]),a("p",{staticClass:"btn-fare-text text-uppercase"},[e._v(e._s(e.$t("Elegir")))]),1==e.options.SALES_PAYMENT_POINTS.value&&1==e.options.WEBSALE_FRECUENT_PASSENGER.value&&"redcoach"!=e.travelDetail.skin?[0==e.options.SALE_PRICE_FOR_SEAT_GROUP.value?a("p",{staticClass:"btn-fare-text"},[e._v(e._s(t.pPayTrip)+" pts")]):e._e(),0==e.options.SALE_PRICE_FOR_SEAT_GROUP.value?a("p",{staticClass:"btn-fare-a-pts"},[a("i",{staticClass:"far fa-gift mr-1"}),e._v(e._s(t.pWinTrip)+" pts")]):e._e()]:e._e()],2),Array.isArray(t.price)?a("div",e._l(t.price,(function(s,r){return a("div",{key:r},[1==r?a("div",{staticClass:"fare-line"}):e._e(),a("p",{staticClass:"btn-fare-price"},[e._v(e._s(e.travelDetail.symbol)),a("strong",[e._v(e._s(s.price))])]),a("p",{staticClass:"btn-fare-text"},[e._v(e._s(t.price.length-r)+"° "+e._s(e.$t("piso")))])])})),0):e._e()])]:[a("div",{staticClass:"btn-fare d-flex align-items-center justify-content-center"},[a("div",[a("p",{staticClass:"btn-fare-name text-base"},[e._v(e._s(t.name))]),a("p",{staticClass:"btn-fare-soldout-text"},[a("strong",{staticClass:"text-uppercase"},[e._v(e._s(e.$t("Agotado")))])])])])]],2)})),0),a("transition",{attrs:{name:"fare-box"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.selectFare.show,expression:"selectFare.show"}],staticClass:"row fare-box",class:{active:e.selectFare.show,reserved:0==e.direction&&e.selectTravel.TRAVEL_ADD_CART_OW}},[Array.isArray(e.selectFare.price)?e._e():a("div",{staticClass:"d-lg-block d-none col-4 p-0"},[a("div",{staticClass:"fare-select"},[a("div",{staticClass:"d-flex align-items-center justify-content-center"},[a("h6",{staticClass:"text-white mt-n1 mt-lg-0 mr-1"},[e._v(e._s(e.travelDetail.symbol))]),a("h2",{staticClass:"text-white mt-n1 mt-lg-0"},[a("strong",[e._v(e._s(e.selectFare.price))])])])])]),Array.isArray(e.selectFare.price)?e._e():a("div",{staticClass:"col-4 d-lg-none p-0"},[a("div",{staticClass:"fare-select",attrs:{disabled:1==e.selectedFare&&(e.selectTravel.KEY_TRAVEL_OW!=e.keyTravel||e.selectTravel.KEY_TRAVEL_RW!=e.keyTravel)},on:{click:function(t){return e.showBusPreviewByTravel(e.selectFare.fareId,e.travelDetail,e.selectFare.price)}}},[a("div",{staticClass:"d-flex align-items-center justify-content-center"},[a("h6",{staticClass:"text-white mt-n1 mt-lg-0 mr-1"},[e._v(e._s(e.travelDetail.symbol))]),a("h2",{staticClass:"text-white mt-n1 mt-lg-0"},[a("strong",[e._v(e._s(e.selectFare.price))])])])])]),Array.isArray(e.selectFare.price)?a("div",{staticClass:"d-lg-block d-none col-4 p-0"},[a("div",{staticClass:"fare-select d-flex p-0 flex-column align-items-center justify-content-center rounded-circle"},[e.selectFare.price.length>2?a("div",[a("p",{staticClass:"btn-fare-price"},[a("small",[e._v(e._s(e.travelDetail.symbol))]),a("strong",[e._v(e._s(e.selectFare.price[0].price))]),a("small",{staticStyle:{"font-size":"0.5em"}},[e._v(".00")])]),a("p",{staticClass:"btn-fare-price"},[a("small",[e._v(e._s(e.travelDetail.symbol))]),a("strong",[e._v(e._s(e.selectFare.price[e.selectFare.price.length-1].price))]),a("small",{staticStyle:{"font-size":"0.5em"}},[e._v(".00")])])]):a("div",e._l(e.selectFare.price,(function(t,s){return a("div",{key:s},[1==s?a("div",{staticClass:"fare-line"}):e._e(),a("p",{staticClass:"btn-fare-price"},[a("small",[e._v(e._s(e.travelDetail.symbol))]),a("strong",[e._v(e._s(t.price))]),a("small",{staticStyle:{"font-size":"0.5em"}},[e._v(".00")])]),a("p",{staticClass:"btn-fare-text text-capitalize"},[a("small",[e._v(e._s(e.selectFare.price.length-s)+"° "+e._s(e.$t("piso")))])])])}
1)),0)])]):e._e(),Array.isArray(e.selectFare.price)?a("div",{staticClass:"col-4 d-lg-none p-0"},[a("div",{staticClass:"fare-select py-2",class:{peru:"PE"===e.options.PAIS_RESIDENTE.value},attrs:{disabled:1==e.selectedFare&&(e.selectTravel.KEY_TRAVEL_OW!=e.keyTravel||e.selectTravel.KEY_TRAVEL_RW!=e.keyTravel)},on:{click:function(t){return e.showBusPreviewByTravel(e.selectFare.fareId,e.travelDetail,e.selectFare.price)}}},[a("div",{staticClass:"align-items-center justify-content-center"},e._l(e.selectFare.price,(function(t,s){return a("div",{key:s,staticClass:"text-center"},[1==s?a("div",{staticClass:"fare-line2"}):e._e(),a("p",{staticClass:"btn-fare-price text-white"},[e._v(e._s(e.travelDetail.symbol)),a("strong",[e._v(e._s(t.price))])]),a("p",{staticClass:"btn-fare-text text-uppercase text-white"},[e._v(e._s(e.selectFare.price.length-s)+"° "+e._s(e.$t("piso")))])])})),0),a("div",{staticClass:"fare-select-choose2 text-uppercase"},[e._v(e._s(e.$t("Elegir")))])])]):e._e(),a("div",{staticClass:"col-8 pl-2"},[a("div",{staticClass:"text-left pl-0 pt-3"},[a("i",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"info-tarifas",expression:"'info-tarifas'"}],staticClass:"cursor-pointer far fa-info-circle float-right pl-2 mt-n1"}),a("p",{staticClass:"fare-select-name"},[a("strong",[e._v(e._s(e.selectFare.name))])]),0!=e.options.SALE_PRICE_FOR_SEAT_GROUP.value||Array.isArray(e.selectFare.price)?e._e():a("p",{staticClass:"fare-select-price"},[e._v(e._s(e.travelDetail.symbol)+e._s(e.selectFare.price)+" "),1==e.options.SALES_PAYMENT_POINTS.value&&1==e.options.WEBSALE_FRECUENT_PASSENGER.value&&"redcoach"!=e.travelDetail.skin?a("span",[e._v(e._s(e.$t("o"))+" "+e._s(e.selectFare.pPayTrip)+" pts | "+e._s(e.$t("gana"))+" "+e._s(e.selectFare.pWinTrip)+" pts")]):e._e()]),Array.isArray(e.selectFare.price)?a("p",{staticClass:"fare-select-price"},[e.selectFare.price.length>2?a("span",[e._v("\n Tarifa minima "+e._s(e.travelDetail.symbol)+e._s(e.selectFare.price[0].price)+"  \n Tarifa maxima "+e._s(e.travelDetail.symbol)+e._s(e.selectFare.price[e.selectFare.price.length-1].price)+"  \n ")]):a("span",e._l(e.selectFare.price,(function(t,s){return a("span",{key:s},[1==s?a("span",[e._v("|")]):e._e(),e._v(" \n "+e._s(e.travelDetail.symbol)+e._s(t.price)+" "+e._s(e.$t("en"))+" "+e._s(e.selectFare.price.length-s)+"° "+e._s(e.$t("piso"))+" \n ")])})),0)]):e._e(),e.ischangeFare||e.isFormPass?e._e():[a("button",{staticClass:"mt-3 rounded-pill btn btn-primary d-lg-block d-none",class:{invisible:1==e.selectedFare&&(e.selectTravel.KEY_TRAVEL_OW!=e.keyTravel||e.selectTravel.KEY_TRAVEL_RW!=e.keyTravel)},attrs:{disabled:1==e.selectedFare&&(e.selectTravel.KEY_TRAVEL_OW!=e.keyTravel||e.selectTravel.KEY_TRAVEL_RW!=e.keyTravel)},on:{click:function(t){return e.showBusPreviewByTravel(e.selectFare.fareId,e.travelDetail,e.selectFare.price)}}},[e._v(e._s(e.$t("Elegir")))]),e.showOnlyFare?a("button",{staticClass:"fare-select-other btn border",on:{click:function(t){return e.transitionHide()}}},[a("i",{staticClass:"far fa-sync-alt mr-2 "}),e._v(e._s(e.$t("Elegir otra tarifa")))]):e._e()],e.ischangeFare&&!e.isFormPass?[e.listfares.length>1?a("small",{staticClass:"text-secondary pt-lg-2 pr-lg-2 "}
1,[e._v(e._s(e.$t("Elegir otra tarifa"))+": ")]):e._e(),a("span",{staticClass:"d-block d-lg-inline"},[e._l(e.listfares,(function(t,s){return[t.fareId!=e.selectFare.fareId?[1==t.available&&0==t.exhausted||0==t.have_limit&&1==t.available?a("button",{key:s+"btn",class:"fare-other "+t.fareId,on:{click:function(a){return e.changeFareUpdateShp(t.fareId)}}},[a("small",[e._v(e._s(e.travelDetail.symbol))]),e._v(e._s(t.price))]):e._e()]:e._e()]}))],2)]:e._e()],2)])])])],1)}),X=[];function Q(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function Z(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Q(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ee={name:"CFares",props:["fares","travelDetail","direction","keyTravel"],data:function(){return{ismodal:!1,show:!1,indexSelected:0,selectFare:null,showCollapseBus:!1,initShoppingcart:!1,ischangeFare:!1,isFormPass:!1,showOnlyFare:!0,selectedFare:0,offsetScroll:_["isMobile"]?0:-140}},mounted:function(){var e=this;if("undefined"!=typeof this.$route.query.bus&&null!=this.shoppingCart){var t=this.fares;null==this.selectTravel.FARE_ID||this.travelDetail.isreturn||t.forEach((function(t,a){e.selectTravel.FARE_ID==t.fareId&&(e.indexSelected=a,e.show=!0,e.ischangeFare=!0)})),null!=this.selectTravel.FARE_ID_RW&&this.travelDetail.isreturn&&t.forEach((function(t,a){e.selectTravel.FARE_ID_RW==t.fareId&&(e.indexSelected=a,e.show=!0,e.ischangeFare=!0)}))}this.$eventBus.$on("isShowFare",(function(t){e.ischangeFare=t.show,e.isFormPass=t.formpass})),this.$eventBus.$on("transitionHide",(function(t){e.transitionHide()})),this.$eventBus.$on("closeAllFares",(function(t){1==e.directionCart&&e.selectTravel.TRAVEL_ID_OW==e.travelDetail.travelId?(e.show=!0,e.selectedFare=1,e.showCollapseBus=!0):(e.show=!1,e.selectedFare=0,e.showCollapseBus=!1)}))},computed:Z({listfares:function(){var e=this,t=[],a=JSON.parse(JSON.stringify(this.fares));return a.forEach((function(a,s){var r=a;r.available="undefined"==typeof a.available?1:a.available,r.show=null!==e.indexSelected&&e.indexSelected===s&&e.show,r.index=s,e.indexSelected==s&&(e.selectFare=r),t.push(r)})),t}},Object(h["c"])({travel:"search/travel",selectTravel:"travels/selectTravel",options:"options/listoptions",isMultiroute:"cart/isMultiroute",shoppingCart:"cart/shoppingCart",shoppingCartList:"cart/shoppingCartList",directionCart:"cart/direction"})),created:function(){var e=this;this.$parent.$on("loadBus",(function(t){e.loadBus()}))},methods:Z({transitionShow:function(e){this.$eventBus.$emit("closeAllFares");var t=document.querySelectorAll('[id^="collapse-bus-seat-"]');t.forEach((function(e,t){e.classList.remove("show")})),this.indexSelected=e,this.show=!0,this.ischangeFare=!1,1==this.listfares.length?(this.showBusPreviewByTravel(this.listfares[0].fareId,this.travelDetail,this.listfares[0].price),this.showOnlyFare=!1):this.showOnlyFare=!0},transitionHide:function(){1==this.directionCart&&this.selectTravel.TRAVEL_ID_OW==this.travelDetail.travelId?(this.show=!0,this.selectedFare=1,this.showCollapseBus=!0):(1==this.selectedFare?this.selectedFare=0:null!=this.selectFare&&(this.indexSelected=this.selectFare.index),this.show=!1,this.showCollapseBus&&(this.$root.$emit("bv::toggle::collapse","collapse-bus-seat-"+this.travelDetail.travelId),this.$eventBus.$emit("isSelectItem",{itemId:null}),this.showCollapseBus=!1),this.ischangeFare=!1)},showBusPreviewByTravel:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t,a,s){var r,i,n,l,o,c,d,u=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null==this.shoppingCart){e.next=4;break}return r={ID_SHOPPINGCART:this.shoppingCart,ROUND:this.direction},e.next=4,this.wsCleanCart(r);case 4:this.setLoading({state:!0,msg:this.$t("Cargando Bus"),class:"fa-bus"}),i=new Array,a.path.forEach((function(e){i.push({number:0,travelId:0==u.isMultiroute||1==u.isMultiroute&&0==u.direction?e.travelPathGo.travelId:e.travelPathReturn.travelId})})),0==this.direction?(this.setSelectTravel({FARE_ID:t,TRAVEL_ID_OW:a.travelId}),this.setSelectedSeatsOw(i)):(this.setSelectTravel({FARE_ID_RW:t,TRAVEL_ID_RW:a.travelId}),this.setSelectedSeatsRw(i)),a.isMultiroute&&(this.setIsMultiroute(!0),n=[],a.path.forEach((function(e,t){n.push(e.idMultiroute)})),this.setSelectTravel({ID_MULTIROUTE:n}),this.setSelectTravel({ID_DEPARTURE_MR:a.idDepartureMr}),this.setSelectTravel({ID_ARRIVAL_MR:a.idArrivalMr})),this.$eventBus.$emit("isSelectItem",{itemId:this.travelDetail.travelId}),0,l=new Array,o=JSON.parse(JSON.stringify(this.travelDetail.path)),l=o.map((function(e){return{idDeparture:e.idDeparture,idArrival:e.idArrival,idTravel:"undefined"==typeof e.travelPathReturn?e.travelPathGo.travelId:e.travelPathReturn.travelId}})),c={ID_DEPARTURE:this.travel.DEPARTURE_ROUTE,ID_ARRIVAL:this.travel.ARRIVAL_ROUTE,A_TRAVEL:l,ID_TYPEBASE_FARE:t,TYPE_WAY:this.direction},d={headers:{"Content-Type":"application/x-www-form-urlencoded"}},this.$http.post("travel/getBusData",c,d).then((function(e){var t=e.data.data;u.travel.DEPARTURE.value,u.travel.DEPARTURE.label,u.travel.ARRIVAL.label,u.travel.ARRIVAL.value,u.travel.DATE_DEPARTURE;u.setpreviewBusTravel(t),u.setLoading({state:!1,msg:"",class:"fa-bus"}),u.qwsetstateOption(2),u.$scrollTo("#point-before-select-travel-"+a.travelId,600,{offset:u.offsetScroll,force:!0}),u.selectedFare=1,u.showCollapseBus=!0,u.$root.$emit("bv::toggle::collapse","collapse-bus-seat-"+u.travelDetail.travelId)})).catch((function(e){u.$eventBus.$emit("loadError",Object(f["b"])(e)),u.setLoading({state:!1,msg:"",class:"fa-bus"}),u.setpreviewBusTravel(null),u.qwsetstateOption(1)}));case 17:case"end":return e.stop()}}),e,this)})));function t(t,a,s){return e.apply(this,arguments)}return t}(),loadBus:function(){var e=this;this.setLoading({state:!0,msg:this.$t("Cargando Bus"),class:"fa-bus"});var t={ID_DEPARTURE:this.travel.DEPARTURE.value,ID_ARRIVAL:this.travel.ARRIVAL.value,A_TRAVEL:this.travelDetail.path},a={headers:{"Content-Type":"application/x-www-form-urlencoded"}};this.$http.post("travel/getBusData",t,a).then((function(t){e.setShoppingCart(null),e.setShoppingCartList(null),e.setNumberSelectedSeats(null),e.setpreviewBusTravel(t.data.data),e.qwsetstateOption(2)})).catch((function(t){e.$eventBus.$emit("loadError",Object(f["b"])(t)),e.setLoading({state:!1,msg:"",class:"fa-bus"}),e.setpreviewBusTravel(null),e.qwsetstateOption(1)})),this.setLoading({state:!1,msg:"",class:"fa-bus"})},changeFareUpdateShp:function(e){var t=this;if(null!=this.shoppingCart){var a={headers:{"Content-Type":"application/x-www-form-urlencoded"}},s={ID_SHOPPINGCART:this.shoppingCart,ID_FARE:e};this.$http.post("shoppingcart/updateShoppingCartByFare",s,a).then((function(a){for(var s=JSON.parse(JSON.stringify(t.listfares)),r=0;r<s.length;r++)s[r].show=!1,e==s[r].fareId&&(t.indexSelected=r);t.setShoppingCartList(a.data.data)})).catch((function(e){t.$eventBus.$emit("loadError",Object(f["b"])(e)),t.setLoading({state:!1,msg:"",class:"fa-bus"})}))}}},Object(h["b"])({setLoading:"options/setLoading",qwsetstateOption:"options/setstateOption",setpreviewBusTravel:"travels/setpreviewBusbyTravel",setSelectTravel:"travels/setSelectTravel",setIsMultiroute:"cart/setIsMultiroute",setSelectedSeatsOw:"cart/setSelectedSeatsOw",setSelectedSeatsRw:"cart/setSelectedSeatsRw",setShoppingCart:"cart/setShoppingCart",setShoppingCartList:"cart/setShoppingCartList",setNumberSelectedSeats:"cart/setNumberSelectedSeats"}),{wsCleanCart:function(e){return this.$http.post("shoppingcart/cleanShoppingCart",e,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})}})},te=ee,ae=(a("e5b4"),Object(S["a"])(te,J,X,!1,null,"68962f5f",null)),se=ae.exports,re=a("3a60"),ie=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.selectSeatsOw[0].number>0&&0!=e.selectTravel.TRAVEL_ID_OW&&null==e.selectTravel.TRAVEL_ID_RW||1==e.selectTravel.TRAVEL_ADD_CART_RW&&e.selectTravel.KEY_TRAVEL_RW>=0&&e.selectSeatsRw[0].number>0?a("div",{staticClass:"aditionalService-box"},[a("div",{staticClass:"ml-3 text-blue text-center"},[a("b",[e._v(e._s(e.$t("Servicios Adicionales"))+":")])]),e._l(e.dataServices,(function(t,s){return a("div",{key:s,staticClass:"align-items-center d-flex mb-2 row text-gray-4",attrs:{onmousedown:"return false;",onselectstart:"return false;"}},[a("div",{staticClass:"text-capitalize col-4 text-right px-1"},[a("small",[e._v(e._s(t.shortName))])]),a("div",{staticClass:"text-capitalize col-3 text-center px-1"},[a("strong",[e._v("$ "+e._s(t.price))])]),a("div",{staticClass:"add-service col-4 px-1 align-items-center justify-content-center",staticStyle:{display:"flex"}},[a("div",{staticClass:"minus-service text-blue",class:{disabledBtn:0==t.quantity,aditionalBtn:t.quantity>0},on:{click:function(a){return e.addServiceShoppingCart(t.idIncludedServiceTravel,"less",s)}}},[a("span",[e._v("-")])]),a("div",{staticClass:"number-service mr-3 ml-3 aditionalinptMonto",attrs:{disabled:""}},[a("small",{staticClass:"text-capitalize"},[e._v(e._s(t.quantity))])]),a("div",{staticClass:"plus-service text-blue",class:{disabledBtn:t.quantity==t.maxQuantity,aditionalBtn:t.maxQuantity>t.quantity},on:{click:function(a){return e.addServiceShoppingCart(t.idIncludedServiceTravel,"more",s)}}},[a("span",[e._v("+")])]),a("div",[a("small",[a("i",{staticClass:"ml-1 cursor-pointer far fa-info-circle",attrs:{title:t.description}})])])])])}))],2):e._e()])},ne=[];function le(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function oe(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?le(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):le(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ce={mounted:function(){var e=this;this.travels.hasOwnProperty("aditionalService")&&this.travels.aditionalService.forEach((function(t){var a={};a.available=t.available,a.description=t.description,a.idIncludedServiceTravel=t.idIncludedServiceTravel,a.idIncludedService=t.idIncludedService,a.maxQuantity=t.maxQuantity,a.price=t.price,a.shortName=t.shortName,a.maxServiceTravel=t.maxServiceTravel,a.quantity=t.quantity,e.dataServices.push(a)}))},data:function(){return{dataServices:[]}},props:["travels"],computed:oe({},Object(h["c"])({shoppingCart:"cart/shoppingCart",options:"options/listoptions",selectSeatsOw:"cart/selectSeatsOw",selectSeatsRw:"cart/selectSeatsRw",selectTravel:"travels/selectTravel",shoppingCartList:"cart/shoppingCartList"})),methods:{addServiceShoppingCart:function(e,t,a){var s,r=this;if("more"==t){if(this.dataServices[a].maxQuantity*this.selectSeatsOw[0].number>this.dataServices[a]["quantity"]){var i;if(0!=this.selectTravel.TRAVEL_ID_OW&&null==this.selectTravel.TRAVEL_ID_RW)i=this.dataServices[a]["quantity"],i++,s=this.createParamsService(this.shoppingCart,this.selectTravel.TRAVEL_ID_OW,e,this.selectSeatsOw[0].number,i);else if(1==this.selectTravel.TRAVEL_ADD_CART_RW&&this.selectTravel.KEY_TRAVEL_RW>=0){var n;n=this.dataServices[a]["quantity"],n++,s=this.createParamsService(this.shoppingCart,this.selectTravel.TRAVEL_ID_RW,e,this.selectSeatsRw[0].number,n)}this.$http.post("shoppingcart/addIncludedService",s).then((function(e){r.dataServices[a]["quantity"]++})).catch((function(e){r.$eventBus.$emit("loadError",Object(f["b"])(e))}))}}else if("less"==t){var l;if(this.dataServices[a]["quantity"]>0){var o;if(0!=this.selectTravel.TRAVEL_ID_OW&&null==this.selectTravel.TRAVEL_ID_RW)o=this.dataServices[a]["quantity"],o--,l=this.createParamsService(this.shoppingCart,this.selectTravel.TRAVEL_ID_OW,e,this.selectSeatsOw[0].number,o);else if(1==this.selectTravel.TRAVEL_ADD_CART_RW&&this.selectTravel.KEY_TRAVEL_RW>=0){var c;c=this.dataServices[a]["quantity"],c--,l=this.createParamsService(this.shoppingCart,this.selectTravel.TRAVEL_ID_RW,e,this.selectSeatsRw[0].number,c)}this.$http.post("shoppingcart/addIncludedService",l).then((function(e){r.dataServices[a]["quantity"]--})).catch((function(e){r.$eventBus.$emit("loadError",Object(f["b"])(e))}))}}},createParamsService:function(e,t,a,s,r){var i={ID_SHOPPING_CART:e,ID_TRAVEL:t,ID_INCLUDED_SERVICE_TRAVEL:a,SEATS:s,QUANTITY:r};return i}}},de=ce,ue=Object(S["a"])(de,ie,ne,!1,null,null,null),pe=ue.exports,me=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},ve=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container-loadin"},[a("div",{staticClass:"loading-circle-app-div"},[a("div",{staticClass:"loading-circle-app"})])])}],he={},fe=he,_e=(a("5ca9"),Object(S["a"])(fe,me,ve,!1,null,"5634d53d",null)),ge=_e.exports;function be(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function Ce(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?be(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):be(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var we={name:"CItem",components:{qwTravelFares:se,travelAditionalService:pe,LoaderGeneral:ge},directives:{mask:re["mask"]},props:{travel:{type:Object},direction:{type:Number},keyTravel:{type:Number},dpName:{type:String},avName:{type:String}},data:function(){return{seatsSelected:[],optionsform:null,passengers:[],card:"",selectItem:null,selected:"",changelang:g["a"].locale,isAjaxReponse:!1,seatLoadingId:0}},computed:Ce({pathsCalc:function(){return 1==this.travel.path.length?this.$t("Directo"):"".concat(this.travel.path.length-1," ").concat(this.$t("Cambio"),"s")},serviceTravelComputed:function(){if(this.travel.hasOwnProperty("aditionalService")&&this.travel.aditionalService.length>0)return!0},serviceTravelComputed2:function(){if(this.travel.hasOwnProperty("aditionalService")&&0==this.travel.aditionalService.length)return!0},tDepartureDate:function(){return"travelDepartureDatetimeTransfer"in this.travel?"napaway"==this.skin?L()(this.travel.travelDepartureDatetimeTransfer).format("h:mm a"):L()(this.travel.travelDepartureDatetimeTransfer).format("hh:mm a"):"napaway"==this.skin?L()(this.travel.travelDepartureDatetime).format("h:mm a"):L()(this.travel.travelDepartureDatetime).format("hh:mm a")},tArrivalDate:function(){return"napaway"==this.skin?L()(this.travel.travelArrivalDatetime).format("h:mm a"):L()(this.travel.travelArrivalDatetime).format("hh:mm a")},tDiffDay:function(){return parseInt(L()(this.travel.travelArrivalDatetime).diff(L()(this.travel.travelDepartureDatetime),"days"))+(parseInt(L()(this.travel.travelDepartureDatetime).format("hh"))+parseInt(this.travel.travelTime.split(":")[0])>24)?1:0},tTime:function(){var e=this.travel.travelTime.split(":")[0],t=this.travel.travelTime.split(":")[1];return"".concat(e,"h ").concat(t,"m")},getSeatIco:function(){return a("8d10")("./".concat(this.skin,"/seat-ico.svg"))},statusSelectedOw:function(){var e=this,t=!0;if(this.isMultiroute){var a=0;
1this.selectSeatsOw.forEach((function(e,s){0==s?a=e.number:a!=e.number&&(t=!1)}))}else 0==this.selectSeatsOw[0].number&&(t=!1);return this.selectSeatsOw.every((function(e){return 0==e.number}))&&(t=!1),0!=this.options.WEB_MAX_SELECTABLE_SEATS.value&&this.selectSeatsOw.every((function(t){return t.number!=e.maxSeatSelected}))&&(t=!1),t},statusSelectedRw:function(){var e=this,t=!0;if(null!=this.selectSeatsRw){if(this.isMultiroute&&1==this.direction){var a=0;this.selectSeatsRw.forEach((function(e,s){0==s?a=e.number:a!=e.number&&(t=!1)}))}else this.selectSeatsRw&&0==this.selectSeatsRw[0].number&&(t=!1);this.selectSeatsRw.every((function(e){return 0==e.number}))&&(t=!1),0!=this.options.WEB_MAX_SELECTABLE_SEATS.value&&this.selectSeatsRw.every((function(t){return t.number!=e.maxSeatSelected}))&&(t=!1)}else t=!1;return t},disabledButtonReturnRegister:function(){return 0==this.way||0==this.direction&&1==this.way?!this.statusSelectedOw:!this.statusSelectedRw},travelRouteName:function(){return this.travel.hasOwnProperty("travelService")?this.travel.travelService.toUpperCase():""}
1,travelRouteId:function(){return this.travel.travelCode}},Object(h["c"])({previewBusTravel:"travels/previewBusTravel",stravel:"search/travel",departureShuttle:"search/departureShuttle",arrivalShuttle:"search/arrivalShuttle",options:"options/listoptions",queryparams:"options/queryparams",skin:"options/skin",shoppingCart:"cart/shoppingCart",shoppingCartList:"cart/shoppingCartList",selectTravel:"travels/selectTravel",maxSeatSelected:"cart/maxSeatSelected",numberSelectSeats:"cart/numberSelectSeats",selectSeatsOw:"cart/selectSeatsOw",selectSeatsRw:"cart/selectSeatsRw",getTravelOw:"cart/getTravelOw",getTravelRw:"cart/getTravelRw",way:"search/way",isMultiroute:"cart/isMultiroute",expirationTime:"expiration/expirationTime"})),created:function(){},mounted:function(){var e=this;this.$eventBus.$on("languages",(function(t){e.changelang=t.langs})),"undefined"!=typeof this.$route.query.bus&&null!=this.shoppingCart&&null!=this.selectTravel.FARE_ID&&(null==this.selectTravel.TRAVEL_ID_OW||this.travel.isreturn?null!=this.selectTravel.TRAVEL_ID_RW&&this.travel.isreturn&&this.travel.travelId==this.selectTravel.TRAVEL_ID_RW&&this.$root.$emit("bv::toggle::collapse","collapse-bus-seat-"+this.selectTravel.TRAVEL_ID_RW):this.travel.travelId==this.selectTravel.TRAVEL_ID_OW&&this.$root.$emit("bv::toggle::collapse","collapse-bus-seat-"+this.selectTravel.TRAVEL_ID_OW)),this.$eventBus.$on("isSelectItem",(function(t){e.selectItem=t.itemId}))},methods:Ce({submit:function(){},momenthour:function(e){return L()(e).format("h:mm a")},toggleSeat:function(e,t,a){var s={TYPE_WAY:this.way,DIRECTION:this.direction,ID_DEPARTURE:0==this.direction?this.stravel.DEPARTURE_ROUTE:this.stravel.ARRIVAL_ROUTE,ID_ARRIVAL:0==this.direction?this.stravel.ARRIVAL_ROUTE:this.stravel.DEPARTURE_ROUTE,ID_TRAVEL:0==this.direction?this.selectSeatsOw[a].travelId:this.selectSeatsRw[a].travelId,ID_TYPEBASE_FARE:0==this.direction?this.selectTravel.FARE_ID:this.selectTravel.FARE_ID_RW,ID_ARRIVAL_NEAR:0==this.direction?this.stravel.ID_ARRIVAL_NEAR:this.stravel.ID_DEPARTURE_NEAR,ID_DEPARTURE_NEAR:0==this.direction?this.stravel.ID_DEPARTURE_NEAR:this.stravel.ID_ARRIVAL_NEAR,ID_SEAT:e.seatId,TYPE_SEAT:e.type};this.isMultiroute&&(s["ID_MULTIROUTE"]=this.selectTravel.ID_MULTIROUTE,s["ID_DEPARTURE_MR"]=this.selectTravel.ID_DEPARTURE_MR,s["ID_ARRIVAL_MR"]=this.selectTravel.ID_ARRIVAL_MR),0==this.direction?(Object.keys(this.departureShuttle).length>0&&(s["ID_SHU_DEP"]=this.departureShuttle.value),Object.keys(this.arrivalShuttle).length>0&&(s["ID_SHU_ARR"]=this.arrivalShuttle.value)):(Object.keys(this.departureShuttle).length>0&&(s["ID_SHU_ARR"]=this.departureShuttle.value),Object.keys(this.arrivalShuttle).length>0&&(s["ID_SHU_DEP"]=this.arrivalShuttle.value)),this.isAjaxReponse||(this.isAjaxReponse=!0,this.seatLoadingId=e.seatId,this.shoppingCart?(s["ID_SHOPPING_CART"]=this.shoppingCart,1==this.direction?this.selectTravel.TRAVEL_ID_RW!=this.getTravelRw?this.addShoppingCart(s,e,a):this.selectOrUnselectSeat(e,s.ID_TRAVEL,this.shoppingCart,a):this.selectTravel.TRAVEL_ID_OW!=this.getTravelOw?this.addShoppingCart(s,e,a):this.selectOrUnselectSeat(e,s.ID_TRAVEL,this.shoppingCart,a)):this.addShoppingCart(s,e,a))},addShoppingCart:function(e,t,a){var s=this,r={headers:{"Content-Type":"application/x-www-form-urlencoded"}};e=Object(f["d"])(e),this.$http.post("shoppingcart/add",e,r).then((function(r){if(s.setShoppingCart(r.data.data.idShoppingCart),s.options.WEB_EXPIRATION_TIME.value>0){var i={startDate:new Date,endDate:new Date(s.$moment().add(s.options.WEB_EXPIRATION_TIME.value,"minutes"))};localStorage.setItem("expirationData",JSON.stringify(Ce({istimer:!0},i))),s.$eventBus.$emit("timerCart",Ce({istimer:!0},i))}0==s.direction?(s.setSelectTravel({TRAVEL_ADD_CART_OW:!0}),s.setTravelOw(s.selectTravel.TRAVEL_ID_OW)):(s.setSelectTravel({TRAVEL_ADD_CART_RW:!0}),s.setTravelRw(s.selectTravel.TRAVEL_ID_RW)),s.selectOrUnselectSeat(t,e.ID_TRAVEL,r.data.data.idShoppingCart,a),"orange"==s.skin&&(fbq("track","AddToCart"),gtag("event","SeatSelection",{event_category:"Conversion",event_label:"Web"}),gtag("event","conversion",{send_to:"AW-10819213565/UXMcCOCPnokDEP2xgKco"}))})).catch((function(e){var t,a=Object(f["b"])(e);"This trip is blocked because departure time is too close to current time. Please select a different trip"==a.msg?(s.$eventBus.$emit("loadError",{msg:s.$t("La compra para este viaje está restringida porque la salida está dentro del tiempo lÃmite antes de la salida. Llame :phone para disponibilidad.").replace(":phone",s.options.INFO_CONTACT_COMPANY.value.phone)}
1),s.setLoading({state:!1,msg:"",class:"fa-bus"})):(t="es"==s.changelang?s.$t(a.msg):a.msg,s.$eventBus.$emit("loadError",{msg:t}),s.setLoading({state:!1,msg:"",class:"fa-bus"}))}))},selectOrUnselectSeat:function(e,t,a,s){var r=this,i={ID_TRAVEL:t,ID_SHOPPING_CART:a,ID_SEAT:e.seatId};i=Object(f["d"])(i);var n="FREE_SEAT"===e.typeCode?"shoppingcart/selectedSeat":"C_SELECTED_SEAT"===e.typeCode?"shoppingcart/unselectedSeat":"",l=0==this.direction?JSON.parse(JSON.stringify(this.selectSeatsOw)):JSON.parse(JSON.stringify(this.selectSeatsRw));l[s].number<this.maxSeatSelected||"C_SELECTED_SEAT"===e.typeCode||0===this.options.WEB_MAX_SELECTABLE_SEATS.value?this.$http.post(n,i).then((function(t){if("FREE_SEAT"===e.typeCode){r.setNumberSelectedSeats(r.numberSelectSeats+1);var a=JSON.parse(JSON.stringify(r.previewBusTravel));a[s].detail[e.floor].forEach((function(t){Object.values(t).forEach((function(t){t.seatId==e.seatId&&(t.typeCode="C_SELECTED_SEAT")}))})),r.setpreviewBusTravel(a);var i=JSON.parse(JSON.stringify(r.queryparams));i.bus=!0,r.setQueryParams(i),r.$eventBus.$emit("isShowFare",{show:!0,formpass:!1})}else if("C_SELECTED_SEAT"===e.typeCode){r.setNumberSelectedSeats(r.numberSelectSeats-1);var n=JSON.parse(JSON.stringify(r.previewBusTravel));n[s].detail[e.floor].forEach((function(t){Object.values(t).forEach((function(t){t.seatId==e.seatId&&(t.typeCode="FREE_SEAT")}))})),r.setpreviewBusTravel(n)}if(0==r.direction){r.setSelectTravel({KEY_TRAVEL_OW:r.keyTravel});var l=JSON.parse(JSON.stringify(r.selectSeatsOw));"FREE_SEAT"===e.typeCode?l[s].number=l[s].number+1:l[s].number=l[s].number-1;var o=l.filter((function(e){return e.number>0}));0==o.length&&r.setSelectTravel({KEY_TRAVEL_OW:null}),r.setSelectedSeatsOw(l)}else{r.setSelectTravel({KEY_TRAVEL_RW:r.keyTravel});var c=JSON.parse(JSON.stringify(r.selectSeatsRw));"FREE_SEAT"===e.typeCode?c[s].number=c[s].number+1:c[s].number=c[s].number-1;var d=c.filter((function(e){return e.number>0}));0==d.length&&r.setSelectTravel({KEY_TRAVEL_RW:null}),r.setSelectedSeatsRw(c)}r.isAjaxReponse=!1,r.seatLoadingId=0,r.setLoading({state:!1,msg:"",class:"fa-bus"})})).catch((function(e){r.isAjaxReponse=!1,r.seatLoadingId=0;var t=Object(f["b"])(e);"No es posible realizar esta compra debido que el viaje ya partió del origen."==t.msg?(r.$eventBus.$emit("loadError",{msg:r.$t("No es posible realizar esta compra debido que el viaje ya partió del origen.")}),r.setLoading({state:!1,msg:"",class:"fa-bus"})):(r.$eventBus.$emit("loadError",Object(f["b"])(e)),r.setLoading({state:!1,msg:"",class:"fa-bus"}))})):(this.isAjaxReponse=!1,this.seatLoadingId=0,this.$eventBus.$emit("loadError",{msg:this.$t("El número de asientos seleccionados excede el número de pasajeros que viajan."),buttons:[{text:this.$t("Volver a buscar"),click:{eventBus:"loadStepOne"}},{text:this.$t("Seguir comprando"),click:{close:this.$bvModal.hide("bv-error-global")}}]}),this.setLoading({state:!1,msg:"",class:"fa-bus"}))},loadShoppingCart:function(){var e=this,t={ID_SHOPPING_CART:this.shoppingCart};this.$http.post("shoppingcart/get",t).then((function(t){var a=t.data.data;e.setShoppingCartList(a)})).catch((function(t){e.$eventBus.$emit("loadError",Object(f["b"])(t)),e.setLoading({state:!1,msg:"",class:"fa-bus"})}))},loadBus:function(){this.$emit("loadBus")},selectReturn:function(){this.verifyPassengersOw()&&(this.$root.$emit("bv::toggle::collapse","collapse-bus-seat-"+this.selectSeatsOw[0].travelId),this.setDirection(1),this.setIsReturn(!0))},verifyPassengersOw:function(){var e=!0;if(this.isMultiroute){var t=0;this.selectSeatsOw.forEach((function(a,s){0==s?t=a.number:t!=a.number&&(e=!1)})),e||this.$eventBus.$emit("loadError",Object(f["b"])(this.$t("Todos los viajes de ida deben tener la misma cantidad de asientos seleccionados"))),0==t&&(e=!1,this.$eventBus.$emit("loadError",Object(f["b"])(this.$t("No hay asientos seleccionados para un viaje de ida"))))}else 0==this.selectSeatsOw[0].number&&(e=!1,this.$eventBus.$emit("loadError",Object(f["b"])(this.$t("No hay asientos seleccionados para un viaje de ida"))));return e},verifyPassengersRw:function(){var e=!0;if(this.isMultiroute&&1==this.direction){var t=0;this.selectSeatsRw.forEach((function(a,s){0==s?t=a.number:t!=a.number&&(e=!1)})),e||this.$eventBus.$emit("loadError",Object(f["b"])(this.$t("Todos los viajes de retorno deben tener el mismo número de asientos seleccionados"))),0==t&&(e=!1,this.$eventBus.$emit("loadError",Object(f["b"])(this.$t("No hay asientos seleccionados para un viaje de retorno"))))}else this.selectSeatsRw&&0==this.selectSeatsRw[0].number&&(e=!1,this.$eventBus.$emit("loadError",Object(f["b"])(this.$t("No hay asientos seleccionados para un viaje de retorno"))));return e},verifyPassengersOwRw:function(){var e=!0;return 1==this.direction&&this.selectSeatsOw[0].number!=this.selectSeatsRw[0].number&&(this.$eventBus.$emit("loadError",Object(f["b"])(this.$t("Debe seleccionar el mismo número de asientos que en el viaje de Ida"))),e=!1),e},registerPassenger:function(){var e=this;if(this.verifyPassengersOw()&&this.verifyPassengersRw()&&this.verifyPassengersOwRw()){this.setLoading({state:!0,msg:this.$t("Cargando información de Pago"),class:"fa-poll-people"}),this.qwsetstateOption(3);var t={headers:{"Content-Type":"application/x-www-form-urlencoded"}},a={ID_SHOPPING_CART:this.shoppingCart};this.$http.post("shoppingcart/get",a,t).then((function(t){var a=t.data.data;e.setShoppingCartList(a),e.setOtptionsForm(null),e.$router.push({path:"payment"})})).catch((function(t){e.$eventBus.$emit("loadError",Object(f["b"])(t)),e.setLoading({state:!1,msg:"",class:"fa-poll-people"})}))}else this.qwsetstateOption(2)},showItinerary:function(e){this.$eventBus.$emit("loadItinerary",e)}},Object(h["b"])({setShoppingCart:"cart/setShoppingCart",setShoppingCartList:"cart/setShoppingCartList",setNumberSelectedSeats:"cart/setNumberSelectedSeats",setLoading:"options/setLoading",qwsetstateOption:"options/setstateOption",setTimer:"options/setTime",setpreviewBusTravel:"travels/setpreviewBusbyTravel",restartTravels:"travels/restartState",restartShoppingCart:"cart/restartState",setDirection:"cart/setDirection",setIsReturn:"cart/setIsReturn",setSelectedSeatsOw:"cart/setSelectedSeatsOw",setSelectedSeatsRw:"cart/setSelectedSeatsRw",setTravelOw:"cart/setTravelOw",setTravelRw:"cart/setTravelRw",setSelectTravel:"travels/setSelectTravel",setPassengers:"cart/setPassengers",setTransaction:"cart/setTransaction",setQueryParams:"options/setQueryParams",checkTimeLifeIdAirline:"search/checkTimeLifeIdAirline",setOtptionsForm:"options/setOtptionsForm",setExpirationTime:"expiration/setExpirationTime"}))},ye=we,Ee=(a("6fc4"),a("40c8"),Object(S["a"])(ye,z,K,!1,null,"3a11f050",null)),Se=Ee.exports;function Ae(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function Te(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?Ae(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ae(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Oe={props:["travels"],components:{qwTravelInfo:U,qwTravelHeader:G,qwTravelItem:Se},data:function(){return{}},methods:Te({filterSelectOrderOw:function(e){var t=this;this.setLoading({state:!0,msg:this.$t("Filtrando Viajes"),class:"fa-bus"}),setTimeout((function(){t.setSelectOrder({TYPE:"ow",OPTION:e})}),100),setTimeout((function(){t.setLoading({state:!1,msg:"",class:"fa-bus"})}),200)},filterSelectOrderRw:function(e){var t=this;this.setLoading({state:!0,msg:this.$t("Filtrando Viajes"),class:"fa-bus"}),setTimeout((function(){t.setSelectOrder({TYPE:"rw",OPTION:e})}),100),setTimeout((function(){t.setLoading({state:!1,msg:"",class:"fa-bus"})}),200)}},Object(h["b"])({setSelectOrder:"options/setSelectOrder",setLoading:"options/setLoading"})),computed:Te({},Object(h["c"])({isReturn:"cart/isReturn",selectTravel:"travels/selectTravel",listDates:"travels/listDates",options:"options/listoptions",departureShuttle:"search/listoptions",arrivalShuttle:"search/listoptions"}))},Re=Oe,xe=Object(S["a"])(Re,O,R,!1,null,null,null),De=xe.exports;function Pe(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function Le(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Pe(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ke={components:{qwBreadcrumbs:l["a"],qwTitle:o["a"],qwSearchTravel:T,qwTravelList:De},created:function(){window.addEventListener("scroll",this.handleScroll),this.setLoading({state:!1,msg:"",class:""}),this.$eventBus.$emit("timerCart",{istimer:!1}),"undefined"===typeof this.$route.query.idAirline&&(sessionStorage.setItem("idAirline",""),this.cleanIdAirline(),this.cleanSearch())},mounted:function(){this.setListTravel(null),this.confirmation=!1,"orange"==this.listoptions.SKIN.value&&(fbq("track","Search"),gtag("event","Search",{event_category:"Conversion",event_label:"Web"}))},destroyed:function(){window.removeEventListener("scroll",this.handleScroll)},data:function(){return{confirmation:!1}},computed:Le({filterTravels:function(){var e=this,t=JSON.parse(JSON.stringify(this.listTravel)),a=null;return"ow"===this.selectOrder.TYPE?a=null!==this.listTravel&&"undefined"!==typeof this.listTravel.ow?JSON.parse(JSON.stringify(this.listTravel.ow)):[]:"rw"===this.selectOrder.TYPE&&(a=null!==this.listTravel&&"undefined"!==typeof this.listTravel.rw?JSON.parse(JSON.stringify(this.listTravel.rw)):[]),null!==this.selectOrder.TYPE&&null!==this.selectOrder.OPTION&&a.length>0&&null!==this.selectOrder.OPTION&&(1===this.selectOrder.OPTION?a.sort((function(t,a){return Math.min.apply(null,t.fare.map((function(t){return e.lowPrice(t.price)})))-Math.min.apply(null,a.fare.map((function(t){return e.lowPrice(t.price)})))}
1)):2===this.selectOrder.OPTION?a.sort((function(t,a){return Math.max.apply(null,a.fare.map((function(t){return e.maxPrice(t.price)})))-Math.max.apply(null,t.fare.map((function(t){return e.maxPrice(t.price)})))})):3===this.selectOrder.OPTION?a.sort((function(e,t){return e.travelDepartureDatetime>t.travelDepartureDatetime?1:e.travelDepartureDatetime<t.travelDepartureDatetime?-1:0})):4===this.selectOrder.OPTION?a.sort((function(e,t){return t.travelDepartureDatetime>e.travelDepartureDatetime?1:t.travelDepartureDatetime<e.travelDepartureDatetime?-1:0})):5===this.selectOrder.OPTION?a.sort((function(e,t){return e.travelTime>t.travelTime?1:e.travelTime<t.travelTime?-1:0})):6===this.selectOrder.OPTION&&a.sort((function(e,t){return t.travelTime>e.travelTime?1:t.travelTime<e.travelTime?-1:0}))),null!==t&&("ow"===this.selectOrder.TYPE?t.ow=a:"rw"===this.selectOrder.TYPE&&(t.rw=a)),this.setListTravel(t),t}},Object(h["c"])({getCache:"cache/getCache",listTravel:"travels/listTravel",listoptions:"options/listoptions",selectOrder:"options/selectOrder",seachTravel:"search/travel"})),methods:Le({lowPrice:function(e){return Array.isArray(e)?Math.min.apply(Math,Object(i["a"])(e.map((function(e){return e.price})))):e},maxPrice:function(e){return Array.isArray(e)?Math.max.apply(Math,Object(i["a"])(e.map((function(e){return e.price})))):e},handleScroll:function(){document.body.scrollTop>330||document.documentElement.scrollTop>330?(document.getElementById("title-h1").style.color="var(--blue)",document.getElementById("title-h1").style.fontSize="1.3rem",document.getElementById("title-h1").style.transition="all 0.2s ease-in",document.getElementById("title-h1").style.padding="0",document.getElementById("title-h1").style.margin="0",document.getElementById("title-bar").style.padding="0",document.getElementById("title-bar").style.margin="0"):(document.getElementById("title-h1").style.color="var(--dark)",document.getElementById("title-h1").style.fontSize="2rem",document.getElementById("title-h1").style.transition="all 0.2s ease-out")}},Object(h["b"])({setLoading:"options/setLoading",setListTravel:"travels/setListTravel",cleanIdAirline:"search/cleanIdAirline",cleanSearch:"search/cleanSearch"}))},Ie=ke,Ne=Object(S["a"])(Ie,s,r,!1,null,null,null);t["default"]=Ne.exports},f303:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tab-pane fade in active show mt-4",attrs:{id:"cancelados"}},[0===e.travels.length?a("div",{staticClass:"card b-shadow-n"},[a("div",{staticClass:" bg-gray-1 border-mv p-0"},[a("div",{staticClass:"d-block py-4 special-col bg-gray-1"},[a("p",{staticClass:"mb-0 text-center"},[e._v(e._s(e.$t("No tiene viajes cancelados"))+".")])])])]):a("div",{staticClass:"card-header card-mis-viajes border-mv p-0",attrs:{id:"heading-2-1","data-toggle":"collapse",role:"button","data-target":"#collapse-2-1","aria-expanded":"false","aria-controls":"collapse-2-1"}},e._l(e.travels,(function(t,s){return a("div",{key:s,staticClass:"text-center border-mv py-lg-4 pt-45 special-col align-items-center bg-gray-1 position-relative mb-4"},[a("div",{staticClass:"w-15 p-lr-small date-travel-mobile"},[e._m(0,!0),a("p",{staticClass:"font-weight-700 mb-0 text-xlg lh-100 day-travel-mobile"},[e._v(e._s(e.formatDay(t.cell[4])))]),a("p",{staticClass:"mb-0 lh-110 month-travel-mobile"},[e._v(e._s(e.formatMonthYear(t.cell[4])))])]),a("div",{staticClass:"w-30 p-lr-small departure-t-travel-mobile"},[a("p",{staticClass:"mb-0 text-limit",attrs:{title:t.cell[8]}},[e._v(e._s(t.cell[8]))])]),a("i",{staticClass:"w-5 fa-angle-right far text-center text-light-blue"}),a("div",{staticClass:"w-30 p-lr-small return-t-travel-mobile"},[a("p",{staticClass:"mb-0 text-limit",attrs:{title:t.cell[9]}},[e._v(e._s(t.cell[9]))])]),a("div",{staticClass:"w-20 p-lr-small cancel-travel-mobile"},[a("p",{staticClass:"mb-0 text-limit text-sm text-danger"},[a("span",[e._v(e._s(e.$t("Ticket anulado")))])])])])})),0),a("nav",{staticClass:"d-table mt-5 mx-auto",attrs:{"aria-label":"..."}},[e.records>e.travels.length?a("ul",{staticClass:"pagination"},[a("li",{staticClass:"page-item",class:{disabled:1===e.page}},[a("a",{staticClass:"page-link",attrs:{href:"#",tabindex:"-1"},on:{click:function(t){return t.preventDefault(),e.changePage(e.page-1)}}},[e._v(e._s(e.$t("Anterior")))])]),e._l(e.total,(function(t,s){return a("li",{key:s,staticClass:"page-item",class:{active:s+1===e.page}},[a("a",{staticClass:"page-link",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.changePage(s+1)}}},[e._v(e._s(s+1))])])})),a("li",{staticClass:"page-item",class:{disabled:e.page===e.total}},[a("a",{staticClass:"page-link",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.changePage(e.page+1)}}},[e._v(e._s(e.$t("Siguiente")))])])],2):e._e()])])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",{staticClass:"d-inline-block d-lg-none"},[a("i",{staticClass:"far fa-bus mr-2"})])}],i=(a("8e6e"),a("ac6a"),a("456d"),a("28a5"),a("bd86")),n=a("2f62"),l=a("c1df"),o=a.n(l);function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?c(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var u={data:function(){return{pagination:{page:1,rows:5},page:null,records:null,total:null,travels:[]}},created:function(){this.loadTravels()},methods:d({changePage:function(e){this.pagination.page=e,this.loadTravels()},formatDay:function(e){var t=o()(e,"MM/DD/YYYY HH:mm").format("DD");return t},formatMonthYear:function(e){var t=o()(e,"MM/DD/YYYY HH:mm").format("MMMM YYYY");return t},loadTravels:function(){var e=this;this.setLoading({state:!0,msg:this.$t("Cargando Viajes"),class:""}),this.$http({method:"POST",url:"user/listRecordShopping",data:{page:this.pagination.page,rows:this.pagination.rows,idPassenger:this.user.idUser,typeList:"canceled"}}).then((function(t){e.travels=t.data.data.rows,e.page=t.data.data.page,e.records=t.data.data.records,e.total=t.data.data.total,e.setLoading({state:!1,msg:"",class:""})})).catch((function(t){"404"==t.response.data.code||"500"==t.response.data.code?(e.$eventBus.$emit("loadError",t.response.data.details),e.setLoading({state:!1,msg:"",class:""})):(e.$eventBus.$emit("loadError",t.response),e.setLoading({state:!1,msg:"",class:""})),e.setLoading({state:!1,msg:"",class:""})}))},getAmountPayment:function(e){return String(e.toFixed(2)).split(".")}},Object(n["b"])({setLoading:"options/setLoading"})),computed:d({},Object(n["c"])({user:"auth/user"}))},p=u,m=a("2877"),v=Object(m["a"])(p,s,r,!1,null,null,null);t["default"]=v.exports},f827:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"content"}},[a("div",{staticClass:"mt-5 mx-3 text-left",staticStyle:{"margin-bottom":"100px"}},[e._m(0),a("div",{staticClass:"overflow-auto"},[a("div",{staticClass:"col-12 vales"},[a("table",{staticClass:"table table-cards text-center"},[a("thead",[a("tr",[a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Código")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Fecha de Creación")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Moneda")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Cantidad")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Cantidad Utilizada")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Cantidad Disponible")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Fecha de vencimiento")))]),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("Descripción")))])])]),e.vouchers.length?a("tbody",{staticClass:"list"},[e._l(e.vouchers,(function(t,s){return[a("tr",{key:s},[a("th",{attrs:{scope:"row"}},[e._v(e._s(t.cell[1]))]),a("td",[e._v(e._s(t.cell[2]))]),a("td",[e._v(e._s(t.cell[3]))]),a("td",[e._v(e._s(t.cell[4]))]),a("td",[e._v(e._s(t.cell[5]))]),a("td",[e._v(e._s(t.cell[6]))]),a("td",[e._v(e._s(t.cell[7]))]),a("td",[e._v(e._s(t.cell[8]))])]),s+1!==e.vouchers.length?a("tr",{key:"divider-"+s,staticClass:"table-divider"}):e._e()]}))],2):a("tbody",[a("tr",[a("td",{attrs:{colspan:"8"}},[e._v(e._s(e.$t("No existen registros")))])])])]),a("nav",{staticClass:"d-table mt-5 mx-auto",attrs:{"aria-label":"..."}},[e.records>e.vouchers.length?a("ul",{staticClass:"pagination"},[a("li",{staticClass:"page-item",class:{disabled:1===e.page}},[a("a",{staticClass:"page-link",attrs:{tabindex:"-1"},on:{click:function(t){return t.preventDefault(),e.changePage(e.page-1)}}},[e._v(e._s(e.$t("Anterior")))])]),e._l(e.total,(function(t,s){return a("li",{key:s,staticClass:"page-item",class:{active:s+1===e.page}},[a("a",{staticClass:"page-link",on:{click:function(t){return t.preventDefault(),e.changePage(s+1)}}},[e._v(e._s(s+1))])])})),a("li",{staticClass:"page-item",class:{disabled:e.page===e.total}},[a("a",{staticClass:"page-link",on:{click:function(t){return t.preventDefault(),e.changePage(e.page+1)}}},[e._v(e._s(e.$t("Siguiente")))])])],2):e._e()])])])])])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"d-flex"},[a("div",{staticClass:"d-inline-block d-lg-none icon-mobile "},[a("i",{staticClass:"far fa-ticket text-light-blue"})]),a("h2",{staticClass:"font-weight-600 text-xl mb-4 d-inline-block lh-200"},[e._v("Vouchers")])])}],i=(a("8e6e"),a("ac6a"),a("456d"),a("bd86")),n=a("2f62");function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?l(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var c={data:function(){return{pagination:{page:1,rows:10},page:null,records:null,total:null,vouchers:[]}},created:function(){this.loadVouchers()},methods:o({changePage:function(e){this.pagination.page=e,this.loadVouchers()},loadVouchers:function(){var e=this;this.setLoading({state:!0,msg:this.$t("Cargando Vouchers"),class:"fa-poll-people"}),this.$http({method:"POST",url:"user/listVouchers",data:{page:this.pagination.page,rows:this.pagination.rows,idPassenger:this.user.idUser}}).then((function(t){e.vouchers=t.data.data.rows,e.page=t.data.data.page,e.records=t.data.data.records,e.total=t.data.data.total,e.setLoading({state:!1,msg:"",class:"fa-poll-people"})})).catch((function(t){"404"==t.response.data.code||"500"==t.response.data.code?(e.$eventBus.$emit("loadError",t.response.data.details),e.setLoading({state:!1,msg:"",class:"fa-poll-people"})):(e.$eventBus.$emit("loadError",t.response),e.setLoading({state:!1,msg:"",class:"fa-poll-people"})),e.setLoading({state:!1,msg:"",class:"fa-poll-people"})}))}},Object(n["b"])({setLoading:"options/setLoading"})),computed:o({},Object(n["c"])({user:"auth/user"}))},d=c,u=a("2877"),p=Object(u["a"])(d,s,r,!1,null,null,null);t["default"]=p.exports},ff8c:function(e,t,a){}}); 2//# sourceMappingURL=app.ee0d7590.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.