PageSourceSearch

https://www.siniat.pl/etex/js/assets/js/5156.c0b4d32b494f0e9250ce.mjs

js siniat.pl collected 2026-10-07 23:25:07 UTC 41,834 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebpack=self.webpackChunkwebpack||[]).push([[5156,3975],{33975:function(e,t,s){s.r(t),s.d(t,{BookmarkEvents:function(){return c},default:function(){return o}});var a=s(2272),i=s(72717),n=s(6910),l=s(70392),r=s.n(l);const c={FavoriteUpdated:"favorite-updated"};class o extends a.V{constructor(){super(...arguments),this.readyState=!1}onInit(){!0===this.parm.isBookmarkingEnabled&&this.parm.bookmarkType&&this.parm.bookmarkType.length>0&&(this.initFavorites(),this.reInitCompsOnDomChangeFor(this.element))}fetchFavorites(e){this.favoritesManager&&this.favoritesManager.listFavorites((t=>{t&&t.clone().json().then((t=>{const s=t;this.alpineInstance.bookmarkList=0===s.length?[]:s,this.alpineInstance.readyState=!0,r().publish(c.FavoriteUpdated,{ids:this.alpineInstance.bookmarkList,type:this.parm.bookmarkType}),e&&e.removeAttribute("disabled")}))}))}initFavorites(){this.favoritesManager=i.Z.getInstance(this.parm.bookmarkType),this.myAccountManager=n.I.getInstance(),this.favoritesManager&&(this.myAccountManager&&this.myAccountManager.isAuthenticated?(this.alpineInstance.isAuthenticated=!0,this.fetchFavorites(null)):this.alpineInstance.readyState=!0)}toggleBookmark(e,t){if(!this.favoritesManager||!this.myAccountManager)return;if(!this.myAccountManager.isAuthenticated)return void this.myAccountManager.login(e);const s=e.target,a=s.parentElement.parentElement.parentElement,i="BUTTON"==s.nodeName.toUpperCase()?s:a;i.setAttribute("disabled","true"),this.alpineInstance.bookmarkList.includes(t)?(this.alpineInstance.bookmarkList=this.alpineInstance.bookmarkList.filter((e=>e!==t)),this.favoritesManager.deleteFavorite(t,(e=>this.fetchFavorites(i)))):(this.alpineInstance.bookmarkList.push(t),this.favoritesManager.addFavorite(t,(e=>this.fetchFavorites(i))))}initAlpineVariables(){this.alpineInstance.bookmarkList=[],this.alpineInstance.readyState=this.readyState}getDataImplement(){return{readyState:null,isAuthenticated:null,bookmarkList:[],toggleBookmark:(e,t)=>{this.toggleBookmark(e,t)}}}}},72717:function(e,t,s){var a=s(42799),i=s(79234);class n extends a.o{constructor(e,t){super(e),this.init(),this.type=t}init(){}static getInstance(e){if(!n.instance[e]){let t=document.querySelector("[data-component-class='FavoritesManager']");n.instance[e]=t?new n(t,e):null}return n.instance[e]}addFavorite(e,t){const s=this.parm.addFavoriteUrl+"?ts="+(new Date).getTime();let a={id:e,type:this.type},n=new i.o(s,a,!1);this.ajaxWrapper.doFetch(n).then((e=>t(e)))}addFavorites(e,t){const s=this.parm.addFavoritesUrl+"?ts="+(new Date).getTime();let a={ids:e,type:this.type},n=new i.o(s,a,!1);this.ajaxWrapper.doFetch(n).then((e=>t(e)))}deleteFavorite(e,t){const s=this.parm.deleteFavoriteUrl+"?ts="+(new Date).getTime();let a={id:e,type:this.type},n=new i.o(s,a,!1);this.ajaxWrapper.doFetch(n).then((e=>t(e)))}deleteFavorites(e,t){const s=this.parm.deleteFavoritesUrl+"?ts="+(new Date).getTime();let a={ids:e,type:this.type},n=new i.o(s,a,!1);this.ajaxWrapper.doFetch(n).then((e=>t(e)))}listFavorites(e){const t=this.parm.listFavoritesUrl+"?ts="+(new Date).getTime();let s={type:this.type},a=new i.o(t,s,!1);this.ajaxWrapper.doFetch(a).then((t=>e(t)))}}n.instance=[],t.Z=n},15156:function(e,t,s){s.r(t),s.d(t,{ImsSystemSelectorItem:function(){return E},default:function(){return L}});var a=s(70392),i=s.n(a),n=s(29300),l=s(79234);class r{constructor(e,t){this.count=e.count,this.displayName=e.displayName,this.key=e.key,this.selected=e.selected,this.value=e.value,this.callBack=t}deselect(){this.selected=!1,this.isSelection=!1,this.callBack(this.getAlpineData())}select(){this.selected=!this.selected,this.isSelection=!0,this.callBack(this.getAlpineData())}getAlpineData(){return{count:this.count,displayName:this.displayName,key:this.key,selected:this.selected,value:this.value,iconUrl:this.iconUrl,description:this.description,isSelection:this.isSelection,onFacetValueDeleted:()=>{this.deselect()},onFacetValueSelected:()=>{this.select()},formattedValue:()=>this.displayName}}}var c=s(66721);class o{static renderSsAlpineFacet(){return'\n            <summary class="c-ss-filters__summary">
1\n                <span x-text="facet.displayName"></span>\n            </summary>\n\n            \x3c!--Facet will render itself--\x3e\n            <div class="c-ss-filters__details-content">\n                <div class="c-ss-dropdown-wrapper">\n                    <details class="c-ss-dropdown__details"\n                             data-webid="DropdownFacet"\n                             x-bind:open="localStorage.getItem(`${key}-dropdown`)">\n                        <summary class="c-ss-dropdown__summary"\n                            data-webid="DropdownFacetSummary"\n                            x-html="getFirstValueSummaryText()"\n                            x-on:click="localStorage.getItem(`${key}-dropdown`) ? localStorage.removeItem(`${key}-dropdown`) : localStorage.setItem(`${key}-dropdown`, \'open\');"\n                            ></summary>\n                        <div class="c-ss-dropdown__content">\n                            <template x-for="(value, index) in values">\n                            <div class="c-choice c-choice--check c-choice--ss-filter">\n                                <input class="c-choice__input"\n                                        type="checkbox"\n                                        x-model="value.selected"\n                                        :name="`sysselector-filter-${key}`"\n                                        :id="`sysselector-filter-${key}-${value.key}-${index}`"\n                                        x-on:change="value.onFacetValueSelected()">\n                                <label class="c-choice__label"\n                                       :for="`sysselector-filter-${key}-${value.key}-${index}`"\n                                       data-webid="DropdownFacetLabel">\n                                        <span x-text="value.displayName"></span>\n                                    </label>\n                                </div>\n                            </template>\n                        </div>\n                    </div>\n                </div>\n            </div>'}static renderRefCaseListerAlpineFacet(){return'<span class="c-refcase-filter__group-label">\n                        <span x-text="facet.displayName"></span>\n                        <button x-on:click="facet.onFacetClear()" data-webid="facet-clear-all"\n                                class="c-refcase-filter__group-clear" x-text="facet.clearAll">\n                        </button>\n                    </span>\n\n                    <nav class="c-refcase-filter__nav js-dropdown">\n\n                        <button class=" c-refcase-filter__dropdown js-dropdown__trigger" type="button" aria-haspopup="true" aria-expanded="false" data-webid="facet-open">\n                            <span class="u-txt-ellipsis" x-text="facet.selectedDisplayValue"></span>\n                        </button>\n\n                        <ul class="c-refcase-filter__panel o-list js-dropdown__panel" aria-hidden="true" aria-labelledby="" tabindex="-1">\n                            <div class="c-choice  c-choice--refcase-filter">\n                                <input class="c-choice__input" x-on:click="facet.onFacetValueAllSelect()" type="checkbox" x-model="facet.selectAllValue.selected"\n                                       name="refcase-filter-product" x-bind:id="`${facet.key}-${facet.selectAllValue.key}`">\n                                <label class="c-choice__label" x-bind:for="`${facet.key}-${facet.selectAllValue.key}`">\n                                    <span data-webid="facet-select-all" x-text=facet.selectAllValue.displayName></span>\n                                </label>\n                            </div>\n\n                            <template x-for="(value, index) in facet.values">\n                                <div class="c-choice c-choice--refcase-filter">\n                                    <input class="c-choice__input" type="checkbox" x-model="value.selected"\n                                           x-on:change="value.onFacetValueSelected()" name="refcase-filter-product" x-bind:id="`refcase-filter-${facet.key}-${value.key}-${index}`">\n                                    <label class="c-choice__label" x-bind:for="`refcase-filter-${facet.key}-${value.key}-${index}`">
1\n                                        <span x-text="`${value.displayName} (${value.count})`" data-webid="facet-value"></span>\n                                    </label>\n                                </div>\n                            </template>\n\n                        </ul>\n                    </nav>\n            '}static renderSsAlpineRangeFacet(){return'\n        <summary class="c-ss-filters__summary">\n            <span x-text="facet.displayName"></span>\n        </summary>\n\n        \x3c!--Facet will render itself--\x3e\n        <div class="c-ss-filters__details-content">\n            <div class="c-ss-input-range" data-webid="RangeFacet">\n                <div class="c-ss-input-range__wrapper">\n                    <div class="c-ss-input-range__values">\n                        <input type="text"\n                               data-webid="RangeFacetMinimum"\n                               class="c-ss-input-range__indicator"\n                               x-model="selectedMinimum"\n                               x-bind:aria-label="placeholder?placeholder:facet.displayName" \n                               x-bind:placeholder="placeholder"\n                               x-on:keyup="handleArrowPress($event, stepSize, precision)"\n                               x-on:change="onRangeInputChanged(selectedMinimum, selectedMaximum)">\n                        <span x-text="toLabel"></span>\n                        <input type="text"\n                               data-webid="RangeFacetMaximum"\n                               class="c-ss-input-range__indicator"\n                               x-model="selectedMaximum"\n                               x-bind:placeholder="placeholder"\n                               x-bind:aria-label="placeholder?placeholder:facet.displayName" \n                               x-on:keyup="handleArrowPress($event, stepSize, precision)"\n                               x-on:change="onRangeInputChanged(selectedMinimum, selectedMaximum)">\n                        <span x-show="hasUnit(key)" x-text="getUnit(key)" data-webid="uom"></span>\n                    </div>\n                    <button class="c-ss-input-range__button m-close"\n                            type="button"\n                            x-show="selectedMinimum || selectedMaximum"\n                            x-on:click="onRangeInputChanged(null, null)">\n                        <svg class="c-svg " width="11" height="11" role="img" focusable="false">\n                            <use xlink:href="/etex/images/svg/svg-symbols.svg#icon_close"></use>\n                        </svg>\n                    </button>\n                </div>\n                <small class="c-ss-input-range__info" x-text="description"></small>\n            </div>\n        </div>'}static renderSsAlpineNumberFacet(){return'\n        <summary class="c-ss-filters__summary">\n            <span x-text="facet.displayName"></span>\n        </summary>\n\n        \x3c!--Facet will render itself--\x3e\n        <div class="c-ss-filters__details-content">\n            <div class="c-ss-input-fullwidth-wrapper">\n                <div class="c-ss-input-fullwidth" data-webid="NumberFacet">\n                    <input class="c-ss-input-fullwidth__input"\n                           x-bind:placeholder="placeholder"\n                           x-on:blur="onNumberInputChanged($event)"\n                           x-on:keyup="handleArrowPress($event, stepSize, precision)"\n                           type="text"\n                           data-webid="NumberFacetInput"\n                           x-model="selectedDisplayValue" />\n                    <span x-show="hasUnit(key)"\n                          x-text="getUnit(key)"\n                          data-webid="uom"\n                          class="c-ss-input-fullwidth__unit"></span>\n                </div>\n            </div>\n        </div>'}}var h=s(17400);class d extends c.m{constructor(e,t,s,a,i,n,l){super(),this.handleValueSelection=e=>{this.selectAllValue.selected=!1,this.callBack(e.selected,this.key,e.key,e.isSelection),this.setFacetDisplayValue(e)},this.renderPreHtml=(e,t)=>
1{const s=`getFacet${this.key}`.replace(/[\[\]]/g,"");return window[s]=this.getData(),e?`\n                <div x-bind:class="{ 'u-hidden@desktop':  ! showInDesktop }" open=""\n                    x-data="${s}" x-html="renderFacet()">\n                </div>`:"ImsAlpineReferenceCaseLister"===t?`<div class="c-refcase-filter__group" data-webid="lister-facet"\n                    x-data="${s}" x-html="renderFacet(\`${t}\`)">\n                </div>`:`\n            <details class="c-ss-filters__details js-details" x-bind:class="{ 'u-hidden@desktop':  ! showInDesktop }" open=""\n                x-data="${s}" x-html="renderFacet(\`${t}\`)">\n            </details>`},this.renderFacet=e=>{switch(e){case"EntitySelector":default:return o.renderSsAlpineFacet();case"ImsAlpineReferenceCaseLister":return o.renderRefCaseListerAlpineFacet()}},this.displayName=e.displayName,this.description=e.description,this.isMultiSelect=a,this.toLabel=i,this.key=e.key,this.selectedValues=[];var c=[];e.values.forEach((e=>{c.push(new r(e,this.handleValueSelection).getAlpineData()),e.selected&&this.setFacetDisplayValue(e)})),this.values=c,this.sectionIndex=e.sectionIndex,this.showInDesktop=n,this.clearAll=e.clearAll,this.placeholder=e.placeholder,this.addSelectAllValue(s),this.callBack=l,t&&0===this.values.filter((e=>e.selected)).length&&(this.selectFacetValueAll(),this.setFacetDisplayValue(this.selectAllValue))}onInit(){this.alpineInstance.showInDesktop=this.showInDesktop,this.onNextTick((()=>{this.element.querySelectorAll(".js-dropdown").forEach((e=>{new h.v(e)}))}))}handlePreselectedValues(){var e=[];return this.values.forEach((t=>{if(t.selected){const s=Object.assign({},t);s.displayName=this.displayName,e.push(s)}})),e}selectFacetValueAll(){this.callBack(!0,this.key,""),this.values.forEach((e=>{e.selected=!1}))}addSelectAllValue(e){let t=this.values.filter((e=>e.selected));const s=0===t.length,a={count:0,displayName:e,key:`${this.key}-select-all-value`,selected:s,value:"all",iconUrl:"",description:""};this.selectAllValue=new r(a,this.handleValueSelection).getAlpineData()}setFacetDisplayValue(e){e.selected?this.selectedValues.push(e.displayName):this.selectedValues=this.selectedValues.filter((t=>t!==e.displayName)),this.selectedDisplayValue=this.selectedValues.join(", ")}getDataImplement(){var e=this;return{key:this.key,values:this.values,sectionIndex:this.sectionIndex,displayName:this.displayName,description:this.description,clearAll:this.clearAll,placeholder:this.placeholder,selectAllValue:this.selectAllValue,selectedDisplayValue:this.selectedDisplayValue,showInDesktop:this.showInDesktop,handlePreselectedValues:this.handlePreselectedValues,handleValueSelection:this.handleValueSelection,onFacetClear:()=>{this.selectFacetValueAll()},onFacetValueAllSelect:()=>{this.selectFacetValueAll()},getFirstValueSummaryText:()=>{var e=this.placeholder||"&nbsp;";return(this.selectedValues.length>0?this.selectedValues.join(", "):e)+'<svg class="c-svg c-svg--arrow" width="22" height="22" role="img" focusable="false">\n                    <use xlink:href="/etex/images/svg/svg-symbols.svg#icon_arrow_down_v2"></use>\n                </svg>'},renderFacet:e=>this.renderFacet(e),renderPreHtml:function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=arguments.length>1?arguments[1]:void 0;return e.renderPreHtml(t,s)}}}}var p=s(33922);class u extends d{constructor(e,t,s,a,i,n,l){super(e,t,s,a,i,n,l),this.renderFacet=()=>o.renderSsAlpineRangeFacet(),this.minimum=e.minimum,this.maximum=e.maximum,this.precision=e.precision,this.selectedMinimum=e.selectedMinimum,this.selectedMaximum=e.selectedMaximum,this.stepSize=e.stepSize,this.placeholder=e.placeholder}onInit(){this.alpineInstance.showInDesktop=this.showInDesktop}handlePreselectedValues(){const e=this.selectedMinimum,t=this.selectedMaximum,s=[];if(!e&&!t)return;const a=Object.assign({},this.values[0]);return a.key=`(${e}-${t})`,a.value=`${e}-${t}`,a.displayName=this.displayName,a.onFacetValueDeleted=()=>{this.onRangeInputChanged(null,null)},a.formattedValue=()=>`${e} - ${t}`,s.push(a),s}handleRangeInputChanged(e,t){let s,a;if(e||t||this.callBack(!1,this.key,null),e?(s=this.convertToFloat(e),isNaN(s)&&(s=this.minimum)):s=this.minimum,t?(a=this.convertToFloat(t),isNaN(a)&&(a=this.maximum)):a=this.maximum,s>a){let e=s;s=a,a=e}(s<this.minimum||s>this.maximum)&&(s=this.minimum),(a>this.maximum||a<this.minimum)&&(a=this.maximum),this.callBack(!0,this.key,`${s}-${a}
1`)}doHandleArrowPress(e,t,s){if(!e||38!==e.which&&40!==e.which)return;(t<0||NaN===t||!t)&&(t=1),(s<0||NaN===s||!s)&&(s=1);const a=38===e.which,i=e.target,n=i.value;let l=this.convertToFloat(n);if(isNaN(l))return;a?l+=t:l-=t;const r=l.toFixed(this.precision),c=this.precision>0?p.Z.getInstance().getCulturedNumber(l):r;i.value=c}convertToFloat(e){return e?parseFloat(e.toString().replace(",",".")):NaN}getDataImplement(){var e=this;return{key:this.key,values:this.values,displayName:this.displayName,description:this.description,selectAllValue:this.selectAllValue,selectedDisplayValue:this.selectedDisplayValue,clearAll:this.clearAll,placeholder:this.placeholder,minimum:this.minimum,maximum:this.maximum,precision:this.precision,sectionIndex:this.sectionIndex,selectedMinimum:this.selectedMinimum,selectedMaximum:this.selectedMaximum,stepSize:this.stepSize,toLabel:this.toLabel,showInDesktop:this.showInDesktop,onRangeInputChanged:(e,t)=>{this.handleRangeInputChanged(e,t)},handlePreselectedValues:this.handlePreselectedValues,handleValueSelection:this.handleValueSelection,handleArrowPress:(e,t,s)=>{this.doHandleArrowPress(e,t,s)},onFacetClear:()=>{this.selectFacetValueAll()},onFacetValueAllSelect:()=>{this.selectFacetValueAll()},getFirstValueSummaryText:()=>this.values[0].displayName,renderFacet:()=>this.renderFacet(),renderPreHtml:function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e.renderPreHtml(t)}}}}class m extends d{constructor(e,t,s,a,i,n,l){super(e,t,s,a,i,n,l),this.renderFacet=()=>o.renderSsAlpineNumberFacet(),this.stepSize=e.stepSize,this.precision=e.precision,this.placeholder=e.placeholder,this.selectedDisplayValue="",e.values.forEach((e=>{e.selected&&this.setFacetDisplayValue(e)}))}onInit(){this.alpineInstance.showInDesktop=this.showInDesktop}handlePreselectedValues(){var e=[];for(let t=0;t<this.values.length;t++){const s=this.values[t];if(s.selected){const t=Object.assign({},s);t.displayName=this.displayName,e.push(t);break}}return e}doHandleArrowPress(e,t,s){if(!e||38!==e.which&&40!==e.which)return;(t<0||NaN===t||!t)&&(t=1),(s<0||NaN===s||!s)&&(s=1);const a=38===e.which,i=e.target,n=i.value;if(!n)return;const l=n.replace(",",".");let r=parseFloat(l);a?r+=t:r-=t;const c=r.toFixed(this.precision),o=this.precision>0?p.Z.getInstance().getCulturedNumber(r):c;i.value=o}handleNumberChanged(e){const t=e.target,s=t.value;if(s){if(!/[0-9]|\./.test(s))return void(t.value="")}else this.callBack(!1,this.key,t.value);const a=s.replace(",","."),i=parseFloat(a);this.callBack(!0,this.key,i.toString())}setFacetDisplayValue(e){e.selected?this.selectedValues.push(e.displayName):this.selectedValues=this.selectedValues.filter((t=>t!==e.displayName)),this.selectedDisplayValue=this.selectedValues[0]}getDataImplement(){var e=this;return{key:this.key,values:this.values,displayName:this.displayName,toLabel:this.toLabel,description:this.description,selectAllValue:this.selectAllValue,selectedDisplayValue:this.selectedDisplayValue,clearAll:this.clearAll,placeholder:this.placeholder,sectionIndex:this.sectionIndex,stepSize:this.stepSize,precision:this.precision,showInDesktop:this.showInDesktop,onNumberInputChanged:e=>{this.handleNumberChanged(e)},handleArrowPress:(e,t,s)=>{this.doHandleArrowPress(e,t,s)},handlePreselectedValues:this.handlePreselectedValues,handleValueSelection:this.handleValueSelection,onFacetClear:()=>{this.selectFacetValueAll()},onFacetValueAllSelect:()=>{this.selectFacetValueAll()},getFirstValueSummaryText:()=>this.values[0].displayName,renderFacet:()=>this.renderFacet(),renderPreHtml:function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e.renderPreHtml(t)}}}}var g=s(62583),y=s(23201),v=s(83340),f=s(77120),I=s(72717),b=s(38048),k=s(49762),C=s.n(k),w=s(31895),F=s(8136),S=s(94994),x=s(30333),A=s(33975),T=s(78097);class E{constructor(e){this.id=e.id,this.link=e.link,this.brand=e.brand,this.title=e.title,this.previewImageUrl=e.previewImageUrl}getAlpineData(){return{id:this.id,link:this.link,title:this.title,brand:this.brand,description:null,attributes:this.attributes,previewImageUrl:this.previewImageUrl,selected:!1}}}class L extends n.a{constructor(){super(...arguments),this.initialRendering=!0,this.SELECTOR_RESPONSIVETABLE=".js-responsive-table-container",this.SELECTOR_SEARCH_INPUT=".js-search-input",this.addToProjectSelector="modal-saveItemsDialog",this.shouldParkPartialUpdate=!1,this.initPageCompareIds={path:location.pathname,selectedItems:{}},this.selectionChanged=(e,t,s,a)=>
1{if(this.updating)return;this.currentEventLabel=`${t} = ${s}`,this.alpineInstance.eventAction=a||e?e?F.C9.SELECT_FILTER:F.C9.DESELECT_FILTER:F.C9.DELETE_FILTER;let i=this.shouldParkPartialUpdate?this.getXref("advanced-filters-spinner"):this.getXref("facets-spinner");this.facetMapAndListUpdate(t,s,null,!0,e,null,i)}}onInit(){this.searchInputElement=this.element.querySelector(".js-search-input"),this.searchInputElement&&this.searchInputElement.addEventListener("keypress",(e=>{"Enter"===e.key&&this.searchByKeyword(this.searchInputElement.value)})),this.initAlpineVariables(),this.currentPageCompareList=this.getItemsAndSetCheckboxState(),this.initialCompareList(),window.onpopstate=e=>{if(!this.initialRendering){let t=e.state;null==t&&(t=location.search),this.facetMapAndListUpdate(null,null,decodeURIComponent(t),!1,null,null,this.element)}},window.onload=e=>{i().subscribeOnce(x.E.toasterInitialized,(()=>{this.reInitializeResponsiveTable(),this.handleTitleHover(),this.checkCompareList()}))},window.onresize=C()((()=>{this.handleTitleHover()}),250),this.parm.isBookmarkingEnabled&&this.initFavorites(),this.initMultiSelectToaster(),i().subscribe(S.Y.userSelectionCancelled,(()=>{this.alpineInstance.alpineItems.filter((e=>e.selected)).forEach((e=>{e.selected=!1})),this.alpineInstance.selectedAlpineItems=[],sessionStorage.setItem(w.Z.CompareList,`[${JSON.stringify(this.initPageCompareIds)}]`)})),i().subscribe(S.Y.removeSelectedEntity,((e,t)=>{const s=t;this.alpineInstance.selectedAlpineItems=this.alpineInstance.selectedAlpineItems.filter((e=>e.id!==s)),this.checkCompareList(this.alpineInstance.selectedAlpineItems)})),i().subscribe(x.E.toasterInitialized,((e,t)=>{t.callBack(this.alpineInstance.selectedAlpineItems.map((e=>e.id)))})),i().subscribe(A.BookmarkEvents.FavoriteUpdated,((e,t)=>{this.alpineInstance.bookmarkedItems=t.ids})),this.watchProp("eventAction",(e=>this.onTracking(e))),this.alpineInstance.eventAction=F.C9.LOADED}initialCompareList(){const e=sessionStorage.getItem(w.Z.CompareList);if(e){if(JSON.parse(e).filter((e=>window.location.href.includes(e.path))).length<1){let t=JSON.parse(e);t.push(this.initPageCompareIds),sessionStorage.setItem(w.Z.CompareList,`${JSON.stringify(t)}`)}}else sessionStorage.setItem(w.Z.CompareList,`[${JSON.stringify(this.initPageCompareIds)}]`)}isSelected(e){let t=!1;return e.values.forEach((e=>{e&&e.selected&&(t=!0)})),t}initAlpineVariables(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=e||this.parm;if(this.alpineInstance.advancedFacets=[],e&&this.shouldParkPartialUpdate)return this.pendingPartialUpdate=e,void t.facets.map(((e,t)=>{if(1===e.sectionIndex){let t=this.determineFacetType(e,!0);-1===this.alpineInstance.advancedFacets.map((e=>e.key)).indexOf(t.key)&&this.alpineInstance.advancedFacets.push(t)}}));this.alpineInstance.alpineItems=[],t.facets&&0!==t.facets.length&&(this.alpineInstance.facets=[],this.alpineInstance.selectedFacetValues=[],this.alpineInstance.hasAdvancedFacets=!1,t.facets.forEach((e=>{1===e.sectionIndex&&(this.alpineInstance.hasAdvancedFacets=!0);let t=!(e.sectionIndex>0),s=this.determineFacetType(e,t),a=s.handlePreselectedValues();if(a&&this.alpineInstance.selectedFacetValues.push(...a),this.addFacetToAlpineInstance(s),e.sectionIndex>0){let t=this.determineFacetType(e,!0);-1===this.alpineInstance.advancedFacets.map((e=>e.key)).indexOf(t.key)&&this.alpineInstance.advancedFacets.push(t)}}))),this.alpineInstance.totalCount=t.totalCount,this.alpineInstance.pageCount=t.pageCount,this.alpineInstance.pageSize=t.pageSize,this.alpineInstance.currentPage=t.currentPage?t.currentPage:1,this.alpineInstance.searchFilter=t.searchFilter,this.searchInputElement.value=t.searchFilter,this.alpineInstance.view=t.view,this.alpineInstance.eventAction=void 0,this.alpineInstance.eventType=F.C9,this.currentQuery=t.currentQuery,this.defaultQuery="page="+this.alpineInstance.currentPage+"&page_size="+this.alpineInstance.pageSize,e||(this.alpineInstance.sortName=t.sortName,this.alpineInstance.sortType=t.sortType),t.alpineItems.forEach((e=>{e.selected=this.alpineInstance.selectedAlpineItems.filter((t=>
1t.id===e.id)).length>0,this.sanitizeAndAddToCollection(e,this.alpineInstance.alpineItems)})),this.alpineInstance.alpineItems.length>0&&this.trackProductImpressions()}determineFacetType(e,t){return e&&e.isRange?new u(e,!1,"",e.isMultiSelect,this.parm.toLabel,t,this.selectionChanged).getDataImplement():e.isMultiSelect||e.isRange?new d(e,!1,"",e.isMultiSelect,this.parm.toLabel,t,this.selectionChanged).getDataImplement():new m(e,!1,"",e.isMultiSelect,this.parm.toLabel,t,this.selectionChanged).getDataImplement()}addFacetToAlpineInstance(e){this.shouldParkPartialUpdate&&1!==e.sectionIndex||-1!==this.alpineInstance.facets.map((e=>e.key)).indexOf(e.key)||this.alpineInstance.facets.push(e)}sanitizeAndAddToCollection(e,t){var s=Object.assign({},e);s.description=v.Z.decodeHtml(s.description);var a={};for(let t in e.attributes)a[t]=v.Z.decodeHtml(e.attributes[t]);s.attributes=a,t.push(s)}getDataImplement(){return{facets:null,advancedFacets:[],hasAdvancedFacets:!1,selectedFacetValues:null,totalCount:null,pageCount:null,pageSize:null,currentPage:null,alpineItems:null,bookmarkedItems:null,view:null,searchFilter:null,sortName:null,sortType:null,onChangeCategory:e=>{this.onChangeCategory(e)},clear:()=>{this.clear()},goToPage:(e,t)=>{this.goToPage(e,t)},doSorting:(e,t)=>{this.doSorting(e,t)},searchByKeyword:e=>{this.searchByKeyword(e)},toggleView:e=>{this.toggleView(e)},getFormattedNumberOfResults:()=>this.parm.numberOfResultsLabel.replace("{X}",`<strong>${this.alpineInstance.totalCount.toString()}</strong>`),getFormattedNumberOfResultsForSearchText:()=>this.parm.numberOfResultsForSearchText.replace("{X}",`<strong>${this.alpineInstance.totalCount}</strong>`).replace("{Y}",`<span class="c-sys-sel-grid__table-header-amount-search" data-webid="SearchKeyWordResultTitle">${this.alpineInstance.searchFilter}</span>`),getFormattedPageXOfY:()=>this.parm.pageXOfY.replace("{X}",`<strong>${this.alpineInstance.currentPage}</strong>`).replace("{Y}",`<span>${this.alpineInstance.pageCount}</span>`),hasUnit:e=>null!=this.getUnit(e),getUnit:e=>this.getUnit(e),getFormattedNoResultTitle:()=>this.parm.noResultTitle.replace("{X}",this.alpineInstance.searchFilter),getFacets:e=>{const t=[];return this.alpineInstance&&this.alpineInstance.facets&&this.alpineInstance.facets.map(((s,a)=>{s&&s.sectionIndex===e&&t.push(s)})),t},onAdvancedFiltersOpened:()=>{this.shouldParkPartialUpdate=!0,this.urlBeforeAdvancedFiltering=window.location.href},onAdvancedFiltersClosed:e=>{if(this.shouldParkPartialUpdate=!1,e)this.initAlpineVariables(this.pendingPartialUpdate),this.pendingPartialUpdate=null;else if(window.location.href!==this.urlBeforeAdvancedFiltering){const e=y.Z.getInstance();this.element.querySelectorAll(".js-spinner").forEach((t=>{e.showSpinner(t)})),window.location.href=this.urlBeforeAdvancedFiltering}},selectedSystemsCount:0,showComparerTool:!1,disableCompare:!1,disableCalculate:!1,checkboxChanged:e=>{this.checkboxChanged(e)},sysComparePageUrl:"javascript:;",selectedAlpineItems:[],addFavorites:!1,removeFavorites:!1,onCompareClick:()=>{this.compareClick()},onCancelClick:()=>{this.handleCancelClick()},favoritesButtonText:"",trackSelectItem:(e,t)=>{this.trackSelectItem(e,t)}}}trackSelectItem(e,t){const s={id:e.id,name:e.title,brand:e.brand||"",category:this.parm.categoryTitle||"",category2:this.parm.subCategoryTitle||"",variant:"",price:0,quantity:1,coupon:"",position:t};T.yY.pushProductClicks(s,"Product List")}trackProductImpressions(){const e=this.alpineInstance.alpineItems.map(((e,t)=>({id:e.id,name:e.title,list:this.parm.categoryTitle||"Product List",brand:"",category:this.parm.categoryTitle||"",category2:this.parm.subCategoryTitle||"",variant:"",position:t+1,price:0})));T.yY.pushProductImpressions(e,"Product List")}updateCurrentPageCompareList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.currentPageCompareList=e);const t=JSON.parse(sessionStorage.getItem(w.Z.CompareList));t.forEach((e=>{window.location.href.includes(e.path)&&(e.selectedItems=this.currentPageCompareList)})),sessionStorage.setItem(w.Z.CompareList,JSON.stringify(t)),this.alpineInstance.selectedAlpineItems=this.currentPageCompareList,this.alpineInstance.selectedSystemsCount=this.currentPageCompareList.length,this.alpineInstance.showComparerTool=this.currentPageCompareList.length>0,this.alpineInstance.disableCompare=this.currentPageCompareList.length<2||this.currentPageCompareList.length>5,this.alpineInstance.disableCalculate=this.currentPageCompareList.length<1||this.currentPageCompareList.length>10,this.alpineInstance.sysComparePageUrl=this.buildUrl(),this.evaluateFavoriteButton(),this.alpineInstance.alpineItems.forEac
1h((e=>{this.alpineInstance.selectedAlpineItems.map((e=>e.id)).includes(e.id)&&(e.selected=!0)})),this.alpineInstance.selectedAlpineItems.forEach((e=>{const t=new S.Q(e.id,e.title,this.parm.entityType,e.previewImageUrl,e.link);i().publish(S.Y.entitySelected,t)})),i().publish(S.Y.userSelectionRestored,this.currentPageCompareList),this.restoreUserSelectedFullEntityInfo()}restoreUserSelectedFullEntityInfo(){const e=[];this.alpineInstance.selectedAlpineItems.forEach((t=>{let s=new S.Q(t.id,t.title,this.parm.entityType,t.previewImageUrl,t.link);e.push(s)})),i().publish(S.Y.userSelectionRestoredFullItems,e)}checkCompareList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e||(e=this.currentPageCompareList);this.element.querySelectorAll(".js-table-choice").forEach((t=>{e.map((e=>e.id)).includes(t.value)?t.checked=!0:t.checked=!1})),this.updateCurrentPageCompareList(e)}getUnit(e){return this.parm.unitMap[e]}clear(){this.alpineInstance.sortName="",this.alpineInstance.sortType="";let e=this.getXref("facets-spinner");this.alpineInstance.eventAction=F.C9.DELETE_FILTER,this.facetMapAndListUpdate(null,null," ",!0,!1,null,e)}goToPage(e,t){if(!e||e<1||e>this.alpineInstance.pageCount)return;const s=this.parm.loadMoreUrl+"&ts="+(new Date).getTime();let a=this.currentQuery?this.currentQuery:this.defaultQuery;const i={preFilter:this.preFilter,currentQuery:a,pageNumber:e,pageSize:this.alpineInstance.pageSize};let n=this.getXref("list-spinner");const r=new l.o(s,i,!0);r.spinnerElement=n,b.Z.scrollToElement(this.element),this.currentEventAction=t,this.ajaxWrapper.doFetch(r).then((e=>e.clone().json().then((t=>{this.partialUpdateCallback(e,!0)}))))}toggleView(e){const t=this.parm.loadMoreUrl+"&ts="+(new Date).getTime();let s=this.currentQuery?this.currentQuery:this.defaultQuery;const a={preFilter:this.preFilter,currentQuery:s,view:e};let i=this.getXref("list-spinner");"grid"!=e?i.classList.remove("c-system-selector-content--grid"):i.classList.add("c-system-selector-content--grid");const n=new l.o(t,a,!0);n.spinnerElement=i,this.ajaxWrapper.doFetch(n).then((e=>this.partialUpdateCallback(e,!0)))}doSorting(e,t){this.alpineInstance.sortName=e,this.alpineInstance.sortType=t;const s=this.parm.sortingUrl+"&ts="+(new Date).getTime(),a={preFilter:this.preFilter,currentQuery:this.currentQuery,pageNumber:1,pageSize:this.alpineInstance.pageSize,sortAttribute:e,sortType:t};let i=this.getXref("list-spinner");const n=new l.o(s,a,!0);n.spinnerElement=i,this.ajaxWrapper.doFetch(n).then((e=>this.partialUpdateCallback(e,!0)))}getSearchText(e){if(e&&" "!=e)return e;const t=this.currentQuery.match(/(\/)*search\(\w+\)/);return!t||t.length<=0?"":t[0].replace("search(","").replace(")","")}refineQueryWithEmptySearchKeyWord(e){if(!e)return e;const t=e.match(/(\/)*search\(\w+\)/);return!t||t.length<=0?e:e.replace(t[0],"")}searchByKeyword(e){let t=e?this.currentQuery:this.refineQueryWithEmptySearchKeyWord(this.currentQuery),s=e||" ";this.currentEventLabel=" "!==s?this.getSearchText(e):"search = "+this.getSearchText(e),this.currentEventAction=" "!==s?F.C9.SEARCH:F.C9.DELETE_FILTER;let a=this.getXref("list-spinner");this.facetMapAndListUpdate(null,null,t,!0,!1,s,a)}onChangeCategory(e){const t=e.target.href?e.target.dataset.name:e.target.parentElement.dataset.name;F.ZP.push({eventAction:this.parm.categoryTitle!==t?F.C9.SELECT_CATEGORY:F.C9.DESELECT_CATEGORY,eventLabel:`${this.parm.categoryTitle} = ${this.parm.subCategoryTitle||t}`,filters:(0,F.UT)(this.currentQuery)})}getSelectedFacets(){const e=[];return this.alpineInstance.facets.forEach((t=>{let s=!1;t&&t.values&&t.values.length>0&&(t.values.forEach((e=>{e.selected&&(s=!0)})),s&&e.push(t))})),e}reInitializeResponsiveTable(){this.element.querySelectorAll(this.SELECTOR_RESPONSIVETABLE).forEach((e=>{new g.U(e)}))}handleTitleHover(){const e=this.element.querySelectorAll(".js-image-name");e&&e.forEach((e=>{const t=Math.ceil(e.scrollHeight),s=Math.ceil(e.getBoundingClientRect().height),a=e.parentElement.classList;t>s?a.add("c-table__cell-v2-image-name-hover"):a.remove("c-table__cell-v2-image-name-hover")}))}checkboxChanged(e){var t=new S.Q(e.id,e.title,this.parm.entityType,e.previewImageUrl,e.link);e.selected?(this.alpineInstance.selectedSystemsCount++,this.alpineInstance.selectedAlpineItems.push(e),i().publish(S.Y.entitySelected,t)):(null!=this.alpineInstance.selectedAlpineItems&&(this.alpineInstance.selectedAlpineItems=this.alpineInstance.selectedAlpineItems.filter((t=>
1t.id!==e.id))),i().publish(S.Y.entityUnselected,t)),this.updateCurrentPageCompareList(this.alpineInstance.selectedAlpineItems)}buildUrl(){let e=this.getItemsAndSetCheckboxState().map((e=>e.id)).join(",");return`${this.parm.systemCompareUrl}?entityIds=${e}`}getItemsAndSetCheckboxState(){const e=JSON.parse(sessionStorage.getItem(w.Z.CompareList));if(!e)return[];let t=[];return e.forEach((e=>{window.location.href.includes(e.path)&&(t=Array.from(Object.values(e.selectedItems).filter(this.distinct)))})),t}distinct(e,t,s){return s.indexOf(e)===t}initFavorites(){this.favoritesManager=I.Z.getInstance(this.parm.entityType),this.favoritesManager&&i().subscribe(f.P.dialogClosed,(()=>{this.evaluateBookmarkState()}))}initMultiSelectToaster(){if(!document.querySelector("[data-component-class='MultiSelectToaster']")){var e={entityType:this.parm.entityType},t=document.querySelector("[data-js='multi-select-toaster-container']");this.reInitCompsOnDomChangeFor(t,!0);var s=new l.o(this.parm.dialogsUrl,e,!1);this.ajaxWrapper.doFetch(s).then((e=>{e.clone().text().then((e=>{t.innerHTML=e}))}))}}handleCancelClick(){this.currentPageCompareList=[];this.element.querySelectorAll(".js-table-choice").forEach((e=>{e.checked=!1})),this.updateCurrentPageCompareList([])}compareClick(){if(this.alpineInstance.disableCompare)return!1;sessionStorage.setItem(w.Z.WindowHistory,window.location.href),window.location.href=this.alpineInstance.sysComparePageUrl}evaluateBookmarkState(){const e=JSON.parse(sessionStorage.getItem(w.Z.CompareList));e&&(this.alpineInstance.bookmarkedItems=e)}evaluateFavoriteButton(){if(this.alpineInstance.addFavorites&&this.alpineInstance.removeFavorites){this.getXref("favorites-button").disabled=!0}else this.alpineInstance.addFavorites&&(this.alpineInstance.favoritesButtonText=this.parm.addFavoritesLabel),this.alpineInstance.removeFavorites&&(this.alpineInstance.favoritesButtonText=this.parm.removeFavoritesLabel)}successPartialUpdateCallback(e){this.reInitializeResponsiveTable(),this.alpineInstance.eventAction=this.currentEventAction,setTimeout((()=>{this.handleTitleHover(),this.checkCompareList(),this.alpineInstance.eventAction=F.C9.LOADED}),10)}onTracking(e){if(e)switch(e){case F.C9.GO_BACK:case F.C9.GO_FIRST:case F.C9.GO_LAST:case F.C9.GO_NEXT:F.ZP.push({eventAction:e,eventLabel:`${this.alpineInstance.currentPage}-${this.alpineInstance.pageCount}`,filters:(0,F.UT)(this.currentQuery),viewSize:Number(this.alpineInstance.pageSize),searchResultsTotal:this.alpineInstance.totalCount});break;
1case F.C9.SEARCH:case F.C9.DELETE_FILTER:case F.C9.SELECT_FILTER:case F.C9.DESELECT_FILTER:F.ZP.push({eventAction:e,eventLabel:this.currentEventLabel,filters:(0,F.UT)(this.currentQuery)});break;default:F.ZP.push({eventAction:F.C9.LOADED,eventLabel:`${this.alpineInstance.totalCount}`,searchResultsTotal:this.alpineInstance.totalCount,filters:(0,F.UT)(this.currentQuery)})}}}},30333:function(e,t,s){s.d(t,{E:function(){return i},I:function(){return a}});class a{constructor(e){this.callBack=e}}class i{}i.toasterInitialized="multi-select-toaster-initialized"},29300:function(e,t,s){s.d(t,{a:function(){return c},v:function(){return r}});var a=s(2272),i=s(79234),n=s(70392),l=s.n(n);class r{}r.imsListerUpdated="IMS_LISTER_UPDATED";class c extends a.V{constructor(){super(...arguments),this.initialRendering=!0,this.SELECTOR_SPINNER=".js-spinner",this.SELECTOR_LOADMORE="js-load-more"}facetMapAndListUpdate(e,t,s,a){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;this.updating=!0,s||(s=this.currentQuery);const r={preFilter:this.preFilter,currentQuery:s,facet:e,facetValue:t,selectFacetValue:!!t&&i,searchText:n};this.doAjaxRequest(a,r,l)}updateHistory(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(history.pushState&&e){const e=this.currentUrlQuery;let s=window.location.toString();const a=s.indexOf("?");a>-1&&(s=s.substr(0,a)),e&&(s=s+"?"+e),t?history.replaceState(e,null,s):history.pushState(e,null,s)}}doAjaxRequest(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const a=this.parm.updateUrl+"&ts="+(new Date).getTime(),n=new i.o(a,t,!0);n.spinnerElement=s,this.ajaxWrapper.doFetch(n).then((t=>{this.partialUpdateCallback(t,e)}))}partialUpdateCallback(e,t){200===e.status&&e.clone().json().then((e=>{var s=e;this.initAlpineVariables(s),this.currentQuery=s.currentQuery,this.currentUrlQuery=s.currentUrlQuery,this.view=s.view,this.updateHistory(t),this.updating=!1,this.initialRendering=!1;var a={totalcount:s.totalCount};l().publish(r.imsListerUpdated,a),this.successPartialUpdateCallback(s)}))}}},31895:function(e,t){class s{}s.CompareList="compareList",s.WindowHistory="windowHistory",t.Z=s},38048:function(e,t){class s{static scrollToElement(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";var s=document.querySelector(this.SELECTOR_HEADER),a=0;s&&(a=s.offsetHeight),window.scrollTo({behavior:t,top:this.getOffset(e).top-a})}static getOffset(e){var t=e.getBoundingClientRect(),s=window.pageXOffset||document.documentElement.scrollLeft,a=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+a,left:t.left+s}}}s.SELECTOR_HEADER=".js-header",t.Z=s},94994:function(e,t,s){s.d(t,{Q:function(){return a},Y:function(){return i}});class a{constructor(e,t,s,a){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";this.entityId=e,this.entityName=t,this.entityType=s,this.entityImgUrl=a,this.entityUrl=i}}class i{}i.entitySelected="entity-selected",i.entityUnselected="entity-unselected",i.removeSelectedEntity="entity-remove-selected",i.userSelectionCancelled="user-selection-cancelled",i.userSelectionRestored="user-selection-restored",i.userSelectionRestoredFullItems="user-initial-restored"},66721:function(e,t,s){s.d(t,{m:function(){return n}});var a=s(79234),i=s(68442);class n{constructor(){this.importAndCompInitter=i.Z.getInstance()}getData(){const e=this,t={init(){e.alpineInstance=this,e.element=this.$root,e.refs=this.$refs,e.dispatch=this.$dispatch,e.watch=this.$watch,e.nextTick=this.$nextTick,e.ajaxWrapper=new a.F(this.$root,!0),e.initParm(),e.onInit()}},s=this.getDataImplement();return Object.assign(t,s)}getXref(e){return this.refs[e]}dispatchEvent(e,t){this.dispatch(e,t)}watchProp(e,t){this.watch(e,t)}onNextTick(e){this.nextTick(e)}initParm(){}reInitCompsOnDomChangeFor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=new MutationObserver((a=>{this.importAndCompInitter.initAllPossibleCompsForContainer(e),t&&s.disconnect()}));s.observe(e,{childList:!0,subtree:!0})}}},2272:function(e,t,s){s.d(t,{V:function(){return i}});var a=s(66721);class i extends a.m{constructor(){super()}initParm(){this.parm=this.getClientData()}getClientData(){var e=this.element.attributes[i.CLIENT_DATA_ATTRIBUTE],t=null;if(e)try{t=JSON.parse(e.value)}catch(s){t=e}return t}}i.CLIENT_DATA_ATTRIBUTE="data-component-parm"}}]);

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.