@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/bluepic-embed.iife.js +1 -1
- package/dist/bluepic-embed.iife.js.map +1 -1
- package/dist/bluepic-embed.umd.js +1 -1
- package/dist/bluepic-embed.umd.js.map +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.cjs.map +1 -1
- package/dist/main.mjs +10 -11
- package/dist/main.mjs.map +1 -1
- package/package.json +1 -1
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:
|
|
43546
|
-
displayMode:
|
|
43547
|
-
allowPanAndZoom:
|
|
43548
|
-
embedApiBaseUrl:
|
|
43549
|
-
cloudflarePagesHostname:
|
|
43550
|
-
bxCoreVersion:
|
|
43551
|
-
branding:
|
|
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
|
};
|