(window.webpackJsonp=window.webpackJsonp||[]).push([[275],{1580:function(e,t,n){"use strict";n.r(t);var o=n(809),r=n(572),l=n(566),c={name:"BestsellerView",mixins:[o.a,r.a,l.a],middleware:"ralph-list-page-routing",data:function(){return{listType:"all"}},computed:{staticListInfo:function(){var title=this.$t("BESTSELLER_PAGE_TITLE");return{name:title,meta:{title:title,description:title}}},outOfStockFacet:function(){return"ss_out_of_stock"},outletProductsFacet:function(){return this.outletFacet},saleProductsFacet:function(){return this.saleFacet},excludeFacets:function(){return[this.outOfStockFacet]}},meta:{pageType:"Bestseller Page"}},d=n(144),component=Object(d.a)(c,(function(){var e=this;return(0,e._self._c)("CaListPage",{attrs:{type:e.listType,"list-info":e.staticListInfo,"implicit-facets":["p_1_40_BESTSELLER"],"exclude-facets":e.excludeFacets}})}),[],!1,null,null,null);t.default=component.exports;installComponents(component,{CaListPage:n(872).default})},706:function(e,t,n){"use strict";n(118),n(60),n(29),n(13),n(35),n(73),n(307);var o=n(697);t.a={name:"MixMetaReplacement",mixins:[o.a],data:function(){return{genders:["man","kvinna","unisex","kille","tjej","ungdom","unisex-youth","girl","boy","unisex","woman","man","mann","kvinne","unisex","gutt","jente","unisex-ungdom","unisex-nuoret","tytöt","pojat","unisex","nainen","mies","mand","kvinde","unisex","dreng","pige","ungdom","unisex-youth","girl","boy","unisex","woman","man"]}},computed:{arrayFromRoute:function(){return this.$route.path.split("/")}},methods:{checkForGender:function(e){return!!this.genders.some((function(element){return element===e}))&&("mand"===e||"mand-1"===e?"For mænd og drenge":"kvinde"===e||"kvinde-1"===e?"For kvinder og piger":"dreng"===e||"dreng-1"===e?"For drenge":"pige"===e||"pige-1"===e?"For piger":"ungdom"===e||"ungdom-1"===e?"For unge":"man"===e||"man-1"===e?"för män och killar":"kvinna"===e||"kvinna-1"===e?"för kvinnor och tjejer":"kille"===e||"kille-1"===e?"för killar":"tjej"===e||"tjej-1"===e?"för tjejer":"ungdom"===e||"ungdom-1"===e?"för ungdomar":this.unslug(e))},unslug:function(e){if(e&&isNaN(e)){for(var t=e.split(/[_,\- ]+/),i=0;i<t.length;i++){var n=t[i];t[i]=n.charAt(0).toUpperCase()+n.slice(1)}return t.join(" ")}return e},capitalize:function(e){if(e){var t=e;return t.charAt(0).toUpperCase()+t.slice(1)}return!1},metaReplacement:function(e){var t=this;if(e){return(e=this.textVariation(e)).replace(/\[.*?\]/gi,(function(e){var n,o,r,l,c,d,m,v,f,h,k,x,F,j;switch(e){case"[count]":e=t.totalCount||"";break;case"[dlong]":e=t.textVariation(null===(n=t.listInfo)||void 0===n?void 0:n.primaryDescription)||(null===(o=t.product)||void 0===o||null===(o=o.texts)||void 0===o?void 0:o.text2)||"";break;case"[dshort]":e=t.textVariation(null===(r=t.listInfo)||void 0===r?void 0:r.secondaryDescription)||(null===(l=t.product)||void 0===l||null===(l=l.texts)||void 0===l?void 0:l.text1)||"";break;case"[color]":case"[artnr]":e="";break;case"[gender]":e=t.checkForGender(t.gender)?t.checkForGender(t.gender):"";break;case"[brand]":e=(null===(c=t.product)||void 0===c||null===(c=c.brand)||void 0===c?void 0:c.name)||"";break;case"[pid]":e=(null===(d=t.product)||void 0===d?void 0:d.productId)||"";break;case"[cat]":case"[category]":e=(null===(m=t.listInfo)||void 0===m?void 0:m.name)||"";break;case"[price]":e=null!==(v=t.product)&&void 0!==v&&v.unitPrice?t.$store.getters.getSellingPrice(null===(f=t.product)||void 0===f?void 0:f.unitPrice):"";break;case"[pmax]":e=(null===(h=t.filters)||void 0===h||null===(h=h.price)||void 0===h?void 0:h.highest)||"";break;case"[pmin]":e=(null===(k=t.filters)||void 0===k||null===(k=k.price)||void 0===k?void 0:k.lowest)||"";break;case"[name]":e=(null===(x=t.listInfo)||void 0===x?void 0:x.name)||(null===(F=t.product)||void 0===F?void 0:F.name)||(null===(j=t.meta)||void 0===j?void 0:j.title)||""}return e}))}}}}},809:function(e,t,n){"use strict";n(32),n(66);var o=n(706);t.a={name:"MixStaticListMeta",mixins:[o.a],head:function(){var e,t,n,o,r;return{title:this.metaReplacement(null===(e=this.staticListInfo)||void 0===e||null===(e=e.meta)||void 0===e?void 0:e.title),meta:[{hid:"description",name:"description",content:this.metaReplacement(null===(t=this.staticListInfo)||void 0===t||null===(t=t.meta)||void 0===t?void 0:t.description)},{hid:"og:title",name:"og:title",content:this.metaReplacement(null===(n=this.staticListInfo)||void 0===n||null===(n=n.meta)||void 0===n?void 0:n.title)},{hid:"og:description",name:"og:description",content:this.metaReplacement(null===(o=this.staticListInfo)||void 0===o||null===(o=o.meta)||void 0===o?void 0:o.description)},{hid:"og:image",property:"og:image",content:(null===(r=this.staticListInfo)||void 0===r?void 0:r.primaryImage)||this.$config.baseUrl+"/meta-image-fallback.jpg"}]}}}}}]);