quotravel-excursion-engine
Version:
Quotravel excursions search engine based on materializ e
1 lines • 93.7 kB
JavaScript
webpackJsonp([1],{"+tKT":function(e,t){e.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAyAAD/4QMxaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzA2NyA3OS4xNTc3NDcsIDIwMTUvMDMvMzAtMjM6NDA6NDIgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE1IChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjJEQTE5MjdEODQwMzExRTU5QzU3RUU5ODQ1RUVBMzRGIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjJEQTE5MjdFODQwMzExRTU5QzU3RUU5ODQ1RUVBMzRGIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkRBMTkyN0I4ND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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH//Z"},"+v2Q":function(e,t){},"4llj":function(e,t){},"5W1q":function(e,t){},"66q0":function(e,t){},"8oIw":function(e,t){},"8tpb":function(e,t){e.exports={multilanguage:{title:{en:"title",es:"titulo"},destination:{en:"Destination",es:"Destino"},checkin:{en:"Checkin",es:"Entrada"},checkout:{en:"Checkout",es:"Salida"},ocuppancy:{en:"Occupancy",es:"Ocupación"},search:{en:"Search",es:"Buscar"},hotelfound:{en:"Hotel/s found",es:"Hotel/es encontrado/s"},hotel:{en:"Hotel",es:"Hotel"},choosedest:{en:"Choose destination",es:"Elegir destino"},searchdest:{en:"Search destination",es:"Buscar destino"},searchtext:{en:"Search...",es:"Buscar..."},agree:{en:"Agree",es:"Aceptar"},rooms:{en:"Rooms",es:"Habitaciones"},pax:{en:"Pax",es:"Pax"},childages:{en:"Children ages",es:"Edades niños"},changeoccupancy:{en:"Change occupation",es:"Cambiar ocupación"},gettingresources:{en:"Getting resources",es:"Obteniendo resultados"},checkandfill:{en:"Check details and fill",es:"Revise los detalles y rellene"},details:{en:"Details",es:"Detalles"},totals:{en:"Totals",es:"Totales"},total:{en:"Total",es:"Total"},to:{en:"To",es:"Hasta"},net:{en:"Net",es:"Neto"},retail:{en:"Retail",es:"Venta"},commision:{en:"Commision",es:"Comisión"},type:{en:"Type",es:"Tipo"},availablesupl:{en:"Available supplements",es:"Suplementos disponibles"},supplements:{en:"Supplements",es:"Suplementos"},description:{en:"Description",es:"Descripción"},cost:{en:"Cost",es:"Coste"},selected:{en:"Selected",es:"Seleccionado"},paymentline:{en:"Payment methods",es:"Formas de pago"},date:{en:"Date",es:"Fecha"},remarks:{en:"Remarks",es:"Observaciones"},cancellationcost:{en:"Cancelation costs",es:"Costes de cancelación"},after:{en:"After",es:"Tras"},touroperator:{en:"Touroperator",es:"Touroperador"},filllead:{en:"Please fill lead name",es:"Por favor, rellene datos del titular"},fill:{en:"Please fill",es:"Por favor, rellene"},lead:{en:"Lead name",es:"Nombre titular"},roomnumber:{en:"Room number",es:"Número Habitación"},amount:{en:"Amount",es:"Importe"},name:{en:"Name",es:"Nombre"},surname:{en:"Surname",es:"Apellidos"},specialrequest:{en:"Special request",es:"Peticiones especiales"},ocupant:{en:"Occupant",es:"Ocupante"},age:{en:"Age",es:"Edad"},from:{en:"From",es:"Desde"},occupationinfo:{en:"Please fill Names for each occupation",es:"Por favor, rellene datos de los ocupantes"},paymentinformation:{en:"Payment information",es:"Información de pago"},cardholder:{en:"Card holder name",es:"Nombre titular de la terjeta"},cardnumber:{en:"Card number",es:"Número de la terjeta"},cvc:{en:"CVC number",es:"Número CVC"},expirationdate:{en:"Expiration Date",es:"Fecha Caducidad"},email:{en:"Email",es:"Email"},value:{en:"Value",es:"Valor"},adult:{en:"Adults",es:"Adultos"},children:{en:"Children",es:"Niños"},infants:{en:"Infants",es:"Bebes"},vehicles:{en:"Vehicles",es:"Vehiculos"},phonenumber:{en:"Phone number",es:"Número de teléfono"},book:{en:"Book",es:"Reservar"},prices:{en:"Prices",es:"Precios"},price:{en:"Price",es:"Precio"},priceline:{en:"Price lines",es:"Desglose precios"},startdate:{en:"Start date",es:"Fecha inicio"},enddate:{en:"End date",es:"Fecha fin"},configureyourexcursion:{en:"Configure your excursion",es:"Configura tu excursión"},language:{en:"Language",es:"Idioma"},variant:{en:"Variant",es:"Variante"},shift:{en:"Shift",es:"Turno"},novariant:{en:"No variant available",es:"Variante no disponible"},noturno:{en:"No shift available",es:"Turno no disponible"},available:{en:"Available",es:"Disponible"},noavailable:{en:"Not Available",es:"No Disponible"},noavailablein:{en:"No availability for selected dates, can modify other dates",es:"No hay disponibilidad para las fechas indicadas, puede modificar las fechas"},offerprice:{en:"OFFER PRICE!",es:"¡OFERTA!"},changeoptions:{en:"Change options",es:"Modificar Opciones"},goon:{en:"Go on",es:"Adelante"},requiredfield:{en:"(*) Required fields",es:"(*) Campos obligatorios"},correcterrors:{en:"Please correct the following error(s):",es:"Por favor, corrija los errores:"},errorcheckinempty:{en:"Field Start Date required",es:"El campo Fecha Inicio es obligatorio"},errorcheckoutempty:{en:"Field Checkout required",es:"El campo Salida es obligatorio"},errorlanguageempty:{en:"Field Language required",es:"El Lenguaje es obligatorio"},errordestinationempty:{en:"Field Destination required",es:"El campo Destino es obligatorio"},errorocupanccyempty:{en:"Field Occupancy required",es:"El campo Ocupacion es obligatorio"},errorcheckintoday:{en:"Start Date must be greater than today",es:"La Fecha Inicio debe ser mayor a hoy"},errorcheckoutcheckin:{en:"Checkout date must be greater than Checkin",es:"La fecha de salida debe ser mayor a la fecha de entrada"},errorpickupempty:{en:"Pickup Point is required",es:"El campo punto de recogida es obligatorio"},errorvariantempty:{en:"Select Variant",es:"Seleccione una variante"},errorshiftempty:{en:"Select Shift",es:"Seleccione un turno"},errornopeople:{en:"You must select at least one adult",es:"Debe seleccionar al menos 1 persona"},errorleadnameempty:{en:"Lead Name is required",es:"El campo Nombre titular es obligatorio"},errordateempty:{en:"Please select a date",es:"Porfavor seleccione una fecha"},erroremailempty:{en:"Email is required",es:"El Email es obligatorio"},erroremailnotvalid:{en:"Invalid Email format",es:"Formato Email no válido"},viewdatasheet:{en:"View data sheet",es:"Ver ficha"},findexcursion:{en:"Find your excursion",es:"Encuentra tu excursión"},pickuppoint:{en:"Pickup point",es:"Punto de recogida"},activity:{en:"Activity",es:"Actividad"},logedconfirm:{en:"You must be logged to confirm!",es:"Debe logarse para confirmar su reserva!"},login:{en:"Login",es:"Login"},registered:{en:"Registered users",es:"Usuarios registrados"},user:{en:"User",es:"Usuario"},password:{en:"Password",es:"Contraseña"},forgot:{en:"Forgot password?",es:"¿Olvidaste la contraseña?"},needaccount:{en:"If you need an account.",es:"Si necesitas una cuenta."},createaccount:{en:"Create account",es:"Crea una cuenta"},accesswith:{en:"Access with",es:"Accede con"},fillyourdata:{en:"Please fill your data",es:"Rellene sus datos"},signin:{en:"Sign In",es:"Registrar"},confirmpassword:{en:"Confirm password",es:"Confirmar contraseña"},recoverpass:{en:"Recover password",es:"Recuperar contraseña"},fillemail:{en:"Insert your email address to recover password",es:"Introduzca su correo para recuperar la contraseña"},recover:{en:"Recover",es:"Recuperar"},thankyou:{en:"Thank you!",es:"¡Gracias!"},bookingconfirmedtext:{en:"Your booking has been confirmed with Booking Number",es:"Su reserva a sido confirmada con el siguiente Número de Reserva"},complementbooking:{en:"Compliment your booking",es:"Complementa tu reserva"},addtolocator:{en:"Added services will be attached to the given locator id ",es:"Los servicios añadidos se asociarán al localizador id"},add:{en:"Add",es:"Añadir"},orpay:{en:"Or procced payment",es:"O realizar el pago"},paymenttext:{en:"You can pay now or later, your booking will be active for 3 days, after this time booking will be automatically canceled",es:"Puede realizar su pago ahora o hacerlo mas tarde, su reserva permanecerá activa durante 3 días, en caso de no realizarse el pago esta se cancelara automaticamente"},proceedpayment:{en:"Procced payment",es:"Realizar pago"},filterby:{en:"Filter by",es:"Filtrar por"},filter:{en:"Filter ",es:"Filtrar "},resetfilter:{en:"Reset Filter ",es:"Limpiar Filtros "},category:{en:"Category",es:"Categoría"},list:{en:"List",es:"Lista"},block:{en:"Block",es:"Bloque"},map:{en:"Map",es:"Mapa"},photos:{en:"Photos",es:"Fotos"},about:{en:"About",es:"Sobre"},features:{en:"Features",es:"Características"},onmap:{en:"On Map",es:"Mapa"},changedates:{en:"Select date",es:"Elige una fecha"},selectdestinationdate:{en:"Destination Dates",es:"Destino Fechas"},selectexcursion:{en:"Excursion",es:"Excursión"},configureexcursion:{en:"Options",es:"Opciones"},fillcheckbook:{en:"Confirm",es:"Confirma"},summary:{en:"Summary",es:"Resumen"},apply:{en:"Apply",es:"Aplicar"},discountcoupon:{en:"Discount coupon",es:"Cupón de descuento"},noresults:{en:"No results found",es:"No se encontraron resultados"},nocancellationcosts:{en:"There are no cancellation costs",es:"No existen gastos de cancelación"},nopaymentlines:{en:"No pending payments",es:"No existen pagos pendientes"},nocalendar:{en:"Could not load calendar, please search again",es:"No se pudo cargar el calendario, por favor repita la búsqueda"},genericError:{en:"There was a problem in your request please try later",es:"Se produjo un error en el proceso de reserva intentelo de nuevo mas tarde"},emailpayment:{en:"You will reicive an email with payments details",es:"Recibirá un correo con los detalles para realizar su pago"},norobot:{en:"Confirm you are not a Robot to book",es:"Confirma que no eres un Robot para reservar"},havecoupon:{en:"Have a coupon?",es:"¿Tienes un cupón?"}}}},"9C/Q":function(e,t){},Aohz:function(e,t){},GF9y:function(e,t){},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("7+uW"),i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"qt-main-*",attrs:{id:"app"}},[t("router-view")],1)},staticRenderFns:[]};var l=a("VU/8")({name:"App"},i,!1,function(e){a("qoAf")},null,null).exports,n={name:"Lbutton",methods:{clicklogin:function(e,t){console.log("lbutton"+t),this.$parent.loginaction(e,t)},clicklogout:function(){this.$parent.logoutaction()}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"lbutton"}},[null!==e.$root.userprofile?a("div",[a("span",{staticClass:"lbutton",on:{click:function(t){e.clicklogout()}}},[e._v("Logout")])]):a("div",[a("span",{staticClass:"lbutton",on:{click:function(t){e.clicklogin(!0,"login")}}},[e._v("Login")])])])},staticRenderFns:[]};a("VU/8")(n,o,!1,function(e){a("PY/B")},null,null).exports;var r=a("Rf8U"),c=a.n(r),u=a("WrNK"),d=a("mtWM"),m=a.n(d),v=a("/ocq"),A={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app-logic"}},[t("router-view")],1)},staticRenderFns:[]};var g=a("VU/8")({name:"Reserva"},A,!1,function(e){a("oY0w")},"data-v-f9cfd2d2",null).exports;null!==globaldata.language&&""!==globaldata.language&&globaldata.language;var p=a("8tpb"),h=globaldata.siteurl,_={name:"Ok",data:function(){return{bookingId:null,servicesAvailable:[],paymenturl:this.$route.query.paymenturl,siteurl:h,language:globaldata.language,multilanguage:p.multilanguage}},mounted:function(){window.scrollTo(0,0),this.$data.bookingId=this.$route.query.bookingId,this.$data.servicesAvailable=this.$route.query.availableservices}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container center"},[a("h1",[e._v(e._s(e.multilanguage.thankyou[e.language]))]),e._v(" "),a("i",{staticClass:"material-icons green large circle"},[e._v("done")]),e._v(" "),a("h4",[e._v(e._s(e.multilanguage.bookingconfirmedtext[e.language])+": "+e._s(e.bookingId))]),e._v(" "),a("div",{staticClass:"row"},[e.paymenturl?a("div",{staticStyle:{"margin-top":"50px"},domProps:{innerHTML:e._s(e.paymenturl)}}):a("div",[e._v(e._s(e.multilanguage.emailpayment[e.language]))])])])},staticRenderFns:[]};var f=a("VU/8")(_,b,!1,function(e){a("opj2")},"data-v-4c859dfe",null).exports,y={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"container center"},[t("h1",[this._v("We are sorry. It did not work")]),this._v(" "),t("i",{staticClass:"material-icons red large circle"},[this._v("error")]),this._v(" "),t("h4",[this._v(this._s(this.error))])])},staticRenderFns:[]};var k=a("VU/8")({name:"Ko",data:function(){return{error:null}},mounted:function(){this.$data.error=this.$route.query.error}},y,!1,function(e){a("GF9y")},"data-v-2dd8c784",null).exports,C="es";null!=globaldata.language&&""!=globaldata.language&&(C=globaldata.language);var x,w,I=a("8tpb"),$=new Date,S=new Date;S.setDate(S.getDate()+1);var q={name:"Formulario",data:function(){return{excursionshortdestinations:!0===globaldata.excursionshortdestinations,destobject:{resourceId:"",name:{display:""}},lastdestination:{resourceId:"",name:{}},entrada:$,portfolio:null,busqueda:null,coincidencias:{matches:[]},language:globaldata.language,multilanguage:I.multilanguage,errors:[],formats:{title:"MMMM YYYY",weekdays:"W",navMonths:"MMM",input:["L","YYYY-MM-DD","YYYY/MM/DD"],dayPopover:"L",data:["L","YYYY-MM-DD","YYYY/MM/DD"]}}},methods:{elegirdestino:function(e){w.open(),document.getElementById("busqueda").focus(),M.Tabs.init(document.querySelector("#tabsdestino"),{})},seleccionardestino:function(e,t){this.$data.destobject={name:{display:e},resourceId:t},w.close()},buscardestino:function(e){var t=!1;if(t|=37===e.keyCode,t|=38===e.keyCode,t|=39===e.keyCode,!(t|=40===e.keyCode)){var a=this.$data.coincidencias;m()({method:"get",url:globaldata.baseurl+"/commons/search",params:{language:globaldata.language,query:this.$data.busqueda}}).then(function(e){a.matches=e.data.matches}).catch(function(e){console.log(e)})}},buscardestinox:function(e){var t=!1;this.$data;t|=37===e.keyCode,t|=38===e.keyCode,t|=39===e.keyCode,(t|=40===e.keyCode)||m()({method:"get",url:globaldata.baseurl+"/commons/search",params:{language:globaldata.language,query:this.$data.destobject.name.display}}).then(function(e){var t={};for(var a in x=e.data.matches)t[x[a].name]=null;(void 0).updateData(t)}).catch(function(e){console.log(e)})},buscar:function(e){this.$data;e.preventDefault(),this.checkForm()&&this.$router.push({name:"excursion_dispo",query:{destino:this.$data.destobject.resourceId,entrada:this.formatDate(this.$data.entrada),idioma:this.$data.idioma,destinoname:this.$data.destobject.name.display}})},formatDate:function(e){var t=new Date(e),a=""+(t.getMonth()+1),s=""+t.getDate(),i=t.getFullYear();return a.length<2&&(a="0"+a),s.length<2&&(s="0"+s),[i,a,s].join("-")},checkForm:function(e){var t=!1,a=this.$data;if(this.cleanErrors(),this.errors=[],this.destobject.resourceId&&null!==this.destobject.resourceId&&""!==this.destobject.resourceId||(this.setValidationError(!0===a.excursionshortdestinations?"destinoaux":"destino","destinoaux-msg",this.multilanguage.errordestinationempty[this.language]),t=!0),null===this.entrada||""===this.entrada)this.setValidationError("checkindates","checkindates-msg",this.multilanguage.errorcheckinempty[this.language]),t=!0;else{var s=new Date(this.entrada),i=new Date;s.setHours(0,0,0,0),i.setHours(0,0,0,0),s.getTime()<i.getTime()&&(this.setValidationError("checkindates","checkindates-msg",this.multilanguage.errorcheckintoday[this.language]),t=!0)}return!t},setValidationError:function(e,t,a){var s=document.getElementById(e);s.classList.add("invalid");var i=document.createAttribute("aria-invalid");if(i.value="true",s.setAttributeNode(i),null!==t&&" "!==t){var l=document.getElementById(t),n=document.createAttribute("data-error");n.value=a,l.setAttributeNode(n)}},cleanErrors:function(){var e=document.getElementById("checkindates");e&&(e.setAttribute("aria-invalid","false"),e.setAttribute("class","")),(e=document.getElementById("destinoaux"))&&(e.setAttribute("aria-invalid","false"),e.setAttribute("class","")),(e=document.getElementById("destino"))&&(e.setAttribute("aria-invalid","false"),e.setAttribute("class",""))}},mounted:function(){window.scrollTo(0,0),null!==globaldata.whitebrandexcursion&&""!==globaldata.whitebrandexcursion&&this.$router.push({name:"excursion_rates",query:{key:globaldata.whitebrandexcursion,entrada:this.formatDate($),idioma:this.$data.language}});var e=this.$data,t=this;M.Modal.init(document.querySelector("#modal1"),{}),w=M.Modal.getInstance(document.querySelector("#modal1")),M.updateTextFields();var a=document.querySelectorAll("select");M.FormSelect.init(a,{});m()({method:"get",url:globaldata.baseurl+"/commons/portfolio"}).then(function(a){e.portfolio=a.data;for(var s=0;s<e.portfolio.countries.length;s++){e.portfolio.countries[s].name.display=e.portfolio.countries[s].name[C];for(var i=0;i<e.portfolio.countries[s].states.length;i++){e.portfolio.countries[s].states[i].name&&(e.portfolio.countries[s].states[i].name.display=e.portfolio.countries[s].states[i].name[C]);for(var l=0;l<e.portfolio.countries[s].states[i].cities.length;l++)e.portfolio.countries[s].states[i].cities[l].name.display=e.portfolio.countries[s].states[i].cities[l].name[C]}}t.$route.query.destino&&t.$route.query.destinoname&&(e.destobject.resourceId=t.$route.query.destino,e.destobject.name.display=t.$route.query.destinoname),setTimeout(function(){var e=document.querySelectorAll("select");M.FormSelect.init(e,{})})}).catch(function(t){e.portfolio="1",console.log(t)})}},P={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"transparent",attrs:{id:"main-app"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col s12"},[a("h4",[e._v(e._s(e.multilanguage.findexcursion[e.language]))])])]),e._v(" "),a("div",{staticClass:"row"},[a("form",{attrs:{method:"get"},on:{submit:e.buscar}},[a("div",{staticClass:"row"},[e.excursionshortdestinations?[a("div",{staticClass:"col s12 m6 l3"},[e.portfolio?a("div",{staticClass:"input-field"},[a("select",{directives:[{name:"model",rawName:"v-model",value:e.destobject,expression:"destobject"}],staticStyle:{cursor:"pointer"},attrs:{id:"destino"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.destobject=t.target.multiple?a:a[0]}}},[e._l(e.portfolio.countries,function(t){return[a("option",{key:t.resourceId,attrs:{disabled:t.resourceId===e.destobject.resourceId},domProps:{value:t}},[e._v(e._s(t.name[e.language]))]),e._v(" "),e._l(t.states,function(t){return[t.name?a("option",{key:t.resourceId,attrs:{disabled:t.resourceId===e.destobject.resourceId},domProps:{value:t}},[e._v(" "+e._s(t.name[e.language]))]):e._e(),e._v(" "),e._l(t.cities,function(t){return[t.name?a("option",{key:t.resourceId,attrs:{disabled:t.resourceId===e.destobject.resourceId},domProps:{value:t}},[e._v(" "+e._s(t.name[e.language]))]):e._e()]})]})]})],2),e._v(" "),a("label",{attrs:{for:"destino","data-error":"wrong","data-success":"right"}},[e._v(e._s(e.multilanguage.destination[e.language])+" *")]),e._v(" "),a("input",{staticClass:"validator",staticStyle:{display:"none"},attrs:{id:"destinoaux"}}),e._v(" "),a("span",{staticClass:"helper-text",attrs:{id:"destinoaux-msg"}})]):a("div",{staticClass:"center input-field"},[e._m(0)])])]:[a("div",{staticClass:"col s12 m6 l4 "},[a("div",{staticClass:"input-field "},[a("label",{staticClass:"active",attrs:{for:"destino","data-error":"wrong","data-success":"right"}},[e._v(e._s(e.multilanguage.destination[e.language])+" *")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.destobject.name.display,expression:"destobject.name.display"}],staticClass:"autocomplete validate",staticStyle:{cursor:"pointer"},attrs:{type:"text",id:"destino",placeholder:""},domProps:{value:e.destobject.name.display},on:{keyup:function(t){e.elegirdestino("destino")},focus:function(t){e.elegirdestino("destino")},input:function(t){t.target.composing||e.$set(e.destobject.name,"display",t.target.value)}}}),e._v(" "),a("span",{staticClass:"helper-text",attrs:{id:"destinoaux-msg"}})])])],e._v(" "),a("div",{staticClass:"col s12 m6 l3"},[a("div",{staticClass:"input-field"},[a("label",{staticClass:"active",attrs:{"data-error":"wrong","data-success":"right"}},[e._v(e._s(e.multilanguage.startdate[e.language])+" *")]),e._v(" "),a("v-date-picker",{attrs:{mode:"single",format:e.formats},model:{value:e.entrada,callback:function(t){e.entrada=t},expression:"entrada"}}),e._v(" "),a("input",{staticClass:"validator",staticStyle:{display:"none"},attrs:{id:"checkindates"}}),e._v(" "),a("span",{staticClass:"helper-text",attrs:{id:"checkindates-msg"}})],1)]),e._v(" "),a("div",{staticClass:"col s12 m12 l3"},[a("div",{staticClass:"input-field "},[a("div",{staticClass:" occupation-container"},[a("a",{staticClass:"waves-effect waves-light btn",on:{click:e.buscar}},[e._v(e._s(e.multilanguage.search[e.language]))])])])])],2),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col s12"},[a("label",{staticClass:"red-text left"},[e._v(e._s(e.multilanguage.requiredfield[e.language]))])])])])]),e._v(" "),a("div",{staticClass:"modal",staticStyle:{"overflow-y":"auto"},attrs:{id:"modal1"}},[a("div",{staticClass:"modal-content white"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col s12",attrs:{id:"buscar"}},[a("h5",[e._v(e._s(e.multilanguage.searchdest[e.language]))]),e._v(" "),a("div",{staticClass:"input-field inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.busqueda,expression:"busqueda"}],staticClass:"validate",attrs:{id:"busqueda",type:"text"},domProps:{value:e.busqueda},on:{keyup:e.buscardestino,input:function(t){t.target.composing||(e.busqueda=t.target.value)}}}),e._v(" "),a("label",{attrs:{for:"busqueda","data-error":"wrong","data-success":"right"}},[e._v(e._s(e.multilanguage.searchtext[e.language]))])]),e._v(" "),a("div",{staticClass:"destino-content"},e._l(e.coincidencias.matches,function(t){return a("div",[a("h5",[a("a",{staticStyle:{cursor:"pointer"},on:{click:function(a){e.seleccionardestino(t.name,t.resourceId)}}},[e._v(e._s(t.name))])]),e._v("\n\n "+e._s(t.description)+"\n ")])}))])])]),e._v(" "),a("div",{staticClass:"modal-footer white"},[a("a",{staticClass:"modal-close waves-effect waves-green btn"},[e._v(e._s(e.multilanguage.agree[e.language]))])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"preloader-wrapper small active"},[t("div",{staticClass:"spinner-layer "},[t("div",{staticClass:"circle-clipper left"},[t("div",{staticClass:"circle"})]),t("div",{staticClass:"gap-patch"},[t("div",{staticClass:"circle"})]),t("div",{staticClass:"circle-clipper right"},[t("div",{staticClass:"circle"})])])])}]};var E,N=a("VU/8")(q,P,!1,function(e){a("9C/Q")},"data-v-5516b29c",null).exports,D=a("zF5W"),T=a.n(D),R=(a("4llj"),a("P2M1")),F=a.n(R),O="es";null!=globaldata.language&&""!=globaldata.language&&(O=globaldata.language);var z=a("8tpb"),B=(a("+tKT"),!1);null!==globaldata.whitebrandexcursion&&""!==globaldata.whitebrandexcursion&&(B=!0);var U={name:"ExcursionDispo",data:function(){return{dispo:null,showwhite:B,maxPrice:null,minPrice:null,loader:null,hidefilter:!0,language:globaldata.language,multilanguage:z.multilanguage,pricesrange:null,labels:[]}},watch:{labels:function(e){this.fiterresults()}},methods:{goback:function(e){this.$router.push({name:"main",query:{entrada:this.$route.query.entrada,destinoname:this.$route.query.destinoname,destino:this.$route.query.destino}})},changeParameters:function(){this.$router.push({name:"main",query:{entrada:this.$route.query.entrada,destinoname:this.$route.query.destinoname,destino:this.$route.query.destino}})},resetfilter:function(){var e=this.$data;e.maxPrice>=0&&e.minPrice>=0&&e.maxPrice!==e.minPrice&&E.noUiSlider.reset(),this.getAvailability()},fiterresults:function(){var e=this.$data,t=this,a=[null,null];e.maxPrice>=0&&e.minPrice>=0&&e.maxPrice!==e.minPrice&&(a=E.noUiSlider.get());for(var s="",i=0;i<e.labels.length;i++)e.labels[i]&&(s=s+e.dispo.labels[i].id+",");m()({method:"get",url:globaldata.baseurl+"/activity/filter",params:{resourceid:this.$route.query.destino,start:this.$route.query.entrada?this.$route.query.entrada.replace(/-/g,""):null,language:this.language,minprice:a[0],maxprice:a[1],labels:""===s?null:s}}).then(function(a){e.loader=null,e.dispo=a.data,setTimeout(function(){t.instancematerialize()})}).catch(function(t){e.loader=null,e.dispo=null,console.log(t)})},abrirdetalle:function(e,t){this.deletetooltips(),this.$router.push({name:"excursion_rates",query:{key:e,entrada:this.$route.query.entrada,salida:this.$route.query.salida,destinoname:this.$route.query.destinoname,destino:this.$route.query.destino,excursionname:t}})},abrirficha:function(e){this.$router.push({name:"excursion_ficha",query:{hotelkey:e}})},deletetooltips:function(){var e,t=document.getElementsByClassName("material-tooltip");for(e=t.length-1;e>=0;e--)t[e].parentNode.removeChild(t[e])},instancematerialize:function(){var e=document.querySelectorAll(".tooltipped");M.Tooltip.init(e,{})},getDatafromLocator:function(){var e=this.$data,t=this;e.loader=!0,m()({method:"get",url:globaldata.baseurl+"/commons/fromlocator/"+globaldata.localizador,params:{}}).then(function(a){setTimeout(function(){e.loader=null,t.$route.query.destino=a.data.destination,t.$route.query.destinoname=a.data.destinationName,t.$route.query.entrada=a.data.checkin.toString().substr(0,4)+"-"+a.data.checkin.toString().substr(4,2)+"-"+a.data.checkin.toString().substr(6,2),t.$route.query.ocupacion=O,null!==globaldata.whitebrandexcursion&&""!==globaldata.whitebrandexcursion?t.$router.push({name:"excursion_rates",query:{key:globaldata.whitebrandexcursion,entrada:t.$route.query.entrada,salida:t.$route.query.salida}}):t.getAvailability()})}).catch(function(t){e.loader=null,e.dispo=null,console.log(t)})},getAvailability:function(){var e=this.$data,t=this;e.loader=!0,m()({method:"get",url:globaldata.baseurl+"/activity/available",params:{resorts:this.$route.query.destino,start:this.$route.query.entrada?this.$route.query.entrada.replace(/-/g,""):null,language:this.$route.query.idioma}}).then(function(a){e.loader=!1,e.dispo=a.data;for(var s=0;s<e.dispo.labels.length;s++)e.labels[s]=!1;e.minPrice=e.dispo.minPrice,e.maxPrice=e.dispo.maxPrice,setTimeout(function(){if(e.maxPrice>=0&&e.minPrice>=0&&e.maxPrice!==e.minPrice){var a=10;e.maxPrice-e.minPrice<50&&e.maxPrice-e.minPrice>=20?a=5:e.maxPrice!==e.minPrice<20&&(a=1),(E=document.getElementById("test-slider")).noUiSlider||(T.a.create(E,{start:[0===e.minPrice?0:e.minPrice-1,e.maxPrice+1],connect:!0,step:a,tooltips:[!0,!0],pips:{mode:"count",values:6,density:4},orientation:"horizontal",range:{min:0===e.minPrice?0:e.minPrice-1,max:0===e.maxPrice?0:e.maxPrice+1},format:F()({decimals:0})}),E.noUiSlider.on("change",function(e,a){t.fiterresults()}))}t.instancematerialize()})}).catch(function(t){e.loader=!1,e.dispo=null,console.log(t)})}},mounted:function(){window.scrollTo(0,0);this.$data.loader=!0,globaldata.localizador&&!this.$route.query.destino?(console.log("entra por locator"),this.getDatafromLocator()):this.getAvailability()}},V={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"transparent",attrs:{id:"main-app"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"row ",attrs:{id:"steps"}},[a("div",{staticClass:"col s3"},[a("a",{staticClass:"btn-floating waves-effect waves-light success-step center-align breadcrum_icon",on:{click:function(t){e.goback("formulario")}}},[e._v("1")]),e._v(" "),a("a",{staticStyle:{cursor:"pointer"},on:{click:function(t){e.goback("formulario")}}},[a("span",{staticClass:"step-text center"},[e._v(e._s(e.multilanguage.selectdestinationdate[e.language]))])])]),e._v(" "),a("div",{staticClass:"col s3"},[a("a",{staticClass:"btn-floating center-align breadcrum_icon",staticStyle:{cursor:"default"}},[e._v("2")]),e._v(" "),a("span",{staticClass:"step-text center"},[e._v(e._s(e.multilanguage.selectexcursion[e.language]))])]),e._v(" "),a("div",{staticClass:"col s3"},[a("a",{staticClass:"btn-floating grey center-align breadcrum_icon",staticStyle:{cursor:"default"}},[e._v("3")]),e._v(" "),a("span",{staticClass:"step-text center"},[e._v(e._s(e.multilanguage.configureexcursion[e.language]))])]),e._v(" "),a("div",{staticClass:"col s3"},[a("a",{staticClass:"btn-floating grey center-align breadcrum_icon",staticStyle:{cursor:"default"}},[e._v(" 4")]),e._v(" "),a("span",{staticClass:"step-text center"},[e._v(e._s(e.multilanguage.fillcheckbook[e.language]))])])]),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col s12 m6 l3"},[a("div",{staticClass:"row"},[e.dispo&&e.dispo.labels&&e.dispo.labels.length>0||e.maxPrice>=0&&e.minPrice>=0&&e.maxPrice!==e.minPrice?a("div",[a("div",{staticClass:"hide-on-large-only"},[a("div",{staticClass:"switch"},[a("label",[a("h6",[e._v(e._s(e.multilanguage.filter[e.language])+"\n "),a("input",{attrs:{type:"checkbox"},on:{click:function(t){e.hidefilter?e.hidefilter=!1:e.hidefilter=!0}}}),e._v(" "),a("span",{staticClass:"lever"})])])])]),e._v(" "),a("div",{staticClass:"filter",class:{"hide-on-med-and-down":e.hidefilter}},[a("div",{staticClass:"title-filter"},[e._v(e._s(e.multilanguage.filterby[e.language]))]),e._v(" "),e.dispo&&e.dispo.labels&&e.dispo.labels.length>0?a("div",{staticStyle:{"padding-bottom":"20px"}},[a("div",{staticClass:"subtitle-filter"},[e._v(e._s(e.multilanguage.type[e.language]))]),e._v(" "),e._l(e.dispo.labels,function(t,s){return a("div",[a("label",{staticClass:"black-text"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.labels[s],expression:"labels[index]"}],staticClass:"filled-in",attrs:{type:"checkbox",checked:"true"},domProps:{checked:Array.isArray(e.labels[s])?e._i(e.labels[s],null)>-1:e.labels[s]},on:{change:function(t){var a=e.labels[s],i=t.target,l=!!i.checked;if(Array.isArray(a)){var n=e._i(a,null);i.checked?n<0&&e.$set(e.labels,s,a.concat([null])):n>-1&&e.$set(e.labels,s,a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.labels,s,l)}}}),e._v(" "),a("span",[e._v(e._s(t.name))])])])})],2):e._e(),e._v(" "),e.maxPrice>=0&&e.minPrice>=0&&e.maxPrice!==e.minPrice?a("div",[a("div",{staticClass:"subtitle"},[e._v(e._s(e.multilanguage.price[e.language]))]),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col s12 "},[a("div",{staticClass:"pricerange"},[a("div",{attrs:{id:"test-slider"},model:{value:e.pricesrange,callback:function(t){e.pricesrange=t},expression:"pricesrange"}})])])])]):e._e(),e._v(" "),a("a",{staticClass:"btn",on:{click:function(t){e.resetfilter()}}},[e._v(e._s(e.multilanguage.resetfilter[e.language]))])])]):e._e()]),e._v(" "),a("div",{staticClass:"row hide-on-med-and-down"},[a("div",{staticClass:" resume ",attrs:{id:"resume-last"}},[a("div",{staticClass:"title-resume"},[e._v(e._s(e.multilanguage.summary[e.language]))]),e._v(" "),a("div",{staticClass:"valign-wrapper",staticStyle:{"margin-bottom":"0.5em"}},[a("i",{staticClass:"material-icons ",staticStyle:{"margin-right":"0.5em"}},[e._v("date_range")]),a("span",[a("b",{staticStyle:{"margin-right":"0.5em"}},[e._v(" "+e._s(e.multilanguage.checkin[e.language])+": ")]),e._v(" "+e._s(this.$route.query.entrada))])]),e._v(" "),a("div",{staticClass:"valign-wrapper",staticStyle:{"margin-bottom":"0.5em"}},[a("i",{staticClass:"material-icons ",staticStyle:{"margin-right":"0.5em"}},[e._v("location_on")]),a("span",[a("b",{staticStyle:{"margin-right":"0.5em"}},[e._v(e._s(e.multilanguage.destination[e.language])+":")]),e._v(" "+e._s(this.$route.query.destinoname))])]),e._v(" "),a("div",{staticStyle:{"margin-top":"1.5em"}},[a("a",{staticClass:"btn",on:{click:function(t){e.changeParameters()}}},[e._v(e._s(e.multilanguage.changeoptions[e.language]))])])])])]),e._v(" "),e.loader?a("div",{staticClass:"col s12 l9"},[a("h4",[e._v(e._s(e.multilanguage.gettingresources[e.language]))]),e._v(" "),e._m(0)]):e._e(),e._v(" "),!e.loader&&e.dispo?a("div",[e.dispo.availableActivities&&e.dispo.availableActivities.length>0?a("div",[a("div",{staticClass:"col s12 l9",staticStyle:{padding:"0px","margin-top":"48px"}},[a("div",{staticClass:"row grid"},e._l(e.dispo.availableActivities,function(t){return a("div",{staticClass:"col s12 m6 l6 xl4 ",staticStyle:{"margin-left":"0em"}},[a("a",{staticStyle:{cursor:"pointer"},on:{click:function(a){e.abrirdetalle(t.activityId,t.name)}}},[a("div",{staticClass:"card hoverable",staticStyle:{height:"95%","margin-top":"0px",width:"100%"}},[a("div",{staticClass:"card-image",staticStyle:{height:"200px"}},[t.image?[a("img",{attrs:{src:t.image,alt:t.name,width:"100%",height:"100%"}})]:[a("img",{attrs:{src:e.noimage,alt:t.name,width:"100%",height:"100%"}})]],2),e._v(" "),a("div",{staticClass:"card-content grey-text"},[a("div",{staticClass:"row"},[a("div",{staticClass:"hoteltitle"},[e._v(e._s(t.name))]),e._v(" "),a("div",{staticClass:"hoteladdress valign-wrapper"},[e._v(e._s(t.description))]),e._v(" "),t.bestDeal?a("div",[a("div",{staticStyle:{width:"100%"}},[!0!==t.bestDeal.offer?a("div",[a("div",{staticClass:"black-text ",staticStyle:{"padding-top":"2em"}},[a("span",{staticStyle:{"vertical-align":"top"}},[e._v(e._s(e.multilanguage.from[e.language])+"\n "),a("div",{staticClass:"center"},[a("span",{staticClass:"price green-text"},[e._v(e._s(t.bestDeal.retailPrice.value)+"\n ")]),e._v("\n "+e._s(t.bestDeal.retailPrice.currencyIsoCode))])])])]):a("div",[a("div",{staticClass:"black-text "},[a("div",{staticClass:"left-align"},[e._v(e._s(e.multilanguage.from[e.language]))]),e._v(" "),a("div",{staticClass:"red-text center "},[a("div",{},[e._v(e._s(e.multilanguage.offerprice[e.language])+" \n "),a("a",{staticClass:"red-text tooltipped",staticStyle:{cursor:"pointer"},attrs:{"data-position":"bottom","data-tooltip":t.bestDeal.offerText}},[a("i",{staticClass:"material-icons"},[e._v("new_releases")])])])]),e._v(" "),a("div",{staticClass:"center"},[t.bestDeal.beforeOfferPrice?a("span",{staticClass:"grey-text oldprice"},[e._v(e._s(t.bestDeal.beforeOfferPrice.value))]):e._e(),e._v(" "),a("span",{staticClass:"price green-text"},[e._v(e._s(t.bestDeal.retailPrice.value))]),e._v("\n "+e._s(t.bestDeal.retailPrice.currencyIsoCode)+"\n ")])])])])]):a("div",{staticClass:"red-text"},[e._v("\n "+e._s(e.multilanguage.noavailablein[e.language])+"\n ")])])])])])])}))])]):a("div",{staticClass:"col l8 s12 ",staticStyle:{"margin-top":"48px"}},[a("h4",[e._v(e._s(e.multilanguage.noresults[e.language]))])])]):e._e()])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"progress"},[t("div",{staticClass:"indeterminate"})])}]};var Y=a("VU/8")(U,V,!1,function(e){a("+v2Q")},"data-v-1bff2d7e",null).exports,L=a("bOdI"),j=a.n(L);null!=globaldata.language&&""!=globaldata.language&&globaldata.language;var G=a("8tpb"),W=a("+tKT"),Z=!1;null!==globaldata.whitebrandexcursion&&""!==globaldata.whitebrandexcursion&&(Z=!0);var H={name:"Rates",data:function(){return{noimage:W,pageGalleryini:0,pageGalleryend:10,showwhite:Z,ficha:[],title:null,disponibilidad:null,availabledates:[],imagenes:[],mapboxtoken:globaldata.mapboxtoken,mainImage:null,mapImage:null,longitude:null,latitude:null,pageloaded:!1,disableddates:null,maprender:!1,description:null,detalles:null,selectedValue:this.createDate(this.$route.query.entrada.replace(/-/g,"")),selectedfecha:-1,pickups:null,languages:null,turno:null,variante:null,variantes:[],turnos:[],charged:null,titular:null,comentarios:null,idiomaguiak:null,hotelk:null,key:{key:null,ratekey:null,datekey:null,variantesel:null,turnosel:null,adultos:1,ninos:0,idiomaguia:null,pickup:null},avdates:[],themeStyles:{wrapper:{background:"#fff",border:"solid rgba(0, 0, 0, 0.2) 1px",borderRadius:"5px"},dayCellNotInMonth:{opacity:.7},dayCell:{background:"#4caf50",color:"#fff",padding:"0px",margin:"0px"},dayContent:{padding:"0px",margin:"0px"}},disableattr:{key:"disabled",highlight:{backgroundColor:"#F84744",opacity:1,animated:!1},contentStyle:{color:"white"}},enableattr:[{key:"available",highlight:{backgroundColor:"#4caf50",opacity:1,animated:!1},contentStyle:{color:"white"}}],dragattr:{key:"drag",highlight:{backgroundColor:"#ffc107",opacity:1,animated:!1},contentStyle:{color:"black"}},selectattr:{key:"select",highlight:{backgroundColor:"#ffb300",opacity:1,animated:!1},contentStyle:{color:"black"}},total:null,loader:null,language:globaldata.language,multilanguage:G.multilanguage,errors:[],from_page:null,to_page:null}},watch:{"key.ninos":function(e){this.valorar()},"key.adultos":function(e){this.valorar()},hotelk:function(e){this.$data.key.pickup=this.$data.hotelk.id,this.valorar()},idiomaguiak:function(e){this.$data.key.idiomaguia=this.$data.idiomaguiak.id,this.valorar()},variante:function(e){this.$data.key.variantesel=this.$data.variante.key,this.valorar()},turno:function(e){if(this.$data.turno&&e){this.$data.key.turnosel=this.$data.turno.id,this.cambioturno(e),this.valorar(),setTimeout(function(){var e=document.querySelectorAll("select");document.querySelectorAll("option"),M.FormSelect.init(e,{})});var t=document.getElementById("hotel");M.FormSelect.init(t,{})}},maprender:function(e){this.$data.mapImage||this.createMap()},selectedValue:function(e){this.$data.key.datekey=this.formatDate(e).replace(/-/g,""),this.getrates(this.formatDate(e).replace(/-/g,""))}},methods:j()({createMap:function(){var e=this.$data;if(e.latitude&&e.longitude){mapboxgl.accessToken=globaldata.mapboxtoken;var t=new mapboxgl.Map({container:"map",style:"mapbox://styles/mapbox/streets-v10",center:[e.longitude,e.latitude],zoom:13});document.createElement("div").className="marker";(new mapboxgl.Marker).setLngLat([e.longitude,e.latitude]).addTo(t)}},valorar:function(){var e=this.$data;console.log("key"),console.log(e.key),e.key&&(e.selectedValue&&e.key.variantesel&&""!==e.key.variantesel&&e.key.turnosel&&""!==e.key.turnosel&&e.key.idiomaguia&&""!==e.key.idiomaguia&&e.key.pickup&&""!==e.key.pickup?m()({method:"get",url:globaldata.baseurl+"/activity/check/"+this.$route.query.key,params:{language:e.language,adults:e.key.adultos,children:e.key.ninos,date:e.key.datekey,variant:e.key.variantesel,shift:e.key.turnosel,pickup:e.key.pickup,activityLanguage:e.key.idiomaguia}}).then(function(t){e.total=t.data,e.key.ratekey=e.total.key}).catch(function(e){console.log(e)}):(e.total=null,e.key.ratekey=null))},goback:function(e){switch(e){case"formulario":this.$router.push({name:"main",query:{entrada:this.$route.query.entrada,destinoname:this.$route.query.destinoname,destino:this.$route.query.destino}});break;case"dispo":this.$router.push({name:"excursion_dispo",query:{key:this.$route.query.key,entrada:this.$route.query.entrada,salida:this.$route.query.salida,destinoname:this.$route.query.destinoname,destino:this.$route.query.destino,excursionname:this.$route.query.name,idioma:this.$data.language}})}},cambioturno:function(e){this.$data.pickups=null,this.$data.languages=null,this.$data.idiomaguiak=null,this.$data.hotelk=null,e.pickups&&(this.$data.pickups=e.pickups,this.$data.hotelk=e.pickups[0],console.log("this.$data.hotelk "),console.log(this.$data.hotelk)),e.languages&&(this.$data.languages=e.languages,this.$data.idiomaguiak=e.languages[0])},getficha:function(e){var t=this.$data;m()({method:"get",url:globaldata.baseurl+"/commons/datasheet/"+this.$route.query.key,params:{language:t.language}}).then(function(e){for(var a=0;a<e.data.values.length;a++)switch(e.data.values[a].key){case"name":t.title=e.data.values[a].value;break;case"images/image":t.imagenes.push(e.data.values[a].value);break;case"images/main":t.mainImage=e.data.values[a].value;break;case"images/map":t.mapImage=e.data.values[a].value;break;case"description":t.description=e.data.values[a].value;break;case"longitude":t.longitude=e.data.values[a].value;break;case"latitude":t.latitude=e.data.values[a].value;break;default:var s=e.data.values[a].key,i=e.data.values[a].value;t.ficha.push({key:s,value:i})}setTimeout(function(){var e;e=!(t.imagenes.length>14);var a=document.querySelectorAll(".carousel");M.Carousel.init(a,{fullWidth:!0,indicators:e}),a=document.querySelectorAll(".tabs"),M.Tabs.init(a,{});t.pageloaded=!0})}).catch(function(e){t.loader=null,console.log(e)})},book:function(e){e.preventDefault(),this.checkForm()&&this.$router.push({name:"excursion_detalle",query:{ratekey:this.$data.key.ratekey,datekey:this.$data.key.datekey.replace(/-/g,""),variantesel:this.$data.variante.name,turnosel:this.$data.turno.name,adultos:this.$data.key.adultos,ninos:this.$data.key.ninos,idiomaguia:this.$data.idiomaguiak.name,hotel:this.$data.hotelk.name,destinoname:this.$route.query.destinoname,destino:this.$route.query.destino,excursionname:this.$route.query.excursionname,key:this.$route.query.key,entrada:this.$data.key.datekey.toString().substr(0,4)+"-"+this.$data.key.datekey.toString().substr(4,2)+"-"+this.$data.key.datekey.toString().substr(6,2),idioma:this.$data.language}})},checkForm:function(e){return this.errors=[],null!==this.key.datekey&&""!==this.key.datekey||this.errors.push(this.multilanguage.errordateempty[this.language]),null!==this.key.pickup&&""!==this.key.pickup||this.errors.push(this.multilanguage.errorpickupempty[this.language]),null!==this.key.idiomaguia&&""!==this.key.idiomaguia||this.errors.push(this.multilanguage.errorlanguageempty[this.language]),null!==this.key.variantesel&&""!==this.key.variantesel||this.errors.push(this.multilanguage.errorvariantempty[this.language]),null!==this.key.turnosel&&""!==this.key.turnosel||this.errors.push(this.multilanguage.errorshiftempty[this.language]),this.key.adultos<1&&this.errors.push(this.multilanguage.errornopeople[this.language]),!(this.errors.length>0)},createDate:function(e){var t=e.toString(),a=t.substr(0,4),s=t.substr(4,2),i=t.substr(6,2);return new Date(a,s-1,i)},formatDate:function(e){var t=new Date(e),a=""+(t.getMonth()+1),s=""+t.getDate(),i=t.getFullYear();return a.length<2&&(a="0"+a),s.length<2&&(s="0"+s),[i,a,s].join("-")},getrates:function(e){var t=this.$data;m()({method:"get",url:globaldata.baseurl+"/activity/rates/"+this.$route.query.key,params:{date:e,language:t.language}}).then(function(e){t.detalles=e.data,t.charged=!0,t.variantes=t.detalles.variants,t.variantes?t.variante=t.variantes[0]:(t.variante="",t.key.variantesel=null),t.turnos=t.detalles.shifts,t.turnos?t.turno=t.turnos[0]:(t.turno="",t.key.turnosel=null),setTimeout(function(){var e=document.querySelectorAll("select"),t=(document.querySelectorAll("option"),M.FormSelect.init(e,{}),document.querySelectorAll(".materialboxed"));M.Materialbox.init(t,{})})}).catch(function(e){t.charged=!1,console.log(e)})},slideImage:function(e){var t=document.querySelectorAll(".carousel"),a=M.Carousel.getInstance(t[0]);e>0?a.next():a.prev()},getavailabledates:function(){var e=this.$data,t=this;e.loader=!0;var a={month:parseInt(this.$route.query.entrada.substr(5,2)),year:this.$route.query.entrada.substr(0,4)},s={month:parseInt(this.$route.query.entrada.substr(5,2))+1,year:this.$route.query.entrada.substr(0,4)};e.to_page=s,e.from_page=a,m()({method:"get",url:globaldata.baseurl+"/cms/activityavailabilitycalendar",params:{resorts:this.$route.query.key}}).then(function(a){var s,i,l,n,o=!0;if(e.loader=null,e.disponibilidad=a.data,e.disponibilidad){for(var r=0;r<e.disponibilidad.months.length;r++)for(var c=0;c<e.disponibilidad.months[r].weeks.length;c++)for(var u=0;u<e.disponibilidad.months[r].weeks[c].days.length;u++)if(null!==e.disponibilidad.months[r].weeks[c].days[u].date&&"av"===e.disponibilidad.months[r].weeks[c].days[u].styleName){if(o)s=e.disponibilidad.months[r].weeks[c].days[u].date,i=null,o=!1;else{var d=new Date(e.disponibilidad.months[r].weeks[c].days[u].date);if(d.setDate(d.getDate()-1),d.setMilliseconds(0),d.setSeconds(0),d.setMinutes(0),d.setHours(0),d.getTime()!==n.getTime())(m=n).setDate(m.getDate()),i=t.formatDate(m),e.availabledates.push({start:s,end:i}),s=e.disponibilidad.months[r].weeks[c].days[u].date}l=e.disponibilidad.months[r].weeks[c].days[u].date,(n=new Date(e.disponibilidad.months[r].weeks[c].days[u].date)).setMilliseconds(0),n.setSeconds(0),n.setMinutes(0),n.setHours(0)}var m;(m=new Date(l)).setDate(m.getDate()+1),i=t.formatDate(m),s&&i&&e.availabledates.push({start:s,end:i})}0===e.availabledates.length&&(console.log("d.availabledates"),e.availabledates=null,e.disableddates={start:null,end:null}),e.charged=!0}).catch(function(t){e.charged=!1,e.loader=null,console.log(t)})}},"formatDate",function(e){var t=new Date(e),a=""+(t.getMonth()+1),s=""+t.getDate(),i=t.getFullYear();return a.length<2&&(a="0"+a),s.length<2&&(s="0"+s),[i,a,s].join("-")}),mounted:function(){window.scrollTo(0,0);var e=this.$data;e.key.key=this.$route.query.key,e.key.datekey=this.$route.query.entrada.replace(/-/g,""),this.getrates(this.$route.query.entrada.replace(/-/g,"")),this.getavailabledates(),this.getficha()},updated:function(){this.$data.errors.length>0&&document.getElementById("validation-errors").scrollIntoView()}},Q={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"transparent",attrs:{id:"main-app"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"row ",attrs:{id:"steps"}},[e.showwhite?[a("div",{staticClass:"col s3"},[a("a",{staticClass:"btn-floating center-align breadcrum_icon",staticStyle:{cursor:"default"}},[e._v("1")]),e._v(" "),a("span",{staticClass:"step-text center"},[e._v(e._s(e.multilanguage.configureexcursion[e.language]))])]),e._v(" "),a("div",{staticClass:"col s3"},[a("a",{staticClass:"btn-floating grey center-align breadcrum_icon",staticStyle:{cursor:"default"}},[e._v(" 2")]),e._v(" "),a("span",{staticClass:"step-text center"},[e._v(e._s(e.multilanguage.fillcheckbook[e.language]))])])]:[a("div",{staticClass:"col s3"},[a("a",{staticClass:"btn-floating waves-effect waves-light success-step center-align breadcrum_icon",on:{click:function(t){e.goback("formulario")}}},[e._v("1")]),e._v(" "),a("a",{staticStyle:{cursor:"pointer"},on:{click:function(t){e.goback("formulario")}}},[a("span",{staticClass:"step-text center"},[e._v(e._s(e.multilanguage.selectdestinationda