(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{131:function(t,e,n){"use strict";n.d(e,"b",(function(){return Ce})),n.d(e,"a",(function(){return A}));var r={};n.r(r),n.d(r,"Banner",(function(){return _t})),n.d(r,"Breadcrumbs",(function(){return Ct})),n.d(r,"CartTabItem",(function(){return It})),n.d(r,"CrossSalonDialog",(function(){return kt})),n.d(r,"Employees",(function(){return St})),n.d(r,"EmployeesPerformingTreatment",(function(){return Ot})),n.d(r,"FixitDialog",(function(){return $t})),n.d(r,"Giftcard",(function(){return Tt})),n.d(r,"HomepageFooter",(function(){return Pt})),n.d(r,"LandingPageNews",(function(){return Rt})),n.d(r,"NewsSlider",(function(){return jt})),n.d(r,"RecEngineModule",(function(){return Et})),n.d(r,"TreatmentListItem",(function(){return At})),n.d(r,"ChooseSalonDialog",(function(){return Ut})),n.d(r,"RelatedTreatments",(function(){return Dt})),n.d(r,"SlideCards",(function(){return Lt})),n.d(r,"TreatmentCard",(function(){return Bt})),n.d(r,"TreatmentList",(function(){return Ft})),n.d(r,"TreatmentsFilter",(function(){return Nt}));n(16),n(10),n(9),n(20),n(12),n(21);var o=n(0),c=n(2),l=(n(17),n(24),n(4),n(33),n(13),n(27),n(5)),d=n(146),f=n(572),m=n(428),h=n.n(m),v=n(193),y=n.n(v),x=(n(43),n(50),n(429)),w=n(129),_=n(14);n(34);"scrollRestoration"in window.history&&(Object(_.u)("manual"),window.addEventListener("beforeunload",(function(){Object(_.u)("auto")})),window.addEventListener("load",(function(){Object(_.u)("manual")})));function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var k=function(){};l.default.use(x.a);var S={mode:"history",base:"/",linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:function(t,e,n){var r=!1,o=t!==e;n?r=n:o&&function(t){var e=Object(_.g)(t);if(1===e.length){var n=e[0].options;return!1!==(void 0===n?{}:n).scrollToTop}return e.some((function(t){var e=t.options;return e&&e.scrollToTop}))}(t)&&(r={x:0,y:0});var c=window.$nuxt;return(!o||t.path===e.path&&t.hash!==e.hash)&&c.$nextTick((function(){return c.$emit("triggerScroll")})),new Promise((function(e){c.$once("triggerScroll",(function(){if(t.hash){var n=t.hash;void 0!==window.CSS&&void 0!==window.CSS.escape&&(n="#"+window.CSS.escape(n.substr(1)));try{var o=document.querySelector(n);if(o){var c;r={selector:n};var l=Number(null===(c=getComputedStyle(o)["scroll-margin-top"])||void 0===c?void 0:c.replace("px",""));l&&(r.offset={y:l})}}catch(t){console.warn("Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).")}}e(r)}))}))},routes:[{path:"/about",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(22)]).then(n.bind(null,1216)))},name:"about"},{path:"/app",component:function(){return Object(_.m)(n.e(23).then(n.bind(null,1217)))},name:"app"},{path:"/behandlinger",component:function(){return Object(_.m)(Promise.all([n.e(4),n.e(44),n.e(1),n.e(25)]).then(n.bind(null,1218)))},name:"behandlinger"},{path:"/bonus",component:function(){return Object(_.m)(n.e(26).then(n.bind(null,1219)))},name:"bonus"},{path:"/cart",component:function(){return Object(_.m)(n.e(29).then(n.bind(null,1220)))},name:"cart"},{path:"/cookies",component:function(){return Object(_.m)(n.e(30).then(n.bind(null,1213)))},name:"cookies"},{path:"/giftcard",component:function(){return Object(_.m)(Promise.all([n.e(45),n.e(31)]).then(n.bind(null,1214)))},name:"giftcard"},{path:"/news",component:function(){return Object(_.m)(n.e(34).then(n.bind(null,1221)))},name:"news"},{path:"/receipt",component:function(){return Object(_.m)(Promise.all([n.e(2),n.e(40)]).then(n.bind(null,1222)))},name:"receipt"},{path:"/cart/components/AddToCart",component:function(){return Object(_.m)(Promise.resolve().then(n.bind(null,445)))},name:"cart-components-AddToCart"},{path:"/cart/components/AddToCartBtn",component:function(){return Object(_.m)(n.e(27).then(n.bind(null,1025)))},name:"cart-components-AddToCartBtn"},{path:"/cart/components/CartBundle",component:function(){return Object(_.m)(Promise.resolve().then(n.bind(null,591)))},name:"cart-components-CartBundle"},{path:"/cart/components/CartFavoriteIcon",component:function(){return Object(_.m)(Promise.resolve().then(n.bind(null,229)))},name:"cart-components-CartFavoriteIcon"},{path:"/cart/components/CartInfoIcon",component:function(){return Object(_.m)(n.e(28).then(n.bind(null,1044)))},name:"cart-components-CartInfoIcon"},{path:"/cart/components/CartList",component:function(){return Object(_.m)(Promise.resolve().then(n.bind(null,281)))},name:"cart-components-CartList"},{path:"/cart/components/CartProduct",component:function(){return Object(_.m)(Promise.resolve().then(n.bind(null,592)))},name:"cart-components-CartProduct"},{path:"/cart/components/CartTreatment",component:function(){return Object(_.m)(Promise.resolve().then(n.bind(null,593)))},name:"cart-components-CartTreatment"},{path:"/receipt/components/ReceiptBottom",component:function(){return Object(_.m)(n.e(35).then(n.bind(null,1107)))},name:"receipt-components-ReceiptBottom"},{path:"/receipt/components/ReceiptInfo",component:function(){return Object(_.m)(n.e(36).then(n.bind(null,1108)))},name:"receipt-components-ReceiptInfo"},{path:"/receipt/components/ReceiptPaymentMethod",component:function(){return Object(_.m)(n.e(37).then(n.bind(null,1109)))},name:"receipt-components-ReceiptPaymentMethod"},{path:"/receipt/components/ReceiptSiteInfo",component:function(){return Object(_.m)(n.e(38).then(n.bind(null,1110)))},name:"receipt-components-ReceiptSiteInfo"},{path:"/receipt/components/ReceiptSummary",component:function(){return Object(_.m)(n.e(39).then(n.bind(null,1042)))},name:"receipt-components-ReceiptSummary"},{path:"/receipt/components/TheReceipt",component:function(){return Object(_.m)(n.e(2).then(n.bind(null,1187)))},name:"receipt-components-TheReceipt"},{path:"/receipt/data/mock",component:function(){return Object(_.m)(Promise.resolve().then(n.bind(null,569)))},name:"receipt-data-mock"},{path:"/",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(46),n.e(32)]).then(n.bind(null,1223)))},name:"index"},{path:"/about/:id",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(21)]).then(n.bind(null,1215)))},name:"about-id"},{path:"/news/:id",component:function(){return Object(_.m)(n.e(33).then(n.bind(null,1224)))},name:"news-id"},{path:"/about/:id/:employee",component:function(){return Object(_.m)(Promise.all([n.e(43),n.e(20)]).then(n.bind(null,1225)))},name:"about-id-employee"},{path:"/behandlinger/:treatment/:id?",component:function(){return Object(_.m)(Promise.all([n.e(3),n.e(24)]).then(n.bind(null,1226)))},name:"behandlinger-treatment-id"}],fallback:!1};function O(t,e){var base=e._app&&e._app.basePath||S.base,n=new x.a(I(I({},S),{},{base:base})),r=n.push;n.push=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:k,n=arguments.length>2?arguments[2]:void 0;return r.call(this,t,e,n)};var o=n.resolve.bind(n);return n.resolve=function(t,e,n){return"string"==typeof t&&(t=Object(w.c)(t)),o(t,e,n)},n}var $={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(t,e){var n=e.parent,data=e.data,r=e.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,l=n.$nuxt.nuxt.transitions,d=n.$nuxt.nuxt.defaultTransition,f=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&f++,n=n.$parent;data.nuxtChildDepth=f;var m=l[f]||d,h={};T.forEach((function(t){void 0!==m[t]&&(h[t]=m[t])}));var v={};P.forEach((function(t){"function"==typeof m[t]&&(v[t]=m[t].bind(c))}));var y=v.beforeEnter;if(v.beforeEnter=function(t){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),y)return y.call(c,t)},!1===m.css){var x=v.leave;(!x||x.length<2)&&(v.leave=function(t,e){x&&x.call(c,t),c.$nextTick(e)})}var w=o("routerView",data);return r.keepAlive&&(w=o("keep-alive",{props:r.keepAliveProps},[w])),o("transition",{props:h,on:v},[w])}},T=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],P=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],R=n(980),j={name:"EmptyLayout",layout:"empty",props:{error:{type:Object,default:null}},data:function(){return{pageNotFound:"404 Not Found",otherError:"An error occurred"}},head:function(){return{title:404===this.error.statusCode?this.pageNotFound:this.otherError}}},E=(n(664),n(3)),A=Object(E.a)(j,(function(){var t=this,e=t._self._c;return e(R.a,{attrs:{dark:""}},[404===t.error.statusCode?e("h1",[t._v("\n    "+t._s(t.pageNotFound)+"\n  ")]):e("h1",[t._v("\n    "+t._s(t.otherError)+"\n  ")]),t._v(" "),e("NuxtLink",{attrs:{to:"/"}},[t._v("\n    Home page\n  ")])],1)}),[],!1,null,"56b88d1d",null).exports,U=n(42),D=(n(35),{name:"Nuxt",components:{NuxtChild:$,NuxtError:A},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(t){this.displayingNuxtError&&(this.errorFromNuxtError=t,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(_.c)(this.$route.matched[0].path)(this.$route.params);var t=Object(U.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var n=e.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){l.default.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){var e=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return e.errorFromNuxtError=!1})),t("div",{},[t("h2","An error occurred while showing the error page"),t("p","Unfortunately an error occurred and while showing the error page another error occurred"),t("p","Error details: ".concat(this.errorFromNuxtError.toString())),t("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return e.displayingNuxtError=!1})),t(A,{props:{error:this.nuxt.err}})):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}}),L=(n(47),n(59),n(49),n(69),n(53),{name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),clearTimeout(this._hide),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout((function(){return t.startTimer()}),this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),this._hide=setTimeout((function(){t.show=!1,t.$nextTick((function(){t.percent=0,t.reversed=!1}))}),500),this},fail:function(t){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval((function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100||t.percent<=0)&&(t.skipTimerCount=1,t.reversed=!t.reversed))}),100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}}),B=(n(666),Object(E.a)(L,undefined,undefined,!1,null,null,null).exports),F=n(403),N=n(982),M=n(981),H=n(401),G=n(402);n(15),n(26),n(46);var V=n(92),z=n(136),K=n.n(z),W=n(414),X=n(415),J=n(281),Q=n(431),Y=n(45),Z=n(412),tt=n(86),et=n(337),nt=n(32);function at(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ot(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?at(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var it={name:"HomepageLayout",head:function(){return{link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters["cmsConfigHomepage/getLogo"]}]}},components:{TheFixitNoHeader:Q.a,TheFixitNoSnackbar:Q.b,HomepageFooter:X.default,CartTabItem:W.default,CartList:J.default,FixitDialog:tt.default,RecEngineModule:function(){return Promise.resolve().then(n.bind(null,435))}},data:function(){return{atTop:!0,height:60,overrideOptionsBooking:{},snackbarState:new Y.b,primary:null,secondary:null,primaryText:null,secondaryText:null,showHeaderAndFooter:!1,addedDialog:!1,addedDialogType:nt.c.T,itemType:nt.c,location:nt.d,channel:nt.b}},computed:{salons:function(){var t=this,e=[];return this.siteIds.forEach((function(n){e.push(t.$store.getters["salon/getSalonById"](n))})),e},selectedSalon:function(){return this.$store.getters["cart/getSelectedSalon"]},preselectedEmployee:function(){return this.$store.getters["cart/getPreselectedEmployee"]},cartSalon:function(){return this.cart&&this.cart.siteId?this.$store.getters["salon/getSalonById"](this.cart.siteId):this.$store.getters["salon/getSalonById"](this.$store.getters["cart/getSelectedSalon"]||this.$store.getters["cart/getPreviousSelectedSalon"]||this.$store.getters["cart/getcart"])},cartCount:function(){return this.$store.getters["cart/getCartCount"]},cartType:function(){return this.cartTreatments.length&&(this.cartBundles.length||this.cartProducts.length)?nt.c.C:this.cartTreatments.length||!this.cartBundles.length&&!this.cartProducts.length?nt.c.T:nt.c.P},cart:function(){return this.$store.getters["cart/getCart"]},cartTreatmentIds:function(){return this.$store.getters["cart/getCartTreatments"].map((function(t){return t.urlSafe}))},cartTreatments:function(){return this.$store.getters["cart/getCartTreatments"]},cartProductAndBundleIds:function(){return this.$store.getters["cart/getCartProductAndBundleIds"]},cartProducts:function(){return this.$store.getters["cart/getCartProducts"]},cartBundles:function(){return this.$store.getters["cart/getCartBundles"]},siteIds:function(){return this.$store.getters["salon/getSiteIds"]},header:function(){var t=this,header=new Y.a({height:60,elevation:3,apiUrl:this.$config.FIXIT_CORE_API_URL,oauthUrl:this.$config.VUE_APP_OAUTH_URL,fixitNoUrl:this.$config.PORTAL_URL,useFixitOauthLogin:!0,items:[{Caption:"Artikler",Id:1,Link:"/news",OpenInNewWindow:!1,isInternal:!0,Visible:!0,Type:1,Dialog:!1,DialogVariable:!1},{Caption:"Behandlinger",Id:2,Link:"/behandlinger",OpenInNewWindow:!1,isInternal:!0,Visible:!0,Type:1,Dialog:!1,DialogVariable:!1},{Caption:"Gavekort",Id:3,Link:"/giftcard",OpenInNewWindow:!1,isInternal:!0,Visible:!0,Type:1,Dialog:!1,DialogVariable:!1},{Caption:"Nettbutikk",Id:4,Link:"",OpenInNewWindow:!1,isInternal:!1,Visible:!1,Type:1,Dialog:!1,DialogVariable:!1},{Caption:"Om oss",Id:6,Link:"/about",OpenInNewWindow:!1,isInternal:!0,Visible:!0,Type:1,Dialog:!1,DialogVariable:!1},{Caption:"Bestill time",Id:7,OpenInNewWindow:!0,isInternal:!1,Visible:!0,Type:2,Dialog:!1,DialogVariable:!1}].filter((function(e){return"Artikler"===e.Caption&&(e.Visible=t.$store.getters["cmsConfigHomepage/newsVisible"]&&t.$store.getters["news/getNews"].length),"Nettbutikk"===e.Caption&&(e.Visible=t.$store.getters["cmsConfigHomepage/getWebshopActiveStatus"],e.Link="/nettbutikk/".concat(t.$store.getters["cmsConfigHomepage/getChainId"])),"Gavekort"===e.Caption&&(e.Visible=t.$store.getters["cmsConfigHomepage/getGiftcardActiveStatus"]),e})),layout:"chain",atTop:!1,headerColors:[this.colorSecondary,this.colorSecondary],sites:this.salons,draftMode:this.$store.getters["cmsConfigHomepage/isDraftMode"]});return header},homepageLogo:function(){return this.$store.getters["cmsConfigHomepage/getLogo"]},menuItems:function(){return[{Caption:"Artikler",Id:1,Link:"/news",OpenInNewWindow:!1,isInternal:!0,Visible:!0,Type:1,Dialog:!1,DialogVariable:!1},{Caption:"Behandlinger",Id:2,Link:"/behandlinger",OpenInNewWindow:!1,isInternal:!0,Visible:!0,Type:1,Dialog:!1,DialogVariable:!1},{Caption:"Gavekort",Id:3,Link:"/giftcard",OpenInNewWindow:!1,isInternal:!0,Visible:!0,Type:1,Dialog:!1,DialogVariable:!1},{Caption:"Nettbutikk",Id:4,Link:"",OpenInNewWindow:!1,isInternal:!1,Visible:!1,Type:1,Dialog:!1,DialogVariable:!1},{Caption:"Om oss",Id:6,Link:"/about",OpenInNewWindow:!1,isInternal:!0,Visible:!0,Type:1,Dialog:!1,DialogVariable:!1},{Caption:"Bestill time",Id:7,OpenInNewWindow:!0,isInternal:!1,Visible:!0,Type:2,Dialog:!1,DialogVariable:!1}]},snackbar:function(){return this.snackbarState},user:function(){return new Y.c(this.$store.getters["app/get"]("user"))},colorPrimary:function(){return this.primary},colorSecondary:function(){return this.secondary},primaryTextColor:function(){return this.primaryText},secondaryTextColor:function(){return this.secondaryText},chainLogo:function(){return this.$store.getters["cmsConfigHomepage/getLogo"]},homepageId:function(){return this.$store.getters["cmsConfigHomepage/getHomepageId"]},isSingleSite:function(){return this.$store.getters["salon/getIsSingleSite"]}},mounted:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,r,o,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$route.query.clientUUid&&(localStorage.setItem("clientUUid",JSON.stringify(t.$route.query.clientUUid)),t.$router.replace({query:{}})),t.clearBookingStates(),t.showHeaderAndFooter=!window.location.pathname.includes("receipt")||window.location.pathname.includes("receipt")&&!window.location.host.includes("receipt.onlinetimebok.no")||!window.location.pathname.includes("app")||window.location.pathname.includes("app")&&!window.location.host.includes("app.onlinetimebok.no"),t.onScroll(),(n=t.$store.getters["cmsConfigHomepage/getTemplateSetting"])&&(c=null==n||null===(r=n.find((function(t){return t.settingType==V.c.FONT1})))||void 0===r?void 0:r.settingValue,l=null==n||null===(o=n.find((function(t){return t.settingType==V.c.FONT2})))||void 0===o?void 0:o.settingValue,t.createElement("primary-font","font-family",l),t.createElement("secondary-font","font-family",c)),t.$store.getters["cmsConfigHomepage/getCmsFound"]||window.location.host.includes("receipt.onlinetimebok.no")||window.open("".concat(t.$config.PORTAL_URL),"_self"),t.isSingleSite&&t.$store.commit("cart/setSelectedSalon",t.salons[0].siteId),e.next=8,t.getRecommendations();case 8:t.$nuxt.$on("openAddedToCartDialog",(function(e){t.addedDialog=!0,t.addedDialogType=e})),t.$nuxt.$on("closeAddedToCartDialog",(function(){t.addedDialog=!1}));case 10:case"end":return e.stop()}}),e)})))()},beforeDestroy:function(){this.$nuxt.$off("openAddedToCartDialog"),this.$nuxt.$off("closeAddedToCartDialog")},created:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=t.$store.getters["cmsConfigHomepage/getTemplateSetting"],t.primary=null==o||null===(n=o.find((function(t){return t.settingType==V.c.COLOR1})))||void 0===n?void 0:n.settingValue,t.secondary=null==o||null===(r=o.find((function(t){return t.settingType==V.c.COLOR2})))||void 0===r?void 0:r.settingValue,Object(Z.a)(t.primary,t.secondary),o&&(t.primaryText=t.GetReadableForeColorHex(t.primary),t.secondaryText=t.GetReadableForeColorHex(t.secondary)),"undefined"!=typeof window&&window.addEventListener("scroll",t.onScroll);case 6:case"end":return e.stop()}}),e)})))()},methods:ot(ot({toggleLoginDialog:function(){this.$refs.fixitNoHeader&&this.$refs.fixitNoHeader.openDialog()}},Object(z.mapWaitingActions)("app",{getCurrentUser:"loading initailize homepage getCurrentUser"})),{},{clearBookingStates:function(){localStorage.removeItem("checkoutStepAfterLogin"),localStorage.removeItem("appointmentRequest"),localStorage.removeItem("currentStep"),localStorage.removeItem("expires"),localStorage.removeItem("orderRequest"),localStorage.removeItem("selectedDate"),localStorage.removeItem("selectedEmployee"),localStorage.removeItem("selectedTimeslot")},navigationAction:function(nav){this.$nuxt.$router.path!==nav.Link&&this.$router.push(nav.Link)},recommendationIds:function(){return{treatmentIds:this.cartTreatments.length>0?this.cartTreatments.map((function(t){return t.urlSafe})):null,productIds:this.cartProductAndBundleIds.length>0?this.cartProductAndBundleIds:null}},getRecommendations:function(t){var e=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var r,o,c,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o={userId:null===(r=e.user.value)||void 0===r?void 0:r.onlineSluttKundeId,chainId:e.$store.getters["cmsConfigHomepage/getChainId"],siteIds:[nt.c.P].includes(e.cartType)?e.siteIds:e.cart&&e.cart.siteId?[e.cart.siteId]:e.selectedSalon&&0!==e.selectedSalon?[e.selectedSalon]:e.siteIds,itemType:nt.c.T,overrideText:e.cartSalon&&e.cartSalon.appointmentButtonOverrideText?e.cartSalon.appointmentButtonOverrideText:null,location:nt.d.HOME_PAGE,channel:nt.b.HomePage,quantity:4,cartItemsIds:e.recommendationIds().treatmentIds,urlBase:e.$config.VUE_APP_FRE_API_URL,employeeId:t||void 0},n.next=3,Object(et.a)();case 3:return c=n.sent,n.next=6,c.getRecommendationItems(o);case 6:(l=n.sent)&&Array.isArray(l)&&e.$store.commit("treatments/setRecEngineItems",l);case 8:case"end":return n.stop()}}),n)})))()},checkoutRedirect:function(){var t=this.$router.resolve({name:"redirect",path:"/checkout"});localStorage.setItem("expires",JSON.stringify(new Date((new Date).getTime()+6e5))),localStorage.setItem("currentStep",JSON.stringify(this.cartType===nt.c.P?0===this.user.onlineSluttKundeId?"cart":"delivery-method-selection":"time-and-employee-selection")),window.open(t.href,"_self")},GetReadableForeColorHex:function(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return((t=e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null).r+t.b+t.g)/3<128?"#FFFFFF":"#000000"},createElement:function(t,e,n){var style=document.createElement("style");document.head.appendChild(style),style.sheet.insertRule("."+t+"{"+e+":"+n+"!important}")},onScroll:function(){this.atTop=0===(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0)},setActiveUser:function(t){if(0!=t.onlineSluttKundeId?(this.$store.dispatch("employees/fetchFavoriteEmployees"),this.$store.dispatch("treatments/fetchFavoriteTreatments"),this.$store.dispatch("salon/fetchFavoriteSalons"),this.$store.dispatch("products/fetchFavoriteProducts")):(this.$store.commit("employees/setFavoriteEmployees",[]),this.$store.commit("treatments/setFavoriteTreatments",[]),this.$store.commit("salon/setFavoriteSalons",[]),this.$store.commit("products/setFavoriteProducts",[])),this.$store.commit("app/SET_USER",t),window){var e=JSON.parse(localStorage.getItem("clientUUid"));this.$store.commit("cart/setClientUUid",e||null)}this.$store.dispatch("cart/getCart")},setSnackbar:function(t){this.snackbarState=new Y.b(t)},closeSnackbar:function(t){this.snackbarState=new Y.b(t)},updateTreatments:function(){this.$store.dispatch("treatments/fetchFavoriteTreatments")},updateEmployees:function(){this.$store.dispatch("employees/fetchFavoriteEmployees")},updateProducts:function(){this.$store.dispatch("products/fetchFavoriteProducts")},goHome:function(){this.$router.replace("/")}}),watch:{$route:function(t,e){0!=Object.keys(e.query).length&&this.header.draftMode&&this.$router.push({query:ot(ot({},JSON.parse(JSON.stringify(t.query))),{},{homepageId:this.homepageId})})},user:function(t,e){t.onlineSluttKundeId!=e.onlineSluttKundeId&&0!=e.onlineSluttKundeId&&(this.$store.commit("cart/setCart",null),this.$store.commit("cart/setClientUUid",null),localStorage.removeItem("clientUUid"))},selectedSalon:function(t,e){var n=this;return Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||0===t||n.isSingleSite){e.next=5;break}return e.next=3,n.getRecommendations();case 3:return e.next=5,n.$store.dispatch("employees/getSiteEmployees",t);case 5:case"end":return e.stop()}}),e)})))()},preselectedEmployee:function(t,e){var n=this;return Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||!t.employeeId){e.next=5;break}return e.next=3,n.getRecommendations(t.employeeId);case 3:e.next=7;break;case 5:return e.next=7,n.getRecommendations();case 7:case"end":return e.stop()}}),e)})))()}}},st=(n(968),Object(E.a)(it,(function(){var t=this,e=t._self._c;return e(R.a,{attrs:{id:"appContainer"}},[t.showHeaderAndFooter?e("the-fixit-no-header",{ref:"fixitNoHeader",attrs:{"support-membership":!1,"header-props":t.header,"active-user":t.user,"use-axios":!0},on:{setUser:t.setActiveUser,"update-treatments":t.updateTreatments,"update-employees":t.updateEmployees,notify:t.setSnackbar},scopedSlots:t._u([{key:"logo",fn:function(){return[e("img",{staticClass:"header-logo",attrs:{src:t.homepageLogo,height:"100%",loading:"eager",id:"logo-button"},on:{click:function(e){return t.goHome()}}})]},proxy:!0},{key:"shopping-cart",fn:function(){return[e("CartTabItem")]},proxy:!0}],null,!1,33876812)}):t._e(),t._v(" "),e(H.a,{directives:[{name:"show",rawName:"v-show",value:t.$wait.is("loading initailize homepage fetchSalons")||t.$wait.is("loading initailize homepage fetchNewsBySiteIds")||t.$wait.is("loading initailize homepage fetchCategories")||t.$wait.is("loading initailize homepage getCurrentUser"),expression:"\n      $wait.is('loading initailize homepage fetchSalons') ||\n      $wait.is('loading initailize homepage fetchNewsBySiteIds') ||\n      $wait.is('loading initailize homepage fetchCategories') ||\n      $wait.is('loading initailize homepage getCurrentUser')\n    "}],attrs:{absolute:""}},[e("div",{staticClass:"d-flex flex-column"},[e("img",{staticStyle:{"object-fit":"contain"},attrs:{src:t.homepageLogo,height:"80",width:"150",loading:"eager"}}),t._v(" "),e(G.a,{attrs:{indeterminate:"",color:t.primary}})],1)]),t._v(" "),e(M.a,[e(N.a,{directives:[{name:"show",rawName:"v-show",value:!(t.$wait.is("loading initailize homepage fetchSalons")||t.$wait.is("loading initailize homepage fetchNewsBySiteIds")||t.$wait.is("loading initailize homepage fetchCategories")||t.$wait.is("loading initailize homepage getCurrentUser")),expression:"\n        !(\n          $wait.is('loading initailize homepage fetchSalons') ||\n          $wait.is('loading initailize homepage fetchNewsBySiteIds') ||\n          $wait.is('loading initailize homepage fetchCategories') ||\n          $wait.is('loading initailize homepage getCurrentUser')\n        )\n      "}],staticClass:"pa-0",attrs:{fluid:""}},[e("Nuxt")],1)],1),t._v(" "),t.showHeaderAndFooter?e("homepage-footer",{attrs:{user:t.user},on:{openDialog:function(e){return t.toggleLoginDialog()}}}):t._e(),t._v(" "),e("FixitDialog",{attrs:{"max-width":"770px",show:t.addedDialog,"fullscreen-on-mobile":"",title:"Supert! ".concat(t.addedDialogType===t.itemType.T?"Behandlingen":"Produktet"," er lagt til i handlevognen"),titleIcon:"fxt-cart"},on:{toggle:function(e){t.addedDialog=!1}}},[e("CartList",{attrs:{isAddedToCartDialog:!0}}),t._v(" "),e("div",{staticClass:"pa-4"},[e(F.a,{staticClass:"choose-btn",staticStyle:{color:"var(--v-primary-text-base)"},attrs:{block:"",rounded:""},on:{click:function(e){return t.checkoutRedirect()}}},[t._v("\n        "+t._s(t.addedDialogType===t.itemType.P?0===t.user.onlineSluttKundeId?"Kasse":"Velg varelevering":"Velg tid og ansatt")+"\n      ")]),t._v(" "),e(F.a,{staticClass:"read-more-btn",attrs:{rounded:"",block:"",outlined:"",color:"primary"},on:{click:function(e){t.addedDialog=!1}}},[t._v("\n        Utforsk mer\n      ")]),t._v(" "),t.cartCount>0?e("RecEngineModule",{key:t.cartType,attrs:{boxTitle:"Dette kan også passe til",wrapperClasses:"add-hidden cart-recommendation",presentation:"grid",siteIds:[t.itemType.P,t.itemType.C].includes(t.cartType)?t.siteIds:[t.cart.siteId],hideButton:!0,location:t.location.CART,itemQty:4,channel:t.channel.Nettbutik,itemType:t.cartType,treatmentIds:t.cartTreatmentIds}}):t._e()],1)],1),t._v(" "),t.showHeaderAndFooter?e("TheFixitNoSnackbar",{attrs:{snackbar:t.snackbar},on:{removeSnackbar:t.closeSnackbar}}):t._e()],1)}),[],!1,null,null,null)),ct=st.exports;installComponents(st,{CartTabItem:n(414).default,HomepageFooter:n(415).default,RecEngineModule:n(435).default,FixitDialog:n(86).default});var ut=Object(E.a)({},(function(){return(0,this._self._c)("Nuxt")}),[],!1,null,null,null).exports;function lt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return pt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function pt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var ft={_HomepageLayout:Object(_.s)(ct),_default:Object(_.s)(ut)},mt={render:function(t,e){var n=t("NuxtLoading",{ref:"loading"}),r=t(this.layout||"nuxt"),o=t("div",{domProps:{id:"__layout"},key:this.layoutName},[r]),c=t("transition",{props:{name:"layout",mode:"out-in"},on:{beforeEnter:function(t){window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")}))}}},[o]);return t("div",{domProps:{id:"__nuxt"}},[n,c])},data:function(){return{isOnline:!0,layout:null,layoutName:"",nbFetching:0}},beforeCreate:function(){l.default.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){this.$root.$options.$nuxt=this,window.$nuxt=this,this.refreshOnlineStatus(),window.addEventListener("online",this.refreshOnlineStatus),window.addEventListener("offline",this.refreshOnlineStatus),this.error=this.nuxt.error,this.context=this.$options.context},mounted:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$loading=t.$refs.loading;case 1:case"end":return e.stop()}}),e)})))()},watch:{"nuxt.err":"errorChanged"},computed:{isOffline:function(){return!this.isOnline},isFetching:function(){return this.nbFetching>0}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=Object(_.h)(t.$route)).length){e.next=3;break}return e.abrupt("return");case 3:return t.$loading.start(),r=n.map(function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(n){var p,r,o,component;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p=[],n.$options.fetch&&n.$options.fetch.length&&p.push(Object(_.q)(n.$options.fetch,t.context)),n.$options.asyncData&&p.push(Object(_.q)(n.$options.asyncData,t.context).then((function(t){for(var e in t)l.default.set(n.$data,e,t[e])}))),e.next=5,Promise.all(p);case 5:p=[],n.$fetch&&p.push(n.$fetch()),r=lt(Object(_.e)(n.$vnode.componentInstance));try{for(r.s();!(o=r.n()).done;)component=o.value,p.push(component.$fetch())}catch(t){r.e(t)}finally{r.f()}return e.abrupt("return",Promise.all(p));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.prev=5,e.next=8,Promise.all(r);case 8:e.next=15;break;case 10:e.prev=10,e.t0=e.catch(5),t.$loading.fail(e.t0),Object(_.k)(e.t0),t.error(e.t0);case 15:t.$loading.finish();case 16:case"end":return e.stop()}}),e,null,[[5,10]])})))()},errorChanged:function(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());var t=(A.options||A).layout;"function"==typeof t&&(t=t(this.context)),this.setLayout(t)}},setLayout:function(t){return t&&ft["_"+t]||(t="default"),this.layoutName=t,this.layout=ft["_"+t],this.layout},loadLayout:function(t){return t&&ft["_"+t]||(t="default"),Promise.resolve(ft["_"+t])}},components:{NuxtLoading:B}};l.default.use(d.a);var ht=["state","getters","actions","mutations"],gt={};(gt=function(t,e){if((t=t.default||t).commit)throw new Error("[nuxt] ".concat(e," should export a method that returns a Vuex instance."));return"function"!=typeof t&&(t=Object.assign({},t)),bt(t,e)}(n(970),"store/index.js")).modules=gt.modules||{},yt(n(424),"modules/app.js"),yt(n(418),"modules/cart.js"),yt(n(417),"modules/cmsConfigHomepage.js"),yt(n(349),"modules/employees.js"),yt(n(423),"modules/instagramImages.js"),yt(n(419),"modules/news.js"),yt(n(420),"modules/popularProducts.js"),yt(n(413),"modules/products.js"),yt(n(422),"modules/receipt.js"),yt(n(416),"modules/salon.js"),yt(n(421),"modules/treatments.js");var vt=gt instanceof Function?gt:function(){return new d.a.Store(Object.assign({strict:!1},gt))};function bt(t,e){if(t.state&&"function"!=typeof t.state){console.warn("'state' should be a method that returns an object in ".concat(e));var n=Object.assign({},t.state);t=Object.assign({},t,{state:function(){return n}})}return t}function yt(t,e){t=t.default||t;var n=e.replace(/\.(js|mjs)$/,"").split("/"),r=n[n.length-1],o="store/".concat(e);if(t="state"===r?function(t,e){if("function"!=typeof t){console.warn("".concat(e," should export a method that returns an object"));var n=Object.assign({},t);return function(){return n}}return bt(t,e)}(t,o):bt(t,o),ht.includes(r)){var c=r;wt(xt(gt,n,{isProperty:!0}),t,c)}else{"index"===r&&(n.pop(),r=n[n.length-1]);for(var l=xt(gt,n),d=0,f=ht;d<f.length;d++){var m=f[d];wt(l,t[m],m)}!1===t.namespaced&&delete l.namespaced}}function xt(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).isProperty,r=void 0!==n&&n;if(!e.length||r&&1===e.length)return t;var o=e.shift();return t.modules[o]=t.modules[o]||{},t.modules[o].namespaced=!0,t.modules[o].modules=t.modules[o].modules||{},xt(t.modules[o],e,{isProperty:r})}function wt(t,e,n){e&&("state"===n?t.state=e||t.state:t[n]=Object.assign({},t[n],e))}var _t=function(){return n.e(7).then(n.bind(null,1041)).then((function(t){return Mt(t.default||t)}))},Ct=function(){return Promise.resolve().then(n.bind(null,607)).then((function(t){return Mt(t.default||t)}))},It=function(){return Promise.resolve().then(n.bind(null,414)).then((function(t){return Mt(t.default||t)}))},kt=function(){return n.e(8).then(n.bind(null,1003)).then((function(t){return Mt(t.default||t)}))},St=function(){return n.e(9).then(n.bind(null,1005)).then((function(t){return Mt(t.default||t)}))},Ot=function(){return Promise.all([n.e(3),n.e(10)]).then(n.bind(null,1073)).then((function(t){return Mt(t.default||t)}))},$t=function(){return Promise.resolve().then(n.bind(null,86)).then((function(t){return Mt(t.default||t)}))},Tt=function(){return n.e(11).then(n.bind(null,1071)).then((function(t){return Mt(t.default||t)}))},Pt=function(){return Promise.resolve().then(n.bind(null,415)).then((function(t){return Mt(t.default||t)}))},Rt=function(){return n.e(12).then(n.bind(null,1043)).then((function(t){return Mt(t.default||t)}))},jt=function(){return n.e(13).then(n.bind(null,1072)).then((function(t){return Mt(t.default||t)}))},Et=function(){return Promise.resolve().then(n.bind(null,435)).then((function(t){return Mt(t.default||t)}))},At=function(){return n.e(18).then(n.bind(null,1070)).then((function(t){return Mt(t.default||t)}))},Ut=function(){return Promise.resolve().then(n.bind(null,341)).then((function(t){return Mt(t.default||t)}))},Dt=function(){return n.e(14).then(n.bind(null,1227)).then((function(t){return Mt(t.default||t)}))},Lt=function(){return n.e(15).then(n.bind(null,1112)).then((function(t){return Mt(t.default||t)}))},Bt=function(){return n.e(16).then(n.bind(null,1228)).then((function(t){return Mt(t.default||t)}))},Ft=function(){return Promise.all([n.e(1),n.e(17)]).then(n.bind(null,1111)).then((function(t){return Mt(t.default||t)}))},Nt=function(){return Promise.all([n.e(4),n.e(19)]).then(n.bind(null,1069)).then((function(t){return Mt(t.default||t)}))};function Mt(t){if(!t||!t.functional)return t;var e=Array.isArray(t.props)?t.props:Object.keys(t.props||{});return{render:function(n){var r={},o={};for(var c in this.$attrs)e.includes(c)?o[c]=this.$attrs[c]:r[c]=this.$attrs[c];return n(t,{on:this.$listeners,attrs:r,props:o,scopedSlots:this.$scopedSlots},this.$slots.default)}}}for(var Ht in r)l.default.component(Ht,r[Ht]),l.default.component("Lazy"+Ht,r[Ht]);var qt=n(223),Gt=function(t){var e,n,r,o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return((null===(e=t=o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:null)||void 0===e?void 0:e.r)+(null===(n=t)||void 0===n?void 0:n.b)+(null===(r=t)||void 0===r?void 0:r.g))/3<128?"#EEEEEE":"#222222"},Vt=function(t){var e,n,r=t.store.getters["cmsConfigHomepage/getTemplateSetting"],o=null==r||null===(e=r.find((function(t){return t.settingType==V.c.COLOR1})))||void 0===e?void 0:e.settingValue,c=null==r||null===(n=r.find((function(t){return t.settingType==V.c.COLOR2})))||void 0===n?void 0:n.settingValue,l=Gt(o),d=Gt(c);return{theme:{light:!0,themes:{light:{base:"#393832",primary:o,secondary:c,"primary-text":l,"secondary-text":d,"cta-primary":o,"cta-secondary":c},dark:{base:"#393832",primary:o,secondary:c,"primary-text":l,"secondary-text":d,"cta-primary":o,"cta-secondary":c}},options:{customProperties:!0}}}};l.default.use(qt.a,{});var zt=function(t){var e=Vt(t);e.icons=e.icons||{},e.icons.iconfont="mdi";var n=new qt.a(e);t.app.vuetify=n,t.$vuetify=n.framework};l.default.use(K.a);var Kt=function(t){var e={useVuex:!0};t.app.wait=new K.a(e)};n(19);var Wt="dataLayer",Xt="GTM-5ZPS6VT";var Jt=function(t,e){var n="GTM-5ZPS6VT",r=(t.$config&&t.$config.gtm||{}).id,o=function(t,e){return{init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xt;!e[t]&&window._gtm_inject&&(window._gtm_inject(t),e[t]=!0)},push:function(t){window[Wt]||(window[Wt]=[]),window[Wt].push(t)}}}(0,n?Object(c.a)({},n,!0):{});r&&r!==n&&o.init(r),t.$gtm=o,e("gtm",t.$gtm)},Qt=n(73),Yt=n.n(Qt),Zt=n(587),te=n.n(Zt);function ee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ne(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ee(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function re(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return ae(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ae(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}for(var oe={setBaseURL:function(t){this.defaults.baseURL=t},setHeader:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",o=re(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;e?this.defaults.headers[c][t]=e:delete this.defaults.headers[c][t]}}catch(t){o.e(t)}finally{o.f()}},setToken:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",r,n)},onRequest:function(t){this.interceptors.request.use((function(e){return t(e)||e}))},onResponse:function(t){this.interceptors.response.use((function(e){return t(e)||e}))},onRequestError:function(t){this.interceptors.request.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onResponseError:function(t){this.interceptors.response.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onError:function(t){this.onRequestError(t),this.onResponseError(t)},create:function(t){return ue(te()(t,this.defaults))}},ie=function(){var t=ce[se];oe["$"+t]=function(){return this[t].apply(this,arguments).then((function(t){return t&&t.data}))}},se=0,ce=["request","delete","get","head","options","post","put","patch"];se<ce.length;se++)ie();var ue=function(t){var e=Yt.a.create(t);return e.CancelToken=Yt.a.CancelToken,e.isCancel=Yt.a.isCancel,function(t){for(var e in oe)t[e]=oe[e].bind(t)}(e),e.onRequest((function(t){t.headers=ne(ne({},e.defaults.headers.common),t.headers)})),le(e),e},le=function(t){var e={finish:function(){},start:function(){},fail:function(){},set:function(){}},n=function(){var t="undefined"!=typeof window&&window.$nuxt;return t&&t.$loading&&t.$loading.set?t.$loading:e},r=0;t.onRequest((function(t){t&&!1===t.progress||r++})),t.onResponse((function(t){t&&t.config&&!1===t.config.progress||--r<=0&&(r=0,n().finish())})),t.onError((function(t){t&&t.config&&!1===t.config.progress||(r--,Yt.a.isCancel(t)?r<=0&&(r=0,n().finish()):(n().fail(),n().finish()))}));var o=function(t){if(r&&t.total){var progress=100*t.loaded/(t.total*r);n().set(Math.min(100,progress))}};t.defaults.onUploadProgress=o,t.defaults.onDownloadProgress=o},de=function(t,e){var n=t.$config&&t.$config.axios||{},r=n.browserBaseURL||n.browserBaseUrl||n.baseURL||n.baseUrl||"http://localhost:3000/";var o=ue({baseURL:r,headers:{common:{Accept:"application/json, text/plain, */*"},delete:{},get:{},head:{},post:{},put:{},patch:{}}});t.$axios=o,e("axios",o)},pe=n(110),fe=n.n(pe),me=function(t,e){t.$moment=fe.a,e("moment",fe.a)},he=n(430),ge=n(285),ve=function(t,e){t.$config;Object(ge.a)(Yt.a,"noredirect","/refresh-token"),Yt.a.defaults.withCredentials=!1,Yt.a.defaults.headers.common["Application-Source"]="WebBooking",e("axios",Yt.a)};function be(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ye(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?be(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}l.default.component(h.a.name,h.a),l.default.component(y.a.name,ye(ye({},y.a),{},{render:function(t,e){return y.a._warned||(y.a._warned=!0,console.warn("<no-ssr> has been deprecated and will be removed in Nuxt 3, please use <client-only> instead")),y.a.render(t,e)}})),l.default.component($.name,$),l.default.component("NChild",$),l.default.component(D.name,D),Object.defineProperty(l.default.prototype,"$nuxt",{get:function(){var t=this.$root?this.$root.$options.$nuxt:null;return t||"undefined"==typeof window?t:window.$nuxt},configurable:!0}),l.default.use(f.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var xe={name:"page",mode:"out-in",appear:!1,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"},we=d.a.Store.prototype.registerModule;function _e(path,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Array.isArray(path)?!!path.reduce((function(t,path){return t&&t[path]}),this.state):path in this.state;return we.call(this,path,t,ye({preserveState:n},e))}function Ce(t){return Ie.apply(this,arguments)}function Ie(){return Ie=Object(o.a)(regeneratorRuntime.mark((function t(e){var n,r,c,d,f,m,path,h,v=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(void 0===e)throw new Error("inject('".concat(t,"', value) has no value provided"));d[t="$"+t]=e,d.context[t]||(d.context[t]=e),r[t]=d[t];var n="__nuxt_"+t+"_installed__";l.default[n]||(l.default[n]=!0,l.default.use((function(){Object.prototype.hasOwnProperty.call(l.default.prototype,t)||Object.defineProperty(l.default.prototype,t,{get:function(){return this.$root.$options[t]}})})))},n=v.length>1&&void 0!==v[1]?v[1]:{},r=vt(e),t.next=5,O(0,n);case 5:return c=t.sent,r.$router=c,r.registerModule=_e,d=ye({head:{titleTemplate:"",title:"",htmlAttrs:{lang:"en"},meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width,minimum-scale=1"},{hid:"description",name:"description",content:""},{name:"format-detection",content:"telephone=no"}],link:[{rel:"stylesheet",type:"text/css",href:"https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&display=swap"},{rel:"stylesheet",type:"text/css",href:"https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"}],style:[],script:[{hid:"gtm-script",innerHTML:"if(!window._gtm_init){window._gtm_init=1;(function(w,n,d,m,e,p){w[d]=(w[d]==1||n[d]=='yes'||n[d]==1||n[m]==1||(w[e]&&w[e][p]&&w[e][p]()))?1:0})(window,navigator,'doNotTrack','msDoNotTrack','external','msTrackingProtectionEnabled');(function(w,d,s,l,x,y){w[x]={};w._gtm_inject=function(i){if(w.doNotTrack||w[x][i])return;w[x][i]=1;w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s);j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i;f.parentNode.insertBefore(j,f);};w[y]('GTM-5ZPS6VT')})(window,document,'script','dataLayer','_gtm_ids','_gtm_inject')}"}],noscript:[{hid:"gtm-noscript",pbody:!0,innerHTML:'<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5ZPS6VT&" height="0" width="0" style="display:none;visibility:hidden" title="gtm"></iframe>'}],__dangerouslyDisableSanitizersByTagID:{"gtm-script":["innerHTML"],"gtm-noscript":["innerHTML"]}},store:r,router:c,nuxt:{defaultTransition:xe,transitions:[xe],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map((function(t){return t=t?"string"==typeof t?Object.assign({},xe,{name:t}):Object.assign({},xe,t):xe})),this.$options.nuxt.transitions=t,t},err:null,dateErr:null,error:function(t){t=t||null,d.context._errored=Boolean(t),t=t?Object(_.p)(t):null;var n=d.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=t,e&&(e.nuxt.error=t),t}}},mt),r.app=d,f=e?e.next:function(t){return d.router.push(t)},e?m=c.resolve(e.url).route:(path=Object(_.f)(c.options.base,c.options.mode),m=c.resolve(path).route),t.next=14,Object(_.t)(d,{store:r,route:m,next:f,error:d.nuxt.error.bind(d),payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0,beforeSerializeFns:e?e.beforeSerializeFns:void 0,ssrContext:e});case 14:h("config",n),window.__NUXT__&&window.__NUXT__.state&&r.replaceState(window.__NUXT__.state),t.next=20;break;case 20:if("function"!=typeof zt){t.next=23;break}return t.next=23,zt(d.context,h);case 23:if("function"!=typeof Kt){t.next=26;break}return t.next=26,Kt(d.context,h);case 26:if("function"!=typeof Jt){t.next=29;break}return t.next=29,Jt(d.context,h);case 29:if("function"!=typeof de){t.next=32;break}return t.next=32,de(d.context,h);case 32:if("function"!=typeof me){t.next=35;break}return t.next=35,me(d.context,h);case 35:if("function"!=typeof he.a){t.next=38;break}return t.next=38,Object(he.a)(d.context,h);case 38:if("function"!=typeof ve){t.next=41;break}return t.next=41,ve(d.context,h);case 41:return t.next=44,new Promise((function(t,e){if(!c.resolve(d.context.route.fullPath).route.matched.length)return t();c.replace(d.context.route.fullPath,t,(function(n){if(!n._isRouter)return e(n);if(2!==n.type)return t();var r=c.afterEach(function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(n,o){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(_.j)(n);case 3:d.context.route=e.sent,d.context.params=n.params||{},d.context.query=n.query||{},r(),t();case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}))}));case 44:return t.abrupt("return",{store:r,app:d,router:c});case 45:case"end":return t.stop()}}),t)}))),Ie.apply(this,arguments)}},14:function(t,e,n){"use strict";n.d(e,"k",(function(){return x})),n.d(e,"m",(function(){return w})),n.d(e,"l",(function(){return _})),n.d(e,"e",(function(){return C})),n.d(e,"b",(function(){return I})),n.d(e,"s",(function(){return k})),n.d(e,"g",(function(){return S})),n.d(e,"h",(function(){return O})),n.d(e,"d",(function(){return $})),n.d(e,"r",(function(){return T})),n.d(e,"j",(function(){return P})),n.d(e,"t",(function(){return j})),n.d(e,"o",(function(){return A})),n.d(e,"q",(function(){return U})),n.d(e,"f",(function(){return D})),n.d(e,"c",(function(){return L})),n.d(e,"i",(function(){return B})),n.d(e,"p",(function(){return F})),n.d(e,"a",(function(){return K})),n.d(e,"v",(function(){return W})),n.d(e,"n",(function(){return X})),n.d(e,"u",(function(){return J}));n(59),n(10),n(49),n(69),n(20),n(12),n(21);var r=n(44),o=n(0),c=n(2),l=n(42),d=(n(17),n(4),n(9),n(210),n(24),n(19),n(33),n(16),n(43),n(50),n(47),n(13),n(27),n(100),n(436),n(226),n(35),n(82),n(236),n(15),n(26),n(5)),f=n(129);function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function x(t){d.default.config.errorHandler&&d.default.config.errorHandler(t)}function w(t){return t.then((function(t){return t.default||t}))}function _(t){return t.$options&&"function"==typeof t.$options.fetch&&!t.$options.fetch.length}function C(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=v(t.$children||[]);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.$fetch&&n.push(o),o.$children&&C(o,n)}}catch(t){r.e(t)}finally{r.f()}return n}function I(t,e){if(e||!t.options.__hasNuxtData){var n=t.options._originDataFn||t.options.data||function(){return{}};t.options._originDataFn=n,t.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),h(h({},data),e)},t.options.__hasNuxtData=!0,t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data)}}function k(t){return t.options&&t._Ctor===t||(t.options?(t._Ctor=t,t.extendOptions=t.options):(t=d.default.extend(t))._Ctor=t,!t.options.name&&t.options.__file&&(t.options.name=t.options.__file)),t}function S(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],t.matched.map((function(t,r){return Object.keys(t[n]).map((function(o){return e&&e.push(r),t[n][o]}))})))}function O(t){return S(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1],"instances")}function $(t,e){return Array.prototype.concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).reduce((function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r}),[])})))}function T(t,e){return Promise.all($(t,function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(n,r,o,c){var l,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof n||n.options){t.next=11;break}return t.prev=1,t.next=4,n();case 4:n=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t.catch(1),t.t0&&"ChunkLoadError"===t.t0.name&&"undefined"!=typeof window&&window.sessionStorage&&(l=Date.now(),(!(d=parseInt(window.sessionStorage.getItem("nuxt-reload")))||d+6e4<l)&&(window.sessionStorage.setItem("nuxt-reload",l),window.location.reload(!0))),t.t0;case 11:return o.components[c]=n=k(n),t.abrupt("return","function"==typeof e?e(n,r,o,c):n);case 13:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e,n,r,o){return t.apply(this,arguments)}}()))}function P(t){return R.apply(this,arguments)}function R(){return(R=Object(o.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,T(e);case 4:return t.abrupt("return",h(h({},e),{},{meta:S(e).map((function(t,n){return h(h({},t.options.meta),(e.matched[n]||{}).meta)}))}));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function j(t,e){return E.apply(this,arguments)}function E(){return(E=Object(o.a)(regeneratorRuntime.mark((function t(e,n){var o,c,d,m;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.context||(e.context={isStatic:!1,isDev:!1,isHMR:!1,app:e,store:e.store,payload:n.payload,error:n.error,base:e.router.options.base,env:{}},n.req&&(e.context.req=n.req),n.res&&(e.context.res=n.res),n.ssrContext&&(e.context.ssrContext=n.ssrContext),e.context.redirect=function(t,path,n){if(t){e.context._redirected=!0;var o=Object(r.a)(path);if("number"==typeof t||"undefined"!==o&&"object"!==o||(n=path||{},path=t,o=Object(r.a)(path),t=302),"object"===o&&(path=e.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=Object(f.d)(path,n),window.location.assign(path),new Error("ERR_REDIRECT");e.context.next({path:path,query:n,status:t})}},e.context.nuxtState=window.__NUXT__),t.next=3,Promise.all([P(n.route),P(n.from)]);case 3:o=t.sent,c=Object(l.a)(o,2),d=c[0],m=c[1],n.route&&(e.context.route=d),n.from&&(e.context.from=m),n.error&&(e.context.error=n.error),e.context.next=n.next,e.context._redirected=!1,e.context._errored=!1,e.context.isHMR=!1,e.context.params=e.context.route.params||{},e.context.query=e.context.route.query||{};case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(t,e,n){return!t.length||e._redirected||e._errored||n&&n.aborted?Promise.resolve():U(t[0],e).then((function(){return A(t.slice(1),e,n)}))}function U(t,e){var n;return(n=2===t.length?new Promise((function(n){t(e,(function(t,data){t&&e.error(t),n(data=data||{})}))})):t(e))&&n instanceof Promise&&"function"==typeof n.then?n:Promise.resolve(n)}function D(base,t){if("hash"===t)return window.location.hash.replace(/^#\//,"");base=decodeURI(base).slice(0,-1);var path=decodeURI(window.location.pathname);base&&path.startsWith(base)&&(path=path.slice(base.length));var e=(path||"/")+window.location.search+window.location.hash;return Object(f.c)(e)}function L(t,e){return function(t,e){for(var n=new Array(t.length),i=0;i<t.length;i++)"object"===Object(r.a)(t[i])&&(n[i]=new RegExp("^(?:"+t[i].pattern+")$",z(e)));return function(e,r){for(var path="",data=e||{},o=(r||{}).pretty?M:encodeURIComponent,c=0;c<t.length;c++){var l=t[c];if("string"!=typeof l){var d=data[l.name||"pathMatch"],f=void 0;if(null==d){if(l.optional){l.partial&&(path+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(Array.isArray(d)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var m=0;m<d.length;m++){if(f=o(d[m]),!n[c].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");path+=(0===m?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?H(d):o(d),!n[c].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');path+=l.prefix+f}}else path+=l}return path}}(function(t,e){var n,r=[],o=0,c=0,path="",l=e&&e.delimiter||"/";for(;null!=(n=N.exec(t));){var d=n[0],f=n[1],m=n.index;if(path+=t.slice(c,m),c=m+d.length,f)path+=f[1];else{var h=t[c],v=n[2],y=n[3],x=n[4],w=n[5],_=n[6],C=n[7];path&&(r.push(path),path="");var I=null!=v&&null!=h&&h!==v,k="+"===_||"*"===_,S="?"===_||"*"===_,O=n[2]||l,pattern=x||w;r.push({name:y||o++,prefix:v||"",delimiter:O,optional:S,repeat:k,partial:I,asterisk:Boolean(C),pattern:pattern?V(pattern):C?".*":"[^"+G(O)+"]+?"})}}c<t.length&&(path+=t.substr(c));path&&r.push(path);return r}(t,e),e)}function B(t,e){var n={},r=h(h({},t),e);for(var o in r)String(t[o])!==String(e[o])&&(n[o]=!0);return n}function F(t){var e;if(t.message||"string"==typeof t)e=t.message||t;else try{e=JSON.stringify(t,null,2)}catch(n){e="[".concat(t.constructor.name,"]")}return h(h({},t),{},{message:e,statusCode:t.statusCode||t.status||t.response&&t.response.status||500})}window.onNuxtReadyCbs=[],window.onNuxtReady=function(t){window.onNuxtReadyCbs.push(t)};var N=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function M(t,e){var n=e?/[?#]/g:/[/?#]/g;return encodeURI(t).replace(n,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function H(t){return M(t,!0)}function G(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function V(t){return t.replace(/([=!:$/()])/g,"\\$1")}function z(t){return t&&t.sensitive?"":"i"}function K(t,e,n){t.$options[e]||(t.$options[e]=[]),t.$options[e].includes(n)||t.$options[e].push(n)}var W=f.b,X=(f.e,f.a);function J(t){try{window.history.scrollRestoration=t}catch(t){}}},141:function(t,e,n){"use strict";n(116);var r=Object.freeze({CHAINLOGO:1,CHAINDEPARTMENTS:2,CHAINBANNER:3,HOMEPAGELOGO:4,HOMEPAGEIMAGECAROUSEL:5,HOMEPAGEABOUT:6,HOMEPAGEEMPLOYEES:7,HOMEPAGETREATMENTS:8,HOMEPAGEARTICLES:9,HOMEPAGEREVIEWS:10,HOMEPAGECONTACT:11,HOMEPAGESOCIALMEDIA:12,IMAGESINSTAGRAM:13,SUPPLIERBRANDS:14,HOMEPAGEGIFTCARDS:15,PRICES:16});e.a=r},184:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(40);n(33),n(9),n(4),n(12),n(15),n(26),n(261),n(43),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(50),n(46);function o(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.$store.getters["cart/getCartProducts"]||[],o=t.$store.getters["salon/getSalons"].filter((function(t){return t.webshopActive})).map((function(t){return t.siteId})),c=function(t,e){var n=t.$store.getters["cart/getCartBundles"]||[],r=n.filter((function(b){var t=b.subscriptionsList.filter((function(s){return e.includes(s.siteId)}));return t.forEach((function(s){var t=[];b.products.forEach((function(p){var e,n=null!==(e=p.stockCountSalons[s.siteId])&&void 0!==e?e:0;t.push(n)})),0==s.availableAmount||s.availableAmount>Math.min.apply(Math,t)?s.availableAmount=Math.min.apply(Math,t):Math.min.apply(Math,t)>b.maxPerCustomer&&(s.availableAmount=b.maxPerCustomer)})),b.subscriptionsList=t,b}));return r||[]}(t,o),data=function(t,e,n){var r=[],o=[],c=[],l=[],d=[];if(t.length){var f=function(){var e=t[i];e.stockAmount.filter((function(s){return n.includes(s.siteId)})).forEach((function(s){r.push(s)}));var o=e.stockAmount.filter((function(s){return n.includes(s.siteId)&&s.productStockAmount>=e.quantity}));o.length?o.forEach((function(s){return d.push(s.siteId)})):c.push(e)};for(var i in t)f()}if(e.length){var m=function(){var t=e[h];t.subscriptionsList.filter((function(s){return n.includes(s.siteId)})).forEach((function(s){o.push(s)}));var r=t.subscriptionsList.filter((function(s){return n.includes(s.siteId)&&s.availableAmount>=t.quantity}));r.length?r.forEach((function(s){return d.push(s.siteId)})):l.push(t)};for(var h in e)m()}return{productsStockSiteIds:d,unavailableBundles:l,unavailableProducts:c,productStockByActiveSites:r,bundlesStockByActiveSites:o}}(n,c,o),l=data.productsStockSiteIds,d=data.unavailableProducts,f=data.unavailableBundles,m=data.productStockByActiveSites,h=data.bundlesStockByActiveSites;if(n.length||c.length){var v=function(t,e,n){var o={};return n.forEach((function(t){o[t]=(o[t]||0)+1})),Object(r.a)(new Set(n)).filter((function(n){return o[n]==t.length+e.length}))}(n,c,l);return e&&function(t,e,n,o,c,l,d,f,m){var h=[],v=c.filter((function(t){return!e.includes(t.siteId)})),y=l.filter((function(t){return!e.includes(t.siteId)})),x=c.filter((function(t){return e.includes(t.siteId)})).map((function(t){return t.productId})),w=l.filter((function(t){return e.includes(t.siteId)})).map((function(t){return t.campaignId}));v.forEach((function(t){if(!x.includes(t.productId)){var e=d.find((function(p){return p.id===t.productId}));n.map((function(t){return t.id})).includes(t.productId)||e&&n.push(e)}})),y.forEach((function(t){if(!w.includes(t.campaignId)){var e=f.find((function(p){return p.campaignId===t.campaignId}));o.map((function(b){return b.campaignId})).includes(t.campaignId)||e&&o.push(e)}})),n.length&&n.forEach((function(p){var t=m.length?p.stockAmount.filter((function(s){return m.includes(s.siteId)})).map((function(t){return{stock:(null==t?void 0:t.productStockAmount)||0,siteId:t.siteId}})):[],e=t.find((function(e){return e.stock===Math.max.apply(Math,Object(r.a)(t.map((function(t){return t.stock}))))}))||{stock:0,siteId:0};h.push({productId:p.id,price:p.price,siteId:e.siteId,qty:p.quantity>=e.stock&&0!==e.stock?e.stock:0})}));o.length&&o.forEach((function(b){var t=m.length?b.subscriptionsList.filter((function(s){return m.includes(s.siteId)})).map((function(t){return{stock:(null==t?void 0:t.availableAmount)||0,siteId:t.siteId}})):[],e=t.find((function(e){return e.stock===Math.max.apply(Math,Object(r.a)(t.map((function(t){return t.stock}))))}))||{stock:0,siteId:0};h.push({productId:String(b.campaignId),price:b.campaignValue,siteId:e.siteId,qty:b.quantity>=e.stock&&0!==e.stock?e.stock:0})}));t.$store.commit("cart/setUnavailableProducts",h)}(t,v,d,f,m,h,n.length?n:[],c,o),t.$store.commit("cart/setSalonPoolDefaultSiteId",v[0]),v}return o}},229:function(t,e,n){"use strict";n.r(e);var r=n(218),o={},c=(n(763),n(3)),component=Object(c.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fxt-favorite-heart"},[e(r.a,{staticClass:"fxt-favorite-heart__bg-icon",attrs:{size:"28px",color:"white"}},[t._v("fxt-heart-filled")]),t._v(" "),e(r.a,{attrs:{size:"24px",color:"primary"}},[t._v("fxt-heart-filled")])],1)}),[],!1,null,"16a38846",null);e.default=component.exports},281:function(t,e,n){"use strict";n.r(e);n(24),n(15),n(26),n(4),n(43),n(50),n(33),n(46),n(13),n(27),n(64),n(19);var r=n(591),o=n(592),c=n(593),l=n(92),d=n(45),f=n(32),m={components:{CartBundle:r.default,CartProduct:o.default,CartTreatment:c.default,RecEngineModule:function(){return Promise.resolve().then(n.bind(null,435))}},props:{isAddedToCartDialog:{required:!1,default:!1}},data:function(){return{itemType:f.c,location:f.d,channel:f.b}},computed:{cart:function(){return this.$store.getters["cart/getCart"]},cartSalon:function(){return this.cart&&this.cart.siteId?this.$store.getters["salon/getSalonById"](this.cart.siteId):this.$store.getters["salon/getSalonById"](this.$store.getters["cart/getSelectedSalon"]||this.$store.getters["cart/getPreviousSelectedSalon"]||this.$store.getters["cart/getcart"])},cartCount:function(){return this.$store.getters["cart/getCartCount"]},cartTreatments:function(){return this.$store.getters["cart/getCartTreatments"]},cartTreatmentIds:function(){return this.$store.getters["cart/getCartTreatments"].map((function(t){return t.urlSafe}))},cartProducts:function(){return this.$store.getters["cart/getCartProducts"]},cartBundles:function(){return this.$store.getters["cart/getCartBundles"]},cartType:function(){return this.cartTreatments.length&&(this.cartBundles.length||this.cartProducts.length)?f.c.C:this.cartTreatments.length||!this.cartBundles.length&&!this.cartProducts.length?f.c.T:f.c.P},treatmentsTotalPrice:function(){return this.$store.getters["cart/getTotalTreatmentsPrice"]},productsTotalPrice:function(){return this.$store.getters["cart/getTotalProductsPrice"]},productDiscounts:function(){return this.$store.getters["cart/getTotalProductsDiscounts"]},siteIds:function(){return this.$store.getters["salon/getSiteIds"]},user:function(){return new d.c(this.$store.getters["app/get"]("user"))},showPrice:function(){var t,e=null===(t=this.$store.getters["cmsConfigHomepage/getModules"].find((function(t){return t.moduleId==l.b.PRICES})))||void 0===t?void 0:t.visible,n=!0;return null!=e&&null!=e&&(n=e),n}},methods:{formatPrice:function(t){return t.toFixed(2).replace(".",",")},closeAddedDialog:function(){this.$root.$emit("closeAddedToCartDialog")},redirect:function(t){t.type==f.c.T?this.$router.push("/Behandlinger/".concat(t.urlSafe)):window.open(this.$config.PORTAL_URL+"/nettbutikk/".concat(this.cart.chainId,"/produkt/").concat(t.urlSafe,"/"),"_blank")}}},h=(n(769),n(771),n(3)),component=Object(h.a)(m,(function(){var t=this,e=t._self._c;return t.cart?e("div",{staticClass:"cart-list"},[t.cartTreatments&&t.cartTreatments.length?e("div",[e("p",{staticClass:"cart-list__title default-text mb-0 pa-4"},[t._v("Behandlinger "),t.cartSalon&&t.cartSalon.name?e("span",[t._v("hos "),e("b",[t._v(t._s(t.cartSalon.name))])]):t._e()]),t._v(" "),t._l(t.cartTreatments,(function(t){return e("div",{key:t.treatmentId},[e("CartTreatment",{attrs:{treatment:t}})],1)})),t._v(" "),e("hr",{staticClass:"salon-linebreak my-4"}),t._v(" "),e("div",{staticClass:"row justify-space-between align-center ma-0 px-4"},[e("p",{staticClass:"cart-list__title default-text mb-0"},[t._v("Sum behandlinger")]),t._v(" "),e("div",{staticClass:"mt-1 d-flex price",style:t.$vuetify.breakpoint.mdAndUp?"margin-right: 43px;":""},[e("span",{staticClass:"price__from mr-1"},[t._v("Fra")]),t._v(" "),e("span",{staticClass:"price__number"},[t._v(t._s(t.formatPrice(t.treatmentsTotalPrice)))])])])],2):t._e(),t._v(" "),e("div",[t.cartProducts.length||t.cartBundles.length?e("div",[e("p",{staticClass:"cart-list__title default-text mb-0 pa-4"},[t._v("Produkter")])]):t._e(),t._v(" "),t.cartProducts.length?e("div",t._l(t.cartProducts,(function(n){return e("div",{key:n.id},[e("CartProduct",{attrs:{product:n},on:{closeAddedDialog:function(e){return t.closeAddedDialog()}}})],1)})),0):t._e(),t._v(" "),t.cartBundles.length?e("div",t._l(t.cartBundles,(function(n){return e("div",{key:n.id},[e("CartBundle",{attrs:{bundle:n},on:{closeAddedDialog:function(e){return t.closeAddedDialog()}}})],1)})),0):t._e(),t._v(" "),t.cartProducts.length||t.cartBundles.length?e("div",[e("hr",{staticClass:"salon-linebreak my-4"}),t._v(" "),t.productDiscounts>0?e("div",{staticClass:"row justify-space-between align-center ma-0 px-4 pb-4"},[e("p",{staticClass:"cart-list__title mb-0"},[t._v("Sum produkter uten rabatt")]),t._v(" "),e("div",{staticClass:"mt-1 d-flex price",style:t.$vuetify.breakpoint.mdAndUp?"margin-right: 43px;":""},[e("span",{staticClass:"price__number"},[t._v(t._s(t.formatPrice(t.productsTotalPrice+t.productDiscounts)))])])]):t._e(),t._v(" "),t.productDiscounts>0?e("div",{staticClass:"row justify-space-between align-center ma-0 px-4 pb-4"},[e("p",{staticClass:"cart-list__title mb-0"},[t._v("Rabatt")]),t._v(" "),e("div",{staticClass:"mt-1 d-flex price",style:t.$vuetify.breakpoint.mdAndUp?"margin-right: 43px;":""},[e("span",{staticClass:"price__number"},[t._v("-"+t._s(t.formatPrice(t.productDiscounts)))])])]):t._e(),t._v(" "),e("div",{staticClass:"row justify-space-between align-center ma-0 px-4 pb-4"},[e("p",{staticClass:"cart-list__title font-weight-bold mb-0"},[t._v("\n          Sum produkter totalt\n        ")]),t._v(" "),e("div",{staticClass:"mt-1 d-flex price",style:t.$vuetify.breakpoint.mdAndUp?"margin-right: 43px;":""},[e("span",{staticClass:"price__number"},[t._v(t._s(t.formatPrice(t.productsTotalPrice)))])])])]):t._e()]),t._v(" "),t.cartCount>0&&!t.isAddedToCartDialog?e("RecEngineModule",{key:t.cartType,attrs:{boxTitle:"Dette kan også passe til",wrapperClasses:"add-hidden cart-recommendation",presentation:"grid",siteIds:[t.itemType.P,t.itemType.C].includes(t.cartType)?t.siteIds:[t.cart.siteId],hideButton:!0,location:t.location.CART,itemQty:4,channel:t.channel.Nettbutik,itemType:t.cartType,treatmentIds:t.cartTreatmentIds}}):t._e()],1):t._e()}),[],!1,null,"742e8bec",null);e.default=component.exports;installComponents(component,{RecEngineModule:n(435).default})},338:function(t,e,n){"use strict";n(53),n(4),n(12),n(15),n(26),n(33),n(9),n(47),n(35),n(24),n(59),n(43),n(13),n(10),n(49),n(69),n(50);var r=n(5);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return l=t.done,t},e:function(t){d=!0,o=t},f:function(){try{l||null==n.return||n.return()}finally{if(d)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var l=window.requestIdleCallback||function(t){var e=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})}),1)},d=window.cancelIdleCallback||function(t){clearTimeout(t)},f=window.IntersectionObserver&&new window.IntersectionObserver((function(t){t.forEach((function(t){var e=t.intersectionRatio,link=t.target;e<=0||!link.__prefetch||link.__prefetch()}))}));e.a={name:"NuxtLink",extends:r.default.component("RouterLink"),props:{prefetch:{type:Boolean,default:!0},noPrefetch:{type:Boolean,default:!1}},mounted:function(){this.prefetch&&!this.noPrefetch&&(this.handleId=l(this.observe,{timeout:2e3}))},beforeDestroy:function(){d(this.handleId),this.__observed&&(f.unobserve(this.$el),delete this.$el.__prefetch)},methods:{observe:function(){f&&this.shouldPrefetch()&&(this.$el.__prefetch=this.prefetchLink.bind(this),f.observe(this.$el),this.__observed=!0)},shouldPrefetch:function(){return this.getPrefetchComponents().length>0},canPrefetch:function(){var t=navigator.connection;return!(this.$nuxt.isOffline||t&&((t.effectiveType||"").includes("2g")||t.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map((function(t){return t.components.default})).filter((function(t){return"function"==typeof t&&!t.options&&!t.__prefetched}))},prefetchLink:function(){if(this.canPrefetch()){f.unobserve(this.$el);var t,e=o(this.getPrefetchComponents());try{for(e.s();!(t=e.n()).done;){var n=t.value,r=n();r instanceof Promise&&r.catch((function(){})),n.__prefetched=!0}}catch(t){e.e(t)}finally{e.f()}}}}}},341:function(t,e,n){"use strict";n.r(e);var r=n(403),o=n(405),c=n(54),l=n(985),d=n(986),f=n(406),m=n(218),h=n(984),v=n(104),y=(n(24),n(19),n(46),n(4),n(12),{name:"chooseSalonDialog",props:{treatment:{required:!1,default:null},title:{required:!1},bonusPage:{required:!1,default:!1}},data:function(){return{dialog:!1}},methods:{price:function(t){return this.treatment.pricePerSite.find((function(e){return e.siteId==t})).price},redirect:function(t){if(this.appointmentButtonOverrideUrl)""!=this.appointmentButtonOverrideUrl&&window.open(this.appointmentButtonOverrideUrl,"_self");else if(this.treatment)if(this.bonusPage)window.open("".concat(this.$config.PORTAL_URL,"/booking/").concat(t.siteId,"#/mypage/visits"));else{var e=this.$router.resolve({name:"redirect",path:"".concat(this.$config.PORTAL_URL,"/frisor/").concat(t.urlLink,"/").concat(t.siteId),query:{treatmentIds:["".concat(btoa(this.treatment.treatmentId))]}});window.open(e.href,"_blank")}else if(this.bonusPage)window.open("".concat(this.$config.PORTAL_URL,"/booking/").concat(t.siteId,"#/mypage/visits"));else{var n=this.$router.resolve({name:"redirect",path:"".concat(this.$config.PORTAL_URL,"/frisor/").concat(t.urlLink,"/").concat(t.siteId)});window.open(n.href,"_blank")}},openDialog:function(){this.dialog=!this.dialog}},computed:{salons:function(){var t=this,e=[];return this.$store.getters["salon/getSiteIds"].forEach((function(n){t.treatment?t.treatment.pricePerSite.forEach((function(r){r.siteId==n&&e.push(t.$store.getters["salon/getSalonById"](n))})):e.push(t.$store.getters["salon/getSalonById"](n))})),e},appointmentButtonOverrideUrl:function(){return this.$store.getters["cmsConfigHomepage/getAppointmentButtonOverrideUrl"]},isDraft:function(){return this.$store.getters["cmsConfigHomepage/isDraftMode"]}},created:function(){var t=this;this.$nuxt.$on("openSalonDialog",(function(){if(t.salons.length>1)t.openDialog();else{var e=t.$router.resolve({name:"redirect",path:"".concat(t.$config.PORTAL_URL,"/frisor/").concat(t.salons[0].urlLink,"/").concat(t.salons[0].siteId)});window.open(e.href,"_blank")}}))}}),x=(n(747),n(3)),component=Object(x.a)(y,(function(){var t=this,e=t._self._c;return e("div",[t.salons.length>1?e("div",[e(d.a,{attrs:{"max-width":"600"},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[t.title?e("div",[e("p",t._g({staticClass:"ma-0"},t.isDraft?null:o),[t._v(t._s(t.title))])]):e(r.a,t._g({staticClass:"order-btn",staticStyle:{"text-transform":"none",color:"var(--v-primary-text-base)"},attrs:{color:"primary",elevation:"0",rounded:""}},t.isDraft?null:o),[t._v("\n                    Bestill time\n                ")])]}}],null,!1,62826259),model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[t._v(" "),[e(o.a,[e(v.a,{attrs:{color:"primary",dark:""}},[t._v("\n                    Hvor vil du bestille time?\n                ")]),t._v(" "),t._l(t.salons,(function(n){return e(o.a,{key:n.name,attrs:{tile:"",elevation:"0"}},[e(c.c,[e(h.a,{staticClass:"pa-2",attrs:{align:"center"}},[e(l.a,{staticClass:"mr-6",attrs:{cols:t.treatment?12:8,sm:t.treatment?6:8}},[e(h.a,[e("p",{staticClass:"font-weight-medium mb-2 ml-1",staticStyle:{"font-size":"20px"}},[t._v(t._s(n.name))])]),t._v(" "),e(h.a,[e("div",{staticClass:"d-flex"},[e(m.a,{staticClass:"pr-1",attrs:{size:"20",color:"primary"}},[t._v(" mdi-map-marker-outline ")]),t._v(" "),e("a",{staticClass:"address-link",style:"color: var(--v-primary-base)",attrs:{href:t.isDraft?null:"http://maps.google.com/?q=".concat(n.address,", ").concat(n.postalCode),target:"_blank"}},[t._v("\n                                                "+t._s(n.address+",")+" "+t._s(+n.postalCode+" "+n.postalArea)+"\n                                            ")])],1)])],1),t._v(" "),t.treatment?e(l.a,{staticClass:"mr-auto",attrs:{cols:"4",sm:"2"}},[e("div",{staticClass:"d-flex"},[e("div",[t._v("kr")]),t._v(" "),e("div",{staticClass:"font-weight-black",staticStyle:{"font-size":"20px"}},[t._v(t._s(t.price(n.siteId)))])])]):t._e(),t._v(" "),e(l.a,{staticClass:"ml-auto",staticStyle:{"text-align":"right"},attrs:{cols:t.treatment?4:3,sm:t.treatment?2:3}},[e(r.a,{attrs:{color:"primary",rounded:""},on:{click:function(e){!t.isDraft&&t.redirect(n)}}},[t._v("\n                                        Velg\n                                    ")])],1)],1)],1),t._v(" "),e(f.a,{staticClass:"mx-5"})],1)}))],2)]],2)],1):e("div",[t.title?e("div",[e("p",{staticClass:"ma-0",on:{click:function(e){!t.isDraft&&t.redirect(t.salons[0])}}},[t._v(t._s(t.title))])]):e(r.a,{staticClass:"order-btn",staticStyle:{"text-transform":"none"},attrs:{color:"primary",elevation:"0",rounded:""},on:{click:function(e){!t.isDraft&&t.redirect(t.salons[0])}}},[t._v("\n        Bestill time\n        ")])],1)])}),[],!1,null,"635c28ea",null);e.default=component.exports},349:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return d}));var r=n(0);n(17);function o(t){this.axios=t.axios.create({baseURL:t.env.HOMEPAGE_CORE_API}),this.GetEmployeesBySiteIds=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.get("employee/get-employees-by-siteids",{params:{siteIds:e}});case 2:if(200!==(n=t.sent).data.responseCode){t.next=5;break}return t.abrupt("return",n.data.result);case 5:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}var c=n(29),l=n(5),d=function(){return{isLoadingEmployees:!1,favoriteEmployees:[],employeesMap:{}}},f={setLoadingEmployees:function(t,e){t.isLoadingEmployees=e},setEmployeesMap:function(t,e){t.employeesMap[e.siteId]||l.default.set(t.employeesMap,e.siteId,e.employees)},setFavoriteEmployees:function(t,e){t.favoriteEmployees=e}},m={getSiteEmployees:function(t,e){return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.state,o=t.dispatch,c=t.commit,!e||0===e||r.employeesMap[e]){n.next=4;break}return n.next=4,o("fetchEmployeesBySiteIds",[e]).then((function(t){t.length&&c("setEmployeesMap",{siteId:e,employees:t})}));case 4:case"end":return n.stop()}}),n)})))()},fetchEmployeesBySiteIds:function(t,e){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var c,l,d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return c=t.commit,t.getters,c("setLoadingEmployees",!0),l=new o({axios:n.$axios,env:n.$config}),r.next=5,l.GetEmployeesBySiteIds(e,!1);case 5:return d=r.sent,c("setLoadingEmployees",!1),r.abrupt("return",d);case 8:case"end":return r.stop()}}),r)})))()},fetchFavoriteEmployees:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,l,d,f;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,o=t.rootGetters,n.next=3,Object(c.b)(e.$axios);case 3:return l=n.sent,d=o["salon/getSiteIds"],n.next=7,l.GetFavoriteEmployees(e.$config.VUE_APP_FIXIT_NO_BOOKING_URL,d);case 7:f=n.sent,r("setFavoriteEmployees",f);case 9:case"end":return n.stop()}}),n)})))()},updateFavoriteEmployees:function(t,e){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.commit,r.next=3,Object(c.b)(n.$axios);case 3:return o=r.sent,r.next=6,o.UpdateFavoriteEmployee(n.$config.VUE_APP_FIXIT_NO_BOOKING_URL,e.employeeId);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}};e.default={namespaced:!0,state:d,getters:{getEmployeesBySiteId:function(t){return function(e){return t.employeesMap[e]||[]}},getIsLoadingEmployees:function(t){return t.isLoadingEmployees},getFavoriteEmployees:function(t){return t.favoriteEmployees}},actions:m,mutations:f}},413:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l}));var r=n(330),o=n(0),c=(n(17),n(29)),l=function(){return{favoriteProducts:[]}},d={fetchFavoriteProducts:function(t){var e=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var r,o,l,d,f;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,o=t.rootGetters,n.next=3,Object(c.b)(e.$axios);case 3:return l=n.sent,d=o["salon/getSiteIds"],n.next=7,l.GetFavoriteProducts(e.$config.VUE_APP_FIXIT_NO_BOOKING_URL,d);case 7:f=n.sent,r("setFavoriteProducts",f);case 9:case"end":return n.stop()}}),n)})))()},updateFavoriteProducts:function(t,e){var n=this;return Object(o.a)(regeneratorRuntime.mark((function o(){var l;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return Object(r.a)(t),o.next=3,Object(c.b)(n.$axios);case 3:return l=o.sent,o.next=6,l.UpdateFavoriteProducts(n.$config.VUE_APP_FIXIT_NO_BOOKING_URL,e.productId,e.siteId);case 6:return o.abrupt("return",o.sent);case 7:case"end":return o.stop()}}),o)})))()}};e.default={namespaced:!0,getters:{getFavoriteProducts:function(t){return t.favoriteProducts}},state:l,actions:d,mutations:{setFavoriteProducts:function(t,e){t.favoriteProducts=e}}}},414:function(t,e,n){"use strict";n.r(e);var r=n(995),o=n(403),c=n(218),l=n(426),d={data:function(){return{menu:!1}},methods:{onMenuButtonClick:function(){this.$router.push("/cart")}},computed:{cartProductsCount:function(){return this.$store.getters["cart/getCartCount"]}}},f=n(3),component=Object(f.a)(d,(function(){var t=this,e=t._self._c;return e(l.a,{ref:"cart-menu",attrs:{"close-on-content-click":!1,"max-width":"400","nudge-width":"200","offset-y":""},scopedSlots:t._u([{key:"activator",fn:function(n){var l=n.on;return[e(o.a,t._g({staticClass:"align-self-center",staticStyle:{order:"2"},attrs:{color:"primary",height:"100%",text:"",small:""},on:{click:t.onMenuButtonClick}},l),[e(c.a,{staticStyle:{cursor:"pointer"},attrs:{size:"32px",color:"primary"}},[t._v("fxt-cart")]),t._v(" "),t.cartProductsCount?e(r.a,{staticStyle:{margin:"0px 5px 35px 0px","padding-left":"0px"},attrs:{overlap:"",color:"red",right:""},scopedSlots:t._u([{key:"badge",fn:function(){return[t._v("\n                    "+t._s(t.cartProductsCount)+"\n                ")]},proxy:!0}],null,!0)}):t._e()],1)]}}]),model:{value:t.menu,callback:function(e){t.menu=e},expression:"menu"}})}),[],!1,null,null,null);e.default=component.exports},415:function(t,e,n){"use strict";n.r(e);var r=n(985),o=n(982),c=n(983),l=n(218),d=n(984),f=(n(47),n(24),n(13),n(27),n(46),n(4),n(9),n(12),n(227)),m=n(231),h=n(444),v=n(45),y=n(141),x={name:"HomepageFooter",components:{FIcon:f.a,chooseSalonDialog:m.a},data:function(){return{siteLinks:[{name:"Tidligere besøk",query:"bestillinger"}],isMounted:!1}},props:{user:{type:[v.c,Object],required:!0}},mounted:function(){this.isMounted=!0},methods:{navigate:function(link){link&&"bonus"!=link?this.$router.replace({query:{title:link}}):this.$router.push("bonus"==link?"/bonus":"/cookies"),link&&"bonus"!=link&&this.openLogin()},normalRedirect:function(link){window.open(link)},bookingRedirect:function(){this.chainAppointmentButtonOverrideUrl?""!=this.chainAppointmentButtonOverrideUrl&&window.open(this.chainAppointmentButtonOverrideUrl,"_self"):this.$router.push("/behandlinger")},aboutUsNavigation:function(link){this.$router.push("/about/".concat(link))},openLogin:function(){this.$emit("openDialog")},socialName:function(t){switch(t){case 1:return"Instagram";case 2:return"Facebook";case 3:return"Snapchat";case 4:return"YouTube";case 5:return"TikTok"}},socialIcon:function(t){switch(t){case 1:return"fxt-instagram";case 2:return"fxt-facebook";case 3:return"fxt-snapchat";case 4:return"fxt-youtube";case 5:return"fxt-tiktok"}}},computed:{homepageSocials:function(){return this.$store.getters["cmsConfigHomepage/getHomepageSocials"]},chainAppointmentButtonOverrideText:function(){return this.$store.getters["cmsConfigHomepage/getAppointmentButtonOverrideText"]},chainAppointmentButtonOverrideUrl:function(){return this.$store.getters["cmsConfigHomepage/getAppointmentButtonOverrideUrl"]},linkList:function(){return Object(h.a)()},useConstrastColors:function(){return this.$store.getters["cmsConfigHomepage/primaryAndSecondaryAreEqual"]},homepageSocialMediaActivated:function(){var t;return null===(t=this.$store.getters["cmsConfigHomepage/getModules"].find((function(t){return t.moduleId==y.a.HOMEPAGESOCIALMEDIA})))||void 0===t?void 0:t.visible},showDepartments:function(){return this.salons.length>1},bookingSalons:function(){var t=this.$store.getters["cart/getSelectedSalon"];return t?this.salons.filter((function(e){return e.siteId===t})):this.salons},salons:function(){var t=this,e=[];return this.$store.getters["salon/getSiteIds"].forEach((function(n){e.push(t.$store.getters["salon/getSalonById"](n))})),e.filter((function(t){return t.enabled}))},isDraft:function(){return this.$store.getters["cmsConfigHomepage/isDraftMode"]},singleSalonSoMe:function(){if(!this.showDepartments&&this.salons.length){var t=this.salons[0];return{instagramEnabled:t.instagramUrlEnabled,facebookEnabled:t.facebookUrlEnabled,snapchatEnabled:t.snapchatUrlEnabled,youtubeEnabled:t.youTubeUrlEnabled,tiktokEnabled:t.tikTokUrlEnabled,instagramUrl:t.instagramUrl,facebookUrl:t.faceBookUrl,snapchatUrl:t.snapchatUrl,youtubeUrl:t.youTubeUrl,tiktokUrl:t.tikTokUrl}}return{}},chainName:function(){return this.$store.getters["cmsConfigHomepage/getChainName"]},customerProgram:function(){var t=this.$store.getters["cmsConfigHomepage/getActiveCustomerPrograms"];return null!=t&&null!=t&&t.length?t[0]:null}}},w=(n(745),n(3)),component=Object(w.a)(x,(function(){var t=this,e=t._self._c;return e(c.a,{staticClass:"footer pt-8 pb-6",staticStyle:{bottom:"0","background-color":"var(--v-secondary-base)","box-shadow":"inset 0 -5px 30px -5px rgba(0, 0, 0, 0.06)"},attrs:{height:"auto"}},[e(o.a,{staticClass:"footer-container"},[e(d.a,{attrs:{justify:"space-between"}},[e(r.a,{staticClass:"pl-0 pb-10",class:t.isMounted&&t.$vuetify.breakpoint.mdAndUp?"":"d-flex justify-center",attrs:{cols:"12",sm:"12",md:"4"}},[e("nav",{attrs:{"aria-label":"Footer"}},[e("h3",{staticClass:"footer-titles primary-font",staticStyle:{color:"var(--v-secondary-text-base)"}},[t._v("\n            Last ned Fixit Appen\n          ")]),t._v(" "),e("div",{staticClass:"d-flex pb-5"},[e("img",{attrs:{width:"75",src:n(706)}}),t._v(" "),e("p",{staticClass:"fixit-app-text ml-4 pt-1 secondary-font",staticStyle:{color:"var(--v-secondary-text-base)"},attrs:{cols:"5"}},[t._v("\n              Rask og enkel timebestilling hos "+t._s(t.chainName)+" med appen Fixit\n              Timebestilling\n            ")])]),t._v(" "),e("f-icon",{staticClass:"app-icons",staticStyle:{"margin-left":"-18px"},attrs:{id:"app-store-icon",size:"2.5",color:t.useConstrastColors?"var(--v-primary-text-base)":"var(--v-primary-base)",icon:"icon-app_store"},on:{click:function(e){!t.isDraft&&t.normalRedirect(t.linkList.AppRedirectUrlAppleAppStore)}}}),t._v(" "),e("f-icon",{staticClass:"app-icons",attrs:{id:"google-play-icon",size:"2.5",color:t.useConstrastColors?"var(--v-primary-text-base)":"var(--v-primary-base)",icon:"icon-google_play"},on:{click:function(e){!t.isDraft&&t.normalRedirect(t.linkList.AppRedirectUrlGooglePlayStore)}}})],1)]),t._v(" "),e(r.a,{staticClass:"pl-0",class:t.isMounted&&t.$vuetify.breakpoint.mdAndUp?"":"d-flex justify-center",attrs:{cols:"12",sm:"12",md:"3"}},[e("div",{style:t.isMounted&&t.$vuetify.breakpoint.smAndDown?"width: 328px":""},[t.showDepartments?e("div",[e("h3",{staticClass:"footer-titles primary-font",staticStyle:{color:"var(--v-secondary-text-base)"}},[t._v("\n              Våre avdelinger\n            ")]),t._v(" "),t._l(t.salons.slice(0,4),(function(n,i){return e("div",{key:n.name,staticClass:"link-text mb-4 secondary-font",style:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)"},[e("p",{attrs:{id:"departments-buttons"+i},on:{click:function(e){return t.aboutUsNavigation(n.urlFrendlyLink)}}},[t._v("\n                "+t._s(n.name)+"\n              ")])])})),t._v(" "),t.salons.length>4?e("div",{staticClass:"d-flex"},[e("p",{staticClass:"link-text-more mb-4 secondary-font",style:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)",attrs:{id:"more-departments-buttons"},on:{click:function(e){return t.aboutUsNavigation("")}}},[t._v("\n                Flere avdelinger\n              ")]),t._v(" "),e("f-icon",{attrs:{color:"primary",icon:"icon-chevron-right"}})],1):t._e()],2):t._e(),t._v(" "),t.homepageSocialMediaActivated&&t.homepageSocials.length?e("div",[e("h3",{staticClass:"footer-titles primary-font",class:t.showDepartments?"pt-5":"",style:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-secondary-text-base)"},[t._v("\n              Følg oss\n            ")]),t._v(" "),t._l(t.homepageSocials,(function(n,i){return e("div",{key:n.socialUrl,staticClass:"d-flex"},[e(l.a,{staticStyle:{"margin-top":"-14px"},attrs:{size:"33px",color:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)"}},[t._v(t._s(t.socialIcon(n.soMeType)))]),t._v(" "),e("p",{staticClass:"link-text ml-2 pt-1 secondary-font",attrs:{id:"social-button-"+i},on:{click:function(e){!t.isDraft&&t.normalRedirect(n.socialUrl)}}},[t._v("\n                "+t._s(t.socialName(n.soMeType))+"\n              ")])],1)}))],2):t._e(),t._v(" "),t.showDepartments||t.homepageSocialMediaActivated&&t.homepageSocials.length?t._e():e("div",[e("h3",{staticClass:"footer-titles primary-font",staticStyle:{color:"var(--v-secondary-text-base)"}},[t._v("\n              Følg oss\n            ")]),t._v(" "),t.singleSalonSoMe.instagramEnabled?e("div",{staticClass:"d-flex"},[e(l.a,{staticStyle:{"margin-top":"-14px"},attrs:{size:"33px",color:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)"}},[t._v("fxt-instagram")]),t._v(" "),e("p",{staticClass:"link-text ml-2 pt-1 secondary-font",style:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)",attrs:{id:"social-button-instagram"},on:{click:function(e){!t.isDraft&&t.normalRedirect(t.singleSalonSoMe.instagramUrl)}}},[t._v("\n                Instagram\n              ")])],1):t._e(),t._v(" "),t.singleSalonSoMe.facebookEnabled?e("div",{staticClass:"d-flex"},[e(l.a,{staticStyle:{"margin-top":"-14px"},attrs:{size:"33px",color:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)"}},[t._v("fxt-facebook")]),t._v(" "),e("p",{staticClass:"link-text ml-2 pt-1 secondary-font",style:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)",attrs:{id:"social-button-facebook"},on:{click:function(e){!t.isDraft&&t.normalRedirect(t.singleSalonSoMe.facebookUrl)}}},[t._v("\n                Facebook\n              ")])],1):t._e(),t._v(" "),t.singleSalonSoMe.snapchatEnabled?e("div",{staticClass:"d-flex"},[e(l.a,{staticStyle:{"margin-top":"-14px"},attrs:{size:"33px",color:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)"}},[t._v("fxt-snapchat")]),t._v(" "),e("p",{staticClass:"link-text ml-2 pt-1 secondary-font",style:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)",attrs:{id:"social-button-snapchat"},on:{click:function(e){!t.isDraft&&t.normalRedirect(t.singleSalonSoMe.snapchatUrl)}}},[t._v("\n                Snapchat\n              ")])],1):t._e(),t._v(" "),t.singleSalonSoMe.youtubeEnabled?e("div",{staticClass:"d-flex"},[e(l.a,{staticStyle:{"margin-top":"-14px"},attrs:{size:"33px",color:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)"}},[t._v("fxt-youtube")]),t._v(" "),e("p",{staticClass:"link-text ml-2 pt-1 secondary-font",style:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)",attrs:{id:"social-button-youtube"},on:{click:function(e){!t.isDraft&&t.normalRedirect(t.singleSalonSoMe.youtubeUrl)}}},[t._v("\n                Youtube\n              ")])],1):t._e(),t._v(" "),t.singleSalonSoMe.tiktokEnabled?e("div",{staticClass:"d-flex"},[e(l.a,{staticStyle:{"margin-top":"-14px"},attrs:{size:"33px",color:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)"}},[t._v("fxt-tiktok")]),t._v(" "),e("p",{staticClass:"link-text ml-2 pt-1 secondary-font",style:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)",attrs:{id:"social-button-tiktok"},on:{click:function(e){!t.isDraft&&t.normalRedirect(t.singleSalonSoMe.tiktokUrl)}}},[t._v("\n                TikTok\n              ")])],1):t._e()])])]),t._v(" "),e(r.a,{staticClass:"pl-0",class:t.isMounted&&t.$vuetify.breakpoint.mdAndUp?"":"d-flex justify-center",staticStyle:{position:"relative"},attrs:{cols:"12",sm:"12",md:"3"}},[e("div",{staticClass:"footer-my-page",style:t.isMounted&&t.$vuetify.breakpoint.smAndDown?"width: 328px":""},[e("div",[e("h3",{staticClass:"footer-titles primary-font",staticStyle:{color:"var(--v-secondary-text-base)"}},[t._v("\n              Min side\n            ")]),t._v(" "),t._l(t.siteLinks,(function(n){return e("div",{key:n.name,staticClass:"link-text mb-4 secondary-font"},[e("p",{style:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)",attrs:{id:"my-page-buttons"},on:{click:function(e){t.isDraft,t.navigate(n.query)}}},[t._v("\n                "+t._s(n.name)+"\n              ")])])})),t._v(" "),e("choose-salon-dialog",{attrs:{disabled:t.isDraft,defaultSize:!0,url:t.$config.PORTAL_URL,sites:t.bookingSalons}})],2),t._v(" "),e("div",{style:t.isMounted&&t.$vuetify.breakpoint.mdAndUp?"position: absolute; bottom: 28px; white-space: nowrap":""},[t.customerProgram&&t.customerProgram.active?e("p",{staticClass:"link-text mb-0 secondary-font",class:t.isMounted&&t.$vuetify.breakpoint.smAndDown?"pt-16":"",style:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)",attrs:{id:"membership-program-button"},on:{click:function(e){return t.navigate("bonus")}}},[t._v("\n              Fordelsprogram\n            ")]):t._e(),t._v(" "),e("p",{staticClass:"link-text mb-0 secondary-font pt-4",style:t.useConstrastColors?"color: var(--v-primary-text-base)":"color: var(--v-primary-base)",attrs:{id:"cookies-button"},on:{click:function(e){return t.navigate()}}},[t._v("\n              Om bruk av cookies\n            ")])])])])],1)],1)],1)}),[],!1,null,"94da731e",null);e.default=component.exports;installComponents(component,{ChooseSalonDialog:n(341).default})},416:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l}));var r=n(0);n(17),n(33),n(46),n(4),n(35);function o(t){this.axios=t.axios.create({baseURL:t.env.HOMEPAGE_CORE_API}),this.GetSalonsByHomepageId=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.get("department/get-salons",{params:{homepageId:e}});case 2:if(200!=(n=t.sent).data.responseCode){t.next=5;break}return t.abrupt("return",n.data.result);case 5:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}var c=n(29),l=function(){return{salons:[],isSingleSite:!1,favoriteSalons:[]}},d={fetchSalons:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,c,l,d,f;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,c=t.rootGetters,l=new o({axios:e.$axios,env:e.$config}),null===(d=c["cmsConfigHomepage/getHomepageId"])){n.next=9;break}return n.next=6,l.GetSalonsByHomepageId(d);case 6:return f=n.sent,r("setSalons",f),n.abrupt("return",!0);case 9:return n.abrupt("return",!1);case 10:case"end":return n.stop()}}),n)})))()},fetchFavoriteSalons:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,l,d,f;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,o=t.rootGetters,n.next=3,Object(c.b)(e.$axios);case 3:return l=n.sent,d=o["cmsConfigHomepage/getChainId"],n.next=7,l.GetMySalons(e.$config.VUE_APP_FIXIT_NO_BOOKING_URL,0,d,!1);case 7:(f=n.sent).length&&r("setFavoriteSalons",f[0].chainSites);case 9:case"end":return n.stop()}}),n)})))()},updateFavoriteSalons:function(t,e){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var o,l,d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.commit,o=t.state,r.next=3,Object(c.b)(n.$axios);case 3:return l=r.sent,d=o.favoriteSalons.find((function(t){return t.siteId===e}))?"0":"1",r.next=7,l.UpdateMySalons(n.$config.VUE_APP_FIXIT_NO_BOOKING_URL,e.toString(),d);case 7:return r.abrupt("return",r.sent);case 8:case"end":return r.stop()}}),r)})))()}};e.default={namespaced:!0,getters:{getSalons:function(t){return t.salons},getSiteIds:function(t){return t.salons.map((function(t){return t.siteId}))},getSalonById:function(t){return function(e){return t.salons.find((function(t){return t.siteId===e}))}},getHideEmployees:function(t){return function(e){return t.salons.find((function(t){return t.siteId===e})).hideEmployees}},getSalonByUrlFriendlyLink:function(t){return function(e){return t.salons.find((function(t){return t.urlFrendlyLink===e}))}},getSalonPhoneNumber:function(t){return function(e){return t.salons.find((function(t){return t.siteId===e}))}},getFavoriteSalons:function(t){return t.favoriteSalons},getFavoriteSalonById:function(t){return function(e){return t.favoriteSalons.find((function(t){return t.siteId===e}))}},getIsSingleSite:function(t){return t.isSingleSite},bookingEnabledForSite:function(t){return function(e){if(e&&e>0){var n=t.salons.find((function(t){return t.siteId===e}));return!!n&&n.enabled}var r=t.salons.map((function(t){return t.enabled}));return r&&r.length>=1}}},state:l,actions:d,mutations:{setSalons:function(t,e){t.salons=e,1===t.salons.length&&(t.isSingleSite=!0)},setFavoriteSalons:function(t,e){t.favoriteSalons=e}}}},417:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l}));var r=n(0);n(17),n(9),n(4),n(177),n(33),n(46),n(118);function o(t){this.axios=t.axios.create({baseURL:t.env.HOMEPAGE_CORE_API}),this.GetCmsConfigByHomepageId=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e,n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.get("cms/get-cms-config-by-homepageId",{params:{homepageId:e,isDraft:n}});case 2:if(!(r=t.sent).data.result||200!==r.data.responseCode){t.next=5;break}return t.abrupt("return",r.data.result);case 5:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}(),this.GetCmsConfigByHostName=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e,n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.get("cms/get-cms-config-by-host",{params:{host:e,isDraft:n}});case 2:if(!(r=t.sent).data.result||200!==r.data.responseCode){t.next=5;break}return t.abrupt("return",r.data.result);case 5:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}(),this.GetActiveCustomerPrograms=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.get("cms/get-active-customer-programs",{params:{chainId:e}});case 2:if(200!==(n=t.sent).data.responseCode){t.next=5;break}return t.abrupt("return",n.data.result);case 5:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}var c=n(92),l=function(){return{cmsConfigHomepage:{homepageId:null,homepageType:null,chainFixitSiteId:"test",homepageDescription:"",homepageTitle:"",chainId:null,cmsEnabled:!0,cmsFixitNoEnabled:!0,siteUrl:null,cmsReturnUrl:"",giftcardActive:!1,webshopActive:!1,template:{templateId:null,templateName:"",templateHomepageSettings:null,templateeSiteSettings:null},sites:[],homepageBanners:[],appointmentButtonOverrideText:"",appointmentButtonOverrideUrl:"",showDepartments:!1,modules:[],activeCustomerPrograms:[],homepageSocials:[]},chainNameAndLogo:{chainName:"",logo:""},draftMode:!1,cmsFound:!1}},d={getHomepageId:function(t){return t.cmsConfigHomepage.homepageId},getChainId:function(t){return t.cmsConfigHomepage.chainId},getCmsConfigHomepage:function(t){return t.cmsConfigHomepage},getHomepageSocials:function(t){return Object.values(t.cmsConfigHomepage.homepageSocials).filter((function(t){return t.active}))},getHomepageDescription:function(t){return t.cmsConfigHomepage.homepageDescription},getTemplateSetting:function(t){return t.cmsConfigHomepage.template.templateHomepageSettings},getSites:function(t){return t.cmsConfigHomepage.sites},getSiteIds:function(t){return t.cmsConfigHomepage.sites.map((function(t){return t.siteId}))},getBanners:function(t){return t.cmsConfigHomepage.homepageBanners},getModules:function(t){return t.cmsConfigHomepage.modules},getShowDepartments:function(t){return t.cmsConfigHomepage.showDepartments},getGiftcardActiveStatus:function(t){return t.cmsConfigHomepage.giftcardActive},getWebshopActiveStatus:function(t){return t.cmsConfigHomepage.webshopActive},getActiveCustomerPrograms:function(t){return t.cmsConfigHomepage.activeCustomerPrograms},getSiteModules:function(t){return function(e){return t.cmsConfigHomepage.sites.find((function(t){return t.siteId==e})).modules}},getSiteUrl:function(t){return t.cmsConfigHomepage.siteUrl||""},useCustomLogo:function(t){return t.cmsConfigHomepage.useCustomLogo},getChainName:function(t){return t.cmsConfigHomepage.homepageTitle?t.cmsConfigHomepage.homepageTitle:t.cmsConfigHomepage.chainName},getLogo:function(t){return t.cmsConfigHomepage.logo},getLogoLarge:function(t){return t.cmsConfigHomepage.logoLarge},getPrimary:function(t){var e;return null===(e=t.cmsConfigHomepage)||void 0===e||null===(e=e.template)||void 0===e||null===(e=e.templateHomepageSettings)||void 0===e||null===(e=e.find((function(t){return t.settingType==c.c.COLOR1})))||void 0===e?void 0:e.settingValue},getSecondary:function(t){var e;return null===(e=t.cmsConfigHomepage)||void 0===e||null===(e=e.template)||void 0===e||null===(e=e.templateHomepageSettings)||void 0===e||null===(e=e.find((function(t){return t.settingType==c.c.COLOR2})))||void 0===e?void 0:e.settingValue},newsVisible:function(t){var e;return null===(e=t.cmsConfigHomepage)||void 0===e||null===(e=e.modules)||void 0===e||null===(e=e.find((function(t){return"news"===t.componentId})))||void 0===e?void 0:e.visible},productsVisible:function(t){var e;return null===(e=t.cmsConfigHomepage)||void 0===e||null===(e=e.modules)||void 0===e||null===(e=e.find((function(t){return"suppliers"===t.componentId})))||void 0===e?void 0:e.visible},instagramVisible:function(t){var e;return null===(e=t.cmsConfigHomepage)||void 0===e||null===(e=e.modules)||void 0===e||null===(e=e.find((function(t){return"instagram-images"===t.componentId})))||void 0===e?void 0:e.visible},getHomepageSiteUrl:function(t){var e;return null===(e=t.cmsConfigHomepage)||void 0===e?void 0:e.siteUrl},getAppointmentButtonOverrideText:function(t){return t.cmsConfigHomepage.appointmentButtonOverrideText},getAppointmentButtonOverrideUrl:function(t){return t.cmsConfigHomepage.appointmentButtonOverrideUrl},isDraftMode:function(t){return t.draftMode},getCmsFound:function(t){return t.cmsFound},primaryAndSecondaryAreEqual:function(t){var e,n;return(null===(e=t.cmsConfigHomepage)||void 0===e||null===(e=e.template)||void 0===e||null===(e=e.templateHomepageSettings)||void 0===e||null===(e=e.find((function(t){return t.settingType==c.c.COLOR1})))||void 0===e?void 0:e.settingValue)==(null===(n=t.cmsConfigHomepage)||void 0===n||null===(n=n.template)||void 0===n||null===(n=n.templateHomepageSettings)||void 0===n||null===(n=n.find((function(t){return t.settingType==c.c.COLOR2})))||void 0===n?void 0:n.settingValue)}},f={fetchCmsConfigByHomepageId:function(t,e){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var c,l,d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return c=t.commit,t.getters,l=new o({axios:n.$axios,env:n.$config}),r.next=4,l.GetCmsConfigByHomepageId(e,!0);case 4:if(!(d=r.sent)||null==d.homepageId){r.next=11;break}return 1466==d.chainId&&(d.webshopActive=!1),c("SET_DRAFT_MODE",!0),c("setCmsConfigHomepage",d),c("setCmsFound",!0),r.abrupt("return",!0);case 11:return r.abrupt("return",!1);case 12:case"end":return r.stop()}}),r)})))()},fetchCmsConfigHomepage:function(t,e){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var c,l,d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return c=t.commit,t.getters,l=new o({axios:n.$axios,env:n.$config}),r.next=4,l.GetCmsConfigByHostName(e,!1);case 4:if(!(d=r.sent)){r.next=11;break}return 1466==d.chainId&&(d.webshopActive=!1),c("SET_DRAFT_MODE",!1),c("setCmsConfigHomepage",d),c("setCmsFound",!0),r.abrupt("return",!0);case 11:return r.abrupt("return",!1);case 12:case"end":return r.stop()}}),r)})))()},fetchActiveCustomerPrograms:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,c,l,d,f;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,c=t.rootGetters,l=new o({axios:e.$axios,env:e.$config}),null===(d=c["cmsConfigHomepage/getChainId"])){n.next=11;break}return n.next=6,l.GetActiveCustomerPrograms(d);case 6:if(!(f=n.sent)){n.next=10;break}return r("setActiveCustomerPrograms",f),n.abrupt("return",!0);case 10:return n.abrupt("return",!1);case 11:case"end":return n.stop()}}),n)})))()}};e.default={namespaced:!0,state:l,getters:d,actions:f,mutations:{setCmsConfigHomepage:function(t,e){t.cmsConfigHomepage=e,t.cmsConfigHomepage.homepageBanners.sort((function(a,b){return a.SortNo-b.SortNo}))},SET_DRAFT_MODE:function(t,e){t.draftMode=e},setActiveCustomerPrograms:function(t,e){t.cmsConfigHomepage.activeCustomerPrograms=e},setCmsFound:function(t,e){t.cmsFound=e}}}},418:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return m}));n(47),n(35),n(24),n(59),n(43),n(13),n(69),n(50);var r=n(2),o=n(0),c=n(40);n(17),n(4),n(33),n(15),n(26),n(12),n(16),n(10),n(49),n(46);function l(t){this.axios=t.axios.create({baseURL:t.env.VUE_APP_FIXIT_NO_BOOKING_URL}),this.GetCart=function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(e,n,r){var o,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.post("/api/Cart/get-shopping-cart",{chainId:e,clientUUId:n,employeeId:r});case 2:if(200!==(o=t.sent).data.responseCode&&204!==o.data.responseCode){t.next=6;break}return c=o.data.cart,t.abrupt("return",c[0]);case 6:return t.abrupt("return",!1);case 7:case"end":return t.stop()}}),t,this)})));return function(e,n,r){return t.apply(this,arguments)}}(),this.InsertOrUpdateProduct=function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(e,n,r){var o,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.post("/api/Cart/insert-or-update-product",{clientUUId:n,siteId:e.siteId,isCompleted:e.isCompleted,salePrice:e.salePrice,quantity:e.quantity,productId:e.productId,employeeId:r});case 2:if(200!==(o=t.sent).data.responseCode){t.next=6;break}return c=o.data.cart,t.abrupt("return",c[0]);case 6:return t.abrupt("return",!1);case 7:case"end":return t.stop()}}),t,this)})));return function(e,n,r){return t.apply(this,arguments)}}(),this.InsertOrUpdateTreatment=function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(e,n,r,o){var c,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.post("/api/Cart/insert-or-update-treatment",{clientUUId:r,siteId:n,isCompleted:!1,treatmentId:e.treatmentId||e.id,salePrice:e.pricePerSite.find((function(t){return t.siteId===n})).price||e.price,employeeId:o});case 2:if(200!==(c=t.sent).data.responseCode){t.next=6;break}return l=c.data.cart,t.abrupt("return",l[0]);case 6:return t.abrupt("return",!1);case 7:case"end":return t.stop()}}),t,this)})));return function(e,n,r,o){return t.apply(this,arguments)}}(),this.DeleteShoppingCartItem=function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(e,n,r,o,c,l){var d,f,m;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d="",e.productId?d=e.productId:e.id&&(d=e.id),t.next=4,this.axios.post("/api/Cart/delete-shopping-cart-item",{clientUUId:r,chainId:n,productId:"P"===o?d:"",treatmentId:"P"===o?"":e.treatmentId||e.id,deleteAllItems:!1,employeeId:c,siteId:l});case 4:if(200!==(f=t.sent).data.responseCode){t.next=8;break}return m=f.data.cart,t.abrupt("return",m[0]);case 8:return t.abrupt("return",!1);case 9:case"end":return t.stop()}}),t,this)})));return function(e,n,r,o,c,l){return t.apply(this,arguments)}}(),this.RemoveCartTreatments=function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.post("/api/Cart/remove-shopping-cart-treatments",{siteId:e.siteId,treatmentIds:e.treatmentIds,clientUUId:e.clientUUId});case 2:return n=t.sent,t.abrupt("return",200===n.data.responseCode);case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}function d(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var m=function(){return{cart:null,clientUUid:null,selectedSalon:null,preselectedEmployee:null,unavailableProducts:[],salonPoolDefaultSiteId:0,showCrossSiteDialog:!1,previousSelectedSalon:0}},h={getCart:function(t){return t.cart},getSelectedSalon:function(t){return t.selectedSalon},getPreselectedEmployee:function(t){return t.preselectedEmployee},getShowCrossSiteDialog:function(t){return t.showCrossSiteDialog},getPreviousSelectedSalon:function(t){return t.previousSelectedSalon},getUnavailableProducts:function(t){return t.unavailableProducts},getSalonPoolDefaultSiteId:function(t){return t.salonPoolDefaultSiteId},getCartCount:function(t){var e=0;t.cart&&(t.cart.productList&&t.cart.productList.length||t.cart.bundlesList&&t.cart.bundlesList.length||t.cart.treatmentIds&&t.cart.treatmentIds.length)&&(e=t.cart.bundlesList.map((function(t){return t.quantity})).reduce((function(t,e){return t+e}),0)+t.cart.productList.map((function(t){return t.quantity})).reduce((function(t,e){return t+e}),0)+t.cart.treatmentIds.length);return e},treatmentIsInCart:function(t){return function(e){return t.cart&&t.cart.treatmentIds&&t.cart.treatmentIds.includes(e)}},productIsInCart:function(t){return function(e){return t.cart&&t.cart.productList&&t.cart.productList.length&&t.cart.productList.map((function(t){return t.id})).includes(e)}},bundleIsInCart:function(t){return function(e){return t.cart&&t.cart.bundlesList&&t.cart.productList.length&&t.cart.productList.map((function(t){return t.campaignId})).includes(e)}},getCartTreatments:function(t){return t.cart&&t.cart.treatments?t.cart.treatments:[]},getCartBundles:function(t){return t.cart&&t.cart.bundlesList?t.cart.bundlesList:[]},getCartProducts:function(t){return t.cart&&t.cart.productList?t.cart.productList:[]},getTotalTreatmentsPrice:function(t){var e=0;return t.cart&&t.cart.treatments&&t.cart.treatments.length&&t.cart.treatments.forEach((function(t){e+=Math.min.apply(Math,Object(c.a)(t.pricePerSite.map((function(p){return p.price}))))||0})),e},getCartProductAndBundleIds:function(t,e){var n=[];return e.getCartBundles.length>0&&e.getCartBundles.forEach((function(b){b.productList.forEach((function(p){n.push(p.base64Id)}))})),e.getCartProducts.length>0&&n.push.apply(n,Object(c.a)(e.getCartProducts.map((function(t){return t.base64Id})))),n},getTotalProductsPrice:function(t){var e=0;return t.cart.productList&&t.cart.productList.length&&t.cart.productList.forEach((function(t){C(t).discounted?e+=C(t).totalSalePrice:e+=t.price*t.quantity})),t.cart.bundlesList&&t.cart.bundlesList.length&&t.cart.bundlesList.forEach((function(t){e+=t.campaignValue*t.quantity})),e},getTotalProductsDiscounts:function(t){var e=[];if(t.cart.productList&&t.cart.productList.map((function(t){var n=C(t);if(!n.discounted)return 0;e.push(n.totalValue-n.totalSalePrice)})),t.cart.bundlesList){var n,r=d(t.cart.bundlesList);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.push(o.totalValue*o.quantity-o.campaignValue*o.quantity)}}catch(t){r.e(t)}finally{r.f()}}return e.length?e.reduce((function(t,e){return t+e})):0}},v={setCart:function(t,e){t.cart=e},setClientUUid:function(t,e){t.clientUUId=e},setPreviousSelectedSalon:function(t,e){t.previousSelectedSalon=e||t.selectedSalon},setShowCrossSiteDialog:function(t,e){t.showCrossSiteDialog=e,t.previousSelectedSalon=0},setSelectedSalon:function(t,e){e&&0!==e&&t.cart&&t.cart.siteId&&t.cart.siteId!==e?t.showCrossSiteDialog=!0:e&&null!==e?(t.selectedSalon=e,x("selectedSalon",e),_("preselectedEmployee")):(_("selectedSalon"),_("preselectedEmployee"),t.selectedSalon=null)},setUnavailableProducts:function(t,e){t.unavailableProducts=e},setSalonPoolDefaultSiteId:function(t,e){t.salonPoolDefaultSiteId=e},setPreselectedEmployee:function(t,e){var n;e?(t.preselectedEmployee=e,x("preselectedEmployee",(n=e,Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({availableForOnlineBooking:n.availableForOnlineBooking,description:n.description,employeeId:n.employeeId,employeeIdBase64:n.base64EmployeeId,firstName:n.firstName,fixitSiteId:"",imageUrl:n.imgUrl,imageUrlLarge:n.imageUrlLarge,imageUrlMedium:n.imageUrlMedium,imageUrlRounded:"",imageUrlSmall:n.imageUrlSmall,imageVersion:n.imageVersion,lastName:"",nameUrlSafe:n.urlSafeName,siteNameUrlSafe:"",siteId:n.siteId},"nameUrlSafe",""),"sortNo",n.sortNo),"title",n.title),"treatments",n.treatments),"visibleOnDigitalChannels",n.visibleOnDigitalChannels),"webId",n.webId)||null))):(t.preselectedEmployee=null,_("preselectedEmployee"))}},y={getCart:function(t){var e=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var r,o,c,d,f,m,h,v;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,o=t.state,c=t.rootGetters,d=new l({axios:e.$axios,env:e.$config}),null===(f=c["cmsConfigHomepage/getChainId"])){n.next=9;break}return n.next=6,d.GetCart(f,o.clientUUId,(null===(m=o.preselectedEmployee)||void 0===m?void 0:m.base64EmployeeId)||"");case 6:return(h=n.sent)&&h.clientUUId&&(v=w("selectedSalon")||null,r("setClientUUid",h.clientUUId||null),r("setSelectedSalon",v),x("clientUUid",h.clientUUId||null),r("setCart",h)),n.abrupt("return",!0);case 9:return n.abrupt("return",!1);case 10:case"end":return n.stop()}}),n)})))()},insertOrUpdateProduct:function(t,e){var n=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var o,c,d,f,m;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return c=t.commit,d=t.state,f=new l({axios:n.$axios,env:n.$config}),r.next=4,f.InsertOrUpdateProduct(e,d.clientUUId,(null===(o=d.preselectedEmployee)||void 0===o?void 0:o.base64EmployeeId)||"");case 4:(m=r.sent)&&m.clientUUId&&(c("setClientUUid",m.clientUUId||null),x("clientUUid",m.clientUUId||null),c("setCart",m));case 6:case"end":return r.stop()}}),r)})))()},insertOrUpdateTreatment:function(t,e){var n=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var o,c,d,f,m,h;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return c=t.commit,d=t.state,f=new l({axios:n.$axios,env:n.$config}),m=w("selectedSalon"),r.next=5,f.InsertOrUpdateTreatment(e,m,d.clientUUId,(null===(o=d.preselectedEmployee)||void 0===o?void 0:o.base64EmployeeId)||"");case 5:(h=r.sent)&&h.clientUUId&&(c("setClientUUid",h.clientUUId||null),x("clientUUid",h.clientUUId||null),c("setCart",h));case 7:case"end":return r.stop()}}),r)})))()},deleteShoppingCartItem:function(t,e){var n=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var o,c,d,f,m,h,v,y;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=t.commit,c=t.state,d=t.rootGetters,f=new l({axios:n.$axios,env:n.$config}),m=d["cmsConfigHomepage/getChainId"],h=w("selectedSalon"),null===m){r.next=11;break}return r.next=7,f.DeleteShoppingCartItem(e.item,m,c.clientUUId,e.type,(null===(v=c.preselectedEmployee)||void 0===v?void 0:v.base64EmployeeId)||"",h);case 7:(y=r.sent)&&y.clientUUId&&(o("setClientUUid",y.clientUUId||null),x("clientUUid",y.clientUUId||null),o("setCart",y)),(y&&y.treatmentIds.length<=0||y&&!y.treatmentIds||!y)&&(o("setClientUUid",null),_("clientUUid")),o("setCart",y);case 11:case"end":return r.stop()}}),r)})))()},removeCartTreatments:function(t,e){var n=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var o,c,d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=t.commit,t.state,t.dispatch,c=new l({axios:n.$axios,env:n.$config}),null===e.siteId){r.next=7;break}return r.next=5,c.RemoveCartTreatments(e);case 5:r.sent&&(d=e.nextSiteId&&0!==e.nextSiteId?e.nextSiteId:null,o("setCart",[]),o("setSelectedSalon",d),o("setClientUUid",null));case 7:case"end":return r.stop()}}),r)})))()}};function x(t,e){window&&localStorage.setItem(t,JSON.stringify(e))}function w(t){if(window){var e=localStorage.getItem(t);if(null!=e&&"undefined"!==e)return JSON.parse(e)}}function _(t){window&&localStorage.removeItem(t)}function C(t){var e=t.price,n=0,r=0,o="";return t.discounts.length&&t.discounts.forEach((function(t){n+=t.discountPrice*t.quantity,r+=t.quantity,o=t.discountText})),r<=t.quantity&&r>0&&(e=(n+=t.price*(t.quantity-r))/(t.quantity+r)),{salePrice:e,price:t.price,totalSalePrice:n||t.price*t.quantity,totalValue:t.price*t.quantity,discounted:r>0,discountText:o}}e.default={namespaced:!0,state:m,getters:h,mutations:v,actions:y}},419:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return c}));var r=n(0);n(17),n(46),n(4);function o(t){this.axios=t.axios.create({baseURL:t.env.HOMEPAGE_CORE_API}),this.GetNewsBySiteIds=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.post("news/get-news-by-siteids",e);case 2:if(200!==(n=t.sent).data.responseCode){t.next=5;break}return t.abrupt("return",n.data.result);case 5:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),this.GetNewsById=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e,n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.post("news/get-news-by-id/".concat(n),e);case 2:if(200!==(r=t.sent).data.responseCode){t.next=5;break}return t.abrupt("return",r.data.result);case 5:return t.abrupt("return",null);case 6:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()}var c=function(){return{news:[]}},l={fetchNewsBySiteIds:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,c,l,d,f;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,c=t.rootGetters,l=new o({axios:e.$axios,env:e.$config}),!(null!==(d=c["salon/getSiteIds"])&&d.length>0)){n.next=9;break}return n.next=6,l.GetNewsBySiteIds(d);case 6:return f=n.sent,r("setNews",f),n.abrupt("return",!0);case 9:return n.abrupt("return",!1);case 10:case"end":return n.stop()}}),n)})))()},getNewsById:function(t,e){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var c,l,d,f;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.commit,c=t.rootGetters,l=new o({axios:n.$axios,env:n.$config}),d=c["salon/getSiteIds"],r.next=5,l.GetNewsById(d,e);case 5:if(null==(f=r.sent)){r.next=8;break}return r.abrupt("return",f);case 8:case"end":return r.stop()}}),r)})))()}};e.default={namespaced:!0,state:c,getters:{getNews:function(t){return t.news},getNewsById:function(t){return function(e){return t.news.find((function(t){return t.id===e}))}}},mutations:{setNews:function(t,e){t.news=e}},actions:l}},420:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return c}));var r=n(0);n(17);function o(t){this.axios=t.axios.create({baseURL:t.env.HOMEPAGE_CORE_API}),this.GetPopularWebshopProductsForSiteList=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e,n,r,o){var c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.post("product/get-popular-webshop-products-for-sitelist",{chainId:e,siteIds:n,limit:r,daysOffset:o});case 2:if(200!==(c=t.sent).data.responseCode){t.next=5;break}return t.abrupt("return",c.data.result);case 5:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t,this)})));return function(e,n,r,o){return t.apply(this,arguments)}}()}var c=function(){return{products:[]}},l={fetchPopularProducts:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,c,l,d,f,m;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,c=t.rootGetters,l=new o({axios:e.$axios,env:e.$config}),d=c["cmsConfigHomepage/getChainId"],f=c["salon/getSiteIds"],n.next=6,l.GetPopularWebshopProductsForSiteList(d,f,5,200);case 6:if(!(m=n.sent)){n.next=10;break}return r("setProducts",m),n.abrupt("return",!0);case 10:return n.abrupt("return",!1);case 11:case"end":return n.stop()}}),n)})))()}};e.default={namespaced:!0,getters:{getProducts:function(t){return t.products}},state:c,actions:l,mutations:{setProducts:function(t,e){t.products=e}}}},421:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return h}));n(47),n(24),n(59),n(13),n(10),n(49),n(69);var r=n(0),o=(n(17),n(46),n(4),n(12),n(16),n(33),n(118),n(9),n(15),n(26),n(43),n(50),n(35),n(73)),c=n.n(o);function l(t){this.baseURL=t.env.HOMEPAGE_CORE_API,this.bookingAPI=t.env.VUE_APP_FIXIT_NO_BOOKING_URL,this.GetTreatmentCategories=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e,n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.a.post(this.baseURL+"treatment/get-treatment-categories",{chainId:e,siteIds:n});case 2:if(200!==(r=t.sent).data.responseCode){t.next=5;break}return t.abrupt("return",r.data.result);case 5:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}(),this.FetchTreatmentsByCategories=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e,n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.a.post(this.bookingAPI+"/api/treatment/get-treatment-categories?chainId=".concat(e),n);case 2:if(!(r=t.sent).data||200!==r.data.responseCode){t.next=5;break}return t.abrupt("return",r.data.treatmentCategoryList);case 5:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}(),this.GetTreatmentsBySiteIds=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(filter){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.a.post(this.baseURL+"treatment/get-treatments-with-filter",filter);case 2:if(200!==(e=t.sent).data.responseCode){t.next=5;break}return t.abrupt("return",e.data.result);case 5:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),this.GetPopularTreatmentsBySiteIds=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e,n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.a.post(this.baseURL+"treatment/get-popular-treatments-by-siteids/".concat(n),e);case 2:if(200!==(r=t.sent).data.responseCode){t.next=5;break}return t.abrupt("return",r.data.result);case 5:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}(),this.GetTreatment=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e,n,r){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.a.post(this.baseURL+"treatment/get-treatment-by-id/".concat(e),{siteIds:r,chainId:n});case 2:if(200!==(o=t.sent).data.responseCode){t.next=5;break}return t.abrupt("return",o.data.result);case 5:return t.abrupt("return",null);case 6:case"end":return t.stop()}}),t,this)})));return function(e,n,r){return t.apply(this,arguments)}}()}var d=n(29);function f(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var h=function(){return{treatmentCategoryList:[],popularTreatments:[],treatments:[],numberOfTreatments:0,favoriteTreatments:[],treatmentsByCategoryOriginal:[],treatmentsByCategories:[],recEngineItems:[]}},v={setTreatmentCategoryList:function(t,e){t.treatmentCategoryList=e},setTreatments:function(t,e){t.treatments=e.listOfTreatments||[],t.numberOfTreatments=e.numberOfItems||0},setRecEngineItems:function(t,e){t.recEngineItems=e},setPopularTreatments:function(t,e){t.popularTreatments=e},resetPopularTreatments:function(t){t.popularTreatments=[]},setFavoriteTreatments:function(t,e){t.favoriteTreatments=e},setTreatmentsByCategories:function(t,e){t.treatmentsByCategories=e,t.treatmentsByCategoryOriginal=e},UpdateTreatmentsByCategories:function(t,e){if(t.treatmentsByCategories=JSON.parse(JSON.stringify(t.treatmentsByCategoryOriginal)),t.treatments.length||(t.treatmentsByCategories=[]),t.treatments.length&&(""!==e.searchString||e.employee.length||e.siteIds.length)){var n,r=t.treatments.map((function(t){return t.treatmentId})),o=[],c=f(t.treatmentsByCategories);try{for(c.s();!(n=c.n()).done;){var l=n.value;l.treatments=l.treatments.filter((function(t){return r.includes(t.treatmentId)})),o.push(l)}}catch(t){c.e(t)}finally{c.f()}t.treatmentsByCategories=o.filter((function(t){return t.treatments.length>0})).sort((function(a,b){return a.sortNumber<b.sortNumber?-1:a.sortNumber>b.sortNumber?1:0}))}}},y={resetPopularTreatmentsState:function(t){(0,t.commit)("resetPopularTreatments")},fetchTreatments:function(t,filter){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,t.rootGetters,o=new l({axios:e.$axios,env:e.$config}),null===filter){n.next=9;break}return n.next=5,o.GetTreatmentsBySiteIds(filter);case 5:if(!(c=n.sent)){n.next=9;break}return r("setTreatments",c),n.abrupt("return",!0);case 9:return n.abrupt("return",!1);case 10:case"end":return n.stop()}}),n)})))()},fetchCategories:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,c,d,f,m;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,o=t.rootGetters,c=new l({axios:e.$axios,env:e.$config}),d=o["cmsConfigHomepage/getChainId"],f=o["salon/getSiteIds"],null===d){n.next=11;break}return n.next=7,c.GetTreatmentCategories(d,f);case 7:if(!(m=n.sent)){n.next=11;break}return r("setTreatmentCategoryList",m),n.abrupt("return",!0);case 11:return n.abrupt("return",!1);case 12:case"end":return n.stop()}}),n)})))()},fetchTreatmentsByCategories:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,c,d,m,h,v,y,x,w,_,C,I;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,o=t.state,c=t.rootGetters,d=new l({axios:e.$axios,env:e.$config}),m=c["cmsConfigHomepage/getChainId"],h=c["salon/getSiteIds"],null===m){n.next=31;break}return n.next=7,d.FetchTreatmentsByCategories(m,h);case 7:if(!(v=n.sent)){n.next=31;break}y=c["treatments/getFavoriteTreatments"],x=[],w=f(y),n.prev=12,C=regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=_.value,(n=o.treatments.find((function(t){return t.treatmentId===e.treatmentId})))&&x.push(n);case 3:case"end":return t.stop()}}),t)})),w.s();case 15:if((_=w.n()).done){n.next=19;break}return n.delegateYield(C(),"t0",17);case 17:n.next=15;break;case 19:n.next=24;break;case 21:n.prev=21,n.t1=n.catch(12),w.e(n.t1);case 24:return n.prev=24,w.f(),n.finish(24);case 27:return(I={treatmentCategoryId:"favorite-category",sortNumber:-1,treatments:x,description:"Mine favorittbehandlinger",ftcCategoryName:null,siteId:0,urlSafeName:"mine-favoritter",categoryName:"Mine favorittbehandlinger"}).treatments.length&&v.push(I),r("setTreatmentsByCategories",v),n.abrupt("return",!0);case 31:return n.abrupt("return",!1);case 32:case"end":return n.stop()}}),n,null,[[12,21,24,27]])})))()},fetchPopularTreatments:function(t,e){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var o,c,d,f,m;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=t.commit,c=t.rootGetters,d=new l({axios:n.$axios,env:n.$config}),null==e&&(e=c["salon/getSiteIds"]),f=c["cmsConfigHomepage/getChainId"],null===e||null===f){r.next=11;break}return r.next=7,d.GetPopularTreatmentsBySiteIds(e,f);case 7:if(!(m=r.sent)){r.next=11;break}return o("setPopularTreatments",m),r.abrupt("return",!0);case 11:return r.abrupt("return",!1);case 12:case"end":return r.stop()}}),r)})))()},fetchTreatment:function(t,e){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var o,c,d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.commit,o=t.rootGetters,c=new l({axios:n.$axios,env:n.$config}),d=null,null==e){r.next=7;break}return r.next=6,c.GetTreatment(e,o["cmsConfigHomepage/getChainId"],o["cmsConfigHomepage/getSiteIds"]);case 6:d=r.sent;case 7:return r.abrupt("return",d);case 8:case"end":return r.stop()}}),r)})))()},fetchFavoriteTreatments:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,c,l,f;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,o=t.rootGetters,n.next=3,Object(d.b)(e.$axios);case 3:return c=n.sent,l=o["salon/getSiteIds"],n.next=7,c.GetFavoriteTreatments(e.$config.VUE_APP_FIXIT_NO_BOOKING_URL,l);case 7:f=n.sent,r("setFavoriteTreatments",f);case 9:case"end":return n.stop()}}),n)})))()},updateFavoriteTreatments:function(t,e){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var o,c,l;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.commit,o=t.rootGetters,r.next=3,Object(d.b)(n.$axios);case 3:return c=r.sent,l=o["salon/getSiteIds"],r.next=7,c.UpdateFavoriteTreatments(n.$config.VUE_APP_FIXIT_NO_BOOKING_URL,e.treatmentId,l[0].toString());case 7:return r.abrupt("return",r.sent);case 8:case"end":return r.stop()}}),r)})))()}};e.default={namespaced:!0,getters:{getTreatmentCategoryList:function(t){return t.treatmentCategoryList},getRecEngineItems:function(t){return t.recEngineItems},getCategory:function(t){return function(e){return t.treatmentCategoryList.find((function(t){return t.treatmentCategoryId===e}))}},getTreatments:function(t){return t.treatments},getTreatmentItemById:function(t){return function(e,n){return t.treatments.find((function(t){return t.urlSafe===e}))}},getRelatedTreatmentsByIdList:function(t){return function(e){var n=[];return t.treatments.foreach((function(e){e.relatedTreatments.forEach((function(e){var r=t.treatments.find((function(t){return t.treatmentId===e}));n.push(r)}))})),n}},getPopularTreatments:function(t){return t.popularTreatments},getPopularTreatmentsBySiteId:function(t){return function(e){return t.popularTreatments.find((function(t){return t.treatmentCategoryList.find((function(t){return t.siteId==e}))}))}},numberOfTreatments:function(t){return t.numberOfTreatments},getFavoriteTreatments:function(t){return t.favoriteTreatments},getTreatmentsByCategories:function(t){return t.treatmentsByCategories}},state:h,actions:y,mutations:v}},422:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return m}));n(16),n(10),n(9),n(4),n(20),n(12),n(21);var r=n(0),o=n(2),c=(n(17),n(569));function l(t){this.axios=t.axios.create({baseURL:t.env.HOMEPAGE_CORE_API}),this.fetchReceiptById=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.get("receipt/get-receipt-by-id?receiptId=".concat(e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),this.fetchReceiptMock=function(t){return c.default}}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var f={receipt:null},m=function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){Object(o.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},f)},h={setReceipt:function(t,e){t.receipt=e},RESET_MODULE:function(t){Object.assign(t,f)}},v={fetchReceiptById:function(t,e){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var o,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.commit,o=new l({axios:n.$axios,env:n.$config}),r.next=4,o.fetchReceiptById(e);case 4:if(!(c=r.sent)||200!==c.status||!c.data.result){r.next=7;break}return r.abrupt("return",c.data.result);case 7:case"end":return r.stop()}}),r)})))()},fetchMock:function(t,e){(0,t.commit)("setReceipt",new l({axios:this.$axios,env:this.$config}).fetchReceiptMock(e))}};e.default={namespaced:!0,state:m,actions:v,mutations:h}},423:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return c}));var r=n(0);n(17);function o(t){this.axios=t.axios.create({baseURL:t.env.HOMEPAGE_CORE_API}),this.GetLatestInstagramImages=function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.post("instagram/get-latest-instagram-images",e);case 2:if(200!==(n=t.sent).data.responseCode){t.next=5;break}return t.abrupt("return",n.data.result);case 5:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}var c=function(){return{instagramImages:[]}},l={fetchLastestInstagramImages:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,c,l,d,f,m;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,c=t.rootGetters,l=!1,n.prev=2,d=new o({axios:e.$axios,env:e.$config}),!((f=c["salon/getSiteIds"]).length>0)){n.next=11;break}return n.next=8,d.GetLatestInstagramImages(f);case 8:m=n.sent,r("setInstagramImages",m),l=!0;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(2),console.log("Getting instagram images failed with: "+n.t0);case 16:return n.abrupt("return",l);case 17:case"end":return n.stop()}}),n,null,[[2,13]])})))()}};e.default={namespaced:!0,state:c,getters:{getInstagramImages:function(t){return t.instagramImages}},mutations:{setInstagramImages:function(t,e){t.instagramImages=e}},actions:l}},424:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return f}));var r=n(0),o=(n(17),n(45)),c=n(73),l=n.n(c);function d(t){this.baseUrl=t.env.FIXIT_CORE_API_URL,this.GetCurrentUser=Object(r.a)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.a.get(this.baseUrl+"api/authorization/GetCurrentFixitNoUser");case 2:if(!(e=t.sent).data||200!==e.data.responseCode){t.next=5;break}return t.abrupt("return",e.data.dto);case 5:return t.abrupt("return",!0);case 6:case"end":return t.stop()}}),t,this)})))}var f=function(){return{user:{}}},m={getCurrentUser:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,r=new d({env:e.$config}),n.next=4,r.GetCurrentUser();case 4:(c=n.sent)&&t.commit("SET_USER",new o.c(c)),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(0),console.log("Getting user failed with: "+n.t0);case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))()}};e.default={namespaced:!0,state:f,mutations:{SET_USER:function(t,e){t.user=e}},getters:{get:function(t){return function(e){return t[e]}}},actions:m}},427:function(t,e,n){"use strict";e.a={}},435:function(t,e,n){"use strict";n.r(e);var r=n(0),o=n(2),c=(n(17),n(46),n(4),n(19),n(33),n(141)),l=n(589),d=n(45),f=n(86),m=n(281),h=n(445),v=(n(9),n(15),n(26),n(184));function y(t,e){return x.apply(this,arguments)}function x(){return(x=Object(r.a)(regeneratorRuntime.mark((function t(e,n){var r,o,c,l,d,f,m,h,y,x,w,_;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l=e.$store.getters["cart/getCartProducts"],d=Object(v.a)(e),m=[],h=null===(r=n.urlSafe)||void 0===r?void 0:r.split("/")[1],y=n.campaignValue,x=l.find((function(t){return t.base64Id===h}))?null===(o=l.find((function(t){return t.base64Id===h})))||void 0===o?void 0:o.quantity:0,y?(f=n.campaignValue,m=(null===(w=n.stockAmount)||void 0===w?void 0:w.filter((function(p){return d.includes(p.siteId)&&(p.productStockAmount>=(x||0)+1||0==p.productStockAmount)&&(x||0)+1<=5})).map((function(s){return s.siteId})))||[]):(f=n.price,m=(null===(_=n.stockAmount)||void 0===_?void 0:_.filter((function(p){return d.includes(p.siteId)&&p.productStockAmount>=(x||0)+1})).map((function(s){return s.siteId})))||[]),null===(c=m)||void 0===c||!c.length){t.next=18;break}if(y&&!(y&&(x||0)<5)){t.next=15;break}return t.next=11,e.$store.dispatch("cart/insertOrUpdateProduct",{siteId:m[0],isCompleted:!1,salePrice:f||0,quantity:(x||0)+1,productId:h||""});case 11:if(e.addedDialog){t.next=13;break}return t.abrupt("return","addedDialogOpen");case 13:t.next=16;break;case 15:return t.abrupt("return","maxPerCustomerDialog");case 16:t.next=19;break;case 18:return t.abrupt("return","outOfStockDialog");case 19:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var w=n(32),_={components:{RecommendationBox:l.a,FixitDialog:f.default,CartList:m.default,AddToCart:h.default},name:"RecEngineModule",props:{boxTitle:{required:!0,default:""},wrapperClasses:{required:!1,default:""},siteIds:{required:!1,default:function(){return[]}},treatmentIds:{type:Array,required:!1,default:function(){return[]}},itemQty:{required:!1,default:4},location:{required:!1,default:w.d.HOME_PAGE},presentation:{required:!1,default:"carousel"},hideButton:{type:Boolean,required:!1,default:!0},employeeId:{required:!1,default:""},channel:{required:!1,default:w.b.HomePage},itemType:{required:!0,default:w.c.T}},layout:"HomepageLayout",data:function(){return{maxPerCustomerDialog:!1,outOfStockDialog:!1,currentSelectedTreatment:null,addedKey:0,itemsFetched:!1,itemTypeEnum:w.c,locationEnum:w.d,channelEnum:w.b}},computed:Object(o.a)(Object(o.a)({homepageModules:function(){var t,e,n,r=this.$store.getters["cmsConfigHomepage/getModules"],o=null===(t=r.find((function(t){return t.moduleId==c.a.PRICES})))||void 0===t?void 0:t.visible,l=!0;return null!=o&&null!=o&&(l=o),{treatments:null===(e=r.find((function(t){return t.moduleId==c.a.HOMEPAGETREATMENTS})))||void 0===e?void 0:e.visible,prices:l,products:(null===(n=r.find((function(t){return t.moduleId==c.a.SUPPLIERBRANDS})))||void 0===n?void 0:n.visible)&&this.$store.getters["cmsConfigHomepage/getWebshopActiveStatus"]}},bookingActive:function(){return this.$store.getters["salon/bookingEnabledForSite"](this.$store.getters["cart/getSelectedSalon"])},productIds:function(){return this.$store.getters["cart/getCartProducts"].map((function(t){return t.base64Id})).concat(this.$store.getters["cart/getCartBundles"].map((function(t){return t.base64Id})))},chainId:function(){return this.$store.getters["cmsConfigHomepage/getChainId"]},isDraft:function(){return this.$store.getters["cmsConfigHomepage/isDraftMode"]},chainAppointmentButtonOverrideUrl:function(){return this.$store.getters["cmsConfigHomepage/getAppointmentButtonOverrideUrl"]},chainAppointmentButtonOverrideText:function(){return this.$store.getters["cmsConfigHomepage/getAppointmentButtonOverrideText"]},overrideText:function(){if(1==this.siteIds.length&&0!==this.siteIds[0]){var t=this.$store.getters["salon/getSalonById"](this.siteIds[0]);return this.chainAppointmentButtonOverrideText?this.chainAppointmentButtonOverrideText:t.appointmentButtonOverrideText?t.appointmentButtonOverrideText:null}return null},overrideUrl:function(){return this.selectedSalon&&this.selectedSalon.appointmentButtonOverrideUrl?this.selectedSalon.appointmentButtonOverrideUrl:null}},"overrideText",(function(){var t=this.$store.getters["cart/getSelectedSalon"];if(t){var e=this.$store.getters["salon/getSalonById"](t);return e.appointmentButtonOverrideText?e.appointmentButtonOverrideText:null}return null})),"user",(function(){return new d.c(this.$store.getters["app/get"]("user"))})),methods:Object(o.a)(Object(o.a)({GoToTreatment:function(t){this.$router.push("/behandlinger/".concat(t.urlSafe))},addOrRemove:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.addedKey+=1,e.currentSelectedTreatment=t;case 2:case"end":return n.stop()}}),n)})))()},moreTreatment:function(){this.$router.push("/Behandlinger")},setFetched:function(t){this.$emit("itemsFetched",t),this.itemsFetched=t},addMinutes:function(t,e){return new Date(t.getTime()+6e4*e)},moreProduct:function(){window.open("".concat(this.$config.PORTAL_URL,"/nettbutikk/").concat(this.chainId,"/"))},productRedirect:function(t){this.isDraft||window.open(this.$config.PORTAL_URL+"/nettbutikk/".concat(this.chainId,"/produkt/").concat(t.urlSafe,"/"),"_blank")}},"setFetched",(function(t){this.$emit("itemsFetched",t),this.itemsFetched=t})),"addToCartRecEngine",(function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,y(e,t);case 2:r=n.sent,n.t0=r,n.next="addedDialogOpen"===n.t0?6:"addedDialogClose"===n.t0?8:"maxPerCustomerDialog"===n.t0?10:"outOfStockDialog"===n.t0?12:14;break;case 6:return e.$root.$emit("openAddedToCartDialog",w.c.P),n.abrupt("break",14);case 8:return e.$root.$emit("closeAddedToCartDialog"),n.abrupt("break",14);case 10:return e.maxPerCustomerDialog=!0,n.abrupt("break",14);case 12:return e.outOfStockDialog=!0,n.abrupt("break",14);case 14:case"end":return n.stop()}}),n)})))()}))},C=(n(806),n(3)),component=Object(C.a)(_,(function(){var t=this,e=t._self._c;return e("div",[t.itemType===t.itemTypeEnum.P?e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:t.itemsFetched,expression:"itemsFetched"}]},[t.homepageModules.products?e("div",{attrs:{id:"products"}},[e("div",{class:{center:t.$vuetify.breakpoint.mdAndUp}},[e("div",{class:t.wrapperClasses},[e("recommendation-box",{attrs:{itemType:t.itemType,boxTitle:t.boxTitle,btnText:t.hideButton?null:"Flere produkter",presentation:t.presentation,userId:0!=t.user.onlineSluttKundeId?t.user.onlineSluttKundeId:null,itemQty:12,chainId:t.chainId,siteIds:t.siteIds,location:t.location,channel:t.channel,urlBase:t.$config.VUE_APP_FRE_API_URL,productIds:t.productIds},on:{cardClick:function(e){return t.productRedirect(e)},clickMoreBtn:function(e){!t.isDraft&&t.moreProduct()},buttonClick:function(e){return t.addToCartRecEngine(e)},itemsFetched:function(e){return t.setFetched(e)}}})],1)])]):t._e(),t._v(" "),e("FixitDialog",{attrs:{"max-width":"580px",show:t.maxPerCustomerDialog,title:"Maks 5 per kunde",titleIcon:"fxt-treatment"},on:{toggle:function(e){t.maxPerCustomerDialog=!1}}},[e("div",{staticClass:"pa-4"},[e("p",{class:t.$vuetify.breakpoint.mdAndDown?"pa-4":"mx-4 px-16 py-4"},[t._v("\n            Maks 5 av dette produktet per kunde.\n          ")])])]),t._v(" "),e("FixitDialog",{attrs:{"max-width":"580px",show:t.outOfStockDialog,title:"Ikke flere på lager",titleIcon:"fxt-dispenser"},on:{toggle:function(e){t.outOfStockDialog=!1}}},[e("div",{staticClass:"pa-4"},[e("p",{class:t.$vuetify.breakpoint.mdAndDown?"pa-4":"mx-4 px-16 py-4"},[t._v("\n            Salongen har dessverre ikke flere produkter tilgjengelig på lager.\n          ")])])])],1)]):t._e(),t._v(" "),t.itemType===t.itemTypeEnum.T?e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:t.itemsFetched,expression:"itemsFetched"}],attrs:{id:"treatments"}},[e("div",{class:{center:t.$vuetify.breakpoint.mdAndUp}},[t.homepageModules.treatments?e("div",{class:t.wrapperClasses},[e("recommendation-box",{class:[t.homepageModules.prices?"":"price-hidden",t.bookingActive?"":"add-hidden"],attrs:{itemType:t.itemType,boxTitle:t.boxTitle,btnText:t.hideButton?null:"Flere behandlinger",presentation:t.presentation,userId:0!=t.user.onlineSluttKundeId&&""==t.employeeId?t.user.onlineSluttKundeId:null,itemQty:t.itemQty,chainId:t.chainId,siteIds:t.siteIds,location:t.location,channel:t.channel,employeeId:t.employeeId,treatmentIds:t.treatmentIds,urlBase:t.$config.VUE_APP_FRE_API_URL,overrideText:t.overrideText},on:{clickMoreBtn:t.moreTreatment,cardClick:function(e){return"P"===e.type?t.productRedirect(e):t.GoToTreatment(e)},buttonClick:function(e){return"P"===e.type?t.addToCartRecEngine(e):t.addOrRemove(e)},itemsFetched:function(e){return t.setFetched(e)}}})],1):t._e(),t._v(" "),t.currentSelectedTreatment?e("AddToCart",{key:t.currentSelectedTreatment.id+t.addedKey,attrs:{"is-rec-engine":"",employeeId:""!==t.employeeId?t.employeeId:null,treatment:t.currentSelectedTreatment}}):t._e()],1)])]):t._e(),t._v(" "),t.itemType===t.itemTypeEnum.C?e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:t.itemsFetched,expression:"itemsFetched"}],attrs:{id:"treatments-and-products"}},[e("div",{class:{center:t.$vuetify.breakpoint.mdAndUp}},[t.homepageModules.treatments&&t.homepageModules.products?e("div",{class:t.wrapperClasses},[e("recommendation-box",{class:[t.homepageModules.prices?"":"price-hidden",t.bookingActive?"":"add-hidden"],attrs:{itemType:t.itemType,boxTitle:t.boxTitle,presentation:t.presentation,userId:0!=t.user.onlineSluttKundeId&&""==t.employeeId?t.user.onlineSluttKundeId:null,itemQty:t.itemQty,chainId:t.chainId,siteIds:t.siteIds,location:t.location,channel:t.channel,employeeId:t.employeeId,treatmentIds:t.treatmentIds,productIds:t.productIds,urlBase:t.$config.VUE_APP_FRE_API_URL,overrideText:t.overrideText},on:{cardClick:function(e){return"P"===e.type?t.productRedirect(e):t.GoToTreatment(e)},buttonClick:function(e){return"P"===e.type?t.addToCartRecEngine(e):t.addOrRemove(e)},itemsFetched:function(e){return t.setFetched(e)}}})],1):t._e(),t._v(" "),t.currentSelectedTreatment?e("AddToCart",{key:t.currentSelectedTreatment.id+t.addedKey,attrs:{"is-rec-engine":"",employeeId:""!==t.employeeId?t.employeeId:null,treatment:t.currentSelectedTreatment}}):t._e()],1)])]):t._e()])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{FixitDialog:n(86).default})},444:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(574),o=n.n(r),c=n(575),l=n.n(c);function d(){return{banner:"https://picsum.photos/500/300?image=20",AppIconAppleAppStoreSvg:o.a,AppIconGooglePlayStoreSvg:l.a,AppIconHuaweiAppGallerySvg:"https://res.cloudinary.com/odin-systemer/image/upload/v1620134139/resources/Hjemmeside_Malbilder/appgallery.svg",AppRedirectUrlAppleAppStore:"http://itunes.apple.com/no/app/fixit-timebestilling/id428497923?mt=8",AppRedirectUrlGooglePlayStore:"http://market.android.com/details?id=no.odinsystemer.fixit&referrer=",AppRedirectUrlHuaweiAppGallery:"https://appgallery.huawei.com/#/app/C104239241"}}},445:function(t,e,n){"use strict";n.r(e);var r=n(403),o=n(407),c=n(218),l=n(570),d=n(401),f=n(217),m=(n(24),n(0)),h=(n(9),n(4),n(46),n(64),n(15),n(26),n(33),n(19),n(12),n(17),n(86)),v=n(521),y=n(45),x=n(32),w={components:{FixitDialog:h.default},name:"AddToCart",props:{treatment:{type:Object,required:!1},isRecEngine:{required:!1,type:Boolean},employeeId:{required:!1,default:null}},data:function(){return{salons:[],selectSalonDialog:!1,illegalTreatmentCombinationDialog:!1,loading:!1}},computed:{isCheckout:function(){return"/cart"===this.$route.path},user:function(){return new y.c(this.$store.getters["app/get"]("user"))}},methods:{selectSalonAndAddToCart:function(t){var e=this;return Object(m.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(null==t.appointmentButtonOverrideUrl){n.next=4;break}""!=t.appointmentButtonOverrideUrl&&window.open(t.appointmentButtonOverrideUrl,"_self"),n.next=8;break;case 4:return e.$store.commit("cart/setSelectedSalon",t.siteId),n.next=7,e.addOrRemove(t.siteId);case 7:e.selectSalonDialog=!1;case 8:case"end":return n.stop()}}),n)})))()},addOrRemove:function(t){var e=this;return Object(m.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,e.employeeId&&(n=e.$store.getters["employees/getEmployeesBySiteId"](e.$store.getters["cart/getSelectedSalon"]).filter((function(t){return t.availableForOnlineBooking})),e.$store.commit("cart/setPreselectedEmployee",n.find((function(t){return t.base64EmployeeId===e.employeeId})))),e.isDraft()){t.next=29;break}if(!e.treatmentIsInCart(e.treatment)){t.next=10;break}return e.$store.commit("cart/setPreviousSelectedSalon",0),t.next=7,e.$store.dispatch("cart/deleteShoppingCartItem",{item:e.treatment,type:"T"});case 7:0===e.$store.getters["cart/getCartCount"]&&e.$root.$emit("closeAddedToCartDialog"),t.next=29;break;case 10:if(!(r=e.$store.getters["cart/getSelectedSalon"])){t.next=28;break}if(e.$store.getters["cart/getCart"],!e.salonCanPerformTreatment(r)){t.next=25;break}return t.next=16,e.employeeInSalonCanPerformTreatmentCombination();case 16:if(!t.sent){t.next=22;break}return t.next=19,e.$store.dispatch("cart/insertOrUpdateTreatment",e.treatment);case 19:e.isCheckout||e.$root.$emit("openAddedToCartDialog",x.c.T),t.next=23;break;case 22:e.illegalTreatmentCombinationDialog=!0;case 23:t.next=26;break;case 25:e.$store.commit("cart/setShowCrossSiteDialog",!0);case 26:t.next=29;break;case 28:e.selectSalonDialog=!0;case 29:e.loading=!1;case 30:case"end":return t.stop()}}),t)})))()},treatmentIsInCart:function(){return this.$store.getters["cart/treatmentIsInCart"](this.isRecEngine?this.treatment.id:this.treatment.treatmentId)},salonDistance:function(t){return null==t||null==t||NaN==t||0==t||""==t?"":t<1?Math.round(1e3*t)+" meter unna":t>=1&&t<=100?t.toFixed(1)+" kilometer unna":t>100?Math.round(t)+" kilometer unna":void 0},salonCanPerformTreatment:function(t){return this.treatment.pricePerSite.map((function(t){return t.siteId})).includes(t)},employeeInSalonCanPerformTreatmentCombination:function(){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){var n,r,o,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.$store.getters["cart/getCart"],r=t.$store.getters["employees/getEmployeesBySiteId"](t.$store.getters["cart/getSelectedSalon"]).filter((function(t){return t.availableForOnlineBooking})),o=!1,n&&!n.treatmentIds?o=!0:n&&n.treatmentIds&&n.treatmentIds.length?(c=n.treatmentIds.concat([t.isRecEngine?t.treatment.id:t.treatment.treatmentId]),r.forEach((function(t){var e=0;c.forEach((function(n){t.treatments.filter((function(t){return t===n})).length&&e++})),e===c.length&&(o=!0)}))):o=!0,e.abrupt("return",o);case 5:case"end":return e.stop()}}),e)})))()},isDraft:function(){return this.$store.getters["cmsConfigHomepage/isDraftMode"]},salonImage:function(t){var e=this.$store.getters["cmsConfigHomepage/getSites"],n=(t=e.filter((function(e){return e.siteId==t.siteId}))[0]).salonImageUrl;return n&&null!=n&&null!=n?n:"https://res.cloudinary.com/odin-systemer-test/image/upload/v1504878858/defaults/d_missing_image.png"}},mounted:function(){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.addOrRemove();case 2:return t.salons=t.$store.getters["salon/getSalons"].filter((function(e){return e.enabled&&t.salonCanPerformTreatment(e.siteId)})),e.next=5,t.$store.dispatch("employees/getSiteEmployees",t.$store.getters["cart/getSelectedSalon"]);case 5:if(!(t.salons.length>1)){e.next=8;break}return e.next=8,Object(v.a)(t,t.salons);case 8:case"end":return e.stop()}}),e)})))()}},_=(n(804),n(3)),component=Object(_.a)(w,(function(){var t=this,e=t._self._c;return e("div",[t.loading?e(d.a,{staticClass:"align-center justify-center",staticStyle:{"z-index":"2000"},attrs:{"model-value":t.loading}},[t.loading?e(f.a,{attrs:{color:"primary",indeterminate:"",size:"64"}}):t._e()],1):t._e(),t._v(" "),e("FixitDialog",{attrs:{show:t.selectSalonDialog,"max-width":"422px","fullscreen-on-mobile":"","fit-to-side":"",title:"Hvor vil du bestille time?"},on:{toggle:function(e){t.selectSalonDialog=!1}}},t._l(t.salons,(function(n,i){return e("div",{key:n.siteId,staticClass:"salon-list-item px-4",class:0===i?"py-4":"py-2",on:{click:function(e){return t.selectSalonAndAddToCart(n)}}},[e("div",{staticClass:"row align-center ma-0"},[e("div",{staticClass:"pa-0 col-10"},[e("div",{staticClass:"d-flex no-wrap"},[t.$vuetify.breakpoint.mdAndUp?e("div",{staticClass:"relative-position pr-4"},[e(l.a,{attrs:{src:t.salonImage(n),width:"116px",height:"76px"}})],1):t._e(),t._v(" "),e("div",{},[e("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(n.name))]),t._v(" "),e("p",{staticClass:"mb-0"},[t._v(t._s(n.address))]),t._v(" "),e("p",{staticClass:"mb-0"},[t._v(t._s(t.salonDistance(n.distanceFromUser)))]),t._v(" "),n.appointmentButtonOverrideText?e(o.a,{staticClass:"mt-1",attrs:{color:"primary"}},[t._v(t._s(n.appointmentButtonOverrideText))]):t._e()],1)])]),t._v(" "),e("div",{staticClass:"pa-0 col-2"},[e("div",{staticClass:"row justify-end align-center ma-0"},[e(r.a,{staticClass:"ml-2",attrs:{icon:"",color:"primary"}},[e(c.a,[t._v("fxt-chevron-right")])],1)],1)])])])})),0),t._v(" "),e("FixitDialog",{attrs:{"max-width":"580px",show:t.illegalTreatmentCombinationDialog,title:"Behandlingene kan ikke kombineres",titleIcon:"fxt-treatment"},on:{toggle:function(e){t.illegalTreatmentCombinationDialog=!1}}},[e("div",{staticClass:"pa-4"},[e("p",{class:t.$vuetify.breakpoint.mdAndDown?"pa-4":"mx-4 px-16 py-4"},[t._v("\n        Vi har dessverre ingen ansatt som kan utføre de valgte behandlingene.\n        Du kan fortsatt bestille behandlingene separat.\n      ")])])])],1)}),[],!1,null,"5296ddd1",null);e.default=component.exports;installComponents(component,{FixitDialog:n(86).default})},490:function(t,e,n){var content=n(665);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("a106a800",content,!0,{sourceMap:!1})},491:function(t,e,n){var content=n(667);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("709683a2",content,!0,{sourceMap:!1})},501:function(t,e,n){var content=n(746);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("48df2fe2",content,!0,{sourceMap:!1})},502:function(t,e,n){var content=n(748);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("0d5f645e",content,!0,{sourceMap:!1})},503:function(t,e,n){var content=n(750);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("33eeb04c",content,!0,{sourceMap:!1})},504:function(t,e,n){var content=n(762);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("37213d9e",content,!0,{sourceMap:!1})},505:function(t,e,n){var content=n(764);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("98b33a16",content,!0,{sourceMap:!1})},506:function(t,e,n){var content=n(766);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("89e4a014",content,!0,{sourceMap:!1})},507:function(t,e,n){var content=n(768);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("7f4f8e4f",content,!0,{sourceMap:!1})},508:function(t,e,n){var content=n(770);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("3fa57be8",content,!0,{sourceMap:!1})},509:function(t,e,n){var content=n(772);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("93e7933a",content,!0,{sourceMap:!1})},522:function(t,e,n){var content=n(805);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("6c0ccde7",content,!0,{sourceMap:!1})},523:function(t,e,n){var content=n(807);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("012a378c",content,!0,{sourceMap:!1})},565:function(t,e,n){var content=n(961);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("180b4ee0",content,!0,{sourceMap:!1})},568:function(t,e,n){var content=n(969);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("2e8a84c0",content,!0,{sourceMap:!1})},569:function(t,e,n){"use strict";n.r(e);e.default={siteInfo:{siteName:"Annes Hårdesign Laksevåg",address:"Kringsjåveien 83",postArea:"5163 laksevåg",phoneNumber:"55346001",organisationNumber:"Orgnr: 983456642",webPage:"www.anneshaardesign.no",hasBonusPointsEnabled:!0,bottomTexts:["Besøk oss gjerne igjen!"]},visitInfo:[{customerName:"Remzo Alibasic",employeeName:"Kjersti S.",salesLine:[{quantity:1,description:"Vask m/ tørk i hjelm",employeeInitials:"KE ",salesPrice:165,taxPercent:25,discounts:[],bonusPointsUsed:10,productSerie:""},{quantity:1,description:"Lugg                ",employeeInitials:"KE ",salesPrice:245,taxPercent:25,discounts:[{discountName:"Rabatt på joker",discountPercent:18.33,beforePrice:300,discountAmount:55,bonusWithdrawal:0,isCampaignDiscount:!0}],bonusPointsUsed:0,productSerie:""},{quantity:1,description:"Vask/føhn/legg      ",employeeInitials:"KE ",salesPrice:480,taxPercent:25,discounts:[],bonusPointsUsed:0,productSerie:""},{quantity:1,description:"Hårkrem",employeeInitials:"KE ",salesPrice:200,taxPercent:25,discounts:[],bonusPointsUsed:0,productSerie:"wella"}],receiptPayment:{totalPrice:890,totalClaimsPayed:0,totalTax:178,taxInfo:[{totalWithTax:50,taxPercent:0,taxAmount:0,totalWithoutTax:50}]},claims:[{description:"dunno",employeeInitials:"ks",amount:20}],bonusPointsAvailable:38,bonusPointsEarned:7,bonusPointsUsed:10,donations:[{title:"Redd kjetil",employeeInitials:"",salesPrice:20,subTitle:""}]}],dateAndTime:"2015-12-11T12:59:03",voucherNumber:10,cash:860,debitCard:10,creditCard:10,credit:10,giftCertificates:[{giftCertificateNumber:1e3,amount:300}],moneyBack:10,roundedAmount:10,chainId:694,customerId:"BD74XyR@uBIUxIHP",mobile:"92247992",systemId:"b501-234-bx",giftcardBought:[{giftCertificateNumber:1001,amount:100,physicalGiftcardId:null}],usedIntegratedTermianl:!0,terminalPayments:[{cardType:"debit",amount:10,termianlReceipt:"",gavekortId:"1100",physicalGiftcardId:"",externalGiftcardId:""}],giro:100}},574:function(t,e,n){t.exports=n.p+"img/app_store_logo_ensfarget.04da34a.svg"},575:function(t,e,n){t.exports=n.p+"img/google_play_logo_ensfarget.4fd7bcd.svg"},588:function(t,e,n){"use strict";var r=n(0),o=(n(17),n(4),n(53),n(5)),c=n(14),l=window.__NUXT__;function d(){if(!this._hydrated)return this.$fetch()}function f(){if((t=this).$vnode&&t.$vnode.elm&&t.$vnode.elm.dataset&&t.$vnode.elm.dataset.fetchKey){var t;this._hydrated=!0,this._fetchKey=this.$vnode.elm.dataset.fetchKey;var data=l.fetch[this._fetchKey];if(data&&data._error)this.$fetchState.error=data._error;else for(var e in data)o.default.set(this.$data,e,data[e])}}function m(){var t=this;return this._fetchPromise||(this._fetchPromise=h.call(this).then((function(){delete t._fetchPromise}))),this._fetchPromise}function h(){return v.apply(this,arguments)}function v(){return(v=Object(r.a)(regeneratorRuntime.mark((function t(){var e,n,r,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.$nuxt.nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1,e=null,n=Date.now(),t.prev=6,t.next=9,this.$options.fetch.call(this);case 9:t.next=15;break;case 11:t.prev=11,t.t0=t.catch(6),e=Object(c.p)(t.t0);case 15:if(!((r=this._fetchDelay-(Date.now()-n))>0)){t.next=19;break}return t.next=19,new Promise((function(t){return setTimeout(t,r)}));case 19:this.$fetchState.error=e,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return t.stop()}}),t,this,[[6,11]])})))).apply(this,arguments)}e.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.default.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=m.bind(this),Object(c.a)(this,"created",f),Object(c.a)(this,"beforeMount",d))}}},591:function(t,e,n){"use strict";n.r(e);var r=n(403),o=n(218),c=n(570),l=(n(13),n(27),n(64),n(0)),d=(n(17),n(33),n(9),n(4),n(15),n(26),n(35),n(47),n(24),n(59),n(43),n(10),n(49),n(69),n(50),n(86)),f=n(184);function m(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var v={components:{FixitDialog:d.default},props:{bundle:{type:Object,required:!0}},data:function(){return{maxPerCustomerDialog:!1,soldOutDialog:!1}},methods:{formatPrice:function(){return this.bundle.campaignValue.toFixed(2).replace(".",",")},bundleRedirect:function(){},addOrRemove:function(t){var e=this;return Object(l.a)(regeneratorRuntime.mark((function n(){var r,o,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=Object(f.a)(e),o=e.bundle.subscriptionsList,c=null==o?void 0:o.filter((function(p){return r.includes(p.siteId)&&(p.availableAmount>=e.bundle.quantity+1||0==p.availableAmount)})).map((function(s){return s.siteId})),"add"!==t){n.next=7;break}null!=c&&c.length?e.bundle.quantity<e.bundle.maxPerCustomer?e.bundleIsInStock(e.bundle,c[0])&&e.$store.dispatch("cart/insertOrUpdateProduct",{siteId:e.$store.getters["cart/getSalonPoolDefaultSiteId"],isCompleted:!1,salePrice:e.bundle.campaignValue,quantity:e.bundle.quantity+1,productId:e.bundle.campaignId.toString()}):e.maxPerCustomerDialog=!0:e.soldOutDialog=!0,n.next=18;break;case 7:if("remove"!==t){n.next=16;break}if(!(e.bundle.quantity-1<=0)){n.next=13;break}return n.next=11,e.$store.dispatch("cart/deleteShoppingCartItem",{item:e.bundle,type:"P"});case 11:n.next=14;break;case 13:e.$store.dispatch("cart/insertOrUpdateProduct",{siteId:e.$store.getters["cart/getSalonPoolDefaultSiteId"],isCompleted:!1,salePrice:e.bundle.campaignValue,quantity:e.bundle.quantity-1,productId:e.bundle.campaignId.toString()});case 14:n.next=18;break;case 16:return n.next=18,e.$store.dispatch("cart/deleteShoppingCartItem",{item:e.bundle,type:"P"});case 18:case"end":return n.stop()}}),n)})))()},bundleIsInCart:function(){return this.$store.getters["cart/bundleIsInCart"](this.bundle.campaignId)},bundleIsInStock:function(t,e){var n,r=!0,o=m(t.products);try{for(o.s();!(n=o.n()).done;){var c=n.value;c.amount*(t.quantity+1)>c.stockCountSalons[e]&&(r=!1)}}catch(t){o.e(t)}finally{o.f()}return r}}},y=(n(761),n(3)),component=Object(y.a)(v,(function(){var t=this,e=t._self._c;return t.bundle?e("div",{staticClass:"row align-center ma-0 px-4 py-2"},[e("div",{staticClass:"pa-0",class:t.$vuetify.breakpoint.mdAndDown?"col-7":"col-6"},[e("div",{staticClass:"d-flex no-wrap"},[t.$vuetify.breakpoint.mdAndUp?e("div",{staticClass:"pr-4"},[e(c.a,{attrs:{src:t.bundle.imgUrl,width:"86px",height:"57px"}})],1):t._e(),t._v(" "),e("div",{staticClass:"bundle-text"},[e("p",{staticClass:"mb-1 bundle-text__name",on:{click:function(e){return t.bundleRedirect(t.bundle)}}},[t._v(t._s(t.bundle.campaignName))]),t._v(" "),e("div",{staticClass:"d-flex align-center items-center mt-2"},[e(r.a,{attrs:{color:"primary",fab:"",small:"",outlined:"",disabled:1===t.bundle.quantity},on:{click:function(e){return t.addOrRemove("remove")}}},[e(o.a,{attrs:{dark:""}},[t._v("\n                        fxt-minus-alt\n                    ")])],1),t._v(" "),e("div",[e("p",{staticClass:"mb-0 mx-2"},[e("span",[t._v(t._s(t.bundle.quantity))])])]),t._v(" "),e(r.a,{attrs:{color:"primary",fab:"",small:"",outlined:""},on:{click:function(e){return t.addOrRemove("add")}}},[e(o.a,{attrs:{dark:""}},[t._v("\n                        fxt-plus-alt\n                    ")])],1)],1)])])]),t._v(" "),e("div",{staticClass:"pa-0",class:t.$vuetify.breakpoint.mdAndDown?"col-5":"col-6"},[e("div",{staticClass:"row justify-end align-center ma-0"},[e("div",{staticClass:"price"},[e("span",{staticClass:"price__number__old-price"},[t._v("\n                    "+t._s((t.bundle.totalValue*t.bundle.quantity).toFixed(2).replace(".",","))+"\n                ")]),t._v(" "),e("span",{staticClass:"price__number font-weight-bold"},[t._v("\n                    "+t._s((t.bundle.campaignValue*t.bundle.quantity).toFixed(2).replace(".",","))+"\n                ")])]),t._v(" "),e(r.a,{staticClass:"ml-2",attrs:{icon:"",color:"primary"},on:{click:function(e){return t.addOrRemove("delete")}}},[e(o.a,[t._v("fxt-trash")])],1)],1)]),t._v(" "),e("FixitDialog",{attrs:{"max-width":"580px",show:t.maxPerCustomerDialog,title:"Du kan ikke legge til flere av produktet",titleIcon:"fxt-cart"},on:{toggle:function(e){t.maxPerCustomerDialog=!1}}},[e("div",{staticClass:"pa-4"},[e("p",{class:t.$vuetify.breakpoint.mdAndDown?"pa-4":"mx-4 px-16 py-4"},[t._v("Maks "+t._s(t.bundle.maxPerCustomer)+" av dette produktet per kunde.")])]),t._v(" "),e("div",{staticClass:"d-flex justify-end"},[e(r.a,{staticClass:"mb-4 mr-4",attrs:{rounded:"",color:"primary"},on:{click:function(e){t.maxPerCustomerDialog=!1}}},[e("p",{staticClass:"mb-0 px-8"},[t._v("Ok")])])],1)]),t._v(" "),e("FixitDialog",{attrs:{"max-width":"580px",show:t.soldOutDialog,title:"Produktet er utsolgt",titleIcon:"fxt-cart"},on:{toggle:function(e){t.soldOutDialog=!1}}},[e("div",{staticClass:"pa-4"},[e("p",{class:t.$vuetify.breakpoint.mdAndDown?"pa-4":"mx-4 px-16 py-4"},[t._v("Et eller flere av produktene er utsolgt")])]),t._v(" "),e("div",{staticClass:"d-flex justify-end"},[e(r.a,{staticClass:"mb-4 mr-4",attrs:{rounded:"",color:"primary"},on:{click:function(e){t.soldOutDialog=!1}}},[e("p",{staticClass:"mb-0 px-8"},[t._v("Ok")])])],1)])],1):t._e()}),[],!1,null,"7394e228",null);e.default=component.exports;installComponents(component,{FixitDialog:n(86).default})},592:function(t,e,n){"use strict";n.r(e);var r=n(403),o=n(218),c=n(570),l=(n(24),n(13),n(27),n(64),n(0)),d=(n(17),n(19),n(15),n(26),n(33),n(9),n(4),n(46),n(12),n(86)),f=n(229),m=n(184),h={components:{CartFavoriteIcon:f.default,FixitDialog:d.default},props:{product:{type:Object,required:!0}},data:function(){return{soldOutDialog:!1}},computed:{chainId:function(){return this.$store.getters["cmsConfigHomepage/getChainId"]}},methods:{formatPrice:function(){return(this.product.price*this.product.quantity).toFixed(2).replace(".",",")},productRedirect:function(){window.open(this.$config.PORTAL_URL+"/nettbutikk/".concat(this.chainId,"/produkt/").concat(this.product.urlSafeName,"/").concat(this.product.base64Id),"_blank")},isFavorite:function(){var t=this.$store.getters["products/getFavoriteProducts"];return!(!t||!t.length)&&this.$store.getters["products/getFavoriteProducts"].map((function(t){return t.productId})).includes(this.product.id)},addOrRemove:function(t){var e=this;return Object(l.a)(regeneratorRuntime.mark((function n(){var r,o,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=Object(m.a)(e),o=e.product.stockAmount,c=null==o?void 0:o.filter((function(p){return r.includes(p.siteId)&&p.productStockAmount>=e.product.quantity+1})).map((function(s){return s.siteId})),"add"!==t){n.next=13;break}if(null==c||!c.length){n.next=10;break}if(!e.productIsInStock(e.product,c[0])){n.next=8;break}return n.next=8,e.$store.dispatch("cart/insertOrUpdateProduct",{siteId:e.$store.getters["cart/getSalonPoolDefaultSiteId"],isCompleted:!1,salePrice:e.product.price,quantity:e.product.quantity+1,productId:e.product.base64Id});case 8:n.next=11;break;case 10:e.soldOutDialog=!0;case 11:n.next=25;break;case 13:if("remove"!==t){n.next=23;break}if(!(e.product.quantity-1<=0)){n.next=19;break}return n.next=17,e.$store.dispatch("cart/deleteShoppingCartItem",{item:e.product,type:"P"});case 17:n.next=21;break;case 19:return n.next=21,e.$store.dispatch("cart/insertOrUpdateProduct",{siteId:e.$store.getters["cart/getSalonPoolDefaultSiteId"],isCompleted:!1,salePrice:e.product.price,quantity:e.product.quantity-1,productId:e.product.base64Id});case 21:n.next=25;break;case 23:return n.next=25,e.$store.dispatch("cart/deleteShoppingCartItem",{item:e.product,type:"P"});case 25:0===e.$store.getters["cart/getCartCount"]&&e.$root.$emit("closeAddedToCartDialog");case 26:case"end":return n.stop()}}),n)})))()},productIsInCart:function(){return this.$store.getters["cart/productIsInCart"](this.product.id)},productIsInStock:function(t,e){var n;return t.quantity+1<=((null===(n=t.stockAmount.find((function(t){return t.siteId===e})))||void 0===n?void 0:n.productStockAmount)||0)},itemDiscount:function(){var t=this.product.price,e=0,n=0,r="";return this.product.discounts.length&&this.product.discounts.forEach((function(t){e+=t.discountPrice*t.quantity,n+=t.quantity,r=t.discountText})),n<=this.product.quantity&&n>0&&(t=(e+=this.product.price*(this.product.quantity-n))/(this.product.quantity+n)),{salePrice:t,price:this.product.price,totalSalePrice:e||this.product.price*this.product.quantity,totalValue:this.product.price*this.product.quantity,discounted:n>0,discountText:r}}}},v=(n(765),n(3)),component=Object(v.a)(h,(function(){var t=this,e=t._self._c;return t.product?e("div",{staticClass:"row align-center ma-0 px-4 py-2"},[e("div",{staticClass:"pa-0",class:t.$vuetify.breakpoint.mdAndDown?"col-7":"col-6"},[e("div",{staticClass:"d-flex no-wrap"},[t.$vuetify.breakpoint.mdAndUp?e("div",{staticClass:"cart-item-img pr-4"},[e(c.a,{attrs:{src:t.product.imageUrl,width:"86px",height:"57px"}}),t._v(" "),t.isFavorite(t.product)?e("CartFavoriteIcon"):t._e()],1):t._e(),t._v(" "),e("div",{staticClass:"product-text"},[e("p",{staticClass:"mb-1 product-text__name",on:{click:function(e){return t.productRedirect(t.product)}}},[t._v(t._s(t.product.name))]),t._v(" "),e("p",{staticClass:"mb-1 font-weight-regular"},[t._v(t._s(t.product.brandName))]),t._v(" "),e("div",{staticClass:"d-flex align-center items-center mt-2"},[e(r.a,{attrs:{color:"primary",fab:"",small:"",outlined:"",disabled:1===t.product.quantity},on:{click:function(e){return t.addOrRemove("remove")}}},[e(o.a,{attrs:{dark:""}},[t._v("\n                        fxt-minus-alt\n                    ")])],1),t._v(" "),e("div",[e("p",{staticClass:"mb-0 mx-2"},[e("span",[t._v(t._s(t.product.quantity))])])]),t._v(" "),e(r.a,{attrs:{color:"primary",fab:"",small:"",outlined:""},on:{click:function(e){return t.addOrRemove("add")}}},[e(o.a,{attrs:{dark:""}},[t._v("\n                        fxt-plus-alt\n                    ")])],1)],1)])])]),t._v(" "),e("div",{staticClass:"pa-0",class:t.$vuetify.breakpoint.mdAndDown?"col-5":"col-6"},[e("div",{staticClass:"row justify-end align-center ma-0"},[t.itemDiscount().discounted?e("div",{staticClass:"price"},[e("span",{staticClass:"price__number__old-price"},[t._v("\n                    "+t._s(t.itemDiscount().totalValue.toFixed(2).replace(".",","))+"\n                ")]),t._v(" "),e("span",{staticClass:"price__number__discounted font-weight-bold"},[t._v("\n                    "+t._s(t.itemDiscount().totalSalePrice.toFixed(2).replace(".",","))+"\n                ")])]):e("div",[e("div",{staticClass:"mt-1"},[e("span",{staticClass:"price__number font-weight-bold"},[t._v(t._s(t.formatPrice()))])])]),t._v(" "),e(r.a,{staticClass:"ml-2",attrs:{icon:"",color:"primary"},on:{click:function(e){return t.addOrRemove("delete")}}},[e(o.a,[t._v("fxt-trash")])],1)],1)]),t._v(" "),e("FixitDialog",{attrs:{"max-width":"580px",show:t.soldOutDialog,title:"Produktet er utsolgt",titleIcon:"fxt-cart"},on:{toggle:function(e){t.soldOutDialog=!1}}},[e("div",{staticClass:"pa-4"},[e("p",{class:t.$vuetify.breakpoint.mdAndDown?"pa-4":"mx-4 px-16 py-4"},[t._v("Salongen har ikke flere av produktet på lager.")])]),t._v(" "),e("div",{staticClass:"d-flex justify-end"},[e(r.a,{staticClass:"mb-4 mr-4",attrs:{rounded:"",color:"primary"},on:{click:function(e){t.soldOutDialog=!1}}},[e("p",{staticClass:"mb-0 px-8"},[t._v("Ok")])])],1)])],1):t._e()}),[],!1,null,"cc0b3744",null);e.default=component.exports;installComponents(component,{FixitDialog:n(86).default})},593:function(t,e,n){"use strict";n.r(e);var r=n(403),o=n(218),c=n(570),l=n(0),d=n(40),f=(n(17),n(13),n(27),n(64),n(33),n(19),n(15),n(26),{components:{CartFavoriteIcon:n(229).default},props:{treatment:{type:Object,default:null,required:!0}},computed:{preselectedEmployee:function(){return this.$store.getters["cart/getPreselectedEmployee"]}},methods:{formatPrice:function(t){return Math.min.apply(Math,Object(d.a)(t.pricePerSite.map((function(t){return t.price})))).toFixed(2).replace(".",",")},treatmentRedirect:function(t){this.$router.push("behandlinger/".concat(t.urlSafeTreatmentName,"/").concat(t.urlSafe))},isFavorite:function(t){return this.$store.getters["treatments/getFavoriteTreatments"].map((function(t){return t.treatmentId})).includes(t.treatmentId)},addOrRemove:function(t){var e=this;return Object(l.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.treatmentIsInCart(t)){n.next=6;break}return n.next=3,e.$store.dispatch("cart/deleteShoppingCartItem",{item:t,type:"T"});case 3:0===e.$store.getters["cart/getCartCount"]&&e.$root.$emit("closeAddedToCartDialog"),n.next=8;break;case 6:return n.next=8,e.$store.dispatch("cart/insertOrUpdateTreatment",t,"T");case 8:case"end":return n.stop()}}),n)})))()},treatmentIsInCart:function(t){return this.$store.getters["cart/treatmentIsInCart"](t.treatmentId)}}}),m=(n(767),n(3)),component=Object(m.a)(f,(function(){var t,e=this,n=e._self._c;return n("div",{staticClass:"row align-center ma-0 px-4 py-2"},[n("div",{staticClass:"pa-0",class:e.$vuetify.breakpoint.mdAndDown?"col-7":"col-6"},[n("div",{staticClass:"d-flex no-wrap"},[e.$vuetify.breakpoint.mdAndUp?n("div",{staticClass:"cart-item-img pr-4"},[n(c.a,{attrs:{src:e.treatment.ftcCategoryImgUrlsThumbnails[0],width:"86px",height:"57px"}}),e._v(" "),e.isFavorite(e.treatment)?n("CartFavoriteIcon"):e._e()],1):e._e(),e._v(" "),n("div",{staticClass:"treatment-text"},[n("p",{staticClass:"mb-1 treatment-text__name",on:{click:function(t){return e.treatmentRedirect(e.treatment)}}},[e._v(e._s(null===(t=e.treatment)||void 0===t?void 0:t.treatmentName))]),e._v(" "),n("p",{staticClass:"mb-1 font-weight-regular"},[e._v(e._s(e.treatment.durationMinutes)+" min")]),e._v(" "),n("p",{staticClass:"mb-0"},[e._v(e._s(e.preselectedEmployee?e.preselectedEmployee.firstName:"Tid og ansatt ikke valgt"))])])])]),e._v(" "),n("div",{staticClass:"pa-0",class:e.$vuetify.breakpoint.mdAndDown?"col-5":"col-6"},[n("div",{staticClass:"price row justify-end align-center ma-0"},[n("div",{staticClass:"mt-1 d-flex"},[n("span",{staticClass:"price__from mr-1"},[e._v("Fra")]),e._v(" "),n("span",{staticClass:"price__number"},[e._v(e._s(e.formatPrice(e.treatment)))])]),e._v(" "),n(r.a,{staticClass:"ml-2",attrs:{icon:"",color:"primary"},on:{click:function(t){return e.addOrRemove(e.treatment)}}},[n(o.a,[e._v("fxt-trash")])],1)],1)])])}),[],!1,null,"69fb6fdd",null);e.default=component.exports},607:function(t,e,n){"use strict";n.r(e);var r=n(996),o=n(584),c=(n(24),{components:{FIcon:n(227).a},props:{breadcrumbs:{type:Array,default:null,required:!0}}}),l=(n(960),n(3)),component=Object(l.a)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"breadcrumbs-container"},[e(r.a,{staticClass:"breadcrumbs-container__breadcrumbs pa-0",attrs:{items:t.breadcrumbs},scopedSlots:t._u([{key:"divider",fn:function(){return[e("f-icon",{staticStyle:{height:"24px"},attrs:{icon:"icon-chevron-right"}})]},proxy:!0},{key:"item",fn:function(n){var r=n.item;return[e(o.a,{attrs:{id:"breadcrumbs-button",href:r.href,disabled:r.disabled}},[e("span",{staticClass:"breadcrumbs-container__breadcrumbs--text secondary-font"},[t._v(t._s(r.name))])])]}}])})],1)}),[],!1,null,null,null);e.default=component.exports},622:function(t,e,n){n(623),t.exports=n(624)},624:function(t,e,n){"use strict";n.r(e),function(t){n(47),n(35),n(59),n(10),n(49),n(69);var e=n(44),r=n(0),o=(n(360),n(639),n(651),n(652),n(17),n(24),n(4),n(12),n(9),n(16),n(15),n(26),n(19),n(33),n(13),n(43),n(50),n(53),n(5)),c=n(571),l=n(427),d=n(14),f=n(131),m=n(588),h=n(338);function v(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}o.default.__nuxt__fetch__mixin__||(o.default.mixin(m.a),o.default.__nuxt__fetch__mixin__=!0),o.default.component(h.a.name,h.a),o.default.component("NLink",h.a),t.fetch||(t.fetch=c.a);var x,w,_=[],C=window.__NUXT__||{},I=C.config||{};I._app&&(n.p=Object(d.v)(I._app.cdnURL,I._app.assetsPath)),Object.assign(o.default.config,{silent:!0,performance:!1});var k=o.default.config.errorHandler||console.error;function S(t,e,n){for(var r=function(component){var t=function(component,t){if(!component||!component.options||!component.options[t])return{};var option=component.options[t];if("function"==typeof option){for(var e=arguments.length,n=new Array(e>2?e-2:0),r=2;r<e;r++)n[r-2]=arguments[r];return option.apply(void 0,n)}return option}(component,"transition",e,n)||{};return"string"==typeof t?{name:t}:t},o=n?Object(d.g)(n):[],c=Math.max(t.length,o.length),l=[],f=function(){var e=Object.assign({},r(t[i])),n=Object.assign({},r(o[i]));Object.keys(e).filter((function(t){return void 0!==e[t]&&!t.toLowerCase().includes("leave")})).forEach((function(t){n[t]=e[t]})),l.push(n)},i=0;i<c;i++)f();return l}function O(t,e,n){return $.apply(this,arguments)}function $(){return($=Object(r.a)(regeneratorRuntime.mark((function t(e,n,r){var o,c,l,f,m=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._routeChanged=Boolean(x.nuxt.err)||n.name!==e.name,this._paramChanged=!this._routeChanged&&n.path!==e.path,this._queryChanged=!this._paramChanged&&n.fullPath!==e.fullPath,this._diffQuery=this._queryChanged?Object(d.i)(e.query,n.query):[],(this._routeChanged||this._paramChanged)&&this.$loading.start&&!this.$loading.manual&&this.$loading.start(),t.prev=5,!this._queryChanged){t.next=12;break}return t.next=9,Object(d.r)(e,(function(t,e){return{Component:t,instance:e}}));case 9:o=t.sent,o.some((function(t){var r=t.Component,o=t.instance,c=r.options.watchQuery;return!0===c||(Array.isArray(c)?c.some((function(t){return m._diffQuery[t]})):"function"==typeof c&&c.apply(o,[e.query,n.query]))}))&&this.$loading.start&&!this.$loading.manual&&this.$loading.start();case 12:r(),t.next=26;break;case 15:if(t.prev=15,t.t0=t.catch(5),c=t.t0||{},l=c.statusCode||c.status||c.response&&c.response.status||500,f=c.message||"",!/^Loading( CSS)? chunk (\d)+ failed\./.test(f)){t.next=23;break}return window.location.reload(!0),t.abrupt("return");case 23:this.error({statusCode:l,message:f}),this.$nuxt.$emit("routeChanged",e,n,c),r();case 26:case"end":return t.stop()}}),t,this,[[5,15]])})))).apply(this,arguments)}function T(t,e){return C.serverRendered&&e&&Object(d.b)(t,e),t._Ctor=t,t}function P(t,e,n,r){var o=this,c=[],f=!1;if(void 0!==n&&(c=[],(n=Object(d.s)(n)).options.middleware&&(c=c.concat(n.options.middleware)),t.forEach((function(t){t.options.middleware&&(c=c.concat(t.options.middleware))}))),c=c.map((function(t){return"function"==typeof t?t:("function"!=typeof l.a[t]&&(f=!0,o.error({statusCode:500,message:"Unknown middleware "+t})),l.a[t])})),!f)return Object(d.o)(c,e,r)}function R(t,e,n,r){return j.apply(this,arguments)}function j(){return j=Object(r.a)(regeneratorRuntime.mark((function t(e,n,o,c){var l,m,h,y,w,C,I,k,O,$,T,R,j,E,A,U=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==this._routeChanged||!1!==this._paramChanged||!1!==this._queryChanged){t.next=2;break}return t.abrupt("return",o());case 2:return!1,e===n?(_=[],!0):(l=[],_=Object(d.g)(n,l).map((function(t,i){return Object(d.c)(n.matched[l[i]].path)(n.params)}))),m=!1,h=function(path){n.path===path.path&&U.$loading.finish&&U.$loading.finish(),n.path!==path.path&&U.$loading.pause&&U.$loading.pause(),m||(m=!0,o(path))},t.next=8,Object(d.t)(x,{route:e,from:n,error:function(t){c.aborted||x.nuxt.error.call(U,t)},next:h.bind(this)});case 8:if(this._dateLastError=x.nuxt.dateErr,this._hadError=Boolean(x.nuxt.err),y=[],(w=Object(d.g)(e,y)).length){t.next=33;break}return t.next=15,P.call(this,w,x.context,void 0,c);case 15:if(!m){t.next=17;break}return t.abrupt("return");case 17:if(!c.aborted){t.next=20;break}return o(!1),t.abrupt("return");case 20:return C=(f.a.options||f.a).layout,t.next=23,this.loadLayout("function"==typeof C?C.call(f.a,x.context):C);case 23:return I=t.sent,t.next=26,P.call(this,w,x.context,I,c);case 26:if(!m){t.next=28;break}return t.abrupt("return");case 28:if(!c.aborted){t.next=31;break}return o(!1),t.abrupt("return");case 31:return x.context.error({statusCode:404,message:"This page could not be found"}),t.abrupt("return",o());case 33:return w.forEach((function(t){t._Ctor&&t._Ctor.options&&(t.options.asyncData=t._Ctor.options.asyncData,t.options.fetch=t._Ctor.options.fetch)})),this.setTransitions(S(w,e,n)),t.prev=35,t.next=38,P.call(this,w,x.context,void 0,c);case 38:if(!m){t.next=40;break}return t.abrupt("return");case 40:if(!c.aborted){t.next=43;break}return o(!1),t.abrupt("return");case 43:if(!x.context._errored){t.next=45;break}return t.abrupt("return",o());case 45:return"function"==typeof(k=w[0].options.layout)&&(k=k(x.context)),t.next=49,this.loadLayout(k);case 49:return k=t.sent,t.next=52,P.call(this,w,x.context,k,c);case 52:if(!m){t.next=54;break}return t.abrupt("return");case 54:if(!c.aborted){t.next=57;break}return o(!1),t.abrupt("return");case 57:if(!x.context._errored){t.next=59;break}return t.abrupt("return",o());case 59:O=!0,t.prev=60,$=v(w),t.prev=62,$.s();case 64:if((T=$.n()).done){t.next=75;break}if("function"==typeof(R=T.value).options.validate){t.next=68;break}return t.abrupt("continue",73);case 68:return t.next=70,R.options.validate(x.context);case 70:if(O=t.sent){t.next=73;break}return t.abrupt("break",75);case 73:t.next=64;break;case 75:t.next=80;break;case 77:t.prev=77,t.t0=t.catch(62),$.e(t.t0);case 80:return t.prev=80,$.f(),t.finish(80);case 83:t.next=89;break;case 85:return t.prev=85,t.t1=t.catch(60),this.error({statusCode:t.t1.statusCode||"500",message:t.t1.message}),t.abrupt("return",o());case 89:if(O){t.next=92;break}return this.error({statusCode:404,message:"This page could not be found"}),t.abrupt("return",o());case 92:return t.next=94,Promise.all(w.map(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(r,i){var o,c,l,f,m,h,v,w,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r._path=Object(d.c)(e.matched[y[i]].path)(e.params),r._dataRefresh=!1,o=r._path!==_[i],U._routeChanged&&o?r._dataRefresh=!0:U._paramChanged&&o?(c=r.options.watchParam,r._dataRefresh=!1!==c):U._queryChanged&&(!0===(l=r.options.watchQuery)?r._dataRefresh=!0:Array.isArray(l)?r._dataRefresh=l.some((function(t){return U._diffQuery[t]})):"function"==typeof l&&(j||(j=Object(d.h)(e)),r._dataRefresh=l.apply(j[i],[e.query,n.query]))),U._hadError||!U._isMounted||r._dataRefresh){t.next=6;break}return t.abrupt("return");case 6:return f=[],m=r.options.asyncData&&"function"==typeof r.options.asyncData,h=Boolean(r.options.fetch)&&r.options.fetch.length,v=m&&h?30:45,m&&((w=Object(d.q)(r.options.asyncData,x.context)).then((function(t){Object(d.b)(r,t),U.$loading.increase&&U.$loading.increase(v)})),f.push(w)),U.$loading.manual=!1===r.options.loading,h&&((p=r.options.fetch(x.context))&&(p instanceof Promise||"function"==typeof p.then)||(p=Promise.resolve(p)),p.then((function(t){U.$loading.increase&&U.$loading.increase(v)})),f.push(p)),t.abrupt("return",Promise.all(f));case 14:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()));case 94:if(m){t.next=100;break}if(this.$loading.finish&&!this.$loading.manual&&this.$loading.finish(),!c.aborted){t.next=99;break}return o(!1),t.abrupt("return");case 99:o();case 100:t.next=119;break;case 102:if(t.prev=102,t.t2=t.catch(35),!c.aborted){t.next=107;break}return o(!1),t.abrupt("return");case 107:if("ERR_REDIRECT"!==(E=t.t2||{}).message){t.next=110;break}return t.abrupt("return",this.$nuxt.$emit("routeChanged",e,n,E));case 110:return _=[],Object(d.k)(E),"function"==typeof(A=(f.a.options||f.a).layout)&&(A=A(x.context)),t.next=116,this.loadLayout(A);case 116:this.error(E),this.$nuxt.$emit("routeChanged",e,n,E),o();case 119:case"end":return t.stop()}}),t,this,[[35,102],[60,85],[62,77,80,83]])}))),j.apply(this,arguments)}function E(t,n){Object(d.d)(t,(function(t,n,r,c){return"object"!==Object(e.a)(t)||t.options||((t=o.default.extend(t))._Ctor=t,r.components[c]=t),t}))}function A(t){var e=Boolean(this.$options.nuxt.err);this._hadError&&this._dateLastError===this.$options.nuxt.dateErr&&(e=!1);var n=e?(f.a.options||f.a).layout:t.matched[0].components.default.options.layout;"function"==typeof n&&(n=n(x.context)),this.setLayout(n)}function U(t){t._hadError&&t._dateLastError===t.$options.nuxt.dateErr&&t.error()}function D(t,e){var n=this;if(!1!==this._routeChanged||!1!==this._paramChanged||!1!==this._queryChanged){var r=Object(d.h)(t),c=Object(d.g)(t),l=!1;o.default.nextTick((function(){r.forEach((function(t,i){if(t&&!t._isDestroyed&&t.constructor._dataRefresh&&c[i]===t.constructor&&!0!==t.$vnode.data.keepAlive&&"function"==typeof t.constructor.options.data){var e=t.constructor.options.data.call(t);for(var n in e)o.default.set(t.$data,n,e[n]);l=!0}})),l&&window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),U(n)}))}}function L(t){window.onNuxtReadyCbs.forEach((function(e){"function"==typeof e&&e(t)})),"function"==typeof window._onNuxtLoaded&&window._onNuxtLoaded(t),w.afterEach((function(e,n){o.default.nextTick((function(){return t.$nuxt.$emit("routeChanged",e,n)}))}))}function B(){return B=Object(r.a)(regeneratorRuntime.mark((function t(e){var n,c,l,f,m,h,v;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return x=e.app,w=e.router,e.store,n=new o.default(x),c=C.layout||"default",t.next=7,n.loadLayout(c);case 7:return n.setLayout(c),l=function(){n.$mount("#__nuxt"),w.afterEach(E),w.afterEach(A.bind(n)),w.afterEach(D.bind(n)),o.default.nextTick((function(){L(n)}))},t.next=11,Promise.all((y=x.context.route,Object(d.d)(y,function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e,n,r,o,c){var l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e||e.options){t.next=4;break}return t.next=3,e();case 3:e=t.sent;case 4:return l=T(Object(d.s)(e),C.data?C.data[c]:null),r.components[o]=l,t.abrupt("return",l);case 7:case"end":return t.stop()}}),t)})));return function(e,n,r,o,c){return t.apply(this,arguments)}}())));case 11:if(f=t.sent,n.setTransitions=n.$options.nuxt.setTransitions.bind(n),f.length&&(n.setTransitions(S(f,w.currentRoute)),_=w.currentRoute.matched.map((function(t){return Object(d.c)(t.path)(w.currentRoute.params)}))),n.$loading={},C.error&&n.error(C.error),w.beforeEach(O.bind(n)),m=null,h=R.bind(n),w.beforeEach((function(t,e,n){m&&(m.aborted=!0),h(t,e,n,m={aborted:!1})})),!C.serverRendered||!Object(d.n)(C.routePath,n.context.route.path)){t.next=22;break}return t.abrupt("return",l());case 22:return v=function(){E(w.currentRoute,w.currentRoute),A.call(n,w.currentRoute),U(n),l()},t.next=25,new Promise((function(t){return setTimeout(t,0)}));case 25:R.call(n,w.currentRoute,w.currentRoute,(function(path){if(path){var t=w.afterEach((function(e,n){t(),v()}));w.push(path,void 0,(function(t){t&&k(t)}))}else v()}),{aborted:!1});case 26:case"end":return t.stop()}var y}),t)}))),B.apply(this,arguments)}Object(f.b)(null,C.config).then((function(t){return B.apply(this,arguments)})).catch(k)}.call(this,n(114))},664:function(t,e,n){"use strict";n(490)},665:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,"h1[data-v-56b88d1d]{font-size:20px}",""]),r.locals={},t.exports=r},666:function(t,e,n){"use strict";n(491)},667:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,".nuxt-progress{background-color:#000;height:2px;left:0;opacity:1;position:fixed;right:0;top:0;transition:width .1s,opacity .4s;width:0;z-index:999999}.nuxt-progress.nuxt-progress-notransition{transition:none}.nuxt-progress-failed{background-color:red}",""]),r.locals={},t.exports=r},706:function(t,e,n){t.exports=n.p+"img/Fixit_timebestilling_logo_outline.837a867.svg"},742:function(t,e){function n(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=742},745:function(t,e,n){"use strict";n(501)},746:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,".fixit-app-text[data-v-94da731e]{font-size:16px;font-weight:700;line-height:20px;width:222px}.footer-titles[data-v-94da731e]{font-size:30px;font-weight:400;line-height:42px;margin-bottom:20px}.app-icons[data-v-94da731e]{margin-left:-14px;margin-top:5px}.app-icons[data-v-94da731e]:hover{cursor:pointer}.booking-button[data-v-94da731e]{background-color:var(--v-primary-base)!important;color:var(--v-primary-text-base);font-size:16px;font-weight:700;line-height:16px;text-transform:none}.link-text[data-v-94da731e]{color:var(--v-primary-base);font-size:20px;font-weight:700;line-height:20px}.link-text[data-v-94da731e]:hover{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.link-text-more[data-v-94da731e]{color:var(--v-primary-base);font-size:16px;font-weight:700;letter-spacing:.5px;line-height:20px}.link-text-more[data-v-94da731e]:hover{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.footer-my-page[data-v-94da731e]{display:flex;flex-direction:column;height:100%;justify-content:space-between;padding-bottom:40px}.footer-container[data-v-94da731e]{max-width:1170px}",""]),r.locals={},t.exports=r},747:function(t,e,n){"use strict";n(502)},748:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,".address-link[data-v-635c28ea]{-webkit-text-decoration:none;text-decoration:none}.address-link[data-v-635c28ea]:hover{-webkit-text-decoration:underline;text-decoration:underline}",""]),r.locals={},t.exports=r},749:function(t,e,n){"use strict";n(503)},750:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,".fixit-dialog__desktop,.v-dialog:not(.v-dialog--fullscreen){max-height:100%!important;z-index:1000}.fixit-dialog__fullscreen{z-index:1000}.fixit-dialog__fit-to-side{background-color:#fff;bottom:0;margin:0;min-height:calc(100% - 60px);position:absolute;right:0}",""]),r.locals={},t.exports=r},761:function(t,e,n){"use strict";n(504)},762:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,".bundle-text[data-v-7394e228]{font-size:14px;font-weight:700;line-height:14px}.bundle-text__name[data-v-7394e228]{color:red}.bundle-text__name[data-v-7394e228]:hover{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.price[data-v-7394e228]{display:flex;flex-direction:column}.price__number[data-v-7394e228]{color:red;font-size:18px;font-weight:400;line-height:20px}.price__number__old-price[data-v-7394e228]{font-size:16px;letter-spacing:0;line-height:20px;-webkit-text-decoration:line-through;text-decoration:line-through}",""]),r.locals={},t.exports=r},763:function(t,e,n){"use strict";n(505)},764:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,".fxt-favorite-heart[data-v-16a38846]{position:absolute;right:0;top:-8px}.fxt-favorite-heart__bg-icon[data-v-16a38846]{position:absolute;right:-2px;top:-2px}",""]),r.locals={},t.exports=r},765:function(t,e,n){"use strict";n(506)},766:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,".cart-item-img[data-v-cc0b3744]{position:relative}.product-text[data-v-cc0b3744]{font-size:14px;font-weight:700;line-height:14px}.product-text__name[data-v-cc0b3744]:hover{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.price[data-v-cc0b3744]{display:flex;flex-direction:column}.price__number[data-v-cc0b3744]{font-size:18px;font-weight:400;line-height:20px}.price__number__discounted[data-v-cc0b3744]{color:red}.price__number__old-price[data-v-cc0b3744]{font-size:16px;letter-spacing:0;line-height:20px;-webkit-text-decoration:line-through;text-decoration:line-through}",""]),r.locals={},t.exports=r},767:function(t,e,n){"use strict";n(507)},768:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,".cart-item-img[data-v-69fb6fdd]{position:relative}.treatment-text[data-v-69fb6fdd]{font-size:14px;font-weight:700;line-height:14px}.treatment-text__name[data-v-69fb6fdd]:hover{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.price__from[data-v-69fb6fdd]{font-size:13px;font-weight:700;letter-spacing:-.5px;line-height:15px}.price__number[data-v-69fb6fdd]{font-size:18px;font-weight:700;letter-spacing:0;line-height:20px}",""]),r.locals={},t.exports=r},769:function(t,e,n){"use strict";n(508)},770:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,".cart-list__title[data-v-742e8bec]{font-size:18px}.salon-linebreak[data-v-742e8bec]{border-color:var(--v-primary-base)}.price__from[data-v-742e8bec]{font-size:13px;font-weight:700;letter-spacing:-.5px;line-height:15px}.price__number[data-v-742e8bec]{font-size:18px;font-weight:700;letter-spacing:0;line-height:20px}",""]),r.locals={},t.exports=r},771:function(t,e,n){"use strict";n(509)},772:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,".cart-recommendation .grid.container{width:100%!important}",""]),r.locals={},t.exports=r},804:function(t,e,n){"use strict";n(522)},805:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,".choose-btn[data-v-5296ddd1]{background-color:var(--v-primary-base)!important;color:var(--v-primary-text-base)}.choose-btn[data-v-5296ddd1],.read-more-btn[data-v-5296ddd1]{font-size:16px;font-weight:700;line-height:16px;text-transform:none}.read-more-btn[data-v-5296ddd1]{border:2px solid;margin:15px 0 0}.replace-btn[data-v-5296ddd1]{background-color:var(--v-primary-base)!important;color:var(--v-primary-text-base)}.salon-list-item[data-v-5296ddd1]:hover{background-color:var(--v-primary-opacity-12);cursor:pointer}",""]),r.locals={},t.exports=r},806:function(t,e,n){"use strict";n(523)},807:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,".home_container{max-width:100vw;padding:0}.home_container__title{font-size:30px;font-weight:400}.home_container .see-more{height:20px}@media(max-width:1280px){.home_container .see-more{margin-right:0;padding:0 45px}}@media(max-width:600px){.home_container .see-more{margin:0 auto;padding:0}}.home_container .see-more-btn{float:right;font-size:16px;font-weight:700;height:24px;line-height:24px;-webkit-text-decoration:none;text-decoration:none}.home_container .see-more-btn:hover{-webkit-text-decoration:underline;text-decoration:underline}.home_container .news-container{max-width:1170px}.home_container .slide-container{max-width:1186px}@media(max-width:1280px)and (min-width:960px){.home_container .slide-container>h2{padding:0 62px}}.home_container .slide-container .v-slide-group__wrapper{padding-bottom:20px;padding-top:20px}@media(min-width:1280px){.home_container .slide-container .v-slide-group__wrapper .v-slide-group__content{justify-content:flex-start}}.home_container .slide-container .slide-group{max-width:100vw;width:100%}@media(min-width:1280px){.home_container .slide-container .slide-group{margin:0 -62px;width:calc(100% + 124px)}}.home_container .slide-container .slide-group .item-card .card-bottom{min-height:38px}.home_container .slide-container .slide-group .item-card .card-bottom>div{line-height:16px}.home_container .slide-container .slide-group .item-card .card-currencey{font-size:16px}.home_container .slide-container .slide-group .item-card .card-price{font-size:24px}.home_container .slide-container .slide-group .item-card .read-more-btn{border-radius:25px}@media only screen and (min-width:900px){.home_container .slide-container .slide-group .item-card .read-more-btn{display:none}}.home_container .slide-container .slide-group .item-card:hover .read-more-btn{display:block}.home_container .slide-container.treatment-container{padding:0}.home_container .slide-container.treatment-container .item-card{height:262px;position:relative}.home_container .slide-container.treatment-container .item-card .card-image{height:155px;width:100%}.home_container .slide-container.treatment-container .item-card .card-description{font-size:16px;padding:12px 20px 16px}.home_container .slide-container.treatment-container .item-card .card-description .card-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:18px;font-weight:700;min-height:20px;overflow:hidden;text-overflow:ellipsis}.home_container .slide-container.treatment-container .item-card .card-description .card-middle-text{font-size:14px;font-weight:400}.home_container .slide-container.treatment-container .item-card .card-description .price-container{bottom:0;padding:0 20px 10px 0;position:absolute;right:0}.home_container .slide-container.treatment-container .item-card .card-description .price-container__price-text{font-size:14px;font-weight:400}.home_container .slide-container.treatment-container .item-card .card-description .price-container__price{font-size:28px;font-weight:700}.home_container .slide-container .v-slide-group__next--disabled,.home_container .slide-container .v-slide-group__prev--disabled{opacity:0}.home_container .slide-container.product-container .item-card{height:402px;position:relative}.home_container .slide-container.product-container .item-card .card-image{height:270px;width:100%}.home_container .slide-container.product-container .item-card .card-description{font-size:18px;font-weight:700;line-height:20px;padding:12px 20px 16px}.home_container .slide-container.product-container .item-card .card-description .card-middle-text{font-size:14px;font-weight:400;line-height:18px;min-height:48px}.home_container .slide-container.product-container .item-card .card-description .price-container{bottom:0;font-size:28px;font-weight:700;line-height:24px;padding:0 20px 15px 0;position:absolute;right:0}.center{margin:0 auto;max-width:1170px}.background{background-color:var(--v-secondary-base);box-shadow:inset 0 0 20px rgba(0,0,0,.06);color:var(--v-secondary-text-base);height:100%;width:100vw}.choose-btn{background-color:var(--v-primary-base)!important;color:var(--v-primary-text-base)}.choose-btn,.read-more-btn{font-size:16px;font-weight:700;line-height:16px;text-transform:none}.read-more-btn{border:2px solid;margin:15px 0 0}",""]),r.locals={},t.exports=r},86:function(t,e,n){"use strict";n.r(e);var r=n(403),o=n(405),c=n(986),l=n(218),d=n(987),f=n(104),m=n(156),h={props:{title:{type:String,required:!0},titleIcon:{type:String},show:{type:Boolean,required:!0},maxWidth:{type:String,default:"770px"},fullscreenOnMobile:{type:Boolean,default:!1},fitToSide:{type:Boolean,default:!1},persistent:{type:Boolean,default:!1}},computed:{dialog:{get:function(){return this.show},set:function(){this.$emit("toggle")}}}},v=(n(749),n(3)),component=Object(v.a)(h,(function(){var t=this,e=t._self._c;return e(c.a,{class:[t.fullscreenOnMobile&&t.$vuetify.breakpoint.mdAndDown?"fixit-dialog__fullscreen":"fixit-dialog__desktop"],attrs:{transition:t.$vuetify.breakpoint.mdAndUp&&t.fitToSide?"slide-x-reverse-transition":"scale-transition","content-class":t.$vuetify.breakpoint.mdAndUp&&t.fitToSide?"fixit-dialog__fit-to-side":"",fullscreen:t.fullscreenOnMobile&&t.$vuetify.breakpoint.mdAndDown,"max-width":t.maxWidth,persistent:t.persistent,"retain-focus":!1},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[[e(o.a,{attrs:{tile:"",elevation:"0"}},[e(f.a,{staticStyle:{background:"var(--v-primary-opacity-12)",color:"var(--v-primary-base)"},attrs:{elevation:"0"}},[e(m.b,[t.titleIcon?e(l.a,{staticClass:"mr-2",attrs:{color:"primary"}},[t._v(t._s(t.titleIcon))]):t._e(),t._v(t._s(t.title))],1),t._v(" "),e(d.a),t._v(" "),t.persistent?t._e():e(r.a,{attrs:{color:"primary",icon:""},on:{click:function(e){return t.$emit("toggle")}}},[e(l.a,[t._v("fxt-close")])],1)],1),t._v(" "),t._t("default",(function(){return[t._v("INSERT SLOT")]}))],2)]],2)}),[],!1,null,null,null);e.default=component.exports},92:function(t,e,n){"use strict";n.d(e,"b",(function(){return r.a})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return c}));var r=n(141),o=(n(116),Object.freeze({CHIANBANNER:3,DEPARTMENTABOUT:6,DEPARTMENTEMPLOYEES:7,DEPARTMENTTREATMENTS:8})),c=Object.freeze({INVALID:0,COLOR1:1,COLOR2:2,FONT1:3,FONT2:4,THEMESTYLE:5,BOXCOLOR:6})},960:function(t,e,n){"use strict";n(565)},961:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,".breadcrumbs-container__breadcrumbs--text{font-size:16px;font-weight:700;line-height:20px}.breadcrumbs-container__breadcrumbs--text:hover{-webkit-text-decoration:underline;text-decoration:underline}.v-breadcrumbs__item--disabled{color:var(--v-primary-base)!important}.v-breadcrumbs li:nth-child(2n){padding:0 4px}",""]),r.locals={},t.exports=r},968:function(t,e,n){"use strict";n(568)},969:function(t,e,n){var r=n(6)((function(i){return i[1]}));r.push([t.i,"@import url(https://cdn.fixitonline.no/assets/public/release/styles/fonts.css);"]),r.push([t.i,"@import url(https://cdn.fixitonline.no/assets/public/release/fixit-icons/style.css);"]),r.push([t.i,"@import url(https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Calligraffitti&family=Covered+By+Your+Grace&family=Dosis:wght@300;400;500;600;700&family=Indie+Flower&family=Josefin+Sans:wght@300;400;500;600;700&family=News+Cycle:wght@400;700&family=Nothing+You+Could+Do&family=Open+Sans:wght@300;400;500;600;700&family=Quicksand:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600;700&family=Shadows+Into+Light&family=Shadows+Into+Light+Two&family=Source+Sans+Pro:wght@300;400;600;700&display=swap);"]),r.push([t.i,".v-application{-webkit-print-color-adjust:exact}.header-logo{-o-object-fit:contain;object-fit:contain}.header-logo:hover{cursor:pointer}@media only screen and (min-width:960px){::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:#fff}::-webkit-scrollbar-track-piece{background:rgba(66,190,180,.1)}::-webkit-scrollbar-thumb{background:var(--v-primary-lighten1)}::-webkit-scrollbar-thumb:hover{background:var(--v-primary-lighten2)!important;cursor:pointer;transform:scale(1.1)}}.choose-btn{font-size:16px;font-weight:700;line-height:16px;text-transform:none}.choose-btn,.replace-btn{background-color:var(--v-primary-base)!important;color:var(--v-primary-text-base)}.read-more-btn{border:2px solid;font-size:16px;font-weight:700;line-height:16px;margin:15px 0 0;text-transform:none}",""]),r.locals={},t.exports=r},970:function(t,e,n){"use strict";n.r(e);var r=n(0),o=(n(17),n(15),n(26),n(46),n(4),n(5)),c=n(146),l=n(349),d=n(416),f=n(417),m=n(418),h=n(419),v=n(420),y=n(421),x=n(422),w=n(423),_=n(413),C=n(424),I=n(586);o.default.use(c.a),o.default.use(I.a);e.default=function(){return new c.a.Store({state:{},actions:{nuxtServerInit:function(t,e){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var o,c,l,d,f,m,h;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(l=t.dispatch,d=t.getters,void 0===(f=e.req.headers["x-forwarded-host"])&&(f=""),m=null,null!==(o=e.req._parsedOriginalUrl)&&void 0!==o&&o.query&&null!==(c=e.req._parsedOriginalUrl)&&void 0!==c&&null!==(c=c.query)&&void 0!==c&&c.includes("homepageId")&&(h=e.req._parsedOriginalUrl.query.includes("&")?e.req._parsedOriginalUrl.query.split("&").find((function(q){return q.includes("homepageId")})):e.req._parsedOriginalUrl.query,m=parseInt(h.split("=")[1])),m||""!==f||(f="ramsvik.fixitstjerner.no"),r.prev=6,!m&&""===f){r.next=32;break}if(f.includes("receipt.onlinetimebok.no")){r.next=30;break}if(m){r.next=14;break}return r.next=12,l("cmsConfigHomepage/fetchCmsConfigHomepage",f);case 12:r.next=16;break;case 14:return r.next=16,l("cmsConfigHomepage/fetchCmsConfigByHomepageId",m);case 16:if(d["cmsConfigHomepage/getHomepageId"]===m||d["cmsConfigHomepage/getSiteUrl"].includes(f)&&""!==d["cmsConfigHomepage/getSiteUrl"]){r.next=21;break}e.error({statusCode:404,message:"Problemer med å hente data"}),n.replaceState(),r.next=30;break;case 21:return r.next=23,l("salon/fetchSalons");case 23:return r.next=25,l("cmsConfigHomepage/fetchActiveCustomerPrograms");case 25:if(!d["cmsConfigHomepage/newsVisible"]){r.next=28;break}return r.next=28,l("news/fetchNewsBySiteIds");case 28:console.log("Fetching page data complete"),console.log("Initializing Homepage");case 30:r.next=34;break;case 32:e.error({statusCode:404,message:"Problemer med å hente data"}),n.replaceState();case 34:r.next=40;break;case 36:r.prev=36,r.t0=r.catch(6),console.error("Fetching page data failed"),console.error(r.t0);case 40:case"end":return r.stop()}}),r,null,[[6,36]])})))()}},mutations:{},modules:{salon:d.default,cmsConfigHomepage:f.default,news:h.default,popularProducts:v.default,treatments:y.default,instagramImages:w.default,products:_.default,receipt:x.default,employees:l.default,cart:m.default,app:C.default}})}}},[[622,41,6,42]]]);
//# sourceMappingURL=b402830.js.map