(window.webpackJsonp=window.webpackJsonp||[]).push([[32,11,12],{1014:function(t,e,n){var content=n(1033);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("7ffc441b",content,!0,{sourceMap:!1})},1015:function(t,e,n){var content=n(1035);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("3305fa51",content,!0,{sourceMap:!1})},1032:function(t,e,n){"use strict";n(1014)},1033:function(t,e,n){var o=n(6)((function(i){return i[1]}));o.push([t.i,".banner-content{transition:.4s linear}.banner-content__title{font-size:58px;font-weight:400;line-height:81px;transition:.4s linear}.banner-content__subtitle{font-size:36px;font-weight:600;line-height:44px;transition:.4s linear}.banner-dropshadow{text-shadow:0 2px 4px #000}.opacity-overlay{height:100%;margin-left:-20px;position:absolute;width:100vw}.banner-btn{border-radius:25px;font-size:16px!important;font-style:normal!important;font-weight:700!important;height:44px!important;line-height:16px!important;padding:14px 60px!important;text-transform:none}.image{background:linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5));background-size:cover;height:100vh;position:relative;transition:.4s linear}.v-carousel-item{border:1px solid green;height:auto;transition:.4s linear;width:100%}.scroll-down-btn-container{align-self:center;justify-content:center}.scroll-down-btn-container .scroll-down-btn{-webkit-text-decoration:none;text-decoration:none}.scroll-down-btn-container .scroll-down-btn:after{background-color:transparent!important}@media screen and (max-width:1400px){.carousel-container,.carousel-container .banner-content,.carousel-container .v-parallax{height:450px!important}.carousel-container .v-parallax__image{height:450px!important;transform:translate(-50%)!important}.carousel-container .v-carousel__controls{height:36px}}@media screen and (max-width:1100px){.carousel-container,.carousel-container .banner-content{height:400px!important}.carousel-container .banner-content__title{font-size:32px;font-weight:400;line-height:41px}.carousel-container .banner-content__subtitle{font-size:18px;font-weight:600;line-height:30px}.carousel-container .v-parallax,.carousel-container .v-parallax__image{height:400px!important}}@media screen and (max-width:900px){.carousel-container,.carousel-container .banner-content,.carousel-container .v-parallax,.carousel-container .v-parallax__image{height:350px!important}}@media screen and (max-width:600px){.carousel-container,.carousel-container .banner-content{height:250px!important}.carousel-container .banner-content__subtitle{margin-bottom:5px!important}.carousel-container .banner-btn{height:14px!important;padding:14px 30px!important}.carousel-container .v-parallax,.carousel-container .v-parallax__image{height:250px!important}}",""]),o.locals={},t.exports=o},1034:function(t,e,n){"use strict";n(1015)},1035:function(t,e,n){var o=n(6)((function(i){return i[1]}));o.push([t.i,".news-portal{display:flex;flex-direction:column;gap:50px}.news-portal__container{display:flex;flex-direction:column;padding:0}.news-portal__articles-title{font-size:30px;font-weight:400}.see-more-btn__news{align-self:end;-webkit-text-decoration:none;text-decoration:none}.see-more-btn__news:hover{-webkit-text-decoration:underline;text-decoration:underline}.news-portal-item{display:flex;gap:20px;justify-content:space-between;width:100%}.news-portal-item__img-container{height:344px;transition:.2s linear;width:570px}.news-portal-item__img-container--image{height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.news-portal-item__content{max-height:308px;transition:.2s linear;width:570px}.news-portal-item__content--title{font-size:24px;font-weight:400}.news-portal-item__content--text{display:-webkit-box!important;font-size:16px;font-weight:400;line-height:20px;max-height:232px;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:8;-webkit-box-orient:vertical;margin-bottom:20px;white-space:normal}.news-portal-item__content--read-more-btn{font-size:16px;font-weight:700;-webkit-text-decoration:none;text-decoration:none;text-transform:none}.reversed{flex-direction:row-reverse}@media(max-width:1262px)and (min-width:960px){.news-portal-item__content,.news-portal-item__img-container{width:435px}.see-more-btn__news{padding-right:25px}}@media(max-width:959px){.news-portal-item{flex-wrap:wrap;justify-content:center}.news-portal__articles-title{text-align:center;width:100%}.news-portal__container{gap:20px}.see-more-btn__news{padding-right:15%}}@media(max-width:600px){.news-portal-item__img-container{max-width:100vw}.news-portal-item__content{margin-bottom:10px;max-width:100vw;padding:0 20px}.news-portal-item__content--read-more-btn{margin:0 20px}}",""]),o.locals={},t.exports=o},1037:function(t,e,n){var content=n(1061);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("791a6064",content,!0,{sourceMap:!1})},1041:function(t,e,n){"use strict";n.r(e);var o=n(403),r=n(1011),c=n(1012),l=n(985),d=n(1113),m=n(984),h=(n(15),n(26),n(9),n(4),n(118),n(16),n(231));var f={props:{isLandingPage:Boolean},components:{ChooseSalonDialog:h.a},data:function(){return{continousCycle:!0,isMounted:!1}},mounted:function(){var t=this;if(this.isMounted=!0,this.banners.length>=2){var e=document.querySelector(".v-window__next button"),n=document.querySelector(".v-window__prev button"),o=document.querySelector(".v-carousel__controls");this.$vuetify.breakpoint.smAndDown&&(e.style.display="none",n.style.display="none"),e.addEventListener("click",(function(){t.continousCycle=!1})),n.addEventListener("click",(function(){t.continousCycle=!1})),o.addEventListener("click",(function(){t.continousCycle=!1}))}},computed:{banners:function(){if(this.isLandingPage){var t=this.$store.getters["cmsConfigHomepage/getBanners"];return this.sortBanners(t.filter((function(t){return t.active})))}return this.bannerImg},salons:function(){var t=this.$store.getters["cart/getSelectedSalon"],e=this.$store.getters["salon/bookingEnabledForSite"](this.$store.getters["cart/getSelectedSalon"]);return t&&e?this.$store.getters["salon/getSalons"].filter((function(e){return e.siteId===t})):this.$store.getters["salon/getSalons"].filter((function(t){return t.enabled}))},isDraft:function(){return this.$store.getters["cmsConfigHomepage/isDraftMode"]}},methods:{giftcardRedirect:function(){this.$router.push("giftcard")},textPlacement:function(t){return t&&null!=t?t.includes("right")?"text-right":t.includes("center")||t.includes("top")||t.includes("bottom")?"text-center":"":"text-center"},sortBanners:function(t){return t.sort((function(a,b){return a.sortNo-b.sortNo}))},opacityValue:function(t){var e=JSON.parse(t);return e&&e.ImageOpacity&&null!=e.ImageOpacity&&null!=e.ImageOpacity?e.ImageOpacity:0},subtitlePlacement:function(t){return t&&null!=t?t.includes("right")?"end":t.includes("center")||t.includes("top")||t.includes("bottom")?"center":"start":"center"}}},x=(n(1032),n(3)),component=Object(x.a)(f,(function(){var t=this,e=t._self._c;return e(r.a,{staticClass:"carousel-container",attrs:{cycle:t.continousCycle,"show-arrows":t.isLandingPage&&t.banners.length>=2,"hide-delimiters":t.banners.length<2}},t._l(t.banners,(function(n,i){return e(c.a,{key:i},[n.active?e(d.a,{staticClass:"image",attrs:{dark:"",src:n.imgUrl}},[e("div",{staticClass:"opacity-overlay",style:t.opacityValue(n.config)<0?"background: rgba(0, 0, 0, ".concat(Math.abs(t.opacityValue(n.config)),")"):"background: rgba(255, 255, 255, ".concat(t.opacityValue(n.config),")")}),t._v(" "),e(m.a,{staticClass:"banner-content",class:t.$vuetify.breakpoint.mdAndUp&&t.banners.length>1&&n.config&&n.config.includes("bottom")?"mb-10":"",attrs:{align:t.isMounted&&n.config&&null!=n.config&&null!=n.config?t.$vuetify.breakpoint.smAndDown||n.config.includes("center")||n.config.includes("left")||n.config.includes("right")?"center":n.config.includes("top")?"start":"end":"center",justify:"center"}},[e(l.a,{class:t.isMounted&&t.$vuetify.breakpoint.smAndDown?"text-center":t.textPlacement(n.config),staticStyle:{"z-index":"2"},attrs:{cols:"11"}},[e("h1",{staticClass:"banner-content__title mb-5 banner-dropshadow primary-font"},[t._v("\n            "+t._s(n.title)+"\n          ")]),t._v(" "),e("div",{staticClass:"d-flex",class:"justify-".concat(t.$vuetify.breakpoint.smAndDown?"center":t.subtitlePlacement(n.config)),staticStyle:{width:"100%"}},[e("h2",{staticClass:"mb-5 banner-content__subtitle banner-dropshadow secondary-font",style:t.$vuetify.breakpoint.mdAndDown?"max-width: 400px":"max-width: 700px;"},[t._v("\n              "+t._s(n.subtitle)+"\n            ")])]),t._v(" "),""!=n.buttonLink&&1!=n.type?e(o.a,{staticClass:"banner-btn secondary-font mb-5",attrs:{id:"banner-button",color:"primary",href:3===n.type?null:n.buttonLink,target:3===n.type?"_self":"_blank"},on:{click:function(e){3===n.type&&t.giftcardRedirect()}}},[t._v("\n            "+t._s(n.buttonText)+"\n          ")]):t._e(),t._v(" "),""!=n.buttonLink&&1==n.type?e("choose-salon-dialog",{staticClass:"mb-5",attrs:{disabled:t.isDraft,defaultSize:!0,isBanner:!0,url:t.$config.PORTAL_URL,sites:t.salons}}):t._e()],1)],1)],1):t._e()],1)})),1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{ChooseSalonDialog:n(341).default})},1043:function(t,e,n){"use strict";n.r(e);var o=n(403),r=n(982),c=n(570),l=n(990),d=(n(47),n(13),n(27),n(434),n(226),n(35),{props:{isLandingPage:Boolean,news:{type:Array,default:null}},data:function(){return{perPage:this.isLandingPage?2:6,page:1}},computed:{pages:function(){return this.news?Math.ceil(this.news.length/6):1},slicedNews:function(){var t=this.page*this.perPage-this.perPage,e=t+this.perPage;return this.news.slice(t,e)}},methods:{viewState:function(t){return!!(this.isLandingPage&&t<2)||!this.isLandingPage},nextPage:function(t){this.pageNumber=t},endOfArticles:function(){return this.slicedNews.length!==this.news.length},getImage:function(t){return null==t||null==t.imgUrl||void 0===t.imgUrl?null:(void 0===String.prototype.replaceAll&&(String.prototype.replaceAll=function(t,e){return this.replace(new RegExp(t,"g"),(function(){return e}))}),t.imgUrl.replaceAll('"',""))},formatBody:function(text){return void 0===String.prototype.replaceAll&&(String.prototype.replaceAll=function(t,e){return this.replace(new RegExp(t,"g"),(function(){return e}))}),text.replaceAll("\n","</br>")}}}),m=(n(1034),n(3)),component=Object(m.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"news-portal pa-0"},[t._l(t.slicedNews,(function(n,i){return e(r.a,{key:i,staticClass:"news-portal__container",style:n==t.slicedNews[t.slicedNews.length-1]?"gap: 0px;":""},[t.viewState(i)?e("div",[e("div",{staticClass:"news-portal-item",class:{reversed:i%2}},[e("div",{staticClass:"news-portal-item__img-container"},[e(c.a,{staticClass:"news-portal-item__img-container--image",attrs:{src:t.getImage(n)}})],1),t._v(" "),e("div",[e("div",{staticClass:"news-portal-item__content"},[e("h2",{staticClass:"news-portal-item__content--title primary-font"},[t._v(t._s(n.title))]),t._v(" "),e("div",{staticClass:"mt-5 secondary-font"},[e("h3",[t._v(t._s(n.subTitle))]),t._v(" "),e("div",{staticClass:"news-portal-item__content--text",domProps:{innerHTML:t._s(t.formatBody(n.body))}})])]),t._v(" "),e(o.a,{staticClass:"news-portal-item__content--read-more-btn font-weight-bold secondary-font",staticStyle:{border:"2px solid"},attrs:{id:"article-button",rounded:"",outlined:"",color:"primary",width:"102"}},[e("NuxtLink",{staticStyle:{"text-decoration":"none"},attrs:{to:"/news/"+n.id}},[t._v(" Les mer ")])],1)],1)])]):t._e()])})),t._v(" "),!t.isLandingPage&&t.news.length>6?e(l.a,{staticClass:"pb-6",attrs:{id:"pagination",length:t.pages},on:{input:t.nextPage},model:{value:t.page,callback:function(e){t.page=e},expression:"page"}}):t._e()],2)}),[],!1,null,null,null);e.default=component.exports},1060:function(t,e,n){"use strict";n(1037)},1061:function(t,e,n){var o=n(6)((function(i){return i[1]}));o.push([t.i,".giftcard-component{align-content:left;font-size:16px;margin:0;padding:0}.giftcard-component__title{font-size:30px;font-weight:400}.giftcard-component__text{font-size:16px;font-weight:400}.giftcard-component .giftcard-btn{border:2px solid;text-transform:none}@media(min-width:1904px){.giftcard-component{max-width:1185px}}",""]),o.locals={},t.exports=o},1071:function(t,e,n){"use strict";n.r(e);var o=n(403),r=n(985),c=n(982),l=n(984),d=n(57),m={components:{FIcon:n(227).a},data:function(){return{isMounted:!1}},computed:{useConstrastColors:function(){return this.$store.getters["cmsConfigHomepage/primaryAndSecondaryAreEqual"]}},mounted:function(){this.isMounted=!0}},h=(n(1060),n(3)),component=Object(h.a)(m,(function(){var t=this,e=t._self._c;return e(c.a,{staticClass:"giftcard-component"},[e(l.a,{attrs:{"no-gutters":"",align:"center",justify:"space-between"}},[e(r.a,{staticClass:"d-none d-md-block",attrs:{cols:"6",md:"4"}},[e("div",[e("f-icon",{attrs:{size:"15",color:t.useConstrastColors?"var(--v-primary-text-base)":"color: var(--v-primary-base)",icon:"icon-phone-gift"}})],1)]),t._v(" "),e(r.a,{attrs:{cols:"12",md:"6",sm:"12"}},[e("h1",{staticClass:"giftcard-component__title pt-5 primary-font",style:{"text-align":t.isMounted&&t.$vuetify.breakpoint.mdAndUp?"left":"center"}},[t._v(" Gavekort - den perfekte gaven til de som har alt ")]),t._v(" "),e("div",{staticClass:"giftcard-component__text py-3 secondary-font"},[e("span",[t._v("\n                    Med våre gavekort kan du gi bort deilige behandlinger til de du er glad i. Du velger beløpet, de velger behandlingen\n                ")])]),t._v(" "),e("div",{staticClass:"giftcard-component__text py-3 secondary-font"},[e("span",[t._v("\n                    Hos oss kan du kjøpe gavekort både på hjemmesiden og i salongen\n                ")])]),t._v(" "),e("div",{staticClass:"giftcard-component__text py-3 secondary-font"},[e("span",[t._v("\n                  «Digitale gavekort» på hjemmesiden og i Fixit-appen er raskt og enkelt å kjøpe. Velg beløp og betal på nett, lag en personlig hilsen og send gavekortet rett til mottakerens mobil. Mottakeren kan bruke gavekortet til å kjøpe behandlinger og produkter hos oss. Gavekortet kan selvfølgelig brukes til å betale hele eller deler av behandlinger eller produkter, slik at du kan være trygg på at gavekortet du gir blir satt pris på uansett.\n                ")])]),t._v(" "),e("div",{staticClass:"py-4 secondary-font"},[e(o.a,{directives:[{def:d.a,name:"ripple",rawName:"v-ripple"}],staticClass:"giftcard-btn font-weight-bold",attrs:{id:"giftcard-button",outlined:"",rounded:"",color:t.useConstrastColors?"var(--v-primary-text-base)":"color: var(--v-primary-base)",to:"/giftcard",nuxt:""}},[t._v("\n                    Kjøp gavekort\n                ")])],1)])],1)],1)}),[],!1,null,null,null);e.default=component.exports},1101:function(t,e,n){var content=n(1175);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("3ca45179",content,!0,{sourceMap:!1})},1174:function(t,e,n){"use strict";n(1101)},1175:function(t,e,n){var o=n(6)((function(i){return i[1]}));o.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}",""]),o.locals={},t.exports=o},1223:function(t,e,n){"use strict";n.r(e);var o=n(982),r=n(1210),c=n(81),l=n(2),d=n(0),m=(n(17),n(19),n(46),n(4),n(33),n(16),n(10),n(9),n(20),n(12),n(21),n(1041)),h=n(1071),f=n(1043),x=n(1068),v=n(1186),_=n(227),w=n(141),y=n(136),k=n(45),C=n(435),S=n(32);function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var M={head:function(){var t,e;return{title:"".concat(this.$store.getters["cmsConfigHomepage/getChainName"]),titleTemplate:"%s |  ".concat(this.$store.getters["cmsConfigHomepage/getHomepageSiteUrl"]),meta:[{hid:"og:titlw",name:"og:titlw",content:"".concat(this.$store.getters["cmsConfigHomepage/getChainName"]," |  ").concat(this.$store.getters["cmsConfigHomepage/getChainName"])},{hid:"og:description",name:"og:description",content:null===(t=this.$store.getters["cmsConfigHomepage/getCmsConfigHomepage"])||void 0===t?void 0:t.homepageDescription},{hid:"og:url",name:"og:url",content:null===(e=this.$store.getters["cmsConfigHomepage/getCmsConfigHomepage"])||void 0===e?void 0:e.siteUrl},{hid:"og:image",name:"og:image",content:this.$store.getters["cmsConfigHomepage/getLogo"]}]}},components:{Banner:m.default,Giftcard:h.default,LandingPageNews:f.default,TheSalonSection:x.a,TheInstagramFeed:v.a,FIcon:_.a,RecEngineModule:C.default},layout:"HomepageLayout",name:"Home",data:function(){return{isLandingPage:!0,attrs:{class:"mb-6",boilerplate:!0,elevation:2},itemsFetched:!1,isMounted:!1,itemType:S.c,location:S.d}},computed:{homepageModules:function(){var t,e,n,o,r,c,l=this.$store.getters["cmsConfigHomepage/getModules"],d=null===(t=l.find((function(t){return t.moduleId==w.a.PRICES})))||void 0===t?void 0:t.visible,m=!0;return null!=d&&null!=d&&(m=d),{treatments:null===(e=l.find((function(t){return t.moduleId==w.a.HOMEPAGETREATMENTS})))||void 0===e?void 0:e.visible,giftcards:this.$store.getters["cmsConfigHomepage/getGiftcardActiveStatus"],news:(null===(n=l.find((function(t){return t.moduleId==w.a.HOMEPAGEARTICLES})))||void 0===n?void 0:n.visible)&&this.$store.getters["cmsConfigHomepage/newsVisible"],departments:null===(o=l.find((function(t){return t.moduleId==w.a.CHAINDEPARTMENTS})))||void 0===o?void 0:o.visible,instagram:null===(r=l.find((function(t){return t.moduleId==w.a.IMAGESINSTAGRAM})))||void 0===r?void 0:r.visible,products:(null===(c=l.find((function(t){return t.moduleId==w.a.SUPPLIERBRANDS})))||void 0===c?void 0:c.visible)&&this.$store.getters["cmsConfigHomepage/getWebshopActiveStatus"],prices:m}},salons:function(){return this.$store.getters["salon/getSalons"]},selectedSalon:function(){return this.$store.getters["cart/getSelectedSalon"]},siteIds:function(){return this.$store.getters["salon/getSiteIds"]},news:function(){var t=this.$store.getters["news/getNews"];return t||[]},instagramImages:function(){return this.$store.getters["instagramImages/getInstagramImages"]},chainId:function(){return this.$store.getters["cmsConfigHomepage/getChainId"]},isDraft:function(){return this.$store.getters["cmsConfigHomepage/isDraftMode"]},user:function(){return new k.c(this.$store.getters["app/get"]("user"))},cartTreatmentIds:function(){return this.$store.getters["cart/getCartTreatments"].map((function(t){return t.urlSafe}))},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})))},isSingleSite:function(){return this.$store.getters["salon/getIsSingleSite"]}},mounted:function(){var t=this;return Object(d.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.$store.getters["cart/getCart"])&&n.siteId||t.isSingleSite||t.$store.commit("cart/setSelectedSalon",null),t.isMounted=!0,!t.homepageModules.instagram){e.next=6;break}return e.next=6,t.$store.dispatch("instagramImages/fetchLastestInstagramImages");case 6:case"end":return e.stop()}}),e)})))()},created:function(){var t=this;return Object(d.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.news.length||t.fetchNewsBySiteIds();case 1:case"end":return e.stop()}}),e)})))()},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){Object(l.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(y.mapWaitingActions)("news",{fetchNewsBySiteIds:"loading initailize homepage fetchNewsBySiteIds"}))},$=M,P=(n(1174),n(3)),component=Object(P.a)($,(function(){var t=this,e=t._self._c;return e(c.a,[e("banner",{attrs:{isLandingPage:t.isLandingPage,id:"banner"}}),t._v(" "),e(o.a,{staticClass:"home_container",attrs:{id:"home_container",fluid:""}},[e("RecEngineModule",{staticClass:"py-5",attrs:{itemType:t.itemType.T,location:t.location.HOME_PAGE,boxTitle:"Anbefalte behandlinger",wrapperClasses:"treatment-container",treatmentIds:t.cartTreatmentIds,siteIds:t.selectedSalon?[t.selectedSalon]:t.siteIds,itemQty:12}}),t._v(" "),e("RecEngineModule",{class:t.itemsFetched?"background py-5":"",attrs:{itemType:t.itemType.P,boxTitle:"Anbefalte produkter",location:t.location.HOME_PAGE,siteIds:t.siteIds,treatmentIds:t.cartTreatmentIds,productIds:t.productIds,wrapperClasses:"product-container"},on:{itemsFetched:function(e){return t.itemsFetched=e}}}),t._v(" "),t.homepageModules.news&&t.news.length?e("div",{staticClass:"py-5",attrs:{id:"articles"}},[e("div",{class:{center:t.isMounted&&t.$vuetify.breakpoint.mdAndUp}},[e("div",{staticClass:"news-container"},[e("h1",{staticClass:"home_container__title primary-font pb-5",class:(t.isMounted&&t.$vuetify.breakpoint.mdAndUp,""),style:{"text-align":t.isMounted&&t.$vuetify.breakpoint.mdAndUp?"left":"center"}},[t._v("\n            Artikler\n          ")]),t._v(" "),e("landing-page-news",{attrs:{isLandingPage:t.isLandingPage,news:t.news}}),t._v(" "),e("div",{staticClass:"d-flex justify-end see-more mt-5"},[e("NuxtLink",{staticClass:"see-more-btn secondary-font",staticStyle:{color:"var(--v-primary-base)"},attrs:{id:"more-articles-button",to:"/news"}},[t._v("\n              Flere artikler\n            ")]),t._v(" "),e("f-icon",{staticStyle:{"margin-top":"1px"},attrs:{color:"primary",icon:"icon-chevron-right"}})],1)],1)])]):t._e(),t._v(" "),t.homepageModules.giftcards?e("div",{staticClass:"background py-5",attrs:{id:"giftcard"}},[e("div",{class:{center:t.isMounted&&t.$vuetify.breakpoint.mdAndUp}},[e("giftcard",{class:{"px-4":t.isMounted&&t.$vuetify.breakpoint.mdAndDown},style:{"text-align":t.isMounted&&t.$vuetify.breakpoint.mdAndUp?"left":"center"}})],1)]):t._e(),t._v(" "),t.homepageModules.instagram&&t.instagramImages.length?e("div",{staticClass:"pt-5",attrs:{id:"instagram"}},[e("the-instagram-feed",{attrs:{images:t.instagramImages,title:"Instagram",salons:t.salons,salonSelector:!1}})],1):t._e(),t._v(" "),t.homepageModules.departments&&t.salons.length?e("div",{attrs:{id:"salons"}},[e(r.a,[e("the-salon-section",{attrs:{isLandingPage:!0,salons:t.salons,title:"Finn din salong"}})],1)],1):t._e()],1)],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Banner:n(1041).default,RecEngineModule:n(435).default,LandingPageNews:n(1043).default,Giftcard:n(1071).default})}}]);
//# sourceMappingURL=b716e67.js.map