{
  "version": 3,
  "sources": ["/cdn/shop/t/11/assets/pz-premium.js?x=1795388479813"],
  "sourcesContent": ["/* PupStarz premium layer (2026-11-22): small helpers only. The designer lives in veyra-designer.js (owned separately). */\n(() => {\n  const designerOpen = () => {\n    const d = document.querySelector('[data-vy-designer]');\n    return !!(d && !d.hidden && getComputedStyle(d).display !== 'none');\n  };\n  const buyBox = () => document.querySelector('.vy-make-wrap, .vy-make, [data-vy-open], variant-selects, .product__info-container');\n\n  /* links in the mobile menu close the drawer first, so the designer / page isn't hidden behind it */\n  document.addEventListener('click', (e) => {\n    const a = e.target.closest && e.target.closest('[data-psz-close-menu]');\n    if (!a) return;\n    const hd = document.querySelector('header-drawer');\n    const details = hd && hd.querySelector('details[open]');\n    if (hd && details && typeof hd.closeMenuDrawer === 'function') {\n      try { hd.closeMenuDrawer(e); } catch (err) { details.removeAttribute('open'); }\n    }\n    // same-page hash link (e.g. #how-it-works on home): let the browser scroll after the drawer closes\n  }, true);\n\n  /* \"#make-yours\" links: the designer opens them; if it didn't (no designer on this page yet), scroll to the buy box */\n  const fallbackToBuyBox = () => {\n    setTimeout(() => {\n      if (designerOpen()) return;\n      const t = buyBox();\n      if (t) t.scrollIntoView({ behavior: 'smooth', block: 'center' });\n    }, 120);\n  };\n  document.addEventListener('click', (e) => {\n    const a = e.target.closest && e.target.closest('a[href$=\"#make-yours\"]');\n    if (!a) return;\n    const url = new URL(a.href, location.href);\n    if (url.pathname !== location.pathname) return; // other page: normal navigation, the designer opens on arrival\n    fallbackToBuyBox();\n  });\n  if (location.hash === '#make-yours') window.addEventListener('load', fallbackToBuyBox);\n  /* designer hook (added by the designer work 2026-11-23): button-style links to a product page open the designer there */\n  document.addEventListener('click', (e) => { const a = e.target.closest && e.target.closest('a.psz-btn, a.psz-head-cta, a.psz-foot__cta, a.button'); if (a && !a.hash && a.origin === location.origin && a.pathname.indexOf('/products/') === 0) a.hash = 'make-yours'; }, true);\n\n  /* FAQ: opening #faq (or a link to it) opens the first question */\n  const openFaq = () => {\n    const f = document.getElementById('faq');\n    if (!f) return;\n    const first = f.querySelector('details');\n    if (first && !f.querySelector('details[open]')) first.open = true;\n  };\n  if (location.hash === '#faq') window.addEventListener('load', openFaq);\n  window.addEventListener('hashchange', () => { if (location.hash === '#faq') openFaq(); });\n\n  /* desktop sticky buy bar on the product page */\n  const bar = document.querySelector('[data-psz-sticky]');\n  if (bar) {\n    document.body.appendChild(bar.closest('.psz-sticky-section') || bar); // escape transformed parents\n    bar.hidden = false;\n    const target = document.querySelector('.vy-make') || document.querySelector('.product__info-container');\n    const footer = document.querySelector('.psz-foot, footer');\n    let pastBuy = false, atFooter = false;\n    const sync = () => bar.classList.toggle('is-on', pastBuy && !atFooter);\n    if (target && 'IntersectionObserver' in window) {\n      new IntersectionObserver(([en]) => { pastBuy = !en.isIntersecting && en.boundingClientRect.top < 0; sync(); }).observe(target);\n      if (footer) new IntersectionObserver(([en]) => { atFooter = en.isIntersecting; sync(); }).observe(footer);\n    }\n    bar.querySelector('[data-psz-make]')?.addEventListener('click', () => fallbackToBuyBox());\n  }\n})();\n"],
  "mappings": "CACC,IAAM,CACL,MAAM,aAAe,IAAM,CACzB,MAAM,EAAI,SAAS,cAAc,oBAAoB,EACrD,MAAO,CAAC,EAAE,GAAK,CAAC,EAAE,QAAU,iBAAiB,CAAC,EAAE,UAAY,OAC9D,EACM,OAAS,IAAM,SAAS,cAAc,oFAAoF,EAGhI,SAAS,iBAAiB,QAAU,GAAM,CAExC,GAAI,EADM,EAAE,OAAO,SAAW,EAAE,OAAO,QAAQ,uBAAuB,GAC9D,OACR,MAAM,GAAK,SAAS,cAAc,eAAe,EAC3C,QAAU,IAAM,GAAG,cAAc,eAAe,EACtD,GAAI,IAAM,SAAW,OAAO,GAAG,iBAAoB,WACjD,GAAI,CAAE,GAAG,gBAAgB,CAAC,CAAG,MAAc,CAAE,QAAQ,gBAAgB,MAAM,CAAG,CAGlF,EAAG,EAAI,EAGP,MAAM,iBAAmB,IAAM,CAC7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