import{t}from"./main-v4-cG-pE7B4.js";import{t as e}from"./toast-DgCSlJPv.js";t(async()=>{const{MOCKUPS:t,RELATED:e}=await import("./product-mockups-d3jLQBKo.js");return{MOCKUPS:t,RELATED:e}},[]).then(({MOCKUPS:t,RELATED:e})=>{const a=document.getElementById("gallery-svg"),o=document.querySelectorAll(".gallery-thumb");function c(e){a.innerHTML=t[e]||""}o.forEach(e=>{e.innerHTML=t[e.dataset.view]||""}),c("overview"),document.getElementById("gallery-thumbs").addEventListener("click",t=>{const e=t.target.closest(".gallery-thumb");e&&(t.stopPropagation(),o.forEach(t=>t.classList.remove("active")),e.classList.add("active"),c(e.dataset.view))}),document.querySelectorAll(".related-card .thumb[data-thumb]").forEach(t=>{t.innerHTML=e[t.dataset.thumb]||""})}),document.querySelectorAll(".option-values").forEach(t=>{t.addEventListener("click",e=>{const a=e.target.closest(".option-value");a&&(e.stopPropagation(),t.querySelectorAll(".option-value").forEach(t=>t.classList.remove("active")),a.classList.add("active"))})});var a=document.getElementById("qty");document.getElementById("qty-dec").addEventListener("click",t=>{t.stopPropagation(),a.value=Math.max(1,parseInt(a.value,10)-1)}),document.getElementById("qty-inc").addEventListener("click",t=>{t.stopPropagation(),a.value=Math.min(99,parseInt(a.value,10)+1)}),document.querySelector(".product-tabs").addEventListener("click",t=>{const e=t.target.closest(".chart-tab");if(!e)return;const a=e.dataset.tab;document.querySelectorAll(".product-tab-panel").forEach(t=>{t.hidden=t.dataset.panel!==a})}),document.getElementById("add-cart").addEventListener("click",t=>{t.stopPropagation(),e(`Added ${a.value} × AdminLTE Pro to cart`,{variant:"success"})}),document.getElementById("buy-now").addEventListener("click",t=>{t.stopPropagation(),e("Redirecting to checkout…",{variant:"success"})});