@builder.io/sdk-vue 5.3.0 → 5.4.1
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-2uzflb3S.cjs → awaiter-4W3WT96K.cjs} +1 -1
- package/lib/browser/{awaiter-4aFQAEvG.js → awaiter-B8s77WBH.js} +1 -1
- package/lib/browser/{block-wrapper-1ItsXF0j.cjs → block-wrapper-7JoIxDbQ.cjs} +1 -1
- package/lib/browser/{block-wrapper-Uj0c_ct-.js → block-wrapper-kW5g4Okp.js} +3 -3
- package/lib/browser/blocks/symbol/symbol.helpers.d.ts +1 -0
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/browser/{component-ref-U0GRcehd.cjs → component-ref-4Utffff4.cjs} +1 -1
- package/lib/browser/{component-ref-826ipClg.js → component-ref-b7ywwGcW.js} +4 -4
- package/lib/browser/components/builder-scripts.vue.d.ts +18 -0
- package/lib/browser/components/content/content.helpers.d.ts +7 -1
- package/lib/browser/components/content/content.vue.d.ts +4 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/components/content-variants/helpers.d.ts +6 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/context/builder-scripts.context.d.ts +7 -0
- package/lib/browser/{get-block-properties-XhHpZEJX.cjs → get-block-properties-89n-r4Af.cjs} +1 -1
- package/lib/browser/{get-block-properties-u3S8CkNp.js → get-block-properties-Y6tHbrsL.js} +1 -1
- package/lib/browser/index-6jB0_2he.cjs +368 -0
- package/lib/browser/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/browser/{index-Jf8hjJYZ.js → index-ikowBLdB.js} +946 -882
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +22 -21
- package/lib/browser/{live-edit-BxSoS0rX.cjs → live-edit-3wlrF5Sa.cjs} +1 -1
- package/lib/browser/{live-edit-uev5ovOr.js → live-edit-OfF9nBpT.js} +1 -1
- package/lib/browser/{repeated-block-s-uTJJ2l.js → repeated-block-fVyfF5-2.js} +2 -2
- package/lib/browser/{repeated-block-Mj7AAxUa.cjs → repeated-block-mH_DZ94i.cjs} +1 -1
- package/lib/browser/{style-wrapper-WeOZ3wU5.js → style-wrapper-8rqiq_70.js} +1 -1
- package/lib/browser/{style-wrapper-C17hpa9C.cjs → style-wrapper-wQeSi9uI.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-3P7HNK2U.js → awaiter--AIlZV5A.js} +1 -1
- package/lib/edge/{awaiter-tL_1GDRg.cjs → awaiter-o_usBqsR.cjs} +1 -1
- package/lib/{node/block-wrapper-e5lqTjH4.js → edge/block-wrapper-C3hvVlZR.js} +3 -3
- package/lib/edge/{block-wrapper-AJ9g81fv.cjs → block-wrapper-f0WB40t8.cjs} +1 -1
- package/lib/edge/blocks/symbol/symbol.helpers.d.ts +1 -0
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/edge/{component-ref-kOTGaG_S.cjs → component-ref-RH-KNtol.cjs} +1 -1
- package/lib/edge/{component-ref-2H6t6CVL.js → component-ref-palC2iTk.js} +4 -4
- package/lib/edge/components/builder-scripts.vue.d.ts +18 -0
- package/lib/edge/components/content/content.helpers.d.ts +7 -1
- package/lib/edge/components/content/content.vue.d.ts +4 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/components/content-variants/helpers.d.ts +6 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/context/builder-scripts.context.d.ts +7 -0
- package/lib/edge/{get-block-properties-yDy5CcoJ.js → get-block-properties-J0RzfSzL.js} +1 -1
- package/lib/edge/{get-block-properties-Cf0JYe8s.cjs → get-block-properties-NK3aSNeI.cjs} +1 -1
- package/lib/edge/index-Mb5Ji_3B.cjs +386 -0
- package/lib/edge/{index-0OjD7npr.js → index-Rfy62Wro.js} +1481 -1417
- package/lib/edge/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +25 -24
- package/lib/{node/live-edit-iCnhUEuS.cjs → edge/live-edit-FXVlWLQR.cjs} +1 -1
- package/lib/{node/live-edit-GfW2VTki.js → edge/live-edit-mAeB4Uu2.js} +1 -1
- package/lib/edge/{repeated-block-UG8Sns3u.js → repeated-block-_kq2y3Kn.js} +2 -2
- package/lib/edge/{repeated-block-d6gfiTTu.cjs → repeated-block-tuEDHoSp.cjs} +1 -1
- package/lib/edge/{style-wrapper-UpCDtTSA.js → style-wrapper-OSOobwM9.js} +1 -1
- package/lib/edge/{style-wrapper-pawaG9qF.cjs → style-wrapper-r8zHhlTM.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-AN3_pw27.js → awaiter-fR3-KaXu.js} +1 -1
- package/lib/node/{awaiter-bGTvqMbD.cjs → awaiter-y38jjnBK.cjs} +1 -1
- package/lib/node/{block-wrapper-uIhnB7Vo.cjs → block-wrapper-nPZjqj5H.cjs} +1 -1
- package/lib/{edge/block-wrapper-W6_AJxdH.js → node/block-wrapper-ofgM0xH0.js} +3 -3
- package/lib/node/blocks/symbol/symbol.helpers.d.ts +1 -0
- package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/node/{component-ref-lBfIlbHs.js → component-ref-COeITsvM.js} +5 -5
- package/lib/node/{component-ref-hWkVL5In.cjs → component-ref-WO74XtUa.cjs} +1 -1
- package/lib/node/components/builder-scripts.vue.d.ts +18 -0
- package/lib/node/components/content/content.helpers.d.ts +7 -1
- package/lib/node/components/content/content.vue.d.ts +4 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/components/content-variants/helpers.d.ts +6 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/context/builder-scripts.context.d.ts +7 -0
- package/lib/node/{get-block-properties-pMlEyIJy.js → get-block-properties-JDRIQ736.js} +2 -2
- package/lib/node/{get-block-properties-VD2nOy1H.cjs → get-block-properties-UHO1OvdN.cjs} +1 -1
- package/lib/node/index-TDsy_Sk9.cjs +368 -0
- package/lib/node/{index-xfji5jj1.js → index-_L3VFXAv.js} +832 -768
- package/lib/node/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +25 -24
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-hyHdyjeL.cjs → node/live-edit-QgZv9WDZ.cjs} +1 -1
- package/lib/{edge/live-edit-es0ntXpd.js → node/live-edit-u-OEPKCw.js} +1 -1
- package/lib/node/{repeated-block-RuIC6FQv.cjs → repeated-block--LS-nlbL.cjs} +1 -1
- package/lib/node/{repeated-block-hte-wY9-.js → repeated-block-rhmN1ohE.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-r2oi-Y6E.js → should-force-browser-runtime-in-node-CwJRQBSu.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-oNYv8BG3.cjs → should-force-browser-runtime-in-node-MVlZh-76.cjs} +2 -2
- package/lib/node/{style-wrapper-c9ma8_oR.cjs → style-wrapper-oChSWVYu.cjs} +1 -1
- package/lib/node/{style-wrapper-y6_fa2q6.js → style-wrapper-qHENiLRx.js} +2 -2
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/index-KofqhXXd.cjs +0 -368
- package/lib/edge/index-Vo2N3MOA.cjs +0 -386
- package/lib/node/index-3pN6fdOW.cjs +0 -368
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as y, openBlock as u, createElementBlock as h, Fragment as
|
|
2
|
-
import { T as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as y, openBlock as u, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as w, toHandlers as U, withCtx as W, renderSlot as B, resolveComponent as C, createTextVNode as xt, toDisplayString as pe, defineAsyncComponent as Q, createVNode as E, renderList as x, createCommentVNode as k, h as ct, createElementVNode as K, normalizeStyle as M, normalizeClass as ee, markRaw as Ft } from "vue";
|
|
2
|
+
import { T as $, g as Lt, f as Mt, c as dt, i as R, s as Ht, r as jt, p as zt, a as qt, l as F, b as Kt, d as A, e as Gt, n as ut, S as Jt, h as Pe, j as ce, k as _t, m as pt, o as Qt, q as Yt, t as mt, _ as Le, u as Xt } from "./should-force-browser-runtime-in-node-CwJRQBSu.js";
|
|
3
|
+
const Zt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), en = (e) => typeof e == "string" && Zt.has(e.toLowerCase());
|
|
4
4
|
function N(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
@@ -11,38 +11,38 @@ function N(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const tn = y({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: en };
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
20
|
+
}), v = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
22
22
|
for (const [o, r] of t)
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (u(),
|
|
28
|
-
typeof e.TagName == "string" ? (u(),
|
|
29
|
-
default:
|
|
30
|
-
|
|
26
|
+
function nn(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (u(), S(X(e.TagName), w({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (u(), h(I, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (u(), S(X(e.TagName), w({ key: 0 }, e.attributes, U(e.actionAttributes)), {
|
|
29
|
+
default: W(() => [
|
|
30
|
+
B(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (u(),
|
|
34
|
-
default:
|
|
35
|
-
|
|
33
|
+
}, 16)) : (u(), S(X(e.TagName), w({ key: 1 }, e.attributes, U(e.actionAttributes)), {
|
|
34
|
+
default: W(() => [
|
|
35
|
+
B(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Ae = /* @__PURE__ */ v(tn, [["render", nn]]), As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
43
|
+
default: Ae
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), H = () => {
|
|
45
|
-
switch (
|
|
45
|
+
switch ($) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
48
48
|
case "rsc":
|
|
@@ -54,9 +54,9 @@ const Ee = /* @__PURE__ */ S(Xt, [["render", Zt]]), Ts = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, on = y({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: Ae },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -83,20 +83,20 @@ const Ee = /* @__PURE__ */ S(Xt, [["render", Zt]]), Ts = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
87
|
-
const s =
|
|
88
|
-
return u(),
|
|
86
|
+
function rn(e, t, n, o, r, i) {
|
|
87
|
+
const s = C("DynamicRenderer");
|
|
88
|
+
return u(), S(s, {
|
|
89
89
|
attributes: e.attrs(),
|
|
90
90
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
|
-
default:
|
|
94
|
-
|
|
93
|
+
default: W(() => [
|
|
94
|
+
xt(pe(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const sn = /* @__PURE__ */ v(on, [["render", rn]]), an = Symbol(), ke = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -113,17 +113,17 @@ const nn = /* @__PURE__ */ S(en, [["render", tn]]), on = Symbol(), Se = {
|
|
|
113
113
|
nonce: "",
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
|
-
key:
|
|
117
|
-
},
|
|
116
|
+
key: an
|
|
117
|
+
}, ln = Symbol(), ht = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
|
-
key:
|
|
120
|
-
},
|
|
119
|
+
key: ln
|
|
120
|
+
}, ft = (e, t, n) => {
|
|
121
121
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
122
122
|
return o === void 0 || o === e ? n : o;
|
|
123
|
-
},
|
|
124
|
-
let n =
|
|
125
|
-
return n || (n = new Function(...e, t),
|
|
126
|
-
},
|
|
123
|
+
}, cn = 5e3, Me = dt(cn), dn = (e, t) => {
|
|
124
|
+
let n = Me.get(t);
|
|
125
|
+
return n || (n = new Function(...e, t), Me.set(t, n)), n;
|
|
126
|
+
}, un = ({
|
|
127
127
|
code: e,
|
|
128
128
|
builder: t,
|
|
129
129
|
context: n,
|
|
@@ -132,28 +132,28 @@ const nn = /* @__PURE__ */ S(en, [["render", tn]]), on = Symbol(), Se = {
|
|
|
132
132
|
rootSetState: i,
|
|
133
133
|
rootState: s
|
|
134
134
|
}) => {
|
|
135
|
-
const a =
|
|
135
|
+
const a = Lt({
|
|
136
136
|
builder: t,
|
|
137
137
|
context: n,
|
|
138
138
|
event: o,
|
|
139
|
-
state:
|
|
139
|
+
state: Mt({
|
|
140
140
|
rootState: s,
|
|
141
141
|
localState: r,
|
|
142
142
|
rootSetState: i
|
|
143
143
|
})
|
|
144
144
|
});
|
|
145
|
-
return
|
|
146
|
-
},
|
|
145
|
+
return dn(a.map(([l]) => l), e)(...a.map(([, l]) => l));
|
|
146
|
+
}, pn = (e) => R() || Ht({
|
|
147
147
|
shouldLogWarning: !0
|
|
148
|
-
}) ?
|
|
148
|
+
}) ? un(e) : jt(e), mn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, hn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, fn = (e) => {
|
|
149
149
|
var t, n, o, r, i, s;
|
|
150
|
-
return ((o = (n = (t =
|
|
151
|
-
},
|
|
152
|
-
let t =
|
|
153
|
-
return t === void 0 && (t =
|
|
154
|
-
},
|
|
150
|
+
return ((o = (n = (t = mn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = hn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
151
|
+
}, bn = 5e3, He = dt(bn), gn = (e) => {
|
|
152
|
+
let t = He.get(e);
|
|
153
|
+
return t === void 0 && (t = fn(e) || null, He.set(e, t)), t;
|
|
154
|
+
}, yn = (e, t, n) => {
|
|
155
155
|
const o = n.split(".")[0], r = t && Object.prototype.hasOwnProperty.call(t, o) ? t : e;
|
|
156
|
-
return
|
|
156
|
+
return ft(r, n);
|
|
157
157
|
};
|
|
158
158
|
function te({
|
|
159
159
|
code: e,
|
|
@@ -167,14 +167,14 @@ function te({
|
|
|
167
167
|
}) {
|
|
168
168
|
if (e.trim() === "")
|
|
169
169
|
return;
|
|
170
|
-
const l =
|
|
170
|
+
const l = gn(e.trim());
|
|
171
171
|
if (l)
|
|
172
|
-
return
|
|
172
|
+
return yn(o, n, l);
|
|
173
173
|
const d = {
|
|
174
|
-
code:
|
|
174
|
+
code: zt(e, {
|
|
175
175
|
isExpression: s
|
|
176
176
|
}),
|
|
177
|
-
builder:
|
|
177
|
+
builder: qt(a),
|
|
178
178
|
context: t,
|
|
179
179
|
event: i,
|
|
180
180
|
rootSetState: r,
|
|
@@ -182,7 +182,7 @@ function te({
|
|
|
182
182
|
localState: n
|
|
183
183
|
};
|
|
184
184
|
try {
|
|
185
|
-
return
|
|
185
|
+
return pn(d);
|
|
186
186
|
} catch (p) {
|
|
187
187
|
F.error("Failed code evaluation: " + p.message, {
|
|
188
188
|
code: e
|
|
@@ -190,15 +190,15 @@ function te({
|
|
|
190
190
|
return;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Sn(e, t) {
|
|
194
194
|
var n;
|
|
195
195
|
return {
|
|
196
196
|
...(n = e.component) == null ? void 0 : n.options,
|
|
197
197
|
...e.options,
|
|
198
|
-
...
|
|
198
|
+
...kn(e, t)
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
const
|
|
201
|
+
const kn = (e, t) => {
|
|
202
202
|
var n, o;
|
|
203
203
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
204
204
|
return {
|
|
@@ -212,10 +212,10 @@ const gn = (e, t) => {
|
|
|
212
212
|
}))
|
|
213
213
|
};
|
|
214
214
|
};
|
|
215
|
-
function
|
|
215
|
+
function bt(e) {
|
|
216
216
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
217
217
|
}
|
|
218
|
-
const
|
|
218
|
+
const vn = (e) => {
|
|
219
219
|
if (Array.isArray(e))
|
|
220
220
|
return !0;
|
|
221
221
|
const t = Object.getPrototypeOf(e);
|
|
@@ -224,9 +224,9 @@ const yn = (e) => {
|
|
|
224
224
|
function ie(e, t, n) {
|
|
225
225
|
if (e === null || typeof e != "object")
|
|
226
226
|
return e;
|
|
227
|
-
if (
|
|
227
|
+
if (bt(e))
|
|
228
228
|
return ie(e[t] ?? void 0, t, n);
|
|
229
|
-
if (!
|
|
229
|
+
if (!vn(e))
|
|
230
230
|
return e;
|
|
231
231
|
if (n.has(e))
|
|
232
232
|
return n.get(e);
|
|
@@ -247,10 +247,10 @@ function ie(e, t, n) {
|
|
|
247
247
|
const r = o ?? e;
|
|
248
248
|
return n.set(e, r), r;
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Cn(e, t) {
|
|
251
251
|
var r;
|
|
252
252
|
const n = (r = e.component) == null ? void 0 : r.options;
|
|
253
|
-
if (!n || typeof n != "object" ||
|
|
253
|
+
if (!n || typeof n != "object" || bt(n))
|
|
254
254
|
return e;
|
|
255
255
|
const o = ie(n, t ?? "Default", /* @__PURE__ */ new WeakMap());
|
|
256
256
|
return o === n ? e : (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"), {
|
|
@@ -263,10 +263,10 @@ function Sn(e, t) {
|
|
|
263
263
|
}
|
|
264
264
|
function me(e) {
|
|
265
265
|
const t = e || (R() ? window.location.search : void 0);
|
|
266
|
-
return t ?
|
|
266
|
+
return t ? Kt(t).indexOf("builder.preview=") !== -1 : !1;
|
|
267
267
|
}
|
|
268
|
-
const
|
|
269
|
-
const
|
|
268
|
+
const gt = () => A() || me();
|
|
269
|
+
const Tn = ({
|
|
270
270
|
block: e,
|
|
271
271
|
context: t,
|
|
272
272
|
localState: n,
|
|
@@ -293,56 +293,56 @@ const kn = ({
|
|
|
293
293
|
rootSetState: r,
|
|
294
294
|
context: t
|
|
295
295
|
});
|
|
296
|
-
|
|
296
|
+
Gt(s, a === "id" ? "properties.id" : a, d, i);
|
|
297
297
|
}
|
|
298
298
|
return s;
|
|
299
|
-
},
|
|
299
|
+
}, je = /* @__PURE__ */ new WeakMap(), In = (e) => {
|
|
300
300
|
if (!e.bindings)
|
|
301
301
|
return !1;
|
|
302
302
|
for (const t in e.bindings)
|
|
303
303
|
return !0;
|
|
304
304
|
return !1;
|
|
305
305
|
};
|
|
306
|
-
function
|
|
306
|
+
function wn({
|
|
307
307
|
block: e,
|
|
308
308
|
context: t,
|
|
309
309
|
localState: n,
|
|
310
310
|
rootState: o,
|
|
311
311
|
rootSetState: r
|
|
312
312
|
}) {
|
|
313
|
-
const i = o.locale, s = !
|
|
313
|
+
const i = o.locale, s = !In(e) && typeof e == "object" && e !== null && !gt(), a = i ?? "";
|
|
314
314
|
if (s) {
|
|
315
|
-
const d =
|
|
315
|
+
const d = je.get(e);
|
|
316
316
|
if (d && d.locale === a)
|
|
317
317
|
return d.block;
|
|
318
318
|
}
|
|
319
319
|
let l = e;
|
|
320
|
-
return l =
|
|
320
|
+
return l = Tn({
|
|
321
321
|
block: l,
|
|
322
322
|
localState: n,
|
|
323
323
|
rootState: o,
|
|
324
324
|
rootSetState: r,
|
|
325
325
|
context: t
|
|
326
|
-
}), l =
|
|
326
|
+
}), l = Cn(l, i), s && je.set(e, {
|
|
327
327
|
locale: a,
|
|
328
328
|
block: l
|
|
329
329
|
}), l;
|
|
330
330
|
}
|
|
331
|
-
const
|
|
331
|
+
const $n = (e) => ({
|
|
332
332
|
type: "builder.registerComponent",
|
|
333
|
-
data:
|
|
334
|
-
}),
|
|
333
|
+
data: Be(e)
|
|
334
|
+
}), Rn = (e) => {
|
|
335
335
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
336
336
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
337
337
|
};
|
|
338
|
-
function
|
|
339
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
338
|
+
function Be(e) {
|
|
339
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Rn(n) : n));
|
|
340
340
|
}
|
|
341
|
-
const
|
|
342
|
-
function
|
|
343
|
-
e === "plugin" && (t =
|
|
344
|
-
let n =
|
|
345
|
-
if (n || (n =
|
|
341
|
+
const ze = {};
|
|
342
|
+
function Bs(e, t) {
|
|
343
|
+
e === "plugin" && (t = Be(t));
|
|
344
|
+
let n = ze[e];
|
|
345
|
+
if (n || (n = ze[e] = []), n.push(t), R()) {
|
|
346
346
|
const o = {
|
|
347
347
|
type: "builder.register",
|
|
348
348
|
data: {
|
|
@@ -357,7 +357,7 @@ function ws(e, t) {
|
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Vs(e) {
|
|
361
361
|
var t;
|
|
362
362
|
if (R()) {
|
|
363
363
|
const n = JSON.parse(JSON.stringify(e));
|
|
@@ -367,50 +367,50 @@ function Is(e) {
|
|
|
367
367
|
}, "*");
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
const
|
|
371
|
-
function
|
|
370
|
+
const qe = {};
|
|
371
|
+
function Ns(e) {
|
|
372
372
|
if (R()) {
|
|
373
|
-
Object.assign(
|
|
373
|
+
Object.assign(qe, e);
|
|
374
374
|
const t = {
|
|
375
375
|
type: "builder.settingsChange",
|
|
376
|
-
data:
|
|
376
|
+
data: qe
|
|
377
377
|
};
|
|
378
378
|
parent.postMessage(t, "*");
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
const
|
|
381
|
+
const Ke = "builder.", En = "options.", yt = (e) => {
|
|
382
382
|
if (!e)
|
|
383
383
|
return {};
|
|
384
|
-
const t =
|
|
384
|
+
const t = ut(e), n = {};
|
|
385
385
|
return Object.keys(t).forEach((o) => {
|
|
386
|
-
if (o.startsWith(
|
|
387
|
-
const r = o.replace(
|
|
386
|
+
if (o.startsWith(Ke)) {
|
|
387
|
+
const r = o.replace(Ke, "").replace(En, "");
|
|
388
388
|
n[r] = t[o];
|
|
389
389
|
}
|
|
390
390
|
}), n;
|
|
391
|
-
},
|
|
391
|
+
}, Pn = () => {
|
|
392
392
|
if (!R())
|
|
393
393
|
return {};
|
|
394
394
|
const e = new URLSearchParams(window.location.search);
|
|
395
|
-
return
|
|
396
|
-
},
|
|
397
|
-
function
|
|
395
|
+
return yt(e);
|
|
396
|
+
}, An = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
397
|
+
function St(e, t) {
|
|
398
398
|
let n;
|
|
399
399
|
try {
|
|
400
400
|
n = new URL(t.origin);
|
|
401
401
|
} catch {
|
|
402
402
|
return !1;
|
|
403
403
|
}
|
|
404
|
-
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e ||
|
|
404
|
+
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || An).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
|
|
405
405
|
}
|
|
406
|
-
let
|
|
407
|
-
const
|
|
406
|
+
let Ge = !1;
|
|
407
|
+
const kt = (e) => {
|
|
408
408
|
var t, n;
|
|
409
|
-
|
|
409
|
+
Ge || (Ge = !0, R() && ((t = window.parent) == null || t.postMessage({
|
|
410
410
|
type: "builder.sdkInfo",
|
|
411
411
|
data: {
|
|
412
|
-
target:
|
|
413
|
-
version:
|
|
412
|
+
target: $,
|
|
413
|
+
version: Jt,
|
|
414
414
|
supportsPatchUpdates: !1,
|
|
415
415
|
// Supports builder-model="..." attribute which is needed to
|
|
416
416
|
// scope our '+ add block' button styling
|
|
@@ -428,7 +428,7 @@ const yt = (e) => {
|
|
|
428
428
|
}
|
|
429
429
|
}, "*"), window.addEventListener("message", (o) => {
|
|
430
430
|
var i, s;
|
|
431
|
-
if (!
|
|
431
|
+
if (!St(e.trustedHosts, o))
|
|
432
432
|
return;
|
|
433
433
|
const {
|
|
434
434
|
data: r
|
|
@@ -469,12 +469,12 @@ const yt = (e) => {
|
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
})));
|
|
472
|
-
},
|
|
472
|
+
}, vt = ({
|
|
473
473
|
model: e,
|
|
474
474
|
trustedHosts: t,
|
|
475
475
|
callbacks: n
|
|
476
476
|
}) => (o) => {
|
|
477
|
-
if (!
|
|
477
|
+
if (!St(t, o))
|
|
478
478
|
return;
|
|
479
479
|
const {
|
|
480
480
|
data: r
|
|
@@ -500,7 +500,7 @@ const yt = (e) => {
|
|
|
500
500
|
break;
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
},
|
|
503
|
+
}, Os = ({
|
|
504
504
|
model: e,
|
|
505
505
|
apiKey: t,
|
|
506
506
|
callback: n,
|
|
@@ -509,11 +509,11 @@ const yt = (e) => {
|
|
|
509
509
|
if (!R)
|
|
510
510
|
return F.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
511
511
|
};
|
|
512
|
-
|
|
512
|
+
kt({
|
|
513
513
|
modelName: e,
|
|
514
514
|
apiKey: t
|
|
515
515
|
});
|
|
516
|
-
const r =
|
|
516
|
+
const r = vt({
|
|
517
517
|
callbacks: {
|
|
518
518
|
contentUpdate: n,
|
|
519
519
|
animation: () => {
|
|
@@ -529,24 +529,24 @@ const yt = (e) => {
|
|
|
529
529
|
return window.addEventListener("message", r), () => {
|
|
530
530
|
window.removeEventListener("message", r);
|
|
531
531
|
};
|
|
532
|
-
},
|
|
532
|
+
}, Bn = "builder.tests", Ve = (e) => `${Bn}.${e}`, Vn = ({
|
|
533
533
|
contentId: e
|
|
534
|
-
}) =>
|
|
535
|
-
name:
|
|
534
|
+
}) => _t({
|
|
535
|
+
name: Ve(e),
|
|
536
536
|
canTrack: !0
|
|
537
|
-
}),
|
|
537
|
+
}), Nn = ({
|
|
538
538
|
contentId: e
|
|
539
|
-
}) =>
|
|
540
|
-
name:
|
|
539
|
+
}) => Pe({
|
|
540
|
+
name: Ve(e),
|
|
541
541
|
canTrack: !0
|
|
542
|
-
}),
|
|
542
|
+
}), On = ({
|
|
543
543
|
contentId: e,
|
|
544
544
|
value: t
|
|
545
|
-
}) =>
|
|
546
|
-
name:
|
|
545
|
+
}) => pt({
|
|
546
|
+
name: Ve(e),
|
|
547
547
|
value: t,
|
|
548
548
|
canTrack: !0
|
|
549
|
-
}),
|
|
549
|
+
}), Ct = (e) => ce(e.id) && ce(e.variations) && Object.keys(e.variations).length > 0, Wn = ({
|
|
550
550
|
id: e,
|
|
551
551
|
variations: t
|
|
552
552
|
}) => {
|
|
@@ -559,15 +559,15 @@ const yt = (e) => {
|
|
|
559
559
|
return i;
|
|
560
560
|
}
|
|
561
561
|
return e;
|
|
562
|
-
},
|
|
563
|
-
const t =
|
|
564
|
-
return
|
|
562
|
+
}, Tt = (e) => {
|
|
563
|
+
const t = Wn(e);
|
|
564
|
+
return On({
|
|
565
565
|
contentId: e.id,
|
|
566
566
|
value: t
|
|
567
567
|
}).catch((n) => {
|
|
568
568
|
F.error("could not store A/B test variation: ", n);
|
|
569
569
|
}), t;
|
|
570
|
-
},
|
|
570
|
+
}, It = ({
|
|
571
571
|
item: e,
|
|
572
572
|
testGroupId: t
|
|
573
573
|
}) => {
|
|
@@ -581,7 +581,7 @@ const yt = (e) => {
|
|
|
581
581
|
testVariationId: n.id,
|
|
582
582
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
583
583
|
};
|
|
584
|
-
},
|
|
584
|
+
}, Dn = ({
|
|
585
585
|
item: e,
|
|
586
586
|
canTrack: t
|
|
587
587
|
}) => {
|
|
@@ -589,14 +589,14 @@ const yt = (e) => {
|
|
|
589
589
|
return e;
|
|
590
590
|
if (!e)
|
|
591
591
|
return;
|
|
592
|
-
if (!
|
|
592
|
+
if (!Ct(e))
|
|
593
593
|
return e;
|
|
594
|
-
const n =
|
|
594
|
+
const n = Nn({
|
|
595
595
|
contentId: e.id
|
|
596
|
-
}) ||
|
|
596
|
+
}) || Tt({
|
|
597
597
|
variations: e.variations,
|
|
598
598
|
id: e.id
|
|
599
|
-
}), o =
|
|
599
|
+
}), o = It({
|
|
600
600
|
item: e,
|
|
601
601
|
testGroupId: n
|
|
602
602
|
});
|
|
@@ -604,18 +604,18 @@ const yt = (e) => {
|
|
|
604
604
|
...e,
|
|
605
605
|
...o
|
|
606
606
|
};
|
|
607
|
-
},
|
|
607
|
+
}, Un = async ({
|
|
608
608
|
item: e,
|
|
609
609
|
canTrack: t
|
|
610
610
|
}) => {
|
|
611
|
-
if (!t || !
|
|
611
|
+
if (!t || !Ct(e))
|
|
612
612
|
return e;
|
|
613
|
-
const o = await
|
|
613
|
+
const o = await Vn({
|
|
614
614
|
contentId: e.id
|
|
615
|
-
}) ||
|
|
615
|
+
}) || Tt({
|
|
616
616
|
variations: e.variations,
|
|
617
617
|
id: e.id
|
|
618
|
-
}), r =
|
|
618
|
+
}), r = It({
|
|
619
619
|
item: e,
|
|
620
620
|
testGroupId: o
|
|
621
621
|
});
|
|
@@ -624,22 +624,22 @@ const yt = (e) => {
|
|
|
624
624
|
...r
|
|
625
625
|
};
|
|
626
626
|
};
|
|
627
|
-
const
|
|
627
|
+
const xn = "builder.preview", Fn = "BUILDER_STUDIO", Je = "builder.userAttributes.", Ln = (e) => e === "true" ? !0 : e === "false" ? !1 : e, _e = () => {
|
|
628
628
|
if (!R())
|
|
629
629
|
return {};
|
|
630
630
|
const e = new URLSearchParams(window.location.search);
|
|
631
|
-
if (e.get(
|
|
631
|
+
if (e.get(xn) !== Fn)
|
|
632
632
|
return {};
|
|
633
633
|
const t = {};
|
|
634
634
|
return e.forEach((n, o) => {
|
|
635
|
-
o.startsWith(
|
|
635
|
+
o.startsWith(Je) && (t[o.slice(Je.length)] = Ln(n));
|
|
636
636
|
}), t;
|
|
637
|
-
},
|
|
638
|
-
function
|
|
637
|
+
}, Qe = "builder.userAttributes";
|
|
638
|
+
function Ye() {
|
|
639
639
|
let e = !0;
|
|
640
640
|
const t = /* @__PURE__ */ new Set(), n = () => {
|
|
641
|
-
const o =
|
|
642
|
-
name:
|
|
641
|
+
const o = Pe({
|
|
642
|
+
name: Qe,
|
|
643
643
|
canTrack: e
|
|
644
644
|
});
|
|
645
645
|
return o ? JSON.parse(o) : {};
|
|
@@ -652,12 +652,12 @@ function _e() {
|
|
|
652
652
|
...n(),
|
|
653
653
|
...o
|
|
654
654
|
};
|
|
655
|
-
|
|
656
|
-
name:
|
|
655
|
+
pt({
|
|
656
|
+
name: Qe,
|
|
657
657
|
value: JSON.stringify(r),
|
|
658
658
|
canTrack: e
|
|
659
659
|
});
|
|
660
|
-
const i =
|
|
660
|
+
const i = _e();
|
|
661
661
|
t.forEach((s) => s({
|
|
662
662
|
...r,
|
|
663
663
|
...i
|
|
@@ -666,7 +666,7 @@ function _e() {
|
|
|
666
666
|
getUserAttributes() {
|
|
667
667
|
return R() ? {
|
|
668
668
|
...n(),
|
|
669
|
-
...
|
|
669
|
+
..._e()
|
|
670
670
|
} : {};
|
|
671
671
|
},
|
|
672
672
|
subscribeOnUserAttributesChange(o, {
|
|
@@ -681,45 +681,45 @@ function _e() {
|
|
|
681
681
|
}
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
|
-
let
|
|
685
|
-
R() &&
|
|
686
|
-
const de =
|
|
684
|
+
let ve;
|
|
685
|
+
R() && $ === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Ye()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = Ye();
|
|
686
|
+
const de = ve, Ws = (e) => {
|
|
687
687
|
de.setUserAttributes(e);
|
|
688
688
|
}, G = (e) => {
|
|
689
689
|
const t = ce(e) ? e : !0;
|
|
690
690
|
return de.setCanTrack(t), t;
|
|
691
691
|
};
|
|
692
|
-
function
|
|
692
|
+
function Mn() {
|
|
693
693
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
696
|
-
const e =
|
|
695
|
+
function Hn() {
|
|
696
|
+
const e = Mn().fetch;
|
|
697
697
|
if (typeof e > "u")
|
|
698
698
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
699
699
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
700
700
|
return e;
|
|
701
701
|
}
|
|
702
|
-
const
|
|
703
|
-
function
|
|
702
|
+
const jn = Hn();
|
|
703
|
+
function Ce(e, t = null, n = ".") {
|
|
704
704
|
return Object.keys(e).reduce((o, r) => {
|
|
705
705
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
706
706
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
707
707
|
...o,
|
|
708
|
-
...
|
|
708
|
+
...Ce(i, s, n)
|
|
709
709
|
} : {
|
|
710
710
|
...o,
|
|
711
711
|
[s]: i
|
|
712
712
|
};
|
|
713
713
|
}, {});
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function wt(e, t, n = {}) {
|
|
716
716
|
for (const o in e) {
|
|
717
717
|
const r = e[o], i = t ? t + "." + o : o;
|
|
718
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ?
|
|
718
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? wt(r, i, n) : n[i] = r;
|
|
719
719
|
}
|
|
720
720
|
return n;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function zn(e) {
|
|
723
723
|
const t = {};
|
|
724
724
|
for (const n in e) {
|
|
725
725
|
const o = n.split(".");
|
|
@@ -731,7 +731,7 @@ function Mn(e) {
|
|
|
731
731
|
}
|
|
732
732
|
return t;
|
|
733
733
|
}
|
|
734
|
-
const
|
|
734
|
+
const qn = "v3", Xe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ne = (e) => {
|
|
735
735
|
const {
|
|
736
736
|
limit: t = 30,
|
|
737
737
|
userAttributes: n,
|
|
@@ -741,7 +741,7 @@ const Hn = "v3", Qe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Be = (
|
|
|
741
741
|
enrich: s,
|
|
742
742
|
enrichOptions: a,
|
|
743
743
|
locale: l,
|
|
744
|
-
apiVersion: d =
|
|
744
|
+
apiVersion: d = qn,
|
|
745
745
|
fields: p,
|
|
746
746
|
omit: b,
|
|
747
747
|
offset: c,
|
|
@@ -755,81 +755,81 @@ const Hn = "v3", Qe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Be = (
|
|
|
755
755
|
throw new Error("Missing API key");
|
|
756
756
|
if (!["v3"].includes(d))
|
|
757
757
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${d}'`);
|
|
758
|
-
const
|
|
759
|
-
|
|
758
|
+
const V = t !== 1, q = D || "https://cdn.builder.io", T = new URL(`${q}/api/${d}/content/${r}`);
|
|
759
|
+
T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(V)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l);
|
|
760
760
|
let j = n || {};
|
|
761
|
-
if (s &&
|
|
762
|
-
const
|
|
761
|
+
if (s && T.searchParams.set("enrich", String(s)), s && a && T.searchParams.set("enrichOptions", JSON.stringify(a)), T.searchParams.set("omit", b ?? "meta.componentsUsed"), p && T.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && T.searchParams.set("offset", String(Math.floor(c))), typeof P == "boolean" && T.searchParams.set("includeUnpublished", String(P)), m && Xe(m) && T.searchParams.set("cacheSeconds", String(m)), f && Xe(f) && T.searchParams.set("staleCacheSeconds", String(f)), g) {
|
|
762
|
+
const O = Ce({
|
|
763
763
|
sort: g
|
|
764
764
|
});
|
|
765
|
-
for (const L in
|
|
766
|
-
|
|
765
|
+
for (const L in O)
|
|
766
|
+
T.searchParams.set(L, JSON.stringify(O[L]));
|
|
767
767
|
}
|
|
768
768
|
const J = {
|
|
769
|
-
|
|
770
|
-
...
|
|
769
|
+
...Pn(),
|
|
770
|
+
...ut(e.options || {})
|
|
771
771
|
};
|
|
772
772
|
j = {
|
|
773
773
|
...j,
|
|
774
|
-
...
|
|
774
|
+
...Jn(J)
|
|
775
775
|
};
|
|
776
|
-
const _ =
|
|
777
|
-
for (const
|
|
778
|
-
|
|
779
|
-
if (Object.keys(j).length > 0 &&
|
|
780
|
-
const
|
|
776
|
+
const _ = Ce(J);
|
|
777
|
+
for (const O in _)
|
|
778
|
+
O !== "apiKey" && T.searchParams.set(O, String(_[O]));
|
|
779
|
+
if (Object.keys(j).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(j)), o) {
|
|
780
|
+
const O = wt({
|
|
781
781
|
query: o
|
|
782
782
|
});
|
|
783
|
-
for (const L in
|
|
784
|
-
|
|
783
|
+
for (const L in O)
|
|
784
|
+
T.searchParams.set(L, JSON.stringify(O[L]));
|
|
785
785
|
}
|
|
786
|
-
return
|
|
787
|
-
},
|
|
786
|
+
return T;
|
|
787
|
+
}, Kn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, Gn = (e) => {
|
|
788
788
|
const t = {};
|
|
789
789
|
for (const n in e)
|
|
790
|
-
n.startsWith("userAttributes.") && (t[n] =
|
|
790
|
+
n.startsWith("userAttributes.") && (t[n] = Kn(e[n]), delete e[n]);
|
|
791
791
|
return t;
|
|
792
|
-
},
|
|
792
|
+
}, Jn = (e) => {
|
|
793
793
|
if (R() && e.preview === "BUILDER_STUDIO") {
|
|
794
794
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
795
|
-
const t =
|
|
795
|
+
const t = Gn(e), {
|
|
796
796
|
userAttributes: n
|
|
797
|
-
} =
|
|
797
|
+
} = zn(t);
|
|
798
798
|
return n;
|
|
799
799
|
}
|
|
800
800
|
return {};
|
|
801
|
-
},
|
|
802
|
-
async function
|
|
801
|
+
}, _n = (e) => "results" in e;
|
|
802
|
+
async function Oe(e) {
|
|
803
803
|
var o;
|
|
804
804
|
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
805
805
|
t && (e.locale = t, e.userAttributes = {
|
|
806
806
|
locale: t,
|
|
807
807
|
...e.userAttributes
|
|
808
808
|
});
|
|
809
|
-
const n = await
|
|
809
|
+
const n = await Xn({
|
|
810
810
|
...e,
|
|
811
811
|
limit: 1
|
|
812
812
|
});
|
|
813
813
|
return n && n[0] || null;
|
|
814
814
|
}
|
|
815
|
-
const
|
|
815
|
+
const Qn = async (e) => {
|
|
816
816
|
var s;
|
|
817
|
-
const t =
|
|
817
|
+
const t = Ne(e), n = e.fetch ?? jn, o = {
|
|
818
818
|
...e.fetchOptions,
|
|
819
819
|
headers: {
|
|
820
820
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
821
|
-
...
|
|
821
|
+
...Qt()
|
|
822
822
|
}
|
|
823
823
|
};
|
|
824
824
|
return await (await n(t.href, o)).json();
|
|
825
|
-
},
|
|
825
|
+
}, Yn = async (e, t, n = Ne(e)) => {
|
|
826
826
|
const o = G(e.canTrack);
|
|
827
|
-
if (n.search.includes("preview="), !o || !(R() ||
|
|
827
|
+
if (n.search.includes("preview="), !o || !(R() || $ === "reactNative"))
|
|
828
828
|
return t.results;
|
|
829
829
|
try {
|
|
830
830
|
const r = [];
|
|
831
831
|
for (const i of t.results)
|
|
832
|
-
r.push(await
|
|
832
|
+
r.push(await Un({
|
|
833
833
|
item: i,
|
|
834
834
|
canTrack: o
|
|
835
835
|
}));
|
|
@@ -839,17 +839,17 @@ const Gn = async (e) => {
|
|
|
839
839
|
}
|
|
840
840
|
return t.results;
|
|
841
841
|
};
|
|
842
|
-
async function
|
|
843
|
-
const t =
|
|
844
|
-
if (!
|
|
842
|
+
async function Xn(e) {
|
|
843
|
+
const t = Ne(e), n = await Qn(e);
|
|
844
|
+
if (!_n(n))
|
|
845
845
|
throw F.error("Error fetching data. ", {
|
|
846
846
|
url: t,
|
|
847
847
|
content: n,
|
|
848
848
|
options: e
|
|
849
849
|
}), n;
|
|
850
|
-
return
|
|
850
|
+
return Yn(e, n);
|
|
851
851
|
}
|
|
852
|
-
const
|
|
852
|
+
const Ds = async (e) => {
|
|
853
853
|
var o, r, i;
|
|
854
854
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
855
855
|
...e,
|
|
@@ -861,15 +861,15 @@ const Ps = async (e) => {
|
|
|
861
861
|
urlPath: t
|
|
862
862
|
} : {}
|
|
863
863
|
},
|
|
864
|
-
options:
|
|
864
|
+
options: yt(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
865
865
|
};
|
|
866
866
|
return {
|
|
867
867
|
apiKey: n.apiKey,
|
|
868
868
|
model: n.model,
|
|
869
|
-
content: await
|
|
869
|
+
content: await Oe(n)
|
|
870
870
|
};
|
|
871
|
-
},
|
|
872
|
-
function
|
|
871
|
+
}, We = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
872
|
+
function Zn(e, t, n = {}) {
|
|
873
873
|
let o, r, i, s = null, a = 0;
|
|
874
874
|
const l = function() {
|
|
875
875
|
a = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
@@ -891,55 +891,55 @@ function Z(e, ...t) {
|
|
|
891
891
|
}
|
|
892
892
|
return n;
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function eo(e) {
|
|
895
895
|
for (const t of e)
|
|
896
896
|
switch (t.trigger) {
|
|
897
897
|
case "pageLoad":
|
|
898
|
-
|
|
898
|
+
Et(t);
|
|
899
899
|
break;
|
|
900
900
|
case "scrollInView":
|
|
901
|
-
|
|
901
|
+
no(t);
|
|
902
902
|
break;
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function $t(e) {
|
|
906
906
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
907
907
|
}
|
|
908
|
-
function
|
|
909
|
-
const n =
|
|
908
|
+
function Rt(e, t) {
|
|
909
|
+
const n = to(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
910
910
|
for (const a of s)
|
|
911
911
|
for (const l of n)
|
|
912
912
|
l in a || (a[l] = o[l]);
|
|
913
913
|
}
|
|
914
|
-
function
|
|
914
|
+
function to(e) {
|
|
915
915
|
const t = [];
|
|
916
916
|
for (const n of e.steps)
|
|
917
917
|
for (const o in n.styles)
|
|
918
918
|
t.indexOf(o) === -1 && t.push(o);
|
|
919
919
|
return t;
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function Et(e) {
|
|
922
922
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
923
923
|
if (!t.length) {
|
|
924
|
-
|
|
924
|
+
$t(e.elementId || e.id || "");
|
|
925
925
|
return;
|
|
926
926
|
}
|
|
927
927
|
Array.from(t).forEach((n) => {
|
|
928
|
-
|
|
929
|
-
n.style.transition = `all ${e.duration}s ${
|
|
928
|
+
Rt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
|
|
929
|
+
n.style.transition = `all ${e.duration}s ${We(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
|
|
930
930
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
931
931
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
932
932
|
});
|
|
933
933
|
});
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function no(e) {
|
|
936
936
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
937
937
|
if (!t.length) {
|
|
938
|
-
|
|
938
|
+
$t(e.elementId || e.id || "");
|
|
939
939
|
return;
|
|
940
940
|
}
|
|
941
941
|
Array.from(t).forEach((n) => {
|
|
942
|
-
|
|
942
|
+
Rt(e, n);
|
|
943
943
|
let o = !1, r = !1;
|
|
944
944
|
function i() {
|
|
945
945
|
!o && a(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
@@ -948,7 +948,7 @@ function Zn(e) {
|
|
|
948
948
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
949
949
|
})) : e.repeat && o && !r && !a(n) && (o = !1, Z(n.style, e.steps[0].styles));
|
|
950
950
|
}
|
|
951
|
-
const s =
|
|
951
|
+
const s = Zn(i, 200, {
|
|
952
952
|
leading: !1
|
|
953
953
|
});
|
|
954
954
|
function a(p) {
|
|
@@ -960,7 +960,7 @@ function Zn(e) {
|
|
|
960
960
|
Z(n.style, l);
|
|
961
961
|
}
|
|
962
962
|
d(), setTimeout(() => {
|
|
963
|
-
n.style.transition = `all ${e.duration}s ${
|
|
963
|
+
n.style.transition = `all ${e.duration}s ${We(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
964
964
|
}), document.addEventListener("scroll", s, {
|
|
965
965
|
capture: !0,
|
|
966
966
|
passive: !0
|
|
@@ -973,48 +973,48 @@ const oe = (e, t) => {
|
|
|
973
973
|
...e,
|
|
974
974
|
"--builder-image-position": n
|
|
975
975
|
} : e;
|
|
976
|
-
},
|
|
976
|
+
}, Us = (e, t) => t ? {
|
|
977
977
|
...e,
|
|
978
978
|
large: oe(e == null ? void 0 : e.large, "initial"),
|
|
979
979
|
medium: oe(e == null ? void 0 : e.medium),
|
|
980
980
|
small: oe(e == null ? void 0 : e.small),
|
|
981
981
|
xsmall: oe(e == null ? void 0 : e.xsmall)
|
|
982
|
-
} : e,
|
|
982
|
+
} : e, Pt = (e) => Object.entries(e).map(([n, o]) => {
|
|
983
983
|
if (typeof o == "string")
|
|
984
|
-
return `${
|
|
985
|
-
}).filter(ce),
|
|
986
|
-
`),
|
|
984
|
+
return `${We(n)}: ${o};`;
|
|
985
|
+
}).filter(ce), oo = (e) => Pt(e).join(`
|
|
986
|
+
`), xs = ({
|
|
987
987
|
mediaQuery: e,
|
|
988
988
|
className: t,
|
|
989
989
|
styles: n
|
|
990
990
|
}) => {
|
|
991
991
|
const o = `.${t} {
|
|
992
|
-
${
|
|
992
|
+
${oo(n)}
|
|
993
993
|
}`;
|
|
994
994
|
return e ? `${e} {
|
|
995
995
|
${o}
|
|
996
996
|
}` : o;
|
|
997
997
|
};
|
|
998
|
-
function
|
|
998
|
+
function ro({
|
|
999
999
|
style: e
|
|
1000
1000
|
}) {
|
|
1001
1001
|
return e;
|
|
1002
1002
|
}
|
|
1003
|
-
const
|
|
1003
|
+
const Fs = ({
|
|
1004
1004
|
block: e,
|
|
1005
1005
|
context: t
|
|
1006
|
-
}) =>
|
|
1006
|
+
}) => At(ro({
|
|
1007
1007
|
style: e.style || {},
|
|
1008
1008
|
context: t,
|
|
1009
1009
|
block: e
|
|
1010
1010
|
}));
|
|
1011
|
-
function
|
|
1012
|
-
switch (
|
|
1011
|
+
function At(e) {
|
|
1012
|
+
switch ($) {
|
|
1013
1013
|
case "svelte":
|
|
1014
1014
|
case "vue":
|
|
1015
1015
|
case "solid":
|
|
1016
1016
|
case "angular":
|
|
1017
|
-
return
|
|
1017
|
+
return Pt(e).join(" ");
|
|
1018
1018
|
case "qwik":
|
|
1019
1019
|
case "reactNative":
|
|
1020
1020
|
case "react":
|
|
@@ -1022,7 +1022,7 @@ function Et(e) {
|
|
|
1022
1022
|
return e;
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
|
-
const
|
|
1025
|
+
const Bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, io = ({
|
|
1026
1026
|
block: e,
|
|
1027
1027
|
registeredComponents: t,
|
|
1028
1028
|
model: n
|
|
@@ -1032,31 +1032,31 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1032
1032
|
if (!o)
|
|
1033
1033
|
return null;
|
|
1034
1034
|
const r = t[o];
|
|
1035
|
-
if (!r ||
|
|
1035
|
+
if (!r || Bt(r, n)) {
|
|
1036
1036
|
console.warn(`
|
|
1037
1037
|
Could not find a registered component named "${o}".
|
|
1038
1038
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1039
1039
|
return;
|
|
1040
1040
|
} else
|
|
1041
1041
|
return r;
|
|
1042
|
-
},
|
|
1043
|
-
if (
|
|
1042
|
+
}, Ze = /* @__PURE__ */ new WeakMap(), so = (e) => {
|
|
1043
|
+
if (gt()) {
|
|
1044
1044
|
const {
|
|
1045
1045
|
repeat: n,
|
|
1046
1046
|
...o
|
|
1047
1047
|
} = e;
|
|
1048
1048
|
return o;
|
|
1049
1049
|
}
|
|
1050
|
-
let t =
|
|
1050
|
+
let t = Ze.get(e);
|
|
1051
1051
|
if (!t) {
|
|
1052
1052
|
const {
|
|
1053
1053
|
repeat: n,
|
|
1054
1054
|
...o
|
|
1055
1055
|
} = e;
|
|
1056
|
-
t = o,
|
|
1056
|
+
t = o, Ze.set(e, t);
|
|
1057
1057
|
}
|
|
1058
1058
|
return t;
|
|
1059
|
-
},
|
|
1059
|
+
}, ao = ({
|
|
1060
1060
|
block: e,
|
|
1061
1061
|
context: t
|
|
1062
1062
|
}) => {
|
|
@@ -1074,7 +1074,7 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1074
1074
|
});
|
|
1075
1075
|
if (!Array.isArray(o))
|
|
1076
1076
|
return;
|
|
1077
|
-
const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item"), s =
|
|
1077
|
+
const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item"), s = so(e);
|
|
1078
1078
|
return o.map((l, d) => ({
|
|
1079
1079
|
context: {
|
|
1080
1080
|
...t,
|
|
@@ -1088,65 +1088,65 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1088
1088
|
},
|
|
1089
1089
|
block: s
|
|
1090
1090
|
}));
|
|
1091
|
-
},
|
|
1091
|
+
}, lo = (e, t) => {
|
|
1092
1092
|
var n;
|
|
1093
1093
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1094
1094
|
builderLinkComponent: t
|
|
1095
1095
|
} : {};
|
|
1096
|
-
},
|
|
1096
|
+
}, et = /* @__PURE__ */ new WeakMap(), co = (e, t, n) => {
|
|
1097
1097
|
var o;
|
|
1098
1098
|
if ((o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents) {
|
|
1099
|
-
let r =
|
|
1100
|
-
r || (r = /* @__PURE__ */ new Map(),
|
|
1099
|
+
let r = et.get(t);
|
|
1100
|
+
r || (r = /* @__PURE__ */ new Map(), et.set(t, r));
|
|
1101
1101
|
let i = r.get(n);
|
|
1102
|
-
return i || (i = Object.fromEntries(Object.entries(t).filter(([s, a]) => !
|
|
1102
|
+
return i || (i = Object.fromEntries(Object.entries(t).filter(([s, a]) => !Bt(a, n))), r.set(n, i)), {
|
|
1103
1103
|
builderComponents: i
|
|
1104
1104
|
};
|
|
1105
1105
|
}
|
|
1106
1106
|
return {};
|
|
1107
|
-
},
|
|
1107
|
+
}, uo = (e, t) => {
|
|
1108
1108
|
var n;
|
|
1109
1109
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1110
1110
|
builderBlock: t
|
|
1111
1111
|
} : {};
|
|
1112
|
-
},
|
|
1112
|
+
}, po = (e, t) => {
|
|
1113
1113
|
var n;
|
|
1114
1114
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1115
1115
|
builderContext: t
|
|
1116
1116
|
} : {};
|
|
1117
|
-
},
|
|
1117
|
+
}, mo = (e) => e.toString(), ho = () => Promise.resolve().then(() => Eo).then((e) => e.default).catch((e) => {
|
|
1118
1118
|
throw console.error(
|
|
1119
1119
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1120
1120
|
e
|
|
1121
1121
|
), e;
|
|
1122
|
-
}),
|
|
1122
|
+
}), fo = () => import("./block-wrapper-ofgM0xH0.js").then((e) => e.default).catch((e) => {
|
|
1123
1123
|
throw console.error(
|
|
1124
1124
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1125
1125
|
e
|
|
1126
1126
|
), e;
|
|
1127
|
-
}),
|
|
1127
|
+
}), bo = () => import("./component-ref-COeITsvM.js").then((e) => e.default).catch((e) => {
|
|
1128
1128
|
throw console.error(
|
|
1129
1129
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1130
1130
|
e
|
|
1131
1131
|
), e;
|
|
1132
|
-
}),
|
|
1132
|
+
}), go = () => import("./repeated-block-rhmN1ohE.js").then((e) => e.default).catch((e) => {
|
|
1133
1133
|
throw console.error(
|
|
1134
1134
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1135
1135
|
e
|
|
1136
1136
|
), e;
|
|
1137
|
-
}),
|
|
1137
|
+
}), yo = () => import("./style-wrapper-qHENiLRx.js").then((e) => e.default).catch((e) => {
|
|
1138
1138
|
throw console.error(
|
|
1139
1139
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1140
1140
|
e
|
|
1141
1141
|
), e;
|
|
1142
|
-
}),
|
|
1142
|
+
}), So = y({
|
|
1143
1143
|
name: "block",
|
|
1144
1144
|
components: {
|
|
1145
|
-
StyleWrapper: Q(
|
|
1146
|
-
RepeatedBlock: Q(
|
|
1147
|
-
ComponentRef: Q(
|
|
1148
|
-
BlockWrapper: Q(
|
|
1149
|
-
DynamicDiv: Q(
|
|
1145
|
+
StyleWrapper: Q(yo),
|
|
1146
|
+
RepeatedBlock: Q(go),
|
|
1147
|
+
ComponentRef: Q(bo),
|
|
1148
|
+
BlockWrapper: Q(fo),
|
|
1149
|
+
DynamicDiv: Q(ho)
|
|
1150
1150
|
},
|
|
1151
1151
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1152
1152
|
data() {
|
|
@@ -1159,12 +1159,12 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1159
1159
|
value: null,
|
|
1160
1160
|
deps: []
|
|
1161
1161
|
},
|
|
1162
|
-
generateKey:
|
|
1162
|
+
generateKey: mo
|
|
1163
1163
|
};
|
|
1164
1164
|
},
|
|
1165
1165
|
mounted() {
|
|
1166
1166
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1167
|
-
t && e &&
|
|
1167
|
+
t && e && eo(
|
|
1168
1168
|
t.map((n) => ({
|
|
1169
1169
|
...n,
|
|
1170
1170
|
elementId: e
|
|
@@ -1175,14 +1175,14 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1175
1175
|
},
|
|
1176
1176
|
computed: {
|
|
1177
1177
|
repeatItem() {
|
|
1178
|
-
return
|
|
1178
|
+
return ao({
|
|
1179
1179
|
block: this.block,
|
|
1180
1180
|
context: this.context
|
|
1181
1181
|
});
|
|
1182
1182
|
},
|
|
1183
1183
|
processedBlock() {
|
|
1184
1184
|
var t;
|
|
1185
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1185
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : wn({
|
|
1186
1186
|
block: this.block,
|
|
1187
1187
|
localState: this.context.localState,
|
|
1188
1188
|
rootState: this.context.rootState,
|
|
@@ -1191,7 +1191,7 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1191
1191
|
});
|
|
1192
1192
|
},
|
|
1193
1193
|
blockComponent() {
|
|
1194
|
-
return
|
|
1194
|
+
return io({
|
|
1195
1195
|
block: this.processedBlock,
|
|
1196
1196
|
registeredComponents: this.registeredComponents,
|
|
1197
1197
|
model: this.context.model
|
|
@@ -1218,11 +1218,11 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1218
1218
|
blockChildren: this.processedBlock.children ?? [],
|
|
1219
1219
|
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
1220
1220
|
componentOptions: {
|
|
1221
|
-
...
|
|
1222
|
-
...
|
|
1223
|
-
...
|
|
1224
|
-
...
|
|
1225
|
-
...
|
|
1221
|
+
...Sn(this.processedBlock, this.context),
|
|
1222
|
+
...uo(this.blockComponent, this.processedBlock),
|
|
1223
|
+
...po(this.blockComponent, this.context),
|
|
1224
|
+
...lo(this.blockComponent, this.linkComponent),
|
|
1225
|
+
...co(
|
|
1226
1226
|
this.blockComponent,
|
|
1227
1227
|
this.registeredComponents,
|
|
1228
1228
|
this.context.model
|
|
@@ -1233,28 +1233,28 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1233
1233
|
registeredComponents: this.registeredComponents,
|
|
1234
1234
|
builderBlock: this.processedBlock,
|
|
1235
1235
|
includeBlockProps: ((n = this.blockComponent) == null ? void 0 : n.noWrap) === !0,
|
|
1236
|
-
isInteractive: !((o = this.blockComponent) != null && o.isRSC &&
|
|
1236
|
+
isInteractive: !((o = this.blockComponent) != null && o.isRSC && $ === "rsc")
|
|
1237
1237
|
};
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
});
|
|
1241
|
-
function
|
|
1241
|
+
function ko(e, t, n, o, r, i) {
|
|
1242
1242
|
var b;
|
|
1243
|
-
const s =
|
|
1244
|
-
return e.canShowBlock ? (u(), h(
|
|
1245
|
-
|
|
1243
|
+
const s = C("StyleWrapper"), a = C("ComponentRef"), l = C("Block", !0), d = C("BlockWrapper"), p = C("RepeatedBlock");
|
|
1244
|
+
return e.canShowBlock ? (u(), h(I, { key: 0 }, [
|
|
1245
|
+
E(s, {
|
|
1246
1246
|
block: e.processedBlock,
|
|
1247
1247
|
context: e.context,
|
|
1248
1248
|
id: e.block.id
|
|
1249
1249
|
}, null, 8, ["block", "context", "id"]),
|
|
1250
|
-
(b = e.blockComponent) != null && b.noWrap ? (u(), h(
|
|
1251
|
-
e.repeatItem ? (u(!0), h(
|
|
1250
|
+
(b = e.blockComponent) != null && b.noWrap ? (u(), h(I, { key: 1 }, [
|
|
1251
|
+
e.repeatItem ? (u(!0), h(I, { key: 1 }, x(e.repeatItem, (c, m) => (u(), S(p, {
|
|
1252
1252
|
key: e.generateKey(m),
|
|
1253
1253
|
repeatContext: c.context,
|
|
1254
1254
|
block: c.block,
|
|
1255
1255
|
registeredComponents: e.registeredComponents,
|
|
1256
1256
|
linkComponent: e.linkComponent
|
|
1257
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(),
|
|
1257
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), S(a, {
|
|
1258
1258
|
key: 0,
|
|
1259
1259
|
componentRef: e.componentRefProps.componentRef,
|
|
1260
1260
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -1266,21 +1266,21 @@ function go(e, t, n, o, r, i) {
|
|
|
1266
1266
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1267
1267
|
isInteractive: e.componentRefProps.isInteractive
|
|
1268
1268
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1269
|
-
], 64)) : (u(), h(
|
|
1270
|
-
e.repeatItem ? (u(!0), h(
|
|
1269
|
+
], 64)) : (u(), h(I, { key: 0 }, [
|
|
1270
|
+
e.repeatItem ? (u(!0), h(I, { key: 1 }, x(e.repeatItem, (c, m) => (u(), S(p, {
|
|
1271
1271
|
key: e.generateKey(m),
|
|
1272
1272
|
repeatContext: c.context,
|
|
1273
1273
|
block: c.block,
|
|
1274
1274
|
registeredComponents: e.registeredComponents,
|
|
1275
1275
|
linkComponent: e.linkComponent
|
|
1276
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(),
|
|
1276
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), S(d, {
|
|
1277
1277
|
key: 0,
|
|
1278
1278
|
Wrapper: e.Tag,
|
|
1279
1279
|
block: e.processedBlock,
|
|
1280
1280
|
context: e.context
|
|
1281
1281
|
}, {
|
|
1282
|
-
default:
|
|
1283
|
-
|
|
1282
|
+
default: W(() => [
|
|
1283
|
+
E(a, {
|
|
1284
1284
|
componentRef: e.componentRefProps.componentRef,
|
|
1285
1285
|
componentOptions: e.componentRefProps.componentOptions,
|
|
1286
1286
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -1291,7 +1291,7 @@ function go(e, t, n, o, r, i) {
|
|
|
1291
1291
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1292
1292
|
isInteractive: e.componentRefProps.isInteractive
|
|
1293
1293
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1294
|
-
(u(!0), h(
|
|
1294
|
+
(u(!0), h(I, null, x(e.childrenWithoutParentComponent, (c, m) => (u(), S(l, {
|
|
1295
1295
|
key: c.id,
|
|
1296
1296
|
block: c,
|
|
1297
1297
|
registeredComponents: e.registeredComponents,
|
|
@@ -1302,12 +1302,12 @@ function go(e, t, n, o, r, i) {
|
|
|
1302
1302
|
_: 1
|
|
1303
1303
|
}, 8, ["Wrapper", "block", "context"]))
|
|
1304
1304
|
], 64))
|
|
1305
|
-
], 64)) :
|
|
1305
|
+
], 64)) : k("", !0);
|
|
1306
1306
|
}
|
|
1307
|
-
const
|
|
1307
|
+
const Vt = /* @__PURE__ */ v(So, [["render", ko]]), Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1308
1308
|
__proto__: null,
|
|
1309
|
-
default:
|
|
1310
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1309
|
+
default: Vt
|
|
1310
|
+
}, Symbol.toStringTag, { value: "Module" })), vo = y({
|
|
1311
1311
|
name: "builder-blocks-wrapper",
|
|
1312
1312
|
props: [
|
|
1313
1313
|
"blocks",
|
|
@@ -1377,10 +1377,10 @@ const At = /* @__PURE__ */ S(bo, [["render", go]]), Ns = /* @__PURE__ */ Object.
|
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
1379
|
});
|
|
1380
|
-
function
|
|
1381
|
-
return u(),
|
|
1380
|
+
function Co(e, t, n, o, r, i) {
|
|
1381
|
+
return u(), S(X(e.BlocksWrapper), w({
|
|
1382
1382
|
ref: "blocksWrapperRef",
|
|
1383
|
-
class: e.className + " component-
|
|
1383
|
+
class: e.className + " component-1zgn626bpbf",
|
|
1384
1384
|
"builder-path": e.dataPath,
|
|
1385
1385
|
"builder-parent-id": e.parent,
|
|
1386
1386
|
style: e.styleProp,
|
|
@@ -1388,15 +1388,15 @@ function So(e, t, n, o, r, i) {
|
|
|
1388
1388
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
1389
1389
|
onKeyPress: (s) => e.onClick()
|
|
1390
1390
|
}, { ...e.BlocksWrapperProps }), {
|
|
1391
|
-
default:
|
|
1392
|
-
|
|
1391
|
+
default: W(() => [
|
|
1392
|
+
B(e.$slots, "default", {}, void 0, !0)
|
|
1393
1393
|
]),
|
|
1394
1394
|
_: 3
|
|
1395
1395
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1396
1396
|
}
|
|
1397
|
-
const
|
|
1397
|
+
const To = /* @__PURE__ */ v(vo, [["render", Co], ["__scopeId", "data-v-bab174f6"]]), Io = y({
|
|
1398
1398
|
name: "builder-blocks",
|
|
1399
|
-
components: { BlocksWrapper:
|
|
1399
|
+
components: { BlocksWrapper: To, Block: Vt },
|
|
1400
1400
|
props: [
|
|
1401
1401
|
"blocks",
|
|
1402
1402
|
"parent",
|
|
@@ -1409,14 +1409,14 @@ const ko = /* @__PURE__ */ S(yo, [["render", So], ["__scopeId", "data-v-82fc93d6
|
|
|
1409
1409
|
"registeredComponents"
|
|
1410
1410
|
],
|
|
1411
1411
|
inject: {
|
|
1412
|
-
builderContext:
|
|
1413
|
-
componentsContext:
|
|
1412
|
+
builderContext: ke.key,
|
|
1413
|
+
componentsContext: ht.key
|
|
1414
1414
|
}
|
|
1415
1415
|
});
|
|
1416
|
-
function
|
|
1416
|
+
function wo(e, t, n, o, r, i) {
|
|
1417
1417
|
var l, d, p, b;
|
|
1418
|
-
const s =
|
|
1419
|
-
return u(),
|
|
1418
|
+
const s = C("Block"), a = C("BlocksWrapper");
|
|
1419
|
+
return u(), S(a, {
|
|
1420
1420
|
blocks: e.blocks,
|
|
1421
1421
|
parent: e.parent,
|
|
1422
1422
|
path: e.path,
|
|
@@ -1425,37 +1425,37 @@ function Co(e, t, n, o, r, i) {
|
|
|
1425
1425
|
classNameProp: e.className,
|
|
1426
1426
|
BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((b = e.builderContext) == null ? void 0 : b.BlocksWrapper)
|
|
1427
1427
|
}, {
|
|
1428
|
-
default:
|
|
1429
|
-
|
|
1430
|
-
e.blocks ? (u(!0), h(
|
|
1428
|
+
default: W(() => [
|
|
1429
|
+
B(e.$slots, "default"),
|
|
1430
|
+
e.blocks ? (u(!0), h(I, { key: 0 }, x(e.blocks, (c, m) => {
|
|
1431
1431
|
var f;
|
|
1432
|
-
return u(),
|
|
1432
|
+
return u(), S(s, {
|
|
1433
1433
|
key: c.id,
|
|
1434
1434
|
block: c,
|
|
1435
1435
|
linkComponent: e.linkComponent,
|
|
1436
1436
|
context: e.context || e.builderContext,
|
|
1437
1437
|
registeredComponents: e.registeredComponents || ((f = e.componentsContext) == null ? void 0 : f.registeredComponents)
|
|
1438
1438
|
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
|
|
1439
|
-
}), 128)) :
|
|
1439
|
+
}), 128)) : k("", !0)
|
|
1440
1440
|
]),
|
|
1441
1441
|
_: 3
|
|
1442
1442
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
1443
1443
|
}
|
|
1444
|
-
const z = /* @__PURE__ */
|
|
1444
|
+
const z = /* @__PURE__ */ v(Io, [["render", wo]]), $o = y({
|
|
1445
1445
|
name: "dynamic-div",
|
|
1446
1446
|
props: []
|
|
1447
1447
|
});
|
|
1448
|
-
function
|
|
1448
|
+
function Ro(e, t, n, o, r, i) {
|
|
1449
1449
|
return u(), h("div", null, [
|
|
1450
|
-
|
|
1450
|
+
B(e.$slots, "default")
|
|
1451
1451
|
]);
|
|
1452
1452
|
}
|
|
1453
|
-
const ne = /* @__PURE__ */
|
|
1453
|
+
const ne = /* @__PURE__ */ v($o, [["render", Ro]]), Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1454
1454
|
__proto__: null,
|
|
1455
1455
|
default: ne
|
|
1456
1456
|
}, Symbol.toStringTag, { value: "Module" })), he = y({
|
|
1457
1457
|
render() {
|
|
1458
|
-
return
|
|
1458
|
+
return ct("style", {
|
|
1459
1459
|
innerHTML: this.styles,
|
|
1460
1460
|
"data-id": this.id,
|
|
1461
1461
|
nonce: this.nonce
|
|
@@ -1484,7 +1484,7 @@ const ne = /* @__PURE__ */ S(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1484
1484
|
default: 991,
|
|
1485
1485
|
max: 1200
|
|
1486
1486
|
}
|
|
1487
|
-
},
|
|
1487
|
+
}, Ms = (e, t = Y) => `@media (max-width: ${t[e].max}px)`, Po = (e) => {
|
|
1488
1488
|
const t = {
|
|
1489
1489
|
xsmall: {
|
|
1490
1490
|
...Y.xsmall
|
|
@@ -1535,11 +1535,11 @@ const ne = /* @__PURE__ */ S(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1535
1535
|
min: a,
|
|
1536
1536
|
default: a + 1
|
|
1537
1537
|
}, t;
|
|
1538
|
-
},
|
|
1538
|
+
}, Ao = (e) => `builder-columns ${e}-breakpoints`, Bo = y({
|
|
1539
1539
|
name: "builder-columns",
|
|
1540
1540
|
components: {
|
|
1541
1541
|
InlinedStyles: he,
|
|
1542
|
-
DynamicRenderer:
|
|
1542
|
+
DynamicRenderer: Ae,
|
|
1543
1543
|
Blocks: z,
|
|
1544
1544
|
DynamicDiv: ne
|
|
1545
1545
|
},
|
|
@@ -1554,7 +1554,7 @@ const ne = /* @__PURE__ */ S(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1554
1554
|
"builderComponents"
|
|
1555
1555
|
],
|
|
1556
1556
|
data() {
|
|
1557
|
-
return { TARGET:
|
|
1557
|
+
return { TARGET: $, getColumnsClass: Ao };
|
|
1558
1558
|
},
|
|
1559
1559
|
computed: {
|
|
1560
1560
|
gutterSize() {
|
|
@@ -1633,7 +1633,7 @@ const ne = /* @__PURE__ */ S(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1633
1633
|
},
|
|
1634
1634
|
getWidthForBreakpointSize(e) {
|
|
1635
1635
|
var n, o;
|
|
1636
|
-
return
|
|
1636
|
+
return Po(
|
|
1637
1637
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1638
1638
|
)[e].max;
|
|
1639
1639
|
},
|
|
@@ -1671,32 +1671,32 @@ const ne = /* @__PURE__ */ S(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1671
1671
|
href: e.link
|
|
1672
1672
|
} : {},
|
|
1673
1673
|
[H()]: "builder-column",
|
|
1674
|
-
style:
|
|
1674
|
+
style: At(this.columnCssVars(t))
|
|
1675
1675
|
};
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
1678
|
});
|
|
1679
|
-
function
|
|
1679
|
+
function Vo(e, t, n, o, r, i) {
|
|
1680
1680
|
var d;
|
|
1681
|
-
const s =
|
|
1682
|
-
return u(), h("div",
|
|
1683
|
-
class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-
|
|
1681
|
+
const s = C("InlinedStyles"), a = C("Blocks"), l = C("DynamicRenderer");
|
|
1682
|
+
return u(), h("div", w({
|
|
1683
|
+
class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-20351ewpue7",
|
|
1684
1684
|
style: e.columnsCssVars()
|
|
1685
1685
|
}, {}), [
|
|
1686
|
-
e.TARGET !== "reactNative" ? (u(),
|
|
1686
|
+
e.TARGET !== "reactNative" ? (u(), S(s, {
|
|
1687
1687
|
key: 0,
|
|
1688
1688
|
id: "builderio-columns",
|
|
1689
1689
|
styles: e.columnsStyles(),
|
|
1690
1690
|
nonce: e.builderContext.nonce
|
|
1691
|
-
}, null, 8, ["styles", "nonce"])) :
|
|
1692
|
-
(u(!0), h(
|
|
1691
|
+
}, null, 8, ["styles", "nonce"])) : k("", !0),
|
|
1692
|
+
(u(!0), h(I, null, x(e.columns, (p, b) => (u(), S(l, {
|
|
1693
1693
|
key: b,
|
|
1694
1694
|
TagName: e.getTagName(p),
|
|
1695
1695
|
actionAttributes: {},
|
|
1696
1696
|
attributes: e.getAttributes(p, b)
|
|
1697
1697
|
}, {
|
|
1698
|
-
default:
|
|
1699
|
-
|
|
1698
|
+
default: W(() => [
|
|
1699
|
+
E(a, {
|
|
1700
1700
|
path: `columns.${b}.blocks`,
|
|
1701
1701
|
parent: e.builderBlock.id,
|
|
1702
1702
|
context: e.builderContext,
|
|
@@ -1712,32 +1712,32 @@ function Po(e, t, n, o, r, i) {
|
|
|
1712
1712
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1713
1713
|
], 16);
|
|
1714
1714
|
}
|
|
1715
|
-
const
|
|
1715
|
+
const No = /* @__PURE__ */ v(Bo, [["render", Vo], ["__scopeId", "data-v-b0ce0948"]]), Oo = y({
|
|
1716
1716
|
name: "builder-fragment-component",
|
|
1717
1717
|
props: []
|
|
1718
1718
|
});
|
|
1719
|
-
function
|
|
1719
|
+
function Wo(e, t, n, o, r, i) {
|
|
1720
1720
|
return u(), h("span", null, [
|
|
1721
|
-
|
|
1721
|
+
B(e.$slots, "default")
|
|
1722
1722
|
]);
|
|
1723
1723
|
}
|
|
1724
|
-
const
|
|
1725
|
-
function
|
|
1724
|
+
const Do = /* @__PURE__ */ v(Oo, [["render", Wo]]);
|
|
1725
|
+
function tt(e) {
|
|
1726
1726
|
return e.replace(/http(s)?:/, "");
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function Uo(e = "", t, n) {
|
|
1729
1729
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1730
1730
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1731
1731
|
}
|
|
1732
|
-
function
|
|
1732
|
+
function xo(e, t) {
|
|
1733
1733
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1734
1734
|
return e;
|
|
1735
1735
|
if (t === "master")
|
|
1736
|
-
return
|
|
1736
|
+
return tt(e);
|
|
1737
1737
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1738
1738
|
if (n) {
|
|
1739
1739
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
1740
|
-
return
|
|
1740
|
+
return tt(`${o[0]}_${i}${r}`);
|
|
1741
1741
|
}
|
|
1742
1742
|
return null;
|
|
1743
1743
|
}
|
|
@@ -1748,11 +1748,11 @@ function se(e) {
|
|
|
1748
1748
|
if (e.match(/builder\.io/)) {
|
|
1749
1749
|
let n = e;
|
|
1750
1750
|
const o = Number(e.split("?width=")[1]);
|
|
1751
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
1751
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Uo(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1752
1752
|
}
|
|
1753
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1753
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [xo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1754
1754
|
}
|
|
1755
|
-
const
|
|
1755
|
+
const Fo = y({
|
|
1756
1756
|
name: "builder-image",
|
|
1757
1757
|
props: [
|
|
1758
1758
|
"lazy",
|
|
@@ -1806,20 +1806,20 @@ const Do = y({
|
|
|
1806
1806
|
return this.aspectRatio ? e : void 0;
|
|
1807
1807
|
}
|
|
1808
1808
|
}
|
|
1809
|
-
}),
|
|
1809
|
+
}), Lo = ["srcset", "sizes"], Mo = ["loading", "fetchpriority", "alt", "title", "src", "srcset", "sizes"], Ho = {
|
|
1810
1810
|
key: 2,
|
|
1811
|
-
class: "div-
|
|
1811
|
+
class: "div-1ifnufbde19-2"
|
|
1812
1812
|
};
|
|
1813
|
-
function
|
|
1813
|
+
function jo(e, t, n, o, r, i) {
|
|
1814
1814
|
var s, a, l, d, p, b;
|
|
1815
|
-
return u(), h(
|
|
1815
|
+
return u(), h(I, null, [
|
|
1816
1816
|
K("picture", null, [
|
|
1817
1817
|
e.webpSrcSet ? (u(), h("source", {
|
|
1818
1818
|
key: 0,
|
|
1819
1819
|
type: "image/webp",
|
|
1820
1820
|
srcset: e.webpSrcSet,
|
|
1821
1821
|
sizes: e.sizesToUse
|
|
1822
|
-
}, null, 8,
|
|
1822
|
+
}, null, 8, Lo)) : k("", !0),
|
|
1823
1823
|
K("img", {
|
|
1824
1824
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1825
1825
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
@@ -1831,35 +1831,35 @@ function Lo(e, t, n, o, r, i) {
|
|
|
1831
1831
|
...e.aspectRatioCss
|
|
1832
1832
|
}),
|
|
1833
1833
|
class: ee(
|
|
1834
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1834
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-1ifnufbde19"
|
|
1835
1835
|
),
|
|
1836
1836
|
src: e.image,
|
|
1837
1837
|
srcset: e.srcSetToUse,
|
|
1838
1838
|
sizes: e.sizesToUse
|
|
1839
|
-
}, null, 14,
|
|
1839
|
+
}, null, 14, Mo)
|
|
1840
1840
|
]),
|
|
1841
1841
|
e.aspectRatio && !((a = (s = e.builderBlock) == null ? void 0 : s.children) != null && a.length && e.fitContent) ? (u(), h("div", {
|
|
1842
1842
|
key: 0,
|
|
1843
|
-
class: "builder-image-sizer div-
|
|
1843
|
+
class: "builder-image-sizer div-1ifnufbde19",
|
|
1844
1844
|
style: M({
|
|
1845
1845
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1846
1846
|
})
|
|
1847
|
-
}, null, 4)) :
|
|
1848
|
-
(d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && e.fitContent ?
|
|
1849
|
-
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (u(), h("div",
|
|
1850
|
-
|
|
1851
|
-
])) :
|
|
1847
|
+
}, null, 4)) : k("", !0),
|
|
1848
|
+
(d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && e.fitContent ? B(e.$slots, "default", { key: 1 }, void 0, !0) : k("", !0),
|
|
1849
|
+
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (u(), h("div", Ho, [
|
|
1850
|
+
B(e.$slots, "default", {}, void 0, !0)
|
|
1851
|
+
])) : k("", !0)
|
|
1852
1852
|
], 64);
|
|
1853
1853
|
}
|
|
1854
|
-
const
|
|
1854
|
+
const zo = /* @__PURE__ */ v(Fo, [["render", jo], ["__scopeId", "data-v-a28af777"]]), qo = y({
|
|
1855
1855
|
name: "builder-section-component",
|
|
1856
1856
|
props: ["attributes", "maxWidth"],
|
|
1857
1857
|
data() {
|
|
1858
1858
|
return { filterAttrs: N };
|
|
1859
1859
|
}
|
|
1860
1860
|
});
|
|
1861
|
-
function
|
|
1862
|
-
return u(), h("section",
|
|
1861
|
+
function Ko(e, t, n, o, r, i) {
|
|
1862
|
+
return u(), h("section", w({
|
|
1863
1863
|
style: {
|
|
1864
1864
|
width: "100%",
|
|
1865
1865
|
alignSelf: "stretch",
|
|
@@ -1873,11 +1873,11 @@ function jo(e, t, n, o, r, i) {
|
|
|
1873
1873
|
marginRight: "auto"
|
|
1874
1874
|
}
|
|
1875
1875
|
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1876
|
-
|
|
1876
|
+
B(e.$slots, "default")
|
|
1877
1877
|
], 16);
|
|
1878
1878
|
}
|
|
1879
|
-
const
|
|
1880
|
-
function
|
|
1879
|
+
const Go = /* @__PURE__ */ v(qo, [["render", Ko]]);
|
|
1880
|
+
function Jo(e, t, n, o) {
|
|
1881
1881
|
function r(d) {
|
|
1882
1882
|
return typeof d == "string";
|
|
1883
1883
|
}
|
|
@@ -1934,7 +1934,7 @@ function qo(e, t, n, o) {
|
|
|
1934
1934
|
}, l = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1935
1935
|
return a.startDate && new Date(a.startDate) > l || a.endDate && new Date(a.endDate) < l ? !1 : !a.query || !a.query.length ? !0 : a.query.every((d) => s(e, d));
|
|
1936
1936
|
}
|
|
1937
|
-
const
|
|
1937
|
+
const _o = `function getStudioUserAttributes() {
|
|
1938
1938
|
const params = new URLSearchParams(window.location.search);
|
|
1939
1939
|
if (params.get('builder.preview') !== 'BUILDER_STUDIO') {
|
|
1940
1940
|
return {};
|
|
@@ -1947,7 +1947,7 @@ const Ko = `function getStudioUserAttributes() {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
});
|
|
1949
1949
|
return attributes;
|
|
1950
|
-
}`,
|
|
1950
|
+
}`, Qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1951
1951
|
if (!navigator.cookieEnabled) {
|
|
1952
1952
|
return;
|
|
1953
1953
|
}
|
|
@@ -1993,7 +1993,7 @@ const Ko = `function getStudioUserAttributes() {
|
|
|
1993
1993
|
thisScript.remove();
|
|
1994
1994
|
}
|
|
1995
1995
|
}
|
|
1996
|
-
}`,
|
|
1996
|
+
}`, Yo = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
1997
1997
|
function isString(val) {
|
|
1998
1998
|
return typeof val === 'string';
|
|
1999
1999
|
}
|
|
@@ -2071,7 +2071,7 @@ const Ko = `function getStudioUserAttributes() {
|
|
|
2071
2071
|
return item.query.every(filter => {
|
|
2072
2072
|
return objectMatchesQuery(userAttributes, filter);
|
|
2073
2073
|
});
|
|
2074
|
-
}`,
|
|
2074
|
+
}`, Xo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
2075
2075
|
function getCookie(name) {
|
|
2076
2076
|
const nameEQ = name + '=';
|
|
2077
2077
|
const ca = document.cookie.split(';');
|
|
@@ -2110,11 +2110,11 @@ const Ko = `function getStudioUserAttributes() {
|
|
|
2110
2110
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2111
2111
|
}
|
|
2112
2112
|
}
|
|
2113
|
-
}`, ae = "default",
|
|
2114
|
-
function
|
|
2115
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
2113
|
+
}`, ae = "default", nt = "filterWithCustomTargeting", Te = "builderIoPersonalization", Ie = "updateVisibilityStylesScript", ot = "builderIoStudioUserAttributes", Zo = "PersonalizationContainer", De = ["react", "vue", "svelte", "qwik"], Nt = ["vue", "svelte", "qwik"];
|
|
2114
|
+
function er(e, t) {
|
|
2115
|
+
return !(e && e.length > 0) || !t ? !1 : Nt.includes($) ? !0 : !R();
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2117
|
+
function tr({
|
|
2118
2118
|
variants: e,
|
|
2119
2119
|
previewingIndex: t,
|
|
2120
2120
|
isHydrated: n,
|
|
@@ -2154,23 +2154,26 @@ function Xo({
|
|
|
2154
2154
|
}
|
|
2155
2155
|
const we = (e) => {
|
|
2156
2156
|
var t;
|
|
2157
|
-
return Array.isArray(e) ? e.some(we) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) ===
|
|
2158
|
-
},
|
|
2157
|
+
return Array.isArray(e) ? e.some(we) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === Zo ? !0 : Object.values(e).some(we);
|
|
2158
|
+
}, nr = (e) => we(e), Ot = () => `
|
|
2159
2159
|
(function() {
|
|
2160
|
-
if (!window.${
|
|
2161
|
-
window.${
|
|
2162
|
-
}
|
|
2163
|
-
if (!window.${et}) {
|
|
2164
|
-
window.${et} = ${Jo};
|
|
2160
|
+
if (!window.${ot}) {
|
|
2161
|
+
window.${ot} = ${_o};
|
|
2165
2162
|
}
|
|
2166
|
-
if (!window.${
|
|
2167
|
-
window.${
|
|
2163
|
+
if (!window.${nt}) {
|
|
2164
|
+
window.${nt} = ${Yo};
|
|
2168
2165
|
}
|
|
2169
2166
|
if (!window.${Te}) {
|
|
2170
|
-
window.${Te} = ${
|
|
2167
|
+
window.${Te} = ${Qo};
|
|
2168
|
+
}
|
|
2169
|
+
if (!window.${Ie}) {
|
|
2170
|
+
window.${Ie} = ${Xo};
|
|
2171
2171
|
}
|
|
2172
2172
|
})();
|
|
2173
|
-
`,
|
|
2173
|
+
`, Wt = $ === "react", or = (e, t, n) => `window.${Te}(${JSON.stringify(e)}, "${t}", ${Wt}${n ? `, "${n}"` : ""})`, rr = (e, t, n) => `window.${Ie}(${JSON.stringify(e)}, "${t}", ${Wt}${n ? `, "${n}"` : ""})`, ir = Symbol(), $e = {
|
|
2174
|
+
BuilderScripts: { scriptsEmitted: !1 },
|
|
2175
|
+
key: ir
|
|
2176
|
+
}, be = {
|
|
2174
2177
|
"@type": "@builder.io/sdk:Element",
|
|
2175
2178
|
layerName: "Accordion item title",
|
|
2176
2179
|
responsiveStyles: {
|
|
@@ -2199,7 +2202,7 @@ const we = (e) => {
|
|
|
2199
2202
|
}
|
|
2200
2203
|
}
|
|
2201
2204
|
}]
|
|
2202
|
-
},
|
|
2205
|
+
}, ge = {
|
|
2203
2206
|
"@type": "@builder.io/sdk:Element",
|
|
2204
2207
|
layerName: "Accordion item detail",
|
|
2205
2208
|
responsiveStyles: {
|
|
@@ -2230,7 +2233,7 @@ const we = (e) => {
|
|
|
2230
2233
|
}
|
|
2231
2234
|
}
|
|
2232
2235
|
}]
|
|
2233
|
-
},
|
|
2236
|
+
}, sr = {
|
|
2234
2237
|
name: "Builder:Accordion",
|
|
2235
2238
|
canHaveChildren: !0,
|
|
2236
2239
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2247,19 +2250,19 @@ const we = (e) => {
|
|
|
2247
2250
|
name: "title",
|
|
2248
2251
|
type: "uiBlocks",
|
|
2249
2252
|
hideFromUI: !0,
|
|
2250
|
-
defaultValue: [
|
|
2253
|
+
defaultValue: [be]
|
|
2251
2254
|
}, {
|
|
2252
2255
|
name: "detail",
|
|
2253
2256
|
type: "uiBlocks",
|
|
2254
2257
|
hideFromUI: !0,
|
|
2255
|
-
defaultValue: [
|
|
2258
|
+
defaultValue: [ge]
|
|
2256
2259
|
}],
|
|
2257
2260
|
defaultValue: [{
|
|
2258
|
-
title: [
|
|
2259
|
-
detail: [
|
|
2261
|
+
title: [be],
|
|
2262
|
+
detail: [ge]
|
|
2260
2263
|
}, {
|
|
2261
|
-
title: [
|
|
2262
|
-
detail: [
|
|
2264
|
+
title: [be],
|
|
2265
|
+
detail: [ge]
|
|
2263
2266
|
}],
|
|
2264
2267
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2265
2268
|
}, {
|
|
@@ -2294,7 +2297,7 @@ const we = (e) => {
|
|
|
2294
2297
|
builderComponents: !0,
|
|
2295
2298
|
builderLinkComponent: !0
|
|
2296
2299
|
}
|
|
2297
|
-
},
|
|
2300
|
+
}, ar = (e) => e.toString(), lr = y({
|
|
2298
2301
|
name: "builder-accordion",
|
|
2299
2302
|
components: { Blocks: z },
|
|
2300
2303
|
props: [
|
|
@@ -2308,7 +2311,7 @@ const we = (e) => {
|
|
|
2308
2311
|
"builderLinkComponent"
|
|
2309
2312
|
],
|
|
2310
2313
|
data() {
|
|
2311
|
-
return { open: [], convertOrderNumberToString:
|
|
2314
|
+
return { open: [], convertOrderNumberToString: ar };
|
|
2312
2315
|
},
|
|
2313
2316
|
computed: {
|
|
2314
2317
|
onlyOneAtATime() {
|
|
@@ -2389,14 +2392,14 @@ const we = (e) => {
|
|
|
2389
2392
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2390
2393
|
}
|
|
2391
2394
|
}
|
|
2392
|
-
}),
|
|
2393
|
-
function
|
|
2394
|
-
const s =
|
|
2395
|
+
}), cr = ["data-index", "onClick"];
|
|
2396
|
+
function dr(e, t, n, o, r, i) {
|
|
2397
|
+
const s = C("Blocks");
|
|
2395
2398
|
return u(), h("div", {
|
|
2396
2399
|
class: "builder-accordion",
|
|
2397
2400
|
style: M(e.accordionStyles)
|
|
2398
2401
|
}, [
|
|
2399
|
-
(u(!0), h(
|
|
2402
|
+
(u(!0), h(I, null, x(e.items, (a, l) => (u(), h(I, { key: l }, [
|
|
2400
2403
|
K("div", {
|
|
2401
2404
|
class: ee(e.getAccordionTitleClassName(l)),
|
|
2402
2405
|
style: M({
|
|
@@ -2409,7 +2412,7 @@ function ar(e, t, n, o, r, i) {
|
|
|
2409
2412
|
"data-index": l,
|
|
2410
2413
|
onClick: async (d) => e.onClick(l)
|
|
2411
2414
|
}, [
|
|
2412
|
-
|
|
2415
|
+
E(s, {
|
|
2413
2416
|
blocks: a.title,
|
|
2414
2417
|
path: `items.${l}.title`,
|
|
2415
2418
|
parent: e.builderBlock.id,
|
|
@@ -2417,13 +2420,13 @@ function ar(e, t, n, o, r, i) {
|
|
|
2417
2420
|
registeredComponents: e.builderComponents,
|
|
2418
2421
|
linkComponent: e.builderLinkComponent
|
|
2419
2422
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2420
|
-
], 14,
|
|
2423
|
+
], 14, cr),
|
|
2421
2424
|
e.open.includes(l) ? (u(), h("div", {
|
|
2422
2425
|
key: 0,
|
|
2423
2426
|
class: ee(e.getAccordionDetailClassName(l)),
|
|
2424
2427
|
style: M(e.accordionDetailStyles)
|
|
2425
2428
|
}, [
|
|
2426
|
-
|
|
2429
|
+
E(s, {
|
|
2427
2430
|
blocks: a.detail,
|
|
2428
2431
|
path: `items.${l}.detail`,
|
|
2429
2432
|
parent: e.builderBlock.id,
|
|
@@ -2431,11 +2434,11 @@ function ar(e, t, n, o, r, i) {
|
|
|
2431
2434
|
registeredComponents: e.builderComponents,
|
|
2432
2435
|
linkComponent: e.builderLinkComponent
|
|
2433
2436
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2434
|
-
], 6)) :
|
|
2437
|
+
], 6)) : k("", !0)
|
|
2435
2438
|
], 64))), 128))
|
|
2436
2439
|
], 4);
|
|
2437
2440
|
}
|
|
2438
|
-
const
|
|
2441
|
+
const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
2439
2442
|
name: "Core:Button",
|
|
2440
2443
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2441
2444
|
defaultStyles: {
|
|
@@ -2471,7 +2474,7 @@ const lr = /* @__PURE__ */ S(ir, [["render", ar]]), cr = {
|
|
|
2471
2474
|
shouldReceiveBuilderProps: {
|
|
2472
2475
|
builderLinkComponent: !0
|
|
2473
2476
|
}
|
|
2474
|
-
},
|
|
2477
|
+
}, mr = {
|
|
2475
2478
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2476
2479
|
name: "Columns",
|
|
2477
2480
|
isRSC: !0,
|
|
@@ -2678,13 +2681,13 @@ const lr = /* @__PURE__ */ S(ir, [["render", ar]]), cr = {
|
|
|
2678
2681
|
builderComponents: !0,
|
|
2679
2682
|
builderLinkComponent: !0
|
|
2680
2683
|
}
|
|
2681
|
-
},
|
|
2684
|
+
}, hr = {
|
|
2682
2685
|
name: "Fragment",
|
|
2683
2686
|
static: !0,
|
|
2684
2687
|
hidden: !0,
|
|
2685
2688
|
canHaveChildren: !0,
|
|
2686
2689
|
noWrap: !0
|
|
2687
|
-
},
|
|
2690
|
+
}, Ue = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], fr = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], br = {
|
|
2688
2691
|
name: "Image",
|
|
2689
2692
|
static: !0,
|
|
2690
2693
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -2699,7 +2702,7 @@ const lr = /* @__PURE__ */ S(ir, [["render", ar]]), cr = {
|
|
|
2699
2702
|
name: "image",
|
|
2700
2703
|
type: "file",
|
|
2701
2704
|
bubble: !0,
|
|
2702
|
-
allowedFileTypes:
|
|
2705
|
+
allowedFileTypes: Ue,
|
|
2703
2706
|
required: !0,
|
|
2704
2707
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2705
2708
|
onChange: (e) => {
|
|
@@ -2797,7 +2800,7 @@ const lr = /* @__PURE__ */ S(ir, [["render", ar]]), cr = {
|
|
|
2797
2800
|
shouldReceiveBuilderProps: {
|
|
2798
2801
|
builderBlock: !0
|
|
2799
2802
|
}
|
|
2800
|
-
},
|
|
2803
|
+
}, gr = {
|
|
2801
2804
|
name: "PersonalizationContainer",
|
|
2802
2805
|
shouldReceiveBuilderProps: {
|
|
2803
2806
|
builderBlock: !0,
|
|
@@ -2833,9 +2836,9 @@ const lr = /* @__PURE__ */ S(ir, [["render", ar]]), cr = {
|
|
|
2833
2836
|
defaultValue: []
|
|
2834
2837
|
}]
|
|
2835
2838
|
}]
|
|
2836
|
-
},
|
|
2839
|
+
}, fe = y({
|
|
2837
2840
|
render() {
|
|
2838
|
-
return
|
|
2841
|
+
return ct("script", {
|
|
2839
2842
|
innerHTML: this.scriptStr,
|
|
2840
2843
|
"data-id": this.id,
|
|
2841
2844
|
nonce: this.nonce
|
|
@@ -2843,12 +2846,12 @@ const lr = /* @__PURE__ */ S(ir, [["render", ar]]), cr = {
|
|
|
2843
2846
|
},
|
|
2844
2847
|
name: "inlined-script",
|
|
2845
2848
|
props: ["scriptStr", "id", "nonce"]
|
|
2846
|
-
}),
|
|
2849
|
+
}), yr = y({
|
|
2847
2850
|
name: "builder-personalization-container",
|
|
2848
2851
|
components: {
|
|
2849
2852
|
Blocks: z,
|
|
2850
2853
|
InlinedStyles: he,
|
|
2851
|
-
InlinedScript:
|
|
2854
|
+
InlinedScript: fe
|
|
2852
2855
|
},
|
|
2853
2856
|
props: [
|
|
2854
2857
|
"builderContext",
|
|
@@ -2862,25 +2865,25 @@ const lr = /* @__PURE__ */ S(ir, [["render", ar]]), cr = {
|
|
|
2862
2865
|
var e, t, n, o, r, i, s;
|
|
2863
2866
|
return {
|
|
2864
2867
|
userAttributes: de.getUserAttributes(),
|
|
2865
|
-
scriptStr:
|
|
2868
|
+
scriptStr: or(
|
|
2866
2869
|
this.variants,
|
|
2867
2870
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
2868
2871
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
2869
2872
|
),
|
|
2870
|
-
updateVisibilityStylesScript:
|
|
2873
|
+
updateVisibilityStylesScript: rr(
|
|
2871
2874
|
this.variants,
|
|
2872
2875
|
((o = this.builderBlock) == null ? void 0 : o.id) || "none",
|
|
2873
2876
|
(i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
|
|
2874
2877
|
),
|
|
2875
2878
|
unsubscribers: [],
|
|
2876
|
-
shouldRenderVariants:
|
|
2879
|
+
shouldRenderVariants: er(
|
|
2877
2880
|
this.variants,
|
|
2878
2881
|
G((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
2879
2882
|
),
|
|
2880
2883
|
shouldResetVariants: !1,
|
|
2881
|
-
TARGET:
|
|
2884
|
+
TARGET: $,
|
|
2882
2885
|
DEFAULT_INDEX: ae,
|
|
2883
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
2886
|
+
SDKS_REQUIRING_RESET_APPROACH: Nt
|
|
2884
2887
|
};
|
|
2885
2888
|
},
|
|
2886
2889
|
mounted() {
|
|
@@ -2891,7 +2894,7 @@ const lr = /* @__PURE__ */ S(ir, [["render", ar]]), cr = {
|
|
|
2891
2894
|
this.userAttributes = n;
|
|
2892
2895
|
},
|
|
2893
2896
|
{
|
|
2894
|
-
fireImmediately:
|
|
2897
|
+
fireImmediately: $ === "qwik"
|
|
2895
2898
|
}
|
|
2896
2899
|
);
|
|
2897
2900
|
if (!(A() || me())) {
|
|
@@ -2935,7 +2938,7 @@ const lr = /* @__PURE__ */ S(ir, [["render", ar]]), cr = {
|
|
|
2935
2938
|
filteredVariants() {
|
|
2936
2939
|
return (this.variants || []).filter((e) => {
|
|
2937
2940
|
var t, n, o, r;
|
|
2938
|
-
return
|
|
2941
|
+
return Jo(
|
|
2939
2942
|
{
|
|
2940
2943
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
2941
2944
|
locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
|
|
@@ -2950,7 +2953,7 @@ const lr = /* @__PURE__ */ S(ir, [["render", ar]]), cr = {
|
|
|
2950
2953
|
},
|
|
2951
2954
|
blocksToRender() {
|
|
2952
2955
|
var e;
|
|
2953
|
-
return
|
|
2956
|
+
return tr({
|
|
2954
2957
|
variants: this.variants,
|
|
2955
2958
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
2956
2959
|
isHydrated: this.shouldResetVariants,
|
|
@@ -2968,11 +2971,11 @@ const lr = /* @__PURE__ */ S(ir, [["render", ar]]), cr = {
|
|
|
2968
2971
|
}
|
|
2969
2972
|
}
|
|
2970
2973
|
});
|
|
2971
|
-
function
|
|
2972
|
-
var d, p, b, c, m, f, g, P, D,
|
|
2973
|
-
const s =
|
|
2974
|
-
return u(), h("div",
|
|
2975
|
-
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(),
|
|
2974
|
+
function Sr(e, t, n, o, r, i) {
|
|
2975
|
+
var d, p, b, c, m, f, g, P, D, V;
|
|
2976
|
+
const s = C("Blocks"), a = C("InlinedStyles"), l = C("InlinedScript");
|
|
2977
|
+
return u(), h("div", w({ ref: "rootRef" }, e.attrs), [
|
|
2978
|
+
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), S(s, {
|
|
2976
2979
|
key: 0,
|
|
2977
2980
|
blocks: e.blocksToRender.blocks,
|
|
2978
2981
|
parent: (d = e.builderBlock) == null ? void 0 : d.id,
|
|
@@ -2983,50 +2986,50 @@ function br(e, t, n, o, r, i) {
|
|
|
2983
2986
|
...(p = e.builderContext) == null ? void 0 : p.BlocksWrapperProps,
|
|
2984
2987
|
"data-variant-id": `${(b = e.builderBlock) == null ? void 0 : b.id}-${e.blocksToRender.index}`
|
|
2985
2988
|
}
|
|
2986
|
-
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) :
|
|
2987
|
-
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), h(
|
|
2988
|
-
e.shouldRenderVariants ? (u(), h(
|
|
2989
|
-
|
|
2989
|
+
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : k("", !0),
|
|
2990
|
+
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), h(I, { key: 1 }, [
|
|
2991
|
+
e.shouldRenderVariants ? (u(), h(I, { key: 0 }, [
|
|
2992
|
+
E(a, {
|
|
2990
2993
|
nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
|
|
2991
2994
|
styles: e.hideVariantsStyleString,
|
|
2992
2995
|
id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
|
|
2993
2996
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
2994
|
-
|
|
2997
|
+
E(l, {
|
|
2995
2998
|
nonce: ((f = e.builderContext) == null ? void 0 : f.nonce) || "",
|
|
2996
2999
|
scriptStr: e.updateVisibilityStylesScript,
|
|
2997
3000
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
2998
3001
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
2999
|
-
(u(!0), h(
|
|
3000
|
-
var j, J, _,
|
|
3001
|
-
return u(),
|
|
3002
|
-
key: `${(j = e.builderBlock) == null ? void 0 : j.id}-${
|
|
3002
|
+
(u(!0), h(I, null, x(e.variants, (q, T) => {
|
|
3003
|
+
var j, J, _, O;
|
|
3004
|
+
return u(), S(s, {
|
|
3005
|
+
key: `${(j = e.builderBlock) == null ? void 0 : j.id}-${T}`,
|
|
3003
3006
|
BlocksWrapperProps: {
|
|
3004
3007
|
...(J = e.builderContext) == null ? void 0 : J.BlocksWrapperProps,
|
|
3005
3008
|
"aria-hidden": !0,
|
|
3006
3009
|
hidden: !0,
|
|
3007
|
-
"data-variant-id": `${(_ = e.builderBlock) == null ? void 0 : _.id}-${
|
|
3010
|
+
"data-variant-id": `${(_ = e.builderBlock) == null ? void 0 : _.id}-${T}`
|
|
3008
3011
|
},
|
|
3009
3012
|
blocks: q.blocks,
|
|
3010
|
-
parent: (
|
|
3011
|
-
path: `component.options.variants.${
|
|
3013
|
+
parent: (O = e.builderBlock) == null ? void 0 : O.id,
|
|
3014
|
+
path: `component.options.variants.${T}.blocks`,
|
|
3012
3015
|
context: e.builderContext,
|
|
3013
3016
|
registeredComponents: e.builderComponents
|
|
3014
3017
|
}, {
|
|
3015
|
-
default:
|
|
3016
|
-
var L,
|
|
3018
|
+
default: W(() => {
|
|
3019
|
+
var L, Fe;
|
|
3017
3020
|
return [
|
|
3018
|
-
|
|
3021
|
+
E(l, {
|
|
3019
3022
|
nonce: ((L = e.builderContext) == null ? void 0 : L.nonce) || "",
|
|
3020
3023
|
scriptStr: e.scriptStr,
|
|
3021
|
-
id: `variants-script-${(
|
|
3024
|
+
id: `variants-script-${(Fe = e.builderBlock) == null ? void 0 : Fe.id}-${T}`
|
|
3022
3025
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
3023
3026
|
];
|
|
3024
3027
|
}),
|
|
3025
3028
|
_: 2
|
|
3026
3029
|
}, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
|
|
3027
3030
|
}), 128))
|
|
3028
|
-
], 64)) :
|
|
3029
|
-
|
|
3031
|
+
], 64)) : k("", !0),
|
|
3032
|
+
E(s, {
|
|
3030
3033
|
blocks: e.blocksToRender.blocks,
|
|
3031
3034
|
parent: (P = e.builderBlock) == null ? void 0 : P.id,
|
|
3032
3035
|
path: e.blocksToRender.path,
|
|
@@ -3034,26 +3037,26 @@ function br(e, t, n, o, r, i) {
|
|
|
3034
3037
|
registeredComponents: e.builderComponents,
|
|
3035
3038
|
BlocksWrapperProps: {
|
|
3036
3039
|
...(D = e.builderContext) == null ? void 0 : D.BlocksWrapperProps,
|
|
3037
|
-
"data-variant-id": `${(
|
|
3040
|
+
"data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
|
|
3038
3041
|
}
|
|
3039
3042
|
}, {
|
|
3040
|
-
default:
|
|
3041
|
-
var q,
|
|
3043
|
+
default: W(() => {
|
|
3044
|
+
var q, T;
|
|
3042
3045
|
return [
|
|
3043
|
-
e.shouldRenderVariants ? (u(),
|
|
3046
|
+
e.shouldRenderVariants ? (u(), S(l, {
|
|
3044
3047
|
key: 0,
|
|
3045
3048
|
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
3046
3049
|
scriptStr: e.scriptStr,
|
|
3047
|
-
id: `variants-script-${(
|
|
3048
|
-
}, null, 8, ["nonce", "scriptStr", "id"])) :
|
|
3050
|
+
id: `variants-script-${(T = e.builderBlock) == null ? void 0 : T.id}-${e.DEFAULT_INDEX}`
|
|
3051
|
+
}, null, 8, ["nonce", "scriptStr", "id"])) : k("", !0)
|
|
3049
3052
|
];
|
|
3050
3053
|
}),
|
|
3051
3054
|
_: 1
|
|
3052
3055
|
}, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])
|
|
3053
|
-
], 64)) :
|
|
3056
|
+
], 64)) : k("", !0)
|
|
3054
3057
|
], 16);
|
|
3055
3058
|
}
|
|
3056
|
-
const
|
|
3059
|
+
const kr = /* @__PURE__ */ v(yr, [["render", Sr]]), vr = {
|
|
3057
3060
|
name: "Core:Section",
|
|
3058
3061
|
static: !0,
|
|
3059
3062
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3092,7 +3095,7 @@ const gr = /* @__PURE__ */ S(fr, [["render", br]]), yr = {
|
|
|
3092
3095
|
}
|
|
3093
3096
|
}
|
|
3094
3097
|
}]
|
|
3095
|
-
},
|
|
3098
|
+
}, Cr = {
|
|
3096
3099
|
name: "Slot",
|
|
3097
3100
|
isRSC: !0,
|
|
3098
3101
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3109,15 +3112,15 @@ const gr = /* @__PURE__ */ S(fr, [["render", br]]), yr = {
|
|
|
3109
3112
|
builderContext: !0,
|
|
3110
3113
|
builderComponents: !0
|
|
3111
3114
|
}
|
|
3112
|
-
},
|
|
3115
|
+
}, Tr = y({
|
|
3113
3116
|
name: "builder-slot",
|
|
3114
3117
|
components: { Blocks: z },
|
|
3115
3118
|
props: ["builderContext", "name", "builderComponents"]
|
|
3116
3119
|
});
|
|
3117
|
-
function
|
|
3120
|
+
function Ir(e, t, n, o, r, i) {
|
|
3118
3121
|
var a, l, d;
|
|
3119
|
-
const s =
|
|
3120
|
-
return u(), h("div",
|
|
3122
|
+
const s = C("Blocks");
|
|
3123
|
+
return u(), h("div", w(
|
|
3121
3124
|
{ style: {
|
|
3122
3125
|
pointerEvents: "auto"
|
|
3123
3126
|
} },
|
|
@@ -3125,7 +3128,7 @@ function vr(e, t, n, o, r, i) {
|
|
|
3125
3128
|
"builder-slot": e.name
|
|
3126
3129
|
}
|
|
3127
3130
|
), [
|
|
3128
|
-
|
|
3131
|
+
E(s, {
|
|
3129
3132
|
parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
|
|
3130
3133
|
path: `symbol.data.${e.name}`,
|
|
3131
3134
|
context: e.builderContext,
|
|
@@ -3134,7 +3137,7 @@ function vr(e, t, n, o, r, i) {
|
|
|
3134
3137
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
3135
3138
|
], 16);
|
|
3136
3139
|
}
|
|
3137
|
-
const
|
|
3140
|
+
const wr = /* @__PURE__ */ v(Tr, [["render", Ir]]), $r = {
|
|
3138
3141
|
name: "Symbol",
|
|
3139
3142
|
noWrap: !0,
|
|
3140
3143
|
static: !0,
|
|
@@ -3173,7 +3176,7 @@ const Cr = /* @__PURE__ */ S(kr, [["render", vr]]), Tr = {
|
|
|
3173
3176
|
builderComponents: !0,
|
|
3174
3177
|
builderLinkComponent: !0
|
|
3175
3178
|
}
|
|
3176
|
-
},
|
|
3179
|
+
}, ye = {
|
|
3177
3180
|
"@type": "@builder.io/sdk:Element",
|
|
3178
3181
|
responsiveStyles: {
|
|
3179
3182
|
large: {
|
|
@@ -3195,7 +3198,7 @@ const Cr = /* @__PURE__ */ S(kr, [["render", vr]]), Tr = {
|
|
|
3195
3198
|
text: "New tab"
|
|
3196
3199
|
}
|
|
3197
3200
|
}
|
|
3198
|
-
},
|
|
3201
|
+
}, Se = {
|
|
3199
3202
|
"@type": "@builder.io/sdk:Element",
|
|
3200
3203
|
responsiveStyles: {
|
|
3201
3204
|
large: {
|
|
@@ -3211,7 +3214,7 @@ const Cr = /* @__PURE__ */ S(kr, [["render", vr]]), Tr = {
|
|
|
3211
3214
|
text: "New tab content "
|
|
3212
3215
|
}
|
|
3213
3216
|
}
|
|
3214
|
-
},
|
|
3217
|
+
}, Rr = {
|
|
3215
3218
|
name: "Builder: Tabs",
|
|
3216
3219
|
inputs: [{
|
|
3217
3220
|
name: "tabs",
|
|
@@ -3221,16 +3224,16 @@ const Cr = /* @__PURE__ */ S(kr, [["render", vr]]), Tr = {
|
|
|
3221
3224
|
name: "label",
|
|
3222
3225
|
type: "uiBlocks",
|
|
3223
3226
|
hideFromUI: !0,
|
|
3224
|
-
defaultValue: [
|
|
3227
|
+
defaultValue: [ye]
|
|
3225
3228
|
}, {
|
|
3226
3229
|
name: "content",
|
|
3227
3230
|
type: "uiBlocks",
|
|
3228
3231
|
hideFromUI: !0,
|
|
3229
|
-
defaultValue: [
|
|
3232
|
+
defaultValue: [Se]
|
|
3230
3233
|
}],
|
|
3231
3234
|
defaultValue: [{
|
|
3232
3235
|
label: [{
|
|
3233
|
-
...
|
|
3236
|
+
...ye,
|
|
3234
3237
|
component: {
|
|
3235
3238
|
name: "Text",
|
|
3236
3239
|
options: {
|
|
@@ -3239,7 +3242,7 @@ const Cr = /* @__PURE__ */ S(kr, [["render", vr]]), Tr = {
|
|
|
3239
3242
|
}
|
|
3240
3243
|
}],
|
|
3241
3244
|
content: [{
|
|
3242
|
-
...
|
|
3245
|
+
...Se,
|
|
3243
3246
|
component: {
|
|
3244
3247
|
name: "Text",
|
|
3245
3248
|
options: {
|
|
@@ -3249,7 +3252,7 @@ const Cr = /* @__PURE__ */ S(kr, [["render", vr]]), Tr = {
|
|
|
3249
3252
|
}]
|
|
3250
3253
|
}, {
|
|
3251
3254
|
label: [{
|
|
3252
|
-
...
|
|
3255
|
+
...ye,
|
|
3253
3256
|
component: {
|
|
3254
3257
|
name: "Text",
|
|
3255
3258
|
options: {
|
|
@@ -3258,7 +3261,7 @@ const Cr = /* @__PURE__ */ S(kr, [["render", vr]]), Tr = {
|
|
|
3258
3261
|
}
|
|
3259
3262
|
}],
|
|
3260
3263
|
content: [{
|
|
3261
|
-
...
|
|
3264
|
+
...Se,
|
|
3262
3265
|
component: {
|
|
3263
3266
|
name: "Text",
|
|
3264
3267
|
options: {
|
|
@@ -3314,7 +3317,7 @@ const Cr = /* @__PURE__ */ S(kr, [["render", vr]]), Tr = {
|
|
|
3314
3317
|
builderComponents: !0,
|
|
3315
3318
|
builderLinkComponent: !0
|
|
3316
3319
|
}
|
|
3317
|
-
},
|
|
3320
|
+
}, Er = y({
|
|
3318
3321
|
name: "builder-tabs",
|
|
3319
3322
|
components: { Blocks: z },
|
|
3320
3323
|
props: [
|
|
@@ -3342,9 +3345,9 @@ const Cr = /* @__PURE__ */ S(kr, [["render", vr]]), Tr = {
|
|
|
3342
3345
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3343
3346
|
}
|
|
3344
3347
|
}
|
|
3345
|
-
}),
|
|
3346
|
-
function
|
|
3347
|
-
const s =
|
|
3348
|
+
}), Pr = ["onClick"], Ar = { key: 0 };
|
|
3349
|
+
function Br(e, t, n, o, r, i) {
|
|
3350
|
+
const s = C("Blocks");
|
|
3348
3351
|
return u(), h("div", null, [
|
|
3349
3352
|
K("div", {
|
|
3350
3353
|
class: "builder-tabs-wrap",
|
|
@@ -3355,13 +3358,13 @@ function Er(e, t, n, o, r, i) {
|
|
|
3355
3358
|
overflow: "auto"
|
|
3356
3359
|
})
|
|
3357
3360
|
}, [
|
|
3358
|
-
(u(!0), h(
|
|
3361
|
+
(u(!0), h(I, null, x(e.tabs, (a, l) => (u(), h("span", {
|
|
3359
3362
|
key: l,
|
|
3360
3363
|
class: ee(`builder-tab-wrap ${e.activeTab === l ? "builder-tab-active" : ""}`),
|
|
3361
3364
|
style: M(e.getTabStyle(l)),
|
|
3362
3365
|
onClick: async (d) => e.onClick(l)
|
|
3363
3366
|
}, [
|
|
3364
|
-
|
|
3367
|
+
E(s, {
|
|
3365
3368
|
parent: e.builderBlock.id,
|
|
3366
3369
|
path: `tabs.${l}.label`,
|
|
3367
3370
|
blocks: a.label,
|
|
@@ -3369,10 +3372,10 @@ function Er(e, t, n, o, r, i) {
|
|
|
3369
3372
|
registeredComponents: e.builderComponents,
|
|
3370
3373
|
linkComponent: e.builderLinkComponent
|
|
3371
3374
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3372
|
-
], 14,
|
|
3375
|
+
], 14, Pr))), 128))
|
|
3373
3376
|
], 4),
|
|
3374
|
-
e.activeTabContent(e.activeTab) ? (u(), h("div",
|
|
3375
|
-
|
|
3377
|
+
e.activeTabContent(e.activeTab) ? (u(), h("div", Ar, [
|
|
3378
|
+
E(s, {
|
|
3376
3379
|
parent: e.builderBlock.id,
|
|
3377
3380
|
path: `tabs.${e.activeTab}.content`,
|
|
3378
3381
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -3380,10 +3383,10 @@ function Er(e, t, n, o, r, i) {
|
|
|
3380
3383
|
registeredComponents: e.builderComponents,
|
|
3381
3384
|
linkComponent: e.builderLinkComponent
|
|
3382
3385
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3383
|
-
])) :
|
|
3386
|
+
])) : k("", !0)
|
|
3384
3387
|
]);
|
|
3385
3388
|
}
|
|
3386
|
-
const
|
|
3389
|
+
const Vr = /* @__PURE__ */ v(Er, [["render", Br]]), Nr = {
|
|
3387
3390
|
shouldReceiveBuilderProps: {},
|
|
3388
3391
|
name: "Text",
|
|
3389
3392
|
static: !0,
|
|
@@ -3401,11 +3404,11 @@ const Pr = /* @__PURE__ */ S(Ir, [["render", Er]]), Ar = {
|
|
|
3401
3404
|
height: "auto",
|
|
3402
3405
|
textAlign: "center"
|
|
3403
3406
|
}
|
|
3404
|
-
},
|
|
3407
|
+
}, Or = y({
|
|
3405
3408
|
name: "builder-text",
|
|
3406
3409
|
props: ["text"]
|
|
3407
|
-
}),
|
|
3408
|
-
function
|
|
3410
|
+
}), Wr = ["innerHTML"];
|
|
3411
|
+
function Dr(e, t, n, o, r, i) {
|
|
3409
3412
|
var s;
|
|
3410
3413
|
return u(), h("div", {
|
|
3411
3414
|
class: "builder-text",
|
|
@@ -3413,9 +3416,9 @@ function Nr(e, t, n, o, r, i) {
|
|
|
3413
3416
|
style: {
|
|
3414
3417
|
outline: "none"
|
|
3415
3418
|
}
|
|
3416
|
-
}, null, 8,
|
|
3419
|
+
}, null, 8, Wr);
|
|
3417
3420
|
}
|
|
3418
|
-
const
|
|
3421
|
+
const Ur = /* @__PURE__ */ v(Or, [["render", Dr]]), xr = {
|
|
3419
3422
|
name: "Custom Code",
|
|
3420
3423
|
static: !0,
|
|
3421
3424
|
requiredPermissions: ["editCode"],
|
|
@@ -3437,7 +3440,7 @@ const Wr = /* @__PURE__ */ S(Br, [["render", Nr]]), Or = {
|
|
|
3437
3440
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3438
3441
|
advanced: !0
|
|
3439
3442
|
}]
|
|
3440
|
-
},
|
|
3443
|
+
}, Fr = y({
|
|
3441
3444
|
name: "builder-custom-code",
|
|
3442
3445
|
props: ["code", "replaceNodes"],
|
|
3443
3446
|
data() {
|
|
@@ -3496,15 +3499,15 @@ const Wr = /* @__PURE__ */ S(Br, [["render", Nr]]), Or = {
|
|
|
3496
3499
|
}
|
|
3497
3500
|
}
|
|
3498
3501
|
}
|
|
3499
|
-
}),
|
|
3500
|
-
function
|
|
3502
|
+
}), Lr = ["innerHTML"];
|
|
3503
|
+
function Mr(e, t, n, o, r, i) {
|
|
3501
3504
|
return u(), h("div", {
|
|
3502
3505
|
ref: "elementRef",
|
|
3503
3506
|
class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3504
3507
|
innerHTML: e.code
|
|
3505
|
-
}, null, 10,
|
|
3508
|
+
}, null, 10, Lr);
|
|
3506
3509
|
}
|
|
3507
|
-
const
|
|
3510
|
+
const Hr = /* @__PURE__ */ v(Fr, [["render", Mr]]), jr = {
|
|
3508
3511
|
name: "Embed",
|
|
3509
3512
|
static: !0,
|
|
3510
3513
|
inputs: [{
|
|
@@ -3519,7 +3522,7 @@ const Fr = /* @__PURE__ */ S(Dr, [["render", xr]]), Lr = {
|
|
|
3519
3522
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3520
3523
|
hideFromUI: !0
|
|
3521
3524
|
}]
|
|
3522
|
-
},
|
|
3525
|
+
}, zr = ["text/javascript", "application/javascript", "application/ecmascript"], qr = (e) => zr.includes(e.type), Kr = y({
|
|
3523
3526
|
name: "builder-embed",
|
|
3524
3527
|
props: ["content"],
|
|
3525
3528
|
data() {
|
|
@@ -3552,7 +3555,7 @@ const Fr = /* @__PURE__ */ S(Dr, [["render", xr]]), Lr = {
|
|
|
3552
3555
|
this.scriptsInserted.push(n.src);
|
|
3553
3556
|
const o = document.createElement("script");
|
|
3554
3557
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3555
|
-
} else if (
|
|
3558
|
+
} else if (qr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3556
3559
|
try {
|
|
3557
3560
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3558
3561
|
} catch (o) {
|
|
@@ -3561,15 +3564,15 @@ const Fr = /* @__PURE__ */ S(Dr, [["render", xr]]), Lr = {
|
|
|
3561
3564
|
}
|
|
3562
3565
|
}
|
|
3563
3566
|
}
|
|
3564
|
-
}),
|
|
3565
|
-
function
|
|
3567
|
+
}), Gr = ["innerHTML"];
|
|
3568
|
+
function Jr(e, t, n, o, r, i) {
|
|
3566
3569
|
return u(), h("div", {
|
|
3567
3570
|
class: "builder-embed",
|
|
3568
3571
|
ref: "elem",
|
|
3569
3572
|
innerHTML: e.content
|
|
3570
|
-
}, null, 8,
|
|
3573
|
+
}, null, 8, Gr);
|
|
3571
3574
|
}
|
|
3572
|
-
const
|
|
3575
|
+
const _r = /* @__PURE__ */ v(Kr, [["render", Jr]]), Qr = {
|
|
3573
3576
|
name: "Form:Form",
|
|
3574
3577
|
// editableTags: ['builder-form-error']
|
|
3575
3578
|
defaults: {
|
|
@@ -3806,10 +3809,10 @@ const Kr = /* @__PURE__ */ S(jr, [["render", qr]]), Gr = {
|
|
|
3806
3809
|
builderComponents: !0,
|
|
3807
3810
|
builderLinkComponent: !0
|
|
3808
3811
|
}
|
|
3809
|
-
},
|
|
3812
|
+
}, Yr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Xr = () => {
|
|
3810
3813
|
const e = process.env.NODE_ENV || "production";
|
|
3811
|
-
return
|
|
3812
|
-
},
|
|
3814
|
+
return Yr.includes(e) ? e : "production";
|
|
3815
|
+
}, Zr = y({
|
|
3813
3816
|
name: "builder-form-component",
|
|
3814
3817
|
components: { Blocks: z },
|
|
3815
3818
|
props: [
|
|
@@ -3902,7 +3905,7 @@ const Kr = /* @__PURE__ */ S(jr, [["render", qr]]), Gr = {
|
|
|
3902
3905
|
else {
|
|
3903
3906
|
const c = {};
|
|
3904
3907
|
Array.from(a).forEach(({ value: m, key: f }) => {
|
|
3905
|
-
|
|
3908
|
+
Yt(c, f, m);
|
|
3906
3909
|
}), i = JSON.stringify(c);
|
|
3907
3910
|
}
|
|
3908
3911
|
l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = l));
|
|
@@ -3920,10 +3923,10 @@ const Kr = /* @__PURE__ */ S(jr, [["render", qr]]), Gr = {
|
|
|
3920
3923
|
});
|
|
3921
3924
|
return;
|
|
3922
3925
|
}
|
|
3923
|
-
const p = `${
|
|
3926
|
+
const p = `${Xr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3924
3927
|
this.sendSubmissionsToEmail || ""
|
|
3925
3928
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
3926
|
-
|
|
3929
|
+
mt(b), fetch(b, {
|
|
3927
3930
|
body: i,
|
|
3928
3931
|
headers: r,
|
|
3929
3932
|
method: this.method || "post"
|
|
@@ -3944,9 +3947,9 @@ const Kr = /* @__PURE__ */ S(jr, [["render", qr]]), Gr = {
|
|
|
3944
3947
|
), D.defaultPrevented))
|
|
3945
3948
|
return;
|
|
3946
3949
|
this.responseData = m, this.formState = "error";
|
|
3947
|
-
let
|
|
3948
|
-
typeof
|
|
3949
|
-
formErrorMessage:
|
|
3950
|
+
let V = this.errorMessagePath ? ft(m, this.errorMessagePath) : m.message || m.error || m;
|
|
3951
|
+
typeof V != "string" && (V = JSON.stringify(V)), this.formErrorMessage = V, this.mergeNewRootState({
|
|
3952
|
+
formErrorMessage: V
|
|
3950
3953
|
});
|
|
3951
3954
|
return;
|
|
3952
3955
|
}
|
|
@@ -3964,12 +3967,12 @@ const Kr = /* @__PURE__ */ S(jr, [["render", qr]]), Gr = {
|
|
|
3964
3967
|
}
|
|
3965
3968
|
if (this.successUrl)
|
|
3966
3969
|
if (this.$refs.formRef) {
|
|
3967
|
-
const
|
|
3970
|
+
const V = new CustomEvent("route", {
|
|
3968
3971
|
detail: {
|
|
3969
3972
|
url: this.successUrl
|
|
3970
3973
|
}
|
|
3971
3974
|
});
|
|
3972
|
-
this.$refs.formRef.dispatchEvent(
|
|
3975
|
+
this.$refs.formRef.dispatchEvent(V), V.defaultPrevented || (location.href = this.successUrl);
|
|
3973
3976
|
} else
|
|
3974
3977
|
location.href = this.successUrl;
|
|
3975
3978
|
}
|
|
@@ -3986,13 +3989,13 @@ const Kr = /* @__PURE__ */ S(jr, [["render", qr]]), Gr = {
|
|
|
3986
3989
|
}
|
|
3987
3990
|
}
|
|
3988
3991
|
}
|
|
3989
|
-
}),
|
|
3992
|
+
}), ei = ["validate", "action", "method", "name"], ti = {
|
|
3990
3993
|
key: 2,
|
|
3991
|
-
class: "builder-form-error-text pre-
|
|
3994
|
+
class: "builder-form-error-text pre-7fq9d0i380"
|
|
3992
3995
|
};
|
|
3993
|
-
function
|
|
3994
|
-
const s =
|
|
3995
|
-
return u(), h("form",
|
|
3996
|
+
function ni(e, t, n, o, r, i) {
|
|
3997
|
+
const s = C("Blocks");
|
|
3998
|
+
return u(), h("form", w({
|
|
3996
3999
|
validate: e.validate,
|
|
3997
4000
|
ref: "formRef",
|
|
3998
4001
|
action: !e.sendWithJs && e.action,
|
|
@@ -4000,29 +4003,29 @@ function Zr(e, t, n, o, r, i) {
|
|
|
4000
4003
|
name: e.name,
|
|
4001
4004
|
onSubmit: t[0] || (t[0] = async (a) => e.onSubmit(a))
|
|
4002
4005
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4003
|
-
|
|
4004
|
-
e.submissionState() === "error" ? (u(),
|
|
4006
|
+
B(e.$slots, "default", {}, void 0, !0),
|
|
4007
|
+
e.submissionState() === "error" ? (u(), S(s, {
|
|
4005
4008
|
key: 0,
|
|
4006
4009
|
path: "errorMessage",
|
|
4007
4010
|
blocks: e.errorMessage,
|
|
4008
4011
|
context: e.builderContext
|
|
4009
|
-
}, null, 8, ["blocks", "context"])) :
|
|
4010
|
-
e.submissionState() === "sending" ? (u(),
|
|
4012
|
+
}, null, 8, ["blocks", "context"])) : k("", !0),
|
|
4013
|
+
e.submissionState() === "sending" ? (u(), S(s, {
|
|
4011
4014
|
key: 1,
|
|
4012
4015
|
path: "sendingMessage",
|
|
4013
4016
|
blocks: e.sendingMessage,
|
|
4014
4017
|
context: e.builderContext
|
|
4015
|
-
}, null, 8, ["blocks", "context"])) :
|
|
4016
|
-
e.submissionState() === "error" && e.responseData ? (u(), h("pre",
|
|
4017
|
-
e.submissionState() === "success" ? (u(),
|
|
4018
|
+
}, null, 8, ["blocks", "context"])) : k("", !0),
|
|
4019
|
+
e.submissionState() === "error" && e.responseData ? (u(), h("pre", ti, pe(e.errorResponse(e.responseData)), 1)) : k("", !0),
|
|
4020
|
+
e.submissionState() === "success" ? (u(), S(s, {
|
|
4018
4021
|
key: 3,
|
|
4019
4022
|
path: "successMessage",
|
|
4020
4023
|
blocks: e.successMessage,
|
|
4021
4024
|
context: e.builderContext
|
|
4022
|
-
}, null, 8, ["blocks", "context"])) :
|
|
4023
|
-
], 16,
|
|
4025
|
+
}, null, 8, ["blocks", "context"])) : k("", !0)
|
|
4026
|
+
], 16, ei);
|
|
4024
4027
|
}
|
|
4025
|
-
const
|
|
4028
|
+
const oi = /* @__PURE__ */ v(Zr, [["render", ni], ["__scopeId", "data-v-d1f88a0c"]]), ri = {
|
|
4026
4029
|
name: "Form:Input",
|
|
4027
4030
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4028
4031
|
inputs: [
|
|
@@ -4073,7 +4076,7 @@ const ei = /* @__PURE__ */ S(Qr, [["render", Zr], ["__scopeId", "data-v-77c7888c
|
|
|
4073
4076
|
borderStyle: "solid",
|
|
4074
4077
|
borderColor: "#ccc"
|
|
4075
4078
|
}
|
|
4076
|
-
},
|
|
4079
|
+
}, ii = y({
|
|
4077
4080
|
name: "builder-form-input-component",
|
|
4078
4081
|
props: [
|
|
4079
4082
|
"attributes",
|
|
@@ -4087,9 +4090,9 @@ const ei = /* @__PURE__ */ S(Qr, [["render", Zr], ["__scopeId", "data-v-77c7888c
|
|
|
4087
4090
|
data() {
|
|
4088
4091
|
return { isEditing: A, filterAttrs: N };
|
|
4089
4092
|
}
|
|
4090
|
-
}),
|
|
4091
|
-
function
|
|
4092
|
-
return u(), h("input",
|
|
4093
|
+
}), si = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4094
|
+
function ai(e, t, n, o, r, i) {
|
|
4095
|
+
return u(), h("input", w({
|
|
4093
4096
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4094
4097
|
placeholder: e.placeholder,
|
|
4095
4098
|
type: e.type,
|
|
@@ -4097,9 +4100,9 @@ function ri(e, t, n, o, r, i) {
|
|
|
4097
4100
|
value: e.value,
|
|
4098
4101
|
defaultValue: e.defaultValue,
|
|
4099
4102
|
required: e.required
|
|
4100
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4103
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, si);
|
|
4101
4104
|
}
|
|
4102
|
-
const
|
|
4105
|
+
const li = /* @__PURE__ */ v(ii, [["render", ai]]), ci = {
|
|
4103
4106
|
name: "Form:Select",
|
|
4104
4107
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4105
4108
|
defaultStyles: {
|
|
@@ -4141,28 +4144,28 @@ const ii = /* @__PURE__ */ S(ni, [["render", ri]]), si = {
|
|
|
4141
4144
|
}],
|
|
4142
4145
|
static: !0,
|
|
4143
4146
|
noWrap: !0
|
|
4144
|
-
},
|
|
4147
|
+
}, di = y({
|
|
4145
4148
|
name: "builder-select-component",
|
|
4146
4149
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4147
4150
|
data() {
|
|
4148
4151
|
return { isEditing: A, filterAttrs: N };
|
|
4149
4152
|
}
|
|
4150
|
-
}),
|
|
4151
|
-
function
|
|
4152
|
-
return u(), h("select",
|
|
4153
|
+
}), ui = ["value", "defaultValue", "name", "required"], pi = ["value"];
|
|
4154
|
+
function mi(e, t, n, o, r, i) {
|
|
4155
|
+
return u(), h("select", w({
|
|
4153
4156
|
value: e.value,
|
|
4154
4157
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4155
4158
|
defaultValue: e.defaultValue,
|
|
4156
4159
|
name: e.name,
|
|
4157
4160
|
required: e.required
|
|
4158
4161
|
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4159
|
-
(u(!0), h(
|
|
4162
|
+
(u(!0), h(I, null, x(e.options, (s, a) => (u(), h("option", {
|
|
4160
4163
|
key: `${s.name}-${a}`,
|
|
4161
4164
|
value: s.value
|
|
4162
|
-
}, pe(s.name || s.value), 9,
|
|
4163
|
-
], 16,
|
|
4165
|
+
}, pe(s.name || s.value), 9, pi))), 128))
|
|
4166
|
+
], 16, ui);
|
|
4164
4167
|
}
|
|
4165
|
-
const
|
|
4168
|
+
const hi = /* @__PURE__ */ v(di, [["render", mi]]), fi = {
|
|
4166
4169
|
name: "Form:SubmitButton",
|
|
4167
4170
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4168
4171
|
defaultStyles: {
|
|
@@ -4187,17 +4190,17 @@ const ui = /* @__PURE__ */ S(ai, [["render", di]]), pi = {
|
|
|
4187
4190
|
// that only shows if advanced setting is flipped
|
|
4188
4191
|
// TODO: defaultChildren
|
|
4189
4192
|
// canHaveChildren: true,
|
|
4190
|
-
},
|
|
4193
|
+
}, bi = y({
|
|
4191
4194
|
name: "builder-submit-button",
|
|
4192
4195
|
props: ["attributes", "text"],
|
|
4193
4196
|
data() {
|
|
4194
4197
|
return { filterAttrs: N };
|
|
4195
4198
|
}
|
|
4196
4199
|
});
|
|
4197
|
-
function
|
|
4198
|
-
return u(), h("button",
|
|
4200
|
+
function gi(e, t, n, o, r, i) {
|
|
4201
|
+
return u(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), pe(e.text), 17);
|
|
4199
4202
|
}
|
|
4200
|
-
const
|
|
4203
|
+
const yi = /* @__PURE__ */ v(bi, [["render", gi]]), Si = {
|
|
4201
4204
|
name: "Form:TextArea",
|
|
4202
4205
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4203
4206
|
inputs: [{
|
|
@@ -4233,7 +4236,7 @@ const fi = /* @__PURE__ */ S(mi, [["render", hi]]), bi = {
|
|
|
4233
4236
|
},
|
|
4234
4237
|
static: !0,
|
|
4235
4238
|
noWrap: !0
|
|
4236
|
-
},
|
|
4239
|
+
}, ki = y({
|
|
4237
4240
|
name: "builder-textarea",
|
|
4238
4241
|
props: [
|
|
4239
4242
|
"attributes",
|
|
@@ -4246,17 +4249,17 @@ const fi = /* @__PURE__ */ S(mi, [["render", hi]]), bi = {
|
|
|
4246
4249
|
data() {
|
|
4247
4250
|
return { filterAttrs: N };
|
|
4248
4251
|
}
|
|
4249
|
-
}),
|
|
4250
|
-
function
|
|
4251
|
-
return u(), h("textarea",
|
|
4252
|
+
}), vi = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4253
|
+
function Ci(e, t, n, o, r, i) {
|
|
4254
|
+
return u(), h("textarea", w({
|
|
4252
4255
|
placeholder: e.placeholder,
|
|
4253
4256
|
name: e.name,
|
|
4254
4257
|
value: e.value,
|
|
4255
4258
|
defaultValue: e.defaultValue,
|
|
4256
4259
|
required: e.required
|
|
4257
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4260
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, vi);
|
|
4258
4261
|
}
|
|
4259
|
-
const
|
|
4262
|
+
const Ti = /* @__PURE__ */ v(ki, [["render", Ci]]), Ii = {
|
|
4260
4263
|
name: "Raw:Img",
|
|
4261
4264
|
hideFromInsertMenu: !0,
|
|
4262
4265
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -4264,7 +4267,7 @@ const ki = /* @__PURE__ */ S(gi, [["render", Si]]), vi = {
|
|
|
4264
4267
|
name: "image",
|
|
4265
4268
|
bubble: !0,
|
|
4266
4269
|
type: "file",
|
|
4267
|
-
allowedFileTypes:
|
|
4270
|
+
allowedFileTypes: Ue,
|
|
4268
4271
|
required: !0
|
|
4269
4272
|
}, {
|
|
4270
4273
|
name: "backgroundSize",
|
|
@@ -4300,7 +4303,7 @@ const ki = /* @__PURE__ */ S(gi, [["render", Si]]), vi = {
|
|
|
4300
4303
|
defaultValue: 0.7041
|
|
4301
4304
|
}],
|
|
4302
4305
|
noWrap: !0
|
|
4303
|
-
},
|
|
4306
|
+
}, wi = y({
|
|
4304
4307
|
name: "builder-img-component",
|
|
4305
4308
|
props: [
|
|
4306
4309
|
"imgSrc",
|
|
@@ -4330,10 +4333,10 @@ const ki = /* @__PURE__ */ S(gi, [["render", Si]]), vi = {
|
|
|
4330
4333
|
return delete e.style, e;
|
|
4331
4334
|
}
|
|
4332
4335
|
}
|
|
4333
|
-
}),
|
|
4334
|
-
function
|
|
4336
|
+
}), $i = ["alt", "title", "src"];
|
|
4337
|
+
function Ri(e, t, n, o, r, i) {
|
|
4335
4338
|
var s;
|
|
4336
|
-
return u(), h("img",
|
|
4339
|
+
return u(), h("img", w({
|
|
4337
4340
|
loading: "lazy",
|
|
4338
4341
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
4339
4342
|
alt: e.altText,
|
|
@@ -4345,9 +4348,9 @@ function wi(e, t, n, o, r, i) {
|
|
|
4345
4348
|
aspectRatio: e.aspectRatio || void 0,
|
|
4346
4349
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4347
4350
|
}
|
|
4348
|
-
}, e.imgAttrs), null, 16,
|
|
4351
|
+
}, e.imgAttrs), null, 16, $i);
|
|
4349
4352
|
}
|
|
4350
|
-
const
|
|
4353
|
+
const Ei = /* @__PURE__ */ v(wi, [["render", Ri]]), Pi = {
|
|
4351
4354
|
name: "Video",
|
|
4352
4355
|
canHaveChildren: !0,
|
|
4353
4356
|
defaultStyles: {
|
|
@@ -4358,14 +4361,14 @@ const Ii = /* @__PURE__ */ S(Ci, [["render", wi]]), $i = {
|
|
|
4358
4361
|
inputs: [{
|
|
4359
4362
|
name: "video",
|
|
4360
4363
|
type: "file",
|
|
4361
|
-
allowedFileTypes:
|
|
4364
|
+
allowedFileTypes: fr,
|
|
4362
4365
|
bubble: !0,
|
|
4363
4366
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4364
4367
|
required: !0
|
|
4365
4368
|
}, {
|
|
4366
4369
|
name: "posterImage",
|
|
4367
4370
|
type: "file",
|
|
4368
|
-
allowedFileTypes:
|
|
4371
|
+
allowedFileTypes: Ue,
|
|
4369
4372
|
helperText: "Image to show before the video plays"
|
|
4370
4373
|
}, {
|
|
4371
4374
|
name: "autoPlay",
|
|
@@ -4431,7 +4434,7 @@ const Ii = /* @__PURE__ */ S(Ci, [["render", wi]]), $i = {
|
|
|
4431
4434
|
shouldReceiveBuilderProps: {
|
|
4432
4435
|
builderBlock: !0
|
|
4433
4436
|
}
|
|
4434
|
-
},
|
|
4437
|
+
}, Ai = y({
|
|
4435
4438
|
name: "builder-video",
|
|
4436
4439
|
props: [
|
|
4437
4440
|
"lazyLoad",
|
|
@@ -4504,16 +4507,16 @@ const Ii = /* @__PURE__ */ S(Ci, [["render", wi]]), $i = {
|
|
|
4504
4507
|
};
|
|
4505
4508
|
}
|
|
4506
4509
|
}
|
|
4507
|
-
}),
|
|
4510
|
+
}), Bi = { style: {
|
|
4508
4511
|
position: "relative"
|
|
4509
|
-
} },
|
|
4512
|
+
} }, Vi = ["preload", "poster"], Ni = {
|
|
4510
4513
|
key: 1,
|
|
4511
4514
|
style: {
|
|
4512
4515
|
display: "flex",
|
|
4513
4516
|
flexDirection: "column",
|
|
4514
4517
|
alignItems: "stretch"
|
|
4515
4518
|
}
|
|
4516
|
-
},
|
|
4519
|
+
}, Oi = {
|
|
4517
4520
|
key: 2,
|
|
4518
4521
|
style: {
|
|
4519
4522
|
pointerEvents: "none",
|
|
@@ -4527,10 +4530,10 @@ const Ii = /* @__PURE__ */ S(Ci, [["render", wi]]), $i = {
|
|
|
4527
4530
|
height: "100%"
|
|
4528
4531
|
}
|
|
4529
4532
|
};
|
|
4530
|
-
function
|
|
4533
|
+
function Wi(e, t, n, o, r, i) {
|
|
4531
4534
|
var s, a, l, d, p, b, c;
|
|
4532
|
-
return u(), h("div",
|
|
4533
|
-
K("video",
|
|
4535
|
+
return u(), h("div", Bi, [
|
|
4536
|
+
K("video", w({
|
|
4534
4537
|
class: "builder-video",
|
|
4535
4538
|
ref: "videoRef",
|
|
4536
4539
|
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
@@ -4549,7 +4552,7 @@ function Vi(e, t, n, o, r, i) {
|
|
|
4549
4552
|
},
|
|
4550
4553
|
poster: e.posterImage
|
|
4551
4554
|
}, e.spreadProps), [
|
|
4552
|
-
K("source",
|
|
4555
|
+
K("source", w(
|
|
4553
4556
|
{ type: "video/mp4" },
|
|
4554
4557
|
e.lazyLoad ? {
|
|
4555
4558
|
"data-src": e.video
|
|
@@ -4557,7 +4560,7 @@ function Vi(e, t, n, o, r, i) {
|
|
|
4557
4560
|
src: e.video
|
|
4558
4561
|
}
|
|
4559
4562
|
), null, 16)
|
|
4560
|
-
], 16,
|
|
4563
|
+
], 16, Vi),
|
|
4561
4564
|
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (u(), h("div", {
|
|
4562
4565
|
key: 0,
|
|
4563
4566
|
style: M({
|
|
@@ -4566,78 +4569,78 @@ function Vi(e, t, n, o, r, i) {
|
|
|
4566
4569
|
pointerEvents: "none",
|
|
4567
4570
|
fontSize: "0px"
|
|
4568
4571
|
})
|
|
4569
|
-
}, null, 4)) :
|
|
4570
|
-
(p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && e.fitContent ? (u(), h("div",
|
|
4571
|
-
|
|
4572
|
-
])) :
|
|
4573
|
-
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (u(), h("div",
|
|
4574
|
-
|
|
4575
|
-
])) :
|
|
4572
|
+
}, null, 4)) : k("", !0),
|
|
4573
|
+
(p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && e.fitContent ? (u(), h("div", Ni, [
|
|
4574
|
+
B(e.$slots, "default")
|
|
4575
|
+
])) : k("", !0),
|
|
4576
|
+
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (u(), h("div", Oi, [
|
|
4577
|
+
B(e.$slots, "default")
|
|
4578
|
+
])) : k("", !0)
|
|
4576
4579
|
]);
|
|
4577
4580
|
}
|
|
4578
|
-
const
|
|
4579
|
-
component:
|
|
4580
|
-
...
|
|
4581
|
+
const Di = /* @__PURE__ */ v(Ai, [["render", Wi]]), Ui = () => [{
|
|
4582
|
+
component: Hr,
|
|
4583
|
+
...xr
|
|
4581
4584
|
}, {
|
|
4582
|
-
component:
|
|
4583
|
-
...
|
|
4585
|
+
component: _r,
|
|
4586
|
+
...jr
|
|
4584
4587
|
}, {
|
|
4585
|
-
component:
|
|
4586
|
-
...
|
|
4588
|
+
component: oi,
|
|
4589
|
+
...Qr
|
|
4587
4590
|
}, {
|
|
4588
|
-
component:
|
|
4589
|
-
...
|
|
4591
|
+
component: li,
|
|
4592
|
+
...ri
|
|
4590
4593
|
}, {
|
|
4591
|
-
component:
|
|
4592
|
-
...
|
|
4594
|
+
component: yi,
|
|
4595
|
+
...fi
|
|
4593
4596
|
}, {
|
|
4594
|
-
component:
|
|
4595
|
-
...
|
|
4597
|
+
component: hi,
|
|
4598
|
+
...ci
|
|
4596
4599
|
}, {
|
|
4597
|
-
component:
|
|
4598
|
-
...
|
|
4600
|
+
component: Ti,
|
|
4601
|
+
...Si
|
|
4599
4602
|
}, {
|
|
4600
|
-
component:
|
|
4601
|
-
...
|
|
4603
|
+
component: Ei,
|
|
4604
|
+
...Ii
|
|
4602
4605
|
}, {
|
|
4603
|
-
component:
|
|
4604
|
-
|
|
4606
|
+
component: Di,
|
|
4607
|
+
...Pi
|
|
4605
4608
|
}];
|
|
4606
4609
|
let re;
|
|
4607
|
-
const
|
|
4608
|
-
component:
|
|
4609
|
-
...
|
|
4610
|
-
}, {
|
|
4611
|
-
component: Ao,
|
|
4612
|
-
...dr
|
|
4610
|
+
const rt = () => re || (re = [{
|
|
4611
|
+
component: sn,
|
|
4612
|
+
...pr
|
|
4613
4613
|
}, {
|
|
4614
4614
|
component: No,
|
|
4615
|
-
...ur
|
|
4616
|
-
}, {
|
|
4617
|
-
component: Mo,
|
|
4618
4615
|
...mr
|
|
4616
|
+
}, {
|
|
4617
|
+
component: Do,
|
|
4618
|
+
...hr
|
|
4619
4619
|
}, {
|
|
4620
4620
|
component: zo,
|
|
4621
|
-
...
|
|
4621
|
+
...br
|
|
4622
4622
|
}, {
|
|
4623
|
-
component:
|
|
4624
|
-
...
|
|
4623
|
+
component: Go,
|
|
4624
|
+
...vr
|
|
4625
4625
|
}, {
|
|
4626
|
-
component:
|
|
4627
|
-
...
|
|
4626
|
+
component: wr,
|
|
4627
|
+
...Cr
|
|
4628
4628
|
}, {
|
|
4629
|
-
component:
|
|
4630
|
-
|
|
4631
|
-
},
|
|
4632
|
-
component:
|
|
4633
|
-
...
|
|
4629
|
+
component: ws,
|
|
4630
|
+
...$r
|
|
4631
|
+
}, {
|
|
4632
|
+
component: Ur,
|
|
4633
|
+
...Nr
|
|
4634
|
+
}, ...De.includes($) ? [{
|
|
4635
|
+
component: kr,
|
|
4636
|
+
...gr
|
|
4634
4637
|
}] : [], {
|
|
4635
|
-
component:
|
|
4636
|
-
...
|
|
4638
|
+
component: Vr,
|
|
4639
|
+
...Rr
|
|
4637
4640
|
}, {
|
|
4638
|
-
component:
|
|
4639
|
-
...
|
|
4640
|
-
}, ...
|
|
4641
|
+
component: ur,
|
|
4642
|
+
...sr
|
|
4643
|
+
}, ...Ui()], re), xi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4641
4644
|
function getAndSetVariantId() {
|
|
4642
4645
|
function setCookie(name, value, days) {
|
|
4643
4646
|
let expires = '';
|
|
@@ -4696,7 +4699,7 @@ const nt = () => re || (re = [{
|
|
|
4696
4699
|
}).join('');
|
|
4697
4700
|
styleEl.innerHTML = newStyleStr;
|
|
4698
4701
|
}
|
|
4699
|
-
}`,
|
|
4702
|
+
}`, Fi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4700
4703
|
if (!navigator.cookieEnabled) {
|
|
4701
4704
|
return;
|
|
4702
4705
|
}
|
|
@@ -4730,37 +4733,37 @@ const nt = () => re || (re = [{
|
|
|
4730
4733
|
thisScriptEl?.remove();
|
|
4731
4734
|
}
|
|
4732
4735
|
return;
|
|
4733
|
-
}`,
|
|
4736
|
+
}`, Re = "builderIoAbTest", Ee = "builderIoRenderContent", Li = ["react", "vue", "svelte", "solid", "qwik"], le = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4734
4737
|
...t,
|
|
4735
4738
|
testVariationId: t.id,
|
|
4736
4739
|
id: e == null ? void 0 : e.id
|
|
4737
|
-
})),
|
|
4740
|
+
})), Mi = ({
|
|
4738
4741
|
canTrack: e,
|
|
4739
4742
|
content: t
|
|
4740
|
-
}) => !(!(le(t).length > 0) || !e),
|
|
4743
|
+
}) => !(!(le(t).length > 0) || !e), Hi = (e) => e === "react" || e === "reactNative", ji = $ === "angular", xe = Hi($), Dt = () => `
|
|
4741
4744
|
(function() {
|
|
4742
|
-
if (!window.${
|
|
4743
|
-
window.${
|
|
4745
|
+
if (!window.${Re}) {
|
|
4746
|
+
window.${Re} = ${xi};
|
|
4744
4747
|
}
|
|
4745
|
-
if (!window.${
|
|
4746
|
-
window.${
|
|
4747
|
-
}${
|
|
4748
|
+
if (!window.${Ee}) {
|
|
4749
|
+
window.${Ee} = ${Fi};
|
|
4750
|
+
}${xe ? `
|
|
4748
4751
|
var thisScriptEl = document.currentScript;
|
|
4749
4752
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
4750
4753
|
})();
|
|
4751
|
-
`,
|
|
4752
|
-
window.${
|
|
4753
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4754
|
-
)`,
|
|
4754
|
+
`, zi = (e, t) => `
|
|
4755
|
+
window.${Re}(
|
|
4756
|
+
"${t}",${JSON.stringify(e)}, ${xe}, ${ji}
|
|
4757
|
+
)`, qi = ({
|
|
4755
4758
|
contentId: e,
|
|
4756
4759
|
variationId: t
|
|
4757
|
-
}) => `window.${
|
|
4758
|
-
"${t}", "${e}", ${
|
|
4760
|
+
}) => `window.${Ee}(
|
|
4761
|
+
"${t}", "${e}", ${xe}
|
|
4759
4762
|
)`;
|
|
4760
|
-
function
|
|
4763
|
+
function it(e) {
|
|
4761
4764
|
return Math.round(e * 1e3) / 1e3;
|
|
4762
4765
|
}
|
|
4763
|
-
const
|
|
4766
|
+
const Ki = (e, t, n = !0) => {
|
|
4764
4767
|
if (!(e instanceof HTMLElement))
|
|
4765
4768
|
return null;
|
|
4766
4769
|
let o = n ? e : e.parentElement;
|
|
@@ -4771,35 +4774,35 @@ const ji = (e, t, n = !0) => {
|
|
|
4771
4774
|
return o;
|
|
4772
4775
|
} while (o = o.parentElement);
|
|
4773
4776
|
return null;
|
|
4774
|
-
},
|
|
4777
|
+
}, Gi = (e) => Ki(e, (t) => {
|
|
4775
4778
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4776
4779
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4777
|
-
}),
|
|
4780
|
+
}), st = ({
|
|
4778
4781
|
event: e,
|
|
4779
4782
|
target: t
|
|
4780
4783
|
}) => {
|
|
4781
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
4784
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = it(o / n.width), s = it(r / n.height);
|
|
4782
4785
|
return {
|
|
4783
4786
|
x: i,
|
|
4784
4787
|
y: s
|
|
4785
4788
|
};
|
|
4786
|
-
},
|
|
4787
|
-
const t = e.target, n = t &&
|
|
4789
|
+
}, Ji = (e) => {
|
|
4790
|
+
const t = e.target, n = t && Gi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4788
4791
|
return {
|
|
4789
4792
|
targetBuilderElement: o || void 0,
|
|
4790
4793
|
metadata: {
|
|
4791
|
-
targetOffset: t ?
|
|
4794
|
+
targetOffset: t ? st({
|
|
4792
4795
|
event: e,
|
|
4793
4796
|
target: t
|
|
4794
4797
|
}) : void 0,
|
|
4795
|
-
builderTargetOffset: n ?
|
|
4798
|
+
builderTargetOffset: n ? st({
|
|
4796
4799
|
event: e,
|
|
4797
4800
|
target: n
|
|
4798
4801
|
}) : void 0,
|
|
4799
4802
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4800
4803
|
}
|
|
4801
4804
|
};
|
|
4802
|
-
},
|
|
4805
|
+
}, _i = ["svelte", "qwik", "vue"], Qi = () => _i.includes($) && (A() || me()), Yi = (e) => {
|
|
4803
4806
|
var i;
|
|
4804
4807
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
4805
4808
|
let r = "";
|
|
@@ -4825,15 +4828,15 @@ font-weight: ${s};
|
|
|
4825
4828
|
`.trim());
|
|
4826
4829
|
}
|
|
4827
4830
|
return r;
|
|
4828
|
-
},
|
|
4831
|
+
}, Xi = ({
|
|
4829
4832
|
customFonts: e
|
|
4830
4833
|
}) => {
|
|
4831
4834
|
var t;
|
|
4832
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4833
|
-
},
|
|
4835
|
+
return ((t = e == null ? void 0 : e.map((n) => Yi(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4836
|
+
}, Zi = ({
|
|
4834
4837
|
cssCode: e,
|
|
4835
4838
|
contentId: t
|
|
4836
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4839
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", es = `
|
|
4837
4840
|
:where(.builder-button) {
|
|
4838
4841
|
all: unset;
|
|
4839
4842
|
}
|
|
@@ -4850,7 +4853,7 @@ font-weight: ${s};
|
|
|
4850
4853
|
text-align: inherit;
|
|
4851
4854
|
font-family: inherit;
|
|
4852
4855
|
}
|
|
4853
|
-
`,
|
|
4856
|
+
`, ts = (e) => e ? "" : es, ns = (e) => `variant-${e}`, os = y({
|
|
4854
4857
|
name: "enable-editor",
|
|
4855
4858
|
components: { DynamicDiv: ne },
|
|
4856
4859
|
props: [
|
|
@@ -4882,15 +4885,15 @@ font-weight: ${s};
|
|
|
4882
4885
|
httpReqsData: {},
|
|
4883
4886
|
httpReqsPending: {},
|
|
4884
4887
|
clicked: !1,
|
|
4885
|
-
builderContext:
|
|
4886
|
-
needsElementRefDivForEditing:
|
|
4887
|
-
getWrapperClassName:
|
|
4888
|
+
builderContext: ke,
|
|
4889
|
+
needsElementRefDivForEditing: Qi,
|
|
4890
|
+
getWrapperClassName: ns
|
|
4888
4891
|
};
|
|
4889
4892
|
},
|
|
4890
4893
|
provide() {
|
|
4891
4894
|
const e = this;
|
|
4892
4895
|
return {
|
|
4893
|
-
[
|
|
4896
|
+
[ke.key]: e.builderContextSignal
|
|
4894
4897
|
};
|
|
4895
4898
|
},
|
|
4896
4899
|
created() {
|
|
@@ -4902,13 +4905,13 @@ font-weight: ${s};
|
|
|
4902
4905
|
A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4903
4906
|
new CustomEvent("initeditingbldr")
|
|
4904
4907
|
);
|
|
4905
|
-
const o = this.builderContextSignal.content && G(this.canTrack), r =
|
|
4908
|
+
const o = this.builderContextSignal.content && G(this.canTrack), r = Pe({
|
|
4906
4909
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
4907
4910
|
canTrack: !0
|
|
4908
4911
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
4909
4912
|
if (o && i === r) {
|
|
4910
4913
|
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, a = this.apiKey;
|
|
4911
|
-
|
|
4914
|
+
Le({
|
|
4912
4915
|
apiHost: this.apiHost,
|
|
4913
4916
|
type: "impression",
|
|
4914
4917
|
canTrack: !0,
|
|
@@ -5019,7 +5022,7 @@ font-weight: ${s};
|
|
|
5019
5022
|
this.builderContextSignal.content = n;
|
|
5020
5023
|
},
|
|
5021
5024
|
processMessage(e) {
|
|
5022
|
-
return
|
|
5025
|
+
return vt({
|
|
5023
5026
|
model: this.model,
|
|
5024
5027
|
trustedHosts: this.trustedHosts,
|
|
5025
5028
|
callbacks: {
|
|
@@ -5033,7 +5036,7 @@ font-weight: ${s};
|
|
|
5033
5036
|
});
|
|
5034
5037
|
},
|
|
5035
5038
|
animation: (t) => {
|
|
5036
|
-
|
|
5039
|
+
Et(t);
|
|
5037
5040
|
},
|
|
5038
5041
|
contentUpdate: (t, n) => {
|
|
5039
5042
|
this.mergeNewContent(t, n);
|
|
@@ -5048,14 +5051,14 @@ font-weight: ${s};
|
|
|
5048
5051
|
var t, n;
|
|
5049
5052
|
if (this.builderContextSignal.content) {
|
|
5050
5053
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
5051
|
-
|
|
5054
|
+
Le({
|
|
5052
5055
|
apiHost: this.apiHost,
|
|
5053
5056
|
type: "click",
|
|
5054
5057
|
canTrack: G(this.canTrack),
|
|
5055
5058
|
contentId: r,
|
|
5056
5059
|
apiKey: this.apiKey,
|
|
5057
5060
|
variationId: o !== r ? o : void 0,
|
|
5058
|
-
...
|
|
5061
|
+
...Ji(e),
|
|
5059
5062
|
unique: !this.clicked
|
|
5060
5063
|
});
|
|
5061
5064
|
}
|
|
@@ -5078,7 +5081,7 @@ font-weight: ${s};
|
|
|
5078
5081
|
(p, b) => String(
|
|
5079
5082
|
te({
|
|
5080
5083
|
code: b,
|
|
5081
|
-
context: this.context
|
|
5084
|
+
context: this.builderContextSignal.context,
|
|
5082
5085
|
localState: void 0,
|
|
5083
5086
|
rootState: this.builderContextSignal.rootState,
|
|
5084
5087
|
rootSetState: this.builderContextSignal.rootSetState
|
|
@@ -5093,7 +5096,7 @@ font-weight: ${s};
|
|
|
5093
5096
|
url: a,
|
|
5094
5097
|
method: "GET"
|
|
5095
5098
|
};
|
|
5096
|
-
|
|
5099
|
+
mt(JSON.stringify(l));
|
|
5097
5100
|
const d = {
|
|
5098
5101
|
method: l.method,
|
|
5099
5102
|
headers: l.headers,
|
|
@@ -5121,7 +5124,7 @@ font-weight: ${s};
|
|
|
5121
5124
|
"builder:component:stateChange",
|
|
5122
5125
|
{
|
|
5123
5126
|
detail: {
|
|
5124
|
-
state:
|
|
5127
|
+
state: Xt(this.builderContextSignal.rootState),
|
|
5125
5128
|
ref: {
|
|
5126
5129
|
name: this.model
|
|
5127
5130
|
}
|
|
@@ -5131,7 +5134,7 @@ font-weight: ${s};
|
|
|
5131
5134
|
);
|
|
5132
5135
|
},
|
|
5133
5136
|
elementRef_onIniteditingbldr(e) {
|
|
5134
|
-
window.addEventListener("message", this.processMessage),
|
|
5137
|
+
window.addEventListener("message", this.processMessage), kt({
|
|
5135
5138
|
...this.locale ? {
|
|
5136
5139
|
locale: this.locale
|
|
5137
5140
|
} : {},
|
|
@@ -5151,7 +5154,7 @@ font-weight: ${s};
|
|
|
5151
5154
|
).forEach((t) => {
|
|
5152
5155
|
var n, o;
|
|
5153
5156
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
5154
|
-
const r =
|
|
5157
|
+
const r = $n(t);
|
|
5155
5158
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
5156
5159
|
}
|
|
5157
5160
|
}), window.addEventListener(
|
|
@@ -5164,7 +5167,7 @@ font-weight: ${s};
|
|
|
5164
5167
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5165
5168
|
`builder.overrides.${n}`
|
|
5166
5169
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5167
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5170
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Oe({
|
|
5168
5171
|
model: this.model,
|
|
5169
5172
|
apiKey: this.apiKey,
|
|
5170
5173
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5179,9 +5182,9 @@ font-weight: ${s};
|
|
|
5179
5182
|
}
|
|
5180
5183
|
}
|
|
5181
5184
|
});
|
|
5182
|
-
function
|
|
5185
|
+
function rs(e, t, n, o, r, i) {
|
|
5183
5186
|
var s, a, l;
|
|
5184
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (u(),
|
|
5187
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (u(), S(X(e.ContentWrapper), w({
|
|
5185
5188
|
key: 0,
|
|
5186
5189
|
ref: "elementRef",
|
|
5187
5190
|
onClick: (d) => e.onClick(d),
|
|
@@ -5194,40 +5197,40 @@ function ts(e, t, n, o, r, i) {
|
|
|
5194
5197
|
onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
|
|
5195
5198
|
onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
|
|
5196
5199
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
5197
|
-
default:
|
|
5198
|
-
|
|
5200
|
+
default: W(() => [
|
|
5201
|
+
B(e.$slots, "default")
|
|
5199
5202
|
]),
|
|
5200
5203
|
_: 3
|
|
5201
|
-
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) :
|
|
5204
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : k("", !0);
|
|
5202
5205
|
}
|
|
5203
|
-
const
|
|
5206
|
+
const is = /* @__PURE__ */ v(os, [["render", rs]]), ss = y({
|
|
5204
5207
|
name: "content-styles",
|
|
5205
5208
|
components: { InlinedStyles: he },
|
|
5206
5209
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5207
5210
|
data() {
|
|
5208
5211
|
return {
|
|
5209
5212
|
injectedStyles: `
|
|
5210
|
-
${
|
|
5213
|
+
${Zi({
|
|
5211
5214
|
cssCode: this.cssCode,
|
|
5212
5215
|
contentId: this.contentId
|
|
5213
5216
|
})}
|
|
5214
|
-
${
|
|
5217
|
+
${Xi({
|
|
5215
5218
|
customFonts: this.customFonts
|
|
5216
5219
|
})}
|
|
5217
|
-
${
|
|
5220
|
+
${ts(this.isNestedRender)}
|
|
5218
5221
|
`.trim()
|
|
5219
5222
|
};
|
|
5220
5223
|
}
|
|
5221
5224
|
});
|
|
5222
|
-
function
|
|
5223
|
-
const s =
|
|
5224
|
-
return u(),
|
|
5225
|
+
function as(e, t, n, o, r, i) {
|
|
5226
|
+
const s = C("InlinedStyles");
|
|
5227
|
+
return u(), S(s, {
|
|
5225
5228
|
id: "builderio-content",
|
|
5226
5229
|
styles: e.injectedStyles,
|
|
5227
5230
|
nonce: e.nonce
|
|
5228
5231
|
}, null, 8, ["styles", "nonce"]);
|
|
5229
5232
|
}
|
|
5230
|
-
const
|
|
5233
|
+
const ls = /* @__PURE__ */ v(ss, [["render", as]]), ue = (e, t = /* @__PURE__ */ new WeakMap()) => {
|
|
5231
5234
|
if (e === null || typeof e != "object")
|
|
5232
5235
|
return e;
|
|
5233
5236
|
if (t.has(e))
|
|
@@ -5254,31 +5257,31 @@ const is = /* @__PURE__ */ S(os, [["render", rs]]), ue = (e, t = /* @__PURE__ */
|
|
|
5254
5257
|
}) : o[r] = i;
|
|
5255
5258
|
}
|
|
5256
5259
|
return o;
|
|
5257
|
-
},
|
|
5258
|
-
const t =
|
|
5260
|
+
}, at = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), Ut = (e) => {
|
|
5261
|
+
const t = at.get(e);
|
|
5259
5262
|
if (t)
|
|
5260
5263
|
return t;
|
|
5261
5264
|
const {
|
|
5262
5265
|
component: n,
|
|
5263
5266
|
...o
|
|
5264
|
-
} = e, r =
|
|
5265
|
-
return
|
|
5266
|
-
},
|
|
5267
|
+
} = e, r = Be(o);
|
|
5268
|
+
return at.set(e, r), r;
|
|
5269
|
+
}, cs = (e, t) => {
|
|
5267
5270
|
const n = {};
|
|
5268
5271
|
for (const o of e) {
|
|
5269
|
-
let r =
|
|
5272
|
+
let r = lt.get(o);
|
|
5270
5273
|
r || (r = {
|
|
5271
5274
|
component: t(o.component),
|
|
5272
|
-
...
|
|
5273
|
-
},
|
|
5275
|
+
...Ut(o)
|
|
5276
|
+
}, lt.set(o, r)), n[o.name] = r;
|
|
5274
5277
|
}
|
|
5275
5278
|
return n;
|
|
5276
|
-
},
|
|
5279
|
+
}, ds = (e) => {
|
|
5277
5280
|
const t = {};
|
|
5278
5281
|
for (const n of e)
|
|
5279
|
-
t[n.name] =
|
|
5282
|
+
t[n.name] = Ut(n);
|
|
5280
5283
|
return t;
|
|
5281
|
-
},
|
|
5284
|
+
}, us = ({
|
|
5282
5285
|
content: e,
|
|
5283
5286
|
data: t,
|
|
5284
5287
|
locale: n
|
|
@@ -5295,7 +5298,7 @@ const is = /* @__PURE__ */ S(os, [["render", rs]]), ue = (e, t = /* @__PURE__ */
|
|
|
5295
5298
|
locale: n
|
|
5296
5299
|
} : {}
|
|
5297
5300
|
};
|
|
5298
|
-
},
|
|
5301
|
+
}, ps = ({
|
|
5299
5302
|
content: e,
|
|
5300
5303
|
data: t
|
|
5301
5304
|
}) => e ? {
|
|
@@ -5305,12 +5308,12 @@ const is = /* @__PURE__ */ S(os, [["render", rs]]), ue = (e, t = /* @__PURE__ */
|
|
|
5305
5308
|
...t
|
|
5306
5309
|
},
|
|
5307
5310
|
meta: e == null ? void 0 : e.meta
|
|
5308
|
-
} : void 0,
|
|
5311
|
+
} : void 0, ms = Ft, hs = y({
|
|
5309
5312
|
name: "content-component",
|
|
5310
5313
|
components: {
|
|
5311
|
-
EnableEditor:
|
|
5312
|
-
InlinedScript:
|
|
5313
|
-
ContentStyles:
|
|
5314
|
+
EnableEditor: is,
|
|
5315
|
+
InlinedScript: fe,
|
|
5316
|
+
ContentStyles: ls,
|
|
5314
5317
|
Blocks: z,
|
|
5315
5318
|
DynamicDiv: ne
|
|
5316
5319
|
},
|
|
@@ -5319,8 +5322,8 @@ const is = /* @__PURE__ */ S(os, [["render", rs]]), ue = (e, t = /* @__PURE__ */
|
|
|
5319
5322
|
"data",
|
|
5320
5323
|
"locale",
|
|
5321
5324
|
"apiKey",
|
|
5322
|
-
"context",
|
|
5323
5325
|
"customComponents",
|
|
5326
|
+
"context",
|
|
5324
5327
|
"canTrack",
|
|
5325
5328
|
"apiVersion",
|
|
5326
5329
|
"blocksWrapper",
|
|
@@ -5341,23 +5344,27 @@ const is = /* @__PURE__ */ S(os, [["render", rs]]), ue = (e, t = /* @__PURE__ */
|
|
|
5341
5344
|
data() {
|
|
5342
5345
|
var e, t;
|
|
5343
5346
|
return {
|
|
5344
|
-
scriptStr:
|
|
5347
|
+
scriptStr: qi({
|
|
5345
5348
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5346
5349
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5347
5350
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5348
5351
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5349
5352
|
}),
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
+
jsCodeRun: {
|
|
5354
|
+
done: !1,
|
|
5355
|
+
rootState: null
|
|
5356
|
+
},
|
|
5357
|
+
registeredComponents: cs(
|
|
5358
|
+
[...rt(), ...this.customComponents || []],
|
|
5359
|
+
(n) => ms(n)
|
|
5353
5360
|
),
|
|
5354
5361
|
builderContextSignal: {
|
|
5355
|
-
content:
|
|
5362
|
+
content: ps({
|
|
5356
5363
|
content: this.content,
|
|
5357
5364
|
data: this.data
|
|
5358
5365
|
}),
|
|
5359
5366
|
localState: void 0,
|
|
5360
|
-
rootState:
|
|
5367
|
+
rootState: us({
|
|
5361
5368
|
content: this.content,
|
|
5362
5369
|
data: this.data,
|
|
5363
5370
|
locale: this.locale
|
|
@@ -5367,8 +5374,8 @@ const is = /* @__PURE__ */ S(os, [["render", rs]]), ue = (e, t = /* @__PURE__ */
|
|
|
5367
5374
|
canTrack: this.canTrack,
|
|
5368
5375
|
apiKey: this.apiKey,
|
|
5369
5376
|
apiVersion: this.apiVersion,
|
|
5370
|
-
componentInfos:
|
|
5371
|
-
...
|
|
5377
|
+
componentInfos: ds([
|
|
5378
|
+
...rt(),
|
|
5372
5379
|
...this.customComponents || []
|
|
5373
5380
|
]),
|
|
5374
5381
|
inheritedStyles: {},
|
|
@@ -5377,13 +5384,13 @@ const is = /* @__PURE__ */ S(os, [["render", rs]]), ue = (e, t = /* @__PURE__ */
|
|
|
5377
5384
|
nonce: this.nonce || "",
|
|
5378
5385
|
model: this.model
|
|
5379
5386
|
},
|
|
5380
|
-
TARGET:
|
|
5387
|
+
TARGET: $
|
|
5381
5388
|
};
|
|
5382
5389
|
},
|
|
5383
5390
|
provide() {
|
|
5384
5391
|
const e = this;
|
|
5385
5392
|
return {
|
|
5386
|
-
[
|
|
5393
|
+
[ht.key]: {
|
|
5387
5394
|
registeredComponents: e.registeredComponents
|
|
5388
5395
|
}
|
|
5389
5396
|
};
|
|
@@ -5394,16 +5401,16 @@ const is = /* @__PURE__ */ S(os, [["render", rs]]), ue = (e, t = /* @__PURE__ */
|
|
|
5394
5401
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
5395
5402
|
);
|
|
5396
5403
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
5397
|
-
e && te({
|
|
5404
|
+
e && (this.jsCodeRun.rootState = this.builderContextSignal.rootState, te({
|
|
5398
5405
|
code: e,
|
|
5399
|
-
context: this.context
|
|
5406
|
+
context: this.builderContextSignal.context,
|
|
5400
5407
|
localState: void 0,
|
|
5401
5408
|
rootState: this.builderContextSignal.rootState,
|
|
5402
5409
|
rootSetState: (o) => {
|
|
5403
5410
|
this.builderContextSignal.rootState = o;
|
|
5404
5411
|
},
|
|
5405
5412
|
isExpression: !1
|
|
5406
|
-
});
|
|
5413
|
+
}), this.jsCodeRun.done = !0);
|
|
5407
5414
|
},
|
|
5408
5415
|
watch: {
|
|
5409
5416
|
onUpdateHook0: {
|
|
@@ -5423,13 +5430,13 @@ const is = /* @__PURE__ */ S(os, [["render", rs]]), ue = (e, t = /* @__PURE__ */
|
|
|
5423
5430
|
},
|
|
5424
5431
|
methods: {
|
|
5425
5432
|
contentSetState(e) {
|
|
5426
|
-
this.builderContextSignal.rootState = e;
|
|
5433
|
+
this.jsCodeRun.rootState = e, this.builderContextSignal.rootState = e;
|
|
5427
5434
|
}
|
|
5428
5435
|
}
|
|
5429
5436
|
});
|
|
5430
|
-
function
|
|
5431
|
-
const s =
|
|
5432
|
-
return u(),
|
|
5437
|
+
function fs(e, t, n, o, r, i) {
|
|
5438
|
+
const s = C("InlinedScript"), a = C("ContentStyles"), l = C("Blocks"), d = C("EnableEditor");
|
|
5439
|
+
return u(), S(d, w({
|
|
5433
5440
|
apiHost: e.apiHost,
|
|
5434
5441
|
nonce: e.nonce,
|
|
5435
5442
|
content: e.content,
|
|
@@ -5448,24 +5455,24 @@ function ps(e, t, n, o, r, i) {
|
|
|
5448
5455
|
trustedHosts: e.trustedHosts,
|
|
5449
5456
|
isNestedRender: e.isNestedRender
|
|
5450
5457
|
}, {}), {
|
|
5451
|
-
default:
|
|
5458
|
+
default: W(() => {
|
|
5452
5459
|
var p, b, c, m, f, g, P;
|
|
5453
5460
|
return [
|
|
5454
|
-
e.isSsrAbTest ? (u(),
|
|
5461
|
+
e.isSsrAbTest ? (u(), S(s, {
|
|
5455
5462
|
key: 0,
|
|
5456
5463
|
id: "builderio-variant-visibility",
|
|
5457
5464
|
scriptStr: e.scriptStr,
|
|
5458
5465
|
nonce: e.nonce || ""
|
|
5459
|
-
}, null, 8, ["scriptStr", "nonce"])) :
|
|
5460
|
-
e.TARGET !== "reactNative" ? (u(),
|
|
5466
|
+
}, null, 8, ["scriptStr", "nonce"])) : k("", !0),
|
|
5467
|
+
e.TARGET !== "reactNative" ? (u(), S(a, {
|
|
5461
5468
|
key: 1,
|
|
5462
5469
|
nonce: e.nonce || "",
|
|
5463
5470
|
isNestedRender: e.isNestedRender,
|
|
5464
5471
|
contentId: (p = e.builderContextSignal.content) == null ? void 0 : p.id,
|
|
5465
5472
|
cssCode: (c = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : c.cssCode,
|
|
5466
5473
|
customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
|
|
5467
|
-
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) :
|
|
5468
|
-
|
|
5474
|
+
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : k("", !0),
|
|
5475
|
+
E(l, {
|
|
5469
5476
|
blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
|
|
5470
5477
|
context: e.builderContextSignal,
|
|
5471
5478
|
registeredComponents: e.registeredComponents,
|
|
@@ -5476,16 +5483,17 @@ function ps(e, t, n, o, r, i) {
|
|
|
5476
5483
|
_: 1
|
|
5477
5484
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5478
5485
|
}
|
|
5479
|
-
const
|
|
5486
|
+
const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = y({
|
|
5480
5487
|
name: "content-variants",
|
|
5481
5488
|
components: {
|
|
5482
|
-
InlinedScript:
|
|
5489
|
+
InlinedScript: fe,
|
|
5483
5490
|
InlinedStyles: he,
|
|
5484
|
-
ContentComponent:
|
|
5491
|
+
ContentComponent: bs
|
|
5485
5492
|
},
|
|
5486
5493
|
props: [
|
|
5487
5494
|
"canTrack",
|
|
5488
5495
|
"content",
|
|
5496
|
+
"isContentInlinedInParent",
|
|
5489
5497
|
"nonce",
|
|
5490
5498
|
"apiHost",
|
|
5491
5499
|
"isNestedRender",
|
|
@@ -5507,24 +5515,27 @@ const ms = /* @__PURE__ */ S(us, [["render", ps]]), hs = y({
|
|
|
5507
5515
|
],
|
|
5508
5516
|
data() {
|
|
5509
5517
|
return {
|
|
5510
|
-
shouldRenderVariants:
|
|
5518
|
+
shouldRenderVariants: Mi({
|
|
5511
5519
|
canTrack: G(this.canTrack),
|
|
5512
5520
|
content: this.content
|
|
5513
5521
|
}),
|
|
5514
|
-
shouldEmitPersonalizationFns:
|
|
5515
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
5516
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5517
|
-
TARGET:
|
|
5518
|
-
getInitVariantsFnsScriptString:
|
|
5522
|
+
shouldEmitPersonalizationFns: !this.isContentInlinedInParent && nr(this.content),
|
|
5523
|
+
SDKS_SUPPORTING_PERSONALIZATION: De,
|
|
5524
|
+
getInitPersonalizationVariantsFnsScriptString: Ot,
|
|
5525
|
+
TARGET: $,
|
|
5526
|
+
getInitVariantsFnsScriptString: Dt,
|
|
5519
5527
|
getVariants: le
|
|
5520
5528
|
};
|
|
5521
5529
|
},
|
|
5530
|
+
inject: {
|
|
5531
|
+
scriptsContext: $e.key
|
|
5532
|
+
},
|
|
5522
5533
|
mounted() {
|
|
5523
5534
|
},
|
|
5524
5535
|
computed: {
|
|
5525
5536
|
updateCookieAndStylesScriptStr() {
|
|
5526
5537
|
var e;
|
|
5527
|
-
return
|
|
5538
|
+
return zi(
|
|
5528
5539
|
le(this.content).map((t) => ({
|
|
5529
5540
|
id: t.testVariationId,
|
|
5530
5541
|
testRatio: t.testRatio
|
|
@@ -5540,46 +5551,48 @@ const ms = /* @__PURE__ */ S(us, [["render", ps]]), hs = y({
|
|
|
5540
5551
|
return this.shouldRenderVariants ? {
|
|
5541
5552
|
...this.content,
|
|
5542
5553
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5543
|
-
} :
|
|
5554
|
+
} : Dn({
|
|
5544
5555
|
item: this.content,
|
|
5545
5556
|
canTrack: G(this.canTrack)
|
|
5546
5557
|
});
|
|
5547
5558
|
}
|
|
5548
5559
|
}
|
|
5549
5560
|
});
|
|
5550
|
-
function
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5561
|
+
function ys(e, t, n, o, r, i) {
|
|
5562
|
+
var d, p;
|
|
5563
|
+
const s = C("InlinedScript"), a = C("InlinedStyles"), l = C("ContentComponent");
|
|
5564
|
+
return u(), h(I, null, [
|
|
5565
|
+
e.shouldEmitPersonalizationFns && !((d = e.scriptsContext) != null && d.scriptsEmitted) ? (u(), h(I, { key: 0 }, [
|
|
5566
|
+
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (u(), S(s, {
|
|
5555
5567
|
key: 0,
|
|
5556
5568
|
id: "builderio-init-personalization-variants-fns",
|
|
5557
5569
|
nonce: e.nonce || "",
|
|
5558
5570
|
scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
|
|
5559
|
-
}, null, 8, ["nonce", "scriptStr"])) :
|
|
5560
|
-
], 64)) :
|
|
5561
|
-
e.shouldRenderVariants ? (u(), h(
|
|
5562
|
-
|
|
5571
|
+
}, null, 8, ["nonce", "scriptStr"])) : k("", !0)
|
|
5572
|
+
], 64)) : k("", !0),
|
|
5573
|
+
e.shouldRenderVariants ? (u(), h(I, { key: 1 }, [
|
|
5574
|
+
(p = e.scriptsContext) != null && p.scriptsEmitted ? k("", !0) : (u(), S(s, {
|
|
5575
|
+
key: 0,
|
|
5563
5576
|
id: "builderio-init-variants-fns",
|
|
5564
5577
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
5565
5578
|
nonce: e.nonce || ""
|
|
5566
|
-
}, null, 8, ["scriptStr", "nonce"]),
|
|
5567
|
-
|
|
5579
|
+
}, null, 8, ["scriptStr", "nonce"])),
|
|
5580
|
+
E(a, {
|
|
5568
5581
|
id: "builderio-variants",
|
|
5569
5582
|
styles: e.hideVariantsStyleString,
|
|
5570
5583
|
nonce: e.nonce || ""
|
|
5571
5584
|
}, null, 8, ["styles", "nonce"]),
|
|
5572
|
-
|
|
5585
|
+
E(s, {
|
|
5573
5586
|
id: "builderio-variants-visibility",
|
|
5574
5587
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5575
5588
|
nonce: e.nonce || ""
|
|
5576
5589
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5577
|
-
(u(!0), h(
|
|
5578
|
-
key:
|
|
5590
|
+
(u(!0), h(I, null, x(e.getVariants(e.content), (b, c) => (u(), S(l, w({
|
|
5591
|
+
key: b.testVariationId,
|
|
5579
5592
|
apiHost: e.apiHost,
|
|
5580
5593
|
isNestedRender: e.isNestedRender,
|
|
5581
5594
|
nonce: e.nonce,
|
|
5582
|
-
content:
|
|
5595
|
+
content: b,
|
|
5583
5596
|
showContent: !1,
|
|
5584
5597
|
model: e.model,
|
|
5585
5598
|
data: e.data,
|
|
@@ -5599,8 +5612,8 @@ function fs(e, t, n, o, r, i) {
|
|
|
5599
5612
|
contentWrapperProps: e.contentWrapperProps,
|
|
5600
5613
|
trustedHosts: e.trustedHosts
|
|
5601
5614
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
5602
|
-
], 64)) :
|
|
5603
|
-
|
|
5615
|
+
], 64)) : k("", !0),
|
|
5616
|
+
E(l, w({
|
|
5604
5617
|
apiHost: e.apiHost,
|
|
5605
5618
|
nonce: e.nonce,
|
|
5606
5619
|
isNestedRender: e.isNestedRender,
|
|
@@ -5628,13 +5641,16 @@ function fs(e, t, n, o, r, i) {
|
|
|
5628
5641
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5629
5642
|
], 64);
|
|
5630
5643
|
}
|
|
5631
|
-
const
|
|
5644
|
+
const Ss = /* @__PURE__ */ v(gs, [["render", ys]]), ks = (e) => {
|
|
5645
|
+
const t = e.startsWith("component.") ? e.slice(10) : e;
|
|
5646
|
+
return t === "options.symbol" || t === "options.symbol.content" || t.startsWith("options.symbol.content.");
|
|
5647
|
+
}, vs = (e, t) => !!(e != null && e.content) && !Object.keys(t || {}).some(ks), Cs = async ({
|
|
5632
5648
|
builderContextValue: e,
|
|
5633
5649
|
symbol: t
|
|
5634
5650
|
}) => {
|
|
5635
5651
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5636
5652
|
(e != null && e.apiKey))
|
|
5637
|
-
return
|
|
5653
|
+
return Oe({
|
|
5638
5654
|
model: t.model,
|
|
5639
5655
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5640
5656
|
apiVersion: e.apiVersion,
|
|
@@ -5646,9 +5662,9 @@ const bs = /* @__PURE__ */ S(hs, [["render", fs]]), gs = async ({
|
|
|
5646
5662
|
}).catch((n) => {
|
|
5647
5663
|
F.error("Could not fetch symbol content: ", n);
|
|
5648
5664
|
});
|
|
5649
|
-
},
|
|
5665
|
+
}, Ts = y({
|
|
5650
5666
|
name: "builder-symbol",
|
|
5651
|
-
components: { ContentVariants:
|
|
5667
|
+
components: { ContentVariants: Ss, DynamicDiv: ne },
|
|
5652
5668
|
props: [
|
|
5653
5669
|
"symbol",
|
|
5654
5670
|
"builderComponents",
|
|
@@ -5663,7 +5679,8 @@ const bs = /* @__PURE__ */ S(hs, [["render", fs]]), gs = async ({
|
|
|
5663
5679
|
return {
|
|
5664
5680
|
contentToUse: (e = this.symbol) == null ? void 0 : e.content,
|
|
5665
5681
|
symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
|
|
5666
|
-
filterAttrs: N
|
|
5682
|
+
filterAttrs: N,
|
|
5683
|
+
isSymbolContentInlinedInParent: vs
|
|
5667
5684
|
};
|
|
5668
5685
|
},
|
|
5669
5686
|
mounted() {
|
|
@@ -5705,7 +5722,7 @@ const bs = /* @__PURE__ */ S(hs, [["render", fs]]), gs = async ({
|
|
|
5705
5722
|
methods: {
|
|
5706
5723
|
setContent() {
|
|
5707
5724
|
var e;
|
|
5708
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
5725
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Cs({
|
|
5709
5726
|
symbol: this.symbol,
|
|
5710
5727
|
builderContextValue: this.builderContext
|
|
5711
5728
|
}).then((t) => {
|
|
@@ -5715,72 +5732,119 @@ const bs = /* @__PURE__ */ S(hs, [["render", fs]]), gs = async ({
|
|
|
5715
5732
|
}
|
|
5716
5733
|
}
|
|
5717
5734
|
});
|
|
5718
|
-
function
|
|
5719
|
-
var a, l, d, p, b, c, m;
|
|
5720
|
-
const s =
|
|
5721
|
-
return u(), h("div",
|
|
5722
|
-
|
|
5735
|
+
function Is(e, t, n, o, r, i) {
|
|
5736
|
+
var a, l, d, p, b, c, m, f;
|
|
5737
|
+
const s = C("ContentVariants");
|
|
5738
|
+
return u(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5739
|
+
E(s, {
|
|
5723
5740
|
nonce: e.builderContext.nonce,
|
|
5724
5741
|
isNestedRender: !0,
|
|
5742
|
+
isContentInlinedInParent: e.isSymbolContentInlinedInParent(e.symbol, (a = e.builderBlock) == null ? void 0 : a.bindings),
|
|
5725
5743
|
apiVersion: e.builderContext.apiVersion,
|
|
5726
|
-
apiKey: (
|
|
5744
|
+
apiKey: (l = e.symbol) != null && l.global && ((d = e.symbol) != null && d.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
|
|
5727
5745
|
context: {
|
|
5728
5746
|
...e.builderContext.context,
|
|
5729
|
-
symbolId: (
|
|
5747
|
+
symbolId: (p = e.builderBlock) == null ? void 0 : p.id
|
|
5730
5748
|
},
|
|
5731
5749
|
customComponents: e.customComponents,
|
|
5732
5750
|
data: {
|
|
5733
|
-
...(
|
|
5751
|
+
...(b = e.symbol) == null ? void 0 : b.data,
|
|
5734
5752
|
...e.builderContext.localState,
|
|
5735
|
-
...(
|
|
5753
|
+
...(m = (c = e.contentToUse) == null ? void 0 : c.data) == null ? void 0 : m.state
|
|
5736
5754
|
},
|
|
5737
5755
|
canTrack: e.builderContext.canTrack,
|
|
5738
|
-
model: ((
|
|
5756
|
+
model: ((f = e.symbol) == null ? void 0 : f.model) ?? "",
|
|
5739
5757
|
content: e.contentToUse,
|
|
5740
5758
|
linkComponent: e.builderLinkComponent,
|
|
5741
5759
|
blocksWrapper: e.blocksWrapper,
|
|
5742
5760
|
contentWrapper: e.contentWrapper
|
|
5743
|
-
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5761
|
+
}, null, 8, ["nonce", "isContentInlinedInParent", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5744
5762
|
], 16);
|
|
5745
5763
|
}
|
|
5746
|
-
const
|
|
5764
|
+
const ws = /* @__PURE__ */ v(Ts, [["render", Is]]), $s = y({
|
|
5765
|
+
name: "builder-scripts",
|
|
5766
|
+
components: { InlinedScript: fe },
|
|
5767
|
+
props: ["nonce"],
|
|
5768
|
+
data() {
|
|
5769
|
+
return {
|
|
5770
|
+
isSupported: Li.includes($),
|
|
5771
|
+
shouldRenderAbTestFns: $ !== "react",
|
|
5772
|
+
getInitPersonalizationVariantsFnsScriptString: Ot,
|
|
5773
|
+
SDKS_SUPPORTING_PERSONALIZATION: De,
|
|
5774
|
+
TARGET: $,
|
|
5775
|
+
getInitVariantsFnsScriptString: Dt
|
|
5776
|
+
};
|
|
5777
|
+
},
|
|
5778
|
+
provide() {
|
|
5779
|
+
const e = this;
|
|
5780
|
+
return {
|
|
5781
|
+
[$e.key]: { scriptsEmitted: e.isSupported }
|
|
5782
|
+
};
|
|
5783
|
+
},
|
|
5784
|
+
inject: {
|
|
5785
|
+
parentScriptsContext: $e.key
|
|
5786
|
+
}
|
|
5787
|
+
});
|
|
5788
|
+
function Rs(e, t, n, o, r, i) {
|
|
5789
|
+
var a;
|
|
5790
|
+
const s = C("InlinedScript");
|
|
5791
|
+
return u(), h(I, null, [
|
|
5792
|
+
e.isSupported && !((a = e.parentScriptsContext) != null && a.scriptsEmitted) ? (u(), h(I, { key: 0 }, [
|
|
5793
|
+
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (u(), S(s, {
|
|
5794
|
+
key: 0,
|
|
5795
|
+
id: "builderio-init-personalization-variants-fns",
|
|
5796
|
+
nonce: e.nonce || "",
|
|
5797
|
+
scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
|
|
5798
|
+
}, null, 8, ["nonce", "scriptStr"])) : k("", !0),
|
|
5799
|
+
e.shouldRenderAbTestFns ? (u(), S(s, {
|
|
5800
|
+
key: 1,
|
|
5801
|
+
id: "builderio-init-variants-fns",
|
|
5802
|
+
nonce: e.nonce || "",
|
|
5803
|
+
scriptStr: e.getInitVariantsFnsScriptString()
|
|
5804
|
+
}, null, 8, ["nonce", "scriptStr"])) : k("", !0)
|
|
5805
|
+
], 64)) : k("", !0),
|
|
5806
|
+
B(e.$slots, "default")
|
|
5807
|
+
], 64);
|
|
5808
|
+
}
|
|
5809
|
+
const Hs = /* @__PURE__ */ v($s, [["render", Rs]]);
|
|
5747
5810
|
export {
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
zo as
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5811
|
+
Yn as A,
|
|
5812
|
+
Vt as B,
|
|
5813
|
+
No as C,
|
|
5814
|
+
Xn as D,
|
|
5815
|
+
Oe as E,
|
|
5816
|
+
Do as F,
|
|
5817
|
+
As as G,
|
|
5818
|
+
Ls as H,
|
|
5819
|
+
zo as I,
|
|
5820
|
+
Go as S,
|
|
5821
|
+
Ur as T,
|
|
5822
|
+
Di as V,
|
|
5823
|
+
v as _,
|
|
5760
5824
|
H as a,
|
|
5761
|
-
|
|
5825
|
+
ke as b,
|
|
5762
5826
|
he as c,
|
|
5763
|
-
|
|
5827
|
+
Us as d,
|
|
5764
5828
|
te as e,
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5829
|
+
Po as f,
|
|
5830
|
+
Fs as g,
|
|
5831
|
+
xs as h,
|
|
5832
|
+
Ms as i,
|
|
5833
|
+
We as j,
|
|
5834
|
+
wn as k,
|
|
5835
|
+
sn as l,
|
|
5836
|
+
ws as m,
|
|
5773
5837
|
z as n,
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5838
|
+
Hs as o,
|
|
5839
|
+
Ss as p,
|
|
5840
|
+
me as q,
|
|
5841
|
+
$n as r,
|
|
5842
|
+
Ws as s,
|
|
5843
|
+
Bs as t,
|
|
5844
|
+
Vs as u,
|
|
5845
|
+
Ns as v,
|
|
5846
|
+
ms as w,
|
|
5847
|
+
yt as x,
|
|
5848
|
+
Os as y,
|
|
5849
|
+
Ds as z
|
|
5786
5850
|
};
|