PageSourceSearch

https://luxeol.com/cdn/shop/t/80/assets/bundle-critical-20251209T124632-sh.js

js luxeol.com collected 2026-10-03 21:30:35 UTC 13,718 bytes, 1 lines download raw bytes

1var z=Object.defineProperty;var b=r=>{throw TypeError(r)};var A=(r,s,e)=>s in r?z(r,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[s]=e;var p=(r,s,e)=>A(r,typeof s!="symbol"?s+"":s,e),H=(r,s,e)=>s.has(r)||b("Cannot "+e);var u=(r,s,e)=>(H(r,s,"read from private field"),e?e.call(r):s.get(r)),g=(r,s,e)=>s.has(r)?b("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,e);import{E as c,y as d,B as I,S as f,u as k}from"./index-20251209T124632-sh.js";class y extends c{constructor(){super(...arguments);p(this,"_pendingTransitionEnd",null)}get isStatic(){return this.getAttribute("static")!==null}createHeadingCloseBtn(){const e=this.querySelector("slot-heading");if(!e||e.querySelector("layer-action"))return;const t=document.createElement("layer-action");t.setAttribute("close","");const n=document.createElement("button");n.className="icon icon-sm",n.type="button",n.innerHTML=window.SHARP_ICONS.close_sm,t.appendChild(n),e.appendChild(t)}setupMutationObserver(){const e=new MutationObserver(()=>this.createHeadingCloseBtn());e.observe(this,{childList:!0}),this.addEffect(()=>()=>e.disconnect())}moveToManager(){var e;!this.isStatic&&(!this.parentNode||this.parentNode!==document.body&&this.parentNode!==this.closest("website-manager"))&&((e=this.closest("website-manager"))==null||e.appendChild(this))}setupLayerManager(){if(!this.id)throw new d({message:"No id provided",element:this});const e=this.closest("website-manager");if(!e)throw new d({message:"No manager found",element:this});e.subscribeLayerManager(t=>{const n=t.lastIndexOf(this.id);if(this._pendingTransitionEnd||(this._pendingTransitionEnd=null),n>-1)this.classList.add("is-active"),this.style.zIndex=`${51+n}`,this.classList.toggle("!transition-none",n!==0),this._pendingTransitionEnd&&(this.removeEventListener("transitionend",this._pendingTransitionEnd),this._pendingTransitionEnd=null);else{this.classList.remove("is-active");const i=a=>{a.propertyName==="transform"&&(this.classList.contains("is-active")||(this.style.zIndex=""),this.removeEventListener("transitionend",i),this._pendingTransitionEnd=null)};this._pendingTransitionEnd=i,this.addEventListener("transitionend",i),t.length||this.classList.remove("!transition-none")}},{signal:this.signal})}onStart(){this.moveToManager(),this.createHeadingCloseBtn(),this.setupMutationObserver(),this.setupLayerManager()}}customElements.define("ui-panel",y);const D=Object.freeze(Object.defineProperty({__proto__:null,UiPanel:y},Symbol.toStringTag,{value:"Module"}));class v extends c{onStart(){this.addEventListener("click",async()=>{const s={items:[]};for(let e=1;;e+=1){const t=this.dataset[`addtocartId${e}`],n=this.dataset[`addtocartPlan${e}`],i=this.dataset[`addtocartQty${e}`],a=this.dataset[`addtocartProp${e}`];if(!t)break;
1const o=i?Number.parseInt(i,10):1,l={id:Number.parseInt(t,10),quantity:o};n&&(l.selling_plan=Number.parseInt(n,10)),a&&a.length>0&&(l.properties=JSON.parse(a)),s.items.push(l)}s.items.length&&(this.classList.add("is-loading","is-adding"),await I(s),this.classList.remove("is-loading","is-adding"),window.$WM.openCartPanelUsingSettings())})}}customElements.define("atc-btn",v);const V=Object.freeze(Object.defineProperty({__proto__:null,AtcBtn:v},Symbol.toStringTag,{value:"Module"}));class _ extends c{onStart(){const s=this.attributes,e={};for(const t of s){const n=t.name,i=t.value,a=/@([a-zA-Z0-9_-]+):([a-zA-Z0-9_-]+)/g.exec(n);if(a){const[o,l,N]=a;e[l]={methodName:N,value:i}}}for(const[t,{methodName:n,value:i}]of Object.entries(e))this.addEventListener(t,()=>{const a=this.getAttribute("parent");if(!a)throw new d({message:"No parent attribute found",element:this});const o=this.closest(a);if(!o)throw new d({message:"Parent element not found",element:this});const l=this.kebabToCamelCase(n);if(!(l in o))throw new d({message:`Method '${l}' not found in parent '${a}'`,element:this});if(typeof o[l]!="function")throw new d({message:`Method '${l}' is not a function in parent '${a}'`,element:this});o[l](i)})}kebabToCamelCase(s){return s.replace(/-([a-z])/g,e=>e[1].toUpperCase())}}customElements.define("call-parent",_);const F=Object.freeze(Object.defineProperty({__proto__:null,CallParent:_},Symbol.toStringTag,{value:"Module"}));class w extends c{onStart(){const s=this.children[0];if(!s)throw new d({message:"child element is missing",element:this});for(const[e,t]of Object.entries(this.dataset))e.startsWith("attr")&&e.length>4&&t&&s.setAttribute(e.slice(4),t)}}customElements.define("child-defer-attr",w);const U=Object.freeze(Object.defineProperty({__proto__:null,ChildDeferAttr:w},Symbol.toStringTag,{value:"Module"}));class S extends c{onStart(){const s=this.dataset.vars;if(!s)return;const e=s.split(" ");window.$WM.cssVars.listenChange(t=>{requestAnimationFrame(()=>{for(const n of e)this.style.setProperty(n,t[n])})},{signal:this.signal})}}customElements.define("css-var",S);const R=Object.freeze(Object.defineProperty({__proto__:null,CssVar:S},Symbol.toStringTag,{value:"Module"}));class E extends c{processClass(s){const e=`${s}Target`,t=`${s}Classname`,n=`${s}Delay`,i=this.dataset[e],a=this.dataset[t]||"is-active",o=Number(this.dataset[n])||0;if(!i||i.length===0)throw new Error(`data-${e} is not defined or empty`);if(typeof o!="number")throw new Error(`data-${n} is wrong or not a number`);this.addEventListener("click",()=>{const l=f(this,i);this.editClassAll(l,a,s,o)},{signal:this.signal})}editClassAll(s,e,t,n=0){setTimeout(()=>{for(const i of s)i.classList[t](e)},n)}onStart(){const s=["add","remove","toggle"];for(const e of s)this.dataset[`${e}Target`]&&this.processClass(e)}}customElements.define("edit-class",E);const K=Object.freeze(Object.defineProperty({__proto__:null,EditClass:E},Symbol.toStringTag,{value:"Module"}));class O extends c{async setVisibility(s){if(s&&s.length>0){let e=s.at(-1)??this._throwError("overlay id is required"),t=document.getElementById(e);const n=new Set;for(;t&&"zelement"in(t.dataset||{})&&!n.has(t.id);){n.add(t.id);const a=t.dataset.zelement||"";if(a===e||a==="")break;const o=document.getElementById(a);if(!o)break;e=a,t=o}const i=Number(t?window.getComputedStyle(t).zIndex:0);this.style.zIndex=`${i}`,this.classList.add("is-active"),document.body.style.overflow="hidden"}else this.classList.remove("is-active"),document.body.style.overflow=""}onStart(){var e;(!this.parentNode||this.parentNode!==document.body&&this.parentNode!==this.closest("website-manager"))&&((e=this.closest("website-manager"))==null||e.appendChild(this)),this.addEventListener("click",()=>{var t;(t=this.closest("website-manager"))==null||t.resetOverlayHistory()});const s=this.closest("website-manager");if(!s)throw new Error("No manager found");s.subscribeLayerManager(t=>{setTimeout(()=>{this.setVisibility(t)},10)},{signal:this.signal})}}customElements.define("global-overlay",O);const Q=Object.freeze(Object.defineProperty({__proto__:null,GlobalOverlay:O},Symbol.toStringTag,{value:"Module"}));var h,m;class L extends c{constructor(){super(...arguments);g(this,h,this._attribute("parent","string",!0));g(this,m,this._attribute("path"))}onStart(){const e=this.closest(u(this,h)??"website-manager");if(!e)throw new d({message:"No parent found",element:this});const[t,...n]=u(this,m).split(".");if(!(t in e))throw new d({message:"Public method not found",element:this});const i=e[t];typeof i=="function"&&i(a=>{const o=a?k(a,n.join(".")):this.getAttribute("value");this.textContent=o,this.setAttribute("value",o??"")},{signal:this.signal})}}h=new WeakMap,m=new WeakMap;customElements.define("inject-parent-state",L);const W=Object.freeze(Object.defineProperty({__proto__:null,InjectParentState:L},Symbol.toStringTag,{value:"Module"}));
1class M extends c{onStart(){this.addEventListener("click",s=>{var n,i,a,o;if(s.preventDefault(),this.hasAttribute("back")){(n=this.closest("website-manager"))==null||n.backOverlayHistory();return}if(this.hasAttribute("close")){(i=this.closest("website-manager"))==null||i.resetOverlayHistory();return}const e=this.getAttribute("layer-id");if(!e)throw new d({message:"No layer-id provided",element:this});const t=e.split(",").map(l=>l.trim());this.hasAttribute("replace")?(a=this.closest("website-manager"))==null||a.replaceOverlayHistory(t):(o=this.closest("website-manager"))==null||o.addOverlayHistory(t)})}}customElements.define("layer-action",M);const Z=Object.freeze(Object.defineProperty({__proto__:null,LayerAction:M},Symbol.toStringTag,{value:"Module"}));class $ extends c{async onStart(){await this.refresh()}async refresh(){const{url:s}=this.dataset;if(!s)throw this._throwError("URL is missing");if(!this.id)throw this._throwError("Element ID is missing");const t=(await fetch(s).then(n=>n.text()).then(n=>new DOMParser().parseFromString(n,"text/html"))).getElementById(this.id);if(!t)throw this._throwError("Element not found after fetching");this.innerHTML=t.innerHTML}}customElements.define("lazyload-fetch",$);const G=Object.freeze(Object.defineProperty({__proto__:null,LazyloadFetch:$},Symbol.toStringTag,{value:"Module"}));class T extends c{onStart(){const s=this.querySelectorAll("[megamenu-link]");for(const t of s)t.addEventListener("click",()=>{var i,a;const{megamenuId:n}=t.dataset;t.classList.contains("is-open")?(i=this.closest("website-manager"))==null||i.resetOverlayHistory():n&&((a=this.closest("website-manager"))==null||a.replaceOverlayHistory([n]))},{signal:this.signal});const e=this.closest("website-manager");if(!e)throw new d({message:"No manager found",element:this});e.subscribeLayerManager(t=>{if(this.closeMegamenu(),t.length){const n=this.querySelector(`#${t}`);n==null||n.classList.add("is-active");const i=this.querySelector(`[data-megamenu-id="${t}"]`);i==null||i.classList.add("is-open")}},{signal:this.signal})}closeMegamenu(){const s=this.querySelectorAll("[megamenu-item]");for(const t of s)t.classList.remove("is-active");const e=this.querySelectorAll("[megamenu-link].is-open");for(const t of e)t.classList.remove("is-open")}}customElements.define("mega-menu",T);const J=Object.freeze(Object.defineProperty({__proto__:null,Megamenu:T},Symbol.toStringTag,{value:"Module"}));class j extends c{onStart(){this.addEventListener("click",async()=>{const s=this._attribute("data-url"),e=this._attribute("data-replace-mode","string",!0)||"outer",t=f(this,this._attribute("data-replace-selector"));if(t.length===0)throw this._throwError("No target elements found");const n=await fetch(s).then(o=>o.text()).then(o=>new DOMParser().parseFromString(o,"text/html")),i=this._attribute("data-fetch-selector","string",!0);let a;if(i){const o=f(n.body,i);if(o.length===0)throw this._throwError("Source element not found in fetched content");a=o[0]}else a=n.body;for(const o of t)e==="outer"?o.outerHTML=a.outerHTML:o.innerHTML=a.innerHTML})}}customElements.define("onclick-fetch",j);const X=Object.freeze(Object.defineProperty({__proto__:null,OnClickFetch:j},Symbol.toStringTag,{value:"Module"}));class x extends c{getHeight(s){const{height:e}=s.getBoundingClientRect(),{heightVariable:t}=s.dataset,{body:n}=document;if(!t)throw new Error("Missing data-height-variable attribute");n.style.setProperty(`--${t}`,`${e}px`)}onStart(){const s=new ResizeObserver(()=>{this.getHeight(this)});this.addEffect(()=>(s.observe(this),()=>s.disconnect()))}}customElements.define("set-height-variable",x);const Y=Object.freeze(Object.defineProperty({__proto__:null,SetHeightVariable:x},Symbol.toStringTag,{value:"Module"}));class C extends c{createHeadingCloseBtn(){const s=this.querySelector("slot-heading");if(!s||s.querySelector("layer-action"))return;const e=document.createElement("layer-action");e.setAttribute("close","");const t=document.createElement("button");t.className="btn btn-ghost btn-square btn-sm svg-fit",t.type="button",t.innerHTML=window.SHARP_ICONS.close,e.appendChild(t),s.appendChild(e)}setupMutationObserver(){const s=new MutationObserver(()=>this.createHeadingCloseBtn());s.observe(this,{childList:!0}),this.addEffect(()=>()=>s.disconnect())}onStart(){var e;if((!this.parentNode||this.parentNode!==document.body&&this.parentNode!==this.closest("website-manager"))&&((e=this.closest("website-manager"))==null||e.appendChild(this)),!this.id
1){console.error({message:"No id provided",element:this});return}const s=this.closest("website-manager");if(!s)throw new Error("No manager found");this.createHeadingCloseBtn(),this.setupMutationObserver(),s.subscribeLayerManager(t=>{const n=t.lastIndexOf(this.id);n>-1?(this.classList.add("is-active"),this.style.zIndex=`${51+n}`,n!==0?this.classList.add("!transition-none"):this.classList.remove("!transition-none")):(this.classList.remove("is-active"),this.style.zIndex="",t.length||this.classList.remove("!transition-none"))},{signal:this.signal})}}customElements.define("ui-modal",C);const ee=Object.freeze(Object.defineProperty({__proto__:null,UiModal:C},Symbol.toStringTag,{value:"Module"}));class P extends c{onStart(){const s=this.querySelectorAll("[tab-btn]");for(const t of s)t.addEventListener("click",n=>{n.preventDefault();const i=this.querySelector("[tab-btn].tab-active");i==null||i.classList.remove("tab-active"),t.classList.add("tab-active");const a=t.dataset.id,o=this.querySelector(`[tab-content][data-id="${a}"]`),l=this.querySelector("[tab-content].is-active");l==null||l.classList.remove("is-active"),o==null||o.classList.add("is-active")},{signal:this.signal});if(!this.querySelector("[tab-btn].tab-active")){const t=this.querySelector("[tab-btn]");t==null||t.click()}}}customElements.define("ui-tabs",P);const te=Object.freeze(Object.defineProperty({__proto__:null,UiTabs:P},Symbol.toStringTag,{value:"Module"}));export{y as U,V as a,U as b,F as c,R as d,K as e,G as f,Q as g,ee as h,W as i,te as j,Z as l,J as m,X as o,Y as s,D as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.