{"version":3,"sources":["webpack:///./src/views/Rent/RentProductType.vue?6495","webpack:///./src/views/Rent/RentProductType.vue?91a3","webpack:///./src/components/Rent/RentProducts.vue?250b","webpack:///./src/components/Rent/RentProducts.vue","webpack:///./src/components/Rent/RentProducts.vue?33fa","webpack:///./src/components/Rent/RentProducts.vue?96ae","webpack:///./src/views/Rent/RentProductType.vue","webpack:///./src/views/Rent/RentProductType.vue?d9d4","webpack:///./src/views/Rent/RentProductType.vue?b9f7","webpack:///./src/components/Rent/RentProducts.vue?b69b"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","$t","productId","model","value","callback","$$v","startDate","expression","endDate","invalidDates","singleDay","outOfSeason","closed","promotion","_e","langSuffix","minRentDays","days","attrs","maxRentDays","staticRenderFns","_l","p","key","id","class","isUnavailable","staticStyle","$set","pi","i","type","getPictureUrl","packages","length","selectedPackage","directives","name","rawName","domProps","_q","on","$event","promotionApplying","getPrice","pp","isUnavailablePackage","isSelectionUnavailable","showCartModal","ref","currentSelection","pictures","currentOrderProduct","target","composing","gender","a","getAccessoryPrice","s","selectedSize","Array","isArray","selected","_i","$$a","$$el","$$c","checked","$$i","concat","slice","cancelCartModal","canAddToCart","addToCart","$options","filters","shortDate","cancelShowCartModal","validateDatesProduct","products","initSelection","home","dispatchLoadDatas","then","filtredProducts","forEach","availablePackages","filter","pa","indexOf","accessories","picture","apiUrl","hash","product","applyPromotion","datediff","rentPrice","rentPrices","find","round","price","getPromotionPct","accessory","age","freeUnderAge","undefined","confirm","package","firstName","lastName","weight","height","bootSize","productAccessories","modal","window","bootstrap","Modal","getOrCreateInstance","$refs","rentModal","show","confirmDatesModal","map","accessoryId","quantity","size","hasSize","order","commitSetAddProduct","currentOrder","globalPromotion","globalPromotionId","commitSetCurrentOrder","toaster","dispatchToast","inPackage","unavailabilityDates","unavailabilityProductOnly","d","pack","additionalProductIds","push","selectedAccessories","today","Date","seasons","getMonth","getDate","productType","sort","b","active","$root","$i18n","locale","component","ready","addDays","checkPromotion","init","nextSunday","lastSeason","$nextTick","promotionCodeId","promotions","maxPromo","Math","max","now","getFullYear","setDate","getDay","date","result","first","second","getTime","Monoskis","ChildrenSkis","ChildrenSnowboards","components","CustomDatePicker","RentProducts","title","htmlAttrs","lang","meta","content"],"mappings":"mHAAA,W,yFCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,+BAA+B,CAACF,EAAG,MAAM,CAACE,YAAY,kDAAkD,CAACF,EAAG,MAAM,CAACE,YAAY,0BAA0B,CAACF,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,KAAK,CAACE,YAAY,iBAAiB,CAACN,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIS,GAAG,mBAAmB,IAAIT,EAAIQ,GAAGR,EAAIS,GAAG,gBAAkBT,EAAIU,mBAAmBN,EAAG,MAAM,CAACE,YAAY,YAAY,CAACF,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,mBAAmB,CAACO,MAAM,CAACC,MAAOZ,EAAa,UAAEa,SAAS,SAAUC,GAAMd,EAAIe,UAAUD,GAAKE,WAAW,cAAc,CAACZ,EAAG,QAAQ,CAACE,YAAY,6CAA6C,CAACN,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIS,GAAG,8BAA8B,KAAKL,EAAG,MAAM,CAACE,YAAY,YAAY,CAACF,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,mBAAmB,CAACO,MAAM,CAACC,MAAOZ,EAAW,QAAEa,SAAS,SAAUC,GAAMd,EAAIiB,QAAQH,GAAKE,WAAW,YAAY,CAACZ,EAAG,QAAQ,CAACE,YAAY,6CAA6C,CAACN,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIS,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2I,GAASvF,EAAElD,SAAWyI,GAAUvF,EAAEpD,WAAa2I,GAAO/G,OAGxG,cACE,OAAO+C,EAAA,KAAKkE,QAAQ5D,OAAO7B,GAAKA,EAAE+F,UAzHpC,gBADC,kB,gCAOD,gBADC,eAAM,c,qCASP,gBADC,eAAM,Y,mCAMP,gBADC,eAAM,c,qCAzBY,EAAe,gBApCnC,eAAU,CACT6B,WAAY,CACVC,mBAAA,KACAC,aAAA,GAEF,WACE,MAAO,CACLC,MAAO,GAAGjM,KAAKQ,GAAG,kBAAoB,OAAaR,KAAyBS,YAC5EyL,UAAW,CACTC,KAAMnM,KAAKkK,MAAMC,MAAMC,QAEzBgC,KAAM,CACJ,CACEvJ,KAAM,cACNwJ,QAAS,GAAGrM,KAAKQ,GAAG,kCAAmC,CAAEsJ,YAAa9J,KAAKQ,GAAG,gBAAmBR,KAAyBS,cAE5H,CACEoC,KAAM,WACNwJ,QAAS,GAAGrM,KAAKQ,GAAG,kBAAoB,OAAaR,KAAyBS,aAEhF,CACEoC,KAAM,iBACNwJ,QAAS,GAAGrM,KAAKQ,GAAG,kCAAmC,CAAEsJ,YAAa9J,KAAKQ,GAAG,gBAAmBR,KAAyBS,cAE5H,CACEoC,KAAM,gBACNwJ,QAAS,GAAGrM,KAAKQ,GAAG,kBAAoB,OAAaR,KAAyBS,aAEhF,CACEoC,KAAM,sBACNwJ,QAAS,GAAGrM,KAAKQ,GAAG,kCAAmC,CAAEsJ,YAAa9J,KAAKQ,GAAG,gBAAmBR,KAAyBS,oBAM/G,WC/FuV,ICQxW,G,UAAY,eACd,EACAX,EACA8B,GACA,EACA,KACA,WACA,OAIa,e,2CCnBf","file":"js/RentProductType.b1b6f370.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RentProductType.vue?vue&type=style&index=0&id=4112d04a&scoped=true&lang=less&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"home\"},[_c('div',{staticClass:\"navbar-dark bg-dark bg-wave\"},[_c('div',{staticClass:\"container content-space-1 content-space-b-lg-3\"},[_c('div',{staticClass:\"row align-items-center\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"d-none d-lg-block\"},[_c('h1',{staticClass:\"h2 text-white\"},[_vm._v(_vm._s(_vm.$t('view.rent.rent'))+\" \"+_vm._s(_vm.$t('productTypes.' + _vm.productId)))])])]),_c('div',{staticClass:\"col-md-3\"},[_c('div',{staticClass:\"form-group\"},[_c('CustomDatePicker',{model:{value:(_vm.startDate),callback:function ($$v) {_vm.startDate=$$v},expression:\"startDate\"}},[_c('label',{staticClass:\"text-light d-flex align-items-center me-3\"},[_vm._v(_vm._s(_vm.$t('view.rent.startDate')))])])],1)]),_c('div',{staticClass:\"col-md-3\"},[_c('div',{staticClass:\"form-group\"},[_c('CustomDatePicker',{model:{value:(_vm.endDate),callback:function ($$v) {_vm.endDate=$$v},expression:\"endDate\"}},[_c('label',{staticClass:\"text-light d-flex align-items-center me-3\"},[_vm._v(_vm._s(_vm.$t('view.rent.endDate')))])])],1)])])])]),(_vm.ready)?_c('div',{staticClass:\"container content-space-1 content-space-t-lg-0 content-space-b-lg-2 mt-lg-n10\"},[(!_vm.invalidDates && !_vm.singleDay && !_vm.outOfSeason && !_vm.closed && _vm.promotion)?_c('div',{staticClass:\"alert alert-secondary p-4\"},[_c('h3',{staticClass:\"mb-0 text-light d-block d-sm-flex flex-row justify-content-between\"},[_c('div',{staticClass:\"d-flex flex-column\"},[_c('div',[_vm._v(\" \"+_vm._s(_vm.$t('view.rent.promotion'))+\": \"+_vm._s(_vm.promotion['label' + _vm.langSuffix])+\" \")]),(_vm.promotion.minRentDays > 0)?_c('div',{staticClass:\"opacity-75 min-days\"},[_vm._v(\" \"+_vm._s(_vm.$t('view.rent.promotionMinDays', {days: _vm.promotion.minRentDays}))+\" \")]):_vm._e()]),_c('div',{staticClass:\"d-flex align-items-center mt-2 mt-sm-0\"},[_vm._v(\" -\"+_vm._s(_vm.promotion.promotion)+\"% \")])])]):_vm._e(),_c('RentProducts',{attrs:{\"start-date\":_vm.startDate,\"end-date\":_vm.endDate,\"product-type\":_vm.productId,\"promotion\":_vm.promotion,\"max-rent-days\":_vm.maxRentDays}})],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.closed)?_c('div',{staticClass:\"alert alert-danger mt-3 pt-3\"},[_c('h4',{staticClass:\"text-white\"},[_vm._v(_vm._s(_vm.$t('view.rent.closedSeasonError')))]),_c('p',[_vm._v(_vm._s(_vm.$t('view.rent.closedSeasonErrorMsg')))])]):_vm._e(),(!_vm.closed && _vm.invalidDates)?_c('div',{staticClass:\"alert alert-danger mt-3 pt-3\"},[_c('h4',{staticClass:\"text-white\"},[_vm._v(_vm._s(_vm.$t('view.rent.dateError')))]),_c('p',[_vm._v(_vm._s(_vm.$t('view.rent.dateErrorMsg', { days: _vm.maxRentDays })))])]):_vm._e(),(!_vm.closed && !_vm.invalidDates && _vm.outOfSeason)?_c('div',{staticClass:\"alert alert-danger mt-3 pt-3\"},[_c('h4',{staticClass:\"text-white\"},[_vm._v(_vm._s(_vm.$t('view.rent.outOfSeasonsError')))]),_c('p',[_vm._v(_vm._s(_vm.$t('view.rent.outOfSeasonsErrorMsg')))])]):_vm._e(),(!_vm.closed && _vm.singleDay)?_c('div',{staticClass:\"alert alert-info mt-3 pt-3\"},[_c('h4',{staticClass:\"text-white\"},[_vm._v(_vm._s(_vm.$t('view.rent.singleDayError')))]),_c('p',[_vm._v(_vm._s(_vm.$t('view.rent.singleDayErrorMsg')))])]):_vm._e(),(!_vm.invalidDates && !_vm.singleDay && !_vm.outOfSeason && !_vm.closed)?_c('div',_vm._l((_vm.filtredProducts),function(p){return _c('div',{key:'rent-product-' + p.id,staticClass:\"card mb-5\",class:{'unavailable': _vm.isUnavailable(p)}},[_c('div',{staticClass:\"row no-gutters\"},[_c('div',{staticClass:\"col-md-4 position-relative\"},[_c('Slider',{staticStyle:{\"min-width\":\"100%!important\",\"height\":\"calc(100% - 16px)\",\"min-height\":\"160px\"},attrs:{\"autoplay\":false},model:{value:(p.shownPicture),callback:function ($$v) {_vm.$set(p, \"shownPicture\", $$v)},expression:\"p.shownPicture\"}},_vm._l((p.pictures),function(pi,i){return _c('SliderItem',{key:'p-' + p.id + '-img-' + i},[_c('div',{staticClass:\"justify-content-center align-items-center d-flex h-100 w-100\"},[_c('img',{staticClass:\"img-fluid px-5\",class:{'h-50': p.type == 5},attrs:{\"src\":_vm.getPictureUrl(pi),\"alt\":\"Ski preview\"}})])])}),1),_c('small',{staticClass:\"bottom-0 mb-2 ms-3 position-absolute\"},[_c('i',[_vm._v(_vm._s(_vm.$t('view.rent.disclaimer')))])])],1),_c('div',{staticClass:\"col-md-4\"},[_c('div',{staticClass:\"card-body\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(p['label' + _vm.langSuffix]))]),_c('p',{staticClass:\"card-text\"},[_vm._v(_vm._s(p['description' + _vm.langSuffix]))])])]),_c('div',{staticClass:\"col-md-4\"},[(p.packages && p.packages.length)?_c('div',{staticClass:\"p-3 ps-md-0 text-end\"},[_c('div',{staticClass:\"border form-check mb-3 pack\",class:{'selected border-primary': p.selectedPackage == -1, 'border-light': p.selectedPackage != -1}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(p.selectedPackage),expression:\"p.selectedPackage\"}],staticClass:\"form-check-input\",attrs:{\"type\":\"radio\",\"id\":p.id + 'pack--1',\"disabled\":_vm.isUnavailable(p),\"name\":'packs' + p.id},domProps:{\"value\":-1,\"checked\":_vm._q(p.selectedPackage,-1)},on:{\"change\":function($event){return _vm.$set(p, \"selectedPackage\", -1)}}}),_c('label',{staticClass:\"align-items-center d-flex flex-row form-check-label justify-content-end\",attrs:{\"for\":p.id + 'pack--1'}},[_c('span',[_vm._v(_vm._s(_vm.$t('productTypesOnly.' + p.type))+\" \")]),(_vm.promotion && _vm.promotionApplying)?_c('span',{staticClass:\"price text-muted\"},[_c('del',[_vm._v(_vm._s(_vm.getPrice(p, false))+\" €\")])]):_vm._e(),_c('span',{staticClass:\"price\"},[_vm._v(_vm._s(_vm.getPrice(p))+\" €\")])])]),_vm._l((p.packages),function(pp,i){return _c('div',{key:'p-' + p.id + '-p-' + i,staticClass:\"border form-check mb-3 pack\",class:{'selected border-primary': p.selectedPackage === i, 'border-light': p.selectedPackage !== i, 'unavailable': _vm.isUnavailablePackage(p, pp)}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(p.selectedPackage),expression:\"p.selectedPackage\"}],staticClass:\"form-check-input\",attrs:{\"type\":\"radio\",\"id\":p.id + 'pack-' + i,\"disabled\":_vm.isUnavailablePackage(p, pp),\"name\":'packs' + p.id},domProps:{\"value\":i,\"checked\":_vm._q(p.selectedPackage,i)},on:{\"change\":function($event){return _vm.$set(p, \"selectedPackage\", i)}}}),_c('label',{staticClass:\"align-items-center d-flex flex-row form-check-label justify-content-end\",attrs:{\"for\":p.id + 'pack-' + i}},[_c('span',[_vm._v(_vm._s(pp['label' + _vm.langSuffix])+\" \")]),(_vm.promotion && _vm.promotionApplying && !_vm.isUnavailablePackage(p, pp))?_c('span',{staticClass:\"price text-muted\"},[_c('del',[_vm._v(_vm._s(_vm.getPrice(pp, false))+\" €\")])]):_vm._e(),(!_vm.isUnavailablePackage(p, pp))?_c('span',{staticClass:\"price\"},[_vm._v(_vm._s(_vm.getPrice(pp))+\" €\")]):_c('span',{staticClass:\"price\"},[_vm._v(_vm._s(_vm.$t('view.rent.unavailable')))])])])}),_c('button',{staticClass:\"btn btn-primary btn-transition rounded-pill\",attrs:{\"disabled\":_vm.isSelectionUnavailable(p)},on:{\"click\":function($event){return _vm.showCartModal(p)}}},[_vm._v(_vm._s(_vm.$t('view.rent.addToCart')))])],2):_c('div',{staticClass:\"p-3 ps-md-0 text-end\"},[_c('div',{staticClass:\"mb-3 pack only-pack\"},[_c('label',{staticClass:\"align-items-center d-flex flex-row justify-content-end\"},[(_vm.promotion && _vm.promotionApplying)?_c('span',{staticClass:\"price text-muted\"},[_c('del',[_vm._v(_vm._s(_vm.getPrice(p, false))+\" €\")])]):_vm._e(),_c('span',{staticClass:\"price\"},[_vm._v(_vm._s(_vm.getPrice(p))+\" €\")])])]),_c('button',{staticClass:\"btn btn-primary btn-transition rounded-pill\",attrs:{\"disabled\":_vm.isUnavailable(p)},on:{\"click\":function($event){return _vm.showCartModal(p)}}},[_vm._v(_vm._s(_vm.isUnavailable(p) ? _vm.$t('view.rent.unavailable') : _vm.$t('view.rent.addToCart')))])])])])])}),0):_vm._e(),_c('div',{ref:\"rentModal\",staticClass:\"modal fade\",attrs:{\"id\":\"rentModal\",\"data-bs-backdrop\":\"static\",\"tabindex\":\"-1\",\"role\":\"dialog\",\"aria-hidden\":\"true\"}},[_c('div',{staticClass:\"modal-dialog modal-dialog-scrollable modal-dialog-centered\",attrs:{\"role\":\"document\"}},[_c('div',{staticClass:\"modal-content\"},[_c('div',{staticClass:\"modal-header\"},[_c('h5',{staticClass:\"modal-title\"},[_vm._v(_vm._s(_vm.$t('view.rent.userEquipment')))])]),(_vm.currentSelection && _vm.currentSelection.id)?_c('div',{staticClass:\"modal-body\"},[_c('div',{staticClass:\"alert border border-2 border-primary mb-5\"},[_c('h4',[_vm._v(_vm._s(_vm.$t('view.rent.currentSelection')))]),_c('div',{staticClass:\"row\"},[(_vm.currentSelection.pictures && _vm.currentSelection.pictures.length)?_c('div',{staticClass:\"col-md-4\"},[_c('div',{staticClass:\"align-items-center d-flex h-100\"},[_c('img',{staticClass:\"img-fluid\",attrs:{\"src\":_vm.getPictureUrl(_vm.currentSelection.pictures[0]),\"alt\":\"Ski preview\"}})])]):_vm._e(),_c('div',{staticClass:\"col-md-8\"},[_c('h5',[_vm._v(_vm._s(_vm.currentSelection['label' + _vm.langSuffix]))]),(_vm.currentSelection.selectedPackage !== -1)?_c('div',[_c('label',[_vm._v(_vm._s(_vm.currentSelection.packages[_vm.currentSelection.selectedPackage]['label' + _vm.langSuffix])+\" \")]),(_vm.promotion && _vm.promotionApplying)?_c('span',{staticClass:\"price text-muted\"},[_c('del',[_vm._v(_vm._s(_vm.getPrice(_vm.currentSelection.packages[_vm.currentSelection.selectedPackage], false))+\" €\")])]):_vm._e(),_c('span',{staticClass:\"price\"},[_vm._v(_vm._s(_vm.getPrice(_vm.currentSelection.packages[_vm.currentSelection.selectedPackage]))+\" €\")])]):_c('div',[_c('label',[_vm._v(_vm._s(_vm.$t('productTypesOnly.' + _vm.currentSelection.type))+\" \")]),(_vm.promotion)?_c('span',{staticClass:\"price text-muted\"},[_c('del',[_vm._v(_vm._s(_vm.getPrice(_vm.currentSelection, false))+\" €\")])]):_vm._e(),_c('span',{staticClass:\"price\"},[_vm._v(_vm._s(_vm.getPrice(_vm.currentSelection))+\" €\")])])])])]),_c('h4',[_vm._v(_vm._s(_vm.$t('view.rent.userEquipmentDetails')))]),_c('div',{staticClass:\"row mb-2\"},[_c('div',{staticClass:\"col-md-6\"},[_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"form-label\"},[_vm._v(_vm._s(_vm.$t('view.rent.firstName')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.currentOrderProduct.firstName),expression:\"currentOrderProduct.firstName\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.currentOrderProduct.firstName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.currentOrderProduct, \"firstName\", $event.target.value)}}})])]),_c('div',{staticClass:\"col-md-6\"},[_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"form-label\"},[_vm._v(_vm._s(_vm.$t('view.rent.lastName')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.currentOrderProduct.lastName),expression:\"currentOrderProduct.lastName\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.currentOrderProduct.lastName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.currentOrderProduct, \"lastName\", $event.target.value)}}})])])]),_c('div',{staticClass:\"row mb-2\"},[_c('div',{staticClass:\"col-md-6\"},[_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"form-label\"},[_vm._v(_vm._s(_vm.$t('view.rent.gender')))]),_c('div',{staticClass:\"align-items-center d-flex\",staticStyle:{\"height\":\"46px\"}},[_c('div',{staticClass:\"form-check form-check-inline\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.currentOrderProduct.gender),expression:\"currentOrderProduct.gender\"}],staticClass:\"form-check-input indeterminate-checkbox\",attrs:{\"type\":\"radio\",\"id\":\"genderM\",\"name\":\"gender\",\"value\":\"M\"},domProps:{\"checked\":_vm._q(_vm.currentOrderProduct.gender,\"M\")},on:{\"change\":function($event){return _vm.$set(_vm.currentOrderProduct, \"gender\", \"M\")}}}),_c('label',{staticClass:\"form-check-label\",attrs:{\"for\":\"genderM\"}},[_vm._v(_vm._s(_vm.$t('view.rent.genderM')))])]),_c('div',{staticClass:\"form-check form-check-inline\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.currentOrderProduct.gender),expression:\"currentOrderProduct.gender\"}],staticClass:\"form-check-input indeterminate-checkbox\",attrs:{\"type\":\"radio\",\"id\":\"genderF\",\"name\":\"gender\",\"value\":\"F\"},domProps:{\"checked\":_vm._q(_vm.currentOrderProduct.gender,\"F\")},on:{\"change\":function($event){return _vm.$set(_vm.currentOrderProduct, \"gender\", \"F\")}}}),_c('label',{staticClass:\"form-check-label\",attrs:{\"for\":\"genderF\"}},[_vm._v(_vm._s(_vm.$t('view.rent.genderF')))])])])])]),_c('div',{staticClass:\"col-md-6\"},[_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"form-label\"},[_vm._v(_vm._s(_vm.$t('view.rent.age')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.currentOrderProduct.age),expression:\"currentOrderProduct.age\"}],staticClass:\"form-control\",attrs:{\"type\":\"number\"},domProps:{\"value\":(_vm.currentOrderProduct.age)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.currentOrderProduct, \"age\", $event.target.value)}}})])])]),_c('div',{staticClass:\"row mb-2\"},[_c('div',{staticClass:\"col-md-6\"},[_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"form-label\"},[_vm._v(_vm._s(_vm.$t('view.rent.weight')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.currentOrderProduct.weight),expression:\"currentOrderProduct.weight\"}],staticClass:\"form-control\",attrs:{\"type\":\"number\"},domProps:{\"value\":(_vm.currentOrderProduct.weight)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.currentOrderProduct, \"weight\", $event.target.value)}}})])]),_c('div',{staticClass:\"col-md-6\"},[_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"form-label\"},[_vm._v(_vm._s(_vm.$t('view.rent.height')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.currentOrderProduct.height),expression:\"currentOrderProduct.height\"}],staticClass:\"form-control\",attrs:{\"type\":\"number\"},domProps:{\"value\":(_vm.currentOrderProduct.height)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.currentOrderProduct, \"height\", $event.target.value)}}})])])]),_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-md-6\"},[_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"form-label\"},[_vm._v(_vm._s(_vm.$t('view.rent.bootSize')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.currentOrderProduct.bootSize),expression:\"currentOrderProduct.bootSize\"}],staticClass:\"form-control\",attrs:{\"type\":\"number\"},domProps:{\"value\":(_vm.currentOrderProduct.bootSize)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.currentOrderProduct, \"bootSize\", $event.target.value)}}})])])]),_c('h4',[_vm._v(_vm._s(_vm.$t('view.rent.accessories')))]),_c('div',{staticClass:\"list-group\"},_vm._l((_vm.accessories),function(a){return _c('div',{key:'accessory-' + a.id,staticClass:\"list-group-item\"},[_c('h6',{staticClass:\"mb-3\"},[_vm._v(\" \"+_vm._s(a['label' + _vm.langSuffix])+\" \"),_c('span',{staticClass:\"float-end\"},[_vm._v(_vm._s(_vm.getAccessoryPrice(a))+\" €\")])]),_c('div',{staticClass:\"d-flex\"},[_c('div',{staticClass:\"flex-shrink-0\"},[_c('img',{staticClass:\"avatar avatar4x3 me-3\",attrs:{\"src\":_vm.getPictureUrl(a.pictures[0]),\"alt\":\"Accessory preview\"}})]),(a.hasSize)?_c('div',{staticClass:\"flex-grow-1\"},[_c('div',{staticClass:\"small mb-1\"},[_vm._v(_vm._s(_vm.$t('view.rent.size')))]),_c('div',_vm._l((a.sizes),function(s){return _c('div',{key:'accessory-' + a.id + '-size' + s,staticClass:\"d-inline-block me-2\"},[_c('span',{staticClass:\"form-check\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(a.selectedSize),expression:\"a.selectedSize\"}],staticClass:\"form-check-input\",attrs:{\"type\":\"radio\",\"name\":'accessory-' + a.id + '-sizeselect'},domProps:{\"value\":s,\"checked\":_vm._q(a.selectedSize,s)},on:{\"change\":function($event){return _vm.$set(a, \"selectedSize\", s)}}}),_c('span',{staticClass:\"form-check-label\"},[_vm._v(_vm._s(s))])])])}),0)]):_c('div',{staticClass:\"flex-grow-1\"}),_c('div',{staticClass:\"align-items-center d-flex flex-shrink-0\"},[_c('div',{staticClass:\"form-check\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(a.selected),expression:\"a.selected\"}],staticClass:\"form-check-input\",attrs:{\"type\":\"checkbox\",\"id\":'size-' + a.id,\"name\":'size-' + a.id},domProps:{\"checked\":Array.isArray(a.selected)?_vm._i(a.selected,null)>-1:(a.selected)},on:{\"change\":function($event){var $$a=a.selected,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(a, \"selected\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(a, \"selected\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(a, \"selected\", $$c)}}}})])])])])}),0)]):_vm._e(),_c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"btn btn-white\",attrs:{\"type\":\"button\",\"data-bs-dismiss\":\"modal\"},on:{\"click\":function($event){return _vm.cancelCartModal()}}},[_vm._v(_vm._s(_vm.$t('view.rent.cancel')))]),_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\",\"data-bs-dismiss\":\"modal\",\"disabled\":!_vm.canAddToCart},on:{\"click\":function($event){return _vm.addToCart()}}},[_vm._v(_vm._s(_vm.$t('view.rent.confirm')))])])])])]),_c('div',{ref:\"confirmDatesModal\",staticClass:\"modal fade\",attrs:{\"id\":\"confirmDatesModal\",\"data-bs-backdrop\":\"static\",\"tabindex\":\"-1\",\"role\":\"dialog\",\"aria-hidden\":\"true\"}},[_c('div',{staticClass:\"modal-dialog modal-dialog-scrollable modal-dialog-centered\",attrs:{\"role\":\"document\"}},[_c('div',{staticClass:\"modal-content\"},[_c('div',{staticClass:\"modal-header\"},[_c('h5',{staticClass:\"modal-title\"},[_vm._v(_vm._s(_vm.$t('view.rent.dateConfirmation')))])]),_c('div',{staticClass:\"modal-body\"},[_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.$t('view.rent.dateConfirmationMsg', { startDate: _vm.$options.filters.shortDate(_vm.startDate), endDate: _vm.$options.filters.shortDate(_vm.endDate) }))}})]),_c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"btn btn-white\",attrs:{\"type\":\"button\",\"data-bs-dismiss\":\"modal\"},on:{\"click\":function($event){return _vm.cancelShowCartModal()}}},[_vm._v(_vm._s(_vm.$t('view.rent.cancel')))]),_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\",\"data-bs-dismiss\":\"modal\"},on:{\"click\":function($event){return _vm.showCartModal(_vm.validateDatesProduct, true)}}},[_vm._v(_vm._s(_vm.$t('view.rent.confirm')))])])])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport home from '@/store/home';\r\nimport order from '@/store/order';\r\nimport { Accessory, GlobalPromotion, OrderProduct, Package, Picture, Product, ProductType, Season } from '@/models/model';\r\nimport Api from '@/api/api';\r\nimport PriceCalculator from '@/helper/priceCalculator';\r\nimport toaster, { ToastImpl } from '@/store/toaster';\r\n\r\n@Component\r\nexport default class RentProducts extends Vue {\r\n\r\n @Prop()\r\n startDate!: Date;\r\n\r\n @Prop()\r\n endDate!: Date;\r\n\r\n @Prop()\r\n productType!: ProductType;\r\n\r\n @Prop()\r\n promotion!: GlobalPromotion;\r\n\r\n @Prop()\r\n maxRentDays!: number;\r\n\r\n private currentSelection: Product | undefined = ({} as any);\r\n private currentOrderProduct: OrderProduct | undefined = ({} as any);\r\n private validateDatesProduct: Product | undefined = ({} as any);\r\n\r\n mounted(): void {\r\n if (!this.products || this.products.length === 0) {\r\n home.dispatchLoadDatas().then(() => this.initSelection());\r\n } else {\r\n this.initSelection();\r\n }\r\n }\r\n\r\n initSelection(): void {\r\n this.filtredProducts.forEach(p => {\r\n const availablePackages = p.packages ? p.packages.filter(pa => !this.isUnavailablePackage(p, pa)) : [];\r\n p.selectedPackage = availablePackages.length > 0 ? p.packages.indexOf(availablePackages[0]) : -1;\r\n });\r\n this.accessories.forEach(a => {\r\n a.selected = false;\r\n a.selectedSize = 0;\r\n });\r\n }\r\n\r\n getPictureUrl(picture: Picture): string {\r\n return Api.apiUrl + 'v1/document/picture/' + picture.hash + '?fileName=' + picture.name;\r\n }\r\n\r\n getPrice(product: Product, applyPromotion = true): number {\r\n const days = PriceCalculator.datediff(this.startDate, this.endDate);\r\n const rentPrice = product.rentPrices.find(p => p.days == days);\r\n return rentPrice ? PriceCalculator.round(rentPrice.price * (this.promotionApplying && applyPromotion ? this.getPromotionPct() : 1)) : 0;\r\n }\r\n\r\n getAccessoryPrice(accessory: Accessory): number {\r\n const days = PriceCalculator.datediff(this.startDate, this.endDate);\r\n if (this.currentOrderProduct && this.currentOrderProduct!.age && accessory.freeUnderAge && this.currentOrderProduct!.age < accessory.freeUnderAge) {\r\n return 0;\r\n }\r\n const rentPrice = accessory.rentPrices.find(p => p.days == days);\r\n return rentPrice ? PriceCalculator.round(rentPrice.price) : 0;\r\n }\r\n\r\n getPromotionPct(): number {\r\n if (this.promotion) {\r\n return 1 - (this.promotion.promotion / 100);\r\n }\r\n return 1;\r\n }\r\n\r\n cancelCartModal(): void {\r\n this.currentSelection = undefined;\r\n this.currentOrderProduct = undefined;\r\n }\r\n\r\n cancelShowCartModal(): void {\r\n this.validateDatesProduct = ({} as any);\r\n }\r\n\r\n showCartModal(product: Product, confirm = false): void {\r\n if (this.isSelectionUnavailable(product)) {\r\n return;\r\n }\r\n\r\n if (!confirm) {\r\n this.validateDatesProduct = product;\r\n var confirmDatesModal = (window as any).bootstrap.Modal.getOrCreateInstance(this.$refs.confirmDatesModal);\r\n confirmDatesModal.show();\r\n return;\r\n }\r\n\r\n this.currentSelection = product;\r\n this.currentOrderProduct = ({\r\n productId: product.id,\r\n startDate: this.startDate,\r\n endDate: this.endDate,\r\n package: product.selectedPackage !== -1 ? product.packages[product.selectedPackage!] : undefined,\r\n product: {...product},\r\n gender: 'M',\r\n firstName: '',\r\n lastName: '',\r\n age: '',\r\n weight: '',\r\n height: '',\r\n bootSize: '',\r\n productAccessories: []\r\n } as any);\r\n this.accessories.forEach(a => {\r\n a.selected = false;\r\n a.selectedSize = 0;\r\n });\r\n\r\n var modal = (window as any).bootstrap.Modal.getOrCreateInstance(this.$refs.rentModal);\r\n modal.show();\r\n }\r\n\r\n addToCart(): void {\r\n const accessories = this.accessories.filter(a => a.selected);\r\n if (accessories.length) {\r\n this.currentOrderProduct!.productAccessories = accessories.map(a => { return { accessoryId: a.id, quantity: 1, size: a.hasSize ? a.selectedSize : 0 }; });\r\n }\r\n order.commitSetAddProduct(this.currentOrderProduct!);\r\n if (this.promotion && !order.currentOrder!.globalPromotion) {\r\n order.currentOrder!.globalPromotion = this.promotion;\r\n order.currentOrder!.globalPromotionId = this.promotion.id;\r\n order.commitSetCurrentOrder(order.currentOrder);\r\n }\r\n toaster.dispatchToast(new ToastImpl('success', `${this.$t('common.cart')}`, `${this.$t('common.cartAdded')}`));\r\n }\r\n\r\n public isUnavailable(product: Product, inPackage: boolean): boolean {\r\n return this.startDate && this.endDate &&\r\n product.unavailabilityDates &&\r\n (inPackage && product.unavailabilityProductOnly ? false : (\r\n product.unavailabilityDates.filter(d =>\r\n (d.startDate <= this.startDate && d.endDate >= this.endDate) ||\r\n (d.startDate >= this.startDate && d.startDate <= this.endDate) ||\r\n (d.endDate >= this.startDate && d.endDate <= this.endDate)).length > 0));\r\n }\r\n\r\n public isUnavailablePackage(product: Product, pack: Package): boolean {\r\n const products = this.products.filter(p => pack.additionalProductIds.indexOf(p.id) !== -1);\r\n products.push(product);\r\n return products.filter(p => this.isUnavailable(p, p != product)).length > 0;\r\n }\r\n\r\n public isSelectionUnavailable(product: Product): boolean {\r\n return this.isUnavailable(product, false) || (product.selectedPackage !== -1 && this.isUnavailablePackage(product, product.packages[product.selectedPackage!]));\r\n }\r\n\r\n get canAddToCart(): boolean {\r\n const selectedAccessories = this.accessories.filter(a => a.selected);\r\n return !!this.currentOrderProduct && !!this.currentOrderProduct.firstName && !!this.currentOrderProduct.lastName &&\r\n !!this.currentOrderProduct.gender && this.currentOrderProduct.age > 0 && this.currentOrderProduct.weight > 0 &&\r\n this.currentOrderProduct.height > 0 && this.currentOrderProduct.bootSize > 0 &&\r\n (!selectedAccessories.length || (selectedAccessories.filter(a => !a.hasSize || a.selectedSize).length === selectedAccessories.length));\r\n }\r\n\r\n get promotionApplying(): boolean {\r\n const days = PriceCalculator.datediff(this.startDate, this.endDate);\r\n return this.promotion && (this.promotion.minRentDays === 0 || days >= this.promotion.minRentDays);\r\n }\r\n\r\n get invalidDates(): boolean {\r\n const today = new Date();\r\n return !this.startDate || !this.endDate || today > this.startDate || this.endDate < this.startDate || PriceCalculator.datediff(this.startDate, this.endDate) > this.maxRentDays;\r\n }\r\n\r\n get outOfSeason(): boolean {\r\n return this.startDate && this.endDate && this.seasons.filter(s => s.startDate <= this.startDate && s.endDate >= this.endDate).length === 0;\r\n }\r\n\r\n get closed(): boolean {\r\n const today = new Date();\r\n return this.seasons.filter(s => (s.startDate <= today && s.endDate >= today) || s.startDate >= today).length === 0;\r\n }\r\n\r\n get singleDay(): boolean {\r\n return this.startDate && this.endDate && (this.startDate.getMonth() === this.endDate.getMonth() && this.startDate.getDate() === this.endDate.getDate());\r\n }\r\n\r\n get products(): Product[] {\r\n return home.products;\r\n }\r\n\r\n get filtredProducts(): Product[] {\r\n return this.products.filter(p => p.type == this.productType).sort((a, b) => a.rentPrices.find(p => p.days === 1)!.price > b.rentPrices.find(p => p.days === 1)!.price ? 1 : a.rentPrices.find(p => p.days === 1)!.price < b.rentPrices.find(p => p.days === 1)!.price ? -1 : 0);\r\n }\r\n\r\n get accessories(): Accessory[] {\r\n return home.accessories;\r\n }\r\n\r\n get seasons(): Season[] {\r\n return home.seasons.filter(s => s.active);\r\n }\r\n\r\n get langSuffix(): string {\r\n return this.$root.$i18n.locale === 'en' ? 'En' : '';\r\n }\r\n\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--13-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RentProducts.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--13-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RentProducts.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./RentProducts.vue?vue&type=template&id=7206ca99&scoped=true&\"\nimport script from \"./RentProducts.vue?vue&type=script&lang=ts&\"\nexport * from \"./RentProducts.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./RentProducts.vue?vue&type=style&index=0&id=7206ca99&scoped=true&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7206ca99\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\nimport CustomDatePicker from '@/components/Shared/CustomDatePicker.vue';\r\nimport RentProducts from '@/components/Rent/RentProducts.vue';\r\nimport { GlobalPromotion, ProductType, Season } from '@/models/model';\r\nimport home from '@/store/home';\r\nimport order from '@/store/order';\r\n\r\n@Component({\r\n components: {\r\n CustomDatePicker,\r\n RentProducts\r\n },\r\n metaInfo() {\r\n return {\r\n title: `${this.$t('navigation.rent' + ProductType[(this as RentProductType).productId])}`,\r\n htmlAttrs: {\r\n lang: this.$root.$i18n.locale\r\n },\r\n meta: [\r\n {\r\n name: 'description',\r\n content: `${this.$t('meta.rentProductTypeDescription', { productType: this.$t('productTypes.' + (this as RentProductType).productId) })}`\r\n },\r\n {\r\n name: 'og:title',\r\n content: `${this.$t('navigation.rent' + ProductType[(this as RentProductType).productId])}`\r\n },\r\n {\r\n name: 'og:description',\r\n content: `${this.$t('meta.rentProductTypeDescription', { productType: this.$t('productTypes.' + (this as RentProductType).productId) })}`\r\n },\r\n {\r\n name: 'twitter:title',\r\n content: `${this.$t('navigation.rent' + ProductType[(this as RentProductType).productId])}`\r\n },\r\n {\r\n name: 'twitter:description',\r\n content: `${this.$t('meta.rentProductTypeDescription', { productType: this.$t('productTypes.' + (this as RentProductType).productId) })}`\r\n }\r\n ]\r\n };\r\n }\r\n})\r\nexport default class RentProductType extends Vue {\r\n\r\n private startDate: Date = ('' as any);\r\n private endDate: Date = ('' as any);\r\n private promotion: GlobalPromotion | undefined = ('' as any);\r\n\r\n @Prop()\r\n productId!: number;\r\n\r\n // TODO: Save start & end date in localStorage\r\n public ready = false;\r\n\r\n @Watch('startDate')\r\n startDateChanged(): void {\r\n if (this.endDate < this.startDate) {\r\n this.endDate = this.addDays(this.startDate, 6);\r\n }\r\n this.checkPromotion();\r\n }\r\n\r\n @Watch('endDate')\r\n endDateChanged(): void {\r\n this.checkPromotion();\r\n }\r\n\r\n @Watch('productId')\r\n productIdChanged(): void {\r\n this.init();\r\n }\r\n\r\n mounted(): void {\r\n this.startDate = this.nextSunday();\r\n this.endDate = this.addDays(this.startDate, 6);\r\n\r\n if (this.outOfSeason && this.seasons.length > 0) {\r\n const lastSeason = this.seasons.sort((a, b) => a.startDate < b.endDate ? 1 : a.startDate > b.endDate ? -1 : 0)[0];\r\n if (lastSeason.startDate > new Date()) {\r\n this.startDate = this.addDays(lastSeason.startDate, 1);\r\n this.endDate = this.addDays(this.startDate, 6);\r\n }\r\n }\r\n\r\n this.init();\r\n }\r\n\r\n public init(): void {\r\n this.ready = false;\r\n this.$nextTick().then(() => {\r\n this.checkPromotion();\r\n this.ready = true;\r\n });\r\n }\r\n\r\n checkPromotion(): void {\r\n if (order.currentOrder && order.currentOrder.promotionCodeId) {\r\n return;\r\n }\r\n const promotions = this.promotions.filter(p => p.startDate <= this.startDate && p.endDate >= this.endDate);\r\n if (promotions.length) {\r\n let promotion = promotions[0];\r\n if (promotions.length > 1) {\r\n const maxPromo = Math.max(...promotions.map(p => p.promotion));\r\n promotion = promotions.find(p => p.promotion === maxPromo)!;\r\n }\r\n\r\n if (order.currentOrder && order.currentOrder.globalPromotionId && order.currentOrder.globalPromotionId !== promotion.id) {\r\n this.promotion = undefined;\r\n return;\r\n }\r\n this.promotion = promotion;\r\n } else {\r\n this.promotion = undefined;\r\n }\r\n }\r\n\r\n nextSunday(): Date {\r\n const d = new Date();\r\n let now = new Date(d.getFullYear(), d.getMonth(), d.getDate());\r\n now.setDate(now.getDate() + (7+(7-now.getDay())) % 7);\r\n\r\n if (now.getDate() === d.getDate()) {\r\n now = this.addDays(now, 1);\r\n }\r\n\r\n return now;\r\n }\r\n\r\n addDays(date: Date, days: number): Date {\r\n var result = new Date(date);\r\n result.setDate(result.getDate() + days);\r\n return result;\r\n }\r\n\r\n datediff(first: Date, second: Date): number {\r\n return Math.round((second.getTime() - first.getTime())/(1000*60*60*24));\r\n }\r\n\r\n get promotions(): GlobalPromotion[] {\r\n return home.promotions;\r\n }\r\n\r\n get langSuffix(): string {\r\n return this.$root.$i18n.locale === 'en' ? 'En' : '';\r\n }\r\n\r\n get maxRentDays(): number {\r\n return this.productId == ProductType.Monoskis || this.productId == ProductType.ChildrenSkis || this.productId == ProductType.ChildrenSnowboards ? 7 : 13;\r\n }\r\n\r\n get invalidDates(): boolean {\r\n const today = new Date();\r\n return !this.startDate || !this.endDate || today > this.startDate || this.endDate < this.startDate || this.datediff(this.startDate, this.endDate) > this.maxRentDays;\r\n }\r\n\r\n get singleDay(): boolean {\r\n return this.startDate && this.endDate && (this.startDate.getMonth() === this.endDate.getMonth() && this.startDate.getDate() === this.endDate.getDate());\r\n }\r\n\r\n get outOfSeason(): boolean {\r\n return this.startDate && this.endDate && this.seasons.filter(s => s.startDate <= this.startDate && s.endDate >= this.endDate).length === 0;\r\n }\r\n\r\n get closed(): boolean {\r\n const today = new Date();\r\n return this.seasons.filter(s => (s.startDate <= today && s.endDate >= today) || s.startDate >= today).length === 0;\r\n }\r\n\r\n get seasons(): Season[] {\r\n return home.seasons.filter(s => s.active);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--13-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RentProductType.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--13-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RentProductType.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./RentProductType.vue?vue&type=template&id=4112d04a&scoped=true&\"\nimport script from \"./RentProductType.vue?vue&type=script&lang=ts&\"\nexport * from \"./RentProductType.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./RentProductType.vue?vue&type=style&index=0&id=4112d04a&scoped=true&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4112d04a\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RentProducts.vue?vue&type=style&index=0&id=7206ca99&scoped=true&lang=less&\""],"sourceRoot":""}