PageSourceSearch

https://www.khk.se/assets/index-CNpBfagl.js

js khk.se collected 2026-09-25 06:49:38 UTC 58,282 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LayoutSectionLoader-CUYI56l3.js","assets/index-DgV8FTMp.js","assets/index-IEseBTUF.css","assets/helpers-DjuFaQPq.js","assets/article.api-DSDsj4Uz.js","assets/shop.api-DTmkk8kK.js","assets/fetch-videos-utils-5U41R48M.js","assets/ecal.api-Cd3SFJ7z.js","assets/ContentDisplayAds-ChCgvaw2.js","assets/article-C-a49G8f.js","assets/LayoutSectionLoader-D9awN6p9.css","assets/vue-image-zoomer.es-B-h5VQme.js"])))=>i.map(i=>d[i]);
2import{e as St,u as es,r as I,ak as qe,o as pe,m as Ne,s as He,_ as Ue,h as _e,z as G,B as _,C as l,D as m,G as j,H as X,E as d,F as V,aa as U,J as v,an as R,aA as L,a7 as fe,as as ve,N as P,a9 as F,K as H,ah as lt,ag as ce,O as x,I as O,bc as ts,a1 as wt,j as p,Y as ss,T as os,Q as is,g as Se,a5 as as,t as de,a2 as Pt,bd as ns,ad as rs,p as kt,aj as ls,am as us,aY as cs,be as ds,bf as ps,bg as hs,bh as ms,bi as gs,bj as Ct,bk as fs,bl as vs,bm as ys,b2 as bs,bn as _s,b1 as Ss,ab as ws,S as Ps,b as ks,w as be,l as Lt,d as Cs,f as Ls,b5 as Os}from"./index-DgV8FTMp.js";import{S as Vs}from"./Categories-BI6JWKY8.js";import{u as he,S as ye}from"./shop-DBEp14ee.js";import{P as Ts}from"./ProductItem-CVAl-jpi.js";import{P as Is,S as $s}from"./ShopProductSearch-qb_snbkZ.js";import{u as Le}from"./uniqBy-B-UK2TP3.js";import{f as Ds}from"./shop.api-DTmkk8kK.js";import{S as Bs}from"./SdpTextField-DHRMnYAE.js";import{P as As}from"./ProductList-CZ2GS9aV.js";import{g as Rs}from"./helpers-DjuFaQPq.js";import"./SdpCheckBox-3TjrRBjd.js";import"./article.api-DSDsj4Uz.js";import"./fetch-videos-utils-5U41R48M.js";import"./ecal.api-Cd3SFJ7z.js";function Es(e){const s=St(),o=I(null),t=I(null),n=es(e);return n?(s.selectLayoutById(n).then(()=>{const u=s.fullLayouts[n];if(!u)throw new Error("Layout not loaded");const i=JSON.parse(JSON.stringify(u));o.value=i}).catch(u=>{t.value=u}),{layout:o,error:t}):(t.value="No layoutId provided",{layout:o,error:t})}const Ms={name:"ShopSection",components:{SdpSection:He(()=>Ue(()=>import("./LayoutSectionLoader-CUYI56l3.js").then(e=>e.L),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),SdpLoader:qe},props:{layoutId:{type:String,required:!0}},setup(e){const s=St(),o=he(),t=_e({layout:null,loadedSections:[],isLoading:!0}),{layout:n}=Es(e.layoutId),u=(c,g)=>{t.loadedSections.push({id:c,isLoaded:g})},i=c=>t.loadedSections.find(g=>g.id===c)!==null,r=async()=>{o.productSkus=[],await s.loadFullLayout(e.layoutId),await s.selectLayoutById(e.layoutId)};return pe(async()=>{t.isLoading=!0,await r(),t.isLoading=!1}),Ne(async()=>{await r()}),{isLoaded:i,updateLoadingState:u,layout:n,state:t}}},Fs={key:0,class:"shop-section"},zs={key:0,class:"loader-container flex"},qs={class:"m-auto flex items-center justify-center"};function Ns(e,s,o,t,n,u){var c;const i=_("sdp-section"),r=_("sdp-loader");return(c=t.layout)!=null&&c.siteSections?(l(),m("div",Fs,[(l(!0),m(j,null,X(t.layout.siteSections,g=>(l(),m("div",{key:g.id},[d("div",{class:U(t.isLoaded(g.id)?"":"hidden")},[V(i,{section:g,onUpdateLoadingState:y=>t.updateLoadingState(g.id,y)},null,8,["section","onUpdateLoadingState"])],2)]))),128)),t.state.isLoading?(l(),m("div",zs,[d("span",qs,[V(r)])])):v("",!0)])):v("",!0)}const Hs=G(Ms,[["render",Ns],["__scopeId","data-v-74c47f76"]]);function Oe(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function Us(e){return(...s)=>!e(...s)}function Gs(e,s){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(s.trim())!==-1}function Ks(e){return e.filter(s=>!s.$isLabel)}function Ve(e,s){return o=>o.reduce((t,n)=>n[e]&&n[e].length?(t.push({$groupLabel:n[s],$isLabel:!0}),t.concat(n[e])):t,[])}const ut=(...e)=>s=>e.reduce((o,t)=>t(o),s);var js={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,s){return Oe(e)?"":s?e[s]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",s=e.toLowerCase().trim();let o=this.options.concat();return this.internalSearch?o=this.groupValues?this.filterAndFlat(o,s,this.label):this.filterOptions(o,s,this.label,this.customLabel):o=this.groupValues?Ve(this.groupValues,this.groupLabel)(o):o,o=this.hideSelected?o.filter(Us(this.isSelected)):o,this.taggable&&s.length&&!this.isExistingOption(s)&&(this.tagPosition==="bottom"?o.push({isTag:!0,label:e}):o.unshift({isTag:!0,label:e})),o.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(s=>this.customLabel(s,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0}
2,search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,s,o){return ut(this.filterGroups(s,o,this.groupValues,this.groupLabel,this.customLabel),Ve(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return ut(Ve(this.groupValues,this.groupLabel),Ks)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const s=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(s)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Oe(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const s=this.customLabel(e,this.label);return Oe(s)?"":s},select(e,s){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(s)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(s==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){s!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const s=this.options.find(o=>o[this.groupLabel]===e.$groupLabel);if(s){if(this.wholeGroupSelected(s)){this.$emit("remove",s[this.groupValues],this.id);const o=this.trackBy?s[this.groupValues].map(n=>n[this.trackBy]):s[this.groupValues],t=this.internalValue.filter(n=>o.indexOf(this.trackBy?n[this.trackBy]:n)===-1);this.$emit("update:modelValue",t)}else{const o=s[this.groupValues].filter(t=>!(this.isOptionDisabled(t)||this.isSelected(t)));this.max&&o.splice(this.max-this.internalValue.length),this.$emit("select",o,this.id),this.$emit("update:modelValue",this.internalValue.concat(o))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(s=>this.isSelected(s)||this.isOptionDisabled(s))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,s=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const o=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const t=this.internalValue.slice(0,o).concat(this.internalValue.slice(o+1));this.$emit("update:modelValue",t)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&s&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,s=window.innerHeight-this.$el.getBoundingClientRect().bottom;s>this.maxHeight||s>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(s-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,s,o,t){return s?e.filter(n=>Gs(t(n,o),s)).sort((n,u)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(n,u):t(n,o).length-t(u,o).length):e},filterGroups(e,s,o,t,n){return u=>u.map(i=>{if(!i[o])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const r=this.filterOptions(i[o],e,s,n);return r.length?{[t]:i[t],[o]:r}:[]})}}},xs={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,s){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(s)}},groupHighlight(e,s){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":s.$isLabel}];const o=this.options.find(t=>t[this.groupLabel]===s.$groupLabel);return o&&!this.wholeGroupDisabled(o)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(o)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerRe
2set()},pointerForward(){var e;this.pointer<this.filteredOptions.length-1&&(this.pointer++,((e=this.$refs.list)==null?void 0:e.scrollTop)<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){var e;this.pointer>0?(this.pointer--,((e=this.$refs.list)==null?void 0:e.scrollTop)>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},Ot={name:"vue-multiselect",mixins:[js,xs],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1},useTeleport:{type:Boolean,default:!1},teleportTarget:{type:[String,Object],default:"body"},contentWrapperClass:{type:[String,Array,Object],default:""}},data(){return{dropdownStyles:{},ready:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}},watch:{isOpen(e){e&&(this.useTeleport?(this.ready=!1,this.$nextTick(()=>{const s=this.$el.getBoundingClientRect();this.dropdownStyles={position:"absolute",top:`${s.bottom+window.scrollY}px`,left:`${s.left+window.scrollX}px`,width:`${s.width}px`,zIndex:9999},this.ready=!0})):this.ready=!0)}}};const Ws=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],Js={ref:"tags",class:"multiselect__tags"},Ys={class:"multiselect__tags-wrap"},Zs=["textContent"],Qs=["onKeydown","onMousedown"],Xs=["textContent"],eo={class:"multiselect__spinner"},to=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],so=["id","aria-multiselectable"],oo={key:0},io={class:"multiselect__option"},ao=["aria-selected","id","role"],no=["onClick","onMouseenter","data-select","data-selected","data-deselect"],ro=["data-select","data-deselect","onMouseenter","onMousedown"],lo={class:"multiselect__option"},uo={class:"multiselect__option"};function co(e,s,o,t,n,u){return l(),m("div",{tabindex:e.searchable?-1:o.tabindex,class:U([{"multiselect--active":e.isOpen,"multiselect--disabled":o.disabled,"multiselect--above":u.isAbove,"multiselect--has-options-group":u.hasOptionGroup},"multiselect"]),onFocus:s[14]||(s[14]=i=>e.activate()),onBlur:s[15]||(s[15]=i=>e.searchable?!1:e.deactivate()),onKeydown:[s[16]||(s[16]=F(L(i=>e.pointerForward(),["self","prevent"]),["down"])),s[17]||(s[17]=F(L(i=>e.pointerBackward(),["self","prevent"]),["up"])),s[18]||(s[18]=F(L(i=>e.addPointerElement(i),["stop","self"]),["enter","tab"]))],onKeyup:s[19]||(s[19]=F(i=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[R(e.$slots,"caret",{toggle:e.toggle},()=>[d("div",{onMousedown:s[0]||(s[0]=L(i=>
2e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),R(e.$slots,"clear",{search:e.search}),d("div",Js,[R(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:u.visibleValues,isOpen:e.isOpen},()=>[fe(d("div",Ys,[(l(!0),m(j,null,X(u.visibleValues,(i,r)=>R(e.$slots,"tag",{option:i,search:e.search,remove:e.removeElement},()=>[(l(),m("span",{class:"multiselect__tag",key:r,onMousedown:s[1]||(s[1]=L(()=>{},["prevent"]))},[d("span",{textContent:P(e.getOptionLabel(i))},null,8,Zs),d("i",{tabindex:"1",onKeydown:F(L(c=>e.removeElement(i),["prevent"]),["enter"]),onMousedown:L(c=>e.removeElement(i),["prevent"]),class:"multiselect__tag-icon"},null,40,Qs)],32))])),256))],512),[[ve,u.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>o.limit?R(e.$slots,"limit",{key:0},()=>[d("strong",{class:"multiselect__strong",textContent:P(o.limitText(e.internalValue.length-o.limit))},null,8,Xs)]):v("v-if",!0)]),V(lt,{name:"multiselect__loading"},{default:H(()=>[R(e.$slots,"loading",{},()=>[fe(d("div",eo,null,512),[[ve,o.loading]])])]),_:3}),e.searchable?(l(),m("input",{key:0,ref:"search",name:o.name,id:e.id,type:"text",autocomplete:"off",spellcheck:o.spellcheck,placeholder:e.placeholder,required:u.isRequired,style:ce(u.inputStyle),value:e.search,disabled:o.disabled,tabindex:o.tabindex,"aria-label":o.name+"-searchbox",onInput:s[2]||(s[2]=i=>e.updateSearch(i.target.value)),onFocus:s[3]||(s[3]=L(i=>e.activate(),["prevent"])),onBlur:s[4]||(s[4]=L(i=>e.deactivate(),["prevent"])),onKeyup:s[5]||(s[5]=F(i=>e.deactivate(),["esc"])),onKeydown:[s[6]||(s[6]=F(L(i=>e.pointerForward(),["prevent"]),["down"])),s[7]||(s[7]=F(L(i=>e.pointerBackward(),["prevent"]),["up"])),s[8]||(s[8]=F(L(i=>e.addPointerElement(i),["prevent","stop","self"]),["enter"])),s[9]||(s[9]=F(L(i=>e.removeLastElement(),["stop"]),["delete"]))],class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,to)):v("v-if",!0),u.isSingleLabelVisible?(l(),m("span",{key:1,class:"multiselect__single",onMousedown:s[10]||(s[10]=L((...i)=>e.toggle&&e.toggle(...i),["prevent"]))},[R(e.$slots,"singleLabel",{option:u.singleValue},()=>[x(P(e.currentOptionLabel),1)])],32)):v("v-if",!0),u.isPlaceholderVisible?(l(),m("span",{key:2,class:"multiselect__placeholder",onMousedown:s[11]||(s[11]=L((...i)=>e.toggle&&e.toggle(...i),["prevent"]))},[R(e.$slots,"placeholder",{},()=>[x(P(e.placeholder),1)])],32)):v("v-if",!0)],512),(l(),O(ts,{to:o.teleportTarget,disabled:!o.useTeleport},[V(lt,{name:"multiselect"},{default:H(()=>[e.isOpen&&n.ready?(l(),m("div",{key:0,class:U(["multiselect__content-wrapper",o.contentWrapperClass]),onFocus:s[12]||(s[12]=(...i)=>e.activate&&e.activate(...i)),tabindex:"-1",onMousedown:s[13]||(s[13]=L(()=>{},["prevent"])),style:ce([n.dropdownStyles,{maxHeight:e.optimizedHeight+"px"}]),ref:"list"},[d("ul",{class:"multiselect__content",style:ce(u.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[R(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(l(),m("li",oo,[d("span",io,[R(e.$slots,"maxElements",{},()=>[x("Maximum of "+P(e.max)+" options selected. First remove a selected option to select another.",1)])])])):v("v-if",!0),!e.max||e.internalValue.length<e.max?(l(!0),m(j,{key:1},X(e.filteredOptions,(i,r)=>(l(),m("li",{class:"multiselect__element",key:r,"aria-selected":e.isSelected(i),id:e.id+"-"+r,role:i&&(i.$isLabel||i.$isDisabled)?null:"option"},[i&&(i.$isLabel||i.$isDisabled)?v("v-if",!0):(l(),m("span",{key:0,class:U([e.optionHighlight(r,i),"multiselect__option"]),onClick:L(c=>e.select(i),["stop"]),onMouseenter:L(c=>e.pointerSet(r),["self"]),"data-select":i&&i.isTag?e.tagPlaceholder:u.selectLabelText,"data-selected":u.selectedLabelText,"data-deselect":u.deselectLabelText},[R(e.$slots,"option",{option:i,search:e.search,index:r},()=>[d("span",null,P(e.getOptionLabel(i)),1)])],42,no)),i&&(i.$isLabel||i.$isDisabled)?(l(),m("span",{key:1,"data-select":e.groupSelect&&u.selectGroupLabelText,"data-deselect":e.groupSelect&&u.deselectGroupLabelText,class:U([e.groupHighlight(r,i),"multiselect__option"]),onMouseenter:L(c=>e.groupSelect&&e.pointerSet(r),["self"]),onMousedown:L(c=>e.selectGroup(i),["prevent"])},[R(e.$slots,"option",{option:i,search:e.search,index:r},()=>[d("span",null,P(e.getOptionLabel(i)),1)])],42,ro)):v("v-if",!0)],8,ao))),128)):v("v-if",!0),fe(d("li",null,[d("span",lo,[R(e.$slots,"noResult",{search:e.search},()=>[s[20]||(s[20]=x("No elements found. Consider changing the search query."))])])],512),[[ve,o.showNoResults&&e.filteredOptions.length===0&&e.search&&!o.loading]]),fe(d("li",null,[d("span",uo,[R(e.$slots,"noOptions",{},()=>[s[21]||(s[21]=x("List is empty."))])])],512),[[ve,o.showNoOptions&&e.filteredOptions.length===0&&!e.search&&!o.loading]]),R(e.$slots,"afterList")],12,so)],38)):v("v-if",!0)]),_:3})],8,["to","disabled"]))],42,Ws)}Ot.render=co;const po={name:"CustomMultiSelectBase",components:{VueMultiselect:Ot,SdpStreamlineIcon:wt},props:{id:{type:String,default:"multi-select"},dropdownIsOpen:{type:Boolean,defualt:!1}},emits:["update:modelValue"],setup(e,{emit:s}){const o=I([]),t=p(()=>e.dropdownIsOpen),n=p({get:()=>o.value,set:c=>{o.value=c}});return{currentSelection:o,clearAll:()=>{n.value=[],s("update:modelValue",[])},selected:n,scrollListener:c=>{console.info("element",c);const g=c==null?void 0:c.srcElement;((g==null?void 0:g.scrollHeight)??0)-((g==null?void 0:g.scrollTop)??0)===((g==null?void 0:g.clientHeight)??0)&&console.info("THE END")},toggle:(c,g)=>
2{console.info("event",g.toggle())},getDropdownisOpen:t}}},ho={class:"custom__tag"},mo={class:"mr-3"},go=["onClick","onKeydown"];function fo(e,s,o,t,n,u){const i=_("sdp-streamline-icon"),r=_("vue-multiselect");return l(),O(r,ss({id:o.id},e.$attrs,{modelValue:t.selected,"onUpdate:modelValue":s[0]||(s[0]=c=>t.selected=c),onScroll:t.scrollListener}),{tag:H(({option:c,remove:g})=>[d("span",ho,[d("span",mo,P(c.name),1),V(i,{icon:"removeWithColorBg",size:20,class:"text-white",onClick:y=>g(c)},null,8,["onClick"])])]),clear:H(c=>[t.selected.length?(l(),m("div",{key:0,class:"multiselect__clear",role:"button",tabindex:"0",onClick:L(g=>t.clearAll(c.search),["prevent","stop"]),onKeydown:[F(L(g=>t.clearAll(c.search),["prevent","stop"]),["enter"]),F(L(g=>t.clearAll(c.search),["prevent","stop"]),["space"])]},null,40,go)):v("",!0)]),caret:H(c=>[t.getDropdownisOpen?v("",!0):(l(),O(i,{key:0,icon:"caretDownThin",size:25,class:"absolute right-3 top-4 selector-icon cursor-pointer",onMousedown:L(g=>t.toggle(g,c),["prevent","stop"])},null,8,["onMousedown"])),t.getDropdownisOpen?(l(),O(i,{key:1,icon:"caretUpThin",size:25,class:"absolute right-3 top-4 selector-icon cursor-pointer",onMousedown:L(g=>t.toggle(g,c),["prevent","stop"])},null,8,["onMousedown"])):v("",!0)]),default:H(()=>[s[1]||(s[1]=d("span",{slot:"noResult"},"Oops! No elements found. Consider changing the search query.",-1))]),_:1},16,["id","modelValue","onScroll"])}const Vt=G(po,[["render",fo]]),vo={name:"CategorySelector",components:{CustomMultiselectSize:Vt},props:{id:{type:String,default:""},categories:{type:Array,default:()=>[]}},setup(e){const{categories:s}=os(e),o=p(()=>s.value??[]),t=I(!1);return{openCloseDropDown:()=>{t.value=!0},closeDropdown:()=>{t.value=!1},isDropDownOpen:t,selectorOptions:o}}};function yo(e,s,o,t,n,u){const i=_("custom-multiselect-size");return l(),O(i,{id:o.id,options:t.selectorOptions,"track-by":"name",label:"name",searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:"Select categories",class:"multi-selector category-selector","dropdown-is-open":t.isDropDownOpen,onOpen:t.openCloseDropDown,onClose:t.closeDropdown},null,8,["id","options","dropdown-is-open","onOpen","onClose"])}const bo=G(vo,[["render",yo],["__scopeId","data-v-5443c1f8"]]),_o={name:"SubCategories",components:{CategorySelector:bo,SyHeading:is},props:{categoryTitle:{type:String,default:""}},setup(){const e=he(),s=Se(),o=as(),{params:t,query:n}=s,u=_e({isFilterSubCategoryProduct:!1,selectedSubMenu:""}),i=p(()=>e.subCategories??[]),r=y=>{y&&(u.isFilterSubCategoryProduct=!0,e.setCategoryProducts(y.products),e.setSubCategory(y),u.selectedSubMenu=y.name,o.replace({name:"Shop",params:{...t},query:{category:y.url}}))},c=()=>{var y;u.isFilterSubCategoryProduct=!1,u.selectedSubMenu="",e.categoryProducts=((y=e.category)==null?void 0:y.products)??[]},g=y=>{r(y)};return pe(()=>{var y;if(n&&!de(n.category)){u.isFilterSubCategoryProduct=!0;const C=(y=i.value)==null?void 0:y.find(E=>E.url===(n==null?void 0:n.category));e.setSubCategory(C),u.selectedSubMenu=C==null?void 0:C.name,r(C)}}),Pt(()=>{e.categoryProducts=[]}),{state:u,getSubCategoryProduct:r,showAllProduct:c,getSubCategories:i,selectedSubCategories:g}}},So={class:"side-bar"},wo={class:"menu p-4 overflow-y-auto w-80 bg-base-100 text-base-content"},Po=["onClick"],ko={class:"lg:hidden md:hidden block my-4"};function Co(e,s,o,t,n,u){const i=_("sy-heading"),r=_("category-selector");return l(),m("div",So,[V(i,{primary:"",uppercase:"",heading:"heading 3","heading-label":o.categoryTitle,class:"title","has-rectangle":!1},null,8,["heading-label"]),V(i,{primary:"",uppercase:"",heading:"heading 3","heading-label":o.categoryTitle,class:"title-sm"},null,8,["heading-label"]),d("ul",wo,[t.state.isFilterSubCategoryProduct?(l(),m("span",{key:0,class:"show-all",onClick:s[0]||(s[0]=(...c)=>t.showAllProduct&&t.showAllProduct(...c)),onKeypress:()=>{}},P(e.$t("shop.category.show_all")),33)):v("",!0),(l(!0),m(j,null,X(t.getSubCategories,(c,g)=>(l(),m("li",{key:g,class:"py-2"},[d("a",{class:U({selected:t.state.selectedSubMenu===c.name}),onClick:y=>t.getSubCategoryProduct(c),onKeypress:()=>{}},P(c.name),43,Po)]))),128))]),d("div",ko,[t.state.isFilterSubCategoryProduct?(l(),m("span",{key:0,class:"show-all",onClick:s[1]||(s[1]=(...c)=>t.showAllProduct&&t.showAllProduct(...c)),onKeypress:()=>{}},P(e.$t("shop.category.show_all")),33)):v("",!0),V(r,{modelValue:t.state.selectedSubMenu,"onUpdate:modelValue":s[2]||(s[2]=c=>t.state.selectedSubMenu=c),categories:t.getSubCategories,searchable:!1,onSelect:t.selectedSubCategories},null,8,["modelValue","categories","onSelect"])])])}const Lo=G(_o,[["render",Co],["__scopeId","data-v-db5ebd50"]]),Oo={name:"CategoriesList",components:{ProductItem:Ts,SubCategories:Lo,SdpLoader:He(()=>Ue(()=>import("./index-DgV8FTMp.js").then(e=>e.e2),__vite__mapDeps([1,2]))),MediaRenderer:ns},props:{activeTab:{type:String,required:!1,default:""}},emits:["goToProduct"],setup(e,{emit:s}){const o=he(),t=Se(),n=I(!1),u=p(()=>{var h;
2return(h=t==null?void 0:t.params)==null?void 0:h.id}),i=p(()=>{var w;const h=(w=o.categories)==null?void 0:w.find($=>{var B;return $.url===((B=t==null?void 0:t.params)==null?void 0:B.id)});return(h==null?void 0:h.name)??e.activeTab}),r=p(()=>o.isLoading),c=p(()=>o.category),g=p(()=>o.categoryProducts),y=p(()=>{var h,w,$;return(h=c.value)!=null&&h.imageUrl?new us({url:(w=c.value)==null?void 0:w.imageUrl}):($=c.value)==null?void 0:$.imageUrl}),C="height: 330px;",E={width:"1500px",paddingTop:"10px"},z=h=>{s("goToProduct",h)},K=async h=>{await o.getSubCategories(h)},W=h=>{const w=h.target;w.src=ls},D=async()=>{var B,J;const h=JSON.parse(JSON.stringify(g.value)),w=(J=(B=window==null?void 0:window.Cart)==null?void 0:B.order())==null?void 0:J.token,$=h.map(te=>te.sku);o.fetchPrices({skus:$,userToken:w})};Ne(async()=>{var h;await o.getCategoryByUrl((h=t==null?void 0:t.params)==null?void 0:h.id)}),pe(async()=>{o.isLoading=!0,await o.getCategoryByUrl(u.value),await D(),await K(c.value.id),o.isLoading=!1,rs(cs.SHOP.PRODUCT_PAGE.BREADCRUMBS),o.setSubCategory({})});const T=p(()=>{var h,w,$,B,J,te,Y;return{name:((h=c.value)==null?void 0:h.seoTitle)||((w=c.value)==null?void 0:w.name)||"",description:(($=c.value)==null?void 0:$.seoDescription)||((B=c.value)==null?void 0:B.shortDescription)||"",title:((J=c.value)==null?void 0:J.seoTitle)||((te=c.value)==null?void 0:te.name)||"",image:((Y=c.value)==null?void 0:Y.imageUrl)||""}});return kt({title:p(()=>{var h;return(h=T.value)==null?void 0:h.name}),meta:[{hid:"description",property:"description",content:p(()=>{var h;return(h=T.value)==null?void 0:h.description})},{property:"og:title",content:p(()=>{var h;return(h=T.value)==null?void 0:h.title})},{property:"og:description",content:p(()=>{var h;return(h=T.value)==null?void 0:h.description})},{property:"og:image",content:p(()=>{var h;return(h=T.value)==null?void 0:h.image})},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"600"}]}),{customSlotStyle:E,setAltImg:W,categoryDetails:c,categoryProducts:g,goToProduct:z,isLoading:r,categoryUrlName:u,categoryTitle:i,isGettingProductFromSubCat:n,categoryImg:y,customStyle:C,isEmpty:de}}},Vo={class:"category-list-container"},To={key:0,class:"py-8"},Io={class:"flex flex-wrap"},$o={class:"drawer-content"},Do={class:"flex flex-wrap"},Bo={class:"promo-image-container"},Ao={class:"promo-description-container"},Ro=["innerHTML"],Eo={class:"products-container"},Mo={key:0,class:"flex"},Fo={class:"m-auto flex items-center justify-center"},zo={key:1,class:"products-list"},qo={key:2,class:"no-prod-container"},No={class:"m-auto flex items-center justify-center font-bold text-grey-base"};function Ho(e,s,o,t,n,u){var y,C,E;const i=_("sub-categories"),r=_("media-renderer"),c=_("sdp-loader"),g=_("product-item");return l(),m("div",Vo,[t.isLoading?v("",!0):(l(),m("div",To,[d("div",Io,[V(i,{"category-title":t.categoryTitle},null,8,["category-title"]),d("div",$o,[!t.isEmpty(t.categoryImg)||!t.isEmpty((y=t.categoryDetails)==null?void 0:y.shortDescription)?(l(),m("div",{key:0,class:U([{"bg-primary-base":!t.isEmpty((C=t.categoryDetails)==null?void 0:C.shortDescription)},"promo-area-container pb-3"])},[d("div",Do,[d("div",Bo,[V(r,{"media-object":t.categoryImg,class:"promo-image","custom-style":t.customStyle},null,8,["media-object","custom-style"])]),d("div",Ao,[d("p",{class:"promo-descriptions",innerHTML:(E=t.categoryDetails)==null?void 0:E.shortDescription},null,8,Ro)])])],2)):v("",!0),d("div",Eo,[t.isGettingProductFromSubCat?(l(),m("div",Mo,[d("span",Fo,[V(c)])])):v("",!0),!t.isGettingProductFromSubCat&&t.categoryProducts.length>0?(l(),m("div",zo,[(l(!0),m(j,null,X(t.categoryProducts,(z,K)=>(l(),m("div",{key:K},[V(g,{"item-details":z,onGoToProduct:t.goToProduct},null,8,["item-details","onGoToProduct"])]))),128))])):v("",!0),!t.isGettingProductFromSubCat&&t.categoryProducts.length<=0?(l(),m("div",qo,[d("span",No,P(e.$t("shop.campaign.no_products_available")),1)])):v("",!0)])])])]))])}const Uo=G(Oo,[["render",Ho],["__scopeId","data-v-dd21840a"]]),Go={name:"SearchResults",components:{ProductSearch:Is}},Ko={class:"search-results"};function jo(e,s,o,t,n,u){const i=_("product-search");return l(),m("div",Ko,[V(i,{"product-count":39,"enable-pagination":""})])}const xo=G(Go,[["render",jo],["__scopeId","data-v-cad66ee6"]]);var Te,ct;function Wo(){if(ct)return Te;ct=1;var e=ds(),s=ps(),o=hs(),t=e?e.isConcatSpreadable:void 0;function n(u){return o(u)||s(u)||!!(t&&u&&u[t])}return Te=n,Te}var Ie,dt;function Jo(){if(dt)return Ie;dt=1;var e=ms(),s=Wo();function o(t,n,u,i,r){var c=-1,g=t.length;for(u||(u=s),r||(r=[]);++c<g;){var y=t[c];n>0&&u(y)?n>1?o(y,n-1,u,i,r):e(r,y):i||(r[r.length]=y)}return r}return Ie=o,Ie}var $e,pt;function Yo(){if(pt)return $e;pt=1;function e(s,o,t){switch(t.length){case 0:return s.call(o);case 1:return s.call(o,t[0]);case 2:return s.call(o,t[0],t[1]);case 3:return s.call(o,t[0],t[1],t[2])}return s.apply(o,t)}return $e=e,$e}var De,ht;function Zo(){if(ht)return De;ht=1;var e=Yo(),s=Math.max;function o(t,n,u){return n=s(n===void 0?t.length-1:n,0),function(){for(var i=arguments,r=-1,c=s(i.length-n,0),g=Array(c);++r<c;)g[r]=i[n+r];r=-1;for(var y=Array(n+1);++r<n;)y[r]=i[r];return y[n]=u(g),e(t,this,y)}}return De=o,De}var Be,mt;function Qo(){if(mt)return Be;mt=1;function e(s){return function(){return s}}return Be=e,Be}var Ae,gt;function Xo(){if(gt)return Ae;gt=1;var e=Qo(),s=gs(),o=Ct(),t=s?function(n,u){return s(n,"toString",{configurable:!0,enumerable:!1,value:e(u),writable:!0})}:o;return Ae=t,Ae}var Re,ft;function ei(){if(ft)return Re;ft=1;var e=800,s=16,o=Date.now;function t(n){var u=0,i=0;return function(){var r=o(),c=s-(r-i);if(i=r,c>0){if(++u>=e)return arguments[0]}else u=0;return n.apply(void 0,arguments)}}return Re=t,Re}var Ee,vt;
2function ti(){if(vt)return Ee;vt=1;var e=Xo(),s=ei(),o=s(e);return Ee=o,Ee}var Me,yt;function si(){if(yt)return Me;yt=1;var e=Ct(),s=Zo(),o=ti();function t(n,u){return o(s(n,u,e),n+"")}return Me=t,Me}var Fe,bt;function oi(){if(bt)return Fe;bt=1;var e=fs(),s=vs(),o=ys(),t=bs();function n(u,i,r){if(!t(r))return!1;var c=typeof i;return(c=="number"?s(r)&&o(i,r.length):c=="string"&&i in r)?e(r[i],u):!1}return Fe=n,Fe}var ze,_t;function ii(){if(_t)return ze;_t=1;var e=Jo(),s=_s(),o=si(),t=oi(),n=o(function(u,i){if(u==null)return[];var r=i.length;return r>1&&t(u,i[0],i[1])?i=[]:r>2&&t(i[0],i[1],i[2])&&(i=[i[0]]),s(u,e(i,1),[])});return ze=n,ze}var ai=ii();const ni=Ss(ai),ri={name:"SdpBreadCrumbs",props:{routes:{type:Array,required:!0},activeRoute:{type:Object,required:!0}},computed:{breadcrumbItems(){return[...this.routes,{...this.activeRoute,path:""}]}}},li={class:"breadcrumbs"},ui=["href"],ci={key:1,class:"breadcrumb-current"};function di(e,s,o,t,n,u){return l(),m("nav",null,[d("ul",li,[(l(!0),m(j,null,X(u.breadcrumbItems,(i,r)=>(l(),m("li",{key:r},[i.path?(l(),m("a",{key:0,href:i.path,class:"breadcrumb-link"},P(i.name),9,ui)):(l(),m("span",ci,P(i.name),1))]))),128))])])}const pi=G(ri,[["render",di],["__scopeId","data-v-8ad16ee1"]]),hi={name:"SdpMultiSelect",components:{CustomMultiSelectBase:Vt},props:{id:{type:String,required:!0},options:{type:Array,default:()=>[],validator:e=>e!=null}},setup(){const e=I(!1);return{openCloseDropDown:()=>{e.value=!0},closeDropdown:()=>{e.value=!1},isDropDownOpen:e}}};function mi(e,s,o,t,n,u){const i=_("custom-multi-select-base");return l(),O(i,{id:o.id,options:o.options,"track-by":"name",label:"name",searchable:!0,"show-labels":!1,"allow-empty":!1,class:"multi-selector","dropdown-is-open":t.isDropDownOpen,onOpen:t.openCloseDropDown,onClose:t.closeDropdown},null,8,["id","options","dropdown-is-open","onOpen","onClose"])}const gi=G(hi,[["render",mi],["__scopeId","data-v-832d3f52"]]),fi="https://s3-eu-west-1.amazonaws.com/static.wm3.se/sites/904/media/776132_large_DSC01878.jpg?1642596165",vi={name:"ProductImageThumbnail",components:{},props:{image:{type:String,default:fi}},setup(e){return{productImage:p(()=>({backgroundImage:`url('${e.image}')`,backgroundPosition:"center center"}))}}},yi={class:"product-img-thumbnail"};function bi(e,s,o,t,n,u){return l(),m("div",yi,[s[0]||(s[0]=d("div",{style:{"padding-bottom":"100%"},class:"image-sizer"},null,-1)),d("div",{style:ce(t.productImage),class:"image"},null,4),s[1]||(s[1]=d("div",{style:{flex:"1 0 0"}},null,-1))])}const _i=G(vi,[["render",bi],["__scopeId","data-v-efaac911"]]),Si=ws({name:"SdpCollapsiblePanel",components:{SdpStreamlineIcon:wt},props:{collapsed:{type:Boolean,default:!1},clickTitleToCollapse:{type:Boolean,default:!0},iconSize:{type:Number,default:20},disabled:{type:Boolean,default:!1},hasExpandTransition:{type:Boolean,default:!0},arrowColor:{type:String,default:"text-primary-base"}},emits:["update:collapsed","collapsed-toggled"],setup(e,{emit:s}){const o=()=>{s("update:collapsed",!e.collapsed),s("collapsed-toggled")};return{titleCollapse:()=>{e.clickTitleToCollapse&&o()},toggleCollapse:o}}}),wi={class:"collapsible-panel"},Pi={class:"flex w-full select-none items-center"};function ki(e,s,o,t,n,u){const i=_("sdp-streamline-icon");return l(),m("div",wi,[d("header",Pi,[d("div",{class:U(["title",{"cursor-pointer":e.clickTitleToCollapse}]),role:"button",tabindex:"0",onClick:s[0]||(s[0]=(...r)=>e.titleCollapse&&e.titleCollapse(...r)),onKeydown:[s[1]||(s[1]=F((...r)=>e.titleCollapse&&e.titleCollapse(...r),["enter"])),s[2]||(s[2]=F(L((...r)=>e.titleCollapse&&e.titleCollapse(...r),["prevent"]),["space"]))]},[R(e.$slots,"title",{},void 0,!0)],34),e.collapsed&&!e.disabled?(l(),O(i,{key:0,class:U("cursor-pointer collapse-button "+e.arrowColor),icon:"arrowUp",size:e.iconSize,onClick:e.toggleCollapse},null,8,["class","size","onClick"])):v("",!0),!e.collapsed&&!e.disabled?(l(),O(i,{key:1,class:U("cursor-pointer collapse-button adjust-down-arrow "+e.arrowColor),icon:"arrowDown",size:e.iconSize,onClick:e.toggleCollapse},null,8,["class","size","onClick"])):v("",!0)]),e.collapsed?(l(),m("div",{key:0,class:U(["collapsible-body",{"expand-close":!e.collapsed,"expand-transition":e.hasExpandTransition}])},[R(e.$slots,"default",{},void 0,!0)],2)):v("",!0)])}const Ci=G(Si,[["render",ki],["__scopeId","data-v-70079aeb"]]),Li={name:"ProductInfo",components:{SdpCollapsiblePanel:Ci},props:{title:{type:String,default:""},content:{type:String,default:""}},setup(){return{isCollapsed:I()}}},Oi={class:"item-label"},Vi=["innerHTML"];function Ti(e,s,o,t,n,u){const i=_("sdp-collapsible-panel");return l(),m(j,null,[V(i,{collapsed:t.isCollapsed,"onUpdate:collapsed":s[0]||(s[0]=r=>t.isCollapsed=r),class:"mt-8 mb-6"},{title:H(()=>[d("span",Oi,P(o.title),1)]),default:H(()=>[d("p",{class:"item-description",innerHTML:o.content},null,8,Vi)]),_:1},8,["collapsed"]),s[1]||(s[1]=d("div",{class:"w-full border-t border-grey-light"},null,-1))],64)}const Ii=G(Li,[["render",Ti],["__scopeId","data-v-6e60eac7"]]),$i={svart:"black",vit:"white",grå:"gray",röd:"red",gul:"yellow",grön:"green",blå:"blue"},Di={name:"ProductPageDetail",components:{SdpBreadCrumbs:pi,VueImageZoomer:He(async()=>(await Ue(async()=>{const{VueImageZoomer:e}=await import("./vue-image-zoomer.es-B-h5VQme.js");return{VueImageZoomer:e}},__vite__mapDeps([11,1,2]))).VueImageZoomer),ProductImageThumbnail:_i,ProductList:As,ProductInfo:Ii,SdpTextField:Bs,SdpMultiSelect:gi,SyButton:Ps,SdpLoader:qe},props:{product:{type:Object,default:{}}},setup(){const{t:e}=ks(),s=he(),o=Se(),t=p(()=>s.product),n=I(null),u=I(),i=I(null),r=I(null),c=I(!1),g={path:"/shop",name:"Shop"},y=_e({info:!1,size:!1,instruction:!1}),C=I(0),E=p(()=>s.isLoading),z=p(()=>{var a;return(a=o==null?void 0:o.params)==null?void 0:a.id}),K=p(()=>({path:"",name:o.params.id})),W=I(!1),D=I(""),T=I(0),h=I(null),w=I(),$=I(null),B=I([]),J=p(()=>{var a;return((a=t.value)==null?void 0:a.images)??[]}),te=p(()=>{var a,f,b,k,S,A,N,M;return(f=(a=t.value)==null?void 0:a.images)!=null&&f.length?(k=t.value)!=null&&k.images[C.value].largeUrl?(S=t.value)==null?void 0:S.images[C.value].imageUrl:(A=t.value)!=null&&A.images[C.value].mediumUrl?(N=t.value)==null?void 0:N.images[C.value].mediumUrl:(M=t.value)==null?void 0:M.images[C.value].thumbUrl:((b=t.value)==null?void 0:b.imageUrl)??""}),Y=p(()=>{var a;return((a=t.value)==null?void 0:a.combinations)??[]}),se=p(()=>{var a;return((a=t.value)==null?void 0:a.variants)??[]}),ae=p(()=>{var k;const a=(k=Y.value)==null?void 0:k.map(S=>
2typeof(S==null?void 0:S.size)=="string"?[]:S==null?void 0:S.size).filter(Boolean);return Le(a,"id").sort().map(S=>({id:S.id,name:S.name,value:S.name}))}),oe=p(()=>{var f;const a=(f=Y.value)==null?void 0:f.map(b=>b.color?{...b.color,variantId:b.id}:null).filter(Boolean);return Le(a,"name")}),ie=p(()=>s.getPriceForSku(n.value??"")??0),Ge=p(()=>t.value.standardPrice??ie.value??0),Tt=p(()=>!n.value||!s.hasPriceForSku(n.value)?!1:ie.value<Ge.value),ee=p(()=>{var f;const a=(f=Y.value)==null?void 0:f.map(b=>b==null?void 0:b.print).filter(Boolean);return Le(a,"id").sort()}),me=p(()=>s.relatedProducts||[]),we=p(()=>ie.value!==""&&ie.value!==0),Pe=p(()=>{var a,f,b;return w.value?((a=w.value)==null?void 0:a.availableInStock)>0:(f=t.value)!=null&&f.availableInStock?((b=t.value)==null?void 0:b.availableInStock)>0:!1}),It=p(()=>{var a;return Pe.value?we.value:we.value&&((a=w.value)==null?void 0:a.backorderable)}),Ke=p(()=>we.value?new Intl.NumberFormat("sv-SE",{style:"currency",currency:"SEK",minimumFractionDigits:0}).format(ie.value??""):""),ke=p(()=>ae.value.length>0||oe.value.length>0||ee.value.length>0),$t=p(()=>ke.value&&c.value),je=p(()=>{var a;return!ke.value&&((a=se.value)==null?void 0:a.length)>0}),Dt=p(()=>{var b;const a=k=>k.reduce((S,A,N)=>{const M=`shop.product_detail.variant_types.${A.type}`,Z=`${e(M)}: ${A.name}`;return N>0?`${S} / ${Z}`:`${S}${Z}`},"");return(b=se.value)==null?void 0:b.map(k=>{const S=ni(k.type,["type"]),A=a(S);return{id:k.id,name:A,value:A}})}),Bt=p(()=>s.category),At=p(()=>s.subCategory),Rt=a=>`background-color: ${$i[a]??a}`,xe=p(()=>s.categories??[]),Et=(a,f)=>{var k;C.value=a;const b=(k=oe.value)==null?void 0:k.find(S=>(S==null?void 0:S.variantId)===f.variantId);i.value=b},Mt=a=>{var b;const f=(b=J.value)==null?void 0:b.findIndex(k=>k.variantId===a.variantId);C.value=f,i.value=a},Ft=async()=>{const a=t.value.relatedProducts;await s.getRelatedProductByIds(a)},We=()=>{var a,f,b,k;h.value=(a=ae.value)==null?void 0:a[0],i.value=(f=oe.value)==null?void 0:f[0],r.value=(b=ee.value)==null?void 0:b[0],$.value=(k=se.value)==null?void 0:k[0],n.value=t.value.sku},Je=async a=>{await s.setProductByUrl(a),We()},zt=async()=>{try{const a=await Rs();u.value=a}catch(a){console.warn(a)}},Ye=async()=>{var k,S,A,N;const a=n.value||(t==null?void 0:t.value.sku),f=(k=me==null?void 0:me.value)==null?void 0:k.map(M=>M.sku),b=(A=(S=window==null?void 0:window.Cart)==null?void 0:S.order())==null?void 0:A.token;if(!((N=s.prices)!=null&&N[a])){const M=[a,...f];s.fetchPrices({skus:M,userToken:b})}},qt=p(()=>{var a,f;return w.value?w.value.id:((a=t.value)==null?void 0:a.variantId)??((f=t.value)==null?void 0:f.id)}),Nt=p(()=>{var a,f;return ee.value.length===0?!1:((a=r.value)==null?void 0:a.name)==="name"||((f=r.value)==null?void 0:f.name)==="name-and-number"}),Ht=p(()=>{var a,f;return ee.value.length===0?!1:((a=r.value)==null?void 0:a.name)==="number"||((f=r.value)==null?void 0:f.name)==="name-and-number"}),Ut=()=>{let a={};return xe.value.length>0&&xe.value.forEach(f=>{f.products.length>0&&f.products.find(k=>k.id===t.value.id)&&(a=f)}),a},Ze=p(()=>{var a,f;return Pe.value?(a=t.value)==null?void 0:a.inStockDeliveryText:(f=t.value)==null?void 0:f.outOfStockDeliveryText}),Gt=p(()=>{var a,f,b;return!((a=t.value)!=null&&a.description)&&!((f=t.value)!=null&&f.measurements)&&!((b=t.value)!=null&&b.careAdvice)}),Kt=p(()=>`${Ke.value?`${e("shop.product_detail.delivery_time")} ${Ze.value}`:""} `),jt=async()=>{let a=Bt.value;const f=At.value;B.value.push(g),de(a)&&(a=Ut()),B.value.push({path:`/shop/category/${a.url}`,name:a.name}),de(f)||B.value.push({path:`/shop/category/${a.url}?category=${f.url}`,name:f.name}),W.value=!0},xt=()=>{var b,k,S,A,N,M,Z,ne,re,le,ue,Xe,et,tt;if(je.value&&$.value){w.value=(b=se.value)==null?void 0:b.find(Q=>{var ge;return Q.id===((ge=$.value)==null?void 0:ge.id)}),n.value=((k=w.value)==null?void 0:k.sku)??((S=t.value)==null?void 0:S.sku),c.value=!1;return}if(((A=ae.value)==null?void 0:A.length)>0&&!h.value){n.value=(N=t.value)==null?void 0:N.sku;return}if(((M=oe.value)==null?void 0:M.length)>0&&!i.value){n.value=(Z=t.value)==null?void 0:Z.sku;return}let a=!(((ne=ee.value)==null?void 0:ne.length)>0);((re=ee.value)==null?void 0:re.length)>
20&&!r.value&&(a=!0);const f=(le=Y.value)==null?void 0:le.find(Q=>{var st,ot,it,at,nt,rt;const ge=ae.value.length===0||((st=Q.size)==null?void 0:st.id)===((ot=h.value)==null?void 0:ot.id),Xt=oe.value.length===0||((it=Q.color)==null?void 0:it.id)===((at=i.value)==null?void 0:at.id);let Ce=!1;return a?Ce=!Q.hasOwnProperty("print"):Ce=((nt=Q.print)==null?void 0:nt.id)===((rt=r.value)==null?void 0:rt.id),ge&&Xt&&Ce});if(!f){w.value=null,n.value=(ue=t.value)==null?void 0:ue.sku,c.value=!0;return}c.value=!1,w.value=((Xe=se.value)==null?void 0:Xe.find(Q=>Q.id===f.id))??null,n.value=((et=w.value)==null?void 0:et.sku)??((tt=t.value)==null?void 0:tt.sku)},Wt=()=>{n.value!==null&&Ye()},Jt=p(()=>T.value===0?null:T.value),Yt=p(()=>D.value.length===0?null:D.value);be([h,r,i,$],xt),be(()=>n.value,Wt),Ne(async()=>{await Je(o.params.id)}),pe(async()=>{s.isLoading=!0,de(Lt(t))?await Je(o.params.id):We(),await Ft(),await Ye(),await jt(),await zt(),s.isLoading=!1}),be(()=>z.value,()=>{B.value=[]}),Pt(()=>{B.value=[],s.product={},s.category={},s.subCategory={}});const Zt=Cs(),Qe=Ls(),Qt=Zt.getLocaleCurrency,q=p(()=>{var a,f,b,k,S,A,N,M,Z,ne,re,le,ue;return{name:((a=t.value)==null?void 0:a.seoTitle)||((f=t.value)==null?void 0:f.name)||"",seoDescription:((b=t.value)==null?void 0:b.shortDe
2scription)||((k=t.value)==null?void 0:k.description)||"",description:((S=t.value)==null?void 0:S.description)||"",title:((A=t.value)==null?void 0:A.seoTitle)||((N=t.value)==null?void 0:N.name)||"",image:((M=t.value)==null?void 0:M.imageUrl)||"",url:`${Qe.getPublicUrlForCurrentSite}shop/product/${(Z=t.value)==null?void 0:Z.url}`,price:((ne=t.value)==null?void 0:ne.standardPrice)||0,currency:Qt||"",availability:(re=t.value)!=null&&re.availableInStock&&((le=t.value)==null?void 0:le.availableInStock)>0?"in stock":"out of stock",brand:Qe.getSiteCode||"",sku:((ue=t.value)==null?void 0:ue.sku)||""}});return kt({title:p(()=>{var a;return(a=q.value)==null?void 0:a.name}),meta:[{hid:"description",property:"description",content:p(()=>{var a;return(a=q.value)==null?void 0:a.description})},{property:"og:title",content:p(()=>{var a;return(a=q.value)==null?void 0:a.title})},{property:"og:description",content:p(()=>{var a;return(a=q.value)==null?void 0:a.seoDescription})},{property:"og:image",content:p(()=>{var a;return(a=q.value)==null?void 0:a.image})},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"600"},{property:"og:url",content:p(()=>{var a;return(a=q.value)==null?void 0:a.url})},{property:"og:price:amount",content:p(()=>{var a;return(a=q.value)==null?void 0:a.price})},{property:"og:price:currency",content:p(()=>{var a;return(a=q.value)==null?void 0:a.currency})},{property:"product:availability",content:p(()=>{var a;return(a=q.value)==null?void 0:a.availability})},{property:"product:brand",content:p(()=>{var a;return(a=q.value)==null?void 0:a.brand})},{property:"product:condition",content:"new"},{property:"product:price:amount",content:p(()=>{var a;return(a=q.value)==null?void 0:a.price})},{property:"product:price:currency",content:p(()=>{var a;return(a=q.value)==null?void 0:a.currency})},{property:"product:retailer_item_id",content:p(()=>{var a;return(a=q.value)==null?void 0:a.sku})}]}),{colorOptions:oe,getColorStyle:Rt,colorSelected:i,setColorSelected:Mt,sizeOptions:ae,productListPanel:y,productImages:J,getProduct:t,getMainProductImage:te,currentImageIndex:C,setImageIndex:Et,getProductPrice:Ke,getBreadcrumbsRoutes:B,getRelatedProducts:me,isLoading:E,productId:z,activeRoute:K,getProductVariantId:qt,shopConfig:u,crumbLoaded:W,isProductIsOnSale:Tt,standardProductPrice:Ge,formatPrice:Ds,sizeSelected:h,printOptions:ee,printSelected:r,hasTextField:Nt,customPrintText:D,isPurchasable:It,isInvalidCombination:$t,hasOptions:ke,getDeliveryTimeText:Ze,isAvailableInStock:Pe,currentSku:n,variantSelected:w,currentProductPrice:ie,productCombinations:Y,hasNumberField:Ht,customPrintNumber:T,shouldShowVariantSelector:je,variantOptions:Dt,variants:se,fallbackVariantSelected:$,customPrintNumberData:Jt,customPrintTextData:Yt,productInfoHideWhenEmpty:Gt,deliveryInformation:Kt}}},Bi={key:0,class:"product mx-2"},Ai={class:"breadcrumbs-container"},Ri={class:"product-container"},Ei={class:"product-image-container"},Mi={class:"image"},Fi={class:"product-thumbnails"},zi={class:"product-detail-container"},qi={class:"product-name"},Ni=["innerHTML"],Hi={class:"variant-section"},Ui={class:"stock col-span-2"},Gi={key:0,class:"available"},Ki={key:1,class:"not-available"},ji={class:"delivery"},xi={key:0,class:"wrong-combination"},Wi={key:0,class:"variant-section"},Ji={class:"stock col-span-2"},Yi={class:"color-header"},Zi={key:1,class:"variant-section"},Qi={key:0,class:"color-section mt-3"},Xi={class:"color-header"},ea={class:"colors flex-wrap"},ta=["onClick"],sa={class:"size-section mt-3 mb-4"},oa={class:"selector"},ia={key:0},aa={class:"size-header"}
2,na={key:1,class:"print-section mb-3 col-span-2"},ra={class:"print-header"},la={key:0,class:"mt-2"},ua={class:"action-container"},ca={key:0,class:"price-container"},da={key:0,class:"price previous-price"},pa={class:"price"},ha={key:1,class:"loader-container flex"},ma={class:"m-auto flex items-center justify-center"},ga={class:"product-buy-container hidden lg:block lg:ml-4"},fa={class:"product-buy-container block lg:hidden"},va={key:2,class:"product-info-section mt-5"};function ya(e,s,o,t,n,u){var D,T;const i=_("sdp-bread-crumbs"),r=_("vue-image-zoomer"),c=_("client-only"),g=_("product-image-thumbnail"),y=_("sdp-multi-select"),C=_("sdp-text-field"),E=_("sdp-loader"),z=_("sy-button"),K=_("product-info"),W=_("product-list");return t.isLoading?v("",!0):(l(),m("div",Bi,[d("div",Ai,[t.crumbLoaded?(l(),O(i,{key:0,routes:t.getBreadcrumbsRoutes,"active-route":t.activeRoute},null,8,["routes","active-route"])):v("",!0)]),d("div",Ri,[d("div",Ei,[d("div",Mi,[V(c,null,{default:H(()=>[V(r,{regular:t.getMainProductImage,zoom:t.getMainProductImage,"click-zoom":!0},null,8,["regular","zoom"])]),_:1})]),d("div",Fi,[(l(!0),m(j,null,X(t.productImages,(h,w)=>(l(),O(g,{key:w,image:h.thumbUrl,class:U(["mx-2",[t.currentImageIndex===w?"image-selected":""]]),onClick:$=>t.setImageIndex(w,h)},null,8,["image","class","onClick"]))),128))])]),d("div",zi,[d("span",qi,P((D=t.getProduct)==null?void 0:D.name),1),d("p",{class:"product-description",innerHTML:(T=t.getProduct)==null?void 0:T.shortDescription},null,8,Ni),d("div",Hi,[d("div",Ui,[t.isAvailableInStock&&t.isPurchasable?(l(),m("span",Gi,P(t.getProductPrice?e.$t("shop.product_detail.in_stock"):" "),1)):(l(),m("span",Ki,P(t.getProductPrice?e.$t("shop.product_detail.out_of_stock"):" "),1)),d("span",ji,P(t.deliveryInformation),1)]),t.isInvalidCombination&&t.getProductPrice?(l(),m("div",xi,[d("div",null,P(e.$t("shop.product_detail.wrong_combinations")),1)])):v("",!0)]),t.shouldShowVariantSelector?(l(),m("div",Wi,[d("div",Ji,[d("span",Yi,P(e.$t("shop.product_detail.select_variant")),1),V(y,{id:"variant-selector",modelValue:t.fallbackVariantSelected,"onUpdate:modelValue":s[0]||(s[0]=h=>t.fallbackVariantSelected=h),placeholder:e.$t("shop.product_detail.select_variant"),options:t.variantOptions??[]},null,8,["modelValue","placeholder","options"])])])):(l(),m("div",Zi,[t.colorOptions.length>0?(l(),m("div",Qi,[d("span",Xi,P(e.$t("shop.product_detail.color")),1),d("div",ea,[(l(!0),m(j,null,X(t.colorOptions,(h,w)=>{var $;return l(),m("div",{key:w,class:U(["color-dot mt-2",(($=t.colorSelected)==null?void 0:$.name)===(h==null?void 0:h.name)?"selected":""]),style:ce(t.getColorStyle(h==null?void 0:h.name)),onClick:B=>t.setColorSelected(h),onKeydown:B=>({})},null,46,ta)}),128))])])):v("",!0),d("div",sa,[d("div",oa,[t.sizeOptions.length>0?(l(),m("div",ia,[d("span",aa,P(e.$t("shop.product_detail.size")),1),V(y,{id:"size-selector",modelValue:t.sizeSelected,"onUpdate:modelValue":s[1]||(s[1]=h=>t.sizeSelected=h),class:"size-selector",placeholder:e.$t("shop.product_detail.select_size"),options:t.sizeOptions},null,8,["modelValue","placeholder","options"])])):v("",!0)])]),t.printOptions.length>0?(l(),m("div",na,[d("span",ra,P(e.$t("shop.product_detail.print_options")),1),V(y,{id:"print-selector",modelValue:t.printSelected,"onUpdate:modelValue":s[2]||(s[2]=h=>t.printSelected=h),class:"print-selector",placeholder:e.$t("shop.product_detail.select_prints"),options:t.printOptions??[]},null,8,["modelValue","placeholder","options"]),t.printSelected?(l(),m("div",la,[t.hasTextField?(l(),O(C,{key:0,value:t.customPrintText,"onUpdate:value":s[3]||(s[3]=h=>t.customPrintText=h),placeholder:e.$t("shop.product_detail.enter_text"),class:"mt-8 mr-3",clearable:!0},null,8,["value","placeholder"])):v("",!0),t.hasNumberField?(l(),O(C,{key:1,value:t.customPrintNumber,"onUpdate:value":s[4]||(s[4]=h=>t.customPrintNumber=h),type:"number",placeholder:e.$t("shop.product_detail.enter_number"),class:"mt-8 mr-3",clearable:!0},null,8,["value","placeholder"])):v("",!0)])):v("",!0)])):v("",!0)])),d("div",ua,[t.getProductPrice?(l(),m("div",ca,[t.isProductIsOnSale?(l(),m("span",da,P(t.formatPrice(t.standardProductPrice)),1)):v("",!0),d("span",pa,P(t.getProductPrice),1)])):(l(),m("div",ha,[d("span",ma,[V(E,{"custom-styles":"height: 3rem; width: 3rem"})])])),d("div",ga,[t.isPurchasable?(l(),O(z,{key:0,primary:"",size:"big",class:"cart-widget-action","data-quantity":"1","data-tag":"addOrderItem","data-variant":t.getProductVariantId,"data-property-number":t.customPrintNumberData,"data-property-text":t.customPrintTextData},{default:H(()=>[x(P(e.$t("shop.product_detail.buy")),1)]),_:1},8,["data-variant","data-property-number","data-property-text"])):(l(),O(z,{key:1,primary:"",disabled:"",size:"big",class:"cart-widget-action"},{default:H(()=>[x(P(e.$t("shop.product_detail.buy")),1)]),_:1}))]),d("div",fa,[t.isPurchasable?(l(),O(z,{key:0,primary:"",size:"medium",class:"cart-widget-action","data-quantity":"1","data-tag":"addOrderItem","data-variant":t.getProductVariantId,"data-property-number":t.customPrintNumberData,"data-property-text":t.customPrintTextData},{default:H(()=>[x(P(e.$t("shop.product_detail.buy")),1)]),_:1},8,["data-variant","data-property-number","data-property-text"])):(l(),O(z,{key:1,primary:"",disabled:"",size:"medium",class:"cart-widget-action"},{default:H(()=>[x(P(e.$t("shop.product_detail.buy")),1)]),_:1}))])]),t.productInfoHideWhenEmpty?v("",!0):(l(),m("div",va,[s[5]||(s[5]=d("div",{class:"w-full border-t border-grey-light"},null,-1)),t.getProduct.description?(l(),O(K,{key:0,title:e.$t("shop.product_detail.product_information"),content:t.getProduct.description},null,8,["title","content"])):v("",!0),t.getProduct.measurements?(l(),O(K,{key:1,title:e.$t("shop.product_detail.size_and_fitting"),content:t.getProduct.measurements},null,8,["title","content"])):v("",!0),t.getProduct.careAdvice?(l(),O(K,{key:2,title:e.$t("shop.product_detail.care_instructions"),content:t.getProduct.careAdvice},null,8,["title","content"])):v("",!0)]))])]),t.getRelatedProducts.length>0?(l(),O(W,{key:0,title:e.$t("shop.product_detail.related_products"),"product-list":t.getRelatedProducts},null,8,["title","product-list"])):v("",!0)]))}const ba=G(Di,[["render",ya],["__scopeId","data-v-2d088d7f"]]),_a={name:"ShopLandingPage",components:{ProductPageDetail:ba,SdpLoader:qe,ShopCategories:Vs,ShopSection:Hs,CategoriesList:Uo,SearchResults:xo,ShopProductSearch:$s},props:{layoutId:{type:String,default:""}},setup(){const e=he(),s=Se(),o=_e({products:[],category:{},product:{},isLoading:!0,subCategories:[],layout:null,loadedSections:[]}),t=(D,T)=>{o.loadedSections.push({id:D,isLoaded:T})},n=I(),u=p(()=>e.isLoading),i=p(()=>{var D,T;if((D=s==null?void 0:s.params)!=null&&D.type)return(T=s==null?void 0:s.params)==null?void 0:T.type}),r=Lt(i),c=r===ye.LANDING_PAGE||!r,g=r===ye.PRODUCT_VIEW,y=r===ye.CATEGORY_VIEW,C=r===ye.SEARCH_RESULTS,E=p(()=>{var D;return(D=s==null?void 0:s.params)==null?void 0:D.id}),z={width:"1500px",paddingTop:"10px"},K=p(()=>e.categories.map(T=>({name:T.name,url:T.url,type:T.url,id:T.id}))),W=async()=>{try{await e.getCategories()}catch{}};return pe(async()=>{o.isLoading=!0,n.value=E.value,await W(),o.isLoading=!1,Os("#shop_categories_menu",{useStickyClasse
2s:!0,parentClass:"app-container"})}),be(()=>E.value,()=>{e.isLoading=!0,e.category={}}),{activeTab:n,customSlotStyle:z,typeFromRoute:i,categorId:E,state:o,updateLoadingState:t,categories:K,isLoading:u,toLoadLandingPage:c,toLoadProductPage:g,toLoadCategoryPage:y,toLoadSearchResultsPage:C}}},Sa={class:"relative grid grid-cols-1"},wa={key:0,class:"loader-container flex"},Pa={class:"m-auto flex items-center justify-center"},ka={key:3,class:"sm:mx-0 lg:mx-20"},Ca={key:2,class:"loader-container flex"},La={class:"m-auto flex items-center justify-center"};function Oa(e,s,o,t,n,u){const i=_("shop-categories"),r=_("shop-product-search"),c=_("shop-section"),g=_("sdp-loader"),y=_("search-results"),C=_("categories-list"),E=_("product-page-detail");return l(),m("div",null,[d("div",Sa,[V(i,{id:"shop_categories_menu"}),t.toLoadSearchResultsPage?v("",!0):(l(),O(r,{key:0})),t.toLoadLandingPage?(l(),m(j,{key:1},[V(c,{"layout-id":o.layoutId},null,8,["layout-id"]),t.state.isLoading?(l(),m("div",wa,[d("span",Pa,[V(g)])])):v("",!0)],64)):t.toLoadSearchResultsPage?(l(),O(y,{key:2})):(l(),m("div",ka,[t.toLoadCategoryPage?(l(),O(C,{key:0})):t.toLoadProductPage?(l(),O(E,{key:1})):v("",!0),t.isLoading?(l(),m("div",Ca,[d("span",La,[V(g)])])):v("",!0)]))])])}const Ha=G(_a,[["render",Oa],["__scopeId","data-v-dd670acb"]]);export{Ha as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.