the-foxy-library 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-DRVRI1ik.js → app-globals-CoHtVZOa.js} +4 -3
- package/dist/cjs/app-globals-CoHtVZOa.js.map +1 -0
- package/dist/cjs/{factory-CC4cUyGl.js → factory-NSOuLE3E.js} +7 -4
- package/dist/cjs/factory-NSOuLE3E.js.map +1 -0
- package/dist/cjs/{index-77WT2UXf.js → index-LRS48Qt3.js} +3 -2
- package/dist/cjs/index-LRS48Qt3.js.map +1 -0
- package/dist/cjs/intravenous.cjs.js +2 -2
- package/dist/cjs/ion-icon_12.cjs.entry.js +2 -2
- package/dist/cjs/iv-banner.cjs.entry.js +1 -1
- package/dist/cjs/iv-card_3.cjs.entry.js +2 -2
- package/dist/cjs/iv-carousel.cjs.entry.js +1 -1
- package/dist/cjs/iv-compare-product.cjs.entry.js +1 -1
- package/dist/cjs/iv-dynamic-products-carousel.cjs.entry.js +2 -2
- package/dist/cjs/iv-dynamic-products.cjs.entry.js +2 -2
- package/dist/cjs/iv-filters.cjs.entry.js +1 -1
- package/dist/cjs/iv-predictive-search.cjs.entry.js +1 -1
- package/dist/cjs/iv-product-pin.cjs.entry.js +1 -1
- package/dist/cjs/iv-product-upsell.cjs.entry.js +1 -1
- package/dist/cjs/iv-recently-viewed.cjs.entry.js +2 -2
- package/dist/cjs/iv-shop-the-look.cjs.entry.js +1 -1
- package/dist/cjs/iv-suggest.cjs.entry.js +1 -1
- package/dist/cjs/iv-tabs.cjs.entry.js +1 -1
- package/dist/cjs/iv-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/iv-toast.cjs.entry.js +1 -1
- package/dist/cjs/iv-wishlist.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sw-in-grid-content.cjs.entry.js +1 -1
- package/dist/cjs/sw-size-guide.cjs.entry.js +1 -1
- package/dist/collection/global/app.js +1 -0
- package/dist/collection/global/app.js.map +1 -1
- package/dist/collection/utils/config/factory.js +1 -0
- package/dist/collection/utils/config/factory.js.map +1 -1
- package/dist/collection/utils/storefront_api/factory.js +4 -1
- package/dist/collection/utils/storefront_api/factory.js.map +1 -1
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/ion-icon.js +1 -1
- package/dist/components/iv-accordion.js +2 -2
- package/dist/components/iv-banner.js +1 -1
- package/dist/components/iv-button.js +1 -1
- package/dist/components/iv-card.js +1 -1
- package/dist/components/iv-carousel.js +1 -1
- package/dist/components/iv-compare-product.js +1 -1
- package/dist/components/iv-dynamic-products-carousel.js +6 -6
- package/dist/components/iv-dynamic-products.js +7 -7
- package/dist/components/iv-event-button.js +1 -1
- package/dist/components/iv-filters.js +1 -1
- package/dist/components/iv-footer.js +1 -1
- package/dist/components/iv-layout.js +1 -1
- package/dist/components/iv-link-list.js +2 -2
- package/dist/components/iv-link.js +1 -1
- package/dist/components/iv-modal.js +3 -3
- package/dist/components/iv-newsletter.js +2 -2
- package/dist/components/iv-predictive-search.js +5 -5
- package/dist/components/iv-product-pin.js +1 -1
- package/dist/components/iv-product-upsell.js +1 -1
- package/dist/components/iv-recently-viewed.js +6 -6
- package/dist/components/iv-shop-the-look.js +2 -2
- package/dist/components/iv-sidebar.js +3 -3
- package/dist/components/iv-spinner.js +1 -1
- package/dist/components/iv-suggest.js +6 -6
- package/dist/components/iv-tabs.js +1 -1
- package/dist/components/iv-toast-container.js +2 -2
- package/dist/components/iv-toast.js +1 -1
- package/dist/components/iv-two-col-media.js +1 -1
- package/dist/components/iv-wishlist-view.js +1 -1
- package/dist/components/iv-wishlist.js +2 -2
- package/dist/components/{p-CvO-bCed.js → p-B-4VoGV_.js} +3 -3
- package/dist/components/{p-CvO-bCed.js.map → p-B-4VoGV_.js.map} +1 -1
- package/dist/components/{p-Blz-LJSV.js → p-B4yIesaL.js} +3 -3
- package/dist/components/{p-Blz-LJSV.js.map → p-B4yIesaL.js.map} +1 -1
- package/dist/components/{p-3lSW4-ii.js → p-BMsgAmDZ.js} +3 -3
- package/dist/components/{p-3lSW4-ii.js.map → p-BMsgAmDZ.js.map} +1 -1
- package/dist/components/{p-kuABA_Tv.js → p-BVAxyx8A.js} +3 -3
- package/dist/components/{p-kuABA_Tv.js.map → p-BVAxyx8A.js.map} +1 -1
- package/dist/components/{p-Cmnclx4w.js → p-BVL7DqEj.js} +7 -4
- package/dist/components/p-BVL7DqEj.js.map +1 -0
- package/dist/components/{p-CmetOj56.js → p-BpdXCMak.js} +3 -3
- package/dist/components/{p-CmetOj56.js.map → p-BpdXCMak.js.map} +1 -1
- package/dist/components/{p-DV16vkcI.js → p-CUI6hRMI.js} +3 -3
- package/dist/components/{p-DV16vkcI.js.map → p-CUI6hRMI.js.map} +1 -1
- package/dist/components/{p-HxD8ZMcb.js → p-D8GfK9z_.js} +3 -3
- package/dist/components/{p-HxD8ZMcb.js.map → p-D8GfK9z_.js.map} +1 -1
- package/dist/components/{p-3YQcGgfQ.js → p-DE0H3IbO.js} +5 -5
- package/dist/components/{p-3YQcGgfQ.js.map → p-DE0H3IbO.js.map} +1 -1
- package/dist/components/{p-D2SCT3Sb.js → p-DVvBorxR.js} +3 -3
- package/dist/components/{p-D2SCT3Sb.js.map → p-DVvBorxR.js.map} +1 -1
- package/dist/components/{p-haFsiJTQ.js → p-IJUHvLzw.js} +6 -6
- package/dist/components/{p-haFsiJTQ.js.map → p-IJUHvLzw.js.map} +1 -1
- package/dist/components/{p-DH3wWIxr.js → p-XXtzVg2d.js} +3 -2
- package/dist/components/p-XXtzVg2d.js.map +1 -0
- package/dist/components/{p-Dfh8X_q_.js → p-dpzz67iI.js} +3 -3
- package/dist/components/{p-Dfh8X_q_.js.map → p-dpzz67iI.js.map} +1 -1
- package/dist/components/sw-in-grid-content.js +1 -1
- package/dist/components/sw-size-guide.js +1 -1
- package/dist/esm/{app-globals-BRJyMwss.js → app-globals-D2HG9z1r.js} +4 -3
- package/dist/esm/app-globals-D2HG9z1r.js.map +1 -0
- package/dist/esm/{factory-nzeOUOp1.js → factory-Bf2IW1Vz.js} +7 -4
- package/dist/esm/factory-Bf2IW1Vz.js.map +1 -0
- package/dist/esm/{index-BW0IzFf8.js → index-Cb3Nnjkn.js} +3 -2
- package/dist/esm/index-Cb3Nnjkn.js.map +1 -0
- package/dist/esm/intravenous.js +3 -3
- package/dist/esm/ion-icon_12.entry.js +2 -2
- package/dist/esm/iv-banner.entry.js +1 -1
- package/dist/esm/iv-card_3.entry.js +2 -2
- package/dist/esm/iv-carousel.entry.js +1 -1
- package/dist/esm/iv-compare-product.entry.js +1 -1
- package/dist/esm/iv-dynamic-products-carousel.entry.js +2 -2
- package/dist/esm/iv-dynamic-products.entry.js +2 -2
- package/dist/esm/iv-filters.entry.js +1 -1
- package/dist/esm/iv-predictive-search.entry.js +1 -1
- package/dist/esm/iv-product-pin.entry.js +1 -1
- package/dist/esm/iv-product-upsell.entry.js +1 -1
- package/dist/esm/iv-recently-viewed.entry.js +2 -2
- package/dist/esm/iv-shop-the-look.entry.js +1 -1
- package/dist/esm/iv-suggest.entry.js +1 -1
- package/dist/esm/iv-tabs.entry.js +1 -1
- package/dist/esm/iv-toast-container.entry.js +1 -1
- package/dist/esm/iv-toast.entry.js +1 -1
- package/dist/esm/iv-wishlist.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sw-in-grid-content.entry.js +1 -1
- package/dist/esm/sw-size-guide.entry.js +1 -1
- package/dist/intravenous/intravenous.esm.js +1 -1
- package/dist/intravenous/{p-c1d875cf.entry.js → p-0f07e69c.entry.js} +2 -2
- package/dist/intravenous/{p-a35de10b.entry.js → p-1394ddc3.entry.js} +2 -2
- package/dist/intravenous/{p-ec7b539d.entry.js → p-19185e49.entry.js} +2 -2
- package/dist/intravenous/p-1d169085.entry.js +2 -0
- package/dist/intravenous/{p-50008fa6.entry.js → p-28d83a02.entry.js} +2 -2
- package/dist/intravenous/{p-45c70b13.entry.js → p-3a43aff3.entry.js} +2 -2
- package/dist/intravenous/{p-a617d9d0.entry.js → p-3ad476a3.entry.js} +2 -2
- package/dist/intravenous/{p-2c191fe7.entry.js → p-40d5f2dd.entry.js} +2 -2
- package/dist/intravenous/{p-78e8d319.entry.js → p-51f91c3c.entry.js} +2 -2
- package/dist/intravenous/p-6yYowr-X.js +2 -0
- package/dist/intravenous/p-6yYowr-X.js.map +1 -0
- package/dist/intravenous/{p-21d5f405.entry.js → p-7a73eb94.entry.js} +2 -2
- package/dist/intravenous/{p-55f43ae2.entry.js → p-7e46d5b9.entry.js} +2 -2
- package/dist/intravenous/{p-dc8d0b9e.entry.js → p-8d726fec.entry.js} +2 -2
- package/dist/intravenous/{p-BW0IzFf8.js → p-Cb3Nnjkn.js} +2 -2
- package/dist/intravenous/p-Cb3Nnjkn.js.map +1 -0
- package/dist/intravenous/p-DujflZ2b.js +2 -0
- package/dist/intravenous/p-DujflZ2b.js.map +1 -0
- package/dist/intravenous/{p-145798b2.entry.js → p-a28bd4eb.entry.js} +2 -2
- package/dist/intravenous/{p-256a765e.entry.js → p-a66c7492.entry.js} +2 -2
- package/dist/intravenous/{p-a7b3baf0.entry.js → p-a7d8309c.entry.js} +2 -2
- package/dist/intravenous/{p-aebd8d4b.entry.js → p-affde66d.entry.js} +2 -2
- package/dist/intravenous/{p-19cf30b1.entry.js → p-b2e8bb5f.entry.js} +2 -2
- package/dist/intravenous/{p-331983d1.entry.js → p-bfe01a14.entry.js} +2 -2
- package/dist/intravenous/{p-13ce40ae.entry.js → p-ca10d662.entry.js} +2 -2
- package/dist/intravenous/{p-cbf8e7b8.entry.js → p-ff2b5ad8.entry.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/app-globals-DRVRI1ik.js.map +0 -1
- package/dist/cjs/factory-CC4cUyGl.js.map +0 -1
- package/dist/cjs/index-77WT2UXf.js.map +0 -1
- package/dist/components/p-Cmnclx4w.js.map +0 -1
- package/dist/components/p-DH3wWIxr.js.map +0 -1
- package/dist/esm/app-globals-BRJyMwss.js.map +0 -1
- package/dist/esm/factory-nzeOUOp1.js.map +0 -1
- package/dist/esm/index-BW0IzFf8.js.map +0 -1
- package/dist/intravenous/p-BAss6u3X.js +0 -2
- package/dist/intravenous/p-BAss6u3X.js.map +0 -1
- package/dist/intravenous/p-BW0IzFf8.js.map +0 -1
- package/dist/intravenous/p-DHfJNZjh.js +0 -2
- package/dist/intravenous/p-DHfJNZjh.js.map +0 -1
- package/dist/intravenous/p-e7109ec4.entry.js +0 -2
- /package/dist/intravenous/{p-c1d875cf.entry.js.map → p-0f07e69c.entry.js.map} +0 -0
- /package/dist/intravenous/{p-a35de10b.entry.js.map → p-1394ddc3.entry.js.map} +0 -0
- /package/dist/intravenous/{p-ec7b539d.entry.js.map → p-19185e49.entry.js.map} +0 -0
- /package/dist/intravenous/{p-e7109ec4.entry.js.map → p-1d169085.entry.js.map} +0 -0
- /package/dist/intravenous/{p-50008fa6.entry.js.map → p-28d83a02.entry.js.map} +0 -0
- /package/dist/intravenous/{p-45c70b13.entry.js.map → p-3a43aff3.entry.js.map} +0 -0
- /package/dist/intravenous/{p-a617d9d0.entry.js.map → p-3ad476a3.entry.js.map} +0 -0
- /package/dist/intravenous/{p-2c191fe7.entry.js.map → p-40d5f2dd.entry.js.map} +0 -0
- /package/dist/intravenous/{p-78e8d319.entry.js.map → p-51f91c3c.entry.js.map} +0 -0
- /package/dist/intravenous/{p-21d5f405.entry.js.map → p-7a73eb94.entry.js.map} +0 -0
- /package/dist/intravenous/{p-55f43ae2.entry.js.map → p-7e46d5b9.entry.js.map} +0 -0
- /package/dist/intravenous/{p-dc8d0b9e.entry.js.map → p-8d726fec.entry.js.map} +0 -0
- /package/dist/intravenous/{p-145798b2.entry.js.map → p-a28bd4eb.entry.js.map} +0 -0
- /package/dist/intravenous/{p-256a765e.entry.js.map → p-a66c7492.entry.js.map} +0 -0
- /package/dist/intravenous/{p-a7b3baf0.entry.js.map → p-a7d8309c.entry.js.map} +0 -0
- /package/dist/intravenous/{p-aebd8d4b.entry.js.map → p-affde66d.entry.js.map} +0 -0
- /package/dist/intravenous/{p-19cf30b1.entry.js.map → p-b2e8bb5f.entry.js.map} +0 -0
- /package/dist/intravenous/{p-331983d1.entry.js.map → p-bfe01a14.entry.js.map} +0 -0
- /package/dist/intravenous/{p-13ce40ae.entry.js.map → p-ca10d662.entry.js.map} +0 -0
- /package/dist/intravenous/{p-cbf8e7b8.entry.js.map → p-ff2b5ad8.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as t,r as e,h as i,H as o,c as n,d as s,a as r,e as a}from"./p-BW0IzFf8.js";import{r as c,i as l,a as d,c as h,g as b}from"./p-CL9gCgzW.js";import{a as u}from"./p-DHfJNZjh.js";let v;const f=()=>{if(typeof window==="undefined"){return new Map}else{if(!v){const t=window;t.Ionicons=t.Ionicons||{};v=t.Ionicons.map=t.Ionicons.map||new Map}return v}};const m=t=>{let e=w(t.src);if(e){return e}e=g(t.name,t.icon,t.mode,t.ios,t.md);if(e){return p(e,t)}if(t.icon){e=w(t.icon);if(e){return e}e=w(t.icon[t.mode]);if(e){return e}}return null};const p=(e,i)=>{const o=f().get(e);if(o){return o}try{return t(`svg/${e}.svg`)}catch(t){console.log("e",t);console.warn(`[Ionicons Warning]: Could not load icon with name "${e}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,i)}};const g=(t,e,i,o,n)=>{i=(i&&x(i))==="ios"?"ios":"md";if(o&&i==="ios"){t=x(o)}else if(n&&i==="md"){t=x(n)}else{if(!t&&e&&!y(e)){t=e}if(k(t)){t=x(t)}}if(!k(t)||t.trim()===""){return null}const s=t.replace(/[a-z]|-|\d/gi,"");if(s!==""){return null}return t};const w=t=>{if(k(t)){t=t.trim();if(y(t)){return t}}return null};const y=t=>t.length>0&&/(\/|\.)/.test(t);const k=t=>typeof t==="string";const x=t=>t.toLowerCase();const $=(t,e=[])=>{const i={};e.forEach((e=>{if(t.hasAttribute(e)){const o=t.getAttribute(e);if(o!==null){i[e]=t.getAttribute(e)}t.removeAttribute(e)}}));return i};const z=t=>{if(t){if(t.dir!==""){return t.dir.toLowerCase()==="rtl"}}return(document===null||document===void 0?void 0:document.dir.toLowerCase())==="rtl"};const C=t=>{const e=document.createElement("div");e.innerHTML=t;for(let t=e.childNodes.length-1;t>=0;t--){if(e.childNodes[t].nodeName.toLowerCase()!=="svg"){e.removeChild(e.childNodes[t])}}const i=e.firstElementChild;if(i&&i.nodeName.toLowerCase()==="svg"){const t=i.getAttribute("class")||"";i.setAttribute("class",(t+" s-ion-icon").trim());if(S(i)){return e.innerHTML}}return""};const S=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script"){return false}for(let e=0;e<t.attributes.length;e++){const i=t.attributes[e].name;if(k(i)&&i.toLowerCase().indexOf("on")===0){return false}}for(let e=0;e<t.childNodes.length;e++){if(!S(t.childNodes[e])){return false}}}return true};const _=t=>t.startsWith("data:image/svg+xml");const M=t=>t.indexOf(";utf8,")!==-1;const j=new Map;const T=new Map;let L;function P(t){const e="";j.set(t,e);return e}const I=(t,e)=>{const i=T.get(t);if(i){return i}if(typeof fetch!=="undefined"&&typeof document!=="undefined"){if(_(t)&&M(t)){return Promise.resolve(N(t))}return F(t,e)}return Promise.resolve(P(t))};function N(t){if(!L){L=new DOMParser}const e=L.parseFromString(t,"text/html");const i=e.querySelector("svg");if(i){j.set(t,i.outerHTML);return i.outerHTML}throw new Error(`Could not parse svg from ${t}`)}function F(t,e){const i=fetch(t).then((i=>i.text().then((i=>{if(i&&e!==false){i=C(i)}const o=i||"";j.set(t,o);return o})).catch((()=>P(t))))).catch((()=>P(t)));T.set(t,i);return i}const D=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}";const E=class{constructor(t){e(this,t);this.iconName=null;this.inheritedAttributes={};this.didLoadIcon=false;this.isVisible=false;this.mode=O();this.lazy=false;this.sanitize=true}componentWillLoad(){this.inheritedAttributes=$(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=true;this.loadIcon()}))}componentDidLoad(){if(!this.didLoadIcon){this.loadIcon()}}disconnectedCallback(){if(this.io){this.io.disconnect();this.io=undefined}}waitUntilVisible(t,e,i){const o=Boolean(this.lazy&&typeof window!=="undefined"&&window.IntersectionObserver);if(!o){return i()}const n=this.io=new window.IntersectionObserver((t=>{if(t[0].isIntersecting){n.disconnect();this.io=undefined;i()}}),{rootMargin:e});n.observe(t)}loadIcon(){if(this.isVisible){const t=m(this);if(t){if(j.has(t)){this.svgContent=j.get(t)}else{I(t,this.sanitize).then((()=>this.svgContent=j.get(t)))}this.didLoadIcon=true}}this.iconName=g(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:t,iconName:e,inheritedAttributes:n,el:s}=this;const r=this.mode||"md";const a=e?(e.includes("arrow")||e.includes("chevron"))&&t!==false:false;const c=t||a;return i(o,Object.assign({key:"0578c899781ca145dd8205acd9670af39b57cf2e",role:"img",class:Object.assign(Object.assign({[r]:true},W(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":c,"icon-rtl":c&&z(s)})},n),this.svgContent?i("div",{class:"icon-inner",innerHTML:this.svgContent}):i("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return n(this)}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}};const O=()=>typeof document!=="undefined"&&document.documentElement.getAttribute("mode")||"md";const W=t=>t?{"ion-color":true,[`ion-color-${t}`]:true}:null;E.style=D;const X=":host{display:block}";const H="iv-accordion";const R=class{constructor(t){e(this,t)}labels;allowmultiple;startopen;dropdownicon;openPanels=[];componentWillLoad(){this.openPanels=this.startopen?[0]:[]}togglePanel(t){if(this.allowmultiple){this.openPanels=this.openPanels.includes(t)?this.openPanels.filter((e=>e!==t)):[...this.openPanels,t]}else{this.openPanels=this.openPanels.includes(t)?[]:[t]}}render(){return i("div",{key:"9047082c09a26440770df8f12b107495dcb193cf",class:H},c(this.labels).map(((t,e)=>i("div",{class:"accordion-panel",key:e},i("button",{class:{copy:true,"accordion-header":true,open:this.openPanels.includes(e)},onClick:()=>this.togglePanel(e),"aria-expanded":this.openPanels.includes(e),"aria-controls":`panel-content-${e}`,id:`panel-header-${e}`,type:"button"},t,this.dropdownicon&&i("ion-icon",{class:"accordion-icon",name:this.dropdownicon})),i("div",{id:`panel-content-${e}`,class:{"accordion-content":true,open:this.openPanels.includes(e)},role:"region","aria-labelledby":`panel-header-${e}`,hidden:!this.openPanels.includes(e)},i("slot",{name:`panel-${e}`}))))))}};R.style=X;const A=".iv-button{display:var(--iv-button-display, inline-flex);align-items:var(--iv-button-align, center);justify-content:var(--iv-button-justify, center);gap:var(--iv-button-gap, 0.5rem);box-sizing:border-box;padding:var(--iv-button-padding, 0.75rem 1rem);background:var(--iv-button-bg, transparent);color:var(--iv-button-color, inherit);border:var(--iv-button-border, none);border-radius:var(--iv-button-radius, 0);font:inherit;font-size:var(--iv-button-font-size, inherit);font-weight:var(--iv-button-font-weight, 500);line-height:var(--iv-button-line-height, 1.2);text-decoration:none;cursor:pointer;position:relative;min-width:var(--iv-button-min-width, unset);min-height:var(--iv-button-min-height, 2.5rem);box-shadow:var(--iv-button-shadow, none);transition:var(--iv-button-transition, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease);-webkit-appearance:none;appearance:none}.iv-button:hover:not(.disabled):not([disabled]),.iv-button:focus-visible:not(.disabled):not([disabled]){background:var(--iv-button-hover-bg, var(--iv-button-bg, transparent));color:var(--iv-button-hover-color, var(--iv-button-color, inherit));border:var(--iv-button-hover-border, var(--iv-button-border, none));box-shadow:var(--iv-button-hover-shadow, var(--iv-button-shadow, none));outline:var(--iv-button-focus-outline, none)}.iv-button:active:not(.disabled):not([disabled]){background:var(--iv-button-active-bg, var(--iv-button-hover-bg, var(--iv-button-bg, transparent)));color:var(--iv-button-active-color, var(--iv-button-hover-color, var(--iv-button-color, inherit)));border:var(--iv-button-active-border, var(--iv-button-hover-border, var(--iv-button-border, none)));box-shadow:var(--iv-button-active-shadow, var(--iv-button-hover-shadow, var(--iv-button-shadow, none)))}.iv-button.disabled,.iv-button[disabled]{cursor:not-allowed;opacity:var(--iv-button-disabled-opacity, 0.5);background:var(--iv-button-disabled-bg, var(--iv-button-bg, transparent));color:var(--iv-button-disabled-color, var(--iv-button-color, inherit));border:var(--iv-button-disabled-border, var(--iv-button-border, none));box-shadow:var(--iv-button-disabled-shadow, none)}.iv-button.variant-card,.iv-card-add-to-cart-btn.iv-button{--iv-button-bg:var(--iv-card-button-bg, transparent);--iv-button-border:var(--iv-card-button-border, none);--iv-button-color:var(--iv-card-button-color, inherit);--iv-button-hover-bg:var(--iv-card-button-hover-bg, var(--iv-button-bg));--iv-button-hover-border:var(--iv-card-button-hover-border, var(--iv-button-border));--iv-button-hover-color:var(--iv-card-button-hover-color, var(--iv-button-color))}.iv-button:focus-visible:not(.disabled):not([disabled]){box-shadow:var(--iv-button-focus-ring, var(--iv-button-hover-shadow, var(--iv-button-shadow, none)))}.iv-button--sm{--iv-button-padding:var(--iv-button-sm-padding, 0.5rem 0.75rem);font-size:var(--iv-button-sm-font-size, 0.875rem)}.iv-button--lg{--iv-button-padding:var(--iv-button-lg-padding, 1rem 1.25rem);font-size:var(--iv-button-lg-font-size, 1.125rem)}.iv-button>svg,.iv-button .icon{width:var(--iv-button-icon-size, 1em);height:var(--iv-button-icon-size, 1em);flex:0 0 auto}@media (prefers-reduced-motion: reduce){.iv-button{transition:none}}";const G=class{constructor(t){e(this,t);this.action=s(this,"action")}type="button";classmodifier;eventname;eventdetail;buttonClick;action;get el(){return n(this)}handleClick=t=>{if(this.buttonClick)this.buttonClick(t);if(this.eventname){const t=this.eventdetail||undefined;this.el.dispatchEvent(new CustomEvent(this.eventname,{bubbles:true,detail:t,composed:true}));this.action.emit(t)}};render(){return i("button",{key:"3b8eb05a504676795eb86bec9b645866630b9023",class:`iv-button ${r.loading?"disabled":undefined} ${this.classmodifier||""}`,type:this.type,disabled:r.loading,onClick:this.handleClick},i("slot",{key:"4b7cea68ef1dfe921dc15feeb54de66f845551c7"}))}};G.style=A;const U=":host{display:block}";const q="iv-event-button";const B=class{constructor(t){e(this,t);this.action=s(this,"action")}eventname;eventdetail;buttontext="Click Me";get host(){return n(this)}action;handleClick=()=>{this.action.emit({eventname:this.eventname,eventdetail:this.eventdetail});if(this.eventname){const t=new CustomEvent(this.eventname,{bubbles:true,composed:true,detail:{content:this.eventdetail}});this.host.dispatchEvent(t)}};render(){return i("button",{key:"98d2d89f17b8f729dfed17e6d2796326bd473569",class:q,onClick:this.handleClick},i("span",{key:"1a3bce85a0a3738c99061be783aeff8f9a387c0b",class:`${q}-text`},i("slot",{key:"831422c3f7ecc8922d24affd65b1a60e2c04cea1"})))}};B.style=U;const V=".iv-footer{display:grid;gap:2rem}.iv-footer .footer-social-links{grid-area:social}.iv-footer .footer-contact-links{grid-area:contact}.iv-footer .footer-newsletter-signup{grid-area:newsletter}.iv-footer .footer-menu{grid-area:menu}.iv-footer .footer-boilerplate{grid-area:boilerplate}.iv-footer .footer-payment-icons{grid-area:payment}";const J="iv-footer";const Z=class{constructor(t){e(this,t)}gridtemplateareas;get host(){return n(this)}blockElements=[];get getAreas(){return!!this.gridtemplateareas}get test(){return this.getAreas?this.gridtemplateareas.split(",").map((t=>`"${t.trim()}"`)).join(" "):""}render(){return i("footer",{key:"fd9868c22ce1e5e8926cb739735eada4d08f0931",class:J,style:{gridTemplateAreas:this.test}},i("slot",{key:"35307299f77a40d5803c0a31c9161a7e527eca16"}))}};Z.style=V;const K=":host{display:block}";const Q="iv-link-list";const Y=class{constructor(t){e(this,t)}linktype="social";showicons=false;links;layout="vertical";getSocialSource(t){try{const e=new URL(t);const i=e.hostname.replace("www.","");return i.split(".")[0]}catch{return t}}getCustomLabel(t){const[e,i]=t.split("|");return{url:e,customLabel:i}}constructLinkObject(){const t=c(this.links);const e=[];t?.forEach(((t,i)=>{let o=t;let n="";let s="";if(this.linktype==="contact"&&t.includes("|")){const e=this.getCustomLabel(t);o=e.url.trim();s=e.customLabel.trim()}if(l(t))t=`mailto:${t}`;if(d(t))t=`tel:${t}`;n=s||(this.linktype==="social"?this.getSocialSource(o):o);e.push({url:o,label:n,icon:this.linktype==="social"?`logo-${this.getSocialSource(o)}`:"call"})}));return e.length?e:null}render(){return i("ul",{key:"6c7bb09e2b74d4847ff02266caba4b8c4c217b3f",class:Q+` ${Q}--${this.layout}`},this.constructLinkObject()?.map(((t,e)=>i("li",{class:`${Q}-item`,key:e},i("a",{class:`${Q}-link`,href:t.url,target:"_blank",rel:"noopener noreferrer"},this.showicons&&i("ion-icon",{name:t.icon}),t.label)))))}};Y.style=K;function tt(t){return sessionStorage.getItem(t)!==null}function et(t,e){sessionStorage.setItem(t,e)}function it(t,e,i){t.newsletterTimerStart=Date.now();t.newsletterTimerRemaining=e;t.newsletterTimer=setTimeout((()=>{i();et("newsletterPopupShown","true");t.newsletterTimer=null}),t.newsletterTimerRemaining)}function ot(t){if(t.newsletterTimer){clearTimeout(t.newsletterTimer);t.newsletterTimerRemaining-=Date.now()-t.newsletterTimerStart;t.newsletterTimer=null}}function nt(t,e){if(t.newsletterTimerRemaining>0){t.newsletterTimerStart=Date.now();t.newsletterTimer=setTimeout((()=>{e();et("newsletterPopupShown","true");t.newsletterTimer=null}),t.newsletterTimerRemaining)}}function st(){return tt("newsletterPopupShown")}function rt({event:t,modalState:e,contentName:i,toggleModal:o,setContentName:n,setSession:s}){if(t.clientY<=0&&!st()){if(e&&i!=="newsletter"){o();setTimeout((()=>{n("newsletter");o();s()}),300)}else{n("newsletter");o();s()}document.removeEventListener("mouseout",rt)}}function at(){return{newsletterTimer:null,newsletterTimerRemaining:0,newsletterTimerStart:0}}const ct=".iv-modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:9999}.iv-modal{background:#fff;border-radius:8px;box-shadow:0 4px 24px rgba(0, 0, 0, 0.18);padding:2rem;min-width:320px;max-width:90vw;max-height:90vh;overflow-y:auto;position:relative}.iv-modal-close{position:absolute;top:1rem;right:1rem;background:none;border:none;font-size:2rem;cursor:pointer;color:#333}.iv-modal-wishlist{margin-top:1rem}.iv-modal-wishlist-item{border-bottom:1px solid #eee;padding:1rem 0;display:flex;gap:1rem;align-items:center}.iv-modal-wishlist-field{font-size:1rem;color:#222}.iv-modal-wishlist-empty{text-align:center;color:#888;padding:2rem 0}";const lt="iv-modal";const dt=class{constructor(t){e(this,t)}newsletterpopuptrigger;newsletterpopuptimedelay;newsletterpopuptitle;newsletterpopuptext;newsletterpopupimage;newsletterpopupdisclaimer;modalState=false;contentName;newsletterTimerState=at();handleOpenModal(t){ot(this.newsletterTimerState);const{content:e}=t.detail;this.contentName=e;this.toggleModal()}componentWillLoad(){const t=Number(this.newsletterpopuptimedelay)||0;if(this.newsletterpopuptrigger==="time_delay"&&t>0&&!st()){it(this.newsletterTimerState,t,(()=>{this.contentName="newsletter";this.toggleModal()}))}if(this.newsletterpopuptrigger==="exit_intent"&&!st()){document.addEventListener("mouseout",(t=>{rt({event:t,modalState:this.modalState,contentName:this.contentName,toggleModal:this.toggleModal.bind(this),setContentName:t=>this.contentName=t,setSession:()=>sessionStorage.setItem("newsletterPopupShown","true")})}))}}toggleModal(){this.modalState=!this.modalState;if(!this.modalState){ot(this.newsletterTimerState);if(this.contentName!=="newsletter"&&this.newsletterTimerState.newsletterTimerRemaining>0&&!st()){nt(this.newsletterTimerState,(()=>{this.contentName="newsletter";this.toggleModal()}))}}}render(){return i(o,{key:"ba41c95a7490fbc114e830d30048c978c4948601"},this.modalState&&i("div",{key:"71bc9573d326955e8218fe5cb771b306befdadae",class:`${lt}-overlay`,role:"dialog","aria-modal":"true","aria-labelledby":"iv-modal-title","aria-describedby":`${lt}-content`,onClick:()=>this.toggleModal()},i("div",{key:"2b483d3849d64d234a96b3269769e02fc20e0af3",class:lt,onClick:t=>t.stopPropagation()},i("iv-button",{key:"9cd3934adc78036546aa572e542df46a8f722692",class:`${lt}-close`,"aria-label":"Close modal",onClick:()=>this.toggleModal()},"×"),this.contentName==="wishlist"?i("iv-wishlist-view",null):this.contentName&&i("slot",{name:this.contentName}))))}};dt.style=ct;const ht=":host{display:block}";const bt="iv-newsletter";const ut=class{constructor(t){e(this,t);this.newsletterSuccess=s(this,"newsletterSuccess");this.newsletterFail=s(this,"newsletterFail")}formsubmitbtntext="Subscribe";formsuccessmessage;formfailuremessage;formplaceholdertext;formlabeltext;formstackbutton;formtitletag="h2";formtitletext;formdescriptiontext;includeloadingspinner;email="";formFeedback="";status="idle";newsletterSuccess;newsletterFail;getEffectiveSuccessMessage(){return this.formsuccessmessage||window.newsletterSuccessMessage}submitHandler(t){t.preventDefault();this.status="submitting";if(!l(this.email)){this.formFeedback="Please enter a valid email address.";this.status="error";this.newsletterFail.emit({reason:"invalid-email"});return}const e=this.getEffectiveSuccessMessage();const i=t.target;const o=i.querySelector('[name="contact[email]"]').value;const n=new FormData;n.append("contact[email]",o);n.append("form_type","customer");n.append("utf8","✓");fetch("/contact",{method:"POST",body:n}).then((t=>t.text())).then((t=>{if(e&&t.includes(this.formsuccessmessage)){this.status="success";this.formFeedback=e;this.newsletterSuccess.emit({email:o});i.reset()}else{throw new Error(this.formfailuremessage||"There was a problem. Please try again.")}})).catch((t=>{this.status="error";this.formFeedback=this.formfailuremessage||t.message;this.newsletterFail.emit({reason:"shopify-failure",error:this.formFeedback,email:o})}))}render(){const t=this.formtitletag;return i("div",{key:"afead480b67fc8c9bc6a4914ee7592b34b2be82d",class:`${bt} status-${this.status} ${this.includeloadingspinner&&`${bt}--with-spinner`}`},(this.formtitletext||this.formdescriptiontext)&&i("div",{key:"177af6be94a97899745de5b4a2cfc6717082214e",class:`${bt}-header`},this.formtitletext&&i(t,{key:"94fb25e4191d77db961277cb6a1f2b2c0c005558",class:`${bt}-title`},this.formtitletext),this.formdescriptiontext&&i("p",{key:"bea621b6550b21d85ace5e3199db9eeaea250de3",class:`${bt}-description`},this.formdescriptiontext)),i("form",{key:"fde75a31c2766a62cfde6d188b06fb783742551f",class:`${bt}-form`,method:"post",onSubmit:t=>this.submitHandler(t),"accept-charset":"UTF-8","aria-busy":this.status==="submitting","aria-live":"polite"},i("input",{key:"9a0c2c0deca001af3cfa65c6021e9a6743c132c3",type:"hidden",name:"form_type",value:"customer"}),i("input",{key:"b10601ba0766a987b8e92de0ec76a58c4c2b1f02",type:"hidden",name:"utf8",value:"✓"}),this.formlabeltext&&i("label",{key:"b818c7823e323c2d36157a9f1e7c6a280a34e9c3",htmlFor:"ContactForm-email",class:`${bt}-form-label`},this.formlabeltext),i("div",{key:"751577f0107696a8f1cba5ba198cc95987e9cc62",class:`${bt}-form-row${this.formstackbutton?` ${bt}-form-row--stacked`:""}`},i("input",{key:"93efc3edcf9e8f0a83407c9852a0fa1aca25e3e2",id:"ContactForm-email",class:`${bt}-form-input`,type:"email",name:"contact[email]",...this.formplaceholdertext?{placeholder:this.formplaceholdertext}:{},onInput:t=>this.email=t.target.value,value:this.email,required:true,"aria-required":"true","aria-label":this.formlabeltext||"Email",autoComplete:"email"}),i("button",{key:"9b020666431f39766e6ec5d160f28f9618c61761",class:`${bt}-form-button`,type:"submit",disabled:this.status==="submitting","aria-disabled":this.status==="submitting"},this.formsubmitbtntext))),this.includeloadingspinner&&this.status==="submitting"&&i("iv-spinner",{key:"43d79cb04b6fab3d280b13c11d102698f9ec008b",show:true}),this.formFeedback&&i("div",{key:"a71af40ada9c72da2fed3142ace6ed29a0fd6d7b",class:`${bt}-form-feedback`,"aria-live":"polite"},i("p",{key:"4add76f7f45a806949c0806f1cc09ab467d911ab",class:`${bt}-form-feedback`},this.formFeedback)))}};ut.style=ht;const vt="iv-sidebar .iv-sidebar{position:fixed;top:0;right:0;left:auto;height:100%;background-color:#fff;box-shadow:2px 0 5px rgba(0, 0, 0, 0.1);transform:translateX(100%);transition:transform 0.3s ease-in-out;z-index:1001;padding:var(--iv-sidebar-padding-top, 2rem) var(--iv-sidebar-padding-right, 2rem) var(--iv-sidebar-padding-bottom, 2rem) var(--iv-sidebar-padding-left, 2rem);overflow-y:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;width:40%}@media (max-width: 1024px){iv-sidebar .iv-sidebar{width:95%}}iv-sidebar .iv-sidebar.close{font-size:2.25rem;font-weight:400;pointer-events:none;user-select:none;line-height:1;color:inherit;display:flex;align-items:center;justify-content:center}iv-sidebar .iv-sidebar.open{transform:translateX(0)}iv-sidebar .iv-sidebar-close-button{position:absolute;top:1rem;right:1rem;background:none;border:none;color:#111;font-size:2.25rem;font-weight:400;line-height:1;cursor:pointer;padding:0;width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;z-index:1002;transition:color 0.2s}iv-sidebar .iv-sidebar-close-button:hover{color:#000}iv-sidebar .iv-sidebar-close-button:focus{outline:none;color:#000}iv-sidebar .iv-sidebar-overlay{position:fixed;top:0;left:0;width:100%;height:100%;backdrop-filter:blur(8px);background-color:rgba(14, 13, 13, 0.5019607843);opacity:0;visibility:hidden;transition:opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;z-index:1000}iv-sidebar .iv-sidebar-overlay.open{opacity:1;visibility:visible}";const ft="iv-sidebar";const mt=class{constructor(t){e(this,t)}newsletterpopuptrigger;newsletterpopuptimedelay;newsletterpopuptitle;newsletterpopuptext;newsletterpopupimage;newsletterpopupdisclaimer;sidebarState=false;contentName;newsletterTimerState=at();handleopenSidebar(t){ot(this.newsletterTimerState);const{content:e}=t.detail;this.contentName=e;this.toggleSidebar()}componentWillLoad(){const t=Number(this.newsletterpopuptimedelay)||0;if(this.newsletterpopuptrigger==="time_delay"&&t>0&&!st()){it(this.newsletterTimerState,t,(()=>{this.contentName="newsletter";this.toggleSidebar()}))}if(this.newsletterpopuptrigger==="exit_intent"&&!st()){document.addEventListener("mouseout",(t=>{rt({event:t,modalState:this.sidebarState,contentName:this.contentName,toggleModal:this.toggleSidebar.bind(this),setContentName:t=>this.contentName=t,setSession:()=>sessionStorage.setItem("newsletterPopupShown","true")})}))}}toggleSidebar(){this.sidebarState=!this.sidebarState;if(!this.sidebarState){ot(this.newsletterTimerState);if(this.contentName!=="newsletter"&&this.newsletterTimerState.newsletterTimerRemaining>0&&!st()){nt(this.newsletterTimerState,(()=>{this.contentName="newsletter";this.toggleSidebar()}))}}}render(){return[i("div",{key:"271c6ba4d3c8240840bd345fabe5e1cd9cc6c506",class:`${ft} ${this.sidebarState&&"open"}`,role:"complementary","aria-labelledby":"iv-sidebar-title"},i("iv-button",{key:"40eaa50a4c128ef4386c6dfa561ec87decb8f89d",class:`${ft}-close`,"aria-label":"Close modal",onClick:()=>this.toggleSidebar()},"×"),i("slot",{key:"63c9a7c90458e2714c591925eba1a3fa0f90cd8e",name:"header"}),this.contentName==="wishlist"?i("iv-wishlist-view",null):this.contentName&&i("slot",{name:this.contentName}),i("slot",{key:"2473810ba26a8ffa8986af92a393fef6524eec32",name:"footer"})),i("div",{key:"10915565e6ead3eff6f9e564b96c8a9c23c40219",class:`${ft}-overlay ${this.sidebarState&&"open"}`,onClick:()=>this.toggleSidebar()})]}};mt.style=vt;const pt=".iv-spinner{display:flex;align-items:center;justify-content:center;min-height:2.5rem}.iv-spinner-circle,.spinner{width:2rem;height:2rem;border:3px solid #e0e0e0;border-top:3px solid #0078d4;border-radius:50%;animation:iv-spinner-spin 0.8s linear infinite;display:inline-block}.iv-spinner-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}@keyframes iv-spinner-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";const gt="iv-spinner";const wt=class{constructor(t){e(this,t)}show=false;render(){return this.show?i("div",{class:gt,role:"status","aria-live":"polite","aria-busy":"true"},i("span",{class:`${gt}-circle`,"aria-hidden":"true"}),i("span",{class:`${gt}-sr`},"Loading...")):null}};wt.style=pt;const yt=".iv-two-col-media{display:grid;grid-template-columns:1fr 1fr;gap:var(--iv-two-col-media-gap, 2rem);min-height:300px}@media (max-width: 900px){.iv-two-col-media{grid-template-columns:1fr}.iv-two-col-media.order-1{order:1}.iv-two-col-media.order-2{order:2}}@media (max-width: 600px){.iv-two-col-media.hide-for-mobile{display:none !important}}.iv-two-col-media.has-media{min-height:240px;background:#f5f5f5;position:relative;overflow:hidden}.iv-two-col-media .layout-stabilizer{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;width:100%;position:relative;z-index:2}.iv-two-col-media.has-media img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:1}.iv-two-col-media.has-media .layout-stabilizer>*:not(img){position:relative;z-index:2}.iv-two-col-media.has-media img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:1}.iv-two-col-media.has-media .media-overlay{position:relative;z-index:2;display:flex;flex-direction:column;height:100%;width:100%;justify-content:var(--iv-two-col-media-vertical, center);align-items:var(--iv-two-col-media-horizontal, center);padding:2rem}.iv-two-col-media.hide-column{display:none}";const kt="iv-two-col-media";const xt=class{constructor(t){e(this,t)}mobilebehaviour;whichcolumn;stackorder;verticalalign;horizontalalign;gap;hasMediaCol1=false;hasMediaCol2=false;leftSlotRef;rightSlotRef;get hideForMobile(){return this.mobilebehaviour==="hide_both"}componentDidLoad(){const t=this.leftSlotRef;const e=this.rightSlotRef;this.hasMediaCol1=t?.assignedElements().some((t=>t.tagName==="IMG"||t.querySelector("img")));this.hasMediaCol2=e?.assignedElements().some((t=>t.tagName==="IMG"||t.querySelector("img")))}render(){return i("section",{key:"c760219b256e631e8156672b6ddac69aec0bede9",class:h(kt,this.hideForMobile&&"hide-for-mobile"),style:{gap:this.gap}},i("div",{key:"1eadf665b2da628a6c399ac0c1d5c3ea33cee0f3",class:h(kt,this?.whichcolumn==="col-1"&&"hide-column",this.hasMediaCol1&&"has-media",this.stackorder==="col-1"?"order-1":"order-2",`vertical-align-${this.verticalalign}`,`horizontal-align-${this.horizontalalign}`)},i("div",{key:"60daa7db0684d93bd371c6f564a49b4c73f26af1",class:"layout-stabilizer"},i("slot",{key:"16dfa910139d3b0b83122d805bce6076a7b2d9af",name:"col-1",ref:t=>this.leftSlotRef=t}))),i("div",{key:"d55ad541be939f2f70902ab5d6db8c9723ee3bca",class:h(kt,this?.whichcolumn==="col-2"&&"hide-column",this.hasMediaCol2&&"has-media",this.stackorder==="col-2"?"order-1":"order-2",`vertical-align-${this.verticalalign}`,`horizontal-align-${this.horizontalalign}`)},i("div",{key:"59e7f0669fb0d982f1c287c18eca8be2e260829e",class:"layout-stabilizer"},i("slot",{key:"e8f6b349decf55eec82f227517b01406a7cf3d1b",name:"col-2",ref:t=>this.rightSlotRef=t}))))}};xt.style=yt;const $t=":host{display:block}";const zt="iv-wishlist-view";const Ct=class{constructor(t){e(this,t)}render(){return i("div",{key:"5b3d6847d5b710be643a6e96238e1d6320b0c306",class:zt},i("ul",{key:"e310393c56cc2e3aa56cdaccd74b332a30a4a0e8",class:`${zt}-list`},r.wishlist.length===0?i("li",{class:`${zt}-empty`},r.wishlistLabels.emptyMessage):r.wishlist.map(((t,e)=>i("li",{class:`${zt}-item`,key:t.id||e},i("div",{class:`${zt}-fields`},Object.entries(t).map((([t,e])=>i("div",{class:`${zt}-field ${zt}-field-${t}`},e)))),i("div",{class:`${zt}-actions`},i("iv-button",{classmodifier:`${zt}-remove`,onClick:()=>a(t.id)},i("span",{class:"inner-button",innerHTML:r.wishlistLabels.removeLabel})),i("iv-button",{classmodifier:`${zt}-add-to-cart`,onClick:()=>u({id:b(t.id)})},i("span",{class:"inner-button",innerHTML:r.wishlistLabels.addToCartLabel}))))))))}};Ct.style=$t;export{E as ion_icon,R as iv_accordion,G as iv_button,B as iv_event_button,Z as iv_footer,Y as iv_link_list,dt as iv_modal,ut as iv_newsletter,mt as iv_sidebar,wt as iv_spinner,xt as iv_two_col_media,Ct as iv_wishlist_view};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{g as t,r as e,h as i,H as o,c as n,d as s,a as r,e as a}from"./p-Cb3Nnjkn.js";import{r as c,i as l,a as d,c as h,g as b}from"./p-CL9gCgzW.js";import{a as u}from"./p-DujflZ2b.js";let v;const f=()=>{if(typeof window==="undefined"){return new Map}else{if(!v){const t=window;t.Ionicons=t.Ionicons||{};v=t.Ionicons.map=t.Ionicons.map||new Map}return v}};const m=t=>{let e=w(t.src);if(e){return e}e=g(t.name,t.icon,t.mode,t.ios,t.md);if(e){return p(e,t)}if(t.icon){e=w(t.icon);if(e){return e}e=w(t.icon[t.mode]);if(e){return e}}return null};const p=(e,i)=>{const o=f().get(e);if(o){return o}try{return t(`svg/${e}.svg`)}catch(t){console.log("e",t);console.warn(`[Ionicons Warning]: Could not load icon with name "${e}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,i)}};const g=(t,e,i,o,n)=>{i=(i&&x(i))==="ios"?"ios":"md";if(o&&i==="ios"){t=x(o)}else if(n&&i==="md"){t=x(n)}else{if(!t&&e&&!y(e)){t=e}if(k(t)){t=x(t)}}if(!k(t)||t.trim()===""){return null}const s=t.replace(/[a-z]|-|\d/gi,"");if(s!==""){return null}return t};const w=t=>{if(k(t)){t=t.trim();if(y(t)){return t}}return null};const y=t=>t.length>0&&/(\/|\.)/.test(t);const k=t=>typeof t==="string";const x=t=>t.toLowerCase();const $=(t,e=[])=>{const i={};e.forEach((e=>{if(t.hasAttribute(e)){const o=t.getAttribute(e);if(o!==null){i[e]=t.getAttribute(e)}t.removeAttribute(e)}}));return i};const z=t=>{if(t){if(t.dir!==""){return t.dir.toLowerCase()==="rtl"}}return(document===null||document===void 0?void 0:document.dir.toLowerCase())==="rtl"};const C=t=>{const e=document.createElement("div");e.innerHTML=t;for(let t=e.childNodes.length-1;t>=0;t--){if(e.childNodes[t].nodeName.toLowerCase()!=="svg"){e.removeChild(e.childNodes[t])}}const i=e.firstElementChild;if(i&&i.nodeName.toLowerCase()==="svg"){const t=i.getAttribute("class")||"";i.setAttribute("class",(t+" s-ion-icon").trim());if(S(i)){return e.innerHTML}}return""};const S=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script"){return false}for(let e=0;e<t.attributes.length;e++){const i=t.attributes[e].name;if(k(i)&&i.toLowerCase().indexOf("on")===0){return false}}for(let e=0;e<t.childNodes.length;e++){if(!S(t.childNodes[e])){return false}}}return true};const _=t=>t.startsWith("data:image/svg+xml");const M=t=>t.indexOf(";utf8,")!==-1;const j=new Map;const T=new Map;let L;function P(t){const e="";j.set(t,e);return e}const N=(t,e)=>{const i=T.get(t);if(i){return i}if(typeof fetch!=="undefined"&&typeof document!=="undefined"){if(_(t)&&M(t)){return Promise.resolve(I(t))}return D(t,e)}return Promise.resolve(P(t))};function I(t){if(!L){L=new DOMParser}const e=L.parseFromString(t,"text/html");const i=e.querySelector("svg");if(i){j.set(t,i.outerHTML);return i.outerHTML}throw new Error(`Could not parse svg from ${t}`)}function D(t,e){const i=fetch(t).then((i=>i.text().then((i=>{if(i&&e!==false){i=C(i)}const o=i||"";j.set(t,o);return o})).catch((()=>P(t))))).catch((()=>P(t)));T.set(t,i);return i}const F=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}";const E=class{constructor(t){e(this,t);this.iconName=null;this.inheritedAttributes={};this.didLoadIcon=false;this.isVisible=false;this.mode=O();this.lazy=false;this.sanitize=true}componentWillLoad(){this.inheritedAttributes=$(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=true;this.loadIcon()}))}componentDidLoad(){if(!this.didLoadIcon){this.loadIcon()}}disconnectedCallback(){if(this.io){this.io.disconnect();this.io=undefined}}waitUntilVisible(t,e,i){const o=Boolean(this.lazy&&typeof window!=="undefined"&&window.IntersectionObserver);if(!o){return i()}const n=this.io=new window.IntersectionObserver((t=>{if(t[0].isIntersecting){n.disconnect();this.io=undefined;i()}}),{rootMargin:e});n.observe(t)}loadIcon(){if(this.isVisible){const t=m(this);if(t){if(j.has(t)){this.svgContent=j.get(t)}else{N(t,this.sanitize).then((()=>this.svgContent=j.get(t)))}this.didLoadIcon=true}}this.iconName=g(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:t,iconName:e,inheritedAttributes:n,el:s}=this;const r=this.mode||"md";const a=e?(e.includes("arrow")||e.includes("chevron"))&&t!==false:false;const c=t||a;return i(o,Object.assign({key:"0578c899781ca145dd8205acd9670af39b57cf2e",role:"img",class:Object.assign(Object.assign({[r]:true},X(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":c,"icon-rtl":c&&z(s)})},n),this.svgContent?i("div",{class:"icon-inner",innerHTML:this.svgContent}):i("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return n(this)}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}};const O=()=>typeof document!=="undefined"&&document.documentElement.getAttribute("mode")||"md";const X=t=>t?{"ion-color":true,[`ion-color-${t}`]:true}:null;E.style=F;const W=":host{display:block}";const H="iv-accordion";const R=class{constructor(t){e(this,t)}labels;allowmultiple;startopen;dropdownicon;openPanels=[];componentWillLoad(){this.openPanels=this.startopen?[0]:[]}togglePanel(t){if(this.allowmultiple){this.openPanels=this.openPanels.includes(t)?this.openPanels.filter((e=>e!==t)):[...this.openPanels,t]}else{this.openPanels=this.openPanels.includes(t)?[]:[t]}}render(){return i("div",{key:"9047082c09a26440770df8f12b107495dcb193cf",class:H},c(this.labels).map(((t,e)=>i("div",{class:"accordion-panel",key:e},i("button",{class:{copy:true,"accordion-header":true,open:this.openPanels.includes(e)},onClick:()=>this.togglePanel(e),"aria-expanded":this.openPanels.includes(e),"aria-controls":`panel-content-${e}`,id:`panel-header-${e}`,type:"button"},t,this.dropdownicon&&i("ion-icon",{class:"accordion-icon",name:this.dropdownicon})),i("div",{id:`panel-content-${e}`,class:{"accordion-content":true,open:this.openPanels.includes(e)},role:"region","aria-labelledby":`panel-header-${e}`,hidden:!this.openPanels.includes(e)},i("slot",{name:`panel-${e}`}))))))}};R.style=W;const A=".iv-button{display:var(--iv-button-display, inline-flex);align-items:var(--iv-button-align, center);justify-content:var(--iv-button-justify, center);gap:var(--iv-button-gap, 0.5rem);box-sizing:border-box;padding:var(--iv-button-padding, 0.75rem 1rem);background:var(--iv-button-bg, transparent);color:var(--iv-button-color, inherit);border:var(--iv-button-border, none);border-radius:var(--iv-button-radius, 0);font:inherit;font-size:var(--iv-button-font-size, inherit);font-weight:var(--iv-button-font-weight, 500);line-height:var(--iv-button-line-height, 1.2);text-decoration:none;cursor:pointer;position:relative;min-width:var(--iv-button-min-width, unset);min-height:var(--iv-button-min-height, 2.5rem);box-shadow:var(--iv-button-shadow, none);transition:var(--iv-button-transition, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease);-webkit-appearance:none;appearance:none}.iv-button:hover:not(.disabled):not([disabled]),.iv-button:focus-visible:not(.disabled):not([disabled]){background:var(--iv-button-hover-bg, var(--iv-button-bg, transparent));color:var(--iv-button-hover-color, var(--iv-button-color, inherit));border:var(--iv-button-hover-border, var(--iv-button-border, none));box-shadow:var(--iv-button-hover-shadow, var(--iv-button-shadow, none));outline:var(--iv-button-focus-outline, none)}.iv-button:active:not(.disabled):not([disabled]){background:var(--iv-button-active-bg, var(--iv-button-hover-bg, var(--iv-button-bg, transparent)));color:var(--iv-button-active-color, var(--iv-button-hover-color, var(--iv-button-color, inherit)));border:var(--iv-button-active-border, var(--iv-button-hover-border, var(--iv-button-border, none)));box-shadow:var(--iv-button-active-shadow, var(--iv-button-hover-shadow, var(--iv-button-shadow, none)))}.iv-button.disabled,.iv-button[disabled]{cursor:not-allowed;opacity:var(--iv-button-disabled-opacity, 0.5);background:var(--iv-button-disabled-bg, var(--iv-button-bg, transparent));color:var(--iv-button-disabled-color, var(--iv-button-color, inherit));border:var(--iv-button-disabled-border, var(--iv-button-border, none));box-shadow:var(--iv-button-disabled-shadow, none)}.iv-button.variant-card,.iv-card-add-to-cart-btn.iv-button{--iv-button-bg:var(--iv-card-button-bg, transparent);--iv-button-border:var(--iv-card-button-border, none);--iv-button-color:var(--iv-card-button-color, inherit);--iv-button-hover-bg:var(--iv-card-button-hover-bg, var(--iv-button-bg));--iv-button-hover-border:var(--iv-card-button-hover-border, var(--iv-button-border));--iv-button-hover-color:var(--iv-card-button-hover-color, var(--iv-button-color))}.iv-button:focus-visible:not(.disabled):not([disabled]){box-shadow:var(--iv-button-focus-ring, var(--iv-button-hover-shadow, var(--iv-button-shadow, none)))}.iv-button--sm{--iv-button-padding:var(--iv-button-sm-padding, 0.5rem 0.75rem);font-size:var(--iv-button-sm-font-size, 0.875rem)}.iv-button--lg{--iv-button-padding:var(--iv-button-lg-padding, 1rem 1.25rem);font-size:var(--iv-button-lg-font-size, 1.125rem)}.iv-button>svg,.iv-button .icon{width:var(--iv-button-icon-size, 1em);height:var(--iv-button-icon-size, 1em);flex:0 0 auto}@media (prefers-reduced-motion: reduce){.iv-button{transition:none}}";const G=class{constructor(t){e(this,t);this.action=s(this,"action")}type="button";classmodifier;eventname;eventdetail;buttonClick;action;get el(){return n(this)}handleClick=t=>{if(this.buttonClick)this.buttonClick(t);if(this.eventname){const t=this.eventdetail||undefined;this.el.dispatchEvent(new CustomEvent(this.eventname,{bubbles:true,detail:t,composed:true}));this.action.emit(t)}};render(){return i("button",{key:"3b8eb05a504676795eb86bec9b645866630b9023",class:`iv-button ${r.loading?"disabled":undefined} ${this.classmodifier||""}`,type:this.type,disabled:r.loading,onClick:this.handleClick},i("slot",{key:"4b7cea68ef1dfe921dc15feeb54de66f845551c7"}))}};G.style=A;const U=":host{display:block}";const q="iv-event-button";const V=class{constructor(t){e(this,t);this.action=s(this,"action")}eventname;eventdetail;buttontext="Click Me";get host(){return n(this)}action;handleClick=()=>{this.action.emit({eventname:this.eventname,eventdetail:this.eventdetail});if(this.eventname){const t=new CustomEvent(this.eventname,{bubbles:true,composed:true,detail:{content:this.eventdetail}});this.host.dispatchEvent(t)}};render(){return i("button",{key:"98d2d89f17b8f729dfed17e6d2796326bd473569",class:q,onClick:this.handleClick},i("span",{key:"1a3bce85a0a3738c99061be783aeff8f9a387c0b",class:`${q}-text`},i("slot",{key:"831422c3f7ecc8922d24affd65b1a60e2c04cea1"})))}};V.style=U;const B=".iv-footer{display:grid;gap:2rem}.iv-footer .footer-social-links{grid-area:social}.iv-footer .footer-contact-links{grid-area:contact}.iv-footer .footer-newsletter-signup{grid-area:newsletter}.iv-footer .footer-menu{grid-area:menu}.iv-footer .footer-boilerplate{grid-area:boilerplate}.iv-footer .footer-payment-icons{grid-area:payment}";const Z="iv-footer";const J=class{constructor(t){e(this,t)}gridtemplateareas;get host(){return n(this)}blockElements=[];get getAreas(){return!!this.gridtemplateareas}get test(){return this.getAreas?this.gridtemplateareas.split(",").map((t=>`"${t.trim()}"`)).join(" "):""}render(){return i("footer",{key:"fd9868c22ce1e5e8926cb739735eada4d08f0931",class:Z,style:{gridTemplateAreas:this.test}},i("slot",{key:"35307299f77a40d5803c0a31c9161a7e527eca16"}))}};J.style=B;const K=":host{display:block}";const Q="iv-link-list";const Y=class{constructor(t){e(this,t)}linktype="social";showicons=false;links;layout="vertical";getSocialSource(t){try{const e=new URL(t);const i=e.hostname.replace("www.","");return i.split(".")[0]}catch{return t}}getCustomLabel(t){const[e,i]=t.split("|");return{url:e,customLabel:i}}constructLinkObject(){const t=c(this.links);const e=[];t?.forEach(((t,i)=>{let o=t;let n="";let s="";if(this.linktype==="contact"&&t.includes("|")){const e=this.getCustomLabel(t);o=e.url.trim();s=e.customLabel.trim()}if(l(t))t=`mailto:${t}`;if(d(t))t=`tel:${t}`;n=s||(this.linktype==="social"?this.getSocialSource(o):o);e.push({url:o,label:n,icon:this.linktype==="social"?`logo-${this.getSocialSource(o)}`:"call"})}));return e.length?e:null}render(){return i("ul",{key:"6c7bb09e2b74d4847ff02266caba4b8c4c217b3f",class:Q+` ${Q}--${this.layout}`},this.constructLinkObject()?.map(((t,e)=>i("li",{class:`${Q}-item`,key:e},i("a",{class:`${Q}-link`,href:t.url,target:"_blank",rel:"noopener noreferrer"},this.showicons&&i("ion-icon",{name:t.icon}),t.label)))))}};Y.style=K;function tt(t){return sessionStorage.getItem(t)!==null}function et(t,e){sessionStorage.setItem(t,e)}function it(t,e,i){t.newsletterTimerStart=Date.now();t.newsletterTimerRemaining=e;t.newsletterTimer=setTimeout((()=>{i();et("newsletterPopupShown","true");t.newsletterTimer=null}),t.newsletterTimerRemaining)}function ot(t){if(t.newsletterTimer){clearTimeout(t.newsletterTimer);t.newsletterTimerRemaining-=Date.now()-t.newsletterTimerStart;t.newsletterTimer=null}}function nt(t,e){if(t.newsletterTimerRemaining>0){t.newsletterTimerStart=Date.now();t.newsletterTimer=setTimeout((()=>{e();et("newsletterPopupShown","true");t.newsletterTimer=null}),t.newsletterTimerRemaining)}}function st(){return tt("newsletterPopupShown")}function rt({event:t,modalState:e,contentName:i,toggleModal:o,setContentName:n,setSession:s}){if(t.clientY<=0&&!st()){if(e&&i!=="newsletter"){o();setTimeout((()=>{n("newsletter");o();s()}),300)}else{n("newsletter");o();s()}document.removeEventListener("mouseout",rt)}}function at(){return{newsletterTimer:null,newsletterTimerRemaining:0,newsletterTimerStart:0}}const ct=".iv-modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:9999}.iv-modal{background:#fff;border-radius:8px;box-shadow:0 4px 24px rgba(0, 0, 0, 0.18);padding:2rem;min-width:320px;max-width:90vw;max-height:90vh;overflow-y:auto;position:relative}.iv-modal-close{position:absolute;top:1rem;right:1rem;background:none;border:none;font-size:2rem;cursor:pointer;color:#333}.iv-modal-wishlist{margin-top:1rem}.iv-modal-wishlist-item{border-bottom:1px solid #eee;padding:1rem 0;display:flex;gap:1rem;align-items:center}.iv-modal-wishlist-field{font-size:1rem;color:#222}.iv-modal-wishlist-empty{text-align:center;color:#888;padding:2rem 0}";const lt="iv-modal";const dt=class{constructor(t){e(this,t)}newsletterpopuptrigger;newsletterpopuptimedelay;newsletterpopuptitle;newsletterpopuptext;newsletterpopupimage;newsletterpopupdisclaimer;modalState=false;contentName;newsletterTimerState=at();handleOpenModal(t){ot(this.newsletterTimerState);const{content:e}=t.detail;this.contentName=e;this.toggleModal()}componentWillLoad(){const t=Number(this.newsletterpopuptimedelay)||0;if(this.newsletterpopuptrigger==="time_delay"&&t>0&&!st()){it(this.newsletterTimerState,t,(()=>{this.contentName="newsletter";this.toggleModal()}))}if(this.newsletterpopuptrigger==="exit_intent"&&!st()){document.addEventListener("mouseout",(t=>{rt({event:t,modalState:this.modalState,contentName:this.contentName,toggleModal:this.toggleModal.bind(this),setContentName:t=>this.contentName=t,setSession:()=>sessionStorage.setItem("newsletterPopupShown","true")})}))}}toggleModal(){this.modalState=!this.modalState;if(!this.modalState){ot(this.newsletterTimerState);if(this.contentName!=="newsletter"&&this.newsletterTimerState.newsletterTimerRemaining>0&&!st()){nt(this.newsletterTimerState,(()=>{this.contentName="newsletter";this.toggleModal()}))}}}render(){return i(o,{key:"ba41c95a7490fbc114e830d30048c978c4948601"},this.modalState&&i("div",{key:"71bc9573d326955e8218fe5cb771b306befdadae",class:`${lt}-overlay`,role:"dialog","aria-modal":"true","aria-labelledby":"iv-modal-title","aria-describedby":`${lt}-content`,onClick:()=>this.toggleModal()},i("div",{key:"2b483d3849d64d234a96b3269769e02fc20e0af3",class:lt,onClick:t=>t.stopPropagation()},i("iv-button",{key:"9cd3934adc78036546aa572e542df46a8f722692",class:`${lt}-close`,"aria-label":"Close modal",onClick:()=>this.toggleModal()},"×"),this.contentName==="wishlist"?i("iv-wishlist-view",null):this.contentName&&i("slot",{name:this.contentName}))))}};dt.style=ct;const ht=":host{display:block}";const bt="iv-newsletter";const ut=class{constructor(t){e(this,t);this.newsletterSuccess=s(this,"newsletterSuccess");this.newsletterFail=s(this,"newsletterFail")}formsubmitbtntext="Subscribe";formsuccessmessage;formfailuremessage;formplaceholdertext;formlabeltext;formstackbutton;formtitletag="h2";formtitletext;formdescriptiontext;includeloadingspinner;email="";formFeedback="";status="idle";newsletterSuccess;newsletterFail;getEffectiveSuccessMessage(){return this.formsuccessmessage||window.newsletterSuccessMessage}submitHandler(t){t.preventDefault();this.status="submitting";if(!l(this.email)){this.formFeedback="Please enter a valid email address.";this.status="error";this.newsletterFail.emit({reason:"invalid-email"});return}const e=this.getEffectiveSuccessMessage();const i=t.target;const o=i.querySelector('[name="contact[email]"]').value;const n=new FormData;n.append("contact[email]",o);n.append("form_type","customer");n.append("utf8","✓");fetch("/contact",{method:"POST",body:n}).then((t=>t.text())).then((t=>{if(e&&t.includes(this.formsuccessmessage)){this.status="success";this.formFeedback=e;this.newsletterSuccess.emit({email:o});i.reset()}else{throw new Error(this.formfailuremessage||"There was a problem. Please try again.")}})).catch((t=>{this.status="error";this.formFeedback=this.formfailuremessage||t.message;this.newsletterFail.emit({reason:"shopify-failure",error:this.formFeedback,email:o})}))}render(){const t=this.formtitletag;return i("div",{key:"afead480b67fc8c9bc6a4914ee7592b34b2be82d",class:`${bt} status-${this.status} ${this.includeloadingspinner&&`${bt}--with-spinner`}`},(this.formtitletext||this.formdescriptiontext)&&i("div",{key:"177af6be94a97899745de5b4a2cfc6717082214e",class:`${bt}-header`},this.formtitletext&&i(t,{key:"94fb25e4191d77db961277cb6a1f2b2c0c005558",class:`${bt}-title`},this.formtitletext),this.formdescriptiontext&&i("p",{key:"bea621b6550b21d85ace5e3199db9eeaea250de3",class:`${bt}-description`},this.formdescriptiontext)),i("form",{key:"fde75a31c2766a62cfde6d188b06fb783742551f",class:`${bt}-form`,method:"post",onSubmit:t=>this.submitHandler(t),"accept-charset":"UTF-8","aria-busy":this.status==="submitting","aria-live":"polite"},i("input",{key:"9a0c2c0deca001af3cfa65c6021e9a6743c132c3",type:"hidden",name:"form_type",value:"customer"}),i("input",{key:"b10601ba0766a987b8e92de0ec76a58c4c2b1f02",type:"hidden",name:"utf8",value:"✓"}),this.formlabeltext&&i("label",{key:"b818c7823e323c2d36157a9f1e7c6a280a34e9c3",htmlFor:"ContactForm-email",class:`${bt}-form-label`},this.formlabeltext),i("div",{key:"751577f0107696a8f1cba5ba198cc95987e9cc62",class:`${bt}-form-row${this.formstackbutton?` ${bt}-form-row--stacked`:""}`},i("input",{key:"93efc3edcf9e8f0a83407c9852a0fa1aca25e3e2",id:"ContactForm-email",class:`${bt}-form-input`,type:"email",name:"contact[email]",...this.formplaceholdertext?{placeholder:this.formplaceholdertext}:{},onInput:t=>this.email=t.target.value,value:this.email,required:true,"aria-required":"true","aria-label":this.formlabeltext||"Email",autoComplete:"email"}),i("button",{key:"9b020666431f39766e6ec5d160f28f9618c61761",class:`${bt}-form-button`,type:"submit",disabled:this.status==="submitting","aria-disabled":this.status==="submitting"},this.formsubmitbtntext))),this.includeloadingspinner&&this.status==="submitting"&&i("iv-spinner",{key:"43d79cb04b6fab3d280b13c11d102698f9ec008b",show:true}),this.formFeedback&&i("div",{key:"a71af40ada9c72da2fed3142ace6ed29a0fd6d7b",class:`${bt}-form-feedback`,"aria-live":"polite"},i("p",{key:"4add76f7f45a806949c0806f1cc09ab467d911ab",class:`${bt}-form-feedback`},this.formFeedback)))}};ut.style=ht;const vt="iv-sidebar .iv-sidebar{position:fixed;top:0;right:0;left:auto;height:100%;background-color:#fff;box-shadow:2px 0 5px rgba(0, 0, 0, 0.1);transform:translateX(100%);transition:transform 0.3s ease-in-out;z-index:1001;padding:var(--iv-sidebar-padding-top, 2rem) var(--iv-sidebar-padding-right, 2rem) var(--iv-sidebar-padding-bottom, 2rem) var(--iv-sidebar-padding-left, 2rem);overflow-y:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;width:40%}@media (max-width: 1024px){iv-sidebar .iv-sidebar{width:95%}}iv-sidebar .iv-sidebar.close{font-size:2.25rem;font-weight:400;pointer-events:none;user-select:none;line-height:1;color:inherit;display:flex;align-items:center;justify-content:center}iv-sidebar .iv-sidebar.open{transform:translateX(0)}iv-sidebar .iv-sidebar-close-button{position:absolute;top:1rem;right:1rem;background:none;border:none;color:#111;font-size:2.25rem;font-weight:400;line-height:1;cursor:pointer;padding:0;width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;z-index:1002;transition:color 0.2s}iv-sidebar .iv-sidebar-close-button:hover{color:#000}iv-sidebar .iv-sidebar-close-button:focus{outline:none;color:#000}iv-sidebar .iv-sidebar-overlay{position:fixed;top:0;left:0;width:100%;height:100%;backdrop-filter:blur(8px);background-color:rgba(14, 13, 13, 0.5019607843);opacity:0;visibility:hidden;transition:opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;z-index:1000}iv-sidebar .iv-sidebar-overlay.open{opacity:1;visibility:visible}";const ft="iv-sidebar";const mt=class{constructor(t){e(this,t)}newsletterpopuptrigger;newsletterpopuptimedelay;newsletterpopuptitle;newsletterpopuptext;newsletterpopupimage;newsletterpopupdisclaimer;sidebarState=false;contentName;newsletterTimerState=at();handleopenSidebar(t){ot(this.newsletterTimerState);const{content:e}=t.detail;this.contentName=e;this.toggleSidebar()}componentWillLoad(){const t=Number(this.newsletterpopuptimedelay)||0;if(this.newsletterpopuptrigger==="time_delay"&&t>0&&!st()){it(this.newsletterTimerState,t,(()=>{this.contentName="newsletter";this.toggleSidebar()}))}if(this.newsletterpopuptrigger==="exit_intent"&&!st()){document.addEventListener("mouseout",(t=>{rt({event:t,modalState:this.sidebarState,contentName:this.contentName,toggleModal:this.toggleSidebar.bind(this),setContentName:t=>this.contentName=t,setSession:()=>sessionStorage.setItem("newsletterPopupShown","true")})}))}}toggleSidebar(){this.sidebarState=!this.sidebarState;if(!this.sidebarState){ot(this.newsletterTimerState);if(this.contentName!=="newsletter"&&this.newsletterTimerState.newsletterTimerRemaining>0&&!st()){nt(this.newsletterTimerState,(()=>{this.contentName="newsletter";this.toggleSidebar()}))}}}render(){return[i("div",{key:"271c6ba4d3c8240840bd345fabe5e1cd9cc6c506",class:`${ft} ${this.sidebarState&&"open"}`,role:"complementary","aria-labelledby":"iv-sidebar-title"},i("iv-button",{key:"40eaa50a4c128ef4386c6dfa561ec87decb8f89d",class:`${ft}-close`,"aria-label":"Close modal",onClick:()=>this.toggleSidebar()},"×"),i("slot",{key:"63c9a7c90458e2714c591925eba1a3fa0f90cd8e",name:"header"}),this.contentName==="wishlist"?i("iv-wishlist-view",null):this.contentName&&i("slot",{name:this.contentName}),i("slot",{key:"2473810ba26a8ffa8986af92a393fef6524eec32",name:"footer"})),i("div",{key:"10915565e6ead3eff6f9e564b96c8a9c23c40219",class:`${ft}-overlay ${this.sidebarState&&"open"}`,onClick:()=>this.toggleSidebar()})]}};mt.style=vt;const pt=".iv-spinner{display:flex;align-items:center;justify-content:center;min-height:2.5rem}.iv-spinner-circle,.spinner{width:2rem;height:2rem;border:3px solid #e0e0e0;border-top:3px solid #0078d4;border-radius:50%;animation:iv-spinner-spin 0.8s linear infinite;display:inline-block}.iv-spinner-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}@keyframes iv-spinner-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";const gt="iv-spinner";const wt=class{constructor(t){e(this,t)}show=false;render(){return this.show?i("div",{class:gt,role:"status","aria-live":"polite","aria-busy":"true"},i("span",{class:`${gt}-circle`,"aria-hidden":"true"}),i("span",{class:`${gt}-sr`},"Loading...")):null}};wt.style=pt;const yt=".iv-two-col-media{display:grid;grid-template-columns:1fr 1fr;gap:var(--iv-two-col-media-gap, 2rem);min-height:300px}@media (max-width: 900px){.iv-two-col-media{grid-template-columns:1fr}.iv-two-col-media.order-1{order:1}.iv-two-col-media.order-2{order:2}}@media (max-width: 600px){.iv-two-col-media.hide-for-mobile{display:none !important}}.iv-two-col-media.has-media{min-height:240px;background:#f5f5f5;position:relative;overflow:hidden}.iv-two-col-media .layout-stabilizer{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;width:100%;position:relative;z-index:2}.iv-two-col-media.has-media img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:1}.iv-two-col-media.has-media .layout-stabilizer>*:not(img){position:relative;z-index:2}.iv-two-col-media.has-media img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:1}.iv-two-col-media.has-media .media-overlay{position:relative;z-index:2;display:flex;flex-direction:column;height:100%;width:100%;justify-content:var(--iv-two-col-media-vertical, center);align-items:var(--iv-two-col-media-horizontal, center);padding:2rem}.iv-two-col-media.hide-column{display:none}";const kt="iv-two-col-media";const xt=class{constructor(t){e(this,t)}mobilebehaviour;whichcolumn;stackorder;verticalalign;horizontalalign;gap;hasMediaCol1=false;hasMediaCol2=false;leftSlotRef;rightSlotRef;get hideForMobile(){return this.mobilebehaviour==="hide_both"}componentDidLoad(){const t=this.leftSlotRef;const e=this.rightSlotRef;this.hasMediaCol1=t?.assignedElements().some((t=>t.tagName==="IMG"||t.querySelector("img")));this.hasMediaCol2=e?.assignedElements().some((t=>t.tagName==="IMG"||t.querySelector("img")))}render(){return i("section",{key:"c760219b256e631e8156672b6ddac69aec0bede9",class:h(kt,this.hideForMobile&&"hide-for-mobile"),style:{gap:this.gap}},i("div",{key:"1eadf665b2da628a6c399ac0c1d5c3ea33cee0f3",class:h(kt,this?.whichcolumn==="col-1"&&"hide-column",this.hasMediaCol1&&"has-media",this.stackorder==="col-1"?"order-1":"order-2",`vertical-align-${this.verticalalign}`,`horizontal-align-${this.horizontalalign}`)},i("div",{key:"60daa7db0684d93bd371c6f564a49b4c73f26af1",class:"layout-stabilizer"},i("slot",{key:"16dfa910139d3b0b83122d805bce6076a7b2d9af",name:"col-1",ref:t=>this.leftSlotRef=t}))),i("div",{key:"d55ad541be939f2f70902ab5d6db8c9723ee3bca",class:h(kt,this?.whichcolumn==="col-2"&&"hide-column",this.hasMediaCol2&&"has-media",this.stackorder==="col-2"?"order-1":"order-2",`vertical-align-${this.verticalalign}`,`horizontal-align-${this.horizontalalign}`)},i("div",{key:"59e7f0669fb0d982f1c287c18eca8be2e260829e",class:"layout-stabilizer"},i("slot",{key:"e8f6b349decf55eec82f227517b01406a7cf3d1b",name:"col-2",ref:t=>this.rightSlotRef=t}))))}};xt.style=yt;const $t=":host{display:block}";const zt="iv-wishlist-view";const Ct=class{constructor(t){e(this,t)}render(){return i("div",{key:"5b3d6847d5b710be643a6e96238e1d6320b0c306",class:zt},i("ul",{key:"e310393c56cc2e3aa56cdaccd74b332a30a4a0e8",class:`${zt}-list`},r.wishlist.length===0?i("li",{class:`${zt}-empty`},r.wishlistLabels.emptyMessage):r.wishlist.map(((t,e)=>i("li",{class:`${zt}-item`,key:t.id||e},i("div",{class:`${zt}-fields`},Object.entries(t).map((([t,e])=>i("div",{class:`${zt}-field ${zt}-field-${t}`},e)))),i("div",{class:`${zt}-actions`},i("iv-button",{classmodifier:`${zt}-remove`,onClick:()=>a(t.id)},i("span",{class:"inner-button",innerHTML:r.wishlistLabels.removeLabel})),i("iv-button",{classmodifier:`${zt}-add-to-cart`,onClick:()=>u({id:b(t.id)})},i("span",{class:"inner-button",innerHTML:r.wishlistLabels.addToCartLabel}))))))))}};Ct.style=$t;export{E as ion_icon,R as iv_accordion,G as iv_button,V as iv_event_button,J as iv_footer,Y as iv_link_list,dt as iv_modal,ut as iv_newsletter,mt as iv_sidebar,wt as iv_spinner,xt as iv_two_col_media,Ct as iv_wishlist_view};
|
|
2
|
+
//# sourceMappingURL=p-7e46d5b9.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,j as i,a,h as r}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,j as i,a,h as r}from"./p-Cb3Nnjkn.js";import{f as d}from"./p-DujflZ2b.js";import{p as s}from"./p-C9YXddZh.js";const c=".iv-dynamic-products{box-sizing:border-box;width:var(--iv-dynamic-products-width, 100%);max-width:var(--iv-dynamic-products-max-width, 100%);margin:var(--iv-dynamic-products-margin, 0);padding:var(--iv-dynamic-products-padding, 0);background:var(--iv-dynamic-products-bg, transparent);border:var(--iv-dynamic-products-border, none);border-radius:var(--iv-dynamic-products-radius, 0);box-shadow:var(--iv-dynamic-products-shadow, none);color:var(--iv-dynamic-products-color, inherit);--iv-layout-gap:var(--iv-dynamic-products-gap, 1.5rem)}.iv-dynamic-products-title{margin:var(--iv-dynamic-products-title-margin, 0 0 1rem 0);font-size:var(--iv-dynamic-products-title-font-size, clamp(1.125rem, 1vw + 1rem, 1.75rem));font-weight:var(--iv-dynamic-products-title-font-weight, 600);line-height:var(--iv-dynamic-products-title-line-height, 1.2);letter-spacing:var(--iv-dynamic-products-title-letter-spacing, normal)}.iv-dynamic-products-error,.iv-dynamic-products-empty{padding:var(--iv-dynamic-products-state-padding, 1rem);border:var(--iv-dynamic-products-state-border, none);background:var(--iv-dynamic-products-state-bg, transparent);color:var(--iv-dynamic-products-state-color, inherit);font-size:var(--iv-dynamic-products-state-font-size, 0.875rem);text-align:var(--iv-dynamic-products-state-text-align, center)}.iv-dynamic-products-products{width:100%;margin:var(--iv-dynamic-products-products-margin, 0);padding:var(--iv-dynamic-products-products-padding, 0)}.iv-layout--iv-dynamic-products-layout{--iv-layout-gap:var(--iv-dynamic-products-grid-gap, var(--iv-dynamic-products-gap, 1.5rem));align-items:var(--iv-dynamic-products-grid-align, stretch);justify-content:var(--iv-dynamic-products-grid-justify, flex-start)}.iv-dynamic-products .iv-card{margin:var(--iv-dynamic-products-card-margin, 0);--iv-card-padding:var(--iv-dynamic-products-card-padding, var(--iv-card-padding, 0))}@media (min-width: 40rem){.iv-dynamic-products{--iv-dynamic-products-gap:var(--iv-dynamic-products-gap-md, var(--iv-dynamic-products-gap, 1.5rem))}}@media (min-width: 64rem){.iv-dynamic-products{--iv-dynamic-products-gap:var(--iv-dynamic-products-gap-lg, var(--iv-dynamic-products-gap, 1.5rem))}}.iv-dynamic-products--scroll-x .iv-layout--iv-dynamic-products-layout{display:flex !important;overflow-x:auto;scrollbar-width:var(--iv-dynamic-products-scrollbar-width, thin);-webkit-overflow-scrolling:touch}.iv-dynamic-products--scroll-x .iv-layout--iv-dynamic-products-layout>*{flex:0 0 var(--iv-dynamic-products-scroll-item-width, 75%)}@media (prefers-reduced-motion: reduce){.iv-dynamic-products{scroll-behavior:auto}}";const o="iv-dynamic-products";const e=class{constructor(i){t(this,i)}type="CREATED_AT";limit=8;reversed=false;componenttitle;titletag="h2";collectionhandle="all";carousel=false;requestedfields;calltoaction=false;buttontext;addtocarttext;emptystring="No products found";gridlayout;cachettl;stale=true;products=[];errorMsg;staleData=false;errors=i({component:"iv-dynamic-products"});handlePropChange(){this.loadProducts(true)}async componentWillLoad(){await this.loadProducts(false)}buildParams(){return{handle:this.collectionhandle||"all",sort:this.type,fields:this.requestedfields,limit:this.limit,currency:a.currencyCode,reversed:this.reversed}}async loadProducts(t){const i=this.buildParams();const r=this.cachettl||1e3*60*5;a.loading=!t;try{const t=await s.getOrSetData(i,(async()=>{const t=await d(this.limit,this.collectionhandle,this.type,this.requestedfields,this.reversed);return t}),{ttl:r,staleWhileRevalidate:this.stale,transform:t=>t});const a=s.getData(i);this.staleData=a.isExpired&&a.isStale;this.products=t||[]}catch(t){this.errorMsg="Failed to load products";this.errors.handle({error:t,scope:"loadProducts",userMessage:"Unable to load products right now.",devMessage:"fetchProducts failed in iv-dynamic-products",severity:"error"})}finally{a.loading=false}}render(){const t=this.titletag;return r("div",{key:"4f9c90aa043ff480a747f924651a1ebf1ebafe76",class:o,"data-stale":this.staleData?"true":"false"},this.componenttitle&&r(t,{key:"26ff36f9203d0db08cf0a865f25426aa0afed40e",class:`${o}-title`},this.componenttitle),a.loading?r("iv-spinner",null):this.errorMsg?r("div",{class:`${o}-error`},this.errorMsg):this.products.length===0?r("div",{class:`${o}-empty`},this.emptystring):r("div",{class:`${o}-products`},r("iv-layout",{classModifier:`${o}-layout`,gridTemplateAreas:this.gridlayout},this.products.map((t=>r("iv-card",{cardtype:"products",calltoaction:this.calltoaction,buttontext:this.buttontext,addtocarttext:this.addtocarttext,data:t,classmodifier:`${o}-card`})))),this.staleData&&r("div",{class:`${o}-stale-indicator`,"aria-live":"polite"},"Refreshing…")))}static get watchers(){return{type:["handlePropChange"],limit:["handlePropChange"],collectionhandle:["handlePropChange"],requestedfields:["handlePropChange"]}}};e.style=c;export{e as iv_dynamic_products};
|
|
2
|
+
//# sourceMappingURL=p-8d726fec.entry.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const e="intravenous";const t={hydratedSelectorName:"hydrated",lazyLoad:true,propChangeCallback:true,slotRelocation:true,updatable:true};const n=(e,t,n)=>{const o=e.get(t);if(!o){e.set(t,[n])}else if(!o.includes(n)){o.push(n)}};const o=(e,t)=>{let n;return(...o)=>{if(n){clearTimeout(n)}n=setTimeout((()=>{n=0;e(...o)}),t)}};const r=e=>!("isConnected"in e)||e.isConnected;const s=o((e=>{for(let t of e.keys()){e.set(t,e.get(t).filter(r))}}),2e3);const i=()=>{if(typeof $t!=="function"){return{}}const e=new Map;return{dispose:()=>e.clear(),get:t=>{const o=$t();if(o){n(e,t,o)}},set:t=>{const n=e.get(t);if(n){e.set(t,n.filter(jt))}s(e)},reset:()=>{e.forEach((e=>e.forEach(jt)));s(e)}}};const l=e=>typeof e==="function"?e():e;const a=(e,t=(e,t)=>e!==t)=>{const n=l(e);let o=new Map(Object.entries(n??{}));const r={dispose:[],get:[],set:[],reset:[]};const s=new Map;const i=()=>{o=new Map(Object.entries(l(e)??{}));r.reset.forEach((e=>e()))};const a=()=>{r.dispose.forEach((e=>e()));i()};const c=e=>{r.get.forEach((t=>t(e)));return o.get(e)};const u=(e,n)=>{const s=o.get(e);if(t(n,s,e)){o.set(e,n);r.set.forEach((t=>t(e,n,s)))}};const d=typeof Proxy==="undefined"?{}:new Proxy(n,{get(e,t){return c(t)},ownKeys(e){return Array.from(o.keys())},getOwnPropertyDescriptor(){return{enumerable:true,configurable:true}},has(e,t){return o.has(t)},set(e,t,n){u(t,n);return true}});const v=(e,t)=>{r[e].push(t);return()=>{f(r[e],t)}};const p=(t,n)=>{const o=(e,o)=>{if(e===t){n(o)}};const r=()=>n(l(e)[t]);const i=v("set",o);const a=v("reset",r);s.set(n,{setHandler:o,resetHandler:r,propName:t});return()=>{i();a();s.delete(n)}};const h=(...e)=>{const t=e.reduce(((e,t)=>{if(t.set){e.push(v("set",t.set))}if(t.get){e.push(v("get",t.get))}if(t.reset){e.push(v("reset",t.reset))}if(t.dispose){e.push(v("dispose",t.dispose))}return e}),[]);return()=>t.forEach((e=>e()))};const w=e=>{const t=o.get(e);r.set.forEach((n=>n(e,t,t)))};const m=(e,t)=>{const n=s.get(t);if(n&&n.propName===e){f(r.set,n.setHandler);f(r.reset,n.resetHandler);s.delete(t)}};return{state:d,get:c,set:u,on:v,onChange:p,use:h,dispose:a,reset:i,forceUpdate:w,removeListener:m}};const f=(e,t)=>{const n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};const c=(e,t)=>{const n=a(e,t);n.use(i());return n};function u(){return{_instanceId:Math.random().toString(36).slice(2),storefrontToken:null,shopDomain:null,shopDomainApi:null,currencyCode:"GBP",setCurrencyCode(e){this.currencyCode=e},modalIsOpen:false,modalContent:null,pulloutOpen:false,pulloutContent:null,loading:false,wishlistLabels:{removeLabel:null,addToCartLabel:null,emptyMessage:null},toasts:[],wishlist:[]}}let d;(function e(){if(typeof window!=="undefined"){if(!window.__IV_STORE_STATE){const{state:e,onChange:t}=c(u());window.__IV_STORE_STATE=e;window.__IV_STORE_ONCHANGE=t;window.__IV_STORE_INIT_COUNT=(window.__IV_STORE_INIT_COUNT||0)+1;console.debug("[iv-store] Store initialized instanceId=",e._instanceId,"initCount=",window.__IV_STORE_INIT_COUNT)}else{window.__IV_STORE_INIT_COUNT=(window.__IV_STORE_INIT_COUNT||0)+1;if(window.__IV_STORE_INIT_COUNT>1){console.warn("[iv-store] Duplicate store access initCount=",window.__IV_STORE_INIT_COUNT,"existingInstanceId=",window.__IV_STORE_STATE._instanceId)}}d=window.__IV_STORE_STATE;window.__IV_TOAST_ID=window.__IV_TOAST_ID||0}else{const{state:e,onChange:t}=c(u());d=e;d.__onChange=t}})();const v=d;const p=typeof window!=="undefined"?window.__IV_STORE_ONCHANGE:d.__onChange;function h(){if(typeof window!=="undefined"){window.__IV_TOAST_ID=(window.__IV_TOAST_ID||0)+1;return window.__IV_TOAST_ID}h._c=(h._c||0)+1;return h._c}function w(e,t="info",n=3e3){const o=h();const r=v._instanceId;v.toasts=[...v.toasts,{id:o,message:e,type:t,duration:n}];console.debug("[iv-toast] showToast",{id:o,message:e,type:t,duration:n,instanceId:r,totalToasts:v.toasts.length});try{document.dispatchEvent(new CustomEvent("iv:toast",{detail:{id:o,message:e,type:t,duration:n}}))}catch{}if(typeof window!=="undefined")window.ivShowToast=w;setTimeout((()=>{v.toasts=v.toasts.filter((e=>e.id!==o))}),n)}function m(e){v.loading=true;v.wishlist=v.wishlist.filter((t=>t.id!==e));try{localStorage.setItem("wishlist",JSON.stringify(v.wishlist))}catch{}v.loading=false;w("Item removed from wishlist","success",5e3)}function y(e){v.modalIsOpen=!v.modalIsOpen;v.modalContent=e}function g(e){v.pulloutOpen=!v.pulloutOpen;v.pulloutContent=e}function b(e={}){const{component:t,toast:n,toastDuration:o=3e3,emitEvents:r=true,target:s=window,classifier:i,dedupeMs:l=4e3,defaultUserMessage:a="Something went wrong. Please try again.",maxConsoleStack:f=6,telemetry:c,_sharedRecent:u}=e;const d=u||new Map;function v(e){if(e==="warn")return"warning";if(e==="debug"||e==="info")return"info";return"error"}function p(e,t){const r=v(t);try{n?n({message:e,variant:r}):w(e,r,o)}catch(e){}}function h(e){let t=e.severity||e.level||"error";let n=!!e.userMessage;let o=e.userMessage;const r=e.error;const s=r?.name==="TypeError"&&/fetch/i.test(r?.message||"");if(s){n=true;o||="Network issue. Please retry."}const l=r?.status||r?.response?.status;if(l){if(l>=400&&l<500)n=true;if(l>=500){n=false;t="error"}}if(!o&&n)o=a;if(i){const s=i({error:r,scope:e.scope})||{};if(s.userSafe!==undefined)n=s.userSafe;if(s.severity)t=s.severity;if(s.userMessage)o=s.userMessage}if(!n)o=undefined;return{userSafe:n,severity:t,userMessage:o}}function m(e){return`${e.component||""}|${e.scope}|${e.devMessage||e.userMessage||e.raw?.message||""}|${e.severity}`}function y(e){const{error:n,scope:o,devMessage:i,meta:a}=e;const{userSafe:u,severity:v,userMessage:w}=h(e);const y=(n?.stack||"").split("\n").slice(0,f).join("\n");const g={id:crypto?.randomUUID?crypto.randomUUID():Date.now().toString(36)+Math.random().toString(36).slice(2),ts:Date.now(),component:t,scope:o,severity:v,userSafe:u,userMessage:w,devMessage:i??(u?n?.message:undefined),raw:n,meta:a,stack:y};if(c?.enrich){try{Object.assign(g,c.enrich(g))}catch(e){}}const b=m(g);const S=d.get(b);S&&Date.now()-S<l?g.deduped=true:d.set(b,Date.now());const $={...g,raw:undefined};if(v==="debug")console.debug("[iv-error]",$,n);else if(v==="info")console.info("[iv-error]",$,n);else if(v==="warn")console.warn("[iv-error]",$,n);else console.error("[iv-error]",$,n);if(u&&!g.deduped&&w){p(w,v)}if(r&&e.emitEvent!==false&&s&&typeof s.dispatchEvent==="function"){try{s.dispatchEvent(new CustomEvent("iv-error",{detail:g,bubbles:true,composed:true}))}catch(e){}}if(c&&(!c.sampleRate||Math.random()<c.sampleRate)){if(!c.filter||c.filter(g)){try{Promise.resolve(c.record(g)).catch((()=>{}))}catch(e){}}}return g}return{handle:y}}const S=b({component:"iv-set-up"});async function $(){try{const e=typeof window!=="undefined"&&window.location?window.location.hostname:"";if(!e)throw new Error("Could not set store domain.");v.shopDomain=e;console.log("[IV] Set shop domain to",v.shopDomain)}catch(e){S.handle({error:e,scope:"SetStoreDomain",userMessage:"Something has gone wrong, please try again.",devMessage:"Failed to set store domain in store.ts",severity:"critical"})}}async function O(){try{const e=document.documentElement.getAttribute("store-token");if(!e)throw new Error("Store token not found on document.");v.storefrontToken=e;console.log("[IV] Set store token to",v.storefrontToken)}catch(e){S.handle({error:e,scope:"SetToken",userMessage:"Something has gone wrong, please try again.",devMessage:"Failed to set store token in store.ts",severity:"critical"})}}async function j(){try{const e=v.shopDomain;if(!e)throw new Error("Shop domain not set in store.");v.shopDomainApi=e+".myshopify.com";console.log("[IV] Set shop domain API to",v.shopDomainApi)}catch(e){S.handle({error:e,scope:"SetEndpoint",userMessage:"Something has gone wrong, please try again.",devMessage:"Failed to set store endpoint in store.ts",severity:"critical"})}}async function k(){console.log("[IV] Starting API setup ignition...");await $();console.log("[IV] Store domain set.");await O();console.log("[IV] Store token set.");await j();console.log("[IV] Store endpoint set.")}if(typeof window!=="undefined"){document.readyState==="loading"?document.addEventListener("DOMContentLoaded",(()=>{k()})):k()}async function M(){try{const e="/cart.js";const t=await fetch(e);const n=await t.json();return n.currency||"GBP"}catch(e){console.error("Error fetching cart:",e);return"GBP"}}var C=Object.defineProperty;var E=(e,t)=>{for(var n in t)C(e,n,{get:t[n],enumerable:true})};var I=(e,t)=>{var n;const o=t.t;const r=Object.entries((n=o.o)!=null?n:{});r.map((([n,[o]])=>{if(o&31||o&32){const o=e[n];const r=P(Object.getPrototypeOf(e),n)||Object.getOwnPropertyDescriptor(e,n);if(r){Object.defineProperty(e,n,{get(){return r.get.call(this)},set(e){r.set.call(this,e)},configurable:true,enumerable:true})}e[n]=t.i.has(n)?t.i.get(n):o}}))};function P(e,t){while(e){const n=Object.getOwnPropertyDescriptor(e,t);if(n==null?void 0:n.get)return n;e=Object.getPrototypeOf(e)}return void 0}var T=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var D=(e,t)=>{if(!t)return;e.__stencil__getHostRef=()=>t;t.l=e;{I(e,t)}};var x=(e,t)=>{const n={u:0,$hostElement$:e,t,i:new Map,v:new Map};{n.p=new Promise((e=>n.h=e));e["s-p"]=[];e["s-rc"]=[]}{n.m=[]}const o=n;e.__stencil__getHostRef=()=>o;return o};var N=(e,t)=>t in e;var L=(e,t)=>(0,console.error)(e,t);var R=new Map;var U=(e,t,n)=>{const o=e.S.replace(/-/g,"_");const r=e.$;if(!r){return void 0}const s=R.get(r);if(s){return s[o]}
|
|
1
|
+
const e="intravenous";const t={hydratedSelectorName:"hydrated",lazyLoad:true,propChangeCallback:true,slotRelocation:true,updatable:true};const n=(e,t,n)=>{const o=e.get(t);if(!o){e.set(t,[n])}else if(!o.includes(n)){o.push(n)}};const o=(e,t)=>{let n;return(...o)=>{if(n){clearTimeout(n)}n=setTimeout((()=>{n=0;e(...o)}),t)}};const r=e=>!("isConnected"in e)||e.isConnected;const s=o((e=>{for(let t of e.keys()){e.set(t,e.get(t).filter(r))}}),2e3);const i=()=>{if(typeof $t!=="function"){return{}}const e=new Map;return{dispose:()=>e.clear(),get:t=>{const o=$t();if(o){n(e,t,o)}},set:t=>{const n=e.get(t);if(n){e.set(t,n.filter(jt))}s(e)},reset:()=>{e.forEach((e=>e.forEach(jt)));s(e)}}};const l=e=>typeof e==="function"?e():e;const a=(e,t=(e,t)=>e!==t)=>{const n=l(e);let o=new Map(Object.entries(n??{}));const r={dispose:[],get:[],set:[],reset:[]};const s=new Map;const i=()=>{o=new Map(Object.entries(l(e)??{}));r.reset.forEach((e=>e()))};const a=()=>{r.dispose.forEach((e=>e()));i()};const c=e=>{r.get.forEach((t=>t(e)));return o.get(e)};const u=(e,n)=>{const s=o.get(e);if(t(n,s,e)){o.set(e,n);r.set.forEach((t=>t(e,n,s)))}};const d=typeof Proxy==="undefined"?{}:new Proxy(n,{get(e,t){return c(t)},ownKeys(e){return Array.from(o.keys())},getOwnPropertyDescriptor(){return{enumerable:true,configurable:true}},has(e,t){return o.has(t)},set(e,t,n){u(t,n);return true}});const v=(e,t)=>{r[e].push(t);return()=>{f(r[e],t)}};const p=(t,n)=>{const o=(e,o)=>{if(e===t){n(o)}};const r=()=>n(l(e)[t]);const i=v("set",o);const a=v("reset",r);s.set(n,{setHandler:o,resetHandler:r,propName:t});return()=>{i();a();s.delete(n)}};const h=(...e)=>{const t=e.reduce(((e,t)=>{if(t.set){e.push(v("set",t.set))}if(t.get){e.push(v("get",t.get))}if(t.reset){e.push(v("reset",t.reset))}if(t.dispose){e.push(v("dispose",t.dispose))}return e}),[]);return()=>t.forEach((e=>e()))};const w=e=>{const t=o.get(e);r.set.forEach((n=>n(e,t,t)))};const m=(e,t)=>{const n=s.get(t);if(n&&n.propName===e){f(r.set,n.setHandler);f(r.reset,n.resetHandler);s.delete(t)}};return{state:d,get:c,set:u,on:v,onChange:p,use:h,dispose:a,reset:i,forceUpdate:w,removeListener:m}};const f=(e,t)=>{const n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};const c=(e,t)=>{const n=a(e,t);n.use(i());return n};function u(){return{_instanceId:Math.random().toString(36).slice(2),storefrontToken:null,shopDomain:null,shopDomainApi:null,currencyCode:"GBP",setCurrencyCode(e){this.currencyCode=e},modalIsOpen:false,modalContent:null,pulloutOpen:false,pulloutContent:null,loading:false,wishlistLabels:{removeLabel:null,addToCartLabel:null,emptyMessage:null},toasts:[],wishlist:[]}}let d;(function e(){if(typeof window!=="undefined"){if(!window.__IV_STORE_STATE){const{state:e,onChange:t}=c(u());window.__IV_STORE_STATE=e;window.__IV_STORE_ONCHANGE=t;window.__IV_STORE_INIT_COUNT=(window.__IV_STORE_INIT_COUNT||0)+1;console.debug("[iv-store] Store initialized instanceId=",e._instanceId,"initCount=",window.__IV_STORE_INIT_COUNT)}else{window.__IV_STORE_INIT_COUNT=(window.__IV_STORE_INIT_COUNT||0)+1;if(window.__IV_STORE_INIT_COUNT>1){console.warn("[iv-store] Duplicate store access initCount=",window.__IV_STORE_INIT_COUNT,"existingInstanceId=",window.__IV_STORE_STATE._instanceId)}}d=window.__IV_STORE_STATE;window.__IV_TOAST_ID=window.__IV_TOAST_ID||0}else{const{state:e,onChange:t}=c(u());d=e;d.__onChange=t}})();const v=d;const p=typeof window!=="undefined"?window.__IV_STORE_ONCHANGE:d.__onChange;function h(){if(typeof window!=="undefined"){window.__IV_TOAST_ID=(window.__IV_TOAST_ID||0)+1;return window.__IV_TOAST_ID}h._c=(h._c||0)+1;return h._c}function w(e,t="info",n=3e3){const o=h();const r=v._instanceId;v.toasts=[...v.toasts,{id:o,message:e,type:t,duration:n}];console.debug("[iv-toast] showToast",{id:o,message:e,type:t,duration:n,instanceId:r,totalToasts:v.toasts.length});try{document.dispatchEvent(new CustomEvent("iv:toast",{detail:{id:o,message:e,type:t,duration:n}}))}catch{}if(typeof window!=="undefined")window.ivShowToast=w;setTimeout((()=>{v.toasts=v.toasts.filter((e=>e.id!==o))}),n)}function m(e){v.loading=true;v.wishlist=v.wishlist.filter((t=>t.id!==e));try{localStorage.setItem("wishlist",JSON.stringify(v.wishlist))}catch{}v.loading=false;w("Item removed from wishlist","success",5e3)}function y(e){v.modalIsOpen=!v.modalIsOpen;v.modalContent=e}function g(e){v.pulloutOpen=!v.pulloutOpen;v.pulloutContent=e}function b(e={}){const{component:t,toast:n,toastDuration:o=3e3,emitEvents:r=true,target:s=window,classifier:i,dedupeMs:l=4e3,defaultUserMessage:a="Something went wrong. Please try again.",maxConsoleStack:f=6,telemetry:c,_sharedRecent:u}=e;const d=u||new Map;function v(e){if(e==="warn")return"warning";if(e==="debug"||e==="info")return"info";return"error"}function p(e,t){const r=v(t);try{n?n({message:e,variant:r}):w(e,r,o)}catch(e){}}function h(e){let t=e.severity||e.level||"error";let n=!!e.userMessage;let o=e.userMessage;const r=e.error;const s=r?.name==="TypeError"&&/fetch/i.test(r?.message||"");if(s){n=true;o||="Network issue. Please retry."}const l=r?.status||r?.response?.status;if(l){if(l>=400&&l<500)n=true;if(l>=500){n=false;t="error"}}if(!o&&n)o=a;if(i){const s=i({error:r,scope:e.scope})||{};if(s.userSafe!==undefined)n=s.userSafe;if(s.severity)t=s.severity;if(s.userMessage)o=s.userMessage}if(!n)o=undefined;return{userSafe:n,severity:t,userMessage:o}}function m(e){return`${e.component||""}|${e.scope}|${e.devMessage||e.userMessage||e.raw?.message||""}|${e.severity}`}function y(e){const{error:n,scope:o,devMessage:i,meta:a}=e;const{userSafe:u,severity:v,userMessage:w}=h(e);const y=(n?.stack||"").split("\n").slice(0,f).join("\n");const g={id:crypto?.randomUUID?crypto.randomUUID():Date.now().toString(36)+Math.random().toString(36).slice(2),ts:Date.now(),component:t,scope:o,severity:v,userSafe:u,userMessage:w,devMessage:i??(u?n?.message:undefined),raw:n,meta:a,stack:y};if(c?.enrich){try{Object.assign(g,c.enrich(g))}catch(e){}}const b=m(g);const S=d.get(b);S&&Date.now()-S<l?g.deduped=true:d.set(b,Date.now());const $={...g,raw:undefined};if(v==="debug")console.debug("[iv-error]",$,n);else if(v==="info")console.info("[iv-error]",$,n);else if(v==="warn")console.warn("[iv-error]",$,n);else console.error("[iv-error]",$,n);if(u&&!g.deduped&&w){p(w,v)}if(r&&e.emitEvent!==false&&s&&typeof s.dispatchEvent==="function"){try{s.dispatchEvent(new CustomEvent("iv-error",{detail:g,bubbles:true,composed:true}))}catch(e){}}if(c&&(!c.sampleRate||Math.random()<c.sampleRate)){if(!c.filter||c.filter(g)){try{Promise.resolve(c.record(g)).catch((()=>{}))}catch(e){}}}return g}return{handle:y}}const S=b({component:"iv-set-up"});async function $(){try{const e=typeof window!=="undefined"&&window.location?window.location.hostname:"";if(!e)throw new Error("Could not set store domain.");v.shopDomain=e;console.log("[IV] Set shop domain to",v.shopDomain)}catch(e){S.handle({error:e,scope:"SetStoreDomain",userMessage:"Something has gone wrong, please try again.",devMessage:"Failed to set store domain in store.ts",severity:"critical"})}}async function O(){try{const e=document.documentElement.getAttribute("store-token");if(!e)throw new Error("Store token not found on document.");v.storefrontToken=e;console.log("[IV] Set store token to",v.storefrontToken)}catch(e){S.handle({error:e,scope:"SetToken",userMessage:"Something has gone wrong, please try again.",devMessage:"Failed to set store token in store.ts",severity:"critical"})}}async function j(){try{const e=v.shopDomain;if(!e)throw new Error("Shop domain not set in store.");v.shopDomainApi=e+".myshopify.com";console.log("[IV] Set shop domain API to",v.shopDomainApi)}catch(e){S.handle({error:e,scope:"SetEndpoint",userMessage:"Something has gone wrong, please try again.",devMessage:"Failed to set store endpoint in store.ts",severity:"critical"})}}async function k(){console.log("[IV] Starting API setup ignition...");await $();console.log("[IV] Store domain set.");await O();console.log("[IV] Store token set.");await j();console.log("[IV] Store endpoint set.")}if(typeof window!=="undefined"){console.log("Ignition called form factory.ts.");document.readyState==="loading"?document.addEventListener("DOMContentLoaded",(()=>{k()})):k()}async function M(){try{const e="/cart.js";const t=await fetch(e);const n=await t.json();return n.currency||"GBP"}catch(e){console.error("Error fetching cart:",e);return"GBP"}}var C=Object.defineProperty;var E=(e,t)=>{for(var n in t)C(e,n,{get:t[n],enumerable:true})};var I=(e,t)=>{var n;const o=t.t;const r=Object.entries((n=o.o)!=null?n:{});r.map((([n,[o]])=>{if(o&31||o&32){const o=e[n];const r=P(Object.getPrototypeOf(e),n)||Object.getOwnPropertyDescriptor(e,n);if(r){Object.defineProperty(e,n,{get(){return r.get.call(this)},set(e){r.set.call(this,e)},configurable:true,enumerable:true})}e[n]=t.i.has(n)?t.i.get(n):o}}))};function P(e,t){while(e){const n=Object.getOwnPropertyDescriptor(e,t);if(n==null?void 0:n.get)return n;e=Object.getPrototypeOf(e)}return void 0}var T=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var D=(e,t)=>{if(!t)return;e.__stencil__getHostRef=()=>t;t.l=e;{I(e,t)}};var x=(e,t)=>{const n={u:0,$hostElement$:e,t,i:new Map,v:new Map};{n.p=new Promise((e=>n.h=e));e["s-p"]=[];e["s-rc"]=[]}{n.m=[]}const o=n;e.__stencil__getHostRef=()=>o;return o};var N=(e,t)=>t in e;var L=(e,t)=>(0,console.error)(e,t);var R=new Map;var U=(e,t,n)=>{const o=e.S.replace(/-/g,"_");const r=e.$;if(!r){return void 0}const s=R.get(r);if(s){return s[o]}
|
|
2
2
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${r}.entry.js${""}`).then((e=>{{R.set(r,e)}return e[o]}),(e=>{L(e,t.$hostElement$)}))};var A=new Map;var F="{visibility:hidden}.hydrated{visibility:inherit}";var V="slot-fb{display:contents}slot-fb[hidden]{display:none}";var _="http://www.w3.org/1999/xlink";var B=typeof window!=="undefined"?window:{};var H={u:0,O:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)};var W=(()=>{var e;let t=false;try{(e=B.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(e){}return t})();var z=e=>Promise.resolve(e);var G=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var q=G?(()=>!!B.document&&Object.getOwnPropertyDescriptor(B.document.adoptedStyleSheets,"length").writable)():false;var Y=false;var J=[];var K=[];var Q=(e,t)=>n=>{e.push(n);if(!Y){Y=true;if(t&&H.u&4){ee(Z)}else{H.raf(Z)}}};var X=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){L(e)}}e.length=0};var Z=()=>{X(J);{X(K);if(Y=J.length>0){H.raf(Z)}}};var ee=e=>z().then(e);var te=Q(K,true);var ne=e=>{const t=new URL(e,H.O);return t.origin!==B.location.origin?t.href:t.pathname};var oe=e=>{e=typeof e;return e==="object"||e==="function"};function re(e){var t,n,o;return(o=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?o:void 0}var se=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var ie={};E(ie,{err:()=>ae,map:()=>fe,ok:()=>le,unwrap:()=>ce,unwrapErr:()=>ue});var le=e=>({isOk:true,isErr:false,value:e});var ae=e=>({isOk:false,isErr:true,value:e});function fe(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>le(e)))}else{return le(n)}}if(e.isErr){const t=e.value;return ae(t)}throw"should never get here"}var ce=e=>{if(e.isOk){return e.value}else{throw e.value}};var ue=e=>{if(e.isErr){return e.value}else{throw e.value}};function de(e){return void 0}var ve;function pe(e){var t;const n=this.attachShadow({mode:"open"});if(ve===void 0)ve=(t=de())!=null?t:null;if(ve){if(q){n.adoptedStyleSheets.push(ve)}else{n.adoptedStyleSheets=[...n.adoptedStyleSheets,ve]}}}var he=e=>{const t=$e(e,"childNodes");if(e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"){me(t,e.tagName).forEach((e=>{if(e.nodeType===1&&e.tagName==="SLOT-FB"){if(ye(e,be(e),false).length){e.hidden=true}else{e.hidden=false}}}))}let n=0;for(n=0;n<t.length;n++){const e=t[n];if(e.nodeType===1&&$e(e,"childNodes").length){he(e)}}};var we=e=>{const t=[];for(let n=0;n<e.length;n++){const o=e[n]["s-nr"]||void 0;if(o&&o.isConnected){t.push(o)}}return t};function me(e,t,n){let o=0;let r=[];let s;for(;o<e.length;o++){s=e[o];if(s["s-sr"]&&(!t||s["s-hn"]===t)&&n===void 0){r.push(s)}r=[...r,...me(s.childNodes,t,n)]}return r}var ye=(e,t,n=true)=>{const o=[];if(n&&e["s-sr"]||!e["s-sr"])o.push(e);let r=e;while(r=r.nextSibling){if(be(r)===t&&(n||!r["s-sr"]))o.push(r)}return o};var ge=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var be=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Se(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const o=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots.\n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const r=this["s-cr"].parentElement;const s=r.__childNodes?r.childNodes:we(r.childNodes);s.forEach((e=>{if(o===be(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function $e(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var Oe=(e,t="")=>{{return()=>{}}};var je=(e,t)=>{{return()=>{}}};var ke=new WeakMap;var Me=(e,t,n)=>{let o=A.get(e);if(G&&n){o=o||new CSSStyleSheet;if(typeof o==="string"){o=t}else{o.replaceSync(t)}}else{o=t}A.set(e,o)};var Ce=(e,t,n)=>{var o;const r=Ie(t);const s=A.get(r);if(!B.document){return r}e=e.nodeType===11?e:B.document;if(s){if(typeof s==="string"){e=e.head||e;let n=ke.get(e);let i;if(!n){ke.set(e,n=new Set)}if(!n.has(r)){{i=B.document.createElement("style");i.innerHTML=s;const n=(o=H.j)!=null?o:re(B.document);if(n!=null){i.setAttribute("nonce",n)}if(!(t.u&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(G){const t=new CSSStyleSheet;t.replaceSync(s);if(q){e.adoptedStyleSheets.unshift(t)}else{e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t){t.innerHTML=s+t.innerHTML}else{e.prepend(i)}}}else{e.append(i)}}if(t.u&1){e.insertBefore(i,null)}}if(t.u&4){i.innerHTML+=V}if(n){n.add(r)}}}else if(!e.adoptedStyleSheets.includes(s)){if(q){e.adoptedStyleSheets.push(s)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}}return r};var Ee=e=>{const t=e.t;const n=e.$hostElement$;const o=t.u;const r=Oe("attachStyles",t.S);const s=Ce(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(o&10){n["s-sc"]=s;n.classList.add(s+"-h")}r()};var Ie=(e,t)=>"sc-"+e.S;var Pe=(e,t,...n)=>{let o=null;let r=null;let s=null;let i=false;let l=false;const a=[];const f=t=>{for(let n=0;n<t.length;n++){o=t[n];if(Array.isArray(o)){f(o)}else if(o!=null&&typeof o!=="boolean"){if(i=typeof e!=="function"&&!oe(o)){o=String(o)}if(i&&l){a[a.length-1].k+=o}else{a.push(i?Te(null,o):o)}l=i}}};f(n);if(t){if(t.key){r=t.key}if(t.name){s=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,a,Ne)}const c=Te(e,null);c.M=t;if(a.length>0){c.C=a}{c.I=r}{c.P=s}return c};var Te=(e,t)=>{const n={u:0,T:e,k:t,D:null,C:null};{n.M=null}{n.I=null}{n.P=null}return n};var De={};var xe=e=>e&&e.T===De;var Ne={forEach:(e,t)=>e.map(Le).forEach(t),map:(e,t)=>e.map(Le).map(t).map(Re)};var Le=e=>({vattrs:e.M,vchildren:e.C,vkey:e.I,vname:e.P,vtag:e.T,vtext:e.k});var Re=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return Pe(e.vtag,t,...e.vchildren||[])}const t=Te(e.vtag,e.vtext);t.M=e.vattrs;t.C=e.vchildren;t.I=e.vkey;t.P=e.vname;return t};var Ue=e=>{const t=se(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};Ue("::slotted");Ue(":host");Ue(":host-context");var Ae=(e,t,n)=>{if(e!=null&&!oe(e)){if(t&4){{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var Fe=e=>{var t;return(t=T(e))==null?void 0:t.$hostElement$};var Ve=(e,t,n)=>{const o=Fe(e);return{emit:e=>_e(o,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var _e=(e,t,n)=>{const o=H.ce(t,n);e.dispatchEvent(o);return o};var Be=(e,t,n,o,r,s,i)=>{if(n===o){return}let l=N(e,t);let a=t.toLowerCase();if(t==="class"){const t=e.classList;const r=We(n);let s=We(o);{t.remove(...r.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!r.includes(e))))}}else if(t==="style"){{for(const t in n){if(!o||o[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in o){if(!n||o[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,o[t])}else{e.style[t]=o[t]}}}}else if(t==="key");else if(t==="ref"){if(o){o(e)}}else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(N(B,a)){t=a.slice(2)}else{t=a[2]+t.slice(3)}if(n||o){const r=t.endsWith(ze);t=t.replace(Ge,"");if(n){H.rel(e,t,n,r)}if(o){H.ael(e,t,o,r)}}}else{const i=oe(o);if((l||i&&o!==null)&&true){try{if(!e.tagName.includes("-")){const r=o==null?"":o;if(t==="list"){l=false}else if(n==null||e[t]!=r){if(typeof e.__lookupSetter__(t)==="function"){e[t]=r}else{e.setAttribute(t,r)}}}else if(e[t]!==o){e[t]=o}}catch(e){}}let f=false;{if(a!==(a=a.replace(/^xlink\:?/,""))){t=a;f=true}}if(o==null||o===false){if(o!==false||e.getAttribute(t)===""){if(f){e.removeAttributeNS(_,t)}else{e.removeAttribute(t)}}}else if((!l||s&4||r)&&!i&&e.nodeType===1){o=o===true?"":o;if(f){e.setAttributeNS(_,t,o)}else{e.setAttribute(t,o)}}}};var He=/\s/;var We=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(He)};var ze="Capture";var Ge=new RegExp(ze+"$");var qe=(e,t,n,o)=>{const r=t.D.nodeType===11&&t.D.host?t.D.host:t.D;const s=e&&e.M||{};const i=t.M||{};{for(const e of Ye(Object.keys(s))){if(!(e in i)){Be(r,e,s[e],void 0,n,t.u)}}}for(const e of Ye(Object.keys(i))){Be(r,e,s[e],i[e],n,t.u)}};function Ye(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Je;var Ke;var Qe=false;var Xe=false;var Ze=false;var et=false;var tt=(e,n,o)=>{var r;const s=n.C[o];let i=0;let l;let a;let f;if(!Qe){Ze=true;if(s.T==="slot"){s.u|=s.C?2:1}}if(s.k!==null){l=s.D=B.document.createTextNode(s.k)}else if(s.u&1){l=s.D=B.document.createTextNode("");{qe(null,s,et)}}else{if(!B.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}l=s.D=B.document.createElement(!Qe&&t.slotRelocation&&s.u&2?"slot-fb":s.T);{qe(null,s,et)}if(s.C){for(i=0;i<s.C.length;++i){a=tt(e,s,i);if(a){l.appendChild(a)}}}}l["s-hn"]=Ke;{if(s.u&(2|1)){l["s-sr"]=true;l["s-cr"]=Je;l["s-sn"]=s.P||"";l["s-rf"]=(r=s.M)==null?void 0:r.ref;Se(l);f=e&&e.C&&e.C[o];if(f&&f.T===s.T&&e.D){{nt(e.D,false)}}}}return l};var nt=(e,t)=>{H.u|=1;const n=Array.from(e.__childNodes||e.childNodes);for(let e=n.length-1;e>=0;e--){const o=n[e];if(o["s-hn"]!==Ke&&o["s-ol"]){dt(lt(o).parentNode,o,lt(o));o["s-ol"].remove();o["s-ol"]=void 0;o["s-sh"]=void 0;Ze=true}if(t){nt(o,t)}}H.u&=-2};var ot=(e,t,n,o,r,s)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e;let l;if(i.shadowRoot&&i.tagName===Ke){i=i.shadowRoot}for(;r<=s;++r){if(o[r]){l=tt(null,n,r);if(l){o[r].D=l;dt(i,l,lt(t))}}}};var rt=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.D;ut(t);if(e){{Xe=true;if(e["s-ol"]){e["s-ol"].remove()}else{nt(e,true)}}e.remove()}}}};var st=(e,t,n,o,r=false)=>{let s=0;let i=0;let l=0;let a=0;let f=t.length-1;let c=t[0];let u=t[f];let d=o.length-1;let v=o[0];let p=o[d];let h;let w;while(s<=f&&i<=d){if(c==null){c=t[++s]}else if(u==null){u=t[--f]}else if(v==null){v=o[++i]}else if(p==null){p=o[--d]}else if(it(c,v,r)){at(c,v,r);c=t[++s];v=o[++i]}else if(it(u,p,r)){at(u,p,r);u=t[--f];p=o[--d]}else if(it(c,p,r)){if(c.T==="slot"||p.T==="slot"){nt(c.D.parentNode,false)}at(c,p,r);dt(e,c.D,u.D.nextSibling);c=t[++s];p=o[--d]}else if(it(u,v,r)){if(c.T==="slot"||p.T==="slot"){nt(u.D.parentNode,false)}at(u,v,r);dt(e,u.D,c.D);u=t[--f];v=o[++i]}else{l=-1;{for(a=s;a<=f;++a){if(t[a]&&t[a].I!==null&&t[a].I===v.I){l=a;break}}}if(l>=0){w=t[l];if(w.T!==v.T){h=tt(t&&t[i],n,l)}else{at(w,v,r);t[l]=void 0;h=w.D}v=o[++i]}else{h=tt(t&&t[i],n,i);v=o[++i]}if(h){{dt(lt(c.D).parentNode,h,lt(c.D))}}}}if(s>f){ot(e,o[d+1]==null?null:o[d+1].D,n,o,i,d)}else if(i>d){rt(t,s,f)}};var it=(e,t,n=false)=>{if(e.T===t.T){if(e.T==="slot"){return e.P===t.P}if(!n){return e.I===t.I}if(n&&!e.I&&t.I){e.I=t.I}return true}return false};var lt=e=>e&&e["s-ol"]||e;var at=(e,n,o=false)=>{const r=n.D=e.D;const s=e.C;const i=n.C;const l=n.k;let a;if(l===null){{qe(e,n,et)}if(s!==null&&i!==null){st(r,s,n,i,o)}else if(i!==null){if(e.k!==null){r.textContent=""}ot(r,null,n,i,0,i.length-1)}else if(!o&&t.updatable&&s!==null){rt(s,0,s.length-1)}else;}else if(a=r["s-cr"]){a.parentNode.textContent=l}else if(e.k!==l){r.data=l}};var ft=[];var ct=e=>{let t;let n;let o;const r=e.__childNodes||e.childNodes;for(const e of r){if(e["s-sr"]&&(t=e["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=e["s-sn"];for(o=n.length-1;o>=0;o--){t=n[o];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==e["s-hn"]&&true){if(ge(t,r)){let n=ft.find((e=>e.N===t));Xe=true;t["s-sn"]=t["s-sn"]||r;if(n){n.N["s-sh"]=e["s-hn"];n.L=e}else{t["s-sh"]=e["s-hn"];ft.push({L:e,N:t})}if(t["s-sr"]){ft.map((e=>{if(ge(e.N,t["s-sn"])){n=ft.find((e=>e.N===t));if(n&&!e.L){e.L=n.L}}}))}}else if(!ft.some((e=>e.N===t))){ft.push({N:t})}}}}if(e.nodeType===1){ct(e)}}};var ut=e=>{{e.M&&e.M.ref&&e.M.ref(null);e.C&&e.C.map(ut)}};var dt=(e,t,n)=>{{return e==null?void 0:e.insertBefore(t,n)}};var vt=(e,t,n=false)=>{var o,r,s,i;const l=e.$hostElement$;const a=e.t;const f=e.R||Te(null,null);const c=xe(t);const u=c?t:Pe(null,null,t);Ke=l.tagName;if(a.U){u.M=u.M||{};a.U.forEach((([e,t])=>{{u.M[t]=l[e]}}))}if(n&&u.M){for(const e of Object.keys(u.M)){if(l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){u.M[e]=l[e]}}}u.T=null;u.u|=4;e.R=u;u.D=f.D=l.shadowRoot||l;Qe=!!(a.u&1)&&!(a.u&128);{Je=l["s-cr"];Xe=false}at(f,u,n);{H.u|=1;if(Ze){ct(u.D);for(const e of ft){const t=e.N;if(!t["s-ol"]&&B.document){const e=B.document.createTextNode("");e["s-nr"]=t;dt(t.parentNode,t["s-ol"]=e,t)}}for(const e of ft){const t=e.N;const l=e.L;if(l){const e=l.parentNode;let n=l.nextSibling;{let s=(o=t["s-ol"])==null?void 0:o.previousSibling;while(s){let o=(r=s["s-nr"])!=null?r:null;if(o&&o["s-sn"]===t["s-sn"]&&e===(o.__parentNode||o.parentNode)){o=o.nextSibling;while(o===t||(o==null?void 0:o["s-sr"])){o=o==null?void 0:o.nextSibling}if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}const i=t.__parentNode||t.parentNode;const a=t.__nextSibling||t.nextSibling;if(!n&&e!==i||a!==n){if(t!==n){if(!t["s-hn"]&&t["s-ol"]){t["s-hn"]=t["s-ol"].parentNode.nodeName}dt(e,t,n);if(t.nodeType===1&&t.tagName!=="SLOT-FB"){t.hidden=(s=t["s-ih"])!=null?s:false}}}t&&typeof l["s-rf"]==="function"&&l["s-rf"](l)}else{if(t.nodeType===1){if(n){t["s-ih"]=(i=t.hidden)!=null?i:false}t.hidden=true}}}}if(Xe){he(u.D)}H.u&=-2;ft.length=0}Je=void 0};var pt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.A=()=>{t["s-p"].splice(n-1,1);o()})))}};var ht=(e,t)=>{{e.u|=16}if(e.u&4){e.u|=512;return}pt(e,e.F);const n=()=>wt(e,t);if(t){queueMicrotask((()=>{n()}));return}return te(n)};var wt=(e,t)=>{const n=e.$hostElement$;const o=Oe("scheduleUpdate",e.t.S);const r=e.l;if(!r){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{{e.u|=256;if(e.V){e.V.map((([e,t])=>Mt(r,e,t,n)));e.V=void 0}}if(e.m.length){e.m.forEach((e=>e(n)))}}s=Mt(r,"componentWillLoad",void 0,n)}else{s=Mt(r,"componentWillUpdate",void 0,n)}s=mt(s,(()=>Mt(r,"componentWillRender",void 0,n)));o();return mt(s,(()=>gt(e,r,t)))};var mt=(e,t)=>yt(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var yt=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var gt=async(e,t,n)=>{var o;const r=e.$hostElement$;const s=Oe("update",e.t.S);const i=r["s-rc"];if(n){Ee(e)}const l=Oe("render",e.t.S);{St(e,t,r,n)}if(i){i.map((e=>e()));r["s-rc"]=void 0}l();s();{const t=(o=r["s-p"])!=null?o:[];const n=()=>Ot(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.u|=4;t.length=0}}};var bt=null;var St=(e,t,n,o)=>{try{bt=t;t=t.render();{e.u&=-17}{e.u|=2}{{{vt(e,t,o)}}}}catch(t){L(t,e.$hostElement$)}bt=null;return null};var $t=()=>bt;var Ot=e=>{const t=e.t.S;const n=e.$hostElement$;const o=Oe("postUpdate",t);const r=e.l;const s=e.F;Mt(r,"componentDidRender",void 0,n);if(!(e.u&64)){e.u|=64;{Ct(n)}Mt(r,"componentDidLoad",void 0,n);o();{e.h(n);if(!s){kt()}}}else{Mt(r,"componentDidUpdate",void 0,n);o()}{if(e.A){e.A();e.A=void 0}if(e.u&512){ee((()=>ht(e,false)))}e.u&=-517}};var jt=e=>{var t;{const n=T(e);const o=(t=n==null?void 0:n.$hostElement$)==null?void 0:t.isConnected;if(o&&(n.u&(2|16))===2){ht(n,false)}return o}};var kt=t=>{ee((()=>_e(B,"appload",{detail:{namespace:e}})))};var Mt=(e,t,n,o)=>{if(e&&e[t]){try{return e[t](n)}catch(e){L(e,o)}}return void 0};var Ct=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var Et=(e,t)=>T(e).i.get(t);var It=(e,t,n,o)=>{const r=T(e);if(!r){return}if(!r){throw new Error(`Couldn't find host element for "${o.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const s=r.$hostElement$;const i=r.i.get(t);const l=r.u;const a=r.l;n=Ae(n,o.o[t][0]);const f=Number.isNaN(i)&&Number.isNaN(n);const c=n!==i&&!f;if((!(l&8)||i===void 0)&&c){r.i.set(t,n);if(a){if(o._&&l&128){const e=o._[t];if(e){e.map((e=>{try{a[e](n,i,t)}catch(e){L(e,s)}}))}}if((l&(2|16))===2){if(a.componentShouldUpdate){if(a.componentShouldUpdate(n,i,t)===false){return}}ht(r,false)}}}};var Pt=(e,n,o)=>{var r,s;const i=e.prototype;if(n.o||t.propChangeCallback){{if(e.watchers&&!n._){n._=e.watchers}if(e.deserializers&&!n.B){n.B=e.deserializers}if(e.serializers&&!n.H){n.H=e.serializers}}const l=Object.entries((r=n.o)!=null?r:{});l.map((([e,[t]])=>{if(t&31||o&2&&t&32){const{get:r,set:s}=Object.getOwnPropertyDescriptor(i,e)||{};if(r)n.o[e][0]|=2048;if(s)n.o[e][0]|=4096;if(o&1||!r){Object.defineProperty(i,e,{get(){{if((n.o[e][0]&2048)===0){return Et(this,e)}const t=T(this);const o=t?t.l:i;if(!o)return;return o[e]}},configurable:true,enumerable:true})}Object.defineProperty(i,e,{set(r){const i=T(this);if(!i){return}if(s){const o=t&32?this[e]:i.$hostElement$[e];if(typeof o==="undefined"&&i.i.get(e)){r=i.i.get(e)}s.apply(this,[Ae(r,t)]);r=t&32?this[e]:i.$hostElement$[e];It(this,e,r,n);return}{if((o&1)===0||(n.o[e][0]&4096)===0){It(this,e,r,n);if(o&1&&!i.l){i.m.push((()=>{if(n.o[e][0]&4096&&i.l[e]!==i.i.get(e)){i.l[e]=r}}))}return}const s=()=>{const o=i.l[e];if(!i.i.get(e)&&o){i.i.set(e,o)}i.l[e]=Ae(r,t);It(this,e,i.l[e],n)};if(i.l){s()}else{i.m.push((()=>{s()}))}}}})}}));if(o&1){const o=new Map;i.attributeChangedCallback=function(e,r,s){H.jmp((()=>{var l;const a=o.get(e);const f=T(this);if(this.hasOwnProperty(a)&&t.lazyLoad){s=this[a];delete this[a]}if(i.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==s){return}else if(a==null){const t=f==null?void 0:f.u;if(f&&t&&!(t&8)&&t&128&&s!==r){const t=f.l;const o=(l=n._)==null?void 0:l[e];o==null?void 0:o.forEach((n=>{if(t[n]!=null){t[n].call(t,s,r,e)}}))}return}const c=Object.getOwnPropertyDescriptor(i,a);s=s===null&&typeof this[a]==="boolean"?false:s;if(s!=this[a]&&(!c.get||!!c.set)){this[a]=s}}))};e.observedAttributes=Array.from(new Set([...Object.keys((s=n._)!=null?s:{}),...l.filter((([e,t])=>t[0]&31)).map((([e,t])=>{var r;const s=t[1]||e;o.set(s,e);if(t[0]&512){(r=n.U)==null?void 0:r.push([e,s])}return s}))]))}}return e};var Tt=async(e,t,n,o)=>{let r;if((t.u&32)===0){t.u|=32;const o=n.$;if(o){const o=U(n,t);if(o&&"then"in o){const e=je();r=await o;e()}else{r=o}if(!r){throw new Error(`Constructor for "${n.S}#${t.W}" was not found`)}if(!r.isProxied){{n._=r.watchers;n.H=r.serializers;n.B=r.deserializers}Pt(r,n,2);r.isProxied=true}const s=Oe("createInstance",n.S);{t.u|=8}try{new r(t)}catch(t){L(t,e)}{t.u&=-9}{t.u|=128}s();Dt(t.l,e)}else{r=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.u|=128))}if(r&&r.style){let e;if(typeof r.style==="string"){e=r.style}const t=Ie(n);if(!A.has(t)){const o=Oe("registerStyles",n.S);Me(t,e,!!(n.u&1));o()}}}const s=t.F;const i=()=>ht(t,true);if(s&&s["s-rc"]){s["s-rc"].push(i)}else{i()}};var Dt=(e,t)=>{{Mt(e,"connectedCallback",void 0,t)}};var xt=e=>{if((H.u&1)===0){const t=T(e);if(!t){return}const n=t.t;const o=Oe("connectedCallback",n.S);if(!(t.u&1)){t.u|=1;{if(n.u&(4|8)){Nt(e)}}{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){pt(t,t.F=n);break}}}if(n.o){Object.entries(n.o).map((([t,[n]])=>{if(n&31&&t in e&&e[t]!==Object.prototype[t]){const n=e[t];delete e[t];e[t]=n}}))}{Tt(e,t,n)}}else{At(e,t,n.G);if(t==null?void 0:t.l){Dt(t.l,e)}else if(t==null?void 0:t.p){t.p.then((()=>Dt(t.l,e)))}}o()}};var Nt=e=>{if(!B.document){return}const t=e["s-cr"]=B.document.createComment("");t["s-cn"]=true;dt(e,t,e.firstChild)};var Lt=(e,t)=>{{Mt(e,"disconnectedCallback",void 0,t||e)}};var Rt=async e=>{if((H.u&1)===0){const t=T(e);{if(t==null?void 0:t.q){t.q.map((e=>e()));t.q=void 0}}if(t==null?void 0:t.l){Lt(t.l,e)}else if(t==null?void 0:t.p){t.p.then((()=>Lt(t.l,e)))}}if(ke.has(e)){ke.delete(e)}if(e.shadowRoot&&ke.has(e.shadowRoot)){ke.delete(e.shadowRoot)}};var Ut=(e,t={})=>{var n;if(!B.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const o=Oe();const r=[];const s=t.exclude||[];const i=B.customElements;const l=B.document.head;const a=l.querySelector("meta[charset]");const f=B.document.createElement("style");const c=[];let u;let d=true;Object.assign(H,t);H.O=new URL(t.resourcesUrl||"./",B.document.baseURI).href;let v=false;e.map((e=>{e[1].map((t=>{var n,o,l;const a={u:t[0],S:t[1],o:t[2],G:t[3]};if(a.u&4){v=true}{a.o=t[2]}{a.G=t[3]}{a.U=[]}{a._=(n=t[4])!=null?n:{};a.H=(o=t[5])!=null?o:{};a.B=(l=t[6])!=null?l:{}}const f=a.S;const p=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;x(e,a);if(a.u&1){{if(!e.shadowRoot){pe.call(e,a)}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${a.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=T(this);if(!e){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;At(this,e,a.G)}if(u){clearTimeout(u);u=null}if(d){c.push(this)}else{H.jmp((()=>xt(this)))}}disconnectedCallback(){H.jmp((()=>Rt(this)));H.raf((()=>{var e;const t=T(this);if(!t){return}const n=c.findIndex((e=>e===this));if(n>-1){c.splice(n,1)}if(((e=t==null?void 0:t.R)==null?void 0:e.D)instanceof Node&&!t.R.D.isConnected){delete t.R.D}}))}componentOnReady(){var e;return(e=T(this))==null?void 0:e.p}};a.$=e[0];if(!s.includes(f)&&!i.get(f)){r.push(f);i.define(f,Pt(p,a,1))}}))}));if(r.length>0){if(v){f.textContent+=V}{f.textContent+=r.sort()+F}if(f.innerHTML.length){f.setAttribute("data-styles","");const e=(n=H.j)!=null?n:re(B.document);if(e!=null){f.setAttribute("nonce",e)}l.insertBefore(f,a?a.nextSibling:l.firstChild)}}d=false;if(c.length){c.map((e=>e.connectedCallback()))}else{{H.jmp((()=>u=setTimeout(kt,30)))}}o()};var At=(e,t,n,o)=>{if(n&&B.document){n.map((([n,o,r])=>{const s=Vt(B.document,e,n);const i=Ft(t,r);const l=_t(n);H.ael(s,o,i,l);(t.q=t.q||[]).push((()=>H.rel(s,o,i,l)))}))}};var Ft=(e,t)=>n=>{var o;try{{if(e.u&256){(o=e.l)==null?void 0:o[t](n)}else{(e.V=e.V||[]).push([t,n])}}}catch(t){L(t,e.$hostElement$)}};var Vt=(e,t,n)=>{if(n&4){return e}return t};var _t=e=>W?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var Bt=e=>H.j=e;export{De as H,v as a,Ut as b,Fe as c,Ve as d,m as e,M as f,ne as g,Pe as h,k as i,b as j,w as k,g as l,p as o,z as p,D as r,Bt as s,y as t};
|
|
3
|
-
//# sourceMappingURL=p-
|
|
3
|
+
//# sourceMappingURL=p-Cb3Nnjkn.js.map
|