1"use strict";(self.webpackChunkwebpack=self.webpackChunkwebpack||[]).push([[1717],{80883:function(e,t,r){r.d(t,{v:function(){return n}});var i=r(79234),a=r(42799);class n extends a.o{constructor(e){super(e),this.page=1,this.initialPage=1;const t=document.querySelector(".js-fix-loader");t&&(t.style.zIndex="5001")}init(){this.currentQuery=this.parm.currentQuery,this.currentUrlQuery=this.parm.currentUrlQuery,this.page=this.parm.page,this.initialPage=this.parm.page,this.parm.ajaxInitialLoad&&this.doInitialAjaxLoad(),window.addEventListener("popstate",(()=>{const e=new URLSearchParams(location.search),t=parseInt(e.get("page")??"1",10);this.page=t,this.initialPage=t;const r={currentQuery:"",selectedFilters:{},page:t,initialPage:t},a=new i.o(this.parm.updateFilterUrl,r,!1);this.ajaxWrapper.doFetch(a).then((e=>{e.clone().json().then((e=>{this.currentQuery=e.currentQuery,this.currentUrlQuery=e.currentUrlQuery,this.element.querySelector("wc-lister").setAttribute("parm",JSON.stringify(e))}))}))})),this.element.querySelector("wc-lister").addEventListener("wc-lister-filter-update",(e=>{this.page=1,this.initialPage=1,this.currentQuery=decodeURIComponent(location.search);var t={currentQuery:this.currentQuery,selectedFilters:this.serializeObjectWithSets(e.detail.selectedFilters),page:this.page,initialPage:this.initialPage},r=new i.o(this.parm.updateFilterUrl,t,!1);this.ajaxWrapper.doFetch(r).then((t=>{t.clone().json().then((t=>{this.currentQuery=t.currentQuery,this.currentUrlQuery=t.currentUrlQuery,this.updateHistory(!0),e.detail.callback(t.cards,t.horizontalFiltersData.filters,t.facetData.amount,t.loadMoreData)}))}))})),this.element.querySelector("wc-lister").addEventListener("wc-lister-load-more-next",(e=>{this.loadMore(e,!1)})),this.element.querySelector("wc-lister").addEventListener("wc-lister-load-more-prev",(e=>{this.loadMore(e,!0)}));let e=this.element.parentElement.querySelector("wc-sticky-menu");e&&e.addEventListener("wc-sticky-menu-cta-clicked",(e=>{this.ctaClicked(e)}))}doInitialAjaxLoad(){const e={currentQuery:this.currentQuery,selectedFilters:{},page:this.page,initialPage:this.initialPage},t=new i.o(this.parm.updateFilterUrl,e,!1);this.ajaxWrapper.doFetch(t).then((e=>{e.clone().json().then((e=>{this.currentQuery=e.currentQuery,this.currentUrlQuery=e.currentUrlQuery,this.updateHistory(!1),this.element.querySelector("wc-lister").setAttribute("parm",JSON.stringify(e))}))}))}loadMore(e,t){this.currentQuery=decodeURIComponent(location.search);var r=this.page,a=this.initialPage;t?a--:r++;var n={currentQuery:this.currentQuery,selectedFilters:this.serializeObjectWithSets(e.detail.selectedFilters),page:r,initialPage:a,loadPrevious:t},s=new i.o(this.parm.loadMoreUrl,n,!1);this.ajaxWrapper.doFetch(s).then((r=>{r.clone().json().then((r=>{this.currentQuery=r.currentQuery,this.currentUrlQuery=r.currentUrlQuery,t?this.initialPage--:this.page++,this.updateHistory(!0),e.detail.callback(r.cards,r.loadMoreData)}))}))}updateHistory(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(history.pushState&&e){const e=this.currentUrlQuery;let r=window.location.toString();const i=r.indexOf("?");i>-1&&(r=r.substr(0,i)),e&&(r=r+"?"+e),t?history.replaceState(e,null,r):history.pushState(e,null,r)}}serializeObjectWithSets(e){const t={};for(const r in e)e.hasOwnProperty(r)&&(t[r]=Array.from(e[r]));return t}}},11717:function(e,t,r){r.r(t),r.d(t,{default:function(){return c}});var i=r(70392),a=r.n(i),n=r(79234),s=r(10886),l=r(62409),o=r(80883);class c extends o.v{constructor(e){super(e),this.init()}init(){super.init(),this.element.querySelector("wc-lister").addEventListener("wc-lister-sample-requested",(e=>{l.X.addToBasket(e.detail.sampleId,"look")})),this.element.querySelector("wc-lister").addEventListener("wc-lister-card-clicked",(e=>{this.fetchDrawerData(e.detail.cardId,e)}))}ctaClicked(e){"download-btn"===e.detail.callbackId?this.doDownload(e):"sample-btn"===e.detail.callbackId&&this.doSampleRequest(e)}doDownload(e){let t={entityIds:e.detail.idList,entityType:"look",print2PdfTemplateName:this.parm.pdfTemplateName,print2PdfLanguage:this.parm.pdfLanguage},r=new s.go(t,"lookbook.pdf");a().publish(s.er.createPdfDocumentRequested,r)}doSampleRequest(e){e.detail.idList.map((e=>{l.X.addToBasket(e,"look")}))}fetchDrawerData(e,t){var r={ids:[e]},i=new n.o(this.parm.drawerDataUrl,r,!1);this.ajaxWrapper.doFetch(i).then((e=>{e.clone().json().then((async e=>{await t.detail.callback(e);let r=document.querySelector("#ref-lister-drawer");const i=r.querySelectorAll("[data-dialog-close]");
1Array.from(i).forEach((e=>{e.addEventListener("click",(()=>{r.close()}))}))}))}))}}},10886:function(e,t,r){r.d(t,{C_:function(){return l},Fi:function(){return u},OP:function(){return s},cn:function(){return c},er:function(){return o},go:function(){return i},iF:function(){return n},us:function(){return d}});class i{constructor(e,t){this.dataSheet=e,this.fileName=t}}class a{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;this.watermarkFormId=r,this.skipAuthentication=e,this.skipWatermarking=t,this.watermarkFormSubmissionId=i,this.eventCategory=a}}class n extends a{constructor(e,t,r){super(t,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,arguments.length>5&&void 0!==arguments[5]?arguments[5]:null),this.packageId=e}}class s extends a{constructor(e,t,r,i,a,n){let s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:null;super(a,n,arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,arguments.length>7&&void 0!==arguments[7]?arguments[7]:null),this.documentList=e,this.entityName=i,this.dataSheetInfos=r,this.documentPacks=t,this.encodedPreFilledWatermarkLines=s,this.eventCategory=l,this.customDocumentList=o}}class l{constructor(e,t){this.documentPackRequest=e,this.authDeniedCallback=t}}class o{}o.documentPackageDownloadRequested="DOWNLOAD_DOCUMENT_PACKAGE_REQUESTED",o.documentPackageDownloadRequestHandled="DOWNLOAD_DOCUMENT_PACKAGE_REQUEST_HANDLED",o.documentPackageCreationRequested="DOWNLOAD_DOCUMENT_PACKAGE_CREATION",o.documentPackageCreationRequestedHandled="DOWNLOAD_DOCUMENT_PACKAGE_CREATION_HANDLED",o.authenticationRequested="DOWNLOAD_DOCUMENT_AUTHENTICATION_REQUESTED",o.emptyResultReceived="DOWNLOAD_EMPTY_RESULT",o.watermarkingInputRequested="DOWNLOAD_DOCUMENT_WATERMARKING_INPUT_REQUESTED",o.watermarkingSingleDocumentInputRequested="DOWNLOAD_SINGLE_DOCUMENT_WATERMARKING_INPUT_REQUESTED",o.downloadLimitationReached="DOWNLOAD_LIMITATION_REACHED",o.failedRequest="DOWNLOAD_CENTER_FAILED_REQUEST",o.exportJobRequested="EXPORT_JOB_REQUESTED",o.createPdfDocumentRequested="DOWNLOAD_CREATE_PDF_REQUESTED",o.createPdfDocumentRequestHandled="DOWNLOAD_CREATE_PDF_REQUEST_HANDLED";class c{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};this.formCompleted=r,this.skipWatermarkingCallback=i,this.popupUrl=e,this.documentPackRequest=t}}class u{constructor(e,t){this.popupUrl=e,this.assetId=t}}class d{constructor(e,t){this.job=e,this.toasterElement=t}}}}]);
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.