PageSourceSearch

https://www.accessorize.com/on/demandware.static/Sites-accessorize…/js/global/BazaarWordWrapp.js

js accessorize.com collected 2026-09-25 15:05:55 UTC 3,699 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmnsn=self.webpackChunkmnsn||[]).push([[7004],{48793:function(t,e,r){r.r(e),r.d(e,{default:function(){return p}});var n=r(91076),o=r(8207),i=r(43047);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(s,t);var e,r,n=function(t){var e=l();return function(){var r,n=f(t);if(e){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}(s);function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),n.apply(this,arguments)}return e=s,(r=[{key:"initCache",value:function(){this.selectors.slotsMutationWrapper=document.querySelector(i.SLOTS_MUTATION_OBSERVER_SELECTOR)}},{key:"handleOnBodyLoaded",value:function(){var t=document.querySelectorAll(i.BAZAAR_FIRST_WORD_WRAPP_SELECTOR);this.processBazaarWrapp(t),this.createMutationObserver()}},{key:"processBazaarWrapp",value:function(t){t&&t.length>0&&t.forEach(function(t){var e=t.innerText.trim();if(!t.classList.contains(i.BAZAAR_WRAPPED)&&e){var r=e.split(" ");if(r&&r.length>0){var n=r[0];r[0]=r[0].replace(n,'<span class="b-first_word">'+n+"</span>"),t.innerHTML=r.join(" "),t.classList.remove(i.BAZAAR_FIRST_WORD_WRAPP),t.classList.add(i.BAZAAR_WRAPPED)}}})}},{key:"mutationCallback",value:function(t){t.forEach(function(){var t=this.selectors.slotsMutationWrapper.querySelectorAll(i.BAZAAR_FIRST_WORD_WRAPP_SELECTOR);this.processBazaarWrapp(t)},this)}},{key:"createMutationObserver",value:function(){this.selectors.slotsMutationWrapper&&(this.observer=new MutationObserver(this.mutationCallback.bind(this)),this.observer.observe(this.selectors.slotsMutationWrapper,{childList:!0,subtree:!0}))}},{key:"bindEvents",value:function(){o.J.on("body:loaded",this.handleOnBodyLoaded,this),o.J.on("product.list:updated",this.handleOnBodyLoaded,this)}},{key:"destroy",value:function(){o.J.off("body:loaded",this.handleOnBodyLoaded),o.J.off("product.list:updated",this.handleOnBodyLoaded),this.observer.disconnect()}}])&&u(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(n.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.