PageSourceSearch

https://www.monsoonlondon.com/on/demandware.static/Sites-monsoon-g…/v1790575576200/js/product/FitInfo.js

js monsoonlondon.com collected 2026-09-28 23:22:54 UTC 3,320 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmnsn=self.webpackChunkmnsn||[]).push([[348],{37821:function(t,e,n){n.r(e),n.d(e,{default:function(){return y}});var r=n(91076),o=n(8207),i=n(75451),c=n(43047);function u(t){return u="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},u(t)}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function s(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var y=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&&l(t,e)}(s,t);var e,n,r=function(t){var e=a();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==u(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,n)}}(s);function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),r.apply(this,arguments)}return e=s,(n=[{key:"initCache",value:function(){this.selectors.fitInfo=document.querySelector(c.PDP_FIT_INFO_SELECTOR),this.selectors.fitValue=document.querySelector(c.PDP_FIT_VALUE_SELECTOR)}},{key:"updateFitInfo",value:function(){var t=document.querySelectorAll(c.REVIEW_FIT_NODE_SELECTOR),e=Array.from(t).findIndex(function(t){return t.classList.contains(c.REVIEW_FIT_NODE_ACTIVE)});if(-1!==e){var n="";switch(e){case 0:case 1:n=this.options.labelSmallSize||"";break;case 2:n=this.options.labelTrueSize||"";break;case 3:case 4:n=this.options.labelLargeSize||""}n&&(this.selectors.fitValue.innerHTML=n,this.selectors.fitInfo.classList.remove(c.HIDDEN))}}},{key:"onInfoClick",value:function(){o.Event.emit("fitInfo:clicked")}},{key:"bindEvents",value:function(){o.Event.once("reviews:render",this.updateFitInfo.bind(this)),(0,i.Mm)("click",this.element,c.PDP_FIT_TRIGGER_SELECTOR,this.onInfoClick.bind(this))}},{key:"destroy",value:function(){o.Event.off("reviews:render",this.updateFitInfo,this),(0,i.AU)("click",this.element,this.onInfoClick)}}])&&f(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(r.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.