PageSourceSearch

https://www.maccosmetics.com/cdn/shop/t/199/assets/core-icon.Cau1cGTi.min.js

js maccosmetics.com collected 2026-10-02 02:30:58 UTC 3,663 bytes, 14 lines download raw bytes

1import{a as e}from"./BaseElement.wji90fuE.min.js";import{b as t,n as i,h as r,T as s,x as o,o as n,t as a}from"./vendor-lit.2u3dzq2T.min.js";import{d as l}from"./vendor.D2HIaoTS.min.js";var d=Object.defineProperty,c=Object.getOwnPropertyDescriptor,g=(e,t,i,r)=>{for(var s,o=r>1?void 0:r?c(t,i):t,n=e.length-1;n>=0;n--)(s=e[n])&&(o=(r?s(t,i,o):s(o))||o);return r&&o&&d(t,i,o),o};const h="vite-plugin-svg-spritemap";let u=class extends e{constructor(){super(),this.loadSpriteTask=new r(this,{task:async()=>{var e;if(u.svgSpriteCache)return u.svgSpriteCache;if(u.loadingCartPromise)return await u.loadingCartPromise.promise;u.loadingCartPromise=l();try{if(window.__VITE_DEV_MODE__){await new Promise(e=>{const t=document.getElementById(h);if(null==t?void 0:t.querySelector("svg"))return void e();const i=new MutationObserver((t,i)=>{for(const r of t)if("childList"===r.type){const t=document.getElementById(h);if(null==t?void 0:t.querySelector("svg"))return i.disconnect(),void e()}});i.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>{i.disconnect(),e()},5e3)});const e=document.getElementById(h),t=null==e?void 0:e.querySelector("svg");if(t instanceof SVGElement)return u.svgSpriteCache=this.hideAndGetSvgHtml(t),u.loadingCartPromise&&(u.loadingCartPromise.resolve(),u.loadingCartPromise=null),u.svgSpriteCache}else if(null==(e=window.Shopify)?void 0:e.designMode){const e=this.svgSpritePath;if(!e)return s;const t=await fetch(e);if(!t.ok)throw new Error("Network response was not ok");const i=await t.text(),r=(new DOMParser).parseFromString(i,"image/svg+xml").documentElement;if(r instanceof SVGElement)return u.svgSpriteCache=this.hideAndGetSvgHtml(r),u.loadingCartPromise&&(u.loadingCartPromise.resolve(),u.loadingCartPromise=null),u.svgSpriteCache}return u.loadingCartPromise&&(u.loadingCartPromise.resolve(),u.loadingCartPromise=null),s}catch(t){return u.loadingCartPromise&&(u.loadingCartPromise.reject(),u.loadingCartPromise=null),t}}}),this.metaEl=document.head.querySelector(u.metaPathSel)}hideAndGetSvgHtml(e){return e.style.display="none",e.outerHTML}connectedCallback(){var e;super.connectedCallback(),(window.__VITE_DEV_MODE__||(null==(e=window.Shopify)?void 0:e.designMode))&&this.loadSpriteTask.run()}get svgSpritePath(){var e;return null==(e=this.metaEl)?void 0:e.dataset.svgSpritePath}get useHref(){var e;return window.__VITE_DEV_MODE__||(null==(e=window.Shopify)?void 0:e.designMode)?`#${this.src}`:`${this.svgSpritePath}#${this.src}`}generateSVGMarkup(e){return o`
2      <svg
3        class="block h-full w-full"
4        aria-label=${this.ariaLabel||s}
5        aria-hidden=${this.ariaLabel?s:"true"}
6      >
7        <use crossorigin="anonymous" href=${e}></use>
8      </svg>
9    `}render(){var e;return void 0===this.src||null===this.src||""===this.src?o`${s}`:window.__VITE_DEV_MODE__||(null==(e=window.Shopify)?void 0:e.designMode)?o`
10        ${this.loadSpriteTask.render({complete:()=>u.svgSpriteCache&&"string"==typeof u.svgSpriteCache?o`
11              ${n(u.svgSpriteCache)}
12              ${this.src&&this.generateSVGMarkup(`#${this.src}`)}
13            `:s})}
14      `:this.generateSVGMarkup(this.useHref)}};u.loadingCartPromise=null,u.svgSpriteCache=null,u.styles=[t("/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */:host{width:1em;height:1em;font-size:var(--icon-size,inherit);color:inherit;display:inline-flex;overflow:hidden;box-sizing:content-box!important}svg{width:100%;height:100%;display:block}")],u.metaPathSel="meta[data-svg-sprite-path]",g([i({type:String})],u.prototype,"src",2),g([i({type:String,attribute:"aria-label"})],u.prototype,"ariaLabel",2),u=g([a("svg-icon")],u);export{u as SvgIcon};

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.