PageSourceSearch

https://ninewest.com/cdn/shop/t/1489/assets/custom-main-product.C9jmJ5Gu.min.js

js ninewest.com collected 2026-09-24 19:47:32 UTC 8,567 bytes, 1 lines download raw bytes

1import{B as V}from"./BaseElement.Dw8b55QC.min.js";import{V as N,M as j}from"./core-main-product.dLWJ_gVO.min.js";import{t as M}from"./custom-element.BhZVzxrc.min.js";import"./lit-element.D1QXZDXi.min.js";import"./WithShopifyCart.DQLzmZ8N.min.js";import"./WithApiClient.CPffo4ee.min.js";import"./index.CKJCYK2x.min.js";import"./cart-sections.WoVMkNAv.min.js";import"./create-context.89xeped_.min.js";import"./consume.CHsRYPSi.min.js";import"./context-request-event.CcEA9XIP.min.js";import"./state.DSBX3JYf.min.js";import"./property.CoOWCv8E.min.js";import"./ref.DnXmHtN0.min.js";import"./directive-helpers.BVIbzvjn.min.js";import"./directive.C_Rw-dL6.min.js";import"./quantity-input.CSvbyeJr.min.js";import"./floating-ui.dom.Cr7uO55N.min.js";import"./debounce.D6ZMjh7U.min.js";import"./LiveRegionUtility.44lKd9Yx.min.js";import"./aria-live-region-context.BZEtRCSs.min.js";import"./HTMLUpdateUtility.CJOjKlJ7.min.js";import"./firstFocusableElement.BqnhZP5g.min.js";var tt=Object.getOwnPropertyDescriptor,R=t=>{throw TypeError(t)},et=(t,e,r,i)=>{for(var a=i>1?void 0:i?tt(e,r):e,n=t.length-1,s;n>=0;n--)(s=t[n])&&(a=s(a)||a);return a},x=(t,e,r)=>e.has(t)||R("Cannot "+r),q=(t,e,r)=>(x(t,e,"read from private field"),r?r.call(t):e.get(t)),O=(t,e,r)=>e.has(t)?R("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),rt=(t,e,r)=>(x(t,e,"access private method"),r),k,A,B;let U=class extends V{constructor(){super(...arguments),O(this,A),O(this,k,t=>{var i;const e=(i=t.target)==null?void 0:i.closest("a[data-calf-option]");if(!e||!this.contains(e)||t.defaultPrevented||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||!e.getAttribute("href")||e.origin!==window.location.origin)return;const r=e.pathname;t.preventDefault(),e.getAttribute("aria-current")!=="true"&&(rt(this,A,B).call(this,e),this.$emit(N,{event:t,target:e,productUrl:r,variantId:void 0,selectedOptionValues:[]}))})}connectedCallback(){super.connectedCallback(),this.addEventListener("click",q(this,k))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",q(this,k))}};k=new WeakMap;A=new WeakSet;B=function(t){this.querySelectorAll("a[data-calf-option][aria-current]").forEach(e=>e.removeAttribute("aria-current")),t.setAttribute("aria-current","true")};U=et([M("calf-selector")],U);var it=Object.getOwnPropertyDescriptor,G=t=>{throw TypeError(t)},at=(t,e,r,i)=>{for(var a=i>1?void 0:i?it(e,r):e,n=t.length-1,s;n>=0;n--)(s=t[n])&&(a=s(a)||a);return a},P=(t,e,r)=>e.has(t)||G("Cannot "+r),b=(t,e,r)=>(P(t,e,"read from private field"),r?r.call(t):e.get(t)),D=(t,e,r)=>e.has(t)?G("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),nt=(t,e,r,i)=>(P(t,e,"write to private field"),e.set(t,r),r),C=(t,e,r)=>(P(t,e,"access private method"),r),_,m,H,I,K;let L=class extends V{constructor(){super(...arguments),D(this,m),D(this,_,t=>{const r=t.target.closest("a");if(!r)return;t.preventDefault();const i=r.getAttribute("href");i&&(C(this,m,H).call(this,r),this.$emit(N,{event:t,target:r,productUrl:i,variantId:void 0,selectedOptionValues:[]}))})}connectedCallback(){super.connectedCallback(),nt(this,_,b(this,_).bind(this)),this.addEventListener("click",b(this,_));const t=this.querySelector('a[aria-current="true"]');t&&C(this,m,I).call(this,t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",b(this,_))}};_=new WeakMap;m=new WeakSet;H=function(t){var i;const e=this.querySelector('a[aria-current="true"]');e&&(e.removeAttribute("aria-current"),C(this,m,K).call(this,e)),t.setAttribute("aria-current","true"),C(this,m,I).call(this,t);const r=t.dataset.color;if(r){const a=(i=this.parentElement)==null?void 0:i.querySelector("[data-color-text]");a&&(a.textContent=r)}};I=function(t){const e=t.dataset.contentType;e==="hex"||e==="material"?t.classList.add("border-1","border-foreground-secondary","outline","outline-2","outline-background","-outline-offset-3"):t.classList.add("border","border-foreground-secondary")};K=function(t){t.classList.remove("border","border-1","border-foreground-secondary","outline","outline-2","outline-background","-outline-offset-3")};L=at([M("color-swatch-picker")],L);var st=Object.getOwnPropertyDescriptor,F=t=>{throw TypeError(t)},ot=(t,e,r,i)=>{for(var a=i>1?void 0:i?st(e,r):e,n=t.length-1,s;n>=0;n--)(s=t[n])&&(a=s(a)||a);return a},$=(t,e,r)=>e.has(t)||F("Cannot "+r),v=(t,e,r)=>($(t,e,"read from private field"),e.get(t)),y=(t,e,r)=>e.has(t)?F("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),c=(t,e,r,i)=>($(t,e,"write to private field"),e.set(t,r),r),u=(t,e,r)=>($(t,e,"access private method"),r),h,w,g,f,o,z,J,Q,X,T,Y,Z;const ct=3e3,lt="stamped-main-widget";let W=class extends j{constructor(){super(...arguments),y(this,o),y(this,h,null),y(this,w,!1),y(this,g,null),y(this,f,null)}connectedCallback(){super.connectedCallback(),this.$htmlUpdateUtility.addPostProcessCallback(t=>{const e=v(this,w);c(this,w,!1),e&&(u(this,o,z).call(this,t),u(this,o,Q).call(this)),u(this,o,Y).call(this)})}disconnectedCallback(){var e;var t;super.disconnectedCallback(),(t=v(this,g))==null||t.call(this),(e=v(this,f))==null||e.abort()}handleVariantPickerChange(t){const e=t.detail.productUrl,r=t.detail.variantId,i=t.detail.sellingPlan,a=e&&e!==""&&e!==this.productUrl;!a&&(!r||r.trim()==="")||(a&&(c(this,h,u(this,o,X).call(this)),c(this,w,!0)),a&&this.shouldUpdateUrl?window.history.replaceState({},"",e):r&&r.trim()!==""&&this.updateURL(e??"",r,i),a&&(this.productUrl=e),this.updateSection(!0,e||this.productUrl,r,i))}};h=new WeakMap;w=new WeakMap;g=new WeakMap;f=new WeakMap;o=new WeakSet;z=function(t){var s,l;var e;(e=v(this,g))==null||e.call(this);const r=this.querySelector(".stamped-widget-wrapper"),i=t.querySelector(".stamped-widget-wrapper");if(!r||!i)return;const a=(s=r.querySelector("[data-id]"))==null?void 0:s.getAttribute("data-id"),n=(l=i.querySelector("[data-id]"))==null?void 0:l.getAttribute("data-id");a&&a===n||u(this,o,J).call(this,r,i.innerHTML)};J=function(t,e){var p,S;const r=document.createElement("div");r.className="sr-only",r.setAttribute("aria-hidden","true"),r.innerHTML=e;const i=new Map;r.querySelectorAll("[id]").forEach(d=>{i.set(d,d.id),d.removeAttribute("id")}),t.after(r);const a=()=>{clearTimeout(l),s.disconnect(),c(this,g,null)},n=()=>{a(),r.isConnected&&(t.replaceChildren(...Array.from(r.childNodes)),i.forEac
1h((d,E)=>E.setAttribute("id",d)),r.remove())},s=new MutationObserver(n);s.observe(r,{childList:!0,subtree:!0,attributes:!0});const l=setTimeout(n,ct);c(this,g,()=>{a(),r.remove()}),(S=(p=window.StampedFn)==null?void 0:p.loadBadges)==null||S.call(p)};Q=async function(){var i,a,n,s;if(this.view==="quick-shop")return;const t=(i=document.getElementById(lt))==null?void 0:i.closest('[id^="shopify-section-"]');if(!t||!this.productUrl)return;const e=t.id.replace("shopify-section-","");(a=v(this,f))==null||a.abort();const r=new AbortController;c(this,f,r);try{const l=new URL(this.productUrl,window.location.origin);l.searchParams.set("sections",e);const p=await fetch(l.toString(),{signal:r.signal});if(!p.ok||r.signal.aborted)return;const S=(await p.json())[e];if(typeof S!="string"||r.signal.aborted)return;const d=new DOMParser().parseFromString(S,"text/html"),E=d.getElementById(t.id)??d.body;t.innerHTML=E.innerHTML,(s=(n=window.StampedFn)==null?void 0:n.reloadUGC)==null||s.call(n)}catch(l){if(r.signal.aborted)return;console.warn("Failed to refresh the reviews section",l)}finally{v(this,f)===r&&c(this,f,null)}};X=function(){const t=this.querySelector("variant-picker");return t?Array.from(t.querySelectorAll('fieldset input[type="radio"]:checked')).map(e=>({optionValueId:e.dataset.optionValueId,optionName:u(this,o,T).call(this,e.name),value:e.value})):[]};T=function(t){return t.replace(/-\d+$/,"")};Y=function(){const t=v(this,h);if(!t||t.length===0){c(this,h,null);return}const e=this.querySelector("variant-picker");if(!e){c(this,h,null);return}let r=null;for(const i of t){const a=u(this,o,Z).call(this,e,i);!a||a.checked||(a.checked=!0,!r&&a.dataset.variantId&&(r=a))}if(r){r.dispatchEvent(new Event("change",{bubbles:!0}));return}c(this,h,null)};Z=function(t,e){if(e.optionValueId){const i=t.querySelector(`fieldset input[type="radio"][data-option-value-id="${CSS.escape(e.optionValueId)}"]`);if(i)return i}const r=Array.from(t.querySelectorAll(`fieldset input[type="radio"][value="${CSS.escape(e.value)}"]`));for(const i of r)if(u(this,o,T).call(this,i.name)===e.optionName)return i;return null};W=ot([M("custom-main-product")],W);

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.