1import{g as _}from"./uwp._commonjsHelpers.js";var d={exports:{}},g=d.exports,b;function y(){return b||(b=1,function(h,t){(function(e,r,o){h.exports=o(),h.exports.default=o()})("slugify",g,function(){var e=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","Â¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã
":"A","Ã":"AE","Ã":"C","Ã":"E","Ã":"E","Ã":"E","Ã":"E","Ã":"I","Ã":"I","Ã":"I","Ã":"I","Ã":"D","Ã":"N","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"U","Ã":"U","Ã":"U","Ã":"U","Ã":"Y","Ã":"TH","Ã":"ss","à ":"a","á":"a","â":"a","ã":"a","ä":"a","Ã¥":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","Ã":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ä":"A","Ä":"a","Ä":"A","Ä":"a","Ä":"A","Ä
":"a","Ä":"C","Ä":"c","Ä":"C","Ä":"c","Ä":"D","Ä":"d","Ä":"DJ","Ä":"dj","Ä":"E","Ä":"e","Ä":"E","Ä":"e","Ä":"e","Ä":"e","Ä":"E","Ä":"e","Ä":"G","Ä":"g","Ä¢":"G","Ä£":"g","Ĩ":"I","Ä©":"i","Ī":"i","Ä«":"i","Ä®":"I","į":"i","İ":"I","ı":"i","Ķ":"k","Ä·":"k","Ä»":"L","ļ":"l","Ľ":"L","ľ":"l","Å":"L","Å":"l","Å":"N","Å":"n","Å
":"N","Å":"n","Å":"N","Å":"n","Å":"O","Å":"o","Å":"O","Å":"o","Å":"OE","Å":"oe","Å":"R","Å":"r","Å":"R","Å":"r","Å":"S","Å":"s","Å":"S","Å":"s","Å ":"S","Å¡":"s","Å¢":"T","Å£":"t","Ť":"T","Å¥":"t","Ũ":"U","Å©":"u","Ū":"u","Å«":"u","Å®":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","ź":"z","Å»":"Z","ż":"z","Ž":"Z","ž":"z","Æ":"E","Æ":"f","Æ ":"O","Æ¡":"o","Ư":"U","ư":"u","Ç":"LJ","Ç":"lj","Ç":"NJ","Ç":"nj","È":"S","È":"s","È":"T","È":"t","É":"e","Ë":"o","Î":"A","Î":"E","Î":"H","Î":"I","Î":"O","Î":"Y","Î":"W","Î":"i","Î":"A","Î":"B","Î":"G","Î":"D","Î":"E","Î":"Z","Î":"H","Î":"8","Î":"I","Î":"K","Î":"L","Î":"M","Î":"N","Î":"3","Î":"O","Î ":"P","Ρ":"R","Σ":"S","Τ":"T","Î¥":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","Î":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","Ï":"p","Ï":"r","Ï":"s","Ï":"s","Ï":"t","Ï
":"y","Ï":"f","Ï":"x","Ï":"ps","Ï":"w","Ï":"i","Ï":"y","Ï":"o","Ï":"y","Ï":"w","Ð":"Yo","Ð":"DJ","Ð":"Ye","Ð":"I","Ð":"Yi","Ð":"J","Ð":"LJ","Ð":"NJ","Ð":"C","Ð":"DZ","Ð":"A","Ð":"B","Ð":"V","Ð":"G","Ð":"D","Ð":"E","Ð":"Zh","Ð":"Z","Ð":"I","Ð":"J","Ð":"K","Ð":"L","Ð":"M","Ð":"N","Ð":"O","Ð":"P","Ð ":"R","С":"S","Т":"T","У":"U","Ф":"F","Ð¥":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Ð":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","Ñ":"r","Ñ":"s","Ñ":"t","Ñ":"u","Ñ":"f","Ñ
":"h","Ñ":"c","Ñ":"ch","Ñ":"sh","Ñ":"sh","Ñ":"u","Ñ":"y","Ñ":"","Ñ":"e","Ñ":"yu","Ñ":"ya","Ñ":"yo","Ñ":"dj","Ñ":"ye","Ñ":"i","Ñ":"yi","Ñ":"j","Ñ":"lj","Ñ":"nj","Ñ":"c","Ñ":"u","Ñ":"dz","Ò":"G","Ò":"g","Ò":"GH","Ò":"gh","Ò":"KH","Ò":"kh","Ò¢":"NG","Ò£":"ng","Ò®":"UE","Ò¯":"ue","Ò°":"U","Ò±":"u","Òº":"H","Ò»":"h","Ó":"AE","Ó":"ae","Ó¨":"OE","Ó©":"oe","Ô±":"A","Ô²":"B","Ô³":"G","Ô´":"D","Ôµ":"E","Ô¶":"Z","Ô·":"E'","Ô¸":"Y'","Ô¹":"T'","Ôº":"JH","Ô»":"I","Ô¼":"L","Ô½":"X","Ô¾":"C'","Ô¿":"K","Õ":"H","Õ":"D'","Õ":"GH","Õ":"TW","Õ":"M","Õ
":"Y","Õ":"N","Õ":"SH","Õ":"CH","Õ":"P","Õ":"J","Õ":"R'","Õ":"S","Õ":"V","Õ":"T","Õ":"R","Õ":"C","Õ":"P'","Õ":"Q'","Õ":"O''","Õ":"F","Ö":"EV","Ø¡":"a","Ø¢":"aa","Ø£":"a","ؤ":"u","Ø¥":"i","ئ":"e","ا":"a","ب":"b","Ø©":"h","ت":"t","Ø«":"th","ج":"j","Ø":"h","Ø®":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","Ø´":"sh","ص":"s","ض":"dh","Ø·":"t","ظ":"z","ع":"a","غ":"gh","Ù":"f","Ù":"q","Ù":"k","Ù":"l","Ù
":"m","Ù":"n","Ù":"h","Ù":"w","Ù":"a","Ù":"y","Ù":"an","Ù":"on","Ù":"en","Ù":"a","Ù":"u","Ù":"e","Ù":"","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù¾":"p","Ú":"ch","Ú":"zh","Ú©":"k","Ú¯":"g","Û":"y","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9","฿":"baht","á":"a","á":"b","á":"g","á":"d","á":"e","á":"v","á":"z","á":"t","á":"i","á":"k","á":"l","á":"m","á":"n","á":"o","á":"p","á":"zh","á ":"r","á¡":"s","á¢":"t","á£":"u","á¤":"f","á¥":"k","á¦":"gh","á§":"q","á¨":"sh","á©":"ch","áª":"ts","á«":"dz","á¬":"ts","á":"ch","á®":"kh","á¯":"j","á°":"h","á¹¢":"S","á¹£":"s","áº":"W","áº":"w","áº":"W","áº":"w","áº":"W","áº
":"w","áº":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","áº":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","á»":"E","á»":"e","á»":"E","á»":"e","á»":"E","á»
":"e","á»":"E","á»":"e","á»":"I","á»":"i","á»":"I","á»":"i","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á» ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","á»§":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","á»":"u","á»®":"U","ữ":"u","á»°":"U","á»±":"u","Ỳ":"Y","ỳ":"y","á»´":"Y","ỵ":"y","á»¶":"Y","á»·":"y","Ỹ":"Y","ỹ":"y","â":"-","â":"'","â":"'","â":"\\"","â":"\\"","â":"\\"","â ":"+","â¢":"*","â¦":"...","â ":"ecu","â¢":"cruzeiro","â£":"french franc","â¤":"lira","â¥":"mill","â¦":"naira","â
1§":"peseta","â¨":"rupee","â©":"won","âª":"new shequel","â«":"dong","â¬":"euro","â":"kip","â®":"tugrik","â¯":"drachma","â°":"penny","â±":"peso","â²":"guarani","â³":"austral","â´":"hryvnia","âµ":"cedi","â¸":"kazakhstani tenge","â¹":"indian rupee","âº":"turkish lira","â½":"russian ruble","â¿":"bitcoin","â ":"sm","â¢":"tm","â":"d","â":"delta","â":"sum","â":"infinity","â¥":"love","å ":"yuan","å":"yen","ï·¼":"rial","ﻵ":"laa","ï»·":"laa","ﻹ":"lai","ï»»":"la"}`),r=JSON.parse('{"bg":{"Ð":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","Ñ":"ts","Ñ":"sht","Ñ":"a","Ñ":"y"},"de":{"Ã":"AE","ä":"ae","Ã":"OE","ö":"oe","Ã":"UE","ü":"ue","Ã":"ss","%":"prozent","&":"und","|":"oder","â":"summe","â":"unendlich","â¥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","â£":"francos","â":"suma","â":"infinito","â¥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","â£":"franc","â":"somme","â":"infini","â¥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","â":"soma","£":"libra","â":"infinito","â¥":"amor"},"uk":{"Ð":"Y","и":"y","Ð":"Y","й":"y","Ц":"Ts","Ñ":"ts","Ð¥":"Kh","Ñ ":"kh","Щ":"Shch","Ñ":"shch","Ð":"H","г":"h"},"vi":{"Ä":"D","Ä":"d"},"da":{"Ã":"OE","ø":"oe","à ":"AA","Ã¥":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","à ":"AA","Ã":"AE","Ã":"OE","Ã¥":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","à ":"AA","Ã":"AE","Ã":"OE","Ã¥":"aa","ä":"ae","ö":"oe"}}');function o(l,i){if(typeof l!="string")throw new Error("slugify: string argument expected");i=typeof i=="string"?{replacement:i}:i||{};var n=r[i.locale]||{},c=i.replacement===void 0?"-":i.replacement,a=i.trim===void 0?!0:i.trim,s=l.normalize().split("").reduce(function(u,f){var p=n[f]||e[f]||f;return p===c&&(p=" "),u+p.replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(s=s.replace(/[^A-Za-z0-9\s]/g,"")),a&&(s=s.trim()),s=s.replace(/\s+/g,c),i.lower&&(s=s.toLowerCase()),s}return o.extend=function(l){Object.assign(e,l)},o})}(d)),d.exports}var v=y();const m=_(v);class A extends HTMLElement{constructor(){super(),this._filter=null,this._breakpoint=window.innerWidth<="768"?"mobile":"desktop"}connectedCallback(){var t,e;if(this._breakpoint==="mobile"){this.renderMobileFilter();return}this._filter.displayType==="list"&&(((t=this._filter.manualValues)==null?void 0:t.length)>1||((e=this._filter.values)==null?void 0:e.length)>1||this.filter.filterType==="vendor"||this.filter.filterType==="product_type")?(this.renderAccordionFilter(),this.renderAccordionContent(),this.setAccordionEventListeners()):this._filter.displayType==="list"&&(this.renderInlineFilter(),this.setInlineEventListeners()),this.dataset.option=this._filter.filterOptionId}renderMobileFilter(t=!1){var e,r,o,l,i,n;if(!t&&((e=this._filter.manualValues)!=null&&e.length||(r=this._filter.values)!=null&&r.length)){let c='<div class="boost-filter__mobile-values">';((l=(o=this._filter)==null?void 0:o.manualValues)!=null&&l.length?(i=this._filter)==null?void 0:i.manualValues:(n=this._filter)==null?void 0:n.values).forEach(s=>{let u="";if(typeof s=="string"){const f=this.removeLabelPrefix(s);u=this.renderInlineFilter(m(s,{lower:!0,strict:!0,trim:!0}),f,this._filter.filterOptionId,!1,s)}else{const f=s!=null&&s.label?s.label:s.key;u=this.renderInlineFilter(m(f,{lower:!0,strict:!0,trim:!0}),f,this._filter.filterOptionId,!1)}c+=u}),c+="</div>",this.innerHTML=` 2 <div class="boost-filter boost-filter__mobile"> 3 <h4 class=" boost-filter__mobile-title subtitle-1"> 4 ${this._filter.label} 5 </h4> 6 ${c} 7 </div> 8 `,this.setMobileEventListeners(),this._filter.filterType==="vendor"&&this._filter.values.length===1&&this.updateCollectionBrand(this._filter.values[0].key);return}this.innerHTML=""}renderInlineFilter(t=this._filterHandle,e=this._filter.label,r=this._filter.filterOptionId,o=!0,l=e){const i=` 9 <div 10 class=" 11 boost-filter 12 boost-filter--top-level 13 boost-filter__checkbox 14 boost-filter--inline 15 " 16 data-filter-value="${t==="available-now"?!0:l}" 17 js-boost-filter="${t}" 18 js-boost-option="${r}" 19 > 20 <input 21 class="checkbox__input" 22 id="boost-filter-checkbox-${t}" 23 js-boost-filter="checkbox" 24 name="boost-filter-checkbox-${t}" 25 type="checkbox" 26 > 27 28 <label 29 class="boost-filter__label checkbox__label" 30 for="boost-filter-checkbox-${t}" 31 > 32 ${e} 33 </label> 34 </div> 35 `;return o&&(this.innerHTML=i),i}renderAccordionFilter(){this.innerHTML=` 36 <button 37 class=" 38 boost-filter 39 boost-filter--top-level 40 boost-filter--${this._filterHandle} 41 " 42 js-boost-filter="${this._filterHandle}" 43 >
44 <span class="boost-filter__label subtitle-2"> 45 ${this._filter.label} 46 </span> 47 48 <span class="boost-filter__icon"> 49 ${window.Frame.Boost.icons.expand} 50 </span> 51 </button> 52 `}updateCollectionBrand(t){const e=this._breakpoint==="mobile"?'[js-boost-option="pf_v_brand"]':'[data-filter-option="pf_v_brand"]',r=[...document.querySelectorAll(e)];r.forEach(i=>{i.classList.remove("is-active"),i.classList.add("is-disabled"),i.disabled=!0});const o=r.find(i=>i.dataset.filterValue===t);if(!o)return;o.classList.add("is-active");const l=o.querySelector(".checkbox__input");l&&(l.checked=!0)}renderAccordionContent(){var l,i,n,c;const t=(i=(l=this._filter)==null?void 0:l.manualValues)!=null&&i.length?(n=this._filter)==null?void 0:n.manualValues:(c=this._filter)==null?void 0:c.values,e=document.createElement("div"),r=4;e.setAttribute("js-boost-filter",`panel-${this._filterHandle}`),e.classList.add("boost-filter__accordion","visually-hidden"),e.setAttribute("style",`--column-item-count: ${Math.ceil(t.length/r)}`),t.forEach(a=>{const s=document.createElement("button");s.classList.add("boost-filter__facet","subtitle-2"),s.dataset.filterValue=this._filter.filterType==="collection"?a.handle:(a==null?void 0:a.key)||a,s.dataset.filterParent=this._filterHandle,s.dataset.f
52ilterOption=this._filter.filterOptionId,s.innerHTML=` 53 <span class="boost-filter__facet-icon"> 54 ${Frame.Boost.icons.tick} 55 </span> 56 <span class="boost-filter__facet-label"> 57 ${this.removeLabelPrefix((a==null?void 0:a.key)||a)} 58 </span> 59 `,s.addEventListener("click",u=>{this.handleFilterClick(u)}),e.insertAdjacentElement("beforeend",s)});const o=document.querySelector('[js-boost-filter-bar="accordion"]');o&&(o.insertAdjacentElement("beforeend",e),this._filter.filterType==="vendor"&&this._filter.values.length===1&&this.updateCollectionBrand(this._filter.values[0].key))}removeLabelPrefix(t){return typeof t!="string"?t.label.replace("Material:","").replace("filter:","").replace("Filter:","").trim():t.replace("Material:","").replace("filter:","").replace("Filter:","").trim()}setMobileEventListeners(){[...this.querySelectorAll('[js-boost-filter="checkbox"]')].forEach(e=>{e.addEventListener("change",r=>{this.handleMobileFilterChange(r)})})}handleMobileFilterChange(t){const e=t.target,r=e.closest(".boost-filter");if(!r)return;const o=r.getAttribute("js-boost-option"),l=r.dataset.filterValue;let i="add";const n=this._filter.selectType==="multiple"||this._filter.filterOptionId==="pf_st_available_now"||this._filter.filterOptionId==="pf_t_available_tag"?`${o}${encodeURIComponent("[]")}`:o;if(r.classList.contains("is-active")?(i="update",r.classList.remove("is-active"),e.checked=!1):(r.classList.add("is-active"),e.checked=!0),this._filter.filterType==="collection"){window.location.href=`/collections/${l}`;return}const c={action:i,requestParam:`${n}=${l.replace(/ /g,"+").replaceAll("&","%26")}`,option:`${n}`,optionValue:l};Frame.EventBus.emit("BoostApi:choices-updated",c)}handleFilterClick(t){const e=t.target;if(!e)return;const r=e.dataset.filterOption,o=e.dataset.filterValue,l=this._filter.selectType==="multiple"?`${r}${encodeURIComponent("[]")}`:r,i=e.classList.contains("is-active")?"update":"add";if(e.classList.toggle("is-active"),this._filter.filterType==="collection"){window.location.href=`/collections/${o}`;return}const n={action:i,requestParam:`${l}=${o.replace(/ /g,"+").replaceAll("&","%26")}`,option:`${l}`,optionValue:o};Frame.EventBus.emit("BoostApi:choices-updated",n)}setAccordionEventListeners(){const t=this.querySelector(`[js-boost-filter="${this._filterHandle}"]`);t&&t.addEventListener("click",()=>this.handleTopLevelToggle())}setInlineEventListeners(){const t=this.querySelector(`[js-boost-filter="${this._filterHandle}"]`),e=t==null?void 0:t.querySelector('[type="checkbox"]');!t||!e||e.addEventListener("input",r=>this.handleInlineFilterToggle(r))}handleTopLevelToggle(){this.openActivePanel(),this.toggleActiveButton()}handleInlineFilterToggle(t){var n,c,a,s;const e=this._filter.filterOptionId,r=t.target.closest(".boost-filter"),o=r.classList.contains("is-active")?"update":"add";let l="";((n=this._filter.values[0])==null?void 0:n.key)==="in-stock"?l=((c=this._filter.manualValues[0])==null?void 0:c.key)==="in-stock"||((a=this._filter.values[0])==null?void 0:a.key)==="in-stock":(((s=this._filter.values[0])==null?void 0:s.key)==="Available"||this._filter.filterOptionId==="pf_t_available_now")&&(l="Available"),r.classList.toggle("is-active");const i={action:o,requestParam:`${e}${encodeURIComponent("[]")}=${l}`,option:`${e}${encodeURIComponent("[]")}`,optionValue:l};Frame.EventBus.emit("BoostApi:choices-updated",i)}openActivePanel(){[...document.querySelectorAll(".boost-filter__accordion")].forEach(e=>{if(e.getAttribute("js-boost-filter")===`panel-${this._filterHandle}`){e.classList.toggle("visually-hidden");return}e.classList.add("visually-hidden")})}toggleActiveButton(){[...document.querySelectorAll(".boost-filter--top-level")].forEach(e=>{if(e.getAttribute("js-boost-filter")===this._filterHandle){e.classList.toggle("is-active");return}e.classList.remove("is-active")})}get filter(){return this._filter}set filter(t){this._filter=t,this._filterHandle=t.label.toLowerCase()}}customElements.define("boost-filter",A);
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.