@bluepic/embed 0.2.34 → 0.2.35

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/main.mjs CHANGED
@@ -43538,18 +43538,17 @@ async function dP(e, n, t, i, a, r) {
43538
43538
  const pP = async () => {
43539
43539
  const e = document.querySelectorAll(".bluepic-embed[data-embed-project-id]");
43540
43540
  for (const n of e) {
43541
- const t = n.getAttribute("data-embed-project-id"), i = n.getAttribute("data-template-id");
43542
- n.getAttribute("data-stripe-env");
43543
- const a = n.getAttribute("data-init-data"), r = n.getAttribute("data-embed-api-base-url") ?? void 0, s = n.getAttribute("data-cloudflare-pages-hostname") ?? void 0, u = n.getAttribute("data-display-mode"), l = n.getAttribute("data-allow-pan-and-zoom"), d = n.getAttribute("data-bx-core-version") ?? void 0, p = a ? JSON.parse(a) : void 0, f = l === "true", b = u === "mobile" ? "mobile" : u === "stack" ? "stack" : "auto", v = n.getAttribute("data-branding") === "false";
43541
+ const t = n.getAttribute("data-embed-project-id"), i = n.getAttribute("data-template-id"), a = n.getAttribute("data-stripe-env"), r = n.getAttribute("data-init-data"), s = n.getAttribute("data-embed-api-base-url") ?? void 0, u = n.getAttribute("data-cloudflare-pages-hostname") ?? void 0, l = n.getAttribute("data-display-mode"), d = n.getAttribute("data-allow-pan-and-zoom"), p = n.getAttribute("data-bx-core-version") ?? void 0, f = r ? JSON.parse(r) : void 0, b = d === "true", v = l === "mobile" ? "mobile" : l === "stack" ? "stack" : "auto", h = n.getAttribute("data-branding") === "false";
43544
43542
  new Zv(n, i, t, {
43545
- initData: p,
43546
- displayMode: b,
43547
- allowPanAndZoom: f,
43548
- embedApiBaseUrl: r,
43549
- cloudflarePagesHostname: s,
43550
- bxCoreVersion: d,
43551
- branding: v,
43552
- theme: "auto"
43543
+ initData: f,
43544
+ displayMode: v,
43545
+ allowPanAndZoom: b,
43546
+ embedApiBaseUrl: s,
43547
+ cloudflarePagesHostname: u,
43548
+ bxCoreVersion: p,
43549
+ branding: h,
43550
+ theme: "auto",
43551
+ stripeEnv: a === "dev" ? "dev" : "prod"
43553
43552
  });
43554
43553
  }
43555
43554
  };