@builder.io/sdk-vue 4.0.1 → 4.0.4
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/browser/{awaiter-wbBKeVzr.cjs → awaiter-2F9-_oO8.cjs} +1 -1
- package/lib/browser/{awaiter-nAWFNqrx.js → awaiter-HDfw2t1B.js} +1 -1
- package/lib/browser/{block-styles-M0XEa30c.js → block-styles-MXm48vmz.js} +1 -1
- package/lib/browser/{block-styles-qBk6SyHU.cjs → block-styles-X9EhtMJv.cjs} +1 -1
- package/lib/browser/{block-wrapper-f0180-Dt.js → block-wrapper-4qw8AGWG.js} +3 -3
- package/lib/browser/{block-wrapper-ZjrIzk0G.cjs → block-wrapper-c8JGyOAA.cjs} +1 -1
- package/lib/browser/blocks/custom-code/custom-code.vue.d.ts +7 -1
- package/lib/browser/blocks/image/image.types.d.ts +1 -0
- package/lib/browser/blocks/image/image.vue.d.ts +3 -0
- package/lib/browser/{component-ref-VMpgtIT8.cjs → component-ref-9P0mKMJt.cjs} +1 -1
- package/lib/browser/{component-ref-tnogP_WI.js → component-ref-qKfSMika.js} +3 -3
- package/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +6 -1
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/browser/components/content-variants/inlined-fns.d.ts +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-VbdeRBq9.js → get-block-properties-QUOxxR_A.js} +1 -1
- package/lib/browser/{get-block-properties-kgoNqJkv.cjs → get-block-properties-UKaGP0U3.cjs} +1 -1
- package/lib/browser/{index-hYyYGFKw.js → index-LkA4auYM.js} +285 -233
- package/lib/browser/index-bGdQisdn.cjs +169 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-wzdH4zkn.cjs → repeated-block-GTImoZrN.cjs} +1 -1
- package/lib/browser/{repeated-block-jvm1EXAe.js → repeated-block-kQ_jnUM3.js} +2 -2
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-aRh0Pj94.cjs → awaiter-mqwukzJZ.cjs} +1 -1
- package/lib/edge/{awaiter-hkMTEA9V.js → awaiter-nsg2nwZ7.js} +1 -1
- package/lib/edge/{block-styles-AI5sotc1.cjs → block-styles-jsDKKRQk.cjs} +1 -1
- package/lib/edge/{block-styles-LPJy6dQs.js → block-styles-uiNGacsi.js} +1 -1
- package/lib/edge/{block-wrapper-JuWdKgUU.js → block-wrapper-OdmciHkP.js} +3 -3
- package/lib/{node/block-wrapper-JeY6E7Bj.cjs → edge/block-wrapper-nI4dA-4Z.cjs} +1 -1
- package/lib/edge/blocks/custom-code/custom-code.vue.d.ts +7 -1
- package/lib/edge/blocks/image/image.types.d.ts +1 -0
- package/lib/edge/blocks/image/image.vue.d.ts +3 -0
- package/lib/edge/{component-ref-P4gIixq8.js → component-ref-Fb_1lhVs.js} +3 -3
- package/lib/edge/{component-ref-puTtsezh.cjs → component-ref-Tb1ckGhf.cjs} +1 -1
- package/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +6 -1
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/edge/components/content-variants/inlined-fns.d.ts +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-5osCAaC3.cjs → get-block-properties-MuKAymJ3.cjs} +1 -1
- package/lib/edge/{get-block-properties-AMnn5X6R.js → get-block-properties-skoEen4E.js} +1 -1
- package/lib/edge/index-BpamWQ_I.cjs +187 -0
- package/lib/edge/{index-HO4jmmvI.js → index-qJQiiZLG.js} +514 -462
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-IFYfMg17.js → repeated-block--Z7wD2xG.js} +2 -2
- package/lib/{node/repeated-block-7PPwMKZ7.cjs → edge/repeated-block-163bX_a9.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-Z7o9s6gq.js → awaiter-JPCBNySo.js} +1 -1
- package/lib/node/{awaiter-t8znoZtH.cjs → awaiter-hL5s-L1s.cjs} +1 -1
- package/lib/node/{block-styles-cgq-AQI-.cjs → block-styles-Qs6UPPvF.cjs} +1 -1
- package/lib/node/{block-styles-shrS5yAc.js → block-styles-cdBFFodd.js} +1 -1
- package/lib/node/{block-wrapper-fIn5jGPq.js → block-wrapper-QLQ8QCsB.js} +3 -3
- package/lib/{edge/block-wrapper-V2J7FjnE.cjs → node/block-wrapper-rqFiyxb2.cjs} +1 -1
- package/lib/node/blocks/custom-code/custom-code.vue.d.ts +7 -1
- package/lib/node/blocks/image/image.types.d.ts +1 -0
- package/lib/node/blocks/image/image.vue.d.ts +3 -0
- package/lib/node/{component-ref-M4gAxFd5.js → component-ref-_3BRwWYE.js} +3 -3
- package/lib/node/{component-ref-FgrBreGf.cjs → component-ref-kiBJD9kI.cjs} +1 -1
- package/lib/node/components/blocks/blocks-wrapper.vue.d.ts +6 -1
- package/lib/node/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/node/components/content-variants/inlined-fns.d.ts +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-AfiBthZ9.js → get-block-properties-4xNKhBHm.js} +1 -1
- package/lib/node/{get-block-properties-VbZkXgcG.cjs → get-block-properties-gCroeFct.cjs} +1 -1
- package/lib/node/index-7TI9yCCh.cjs +169 -0
- package/lib/node/{index-mcalyz7B.js → index-kH9JS7W5.js} +347 -295
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-xkdGhBrs.js → repeated-block-5xUjwB4K.js} +2 -2
- package/lib/{edge/repeated-block-KY5UOI15.cjs → node/repeated-block-Q0mddYsG.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/index-es6BsrIz.cjs +0 -166
- package/lib/edge/index-S_6GpGNI.cjs +0 -184
- package/lib/node/index-hyrTHgHn.cjs +0 -166
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as g, openBlock as c, createElementBlock as p, Fragment as $, createBlock as y, resolveDynamicComponent as z, mergeProps as C, toHandlers as x, withCtx as W, renderSlot as
|
|
2
|
+
import { defineComponent as g, openBlock as c, createElementBlock as p, Fragment as $, createBlock as y, resolveDynamicComponent as z, mergeProps as C, toHandlers as x, withCtx as W, renderSlot as A, resolveComponent as k, createTextVNode as wt, toDisplayString as ne, defineAsyncComponent as K, createVNode as B, renderList as N, createCommentVNode as S, h as Ue, createElementVNode as M, normalizeStyle as U, normalizeClass as J, markRaw as Tt } from "vue";
|
|
3
3
|
const It = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), $t = (e) => typeof e == "string" && It.has(e.toLowerCase());
|
|
4
4
|
function V(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
@@ -27,20 +27,20 @@ function Et(e, t, n, o, r, s) {
|
|
|
27
27
|
return e.isEmptyElement(e.TagName) ? (c(), y(z(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (c(), p($, { key: 0 }, [
|
|
28
28
|
typeof e.TagName == "string" ? (c(), y(z(e.TagName), C({ key: 0 }, e.attributes, x(e.actionAttributes)), {
|
|
29
29
|
default: W(() => [
|
|
30
|
-
|
|
30
|
+
A(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
33
|
}, 16)) : (c(), y(z(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), {
|
|
34
34
|
default: W(() => [
|
|
35
|
-
|
|
35
|
+
A(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const he = /* @__PURE__ */ b(Rt, [["render", Et]]), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
43
|
+
default: he
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), R = "vue", _ = () => {
|
|
45
45
|
switch (R) {
|
|
46
46
|
case "react":
|
|
@@ -56,7 +56,7 @@ const me = /* @__PURE__ */ b(Rt, [["render", Et]]), Qs = /* @__PURE__ */ Object.
|
|
|
56
56
|
}
|
|
57
57
|
}, Pt = g({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: he },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -96,7 +96,7 @@ function Bt(e, t, n, o, r, s) {
|
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const At = /* @__PURE__ */ b(Pt, [["render", Bt]]), xt = Symbol(),
|
|
99
|
+
const At = /* @__PURE__ */ b(Pt, [["render", Bt]]), xt = Symbol(), de = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -114,15 +114,15 @@ const At = /* @__PURE__ */ b(Pt, [["render", Bt]]), xt = Symbol(), ce = {
|
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
116
|
key: xt
|
|
117
|
-
}, Vt = Symbol(),
|
|
117
|
+
}, Vt = Symbol(), De = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
119
|
key: Vt
|
|
120
|
-
}, Q = "[Builder.io]: ",
|
|
120
|
+
}, Q = "[Builder.io]: ", P = {
|
|
121
121
|
log: (...e) => console.log(Q, ...e),
|
|
122
122
|
error: (...e) => console.error(Q, ...e),
|
|
123
123
|
warn: (...e) => console.warn(Q, ...e),
|
|
124
124
|
debug: (...e) => console.debug(Q, ...e)
|
|
125
|
-
},
|
|
125
|
+
}, Fe = (e, t, n) => {
|
|
126
126
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
|
|
127
127
|
return o === void 0 || o === e ? n : o;
|
|
128
128
|
};
|
|
@@ -174,7 +174,7 @@ const Ot = () => {
|
|
|
174
174
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
175
175
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
176
176
|
};
|
|
177
|
-
},
|
|
177
|
+
}, Dt = ({
|
|
178
178
|
builder: e,
|
|
179
179
|
context: t,
|
|
180
180
|
event: n,
|
|
@@ -186,7 +186,7 @@ const Ot = () => {
|
|
|
186
186
|
builder: e,
|
|
187
187
|
context: t,
|
|
188
188
|
event: n
|
|
189
|
-
}),
|
|
189
|
+
}), Ft = () => ({
|
|
190
190
|
isEditing: E(),
|
|
191
191
|
isBrowser: w(),
|
|
192
192
|
isServer: !w(),
|
|
@@ -228,7 +228,7 @@ const $e = ({
|
|
|
228
228
|
rootSetState: s,
|
|
229
229
|
rootState: i
|
|
230
230
|
}) => {
|
|
231
|
-
const l =
|
|
231
|
+
const l = Dt({
|
|
232
232
|
builder: t,
|
|
233
233
|
context: n,
|
|
234
234
|
event: o,
|
|
@@ -239,10 +239,10 @@ const $e = ({
|
|
|
239
239
|
})
|
|
240
240
|
});
|
|
241
241
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
242
|
-
},
|
|
242
|
+
}, D = (e) => e != null;
|
|
243
243
|
function Mt() {
|
|
244
244
|
var e;
|
|
245
|
-
return typeof process < "u" &&
|
|
245
|
+
return typeof process < "u" && D((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
246
246
|
}
|
|
247
247
|
const Ht = ({
|
|
248
248
|
shouldLogWarning: e
|
|
@@ -251,7 +251,7 @@ const Ht = ({
|
|
|
251
251
|
if (!Mt())
|
|
252
252
|
return !1;
|
|
253
253
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
254
|
-
return t && n && !o ? (e &&
|
|
254
|
+
return t && n && !o ? (e && P.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
255
255
|
}, jt = (e) => (w() || Ht({
|
|
256
256
|
shouldLogWarning: !0
|
|
257
257
|
}), $e(e)), Kt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, zt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, qt = (e) => {
|
|
@@ -271,7 +271,7 @@ function Y({
|
|
|
271
271
|
return;
|
|
272
272
|
const l = qt(e.trim());
|
|
273
273
|
if (l)
|
|
274
|
-
return
|
|
274
|
+
return Fe({
|
|
275
275
|
...o,
|
|
276
276
|
...n
|
|
277
277
|
}, l);
|
|
@@ -279,7 +279,7 @@ function Y({
|
|
|
279
279
|
code: Lt(e, {
|
|
280
280
|
isExpression: i
|
|
281
281
|
}),
|
|
282
|
-
builder:
|
|
282
|
+
builder: Ft(),
|
|
283
283
|
context: t,
|
|
284
284
|
event: s,
|
|
285
285
|
rootSetState: r,
|
|
@@ -289,7 +289,7 @@ function Y({
|
|
|
289
289
|
try {
|
|
290
290
|
return jt(a);
|
|
291
291
|
} catch (u) {
|
|
292
|
-
|
|
292
|
+
P.error("Failed code evaluation: " + u.message, {
|
|
293
293
|
code: e
|
|
294
294
|
});
|
|
295
295
|
return;
|
|
@@ -363,27 +363,27 @@ function Zt(e, t) {
|
|
|
363
363
|
var n, o;
|
|
364
364
|
return (n = e.component) != null && n.options && Xt((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Qt(e.component.options, t ?? "Default")), e;
|
|
365
365
|
}
|
|
366
|
-
const
|
|
366
|
+
const fe = (e) => JSON.parse(JSON.stringify(e)), ze = (e, t, n) => {
|
|
367
367
|
if (Object(e) !== e)
|
|
368
368
|
return e;
|
|
369
369
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
370
370
|
return o.slice(0, -1).reduce((r, s, i) => Object(r[s]) === r[s] ? r[s] : r[s] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
371
371
|
};
|
|
372
|
-
function
|
|
372
|
+
function ue(e) {
|
|
373
373
|
if (e === null || typeof e != "object")
|
|
374
374
|
return e;
|
|
375
375
|
if (Array.isArray(e))
|
|
376
|
-
return e.map((n) =>
|
|
376
|
+
return e.map((n) => ue(n));
|
|
377
377
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
378
378
|
return e;
|
|
379
379
|
const t = {};
|
|
380
380
|
for (const n in e)
|
|
381
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
381
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ue(e[n]));
|
|
382
382
|
return t;
|
|
383
383
|
}
|
|
384
384
|
const _t = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), en = (e) => {
|
|
385
385
|
if (_t) {
|
|
386
|
-
const t =
|
|
386
|
+
const t = fe(e);
|
|
387
387
|
return {
|
|
388
388
|
...t,
|
|
389
389
|
properties: {
|
|
@@ -394,7 +394,7 @@ const _t = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), en = (e) =
|
|
|
394
394
|
}
|
|
395
395
|
};
|
|
396
396
|
} else {
|
|
397
|
-
const t =
|
|
397
|
+
const t = ue(Yt(e, "children", "meta"));
|
|
398
398
|
return {
|
|
399
399
|
...t,
|
|
400
400
|
properties: {
|
|
@@ -479,7 +479,7 @@ function sn(e, t) {
|
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
const Ee = {};
|
|
482
|
-
function
|
|
482
|
+
function _s(e) {
|
|
483
483
|
if (w()) {
|
|
484
484
|
Object.assign(Ee, e);
|
|
485
485
|
const t = {
|
|
@@ -504,7 +504,7 @@ const Pe = "builder.", an = "options.", Je = (e) => {
|
|
|
504
504
|
return {};
|
|
505
505
|
const e = new URLSearchParams(window.location.search);
|
|
506
506
|
return Je(e);
|
|
507
|
-
}, Ge = "4.0.
|
|
507
|
+
}, Ge = "4.0.4", Ye = () => ({
|
|
508
508
|
"X-Builder-SDK": R,
|
|
509
509
|
"X-Builder-SDK-GEN": "2",
|
|
510
510
|
"X-Builder-SDK-Version": Ge
|
|
@@ -513,7 +513,7 @@ const Pe = "builder.", an = "options.", Je = (e) => {
|
|
|
513
513
|
return e;
|
|
514
514
|
const t = e.split(".");
|
|
515
515
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
516
|
-
},
|
|
516
|
+
}, oe = ({
|
|
517
517
|
name: e,
|
|
518
518
|
canTrack: t
|
|
519
519
|
}) => {
|
|
@@ -521,10 +521,10 @@ const Pe = "builder.", an = "options.", Je = (e) => {
|
|
|
521
521
|
try {
|
|
522
522
|
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
523
523
|
} catch (o) {
|
|
524
|
-
|
|
524
|
+
P.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
525
525
|
return;
|
|
526
526
|
}
|
|
527
|
-
}, Xe = async (e) =>
|
|
527
|
+
}, Xe = async (e) => oe(e), dn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), un = [["secure", ""], ["SameSite", "None"]], pn = ({
|
|
528
528
|
name: e,
|
|
529
529
|
value: t,
|
|
530
530
|
expires: n
|
|
@@ -547,7 +547,7 @@ const Pe = "builder.", an = "options.", Je = (e) => {
|
|
|
547
547
|
});
|
|
548
548
|
document.cookie = r;
|
|
549
549
|
} catch (r) {
|
|
550
|
-
|
|
550
|
+
P.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
551
551
|
}
|
|
552
552
|
};
|
|
553
553
|
function mn() {
|
|
@@ -568,7 +568,7 @@ const Ze = "builderSessionId", hn = async ({
|
|
|
568
568
|
name: Ze,
|
|
569
569
|
canTrack: e
|
|
570
570
|
});
|
|
571
|
-
if (
|
|
571
|
+
if (D(t))
|
|
572
572
|
return t;
|
|
573
573
|
{
|
|
574
574
|
const n = fn();
|
|
@@ -615,7 +615,7 @@ const Ze = "builderSessionId", hn = async ({
|
|
|
615
615
|
key: et,
|
|
616
616
|
canTrack: e
|
|
617
617
|
});
|
|
618
|
-
if (
|
|
618
|
+
if (D(t))
|
|
619
619
|
return t;
|
|
620
620
|
{
|
|
621
621
|
const n = vn();
|
|
@@ -634,7 +634,7 @@ const Ze = "builderSessionId", hn = async ({
|
|
|
634
634
|
});
|
|
635
635
|
function be(e) {
|
|
636
636
|
var t;
|
|
637
|
-
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" &&
|
|
637
|
+
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && P.log(e);
|
|
638
638
|
}
|
|
639
639
|
const Cn = async ({
|
|
640
640
|
canTrack: e
|
|
@@ -674,12 +674,12 @@ const Cn = async ({
|
|
|
674
674
|
ownerId: n
|
|
675
675
|
}
|
|
676
676
|
});
|
|
677
|
-
async function
|
|
677
|
+
async function pe({
|
|
678
678
|
apiHost: e,
|
|
679
679
|
...t
|
|
680
680
|
}) {
|
|
681
681
|
if (!t.apiKey) {
|
|
682
|
-
|
|
682
|
+
P.error("Missing API key for track call. Please provide your API key.");
|
|
683
683
|
return;
|
|
684
684
|
}
|
|
685
685
|
if (!t.canTrack || E() || !(w() || R === "reactNative"))
|
|
@@ -699,7 +699,7 @@ async function ue({
|
|
|
699
699
|
console.error("Failed to track: ", r);
|
|
700
700
|
});
|
|
701
701
|
}
|
|
702
|
-
const
|
|
702
|
+
const ei = (e) => pe({
|
|
703
703
|
...e,
|
|
704
704
|
canTrack: !0
|
|
705
705
|
}), Tn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
@@ -829,14 +829,14 @@ const nt = (e) => {
|
|
|
829
829
|
break;
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
|
-
},
|
|
832
|
+
}, ti = ({
|
|
833
833
|
model: e,
|
|
834
834
|
apiKey: t,
|
|
835
835
|
callback: n,
|
|
836
836
|
trustedHosts: o
|
|
837
837
|
}) => {
|
|
838
838
|
if (!w)
|
|
839
|
-
return
|
|
839
|
+
return P.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
840
840
|
};
|
|
841
841
|
nt({
|
|
842
842
|
modelName: e,
|
|
@@ -865,7 +865,7 @@ const nt = (e) => {
|
|
|
865
865
|
canTrack: !0
|
|
866
866
|
}), En = ({
|
|
867
867
|
contentId: e
|
|
868
|
-
}) =>
|
|
868
|
+
}) => oe({
|
|
869
869
|
name: ye(e),
|
|
870
870
|
canTrack: !0
|
|
871
871
|
}), Pn = ({
|
|
@@ -875,7 +875,7 @@ const nt = (e) => {
|
|
|
875
875
|
name: ye(e),
|
|
876
876
|
value: t,
|
|
877
877
|
canTrack: !0
|
|
878
|
-
}), rt = (e) =>
|
|
878
|
+
}), rt = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, Bn = ({
|
|
879
879
|
id: e,
|
|
880
880
|
variations: t
|
|
881
881
|
}) => {
|
|
@@ -894,7 +894,7 @@ const nt = (e) => {
|
|
|
894
894
|
contentId: e.id,
|
|
895
895
|
value: t
|
|
896
896
|
}).catch((n) => {
|
|
897
|
-
|
|
897
|
+
P.error("could not store A/B test variation: ", n);
|
|
898
898
|
}), t;
|
|
899
899
|
}, it = ({
|
|
900
900
|
item: e,
|
|
@@ -971,7 +971,7 @@ function Vn() {
|
|
|
971
971
|
}), t.forEach((r) => r(o));
|
|
972
972
|
},
|
|
973
973
|
getUserAttributes() {
|
|
974
|
-
return w() ? JSON.parse(
|
|
974
|
+
return w() ? JSON.parse(oe({
|
|
975
975
|
name: Ae,
|
|
976
976
|
canTrack: e
|
|
977
977
|
}) || "{}") : {};
|
|
@@ -986,10 +986,10 @@ function Vn() {
|
|
|
986
986
|
}
|
|
987
987
|
};
|
|
988
988
|
}
|
|
989
|
-
const at = Vn(),
|
|
989
|
+
const at = Vn(), ni = (e) => {
|
|
990
990
|
at.setUserAttributes(e);
|
|
991
991
|
}, G = (e) => {
|
|
992
|
-
const t =
|
|
992
|
+
const t = D(e) ? e : !0;
|
|
993
993
|
return at.setCanTrack(t), t;
|
|
994
994
|
};
|
|
995
995
|
function Nn() {
|
|
@@ -1003,12 +1003,12 @@ function Wn() {
|
|
|
1003
1003
|
return e;
|
|
1004
1004
|
}
|
|
1005
1005
|
const On = Wn();
|
|
1006
|
-
function
|
|
1006
|
+
function me(e, t = null, n = ".") {
|
|
1007
1007
|
return Object.keys(e).reduce((o, r) => {
|
|
1008
1008
|
const s = e[r], i = [t, r].filter(Boolean).join(n);
|
|
1009
1009
|
return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
|
|
1010
1010
|
...o,
|
|
1011
|
-
...
|
|
1011
|
+
...me(s, i, n)
|
|
1012
1012
|
} : {
|
|
1013
1013
|
...o,
|
|
1014
1014
|
[i]: s
|
|
@@ -1034,7 +1034,7 @@ function Un(e) {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
return t;
|
|
1036
1036
|
}
|
|
1037
|
-
const
|
|
1037
|
+
const Dn = "v3", xe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ke = (e) => {
|
|
1038
1038
|
const {
|
|
1039
1039
|
limit: t = 30,
|
|
1040
1040
|
userAttributes: n,
|
|
@@ -1043,7 +1043,7 @@ const Fn = "v3", xe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ke = (
|
|
|
1043
1043
|
apiKey: s,
|
|
1044
1044
|
enrich: i,
|
|
1045
1045
|
locale: l,
|
|
1046
|
-
apiVersion: a =
|
|
1046
|
+
apiVersion: a = Dn,
|
|
1047
1047
|
fields: u,
|
|
1048
1048
|
omit: h,
|
|
1049
1049
|
offset: m,
|
|
@@ -1051,21 +1051,21 @@ const Fn = "v3", xe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ke = (
|
|
|
1051
1051
|
staleCacheSeconds: f,
|
|
1052
1052
|
sort: v,
|
|
1053
1053
|
includeUnpublished: T,
|
|
1054
|
-
apiHost:
|
|
1054
|
+
apiHost: F
|
|
1055
1055
|
} = e;
|
|
1056
1056
|
if (!s)
|
|
1057
1057
|
throw new Error("Missing API key");
|
|
1058
1058
|
if (!["v3"].includes(a))
|
|
1059
1059
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
1060
|
-
const St = t !== 1, Ct =
|
|
1060
|
+
const St = t !== 1, Ct = F || "https://cdn.builder.io", I = new URL(`${Ct}/api/${a}/content/${r}`);
|
|
1061
1061
|
I.searchParams.set("apiKey", s), I.searchParams.set("limit", String(t)), I.searchParams.set("noTraverse", String(St)), I.searchParams.set("includeRefs", String(!0));
|
|
1062
|
-
const
|
|
1062
|
+
const re = l || (n == null ? void 0 : n.locale);
|
|
1063
1063
|
let L = n || {};
|
|
1064
|
-
if (
|
|
1065
|
-
locale:
|
|
1064
|
+
if (re && (I.searchParams.set("locale", re), L = {
|
|
1065
|
+
locale: re,
|
|
1066
1066
|
...L
|
|
1067
1067
|
}), i && I.searchParams.set("enrich", String(i)), I.searchParams.set("omit", h || "meta.componentsUsed"), u && I.searchParams.set("fields", u), Number.isFinite(m) && m > -1 && I.searchParams.set("offset", String(Math.floor(m))), typeof T == "boolean" && I.searchParams.set("includeUnpublished", String(T)), d && xe(d) && I.searchParams.set("cacheSeconds", String(d)), f && xe(f) && I.searchParams.set("staleCacheSeconds", String(f)), v) {
|
|
1068
|
-
const O =
|
|
1068
|
+
const O = me({
|
|
1069
1069
|
sort: v
|
|
1070
1070
|
});
|
|
1071
1071
|
for (const j in O)
|
|
@@ -1079,7 +1079,7 @@ const Fn = "v3", xe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ke = (
|
|
|
1079
1079
|
...L,
|
|
1080
1080
|
...Ln(Te)
|
|
1081
1081
|
};
|
|
1082
|
-
const Ie =
|
|
1082
|
+
const Ie = me(Te);
|
|
1083
1083
|
for (const O in Ie)
|
|
1084
1084
|
I.searchParams.set(O, String(Ie[O]));
|
|
1085
1085
|
if (Object.keys(L).length > 0 && I.searchParams.set("userAttributes", JSON.stringify(L)), o) {
|
|
@@ -1090,7 +1090,7 @@ const Fn = "v3", xe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ke = (
|
|
|
1090
1090
|
I.searchParams.set(j, JSON.stringify(O[j]));
|
|
1091
1091
|
}
|
|
1092
1092
|
return I;
|
|
1093
|
-
},
|
|
1093
|
+
}, Fn = (e) => {
|
|
1094
1094
|
const t = {};
|
|
1095
1095
|
for (const n in e)
|
|
1096
1096
|
n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
|
|
@@ -1098,7 +1098,7 @@ const Fn = "v3", xe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ke = (
|
|
|
1098
1098
|
}, Ln = (e) => {
|
|
1099
1099
|
if (w() && e.preview === "BUILDER_STUDIO") {
|
|
1100
1100
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
1101
|
-
const t =
|
|
1101
|
+
const t = Fn(e), {
|
|
1102
1102
|
userAttributes: n
|
|
1103
1103
|
} = Un(t);
|
|
1104
1104
|
return n;
|
|
@@ -1135,21 +1135,21 @@ const Hn = async (e) => {
|
|
|
1135
1135
|
}));
|
|
1136
1136
|
t.results = r;
|
|
1137
1137
|
} catch (r) {
|
|
1138
|
-
|
|
1138
|
+
P.error("Could not process A/B tests. ", r);
|
|
1139
1139
|
}
|
|
1140
1140
|
return t.results;
|
|
1141
1141
|
};
|
|
1142
1142
|
async function Kn(e) {
|
|
1143
1143
|
const t = ke(e), n = await Hn(e);
|
|
1144
1144
|
if (!Mn(n))
|
|
1145
|
-
throw
|
|
1145
|
+
throw P.error("Error fetching data. ", {
|
|
1146
1146
|
url: t,
|
|
1147
1147
|
content: n,
|
|
1148
1148
|
options: e
|
|
1149
1149
|
}), n;
|
|
1150
1150
|
return jn(e, n);
|
|
1151
1151
|
}
|
|
1152
|
-
const
|
|
1152
|
+
const oi = async (e) => {
|
|
1153
1153
|
var o, r, s;
|
|
1154
1154
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1155
1155
|
...e,
|
|
@@ -1270,8 +1270,8 @@ function Gn(e) {
|
|
|
1270
1270
|
const pt = (e) => Object.entries(e).map(([n, o]) => {
|
|
1271
1271
|
if (typeof o == "string")
|
|
1272
1272
|
return `${Se(n)}: ${o};`;
|
|
1273
|
-
}).filter(
|
|
1274
|
-
`),
|
|
1273
|
+
}).filter(D), Yn = (e) => pt(e).join(`
|
|
1274
|
+
`), ri = ({
|
|
1275
1275
|
mediaQuery: e,
|
|
1276
1276
|
className: t,
|
|
1277
1277
|
styles: n
|
|
@@ -1288,7 +1288,7 @@ function Xn({
|
|
|
1288
1288
|
}) {
|
|
1289
1289
|
return e;
|
|
1290
1290
|
}
|
|
1291
|
-
const
|
|
1291
|
+
const si = ({
|
|
1292
1292
|
block: e,
|
|
1293
1293
|
context: t
|
|
1294
1294
|
}) => mt(Xn({
|
|
@@ -1385,22 +1385,22 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1385
1385
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1386
1386
|
e
|
|
1387
1387
|
), e;
|
|
1388
|
-
}), ro = () => import("./block-styles-
|
|
1388
|
+
}), ro = () => import("./block-styles-MXm48vmz.js").then((e) => e.default).catch((e) => {
|
|
1389
1389
|
throw console.error(
|
|
1390
1390
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1391
1391
|
e
|
|
1392
1392
|
), e;
|
|
1393
|
-
}), so = () => import("./block-wrapper-
|
|
1393
|
+
}), so = () => import("./block-wrapper-4qw8AGWG.js").then((e) => e.default).catch((e) => {
|
|
1394
1394
|
throw console.error(
|
|
1395
1395
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1396
1396
|
e
|
|
1397
1397
|
), e;
|
|
1398
|
-
}), io = () => import("./component-ref-
|
|
1398
|
+
}), io = () => import("./component-ref-qKfSMika.js").then((e) => e.default).catch((e) => {
|
|
1399
1399
|
throw console.error(
|
|
1400
1400
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1401
1401
|
e
|
|
1402
1402
|
), e;
|
|
1403
|
-
}), ao = () => import("./repeated-block-
|
|
1403
|
+
}), ao = () => import("./repeated-block-kQ_jnUM3.js").then((e) => e.default).catch((e) => {
|
|
1404
1404
|
throw console.error(
|
|
1405
1405
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1406
1406
|
e
|
|
@@ -1503,7 +1503,7 @@ function co(e, t, n, o, r, s) {
|
|
|
1503
1503
|
var m;
|
|
1504
1504
|
const i = k("BlockStyles"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), h = k("RepeatedBlock");
|
|
1505
1505
|
return e.canShowBlock ? (c(), p($, { key: 0 }, [
|
|
1506
|
-
|
|
1506
|
+
B(i, {
|
|
1507
1507
|
block: e.processedBlock,
|
|
1508
1508
|
context: e.context
|
|
1509
1509
|
}, null, 8, ["block", "context"]),
|
|
@@ -1540,7 +1540,7 @@ function co(e, t, n, o, r, s) {
|
|
|
1540
1540
|
context: e.context
|
|
1541
1541
|
}, {
|
|
1542
1542
|
default: W(() => [
|
|
1543
|
-
|
|
1543
|
+
B(l, {
|
|
1544
1544
|
componentRef: e.componentRefProps.componentRef,
|
|
1545
1545
|
componentOptions: e.componentRefProps.componentOptions,
|
|
1546
1546
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -1564,7 +1564,7 @@ function co(e, t, n, o, r, s) {
|
|
|
1564
1564
|
], 64))
|
|
1565
1565
|
], 64)) : S("", !0);
|
|
1566
1566
|
}
|
|
1567
|
-
const ft = /* @__PURE__ */ b(lo, [["render", co]]),
|
|
1567
|
+
const ft = /* @__PURE__ */ b(lo, [["render", co]]), ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1568
1568
|
__proto__: null,
|
|
1569
1569
|
default: ft
|
|
1570
1570
|
}, Symbol.toStringTag, { value: "Module" })), uo = g({
|
|
@@ -1578,8 +1578,15 @@ const ft = /* @__PURE__ */ b(lo, [["render", co]]), si = /* @__PURE__ */ Object.
|
|
|
1578
1578
|
"BlocksWrapperProps",
|
|
1579
1579
|
"BlocksWrapper"
|
|
1580
1580
|
],
|
|
1581
|
+
data() {
|
|
1582
|
+
return { shouldUpdate: !1 };
|
|
1583
|
+
},
|
|
1581
1584
|
mounted() {
|
|
1582
1585
|
},
|
|
1586
|
+
watch: {
|
|
1587
|
+
onUpdateHook0: { handler() {
|
|
1588
|
+
}, immediate: !0 }
|
|
1589
|
+
},
|
|
1583
1590
|
computed: {
|
|
1584
1591
|
className() {
|
|
1585
1592
|
var e;
|
|
@@ -1594,6 +1601,11 @@ const ft = /* @__PURE__ */ b(lo, [["render", co]]), si = /* @__PURE__ */ Object.
|
|
|
1594
1601
|
return;
|
|
1595
1602
|
const e = "this.", t = "component.options.";
|
|
1596
1603
|
return this.path.startsWith(e) ? this.path.replace(e, "") : this.path.startsWith(t) ? this.path : `${t}${this.path || ""}`;
|
|
1604
|
+
},
|
|
1605
|
+
onUpdateHook0() {
|
|
1606
|
+
return {
|
|
1607
|
+
0: this.blocks
|
|
1608
|
+
};
|
|
1597
1609
|
}
|
|
1598
1610
|
},
|
|
1599
1611
|
methods: {
|
|
@@ -1637,12 +1649,12 @@ function po(e, t, n, o, r, s) {
|
|
|
1637
1649
|
onKeyPress: (i) => e.onClick()
|
|
1638
1650
|
}, { ...e.BlocksWrapperProps }), {
|
|
1639
1651
|
default: W(() => [
|
|
1640
|
-
|
|
1652
|
+
A(e.$slots, "default", {}, void 0, !0)
|
|
1641
1653
|
]),
|
|
1642
1654
|
_: 3
|
|
1643
1655
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1644
1656
|
}
|
|
1645
|
-
const mo = /* @__PURE__ */ b(uo, [["render", po], ["__scopeId", "data-v-
|
|
1657
|
+
const mo = /* @__PURE__ */ b(uo, [["render", po], ["__scopeId", "data-v-e05fb921"]]), ho = g({
|
|
1646
1658
|
name: "builder-blocks",
|
|
1647
1659
|
components: { BlocksWrapper: mo, Block: ft },
|
|
1648
1660
|
props: [
|
|
@@ -1656,8 +1668,8 @@ const mo = /* @__PURE__ */ b(uo, [["render", po], ["__scopeId", "data-v-4755f88c
|
|
|
1656
1668
|
"registeredComponents"
|
|
1657
1669
|
],
|
|
1658
1670
|
inject: {
|
|
1659
|
-
builderContext:
|
|
1660
|
-
componentsContext:
|
|
1671
|
+
builderContext: de.key,
|
|
1672
|
+
componentsContext: De.key
|
|
1661
1673
|
}
|
|
1662
1674
|
});
|
|
1663
1675
|
function fo(e, t, n, o, r, s) {
|
|
@@ -1693,7 +1705,7 @@ const H = /* @__PURE__ */ b(ho, [["render", fo]]), go = g({
|
|
|
1693
1705
|
});
|
|
1694
1706
|
function bo(e, t, n, o, r, s) {
|
|
1695
1707
|
return c(), p("div", null, [
|
|
1696
|
-
|
|
1708
|
+
A(e.$slots, "default")
|
|
1697
1709
|
]);
|
|
1698
1710
|
}
|
|
1699
1711
|
const X = /* @__PURE__ */ b(go, [["render", bo]]), yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1730,8 +1742,8 @@ const X = /* @__PURE__ */ b(go, [["render", bo]]), yo = /* @__PURE__ */ Object.f
|
|
|
1730
1742
|
default: 991,
|
|
1731
1743
|
max: 1200
|
|
1732
1744
|
}
|
|
1733
|
-
},
|
|
1734
|
-
const t =
|
|
1745
|
+
}, ai = (e, t = gt) => `@media (max-width: ${t[e].max}px)`, ko = (e) => {
|
|
1746
|
+
const t = fe(gt);
|
|
1735
1747
|
if (!e)
|
|
1736
1748
|
return t;
|
|
1737
1749
|
const {
|
|
@@ -1772,7 +1784,7 @@ const X = /* @__PURE__ */ b(go, [["render", bo]]), yo = /* @__PURE__ */ Object.f
|
|
|
1772
1784
|
name: "builder-columns",
|
|
1773
1785
|
components: {
|
|
1774
1786
|
InlinedStyles: Ce,
|
|
1775
|
-
DynamicRenderer:
|
|
1787
|
+
DynamicRenderer: he,
|
|
1776
1788
|
Blocks: H,
|
|
1777
1789
|
DynamicDiv: X
|
|
1778
1790
|
},
|
|
@@ -1929,7 +1941,7 @@ function Co(e, t, n, o, r, s) {
|
|
|
1929
1941
|
attributes: e.getAttributes(h, m)
|
|
1930
1942
|
}, {
|
|
1931
1943
|
default: W(() => [
|
|
1932
|
-
|
|
1944
|
+
B(l, {
|
|
1933
1945
|
path: `columns.${m}.blocks`,
|
|
1934
1946
|
parent: e.builderBlock.id,
|
|
1935
1947
|
context: e.builderContext,
|
|
@@ -1951,7 +1963,7 @@ const wo = /* @__PURE__ */ b(So, [["render", Co], ["__scopeId", "data-v-bdc9da04
|
|
|
1951
1963
|
});
|
|
1952
1964
|
function Io(e, t, n, o, r, s) {
|
|
1953
1965
|
return c(), p("span", null, [
|
|
1954
|
-
|
|
1966
|
+
A(e.$slots, "default")
|
|
1955
1967
|
]);
|
|
1956
1968
|
}
|
|
1957
1969
|
const $o = /* @__PURE__ */ b(To, [["render", Io]]);
|
|
@@ -1974,7 +1986,7 @@ function Eo(e, t) {
|
|
|
1974
1986
|
}
|
|
1975
1987
|
return null;
|
|
1976
1988
|
}
|
|
1977
|
-
function
|
|
1989
|
+
function se(e) {
|
|
1978
1990
|
if (!e)
|
|
1979
1991
|
return e;
|
|
1980
1992
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -1995,6 +2007,7 @@ const Po = g({
|
|
|
1995
2007
|
"aspectRatio",
|
|
1996
2008
|
"highPriority",
|
|
1997
2009
|
"altText",
|
|
2010
|
+
"title",
|
|
1998
2011
|
"backgroundPosition",
|
|
1999
2012
|
"backgroundSize",
|
|
2000
2013
|
"className",
|
|
@@ -2013,10 +2026,10 @@ const Po = g({
|
|
|
2013
2026
|
if (!this.noWebp) {
|
|
2014
2027
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
2015
2028
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
2016
|
-
return console.debug("Removed given srcset"),
|
|
2029
|
+
return console.debug("Removed given srcset"), se(t);
|
|
2017
2030
|
} else if (this.image && !this.srcset)
|
|
2018
|
-
return
|
|
2019
|
-
return
|
|
2031
|
+
return se(t);
|
|
2032
|
+
return se(t);
|
|
2020
2033
|
}
|
|
2021
2034
|
},
|
|
2022
2035
|
webpSrcSet() {
|
|
@@ -2034,7 +2047,7 @@ const Po = g({
|
|
|
2034
2047
|
return this.aspectRatio ? e : void 0;
|
|
2035
2048
|
}
|
|
2036
2049
|
}
|
|
2037
|
-
}), Bo = ["srcset"], Ao = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], xo = {
|
|
2050
|
+
}), Bo = ["srcset"], Ao = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], xo = {
|
|
2038
2051
|
key: 2,
|
|
2039
2052
|
class: "div-29wpyomtntv-2"
|
|
2040
2053
|
};
|
|
@@ -2051,6 +2064,7 @@ function Vo(e, t, n, o, r, s) {
|
|
|
2051
2064
|
loading: e.highPriority ? "eager" : "lazy",
|
|
2052
2065
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
2053
2066
|
alt: e.altText,
|
|
2067
|
+
title: e.title,
|
|
2054
2068
|
role: e.altText ? void 0 : "presentation",
|
|
2055
2069
|
style: U({
|
|
2056
2070
|
objectPosition: e.backgroundPosition || "center",
|
|
@@ -2072,13 +2086,13 @@ function Vo(e, t, n, o, r, s) {
|
|
|
2072
2086
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
2073
2087
|
})
|
|
2074
2088
|
}, null, 4)) : S("", !0),
|
|
2075
|
-
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ?
|
|
2089
|
+
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? A(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
|
|
2076
2090
|
!e.fitContent && ((m = (h = e.builderBlock) == null ? void 0 : h.children) != null && m.length) ? (c(), p("div", xo, [
|
|
2077
|
-
|
|
2091
|
+
A(e.$slots, "default", {}, void 0, !0)
|
|
2078
2092
|
])) : S("", !0)
|
|
2079
2093
|
], 64);
|
|
2080
2094
|
}
|
|
2081
|
-
const No = /* @__PURE__ */ b(Po, [["render", Vo], ["__scopeId", "data-v-
|
|
2095
|
+
const No = /* @__PURE__ */ b(Po, [["render", Vo], ["__scopeId", "data-v-717bf141"]]), Wo = g({
|
|
2082
2096
|
name: "builder-section-component",
|
|
2083
2097
|
props: ["attributes", "maxWidth"],
|
|
2084
2098
|
data() {
|
|
@@ -2100,10 +2114,10 @@ function Oo(e, t, n, o, r, s) {
|
|
|
2100
2114
|
marginRight: "auto"
|
|
2101
2115
|
}
|
|
2102
2116
|
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
2103
|
-
|
|
2117
|
+
A(e.$slots, "default")
|
|
2104
2118
|
], 16);
|
|
2105
2119
|
}
|
|
2106
|
-
const Uo = /* @__PURE__ */ b(Wo, [["render", Oo]]),
|
|
2120
|
+
const Uo = /* @__PURE__ */ b(Wo, [["render", Oo]]), ie = {
|
|
2107
2121
|
"@type": "@builder.io/sdk:Element",
|
|
2108
2122
|
layerName: "Accordion item title",
|
|
2109
2123
|
responsiveStyles: {
|
|
@@ -2132,7 +2146,7 @@ const Uo = /* @__PURE__ */ b(Wo, [["render", Oo]]), se = {
|
|
|
2132
2146
|
}
|
|
2133
2147
|
}
|
|
2134
2148
|
}]
|
|
2135
|
-
},
|
|
2149
|
+
}, ae = {
|
|
2136
2150
|
"@type": "@builder.io/sdk:Element",
|
|
2137
2151
|
layerName: "Accordion item detail",
|
|
2138
2152
|
responsiveStyles: {
|
|
@@ -2163,7 +2177,7 @@ const Uo = /* @__PURE__ */ b(Wo, [["render", Oo]]), se = {
|
|
|
2163
2177
|
}
|
|
2164
2178
|
}
|
|
2165
2179
|
}]
|
|
2166
|
-
},
|
|
2180
|
+
}, Do = {
|
|
2167
2181
|
name: "Builder:Accordion",
|
|
2168
2182
|
canHaveChildren: !0,
|
|
2169
2183
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2180,19 +2194,19 @@ const Uo = /* @__PURE__ */ b(Wo, [["render", Oo]]), se = {
|
|
|
2180
2194
|
name: "title",
|
|
2181
2195
|
type: "uiBlocks",
|
|
2182
2196
|
hideFromUI: !0,
|
|
2183
|
-
defaultValue: [
|
|
2197
|
+
defaultValue: [ie]
|
|
2184
2198
|
}, {
|
|
2185
2199
|
name: "detail",
|
|
2186
2200
|
type: "uiBlocks",
|
|
2187
2201
|
hideFromUI: !0,
|
|
2188
|
-
defaultValue: [
|
|
2202
|
+
defaultValue: [ae]
|
|
2189
2203
|
}],
|
|
2190
2204
|
defaultValue: [{
|
|
2191
|
-
title: [
|
|
2192
|
-
detail: [
|
|
2205
|
+
title: [ie],
|
|
2206
|
+
detail: [ae]
|
|
2193
2207
|
}, {
|
|
2194
|
-
title: [
|
|
2195
|
-
detail: [
|
|
2208
|
+
title: [ie],
|
|
2209
|
+
detail: [ae]
|
|
2196
2210
|
}],
|
|
2197
2211
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2198
2212
|
}, {
|
|
@@ -2227,7 +2241,7 @@ const Uo = /* @__PURE__ */ b(Wo, [["render", Oo]]), se = {
|
|
|
2227
2241
|
builderComponents: !0,
|
|
2228
2242
|
builderLinkComponent: !0
|
|
2229
2243
|
}
|
|
2230
|
-
},
|
|
2244
|
+
}, Fo = (e) => e.toString(), Lo = g({
|
|
2231
2245
|
name: "builder-accordion",
|
|
2232
2246
|
components: { Blocks: H },
|
|
2233
2247
|
props: [
|
|
@@ -2241,7 +2255,7 @@ const Uo = /* @__PURE__ */ b(Wo, [["render", Oo]]), se = {
|
|
|
2241
2255
|
"builderLinkComponent"
|
|
2242
2256
|
],
|
|
2243
2257
|
data() {
|
|
2244
|
-
return { open: [], convertOrderNumberToString:
|
|
2258
|
+
return { open: [], convertOrderNumberToString: Fo };
|
|
2245
2259
|
},
|
|
2246
2260
|
computed: {
|
|
2247
2261
|
onlyOneAtATime() {
|
|
@@ -2342,7 +2356,7 @@ function Ho(e, t, n, o, r, s) {
|
|
|
2342
2356
|
"data-index": a,
|
|
2343
2357
|
onClick: async (u) => e.onClick(a)
|
|
2344
2358
|
}, [
|
|
2345
|
-
|
|
2359
|
+
B(i, {
|
|
2346
2360
|
blocks: l.title,
|
|
2347
2361
|
path: `items.${a}.title`,
|
|
2348
2362
|
parent: e.builderBlock.id,
|
|
@@ -2356,7 +2370,7 @@ function Ho(e, t, n, o, r, s) {
|
|
|
2356
2370
|
class: J(e.getAccordionDetailClassName(a)),
|
|
2357
2371
|
style: U(e.accordionDetailStyles)
|
|
2358
2372
|
}, [
|
|
2359
|
-
|
|
2373
|
+
B(i, {
|
|
2360
2374
|
blocks: l.detail,
|
|
2361
2375
|
path: `items.${a}.detail`,
|
|
2362
2376
|
parent: e.builderBlock.id,
|
|
@@ -2684,6 +2698,10 @@ const jo = /* @__PURE__ */ b(Lo, [["render", Ho]]), Ko = {
|
|
|
2684
2698
|
name: "altText",
|
|
2685
2699
|
type: "string",
|
|
2686
2700
|
helperText: "Text to display when the user has images off"
|
|
2701
|
+
}, {
|
|
2702
|
+
name: "title",
|
|
2703
|
+
type: "string",
|
|
2704
|
+
helperText: "Text to display when hovering over the asset"
|
|
2687
2705
|
}, {
|
|
2688
2706
|
name: "height",
|
|
2689
2707
|
type: "number",
|
|
@@ -2807,7 +2825,7 @@ function Zo(e, t, n, o, r, s) {
|
|
|
2807
2825
|
"builder-slot": e.name
|
|
2808
2826
|
}
|
|
2809
2827
|
), [
|
|
2810
|
-
|
|
2828
|
+
B(i, {
|
|
2811
2829
|
parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
|
|
2812
2830
|
path: `symbol.data.${e.name}`,
|
|
2813
2831
|
context: e.builderContext,
|
|
@@ -2855,7 +2873,7 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
|
|
|
2855
2873
|
builderComponents: !0,
|
|
2856
2874
|
builderLinkComponent: !0
|
|
2857
2875
|
}
|
|
2858
|
-
},
|
|
2876
|
+
}, le = {
|
|
2859
2877
|
"@type": "@builder.io/sdk:Element",
|
|
2860
2878
|
responsiveStyles: {
|
|
2861
2879
|
large: {
|
|
@@ -2877,7 +2895,7 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
|
|
|
2877
2895
|
text: "New tab"
|
|
2878
2896
|
}
|
|
2879
2897
|
}
|
|
2880
|
-
},
|
|
2898
|
+
}, ce = {
|
|
2881
2899
|
"@type": "@builder.io/sdk:Element",
|
|
2882
2900
|
responsiveStyles: {
|
|
2883
2901
|
large: {
|
|
@@ -2903,16 +2921,16 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
|
|
|
2903
2921
|
name: "label",
|
|
2904
2922
|
type: "uiBlocks",
|
|
2905
2923
|
hideFromUI: !0,
|
|
2906
|
-
defaultValue: [
|
|
2924
|
+
defaultValue: [le]
|
|
2907
2925
|
}, {
|
|
2908
2926
|
name: "content",
|
|
2909
2927
|
type: "uiBlocks",
|
|
2910
2928
|
hideFromUI: !0,
|
|
2911
|
-
defaultValue: [
|
|
2929
|
+
defaultValue: [ce]
|
|
2912
2930
|
}],
|
|
2913
2931
|
defaultValue: [{
|
|
2914
2932
|
label: [{
|
|
2915
|
-
...
|
|
2933
|
+
...le,
|
|
2916
2934
|
component: {
|
|
2917
2935
|
name: "Text",
|
|
2918
2936
|
options: {
|
|
@@ -2921,7 +2939,7 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
|
|
|
2921
2939
|
}
|
|
2922
2940
|
}],
|
|
2923
2941
|
content: [{
|
|
2924
|
-
...
|
|
2942
|
+
...ce,
|
|
2925
2943
|
component: {
|
|
2926
2944
|
name: "Text",
|
|
2927
2945
|
options: {
|
|
@@ -2931,7 +2949,7 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
|
|
|
2931
2949
|
}]
|
|
2932
2950
|
}, {
|
|
2933
2951
|
label: [{
|
|
2934
|
-
...
|
|
2952
|
+
...le,
|
|
2935
2953
|
component: {
|
|
2936
2954
|
name: "Text",
|
|
2937
2955
|
options: {
|
|
@@ -2940,7 +2958,7 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
|
|
|
2940
2958
|
}
|
|
2941
2959
|
}],
|
|
2942
2960
|
content: [{
|
|
2943
|
-
...
|
|
2961
|
+
...ce,
|
|
2944
2962
|
component: {
|
|
2945
2963
|
name: "Text",
|
|
2946
2964
|
options: {
|
|
@@ -3042,7 +3060,7 @@ function sr(e, t, n, o, r, s) {
|
|
|
3042
3060
|
}),
|
|
3043
3061
|
onClick: async (u) => e.onClick(a)
|
|
3044
3062
|
}, [
|
|
3045
|
-
|
|
3063
|
+
B(i, {
|
|
3046
3064
|
parent: e.builderBlock.id,
|
|
3047
3065
|
path: `tabs.${a}.label`,
|
|
3048
3066
|
blocks: l.label,
|
|
@@ -3053,7 +3071,7 @@ function sr(e, t, n, o, r, s) {
|
|
|
3053
3071
|
], 14, or))), 128))
|
|
3054
3072
|
], 4),
|
|
3055
3073
|
e.activeTabContent(e.activeTab) ? (c(), p("div", rr, [
|
|
3056
|
-
|
|
3074
|
+
B(i, {
|
|
3057
3075
|
parent: e.builderBlock.id,
|
|
3058
3076
|
path: `tabs.${e.activeTab}.content`,
|
|
3059
3077
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -3124,34 +3142,59 @@ const ur = /* @__PURE__ */ b(lr, [["render", dr]]), pr = {
|
|
|
3124
3142
|
}]
|
|
3125
3143
|
}, mr = g({
|
|
3126
3144
|
name: "builder-custom-code",
|
|
3127
|
-
props: ["
|
|
3145
|
+
props: ["code", "replaceNodes"],
|
|
3128
3146
|
data() {
|
|
3129
3147
|
return { scriptsInserted: [], scriptsRun: [] };
|
|
3130
3148
|
},
|
|
3131
3149
|
mounted() {
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3150
|
+
this.runScripts();
|
|
3151
|
+
},
|
|
3152
|
+
watch: {
|
|
3153
|
+
onUpdateHook0: {
|
|
3154
|
+
handler() {
|
|
3155
|
+
E() && setTimeout(() => {
|
|
3156
|
+
this.runScripts();
|
|
3157
|
+
}, 0);
|
|
3158
|
+
},
|
|
3159
|
+
immediate: !0
|
|
3160
|
+
}
|
|
3161
|
+
},
|
|
3162
|
+
computed: {
|
|
3163
|
+
onUpdateHook0() {
|
|
3164
|
+
return {
|
|
3165
|
+
0: this.code
|
|
3166
|
+
};
|
|
3167
|
+
}
|
|
3168
|
+
},
|
|
3169
|
+
methods: {
|
|
3170
|
+
runScripts() {
|
|
3171
|
+
var t;
|
|
3172
|
+
if (!this.$refs.elementRef || !((t = this.$refs.elementRef) != null && t.getElementsByTagName) || typeof window > "u")
|
|
3173
|
+
return;
|
|
3174
|
+
const e = this.$refs.elementRef.getElementsByTagName("script");
|
|
3175
|
+
for (let n = 0; n < e.length; n++) {
|
|
3176
|
+
const o = e[n];
|
|
3177
|
+
if (o.src) {
|
|
3178
|
+
if (this.scriptsInserted.includes(o.src))
|
|
3179
|
+
continue;
|
|
3180
|
+
this.scriptsInserted.push(o.src);
|
|
3181
|
+
const r = document.createElement("script");
|
|
3182
|
+
r.async = !0, r.src = o.src, document.head.appendChild(r);
|
|
3183
|
+
} else if (!o.type || [
|
|
3184
|
+
"text/javascript",
|
|
3185
|
+
"application/javascript",
|
|
3186
|
+
"application/ecmascript"
|
|
3187
|
+
].includes(o.type)) {
|
|
3188
|
+
if (this.scriptsRun.includes(o.innerText))
|
|
3189
|
+
continue;
|
|
3190
|
+
try {
|
|
3191
|
+
this.scriptsRun.push(o.innerText), new Function(o.innerText)();
|
|
3192
|
+
} catch (r) {
|
|
3193
|
+
P.warn(
|
|
3194
|
+
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
3195
|
+
r
|
|
3196
|
+
);
|
|
3197
|
+
}
|
|
3155
3198
|
}
|
|
3156
3199
|
}
|
|
3157
3200
|
}
|
|
@@ -3216,7 +3259,7 @@ const gr = /* @__PURE__ */ b(mr, [["render", fr]]), br = {
|
|
|
3216
3259
|
try {
|
|
3217
3260
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3218
3261
|
} catch (o) {
|
|
3219
|
-
|
|
3262
|
+
P.warn("[BUILDER.IO] `Embed`: Error running script:", o);
|
|
3220
3263
|
}
|
|
3221
3264
|
}
|
|
3222
3265
|
}
|
|
@@ -3581,7 +3624,7 @@ const wr = /* @__PURE__ */ b(vr, [["render", Cr]]), Tr = {
|
|
|
3581
3624
|
let f;
|
|
3582
3625
|
const v = d.headers.get("content-type");
|
|
3583
3626
|
if (v && v.indexOf("application/json") !== -1 ? f = await d.json() : f = await d.text(), !d.ok && this.errorMessagePath) {
|
|
3584
|
-
let T =
|
|
3627
|
+
let T = Fe(f, this.errorMessagePath);
|
|
3585
3628
|
T && (typeof T != "string" && (T = JSON.stringify(T)), this.formErrorMessage = T, this.mergeNewRootState({
|
|
3586
3629
|
formErrorMessage: T
|
|
3587
3630
|
}));
|
|
@@ -3600,12 +3643,12 @@ const wr = /* @__PURE__ */ b(vr, [["render", Cr]]), Tr = {
|
|
|
3600
3643
|
}
|
|
3601
3644
|
if (this.successUrl)
|
|
3602
3645
|
if (this.$refs.formRef) {
|
|
3603
|
-
const
|
|
3646
|
+
const F = new CustomEvent("route", {
|
|
3604
3647
|
detail: {
|
|
3605
3648
|
url: this.successUrl
|
|
3606
3649
|
}
|
|
3607
3650
|
});
|
|
3608
|
-
this.$refs.formRef.dispatchEvent(
|
|
3651
|
+
this.$refs.formRef.dispatchEvent(F), F.defaultPrevented || (location.href = this.successUrl);
|
|
3609
3652
|
} else
|
|
3610
3653
|
location.href = this.successUrl;
|
|
3611
3654
|
}
|
|
@@ -3636,7 +3679,7 @@ function Br(e, t, n, o, r, s) {
|
|
|
3636
3679
|
name: e.name,
|
|
3637
3680
|
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
3638
3681
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3639
|
-
|
|
3682
|
+
A(e.$slots, "default", {}, void 0, !0),
|
|
3640
3683
|
e.submissionState() === "error" ? (c(), y(i, {
|
|
3641
3684
|
key: 0,
|
|
3642
3685
|
path: "errorMessage",
|
|
@@ -3777,13 +3820,13 @@ const Or = /* @__PURE__ */ b(Vr, [["render", Wr]]), Ur = {
|
|
|
3777
3820
|
}],
|
|
3778
3821
|
static: !0,
|
|
3779
3822
|
noWrap: !0
|
|
3780
|
-
},
|
|
3823
|
+
}, Dr = g({
|
|
3781
3824
|
name: "builder-select-component",
|
|
3782
3825
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
3783
3826
|
data() {
|
|
3784
3827
|
return { isEditing: E, filterAttrs: V };
|
|
3785
3828
|
}
|
|
3786
|
-
}),
|
|
3829
|
+
}), Fr = ["value", "defaultValue", "name", "required"], Lr = ["value"];
|
|
3787
3830
|
function Mr(e, t, n, o, r, s) {
|
|
3788
3831
|
return c(), p("select", C({
|
|
3789
3832
|
value: e.value,
|
|
@@ -3796,9 +3839,9 @@ function Mr(e, t, n, o, r, s) {
|
|
|
3796
3839
|
key: `${i.name}-${l}`,
|
|
3797
3840
|
value: i.value
|
|
3798
3841
|
}, ne(i.name || i.value), 9, Lr))), 128))
|
|
3799
|
-
], 16,
|
|
3842
|
+
], 16, Fr);
|
|
3800
3843
|
}
|
|
3801
|
-
const Hr = /* @__PURE__ */ b(
|
|
3844
|
+
const Hr = /* @__PURE__ */ b(Dr, [["render", Mr]]), jr = {
|
|
3802
3845
|
name: "Form:SubmitButton",
|
|
3803
3846
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3804
3847
|
defaultStyles: {
|
|
@@ -4152,10 +4195,10 @@ function cs(e, t, n, o, r, s) {
|
|
|
4152
4195
|
})
|
|
4153
4196
|
}, null, 4)) : S("", !0),
|
|
4154
4197
|
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), p("div", as, [
|
|
4155
|
-
|
|
4198
|
+
A(e.$slots, "default")
|
|
4156
4199
|
])) : S("", !0),
|
|
4157
4200
|
(d = (m = e.builderBlock) == null ? void 0 : m.children) != null && d.length && !e.fitContent ? (c(), p("div", ls, [
|
|
4158
|
-
|
|
4201
|
+
A(e.$slots, "default")
|
|
4159
4202
|
])) : S("", !0)
|
|
4160
4203
|
]);
|
|
4161
4204
|
}
|
|
@@ -4205,7 +4248,7 @@ const ds = /* @__PURE__ */ b(rs, [["render", cs]]), us = () => [{
|
|
|
4205
4248
|
component: _o,
|
|
4206
4249
|
...Xo
|
|
4207
4250
|
}, {
|
|
4208
|
-
component:
|
|
4251
|
+
component: Ys,
|
|
4209
4252
|
...er
|
|
4210
4253
|
}, {
|
|
4211
4254
|
component: ur,
|
|
@@ -4215,8 +4258,8 @@ const ds = /* @__PURE__ */ b(rs, [["render", cs]]), us = () => [{
|
|
|
4215
4258
|
...tr
|
|
4216
4259
|
}, {
|
|
4217
4260
|
component: jo,
|
|
4218
|
-
...
|
|
4219
|
-
}, ...us()], ps = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4261
|
+
...Do
|
|
4262
|
+
}, ...us()], ps = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4220
4263
|
function getAndSetVariantId() {
|
|
4221
4264
|
function setCookie(name, value, days) {
|
|
4222
4265
|
let expires = '';
|
|
@@ -4258,7 +4301,10 @@ const ds = /* @__PURE__ */ b(rs, [["render", cs]]), us = () => [{
|
|
|
4258
4301
|
return contentId;
|
|
4259
4302
|
}
|
|
4260
4303
|
const winningVariantId = getAndSetVariantId();
|
|
4261
|
-
|
|
4304
|
+
let styleEl = document.currentScript?.previousElementSibling;
|
|
4305
|
+
if (isAngularSDK) {
|
|
4306
|
+
styleEl = document.currentScript?.parentElement?.previousElementSibling?.querySelector('style');
|
|
4307
|
+
}
|
|
4262
4308
|
if (isHydrationTarget) {
|
|
4263
4309
|
styleEl.remove();
|
|
4264
4310
|
const thisScriptEl = document.currentScript;
|
|
@@ -4313,13 +4359,13 @@ const ds = /* @__PURE__ */ b(rs, [["render", cs]]), us = () => [{
|
|
|
4313
4359
|
})), hs = ({
|
|
4314
4360
|
canTrack: e,
|
|
4315
4361
|
content: t
|
|
4316
|
-
}) => !(!(Z(t).length > 0) || !e), fs = (e) => e === "react" || e === "reactNative", vt = fs(R),
|
|
4362
|
+
}) => !(!(Z(t).length > 0) || !e), fs = (e) => e === "react" || e === "reactNative", gs = R === "angular", vt = fs(R), bs = () => `
|
|
4317
4363
|
window.${yt} = ${ps}
|
|
4318
4364
|
window.${kt} = ${ms}
|
|
4319
|
-
`,
|
|
4365
|
+
`, ys = (e, t) => `
|
|
4320
4366
|
window.${yt}(
|
|
4321
|
-
"${t}",${JSON.stringify(e)}, ${vt}
|
|
4322
|
-
)`,
|
|
4367
|
+
"${t}",${JSON.stringify(e)}, ${vt}, ${gs}
|
|
4368
|
+
)`, ks = ({
|
|
4323
4369
|
contentId: e,
|
|
4324
4370
|
variationId: t
|
|
4325
4371
|
}) => `window.${kt}(
|
|
@@ -4328,7 +4374,7 @@ const ds = /* @__PURE__ */ b(rs, [["render", cs]]), us = () => [{
|
|
|
4328
4374
|
function We(e) {
|
|
4329
4375
|
return Math.round(e * 1e3) / 1e3;
|
|
4330
4376
|
}
|
|
4331
|
-
const
|
|
4377
|
+
const vs = (e, t, n = !0) => {
|
|
4332
4378
|
if (!(e instanceof HTMLElement))
|
|
4333
4379
|
return null;
|
|
4334
4380
|
let o = n ? e : e.parentElement;
|
|
@@ -4339,7 +4385,7 @@ const ks = (e, t, n = !0) => {
|
|
|
4339
4385
|
return o;
|
|
4340
4386
|
} while (o = o.parentElement);
|
|
4341
4387
|
return null;
|
|
4342
|
-
},
|
|
4388
|
+
}, Ss = (e) => vs(e, (t) => {
|
|
4343
4389
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4344
4390
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4345
4391
|
}), Oe = ({
|
|
@@ -4351,8 +4397,8 @@ const ks = (e, t, n = !0) => {
|
|
|
4351
4397
|
x: s,
|
|
4352
4398
|
y: i
|
|
4353
4399
|
};
|
|
4354
|
-
},
|
|
4355
|
-
const t = e.target, n = t &&
|
|
4400
|
+
}, Cs = (e) => {
|
|
4401
|
+
const t = e.target, n = t && Ss(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4356
4402
|
return {
|
|
4357
4403
|
targetBuilderElement: o || void 0,
|
|
4358
4404
|
metadata: {
|
|
@@ -4367,7 +4413,7 @@ const ks = (e, t, n = !0) => {
|
|
|
4367
4413
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4368
4414
|
}
|
|
4369
4415
|
};
|
|
4370
|
-
},
|
|
4416
|
+
}, ws = ["svelte", "qwik", "vue"], Ts = () => ws.includes(R) && (E() || qe()), Is = (e) => {
|
|
4371
4417
|
var s;
|
|
4372
4418
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((s = e == null ? void 0 : e.files) == null ? void 0 : s.regular);
|
|
4373
4419
|
let r = "";
|
|
@@ -4393,15 +4439,15 @@ font-weight: ${i};
|
|
|
4393
4439
|
`.trim());
|
|
4394
4440
|
}
|
|
4395
4441
|
return r;
|
|
4396
|
-
},
|
|
4442
|
+
}, $s = ({
|
|
4397
4443
|
customFonts: e
|
|
4398
4444
|
}) => {
|
|
4399
4445
|
var t;
|
|
4400
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4401
|
-
},
|
|
4446
|
+
return ((t = e == null ? void 0 : e.map((n) => Is(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4447
|
+
}, Rs = ({
|
|
4402
4448
|
cssCode: e,
|
|
4403
4449
|
contentId: t
|
|
4404
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4450
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Es = `
|
|
4405
4451
|
.builder-button {
|
|
4406
4452
|
all: unset;
|
|
4407
4453
|
}
|
|
@@ -4418,7 +4464,7 @@ font-weight: ${i};
|
|
|
4418
4464
|
text-align: inherit;
|
|
4419
4465
|
font-family: inherit;
|
|
4420
4466
|
}
|
|
4421
|
-
`,
|
|
4467
|
+
`, Ps = (e) => e ? "" : Es, Bs = (e) => `variant-${e}`, As = g({
|
|
4422
4468
|
name: "enable-editor",
|
|
4423
4469
|
components: { DynamicDiv: X },
|
|
4424
4470
|
props: [
|
|
@@ -4440,38 +4486,44 @@ font-weight: ${i};
|
|
|
4440
4486
|
],
|
|
4441
4487
|
data() {
|
|
4442
4488
|
return {
|
|
4489
|
+
hasExecuted: !1,
|
|
4443
4490
|
ContentWrapper: this.contentWrapper || "div",
|
|
4444
4491
|
httpReqsData: {},
|
|
4445
4492
|
httpReqsPending: {},
|
|
4446
4493
|
clicked: !1,
|
|
4447
|
-
builderContext:
|
|
4448
|
-
needsElementRefDivForEditing:
|
|
4449
|
-
getWrapperClassName:
|
|
4494
|
+
builderContext: de,
|
|
4495
|
+
needsElementRefDivForEditing: Ts,
|
|
4496
|
+
getWrapperClassName: Bs
|
|
4450
4497
|
};
|
|
4451
4498
|
},
|
|
4452
4499
|
provide() {
|
|
4453
4500
|
const e = this;
|
|
4454
4501
|
return {
|
|
4455
|
-
[
|
|
4502
|
+
[de.key]: e.builderContextSignal
|
|
4456
4503
|
};
|
|
4457
4504
|
},
|
|
4458
4505
|
created() {
|
|
4459
4506
|
this.runHttpRequests(), this.emitStateUpdate();
|
|
4460
4507
|
},
|
|
4461
4508
|
mounted() {
|
|
4462
|
-
var e, t;
|
|
4509
|
+
var e, t, n;
|
|
4463
4510
|
if (w()) {
|
|
4464
|
-
|
|
4511
|
+
E() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4465
4512
|
new CustomEvent("initeditingbldr")
|
|
4466
|
-
)
|
|
4467
|
-
|
|
4468
|
-
|
|
4513
|
+
);
|
|
4514
|
+
const o = this.builderContextSignal.content && G(this.canTrack), r = oe({
|
|
4515
|
+
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
4516
|
+
canTrack: !0
|
|
4517
|
+
}), s = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
4518
|
+
if (o && s === r) {
|
|
4519
|
+
const i = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
|
|
4520
|
+
pe({
|
|
4469
4521
|
apiHost: this.apiHost,
|
|
4470
4522
|
type: "impression",
|
|
4471
4523
|
canTrack: !0,
|
|
4472
|
-
contentId:
|
|
4473
|
-
apiKey:
|
|
4474
|
-
variationId:
|
|
4524
|
+
contentId: i,
|
|
4525
|
+
apiKey: l,
|
|
4526
|
+
variationId: r !== i ? r : void 0
|
|
4475
4527
|
});
|
|
4476
4528
|
}
|
|
4477
4529
|
qe() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
@@ -4597,14 +4649,14 @@ font-weight: ${i};
|
|
|
4597
4649
|
var t, n;
|
|
4598
4650
|
if (this.builderContextSignal.content) {
|
|
4599
4651
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
4600
|
-
|
|
4652
|
+
pe({
|
|
4601
4653
|
apiHost: this.apiHost,
|
|
4602
4654
|
type: "click",
|
|
4603
4655
|
canTrack: G(this.canTrack),
|
|
4604
4656
|
contentId: r,
|
|
4605
4657
|
apiKey: this.apiKey,
|
|
4606
4658
|
variationId: o !== r ? o : void 0,
|
|
4607
|
-
...
|
|
4659
|
+
...Cs(e),
|
|
4608
4660
|
unique: !this.clicked
|
|
4609
4661
|
});
|
|
4610
4662
|
}
|
|
@@ -4646,7 +4698,7 @@ font-weight: ${i};
|
|
|
4646
4698
|
"builder:component:stateChange",
|
|
4647
4699
|
{
|
|
4648
4700
|
detail: {
|
|
4649
|
-
state:
|
|
4701
|
+
state: fe(this.builderContextSignal.rootState),
|
|
4650
4702
|
ref: {
|
|
4651
4703
|
name: this.model
|
|
4652
4704
|
}
|
|
@@ -4701,7 +4753,7 @@ font-weight: ${i};
|
|
|
4701
4753
|
}
|
|
4702
4754
|
}
|
|
4703
4755
|
});
|
|
4704
|
-
function
|
|
4756
|
+
function xs(e, t, n, o, r, s) {
|
|
4705
4757
|
var i, l, a;
|
|
4706
4758
|
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (c(), y(z(e.ContentWrapper), C({
|
|
4707
4759
|
key: 0,
|
|
@@ -4717,31 +4769,31 @@ function As(e, t, n, o, r, s) {
|
|
|
4717
4769
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
4718
4770
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
4719
4771
|
default: W(() => [
|
|
4720
|
-
|
|
4772
|
+
A(e.$slots, "default")
|
|
4721
4773
|
]),
|
|
4722
4774
|
_: 3
|
|
4723
4775
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
|
|
4724
4776
|
}
|
|
4725
|
-
const
|
|
4777
|
+
const Vs = /* @__PURE__ */ b(As, [["render", xs]]), Ns = g({
|
|
4726
4778
|
name: "content-styles",
|
|
4727
4779
|
components: { InlinedStyles: Ce },
|
|
4728
4780
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
4729
4781
|
data() {
|
|
4730
4782
|
return {
|
|
4731
4783
|
injectedStyles: `
|
|
4732
|
-
${
|
|
4784
|
+
${Rs({
|
|
4733
4785
|
cssCode: this.cssCode,
|
|
4734
4786
|
contentId: this.contentId
|
|
4735
4787
|
})}
|
|
4736
|
-
${
|
|
4788
|
+
${$s({
|
|
4737
4789
|
customFonts: this.customFonts
|
|
4738
4790
|
})}
|
|
4739
|
-
${
|
|
4791
|
+
${Ps(this.isNestedRender)}
|
|
4740
4792
|
`.trim()
|
|
4741
4793
|
};
|
|
4742
4794
|
}
|
|
4743
4795
|
});
|
|
4744
|
-
function
|
|
4796
|
+
function Ws(e, t, n, o, r, s) {
|
|
4745
4797
|
const i = k("InlinedStyles");
|
|
4746
4798
|
return c(), y(i, {
|
|
4747
4799
|
id: "builderio-content",
|
|
@@ -4749,7 +4801,7 @@ function Ns(e, t, n, o, r, s) {
|
|
|
4749
4801
|
nonce: e.nonce
|
|
4750
4802
|
}, null, 8, ["styles", "nonce"]);
|
|
4751
4803
|
}
|
|
4752
|
-
const
|
|
4804
|
+
const Os = /* @__PURE__ */ b(Ns, [["render", Ws]]), Us = ({
|
|
4753
4805
|
content: e,
|
|
4754
4806
|
data: t,
|
|
4755
4807
|
locale: n
|
|
@@ -4766,7 +4818,7 @@ const Ws = /* @__PURE__ */ b(Vs, [["render", Ns]]), Os = ({
|
|
|
4766
4818
|
locale: n
|
|
4767
4819
|
} : {}
|
|
4768
4820
|
};
|
|
4769
|
-
},
|
|
4821
|
+
}, Ds = ({
|
|
4770
4822
|
content: e,
|
|
4771
4823
|
data: t
|
|
4772
4824
|
}) => e ? {
|
|
@@ -4776,12 +4828,12 @@ const Ws = /* @__PURE__ */ b(Vs, [["render", Ns]]), Os = ({
|
|
|
4776
4828
|
...t
|
|
4777
4829
|
},
|
|
4778
4830
|
meta: e == null ? void 0 : e.meta
|
|
4779
|
-
} : void 0, Fs = Tt,
|
|
4831
|
+
} : void 0, Fs = Tt, Ls = g({
|
|
4780
4832
|
name: "content-component",
|
|
4781
4833
|
components: {
|
|
4782
|
-
EnableEditor:
|
|
4834
|
+
EnableEditor: Vs,
|
|
4783
4835
|
InlinedScript: bt,
|
|
4784
|
-
ContentStyles:
|
|
4836
|
+
ContentStyles: Os,
|
|
4785
4837
|
Blocks: H,
|
|
4786
4838
|
DynamicDiv: X
|
|
4787
4839
|
},
|
|
@@ -4811,7 +4863,7 @@ const Ws = /* @__PURE__ */ b(Vs, [["render", Ns]]), Os = ({
|
|
|
4811
4863
|
data() {
|
|
4812
4864
|
var e, t;
|
|
4813
4865
|
return {
|
|
4814
|
-
scriptStr:
|
|
4866
|
+
scriptStr: ks({
|
|
4815
4867
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4816
4868
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
4817
4869
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4831,12 +4883,12 @@ const Ws = /* @__PURE__ */ b(Vs, [["render", Ns]]), Os = ({
|
|
|
4831
4883
|
{}
|
|
4832
4884
|
),
|
|
4833
4885
|
builderContextSignal: {
|
|
4834
|
-
content:
|
|
4886
|
+
content: Ds({
|
|
4835
4887
|
content: this.content,
|
|
4836
4888
|
data: this.data
|
|
4837
4889
|
}),
|
|
4838
4890
|
localState: void 0,
|
|
4839
|
-
rootState:
|
|
4891
|
+
rootState: Us({
|
|
4840
4892
|
content: this.content,
|
|
4841
4893
|
data: this.data,
|
|
4842
4894
|
locale: this.locale
|
|
@@ -4868,14 +4920,14 @@ const Ws = /* @__PURE__ */ b(Vs, [["render", Ns]]), Os = ({
|
|
|
4868
4920
|
provide() {
|
|
4869
4921
|
const e = this;
|
|
4870
4922
|
return {
|
|
4871
|
-
[
|
|
4923
|
+
[De.key]: {
|
|
4872
4924
|
registeredComponents: e.registeredComponents
|
|
4873
4925
|
}
|
|
4874
4926
|
};
|
|
4875
4927
|
},
|
|
4876
4928
|
created() {
|
|
4877
4929
|
var t, n;
|
|
4878
|
-
this.apiKey ||
|
|
4930
|
+
this.apiKey || P.error(
|
|
4879
4931
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4880
4932
|
);
|
|
4881
4933
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
@@ -4896,7 +4948,7 @@ const Ws = /* @__PURE__ */ b(Vs, [["render", Ns]]), Os = ({
|
|
|
4896
4948
|
}
|
|
4897
4949
|
}
|
|
4898
4950
|
});
|
|
4899
|
-
function
|
|
4951
|
+
function Ms(e, t, n, o, r, s) {
|
|
4900
4952
|
const i = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
4901
4953
|
return c(), y(u, C({
|
|
4902
4954
|
apiHost: e.apiHost,
|
|
@@ -4917,7 +4969,7 @@ function Ls(e, t, n, o, r, s) {
|
|
|
4917
4969
|
isNestedRender: e.isNestedRender
|
|
4918
4970
|
}, {}), {
|
|
4919
4971
|
default: W(() => {
|
|
4920
|
-
var h, m, d, f, v, T,
|
|
4972
|
+
var h, m, d, f, v, T, F;
|
|
4921
4973
|
return [
|
|
4922
4974
|
e.isSsrAbTest ? (c(), y(i, {
|
|
4923
4975
|
key: 0,
|
|
@@ -4933,8 +4985,8 @@ function Ls(e, t, n, o, r, s) {
|
|
|
4933
4985
|
cssCode: (d = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : d.cssCode,
|
|
4934
4986
|
customFonts: (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.customFonts
|
|
4935
4987
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
|
|
4936
|
-
|
|
4937
|
-
blocks: (
|
|
4988
|
+
B(a, {
|
|
4989
|
+
blocks: (F = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : F.blocks,
|
|
4938
4990
|
context: e.builderContextSignal,
|
|
4939
4991
|
registeredComponents: e.registeredComponents,
|
|
4940
4992
|
linkComponent: e.linkComponent
|
|
@@ -4944,12 +4996,12 @@ function Ls(e, t, n, o, r, s) {
|
|
|
4944
4996
|
_: 1
|
|
4945
4997
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
4946
4998
|
}
|
|
4947
|
-
const
|
|
4999
|
+
const Hs = /* @__PURE__ */ b(Ls, [["render", Ms]]), js = g({
|
|
4948
5000
|
name: "content-variants",
|
|
4949
5001
|
components: {
|
|
4950
5002
|
InlinedScript: bt,
|
|
4951
5003
|
InlinedStyles: Ce,
|
|
4952
|
-
ContentComponent:
|
|
5004
|
+
ContentComponent: Hs
|
|
4953
5005
|
},
|
|
4954
5006
|
props: [
|
|
4955
5007
|
"canTrack",
|
|
@@ -4979,7 +5031,7 @@ const Ms = /* @__PURE__ */ b(Ds, [["render", Ls]]), Hs = g({
|
|
|
4979
5031
|
content: this.content
|
|
4980
5032
|
}),
|
|
4981
5033
|
TARGET: R,
|
|
4982
|
-
getInitVariantsFnsScriptString:
|
|
5034
|
+
getInitVariantsFnsScriptString: bs,
|
|
4983
5035
|
getVariants: Z
|
|
4984
5036
|
};
|
|
4985
5037
|
},
|
|
@@ -4988,7 +5040,7 @@ const Ms = /* @__PURE__ */ b(Ds, [["render", Ls]]), Hs = g({
|
|
|
4988
5040
|
computed: {
|
|
4989
5041
|
updateCookieAndStylesScriptStr() {
|
|
4990
5042
|
var e;
|
|
4991
|
-
return
|
|
5043
|
+
return ys(
|
|
4992
5044
|
Z(this.content).map((t) => ({
|
|
4993
5045
|
id: t.testVariationId,
|
|
4994
5046
|
testRatio: t.testRatio
|
|
@@ -5011,7 +5063,7 @@ const Ms = /* @__PURE__ */ b(Ds, [["render", Ls]]), Hs = g({
|
|
|
5011
5063
|
}
|
|
5012
5064
|
}
|
|
5013
5065
|
});
|
|
5014
|
-
function
|
|
5066
|
+
function Ks(e, t, n, o, r, s) {
|
|
5015
5067
|
const i = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5016
5068
|
return c(), p($, null, [
|
|
5017
5069
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(i, {
|
|
@@ -5021,12 +5073,12 @@ function js(e, t, n, o, r, s) {
|
|
|
5021
5073
|
nonce: e.nonce || ""
|
|
5022
5074
|
}, null, 8, ["scriptStr", "nonce"])) : S("", !0),
|
|
5023
5075
|
e.shouldRenderVariants ? (c(), p($, { key: 1 }, [
|
|
5024
|
-
|
|
5076
|
+
B(l, {
|
|
5025
5077
|
id: "builderio-variants",
|
|
5026
5078
|
styles: e.hideVariantsStyleString,
|
|
5027
5079
|
nonce: e.nonce || ""
|
|
5028
5080
|
}, null, 8, ["styles", "nonce"]),
|
|
5029
|
-
|
|
5081
|
+
B(i, {
|
|
5030
5082
|
id: "builderio-variants-visibility",
|
|
5031
5083
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5032
5084
|
nonce: e.nonce || ""
|
|
@@ -5056,7 +5108,7 @@ function js(e, t, n, o, r, s) {
|
|
|
5056
5108
|
trustedHosts: e.trustedHosts
|
|
5057
5109
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
5058
5110
|
], 64)) : S("", !0),
|
|
5059
|
-
|
|
5111
|
+
B(a, C({
|
|
5060
5112
|
apiHost: e.apiHost,
|
|
5061
5113
|
nonce: e.nonce,
|
|
5062
5114
|
isNestedRender: e.isNestedRender,
|
|
@@ -5083,7 +5135,7 @@ function js(e, t, n, o, r, s) {
|
|
|
5083
5135
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5084
5136
|
], 64);
|
|
5085
5137
|
}
|
|
5086
|
-
const
|
|
5138
|
+
const zs = /* @__PURE__ */ b(js, [["render", Ks]]), qs = async ({
|
|
5087
5139
|
builderContextValue: e,
|
|
5088
5140
|
symbol: t
|
|
5089
5141
|
}) => {
|
|
@@ -5099,11 +5151,11 @@ const Ks = /* @__PURE__ */ b(Hs, [["render", js]]), zs = async ({
|
|
|
5099
5151
|
}
|
|
5100
5152
|
}
|
|
5101
5153
|
}).catch((n) => {
|
|
5102
|
-
|
|
5154
|
+
P.error("Could not fetch symbol content: ", n);
|
|
5103
5155
|
});
|
|
5104
|
-
},
|
|
5156
|
+
}, Js = g({
|
|
5105
5157
|
name: "builder-symbol",
|
|
5106
|
-
components: { ContentVariants:
|
|
5158
|
+
components: { ContentVariants: zs, DynamicDiv: X },
|
|
5107
5159
|
props: [
|
|
5108
5160
|
"symbol",
|
|
5109
5161
|
"attributes",
|
|
@@ -5152,7 +5204,7 @@ const Ks = /* @__PURE__ */ b(Hs, [["render", js]]), zs = async ({
|
|
|
5152
5204
|
},
|
|
5153
5205
|
methods: {
|
|
5154
5206
|
setContent() {
|
|
5155
|
-
this.contentToUse ||
|
|
5207
|
+
this.contentToUse || qs({
|
|
5156
5208
|
symbol: this.symbol,
|
|
5157
5209
|
builderContextValue: this.builderContext
|
|
5158
5210
|
}).then((e) => {
|
|
@@ -5161,11 +5213,11 @@ const Ks = /* @__PURE__ */ b(Hs, [["render", js]]), zs = async ({
|
|
|
5161
5213
|
}
|
|
5162
5214
|
}
|
|
5163
5215
|
});
|
|
5164
|
-
function
|
|
5216
|
+
function Gs(e, t, n, o, r, s) {
|
|
5165
5217
|
var l, a, u, h, m;
|
|
5166
5218
|
const i = k("ContentVariants");
|
|
5167
5219
|
return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5168
|
-
|
|
5220
|
+
B(i, {
|
|
5169
5221
|
nonce: e.builderContext.nonce,
|
|
5170
5222
|
isNestedRender: !0,
|
|
5171
5223
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5189,7 +5241,7 @@ function Js(e, t, n, o, r, s) {
|
|
|
5189
5241
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5190
5242
|
], 16);
|
|
5191
5243
|
}
|
|
5192
|
-
const
|
|
5244
|
+
const Ys = /* @__PURE__ */ b(Js, [["render", Gs]]);
|
|
5193
5245
|
export {
|
|
5194
5246
|
jn as A,
|
|
5195
5247
|
ft as B,
|
|
@@ -5197,37 +5249,37 @@ export {
|
|
|
5197
5249
|
Kn as D,
|
|
5198
5250
|
ve as E,
|
|
5199
5251
|
$o as F,
|
|
5200
|
-
|
|
5201
|
-
|
|
5252
|
+
Zs as G,
|
|
5253
|
+
ii as H,
|
|
5202
5254
|
No as I,
|
|
5203
5255
|
Uo as S,
|
|
5204
5256
|
R as T,
|
|
5205
5257
|
ds as V,
|
|
5206
5258
|
Ce as _,
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5259
|
+
ri as a,
|
|
5260
|
+
ai as b,
|
|
5261
|
+
D as c,
|
|
5210
5262
|
Se as d,
|
|
5211
5263
|
b as e,
|
|
5212
5264
|
Y as f,
|
|
5213
5265
|
ko as g,
|
|
5214
|
-
|
|
5266
|
+
si as h,
|
|
5215
5267
|
_ as i,
|
|
5216
|
-
|
|
5268
|
+
de as j,
|
|
5217
5269
|
At as k,
|
|
5218
|
-
|
|
5270
|
+
Ys as l,
|
|
5219
5271
|
ur as m,
|
|
5220
5272
|
H as n,
|
|
5221
|
-
|
|
5273
|
+
zs as o,
|
|
5222
5274
|
E as p,
|
|
5223
5275
|
qe as q,
|
|
5224
5276
|
on as r,
|
|
5225
|
-
|
|
5277
|
+
ni as s,
|
|
5226
5278
|
sn as t,
|
|
5227
|
-
|
|
5279
|
+
_s as u,
|
|
5228
5280
|
Je as v,
|
|
5229
5281
|
Fs as w,
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5282
|
+
ei as x,
|
|
5283
|
+
ti as y,
|
|
5284
|
+
oi as z
|
|
5233
5285
|
};
|