PageSourceSearch

https://charlotterusse.com/cdn/shop/t/1509/assets/sectionApi.BHhvK8UR.chunk.min.js

js charlotterusse.com collected 2026-09-25 04:28:28 UTC 6,171 bytes, 1 lines download raw bytes

1var V=Object.defineProperty;var C=(e,t,a)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var m=(e,t,a)=>C(e,typeof t!="symbol"?t+"":t,a);const H={childrenOnly:!0,reject(e,t){var a,r;return!!(t.nodeType===Node.TEXT_NODE&&((a=t.nodeValue)==null?void 0:a.trim())===""||t instanceof HTMLTemplateElement&&t.shadowRootMode==="open"&&e.parentElement&&t.parentElement&&e.parentElement.tagName===t.parentElement.tagName&&((r=e.parentElement)==null?void 0:r.shadowRoot)!=null||t.nodeType===Node.COMMENT_NODE&&t.nodeValue==="shopify:rendered_by_section_api")},onBeforeUpdate(e,t){if(e instanceof Element&&t instanceof Element&&e.getAttribute("name")==="quantity"&&t.getAttribute("name")==="quantity"){const a=e.value;t.value=a}},onAfterUpdate(e){typeof e.updatedCallback=="function"&&queueMicrotask(()=>e.updatedCallback())}};function x(e,t,a){if(!e||!t)throw new Error("Both oldTree and newTree must be provided");if(a={...H,...a},typeof t=="string"){const r=new DOMParser().parseFromString(t,"text/html").body.firstChild;if(!r)throw new Error("newTree string is not valid HTML");t=r}if(a.childrenOnly)return y(t,e,a),e;if(t.nodeType===11)throw new Error("newTree should have one root node (not a DocumentFragment)");return h(t,e,a)}function h(e,t,a){var r,n;if(!t)return e;if(!e||(r=e.isSameNode)!=null&&r.call(e,t))return t;if(e.nodeType!==t.nodeType)return e;if(e instanceof Element&&t instanceof Element){if(t.tagName==="SHOPIFY-ACCELERATED-CHECKOUT-CART")return t;if(e.tagName!==t.tagName)return e;const i=c(e,a),s=c(t,a);if(i&&s&&i!==s)return e}return t instanceof Element&&t.hasAttribute("data-skip-node-update")&&e instanceof Element&&e.hasAttribute("data-skip-node-update")||L(e,t,a),y(e,t,a),(n=a.onAfterUpdate)==null||n.call(a,t),t}function L(e,t,a){var r;if((r=a.onBeforeUpdate)==null||r.call(a,t,e),(e instanceof HTMLDetailsElement&&t instanceof HTMLDetailsElement||e instanceof HTMLDialogElement&&t instanceof HTMLDialogElement)&&(e.hasAttribute("declarative-open")||(e.open=t.open)),t instanceof HTMLElement&&e instanceof HTMLElement)for(const n of["slot","sizes"]){const i=t.getAttribute(n),s=e.getAttribute(n);i!==s&&(i==null?e.removeAttribute(n):e.setAttribute(n,i))}e instanceof Element&&t instanceof Element?t.isEqualNode(e)||D(e,t):(e instanceof Text||e instanceof Comment)&&t.nodeValue!==e.nodeValue&&(t.nodeValue=e.nodeValue),e instanceof HTMLInputElement&&t instanceof HTMLInputElement?R(e,t):e instanceof HTMLOptionElement&&t instanceof HTMLOptionElement?A(e,t,"selected"):e instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement&&S(e,t)}function c(e,t){var a;return((a=t==null?void 0:t.getNodeKey)==null?void 0:a.call(t,e))??(e instanceof Element?e.getAttribute("id"):void 0)}function A(e,t,a){e[a]!==t[a]&&(t[a]=e[a],e[a]!=null?t.setAttribute(a,""):t.removeAttribute(a))}function D(e,t){const a=t.attributes,r=e.attributes;for(const n of Array.from(r)){const{name:i,namespaceURI:s,value:u}=n,l=n.localName||i;(i==="src"||i==="href"||i==="srcset"||i==="poster")&&t.getAttribute(i)===u||(s?t.getAttributeNS(s,l)!==u&&t.setAttributeNS(s,l,u):t.hasAttribute(i)?t.getAttribute(i)!==u&&(u==="null"||u==="undefined"?t.removeAttribute(i):t.setAttribute(i,u)):t.setAttribute(i,u))}for(const n of Array.from(a)){if(n.specified===!1)continue;const{name:i,namespaceURI:s}=n,u=n.localName||i;s?e.hasAttributeNS(s,u)||t.removeAttributeNS(s,u):e.hasAttribute(i)||t.removeAttribute(i)}}function R(e,t){const a=e.value;A(e,t,"checked"),A(e,t,"disabled"),e.indeterminate!==t.indeterminate&&(t.indeterminate=e.indeterminate),t.type!=="file"&&(a!==t.value&&(t.setAttribute("value",a),t.value=a),a==="null"&&(t.value="",t.removeAttribute("value")),e.hasAttributeNS(null,"value")?t.type==="range"&&(t.value=a):t.removeAttribute("value"))}function S(e,t){const a=e.value;a!==t.value&&(t.value=a);const r=t.firstChild;if((r==null?void 0:r.nodeType)===Node.TEXT_NODE){if(a===""&&r.nodeValue===t.placeholder)return;r.nodeValue=a}}function y(e,t,a){var l;if(t instanceof Element&&t.hasAttribute("data-skip-subtree-update")&&e instanceof Element&&e.hasAttribute("data-skip-subtree-update"))return;let r,n,i,s,u=0;for(let f=0;r=t.childNodes[f],n=e.childNodes[f-u],!(!r&&!n);f++){if(!n){r&&t.removeChild(r),f--;continue}if(!r){t.appendChild(n),u++;continue}if(b(n,r,a)){i=h(n,r,a),i!==r&&(t.replaceChild(i,r),u++);continue}
1if((l=a.reject)!=null&&l.call(a,r,n)){e.removeChild(n),f--;continue}s=null;for(let E=f;E<t.childNodes.length;E++){const T=t.childNodes[E];if(T&&b(T,n,a)){s=T;break}}s?(i=h(n,s,a),i!==s&&u++,t.insertBefore(i,r)):!c(n,a)&&!c(r,a)?(i=h(n,r,a),i!==r&&(t.replaceChild(i,r),u++)):(t.insertBefore(n,r),u++)}}function b(e,t,a){var r,n;if(e.nodeType!==t.nodeType)return!1;if(e.nodeType===Node.ELEMENT_NODE){if(e instanceof Element&&t instanceof Element&&e.tagName!==t.tagName)return!1;const i=c(e,a),s=c(t,a);if(i&&s&&i!==s)return!1}return e.nodeType===Node.TEXT_NODE&&t.nodeType===Node.TEXT_NODE?((r=e.nodeValue)==null?void 0:r.trim())===((n=t.nodeValue)==null?void 0:n.trim()):e.nodeType===Node.COMMENT_NODE&&t.nodeType===Node.COMMENT_NODE?e.nodeValue===t.nodeValue:!0}class _ extends Error{constructor(a,{request:r,response:n,data:i,status:s}){super(a);m(this,"request");m(this,"response");m(this,"data");m(this,"status");this.name="FetchError",this.request=r,this.response=n,this.data=i,this.status=s}}const v=(e,t,a={})=>{const r={headers:{Accept:t,...a.headers},...a};return new Request(e,r)},g=(e,t,a)=>{if(!t.ok)throw new _(`HTTP error status: ${t.status}`,{request:e,response:t,data:a,status:t.status});return{request:e,response:t,data:a}},I=async(e,t={})=>{const a=v(e,"application/json",t),r=await fetch(a),n=await r.json();return g(a,r,n)},k=async(e,t={})=>{const a=v(e,"text/html",t),r=await fetch(a),n=await r.text();return g(a,r,n)},U=new DOMParser,p={},M=async e=>{const t=String(e);return p[t]||(p[t]=k(e).then(({data:a})=>a)),p[t]},O=e=>U.parseFromString(e,"text/html"),K=async e=>{const t=new URL(e),a=await M(t);return O(a)},P=async(e,t)=>{const a=new URL(e);return a.searchParams.set("section_id",t),(await M(a).then(O)).querySelector(`#shopify-section-${t}`)};
1export{_ as F,P as a,I as b,K as f,x as m,O as p};

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.