@bluepic/embed 0.1.67 → 0.1.69
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/lib/bluepic-embed.es.js +39 -47
- package/lib/bluepic-embed.umd.js +13 -8
- package/lib/components/BluepicEmbedded.vue.d.ts +0 -11
- package/lib/components/BluepicEmbedded.vue.d.ts.map +1 -1
- package/lib/components/BluepicEmbeddedEditor.vue.d.ts +0 -175
- package/lib/components/BluepicEmbeddedEditor.vue.d.ts.map +1 -1
- package/lib/components/BluepicLiveTemplate.vue.d.ts +0 -35
- package/lib/components/BluepicLiveTemplate.vue.d.ts.map +1 -1
- package/lib/style.css +1 -1
- package/lib/util/bluepicEmbed.d.ts +2 -2
- package/lib/util/bluepicEmbed.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/bluepic-embed.es.js
CHANGED
|
@@ -30616,7 +30616,7 @@ const _hoisted_1$L = {
|
|
|
30616
30616
|
_: 3
|
|
30617
30617
|
}, 8, ["show", "trigger", "allowed-placements", "custom-classes"]));
|
|
30618
30618
|
}
|
|
30619
|
-
}),
|
|
30619
|
+
}), BxTooltip_vue_vue_type_style_index_0_scoped_0c1f2710_lang = "", BxTooltip_vue_vue_type_style_index_1_lang = "", BxTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-0c1f2710"]]), _hoisted_1$J = {
|
|
30620
30620
|
key: 0,
|
|
30621
30621
|
class: "bx-input__prefix"
|
|
30622
30622
|
}, _hoisted_2$w = ["placeholder", "readonly"], _hoisted_3$m = ["readonly", "placeholder", "type"], _hoisted_4$e = {
|
|
@@ -72098,19 +72098,19 @@ function convertDeprecatedField(m) {
|
|
|
72098
72098
|
function getCloudflareLiveUrl(m, c) {
|
|
72099
72099
|
return `https://${m !== "auto" ? `${m.replaceAll(/\./g, "-")}.` : ""}${c.cloudflarePagesHostname}`;
|
|
72100
72100
|
}
|
|
72101
|
-
function getTemplateSerialUrl(m, c
|
|
72102
|
-
return `${
|
|
72101
|
+
function getTemplateSerialUrl(m, c) {
|
|
72102
|
+
return `${c.studioResourcesBaseUrl}${c.authorization ? `/auth.proxy/${c.authorization}` : ""}/api/files/${m}/default`;
|
|
72103
72103
|
}
|
|
72104
|
-
function getTemplateLiveUrl(m, c, ie
|
|
72105
|
-
return `${getCloudflareLiveUrl(
|
|
72104
|
+
function getTemplateLiveUrl(m, c, ie) {
|
|
72105
|
+
return `${getCloudflareLiveUrl(c, ie)}?` + new URLSearchParams(
|
|
72106
72106
|
Object.fromEntries(
|
|
72107
72107
|
Object.entries({
|
|
72108
|
-
fonts: JSON.stringify(
|
|
72109
|
-
webgl:
|
|
72110
|
-
resolution:
|
|
72111
|
-
autoDetectBxCoreVersion: String(
|
|
72112
|
-
resolveSerial:
|
|
72113
|
-
}).filter(([,
|
|
72108
|
+
fonts: JSON.stringify(ie.config.fonts ?? []),
|
|
72109
|
+
webgl: ie.config.webgl,
|
|
72110
|
+
resolution: ie.config.resolution,
|
|
72111
|
+
autoDetectBxCoreVersion: String(c === "auto"),
|
|
72112
|
+
resolveSerial: ie.useBoilerplate ? void 0 : getTemplateSerialUrl(m, ie)
|
|
72113
|
+
}).filter(([, $e]) => $e && $e !== "null")
|
|
72114
72114
|
)
|
|
72115
72115
|
).toString();
|
|
72116
72116
|
}
|
|
@@ -76723,7 +76723,6 @@ const _hoisted_1$h = { class: "bluepic-embedded-wrapper" }, _hoisted_2$d = ["src
|
|
|
76723
76723
|
templateId: {},
|
|
76724
76724
|
studioResourcesBaseUrl: {},
|
|
76725
76725
|
cloudflarePagesHostname: {},
|
|
76726
|
-
publishedVersionSlug: { default: "latest" },
|
|
76727
76726
|
bxCoreVersion: { default: "auto" },
|
|
76728
76727
|
authorization: { default: void 0 },
|
|
76729
76728
|
data: { default: () => ({}) },
|
|
@@ -76740,7 +76739,7 @@ const _hoisted_1$h = { class: "bluepic-embedded-wrapper" }, _hoisted_2$d = ["src
|
|
|
76740
76739
|
).value ? new Promise(async (Jr, Xr) => {
|
|
76741
76740
|
if (we.baseSerial)
|
|
76742
76741
|
return Jr(we.baseSerial);
|
|
76743
|
-
const li = getTemplateSerialUrl(we.templateId,
|
|
76742
|
+
const li = getTemplateSerialUrl(we.templateId, {
|
|
76744
76743
|
studioResourcesBaseUrl: we.studioResourcesBaseUrl,
|
|
76745
76744
|
authorization: we.authorization,
|
|
76746
76745
|
cloudflarePagesHostname: we.cloudflarePagesHostname,
|
|
@@ -76760,7 +76759,7 @@ const _hoisted_1$h = { class: "bluepic-embedded-wrapper" }, _hoisted_2$d = ["src
|
|
|
76760
76759
|
bi++;
|
|
76761
76760
|
}
|
|
76762
76761
|
ui || Xr(new Error("Failed to fetch serial"));
|
|
76763
|
-
}) : void 0, ne = computed(() => getTemplateLiveUrl(we.templateId, we.
|
|
76762
|
+
}) : void 0, ne = computed(() => getTemplateLiveUrl(we.templateId, we.bxCoreVersion, {
|
|
76764
76763
|
studioResourcesBaseUrl: we.studioResourcesBaseUrl,
|
|
76765
76764
|
authorization: we.authorization,
|
|
76766
76765
|
cloudflarePagesHostname: we.cloudflarePagesHostname,
|
|
@@ -76884,7 +76883,7 @@ const _hoisted_1$h = { class: "bluepic-embedded-wrapper" }, _hoisted_2$d = ["src
|
|
|
76884
76883
|
}, null, 8, _hoisted_2$d)
|
|
76885
76884
|
]));
|
|
76886
76885
|
}
|
|
76887
|
-
}),
|
|
76886
|
+
}), BluepicEmbedded_vue_vue_type_style_index_0_scoped_b2100af7_lang = "", BluepicEmbedded = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-b2100af7"]]);
|
|
76888
76887
|
function Ee(m) {
|
|
76889
76888
|
return getCurrentScope() ? (onScopeDispose(m), !0) : !1;
|
|
76890
76889
|
}
|
|
@@ -77793,7 +77792,6 @@ const Rt = 10, Yt = 10, Xt = /* @__PURE__ */ defineComponent({
|
|
|
77793
77792
|
studioResourcesBaseUrl: {},
|
|
77794
77793
|
cloudflarePagesHostname: {},
|
|
77795
77794
|
bxCoreVersion: {},
|
|
77796
|
-
publishedSlug: {},
|
|
77797
77795
|
authorization: {},
|
|
77798
77796
|
asyncSerial: { type: Boolean },
|
|
77799
77797
|
resolution: {},
|
|
@@ -78120,7 +78118,6 @@ const Rt = 10, Yt = 10, Xt = /* @__PURE__ */ defineComponent({
|
|
|
78120
78118
|
"studio-resources-base-url": In.studioResourcesBaseUrl,
|
|
78121
78119
|
"cloudflare-pages-hostname": In.cloudflarePagesHostname,
|
|
78122
78120
|
"bx-core-version": In.bxCoreVersion,
|
|
78123
|
-
"published-slug": In.publishedSlug,
|
|
78124
78121
|
authorization: In.authorization,
|
|
78125
78122
|
"async-serial": In.asyncSerial,
|
|
78126
78123
|
resolution: In.resolution,
|
|
@@ -78136,7 +78133,7 @@ const Rt = 10, Yt = 10, Xt = /* @__PURE__ */ defineComponent({
|
|
|
78136
78133
|
"global-scope": ne.value,
|
|
78137
78134
|
"onUpdate:globalScope": tn[3] || (tn[3] = (ji) => ne.value = ji),
|
|
78138
78135
|
onError: ri
|
|
78139
|
-
}, null, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "
|
|
78136
|
+
}, null, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "authorization", "async-serial", "resolution", "webgl", "fonts", "base-serial", "data", "serial", "ready", "global-scope"])
|
|
78140
78137
|
]),
|
|
78141
78138
|
matrix: withCtx(({ composePoint: ji }) => [
|
|
78142
78139
|
In.watermark ? (openBlock(), createElementBlock("div", {
|
|
@@ -78204,7 +78201,7 @@ const Rt = 10, Yt = 10, Xt = /* @__PURE__ */ defineComponent({
|
|
|
78204
78201
|
}, 8, ["transform", "width", "height", "mouse", "touch", "wheel"]))
|
|
78205
78202
|
], 38));
|
|
78206
78203
|
}
|
|
78207
|
-
}),
|
|
78204
|
+
}), BluepicLiveTemplate_vue_vue_type_style_index_0_scoped_c136c6ed_lang = "", BluepicLiveTemplate_vue_vue_type_style_index_1_scoped_c136c6ed_lang = "", BluepicLiveTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-c136c6ed"]]), _hoisted_1$f = { class: "label" }, _hoisted_2$b = { class: "field-wrapper" }, _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
78208
78205
|
__name: "KioskField",
|
|
78209
78206
|
props: {
|
|
78210
78207
|
serial: {},
|
|
@@ -95304,7 +95301,6 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
95304
95301
|
studioResourcesBaseUrl: {},
|
|
95305
95302
|
cloudflarePagesHostname: {},
|
|
95306
95303
|
bxCoreVersion: {},
|
|
95307
|
-
publishedSlug: {},
|
|
95308
95304
|
authorization: {},
|
|
95309
95305
|
asyncSerial: { type: Boolean },
|
|
95310
95306
|
baseSerial: {},
|
|
@@ -95675,7 +95671,6 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
95675
95671
|
"studio-resources-base-url": Kr.studioResourcesBaseUrl,
|
|
95676
95672
|
"cloudflare-pages-hostname": Kr.cloudflarePagesHostname,
|
|
95677
95673
|
"bx-core-version": Kr.bxCoreVersion,
|
|
95678
|
-
"published-slug": Kr.publishedSlug,
|
|
95679
95674
|
authorization: Kr.authorization,
|
|
95680
95675
|
"async-serial": Kr.asyncSerial,
|
|
95681
95676
|
resolution: Kr.resolution,
|
|
@@ -95692,7 +95687,7 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
95692
95687
|
watermark: Kr.watermark,
|
|
95693
95688
|
"zoom-and-pan": Kr.zoomAndPan,
|
|
95694
95689
|
scrollbars: Kr.zoomAndPan
|
|
95695
|
-
}, null, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "
|
|
95690
|
+
}, null, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "authorization", "async-serial", "resolution", "webgl", "fonts", "base-serial", "data", "serial", "ready", "watermark", "zoom-and-pan", "scrollbars"])
|
|
95696
95691
|
], 2)
|
|
95697
95692
|
])) : Wr.value === "mobile" ? (openBlock(), createElementBlock("div", {
|
|
95698
95693
|
key: 1,
|
|
@@ -95710,7 +95705,6 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
95710
95705
|
"studio-resources-base-url": Kr.studioResourcesBaseUrl,
|
|
95711
95706
|
"cloudflare-pages-hostname": Kr.cloudflarePagesHostname,
|
|
95712
95707
|
"bx-core-version": Kr.bxCoreVersion,
|
|
95713
|
-
"published-slug": Kr.publishedSlug,
|
|
95714
95708
|
authorization: Kr.authorization,
|
|
95715
95709
|
"async-serial": Kr.asyncSerial,
|
|
95716
95710
|
resolution: Kr.resolution,
|
|
@@ -95727,7 +95721,7 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
95727
95721
|
watermark: Kr.watermark,
|
|
95728
95722
|
"zoom-and-pan": Kr.zoomAndPan,
|
|
95729
95723
|
scrollbars: Kr.zoomAndPan
|
|
95730
|
-
}, null, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "
|
|
95724
|
+
}, null, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "authorization", "async-serial", "resolution", "webgl", "fonts", "base-serial", "data", "serial", "ready", "watermark", "zoom-and-pan", "scrollbars"])
|
|
95731
95725
|
], 2),
|
|
95732
95726
|
Ze.value?.animation.enabled ? (openBlock(), createElementBlock("div", _hoisted_14$2, [
|
|
95733
95727
|
createElementVNode("div", _hoisted_15$1, toDisplayString(unref(timestampToTimecode)(Zr.value * 1e3, ",")) + " / " + toDisplayString(unref(timestampToTimecode)((Ze.value?.animation.duration ?? 120) * 1e3, ",")), 1),
|
|
@@ -95840,7 +95834,6 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
95840
95834
|
"studio-resources-base-url": Kr.studioResourcesBaseUrl,
|
|
95841
95835
|
"cloudflare-pages-hostname": Kr.cloudflarePagesHostname,
|
|
95842
95836
|
"bx-core-version": Kr.bxCoreVersion,
|
|
95843
|
-
"published-slug": Kr.publishedSlug,
|
|
95844
95837
|
authorization: Kr.authorization,
|
|
95845
95838
|
"async-serial": Kr.asyncSerial,
|
|
95846
95839
|
resolution: Kr.resolution,
|
|
@@ -95857,7 +95850,7 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
95857
95850
|
watermark: Kr.watermark,
|
|
95858
95851
|
"zoom-and-pan": Kr.zoomAndPan,
|
|
95859
95852
|
scrollbars: Kr.zoomAndPan
|
|
95860
|
-
}, null, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "
|
|
95853
|
+
}, null, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "authorization", "async-serial", "resolution", "webgl", "fonts", "base-serial", "data", "serial", "ready", "watermark", "zoom-and-pan", "scrollbars"])
|
|
95861
95854
|
], 2),
|
|
95862
95855
|
Ze.value?.animation.enabled ? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
95863
95856
|
createElementVNode("div", _hoisted_19, toDisplayString(unref(timestampToTimecode)(Zr.value * 1e3, ",")) + " / " + toDisplayString(unref(timestampToTimecode)((Ze.value?.animation.duration ?? 120) * 1e3, ",")), 1),
|
|
@@ -95990,7 +95983,6 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
95990
95983
|
"studio-resources-base-url": Kr.studioResourcesBaseUrl,
|
|
95991
95984
|
"cloudflare-pages-hostname": Kr.cloudflarePagesHostname,
|
|
95992
95985
|
"bx-core-version": Kr.bxCoreVersion,
|
|
95993
|
-
"published-slug": Kr.publishedSlug,
|
|
95994
95986
|
authorization: Kr.authorization,
|
|
95995
95987
|
"async-serial": Kr.asyncSerial,
|
|
95996
95988
|
resolution: Kr.resolution,
|
|
@@ -96018,7 +96010,7 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
96018
96010
|
])
|
|
96019
96011
|
]),
|
|
96020
96012
|
_: 1
|
|
96021
|
-
}, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "
|
|
96013
|
+
}, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "authorization", "async-serial", "resolution", "webgl", "fonts", "data", "serial", "ready", "watermark", "zoom-and-pan", "scrollbars"])
|
|
96022
96014
|
], 2),
|
|
96023
96015
|
ne.value ? (openBlock(), createElementBlock("div", _hoisted_31, [
|
|
96024
96016
|
createElementVNode("div", _hoisted_32, [
|
|
@@ -96060,7 +96052,7 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
96060
96052
|
])
|
|
96061
96053
|
], 2));
|
|
96062
96054
|
}
|
|
96063
|
-
}),
|
|
96055
|
+
}), BluepicEmbeddedEditor_vue_vue_type_style_index_0_scoped_2b44f396_lang = "", BluepicEmbeddedEditor = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-2b44f396"]]), _hoisted_1$a = { class: "collection-field-popup" }, _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
96064
96056
|
__name: "CollectionFieldPopup",
|
|
96065
96057
|
props: /* @__PURE__ */ mergeModels({
|
|
96066
96058
|
layout: {},
|
|
@@ -96491,7 +96483,6 @@ const _hoisted_1$7 = { class: "import-data" }, _hoisted_2$5 = { class: "source-s
|
|
|
96491
96483
|
studioResourcesBaseUrl: {},
|
|
96492
96484
|
cloudflarePagesHostname: {},
|
|
96493
96485
|
bxCoreVersion: {},
|
|
96494
|
-
publishedSlug: {},
|
|
96495
96486
|
authorization: {},
|
|
96496
96487
|
asyncSerial: { type: Boolean },
|
|
96497
96488
|
resolution: {},
|
|
@@ -96763,7 +96754,6 @@ const _hoisted_1$7 = { class: "import-data" }, _hoisted_2$5 = { class: "source-s
|
|
|
96763
96754
|
"studio-resources-base-url": qr.studioResourcesBaseUrl,
|
|
96764
96755
|
"cloudflare-pages-hostname": qr.cloudflarePagesHostname,
|
|
96765
96756
|
"bx-core-version": qr.bxCoreVersion,
|
|
96766
|
-
"published-slug": qr.publishedSlug,
|
|
96767
96757
|
authorization: qr.authorization,
|
|
96768
96758
|
"async-serial": qr.asyncSerial,
|
|
96769
96759
|
resolution: qr.resolution,
|
|
@@ -96776,7 +96766,7 @@ const _hoisted_1$7 = { class: "import-data" }, _hoisted_2$5 = { class: "source-s
|
|
|
96776
96766
|
ready: rr.value,
|
|
96777
96767
|
"onUpdate:ready": ci[4] || (ci[4] = (Ti) => rr.value = Ti),
|
|
96778
96768
|
onMatrixClick: pr
|
|
96779
|
-
}, null, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "
|
|
96769
|
+
}, null, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "authorization", "async-serial", "resolution", "webgl", "fonts", "data", "serial", "ready"]),
|
|
96780
96770
|
Pr.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
96781
96771
|
createVNode(BxButton, {
|
|
96782
96772
|
class: "btn-prev",
|
|
@@ -96995,7 +96985,7 @@ const _hoisted_1$7 = { class: "import-data" }, _hoisted_2$5 = { class: "source-s
|
|
|
96995
96985
|
])) : createCommentVNode("", !0)
|
|
96996
96986
|
], 2));
|
|
96997
96987
|
}
|
|
96998
|
-
}),
|
|
96988
|
+
}), BluepicBatchEditor_vue_vue_type_style_index_0_scoped_92613d5a_lang = "", BluepicBatchEditor = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-92613d5a"]]), _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
96999
96989
|
__name: "BxSwitch",
|
|
97000
96990
|
props: /* @__PURE__ */ mergeModels({
|
|
97001
96991
|
disabled: { type: Boolean, default: !1 }
|
|
@@ -97651,7 +97641,7 @@ function useTheme(m = GLOBAL_APP_WRAPPER_SELECTOR, c = "auto") {
|
|
|
97651
97641
|
return Ze.setAttribute("data-bx-style-target", ie), watch($e, () => {
|
|
97652
97642
|
if ($e.value) {
|
|
97653
97643
|
let ne = document.querySelector(`style[data-bx-style='${ie}']`);
|
|
97654
|
-
ne || (ne = document.createElement("style"), ne.setAttribute("data-bx-style", ie), document.head.appendChild(ne)), ne.innerHTML = `[data-bx-style-target='${ie}'] { ${Object.entries($e.value).map(([rr, pr]) => `${rr}: ${pr};`).join(" ")} }`;
|
|
97644
|
+
ne || (ne = document.createElement("style"), ne.setAttribute("data-bx-style", ie), document.head.appendChild(ne)), ne.innerHTML = `[data-bx-style-target='${ie}'], .bluepic-popup-provider__wrapper { ${Object.entries($e.value).map(([rr, pr]) => `${rr}: ${pr};`).join(" ")} }`;
|
|
97655
97645
|
}
|
|
97656
97646
|
}, { immediate: !0, deep: !0 }), we;
|
|
97657
97647
|
}
|
|
@@ -97718,6 +97708,9 @@ const BxEmbedThemeDarkmode = `:root {
|
|
|
97718
97708
|
--popover-arrow-border-color: #3f3f45;
|
|
97719
97709
|
--popup-background-color: rgb(41, 41, 49);
|
|
97720
97710
|
|
|
97711
|
+
--tooltip-background-color: rgba(255, 255, 255);
|
|
97712
|
+
--tooltip-text-color: rgba(var(--text-color-alt), 1);
|
|
97713
|
+
|
|
97721
97714
|
--menu-item-color: rgba(var(--text-color-base), 1);
|
|
97722
97715
|
--menu-item-color-active: rgba(var(--primary-color-bright), 1);
|
|
97723
97716
|
--menu-item-background-color: transparent;
|
|
@@ -97893,6 +97886,9 @@ const BxEmbedThemeDarkmode = `:root {
|
|
|
97893
97886
|
--popover-arrow-border-color: rgba(9, 9, 9, 0.1);
|
|
97894
97887
|
--popup-background-color: rgba(255, 255, 255, 1);
|
|
97895
97888
|
|
|
97889
|
+
--tooltip-background-color: rgb(33, 33, 33);
|
|
97890
|
+
--tooltip-text-color: rgba(var(--text-color-alt), 1);
|
|
97891
|
+
|
|
97896
97892
|
--menu-item-color: rgba(var(--text-color-base), 1);
|
|
97897
97893
|
--menu-item-color-active: rgba(var(--primary-color-base), 1);
|
|
97898
97894
|
--menu-item-background-color: transparent;
|
|
@@ -99990,7 +99986,7 @@ function zeroArray(m, c) {
|
|
|
99990
99986
|
}
|
|
99991
99987
|
class BluepicEmbed extends EventTarget {
|
|
99992
99988
|
constructor(c, ie, we, $e) {
|
|
99993
|
-
if (super(), this.embedProjectId = we, !ie && !this.embedProjectId)
|
|
99989
|
+
if (super(), this.embedProjectId = we, console.log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!", $e?.branding), !ie && !this.embedProjectId)
|
|
99994
99990
|
throw new Error("Either templateId or embedProjectId must be provided");
|
|
99995
99991
|
if (typeof c == "string") {
|
|
99996
99992
|
const Me = document.querySelector(c);
|
|
@@ -100001,7 +99997,7 @@ class BluepicEmbed extends EventTarget {
|
|
|
100001
99997
|
this.element = c;
|
|
100002
99998
|
else
|
|
100003
99999
|
throw new Error("Invalid element or selector provided");
|
|
100004
|
-
this.init(), this.displayMode.value = $e?.displayMode ?? this.displayMode.value, this.allowPanAndZoom.value = $e?.allowPanAndZoom ?? this.allowPanAndZoom.value, this.studioResourcesBaseUrl.value = $e?.studioResourcesBaseUrl ?? this.studioResourcesBaseUrl.value, this.cloudflarePagesHostname.value = $e?.cloudflarePagesHostname ?? this.cloudflarePagesHostname.value, this.bxCoreVersion.value = $e?.bxCoreVersion ?? this.bxCoreVersion.value, this.
|
|
100000
|
+
this.init(), this.displayMode.value = $e?.displayMode ?? this.displayMode.value, this.allowPanAndZoom.value = $e?.allowPanAndZoom ?? this.allowPanAndZoom.value, this.studioResourcesBaseUrl.value = $e?.studioResourcesBaseUrl ?? this.studioResourcesBaseUrl.value, this.cloudflarePagesHostname.value = $e?.cloudflarePagesHostname ?? this.cloudflarePagesHostname.value, this.bxCoreVersion.value = $e?.bxCoreVersion ?? this.bxCoreVersion.value, this.branding.value = $e?.branding ?? this.branding.value, this.stripeEnv.value = $e?.stripeEnv ?? this.stripeEnv.value, this.data.value = $e?.initData ?? this.data.value, watch(this.ready, (Me, Ze) => {
|
|
100005
100001
|
if (Me && !Ze) {
|
|
100006
100002
|
const ne = new CustomEvent("ready", {
|
|
100007
100003
|
detail: { templateId: this.templateId.value, data: unref(this.data.value) }
|
|
@@ -100034,7 +100030,6 @@ class BluepicEmbed extends EventTarget {
|
|
|
100034
100030
|
ready = ref$1(!1);
|
|
100035
100031
|
displayMode = ref$1("auto");
|
|
100036
100032
|
bxCoreVersion = ref$1("auto");
|
|
100037
|
-
publishedSlug = ref$1("latest");
|
|
100038
100033
|
branding = ref$1(!0);
|
|
100039
100034
|
stripeEnv = ref$1("prod");
|
|
100040
100035
|
bxThemeStyleVars;
|
|
@@ -100042,7 +100037,7 @@ class BluepicEmbed extends EventTarget {
|
|
|
100042
100037
|
init() {
|
|
100043
100038
|
const c = `bluepic-app-${nanoid()}`;
|
|
100044
100039
|
this.embedProjectId && getProjectWithRetries("live.bluepic.io", this.embedProjectId, 3, 2e3, this.stripeEnv.value).then(({ embedProject: $e, isAllowedToDisableBranding: Me }) => {
|
|
100045
|
-
this.embedProject.value = $e, this.displayMode.value = $e.config.layout, this.allowPanAndZoom.value = $e.config.allowPanAndZoom, this.branding.value = Me ? $e.config.bluepicBranding : !0, this.templateId.value = $e.templates[0];
|
|
100040
|
+
this.embedProject.value = $e, this.displayMode.value = $e.config.layout, this.allowPanAndZoom.value = $e.config.allowPanAndZoom, this.branding.value = Me ? $e.config.bluepicBranding : !0, console.log("BRANDING", this.branding.value), this.templateId.value = $e.templates[0];
|
|
100046
100041
|
});
|
|
100047
100042
|
const ie = document.createElement("style");
|
|
100048
100043
|
ie.textContent = `
|
|
@@ -100077,7 +100072,6 @@ class BluepicEmbed extends EventTarget {
|
|
|
100077
100072
|
:authorization="undefined"
|
|
100078
100073
|
:async-serial="true"
|
|
100079
100074
|
:bx-core-version="bxCoreVersion"
|
|
100080
|
-
:published-slug="publishedSlug"
|
|
100081
100075
|
:bridge="bridge"
|
|
100082
100076
|
:display-mode="displayMode"
|
|
100083
100077
|
v-model:data="data"
|
|
@@ -100147,7 +100141,6 @@ class BluepicEmbed extends EventTarget {
|
|
|
100147
100141
|
ready: we.ready,
|
|
100148
100142
|
displayMode: we.displayMode,
|
|
100149
100143
|
bxCoreVersion: we.bxCoreVersion,
|
|
100150
|
-
publishedSlug: we.publishedSlug,
|
|
100151
100144
|
bxThemeStyleVars: we.bxThemeStyleVars,
|
|
100152
100145
|
darkmode: computed(() => Color(we.bxThemeStyleVars.value["editor-view-background-color"]).isDark()),
|
|
100153
100146
|
borderRadius: computed(() => (we.embedProject.value?.config.layout === "stack", "10px")),
|
|
@@ -100205,17 +100198,16 @@ window.addEventListener("load", async () => {
|
|
|
100205
100198
|
for (const c of m) {
|
|
100206
100199
|
const ie = c.getAttribute("data-embed-project-id"), we = c.getAttribute("data-template-id");
|
|
100207
100200
|
c.getAttribute("data-stripe-env");
|
|
100208
|
-
const $e = c.getAttribute("data-init-data"), Me = c.getAttribute("data-studio-resources-base-url") ?? void 0, Ze = c.getAttribute("data-cloudflare-pages-hostname") ?? void 0, ne = c.getAttribute("data-display-mode"), rr = c.getAttribute("data-allow-pan-and-zoom"), pr = c.getAttribute("data-bx-core-version") ?? void 0, or =
|
|
100209
|
-
initData:
|
|
100210
|
-
displayMode:
|
|
100211
|
-
allowPanAndZoom:
|
|
100201
|
+
const $e = c.getAttribute("data-init-data"), Me = c.getAttribute("data-studio-resources-base-url") ?? void 0, Ze = c.getAttribute("data-cloudflare-pages-hostname") ?? void 0, ne = c.getAttribute("data-display-mode"), rr = c.getAttribute("data-allow-pan-and-zoom"), pr = c.getAttribute("data-bx-core-version") ?? void 0, or = $e ? JSON.parse($e) : void 0, _r = rr === "true", kr = ne === "mobile" ? "mobile" : ne === "stack" ? "stack" : "auto", Ir = c.getAttribute("data-branding") === "false", Lr = new BluepicEmbed(c, we, ie, {
|
|
100202
|
+
initData: or,
|
|
100203
|
+
displayMode: kr,
|
|
100204
|
+
allowPanAndZoom: _r,
|
|
100212
100205
|
studioResourcesBaseUrl: Me,
|
|
100213
100206
|
cloudflarePagesHostname: Ze,
|
|
100214
100207
|
bxCoreVersion: pr,
|
|
100215
|
-
|
|
100216
|
-
branding: Lr
|
|
100208
|
+
branding: Ir
|
|
100217
100209
|
});
|
|
100218
|
-
console.log("!", c,
|
|
100210
|
+
console.log("!", c, Lr);
|
|
100219
100211
|
}
|
|
100220
100212
|
});
|
|
100221
100213
|
const GLOBAL_APP_WRAPPER_CLASS = "bluepic-app-wrapper", GLOBAL_APP_WRAPPER_SELECTOR = `.${GLOBAL_APP_WRAPPER_CLASS}`;
|