PageSourceSearch

https://www.accessorize.com/on/demandware.static/Sites-accessorize…/js/product/ProductListingPage.js

js accessorize.com collected 2026-09-25 15:05:26 UTC 9,889 bytes, 1 lines download raw bytes

1(self.webpackChunkmnsn=self.webpackChunkmnsn||[]).push([[5961],{53303:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var diff_dom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(92485),squirrelly__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(95153),squirrelly__WEBPACK_IMPORTED_MODULE_1___namespace_object={};function htmlStringToElement(e){var t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}function getTemplate(e){return document.querySelector("script#".concat(e,'[type="text/x-squirrelly-template"]'))}function update(e,t){if("string"==typeof t&&(t=htmlStringToElement(t)),e instanceof HTMLElement&&t instanceof HTMLElement){var r=new diff_dom__WEBPACK_IMPORTED_MODULE_0__.ad({maxChildCount:!1}),n=r.diff(e,t);n&&n.length&&r.apply(e,n)}}function empty(e){if(e instanceof HTMLElement)for(;e.firstChild;)e.removeChild(e.firstChild)}function append(e,t){"string"==typeof t?e.insertAdjacentHTML("beforeEnd",t):e.append(t)}function prepend(e,t){"string"==typeof t?e.insertAdjacentHTML("afterbegin",t):e.prepend(t)}function escapeQuotes(){return String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/"/g,"&quot;")}function msgfHelper(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.replace(/((?:[^{}]|(?:\{\{)|(?:\}\}))+)|(?:\{([0-9]+)\})/g,function(e,t,n){return t?t.replace(/(?:{{)|(?:}})/g,function(e){return e[0]}):n<r.length?r[n]:""})}function msgfSafeHelper(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return escapeQuotes(msgfHelper.apply(void 0,[e].concat(r)))}function render(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof HTMLElement&&t){var n=getTemplate(t);n&&(squirrelly__WEBPACK_IMPORTED_MODULE_1__.K3(!1),squirrelly__WEBPACK_IMPORTED_MODULE_1__.A8("msgf",msgfHelper),squirrelly__WEBPACK_IMPORTED_MODULE_1__.A8("msgfSafe",msgfSafeHelper),squirrelly__WEBPACK_IMPORTED_MODULE_1__.YZ("escapeQuotes",escapeQuotes),update(e,squirrelly__WEBPACK_IMPORTED_MODULE_1__.Wx(n.innerHTML)(r,squirrelly__WEBPACK_IMPORTED_MODULE_1___namespace_object)))}}function renderElement(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.createElement("div");return render(r,e,t),r}function processScripts(element){for(var scripts=element.getElementsByTagName("script"),i=0,max=scripts.length;i<max;i++)eval(scripts[i].text)}__webpack_require__.r(squirrelly__WEBPACK_IMPORTED_MODULE_1___namespace_object),__webpack_require__.d(squirrelly__WEBPACK_IMPORTED_MODULE_1___namespace_object,{Compile:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.Wx},F:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.F},H:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.H},P:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.P},Render:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.dw},__express:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.H5},autoEscaping:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.K3},defaultTags:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.nK},defineFilter:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.YZ},defineHelper:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.A8},defineNativeHelper:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.Jc},definePartial:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.xl},load:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.Hh},renderFile:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.VB},setDefaultFilters:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.Jx}}),__webpack_exports__.A={append:append,prepend:prepend,render:render,renderElement:renderElement,update:update,empty:empty,processScripts:processScripts}},92574:function(e,t,r){"use strict";r.d(t,{J_:function(){return u},Mk:function(){return o},VG:function(){return s},eG:function(){return l}});var n=r(6554),i=75;function o(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}}function u(e,t){window.scrollTo({top:e,left:t,behavior:"smooth"})}function s(e,t){var r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e)return!1;t?t.scroll({top:e.offsetTop,behavior:"smooth"}):((r=o(e).top)>=i&&n.B.is("large")&&(r-=i),s&&r>s&&(r-=s),u(r,0))}function l(){u(0,0)}},39114:function(e,t,r){"use strict";r.d(t,{u:function(){return i}});var n="h-loading",i={start:function(e,t){e instanceof HTMLElement&&e.classList.add(t||n)},stop:function(e,t){e instanceof HTMLElement&&(t&&e.classList.contains(t)?e.classList.remove(t):e.classList.contains(n)&&e.classList.remove(n))}}},56588:function(e,t,r){"use strict";function n(e){var t=setTimeout(function(){e(),t=0,e=null},arguments.length>1&&void 0!==arguments[1]?arguments[1]:0);return function(){t&&(clearTimeout(t),t=0,e=null)}}r.d(t,{A:function(){return n}})},59274:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return m}});var n=r(3273),i=r(91076),o=r(53303),u=r(92574),s=r(39114),l=r(8207),c=r(6554),_=r(56588),a=r(43047);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}
1function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(d,e);var t,r,i=function(e){var t=y();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),i.apply(this,arguments)}return t=d,(r=[{key:"initCache",value:function(){this.selectors.grid=this.element.querySelector(a.GRID_SELECTOR),this.selectors.body=document.body,this.selectors.searchtitle=this.element.querySelector(a.SEARCH_TITLE_SELECTOR),this.selectors.quickfilter=this.element.querySelector(a.REFINEMENTS_QUICK_SELECTOR),this.selectors.quickarrow=this.element.querySelector(a.REFINEMENTS_QUICK_ARROW_SELECTOR),this.selectors.searchHeaderPrefix=this.element.querySelector(a.SEARCH_HEADER_PREFIX_SELECTOR)}},{key:"initState",value:function(){this.isTabletDown=c.B.is("medium down"),this.isDesktop=c.B.is("large"),this.isMobile=c.B.is("small down"),this.hideArrowForMobile(),this.fixHeader=this.options.fixHeader}},{key:"updateDOM",value:function(e,t){var r=this;o.A.update(this.element,e),this.selectors.grid=this.element.querySelector(a.GRID_SELECTOR),t.isClearAllButton||l.J.emit("refinementstoggle:update"),(0,_.A)(function(){return r.hideArrowForMobile()},0)}},{key:"updateAnalytics",value:function(e){var t=this.getAnalyticsData();l.J.emit("product.list:updated",t,e)}},{key:"afterUpdate",value:function(e,t){(0,u.eG)()}},{key:"update",value:function(e){var t=this;e.url&&(s.u.start(this.isMobile?this.selectors.body:this.selectors.grid),(0,n.R)(e.url).then(function(r){var n=t.selectors.searchHeaderPrefix?t.selectors.searchHeaderPrefix.innerText:"";t.updateDOM(r,e),t.fixHeader&&n&&(t.selectors.searchHeaderPrefix.innerText=n),t.updateAnalytics(e),l.J.emit("wishlist:productlist.get"),l.J.emit("productlist:updated"),t.isMobile&&s.u.stop(t.selectors.body),t.updateHistory(e),t.afterUpdate(e,r)}))}},{key:"updateHistory",value:function(e){this.options.updateHistoryEnabled&&e.redirectUrl&&history.replaceState(null,"",e.redirectUrl)}},{key:"removeStoreAvailabilityParam",value:function(e){return e.replace(/([&?])prefn(\d+)=storeAvailability(&prefv\2=[^&]*)?/g,function(e,t){return"?"===t?"?":""}).replace(/[?&]$/,"")}},{key:"getAnalyticsData",value:function(){var e=this.element.querySelector(a.ANALYTICS_GRID_SELECTOR),t={};if(e)try{t=JSON.parse(e.dataset.analytics)}catch(e){}return t}},{key:"hideArrowForMobile",value:function(){this.isTabletDown&&this.selectors.quickfilter&&(this.selectors.quickfilter.offsetWidth>=this.selectors.quickfilter.scrollWidth?this.hideElement(this.selectors.quickarrow):this.showElement(this.selectors.quickarrow))}},{key:"bindEvents",value:function(){l.J.on("productlistingpage:refinement:selected",this.update,this),l.J.on("productlistingpage:update",this.update,this)}},{key:"destroy",value:function(){l.J.off("productlistingpage:refinement:selected",this.update),l.J.off("productlistingpage:update",this.update)}}])&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(i.A)},85504:function(){}}]);

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.