@builder.io/sdk-vue 5.2.16 → 5.3.0
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/README.md +4 -0
- package/lib/browser/{awaiter-sma99jcM.cjs → awaiter-2uzflb3S.cjs} +1 -1
- package/lib/browser/{awaiter-xl6zu7C3.js → awaiter-4aFQAEvG.js} +1 -1
- package/lib/browser/{block-wrapper-RAvXLpEQ.cjs → block-wrapper-1ItsXF0j.cjs} +1 -1
- package/lib/browser/{block-wrapper-5K0uC4T-.js → block-wrapper-Uj0c_ct-.js} +3 -3
- package/lib/browser/{component-ref-xLqT_jOc.js → component-ref-826ipClg.js} +4 -4
- package/lib/browser/{component-ref-Tya2rDO2.cjs → component-ref-U0GRcehd.cjs} +1 -1
- package/lib/browser/components/block/block.helpers.d.ts +1 -1
- package/lib/browser/components/block/block.vue.d.ts +6 -11
- package/lib/browser/components/content/components/styles.helpers.d.ts +1 -1
- package/lib/browser/components/content/content.helpers.d.ts +5 -1
- package/lib/browser/components/content/content.vue.d.ts +3 -5
- package/lib/browser/constants/builder-registered-components.d.ts +1 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/evaluate/safe-state-expression.d.ts +33 -0
- package/lib/browser/functions/extract-localized-values.d.ts +4 -0
- package/lib/browser/functions/get-processed-block.d.ts +0 -1
- package/lib/browser/functions/is-editing-or-previewing.d.ts +1 -0
- package/lib/browser/functions/set.d.ts +29 -1
- package/lib/browser/get-block-properties-XhHpZEJX.cjs +1 -0
- package/lib/browser/{get-block-properties-PdAD_uE2.js → get-block-properties-u3S8CkNp.js} +21 -18
- package/lib/browser/helpers/bounded-cache.d.ts +4 -0
- package/lib/browser/helpers/copy-plain-data.d.ts +6 -0
- package/lib/browser/{index-3sJN4pWL.js → index-Jf8hjJYZ.js} +1095 -995
- package/lib/browser/index-KofqhXXd.cjs +368 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-Sgr9Viar.cjs → live-edit-BxSoS0rX.cjs} +1 -1
- package/lib/browser/{live-edit-j4eofiKh.js → live-edit-uev5ovOr.js} +1 -1
- package/lib/browser/{repeated-block-HKaLji2X.cjs → repeated-block-Mj7AAxUa.cjs} +1 -1
- package/lib/browser/{repeated-block-2KvsgJoX.js → repeated-block-s-uTJJ2l.js} +2 -2
- package/lib/browser/{style-wrapper-MZ3hUHCo.cjs → style-wrapper-C17hpa9C.cjs} +1 -1
- package/lib/browser/{style-wrapper-9lr-T4FL.js → style-wrapper-WeOZ3wU5.js} +1 -1
- package/lib/edge/{awaiter-vRSBu8iR.js → awaiter-3P7HNK2U.js} +1 -1
- package/lib/edge/{awaiter-nGRnkiX-.cjs → awaiter-tL_1GDRg.cjs} +1 -1
- package/lib/{node/block-wrapper-fc6BPhIM.cjs → edge/block-wrapper-AJ9g81fv.cjs} +1 -1
- package/lib/edge/{block-wrapper-dMzRh0wq.js → block-wrapper-W6_AJxdH.js} +3 -3
- package/lib/edge/{component-ref-XuJa5YQU.js → component-ref-2H6t6CVL.js} +4 -4
- package/lib/edge/{component-ref-u8AFcxuW.cjs → component-ref-kOTGaG_S.cjs} +1 -1
- package/lib/edge/components/block/block.helpers.d.ts +1 -1
- package/lib/edge/components/block/block.vue.d.ts +6 -11
- package/lib/edge/components/content/components/styles.helpers.d.ts +1 -1
- package/lib/edge/components/content/content.helpers.d.ts +5 -1
- package/lib/edge/components/content/content.vue.d.ts +3 -5
- package/lib/edge/constants/builder-registered-components.d.ts +1 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/evaluate/safe-state-expression.d.ts +33 -0
- package/lib/edge/functions/extract-localized-values.d.ts +4 -0
- package/lib/edge/functions/get-processed-block.d.ts +0 -1
- package/lib/edge/functions/is-editing-or-previewing.d.ts +1 -0
- package/lib/edge/functions/set.d.ts +29 -1
- package/lib/edge/get-block-properties-Cf0JYe8s.cjs +1 -0
- package/lib/edge/{get-block-properties-lu3ijq_9.js → get-block-properties-yDy5CcoJ.js} +21 -18
- package/lib/edge/helpers/bounded-cache.d.ts +4 -0
- package/lib/edge/helpers/copy-plain-data.d.ts +6 -0
- package/lib/edge/{index-CP41tPKH.js → index-0OjD7npr.js} +1879 -1779
- package/lib/edge/{index-2DMPkBgw.cjs → index-Vo2N3MOA.cjs} +49 -49
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{live-edit-tT8gysr5.js → live-edit-es0ntXpd.js} +1 -1
- package/lib/{node/live-edit-x06K74KY.cjs → edge/live-edit-hyHdyjeL.cjs} +1 -1
- package/lib/edge/{repeated-block-4rbJPAPK.js → repeated-block-UG8Sns3u.js} +2 -2
- package/lib/edge/{repeated-block-5aHuPiq3.cjs → repeated-block-d6gfiTTu.cjs} +1 -1
- package/lib/edge/{style-wrapper-6PnkoOq4.js → style-wrapper-UpCDtTSA.js} +1 -1
- package/lib/edge/{style-wrapper-sPnVD1R-.cjs → style-wrapper-pawaG9qF.cjs} +1 -1
- package/lib/node/{awaiter-UWXH3tw0.js → awaiter-AN3_pw27.js} +1 -1
- package/lib/node/{awaiter-bcSiDzNQ.cjs → awaiter-bGTvqMbD.cjs} +1 -1
- package/lib/node/{block-wrapper-8T5wRKIN.js → block-wrapper-e5lqTjH4.js} +3 -3
- package/lib/{edge/block-wrapper-jhPTdeIL.cjs → node/block-wrapper-uIhnB7Vo.cjs} +1 -1
- package/lib/node/{component-ref-IPdlOOp0.cjs → component-ref-hWkVL5In.cjs} +1 -1
- package/lib/node/{component-ref-T9N8WIw7.js → component-ref-lBfIlbHs.js} +5 -5
- package/lib/node/components/block/block.helpers.d.ts +1 -1
- package/lib/node/components/block/block.vue.d.ts +6 -11
- package/lib/node/components/content/components/styles.helpers.d.ts +1 -1
- package/lib/node/components/content/content.helpers.d.ts +5 -1
- package/lib/node/components/content/content.vue.d.ts +3 -5
- package/lib/node/constants/builder-registered-components.d.ts +1 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/evaluate/safe-state-expression.d.ts +33 -0
- package/lib/node/functions/extract-localized-values.d.ts +4 -0
- package/lib/node/functions/get-processed-block.d.ts +0 -1
- package/lib/node/functions/is-editing-or-previewing.d.ts +1 -0
- package/lib/node/functions/set.d.ts +29 -1
- package/lib/node/get-block-properties-VD2nOy1H.cjs +1 -0
- package/lib/node/{get-block-properties-WEdzaQYx.js → get-block-properties-pMlEyIJy.js} +20 -17
- package/lib/node/helpers/bounded-cache.d.ts +4 -0
- package/lib/node/helpers/copy-plain-data.d.ts +6 -0
- package/lib/node/{index-RMd-8REX.cjs → index-3pN6fdOW.cjs} +42 -42
- package/lib/node/{index-xh_ab-8r.js → index-xfji5jj1.js} +1078 -1005
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +8 -8
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/node/{live-edit-AtFUb3WY.js → live-edit-GfW2VTki.js} +1 -1
- package/lib/{edge/live-edit-IztuqB6L.cjs → node/live-edit-iCnhUEuS.cjs} +1 -1
- package/lib/node/{repeated-block-YbKmZjn5.cjs → repeated-block-RuIC6FQv.cjs} +1 -1
- package/lib/node/{repeated-block-EYdA5P-G.js → repeated-block-hte-wY9-.js} +2 -2
- package/lib/node/should-force-browser-runtime-in-node-oNYv8BG3.cjs +56 -0
- package/lib/node/should-force-browser-runtime-in-node-r2oi-Y6E.js +725 -0
- package/lib/node/{style-wrapper-1VLAyo7U.cjs → style-wrapper-c9ma8_oR.cjs} +1 -1
- package/lib/node/{style-wrapper-If0xZQdH.js → style-wrapper-y6_fa2q6.js} +8 -8
- package/package.json +1 -1
- package/lib/browser/get-block-properties-2sbfjttK.cjs +0 -1
- package/lib/browser/index-i151V2-T.cjs +0 -368
- package/lib/edge/get-block-properties-GGRkyJ2n.cjs +0 -1
- package/lib/node/get-block-properties-Oqi1CKFa.cjs +0 -1
- package/lib/node/should-force-browser-runtime-in-node-GnAFs4J8.js +0 -503
- package/lib/node/should-force-browser-runtime-in-node-Kyj0J4tl.cjs +0 -48
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as y, openBlock as
|
|
2
|
-
import { T as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as y, openBlock as u, createElementBlock as h, Fragment as w, createBlock as k, resolveDynamicComponent as X, mergeProps as I, toHandlers as U, withCtx as O, renderSlot as V, resolveComponent as v, createTextVNode as Ot, toDisplayString as pe, defineAsyncComponent as Q, createVNode as $, renderList as x, createCommentVNode as T, h as at, createElementVNode as K, normalizeStyle as M, normalizeClass as ee, markRaw as Dt } from "vue";
|
|
2
|
+
import { T as E, g as Ut, f as xt, c as lt, i as R, s as Ft, r as Lt, p as Mt, a as Ht, l as F, b as jt, d as A, e as zt, n as ct, S as qt, h as Re, j as ce, k as Kt, m as dt, o as Gt, q as Jt, t as ut, _ as xe, u as _t } from "./should-force-browser-runtime-in-node-r2oi-Y6E.js";
|
|
3
|
+
const Qt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Yt = (e) => typeof e == "string" && Qt.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 Xt = y({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: Yt };
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
20
|
+
}), S = (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) ? (
|
|
28
|
-
typeof e.TagName == "string" ? (
|
|
29
|
-
default:
|
|
26
|
+
function Zt(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (u(), k(X(e.TagName), I({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (u(), h(w, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (u(), k(X(e.TagName), I({ key: 0 }, e.attributes, U(e.actionAttributes)), {
|
|
29
|
+
default: O(() => [
|
|
30
30
|
V(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (
|
|
34
|
-
default:
|
|
33
|
+
}, 16)) : (u(), k(X(e.TagName), I({ key: 1 }, e.attributes, U(e.actionAttributes)), {
|
|
34
|
+
default: O(() => [
|
|
35
35
|
V(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Ee = /* @__PURE__ */ S(Xt, [["render", Zt]]), Ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
45
|
-
switch (
|
|
43
|
+
default: Ee
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), H = () => {
|
|
45
|
+
switch (E) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
48
48
|
case "rsc":
|
|
@@ -54,9 +54,9 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ht]]), ss = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, en = y({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: Ee },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -71,7 +71,7 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ht]]), ss = /* @__PURE__ */ Object.
|
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
73
|
...N(this.attributes, "v-on:", !1),
|
|
74
|
-
[
|
|
74
|
+
[H()]: `${this.link ? "" : "builder-button"} ${this.attributes[H()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
77
77
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -83,20 +83,20 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ht]]), ss = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
87
|
-
const s =
|
|
88
|
-
return
|
|
86
|
+
function tn(e, t, n, o, r, i) {
|
|
87
|
+
const s = v("DynamicRenderer");
|
|
88
|
+
return u(), k(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: O(() => [
|
|
94
|
+
Ot(pe(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const nn = /* @__PURE__ */ S(en, [["render", tn]]), on = Symbol(), Se = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -113,14 +113,17 @@ const jt = /* @__PURE__ */ v(Mt, [["render", zt]]), qt = Symbol(), be = {
|
|
|
113
113
|
nonce: "",
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
|
-
key:
|
|
117
|
-
},
|
|
116
|
+
key: on
|
|
117
|
+
}, rn = Symbol(), pt = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
|
-
key:
|
|
120
|
-
},
|
|
119
|
+
key: rn
|
|
120
|
+
}, mt = (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
|
-
},
|
|
123
|
+
}, sn = 5e3, Fe = lt(sn), an = (e, t) => {
|
|
124
|
+
let n = Fe.get(t);
|
|
125
|
+
return n || (n = new Function(...e, t), Fe.set(t, n)), n;
|
|
126
|
+
}, ln = ({
|
|
124
127
|
code: e,
|
|
125
128
|
builder: t,
|
|
126
129
|
context: n,
|
|
@@ -129,24 +132,30 @@ const jt = /* @__PURE__ */ v(Mt, [["render", zt]]), qt = Symbol(), be = {
|
|
|
129
132
|
rootSetState: i,
|
|
130
133
|
rootState: s
|
|
131
134
|
}) => {
|
|
132
|
-
const
|
|
135
|
+
const a = Ut({
|
|
133
136
|
builder: t,
|
|
134
137
|
context: n,
|
|
135
138
|
event: o,
|
|
136
|
-
state:
|
|
139
|
+
state: xt({
|
|
137
140
|
rootState: s,
|
|
138
141
|
localState: r,
|
|
139
142
|
rootSetState: i
|
|
140
143
|
})
|
|
141
144
|
});
|
|
142
|
-
return
|
|
143
|
-
},
|
|
145
|
+
return an(a.map(([l]) => l), e)(...a.map(([, l]) => l));
|
|
146
|
+
}, cn = (e) => R() || Ft({
|
|
144
147
|
shouldLogWarning: !0
|
|
145
|
-
}) ?
|
|
148
|
+
}) ? ln(e) : Lt(e), dn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, un = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, pn = (e) => {
|
|
146
149
|
var t, n, o, r, i, s;
|
|
147
|
-
return ((o = (n = (t =
|
|
150
|
+
return ((o = (n = (t = dn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = un.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
151
|
+
}, mn = 5e3, Le = lt(mn), hn = (e) => {
|
|
152
|
+
let t = Le.get(e);
|
|
153
|
+
return t === void 0 && (t = pn(e) || null, Le.set(e, t)), t;
|
|
154
|
+
}, fn = (e, t, n) => {
|
|
155
|
+
const o = n.split(".")[0], r = t && Object.prototype.hasOwnProperty.call(t, o) ? t : e;
|
|
156
|
+
return mt(r, n);
|
|
148
157
|
};
|
|
149
|
-
function
|
|
158
|
+
function te({
|
|
150
159
|
code: e,
|
|
151
160
|
context: t,
|
|
152
161
|
localState: n,
|
|
@@ -154,21 +163,18 @@ function ee({
|
|
|
154
163
|
rootSetState: r,
|
|
155
164
|
event: i,
|
|
156
165
|
isExpression: s = !0,
|
|
157
|
-
trackingContext:
|
|
166
|
+
trackingContext: a
|
|
158
167
|
}) {
|
|
159
168
|
if (e.trim() === "")
|
|
160
169
|
return;
|
|
161
|
-
const
|
|
162
|
-
if (
|
|
163
|
-
return
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}, a);
|
|
167
|
-
const u = {
|
|
168
|
-
code: Vt(e, {
|
|
170
|
+
const l = hn(e.trim());
|
|
171
|
+
if (l)
|
|
172
|
+
return fn(o, n, l);
|
|
173
|
+
const d = {
|
|
174
|
+
code: Mt(e, {
|
|
169
175
|
isExpression: s
|
|
170
176
|
}),
|
|
171
|
-
builder:
|
|
177
|
+
builder: Ht(a),
|
|
172
178
|
context: t,
|
|
173
179
|
event: i,
|
|
174
180
|
rootSetState: r,
|
|
@@ -176,7 +182,7 @@ function ee({
|
|
|
176
182
|
localState: n
|
|
177
183
|
};
|
|
178
184
|
try {
|
|
179
|
-
return
|
|
185
|
+
return cn(d);
|
|
180
186
|
} catch (p) {
|
|
181
187
|
F.error("Failed code evaluation: " + p.message, {
|
|
182
188
|
code: e
|
|
@@ -184,20 +190,20 @@ function ee({
|
|
|
184
190
|
return;
|
|
185
191
|
}
|
|
186
192
|
}
|
|
187
|
-
function
|
|
193
|
+
function bn(e, t) {
|
|
188
194
|
var n;
|
|
189
195
|
return {
|
|
190
196
|
...(n = e.component) == null ? void 0 : n.options,
|
|
191
197
|
...e.options,
|
|
192
|
-
...
|
|
198
|
+
...gn(e, t)
|
|
193
199
|
};
|
|
194
200
|
}
|
|
195
|
-
const
|
|
201
|
+
const gn = (e, t) => {
|
|
196
202
|
var n, o;
|
|
197
203
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
198
204
|
return {
|
|
199
205
|
...e.component.options,
|
|
200
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) =>
|
|
206
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => te({
|
|
201
207
|
code: i,
|
|
202
208
|
context: t,
|
|
203
209
|
localState: t.localState,
|
|
@@ -206,91 +212,61 @@ const Zt = (e, t) => {
|
|
|
206
212
|
}))
|
|
207
213
|
};
|
|
208
214
|
};
|
|
209
|
-
function
|
|
210
|
-
const n = Object.assign({}, e);
|
|
211
|
-
for (const o of t)
|
|
212
|
-
delete n[o];
|
|
213
|
-
return n;
|
|
214
|
-
}
|
|
215
|
-
function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
216
|
-
if (e == null || typeof e != "object") {
|
|
217
|
-
t(e, (i) => {
|
|
218
|
-
n !== null && o !== null && (n[o] = i);
|
|
219
|
-
});
|
|
220
|
-
return;
|
|
221
|
-
}
|
|
222
|
-
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
|
|
223
|
-
t(i, (a) => {
|
|
224
|
-
e[s] = a;
|
|
225
|
-
}), ae(i, t, e, s, r);
|
|
226
|
-
}) : Object.entries(e).forEach(([i, s]) => {
|
|
227
|
-
t(s, (a) => {
|
|
228
|
-
e[i] = a;
|
|
229
|
-
}), ae(s, t, e, i, r);
|
|
230
|
-
}));
|
|
231
|
-
}
|
|
232
|
-
function st(e) {
|
|
215
|
+
function ht(e) {
|
|
233
216
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
234
217
|
}
|
|
235
|
-
|
|
236
|
-
if (
|
|
237
|
-
return !
|
|
238
|
-
|
|
239
|
-
return
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
return;
|
|
243
|
-
}
|
|
244
|
-
}), t;
|
|
245
|
-
}
|
|
246
|
-
function nn(e, t) {
|
|
247
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ae(e, (n, o) => {
|
|
248
|
-
st(n) && o(n[t] ?? void 0);
|
|
249
|
-
}), e);
|
|
250
|
-
}
|
|
251
|
-
function on(e, t) {
|
|
252
|
-
var n, o;
|
|
253
|
-
return (n = e.component) != null && n.options && tn((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = nn(e.component.options, t ?? "Default")), e;
|
|
254
|
-
}
|
|
255
|
-
function ge(e) {
|
|
218
|
+
const yn = (e) => {
|
|
219
|
+
if (Array.isArray(e))
|
|
220
|
+
return !0;
|
|
221
|
+
const t = Object.getPrototypeOf(e);
|
|
222
|
+
return t === Object.prototype || t === null;
|
|
223
|
+
};
|
|
224
|
+
function ie(e, t, n) {
|
|
256
225
|
if (e === null || typeof e != "object")
|
|
257
226
|
return e;
|
|
227
|
+
if (ht(e))
|
|
228
|
+
return ie(e[t] ?? void 0, t, n);
|
|
229
|
+
if (!yn(e))
|
|
230
|
+
return e;
|
|
231
|
+
if (n.has(e))
|
|
232
|
+
return n.get(e);
|
|
233
|
+
n.set(e, e);
|
|
234
|
+
let o = null;
|
|
258
235
|
if (Array.isArray(e))
|
|
259
|
-
|
|
260
|
-
|
|
236
|
+
for (let i = 0; i < e.length; i++) {
|
|
237
|
+
const s = ie(e[i], t, n);
|
|
238
|
+
s !== e[i] && (o || (o = e.slice()), o[i] = s);
|
|
239
|
+
}
|
|
240
|
+
else
|
|
241
|
+
for (const i of Object.keys(e)) {
|
|
242
|
+
const s = ie(e[i], t, n);
|
|
243
|
+
s !== e[i] && (o || (o = {
|
|
244
|
+
...e
|
|
245
|
+
}), o[i] = s);
|
|
246
|
+
}
|
|
247
|
+
const r = o ?? e;
|
|
248
|
+
return n.set(e, r), r;
|
|
249
|
+
}
|
|
250
|
+
function Sn(e, t) {
|
|
251
|
+
var r;
|
|
252
|
+
const n = (r = e.component) == null ? void 0 : r.options;
|
|
253
|
+
if (!n || typeof n != "object" || ht(n))
|
|
261
254
|
return e;
|
|
262
|
-
const
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
255
|
+
const o = ie(n, t ?? "Default", /* @__PURE__ */ new WeakMap());
|
|
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"), {
|
|
257
|
+
...e,
|
|
258
|
+
component: {
|
|
259
|
+
...e.component,
|
|
260
|
+
options: o
|
|
261
|
+
}
|
|
262
|
+
});
|
|
266
263
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
...t.properties
|
|
274
|
-
},
|
|
275
|
-
actions: {
|
|
276
|
-
...t.actions
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
} else {
|
|
280
|
-
const t = ge(en(e, "children", "meta"));
|
|
281
|
-
return {
|
|
282
|
-
...t,
|
|
283
|
-
properties: {
|
|
284
|
-
...t.properties
|
|
285
|
-
},
|
|
286
|
-
actions: {
|
|
287
|
-
...t.actions
|
|
288
|
-
},
|
|
289
|
-
children: e.children,
|
|
290
|
-
meta: e.meta
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
}, an = ({
|
|
264
|
+
function me(e) {
|
|
265
|
+
const t = e || (R() ? window.location.search : void 0);
|
|
266
|
+
return t ? jt(t).indexOf("builder.preview=") !== -1 : !1;
|
|
267
|
+
}
|
|
268
|
+
const ft = () => A() || me();
|
|
269
|
+
const kn = ({
|
|
294
270
|
block: e,
|
|
295
271
|
context: t,
|
|
296
272
|
localState: n,
|
|
@@ -299,54 +275,74 @@ const rn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), sn = (e) =
|
|
|
299
275
|
}) => {
|
|
300
276
|
if (!e.bindings)
|
|
301
277
|
return e;
|
|
302
|
-
const i =
|
|
303
|
-
|
|
304
|
-
|
|
278
|
+
const i = /* @__PURE__ */ new WeakSet(), s = {
|
|
279
|
+
...e,
|
|
280
|
+
properties: {
|
|
281
|
+
...e.properties
|
|
282
|
+
},
|
|
283
|
+
actions: {
|
|
284
|
+
...e.actions
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
i.add(s.properties), i.add(s.actions);
|
|
288
|
+
for (const a in e.bindings) {
|
|
289
|
+
const l = e.bindings[a], d = te({
|
|
305
290
|
code: l,
|
|
306
291
|
localState: n,
|
|
307
292
|
rootState: o,
|
|
308
293
|
rootSetState: r,
|
|
309
294
|
context: t
|
|
310
295
|
});
|
|
311
|
-
|
|
296
|
+
zt(s, a, d, i);
|
|
312
297
|
}
|
|
313
|
-
return
|
|
298
|
+
return s;
|
|
299
|
+
}, Me = /* @__PURE__ */ new WeakMap(), vn = (e) => {
|
|
300
|
+
if (!e.bindings)
|
|
301
|
+
return !1;
|
|
302
|
+
for (const t in e.bindings)
|
|
303
|
+
return !0;
|
|
304
|
+
return !1;
|
|
314
305
|
};
|
|
315
|
-
function
|
|
306
|
+
function Cn({
|
|
316
307
|
block: e,
|
|
317
308
|
context: t,
|
|
318
309
|
localState: n,
|
|
319
310
|
rootState: o,
|
|
320
311
|
rootSetState: r
|
|
321
312
|
}) {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
313
|
+
const i = o.locale, s = !vn(e) && typeof e == "object" && e !== null && !ft(), a = i ?? "";
|
|
314
|
+
if (s) {
|
|
315
|
+
const d = Me.get(e);
|
|
316
|
+
if (d && d.locale === a)
|
|
317
|
+
return d.block;
|
|
318
|
+
}
|
|
319
|
+
let l = e;
|
|
320
|
+
return l = kn({
|
|
321
|
+
block: l,
|
|
325
322
|
localState: n,
|
|
326
323
|
rootState: o,
|
|
327
324
|
rootSetState: r,
|
|
328
325
|
context: t
|
|
329
|
-
}),
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
return t ? Wt(t).indexOf("builder.preview=") !== -1 : !1;
|
|
326
|
+
}), l = Sn(l, i), s && Me.set(e, {
|
|
327
|
+
locale: a,
|
|
328
|
+
block: l
|
|
329
|
+
}), l;
|
|
334
330
|
}
|
|
335
|
-
const
|
|
331
|
+
const Tn = (e) => ({
|
|
336
332
|
type: "builder.registerComponent",
|
|
337
|
-
data:
|
|
338
|
-
}),
|
|
333
|
+
data: Pe(e)
|
|
334
|
+
}), wn = (e) => {
|
|
339
335
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
340
336
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
341
337
|
};
|
|
342
|
-
function
|
|
343
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
338
|
+
function Pe(e) {
|
|
339
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? wn(n) : n));
|
|
344
340
|
}
|
|
345
|
-
const
|
|
346
|
-
function
|
|
347
|
-
e === "plugin" && (t =
|
|
348
|
-
let n =
|
|
349
|
-
if (n || (n =
|
|
341
|
+
const He = {};
|
|
342
|
+
function ws(e, t) {
|
|
343
|
+
e === "plugin" && (t = Pe(t));
|
|
344
|
+
let n = He[e];
|
|
345
|
+
if (n || (n = He[e] = []), n.push(t), R()) {
|
|
350
346
|
const o = {
|
|
351
347
|
type: "builder.register",
|
|
352
348
|
data: {
|
|
@@ -361,9 +357,9 @@ function as(e, t) {
|
|
|
361
357
|
}
|
|
362
358
|
}
|
|
363
359
|
}
|
|
364
|
-
function
|
|
360
|
+
function Is(e) {
|
|
365
361
|
var t;
|
|
366
|
-
if (
|
|
362
|
+
if (R()) {
|
|
367
363
|
const n = JSON.parse(JSON.stringify(e));
|
|
368
364
|
e.action && (n.action = e.action.toString()), (t = window.parent) == null || t.postMessage({
|
|
369
365
|
type: "builder.registerAction",
|
|
@@ -371,50 +367,50 @@ function ls(e) {
|
|
|
371
367
|
}, "*");
|
|
372
368
|
}
|
|
373
369
|
}
|
|
374
|
-
const
|
|
375
|
-
function
|
|
376
|
-
if (
|
|
377
|
-
Object.assign(
|
|
370
|
+
const je = {};
|
|
371
|
+
function $s(e) {
|
|
372
|
+
if (R()) {
|
|
373
|
+
Object.assign(je, e);
|
|
378
374
|
const t = {
|
|
379
375
|
type: "builder.settingsChange",
|
|
380
|
-
data:
|
|
376
|
+
data: je
|
|
381
377
|
};
|
|
382
378
|
parent.postMessage(t, "*");
|
|
383
379
|
}
|
|
384
380
|
}
|
|
385
|
-
const
|
|
381
|
+
const ze = "builder.", In = "options.", bt = (e) => {
|
|
386
382
|
if (!e)
|
|
387
383
|
return {};
|
|
388
|
-
const t =
|
|
384
|
+
const t = ct(e), n = {};
|
|
389
385
|
return Object.keys(t).forEach((o) => {
|
|
390
|
-
if (o.startsWith(
|
|
391
|
-
const r = o.replace(
|
|
386
|
+
if (o.startsWith(ze)) {
|
|
387
|
+
const r = o.replace(ze, "").replace(In, "");
|
|
392
388
|
n[r] = t[o];
|
|
393
389
|
}
|
|
394
390
|
}), n;
|
|
395
|
-
},
|
|
396
|
-
if (!
|
|
391
|
+
}, $n = () => {
|
|
392
|
+
if (!R())
|
|
397
393
|
return {};
|
|
398
394
|
const e = new URLSearchParams(window.location.search);
|
|
399
|
-
return
|
|
400
|
-
},
|
|
401
|
-
function
|
|
395
|
+
return bt(e);
|
|
396
|
+
}, Rn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
397
|
+
function gt(e, t) {
|
|
402
398
|
let n;
|
|
403
399
|
try {
|
|
404
400
|
n = new URL(t.origin);
|
|
405
401
|
} catch {
|
|
406
402
|
return !1;
|
|
407
403
|
}
|
|
408
|
-
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e ||
|
|
404
|
+
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || Rn).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
|
|
409
405
|
}
|
|
410
|
-
let
|
|
411
|
-
const
|
|
406
|
+
let qe = !1;
|
|
407
|
+
const yt = (e) => {
|
|
412
408
|
var t, n;
|
|
413
|
-
|
|
409
|
+
qe || (qe = !0, R() && ((t = window.parent) == null || t.postMessage({
|
|
414
410
|
type: "builder.sdkInfo",
|
|
415
411
|
data: {
|
|
416
|
-
target:
|
|
417
|
-
version:
|
|
412
|
+
target: E,
|
|
413
|
+
version: qt,
|
|
418
414
|
supportsPatchUpdates: !1,
|
|
419
415
|
// Supports builder-model="..." attribute which is needed to
|
|
420
416
|
// scope our '+ add block' button styling
|
|
@@ -432,7 +428,7 @@ const ct = (e) => {
|
|
|
432
428
|
}
|
|
433
429
|
}, "*"), window.addEventListener("message", (o) => {
|
|
434
430
|
var i, s;
|
|
435
|
-
if (!
|
|
431
|
+
if (!gt(e.trustedHosts, o))
|
|
436
432
|
return;
|
|
437
433
|
const {
|
|
438
434
|
data: r
|
|
@@ -440,17 +436,17 @@ const ct = (e) => {
|
|
|
440
436
|
if (r != null && r.type)
|
|
441
437
|
switch (r.type) {
|
|
442
438
|
case "builder.evaluate": {
|
|
443
|
-
const
|
|
439
|
+
const a = r.data.text, l = r.data.arguments || [], d = r.data.id, p = new Function(a);
|
|
444
440
|
let b, c = null;
|
|
445
441
|
try {
|
|
446
|
-
b = p.apply(null,
|
|
442
|
+
b = p.apply(null, l);
|
|
447
443
|
} catch (m) {
|
|
448
444
|
c = m;
|
|
449
445
|
}
|
|
450
446
|
c ? (i = window.parent) == null || i.postMessage({
|
|
451
447
|
type: "builder.evaluateError",
|
|
452
448
|
data: {
|
|
453
|
-
id:
|
|
449
|
+
id: d,
|
|
454
450
|
error: c.message
|
|
455
451
|
}
|
|
456
452
|
}, "*") : b && typeof b.then == "function" ? b.then((m) => {
|
|
@@ -458,7 +454,7 @@ const ct = (e) => {
|
|
|
458
454
|
(f = window.parent) == null || f.postMessage({
|
|
459
455
|
type: "builder.evaluateResult",
|
|
460
456
|
data: {
|
|
461
|
-
id:
|
|
457
|
+
id: d,
|
|
462
458
|
result: m
|
|
463
459
|
}
|
|
464
460
|
}, "*");
|
|
@@ -466,19 +462,19 @@ const ct = (e) => {
|
|
|
466
462
|
type: "builder.evaluateResult",
|
|
467
463
|
data: {
|
|
468
464
|
result: b,
|
|
469
|
-
id:
|
|
465
|
+
id: d
|
|
470
466
|
}
|
|
471
467
|
}, "*");
|
|
472
468
|
break;
|
|
473
469
|
}
|
|
474
470
|
}
|
|
475
471
|
})));
|
|
476
|
-
},
|
|
472
|
+
}, St = ({
|
|
477
473
|
model: e,
|
|
478
474
|
trustedHosts: t,
|
|
479
475
|
callbacks: n
|
|
480
476
|
}) => (o) => {
|
|
481
|
-
if (!
|
|
477
|
+
if (!gt(t, o))
|
|
482
478
|
return;
|
|
483
479
|
const {
|
|
484
480
|
data: r
|
|
@@ -494,30 +490,30 @@ const ct = (e) => {
|
|
|
494
490
|
break;
|
|
495
491
|
}
|
|
496
492
|
case "builder.resetState": {
|
|
497
|
-
const i = r.data, s = i.model,
|
|
498
|
-
s === e &&
|
|
493
|
+
const i = r.data, s = i.model, a = i == null ? void 0 : i.state, l = i.editType;
|
|
494
|
+
s === e && a && n.stateUpdate(a, l);
|
|
499
495
|
break;
|
|
500
496
|
}
|
|
501
497
|
case "builder.contentUpdate": {
|
|
502
|
-
const i = r.data, s = i.key || i.alias || i.entry || i.modelName,
|
|
503
|
-
s === e && n.contentUpdate(
|
|
498
|
+
const i = r.data, s = i.key || i.alias || i.entry || i.modelName, a = i.data, l = i.editType;
|
|
499
|
+
s === e && n.contentUpdate(a, l);
|
|
504
500
|
break;
|
|
505
501
|
}
|
|
506
502
|
}
|
|
507
|
-
},
|
|
503
|
+
}, Rs = ({
|
|
508
504
|
model: e,
|
|
509
505
|
apiKey: t,
|
|
510
506
|
callback: n,
|
|
511
507
|
trustedHosts: o
|
|
512
508
|
}) => {
|
|
513
|
-
if (!
|
|
509
|
+
if (!R)
|
|
514
510
|
return F.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
515
511
|
};
|
|
516
|
-
|
|
512
|
+
yt({
|
|
517
513
|
modelName: e,
|
|
518
514
|
apiKey: t
|
|
519
515
|
});
|
|
520
|
-
const r =
|
|
516
|
+
const r = St({
|
|
521
517
|
callbacks: {
|
|
522
518
|
contentUpdate: n,
|
|
523
519
|
animation: () => {
|
|
@@ -533,24 +529,24 @@ const ct = (e) => {
|
|
|
533
529
|
return window.addEventListener("message", r), () => {
|
|
534
530
|
window.removeEventListener("message", r);
|
|
535
531
|
};
|
|
536
|
-
},
|
|
532
|
+
}, En = "builder.tests", Ae = (e) => `${En}.${e}`, Pn = ({
|
|
537
533
|
contentId: e
|
|
538
|
-
}) =>
|
|
539
|
-
name:
|
|
534
|
+
}) => Kt({
|
|
535
|
+
name: Ae(e),
|
|
540
536
|
canTrack: !0
|
|
541
|
-
}),
|
|
537
|
+
}), An = ({
|
|
542
538
|
contentId: e
|
|
543
|
-
}) =>
|
|
544
|
-
name:
|
|
539
|
+
}) => Re({
|
|
540
|
+
name: Ae(e),
|
|
545
541
|
canTrack: !0
|
|
546
|
-
}),
|
|
542
|
+
}), Bn = ({
|
|
547
543
|
contentId: e,
|
|
548
544
|
value: t
|
|
549
|
-
}) =>
|
|
550
|
-
name:
|
|
545
|
+
}) => dt({
|
|
546
|
+
name: Ae(e),
|
|
551
547
|
value: t,
|
|
552
548
|
canTrack: !0
|
|
553
|
-
}),
|
|
549
|
+
}), kt = (e) => ce(e.id) && ce(e.variations) && Object.keys(e.variations).length > 0, Vn = ({
|
|
554
550
|
id: e,
|
|
555
551
|
variations: t
|
|
556
552
|
}) => {
|
|
@@ -563,15 +559,15 @@ const ct = (e) => {
|
|
|
563
559
|
return i;
|
|
564
560
|
}
|
|
565
561
|
return e;
|
|
566
|
-
},
|
|
567
|
-
const t =
|
|
568
|
-
return
|
|
562
|
+
}, vt = (e) => {
|
|
563
|
+
const t = Vn(e);
|
|
564
|
+
return Bn({
|
|
569
565
|
contentId: e.id,
|
|
570
566
|
value: t
|
|
571
567
|
}).catch((n) => {
|
|
572
568
|
F.error("could not store A/B test variation: ", n);
|
|
573
569
|
}), t;
|
|
574
|
-
},
|
|
570
|
+
}, Ct = ({
|
|
575
571
|
item: e,
|
|
576
572
|
testGroupId: t
|
|
577
573
|
}) => {
|
|
@@ -585,7 +581,7 @@ const ct = (e) => {
|
|
|
585
581
|
testVariationId: n.id,
|
|
586
582
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
587
583
|
};
|
|
588
|
-
},
|
|
584
|
+
}, Nn = ({
|
|
589
585
|
item: e,
|
|
590
586
|
canTrack: t
|
|
591
587
|
}) => {
|
|
@@ -593,14 +589,14 @@ const ct = (e) => {
|
|
|
593
589
|
return e;
|
|
594
590
|
if (!e)
|
|
595
591
|
return;
|
|
596
|
-
if (!
|
|
592
|
+
if (!kt(e))
|
|
597
593
|
return e;
|
|
598
|
-
const n =
|
|
594
|
+
const n = An({
|
|
599
595
|
contentId: e.id
|
|
600
|
-
}) ||
|
|
596
|
+
}) || vt({
|
|
601
597
|
variations: e.variations,
|
|
602
598
|
id: e.id
|
|
603
|
-
}), o =
|
|
599
|
+
}), o = Ct({
|
|
604
600
|
item: e,
|
|
605
601
|
testGroupId: n
|
|
606
602
|
});
|
|
@@ -608,18 +604,18 @@ const ct = (e) => {
|
|
|
608
604
|
...e,
|
|
609
605
|
...o
|
|
610
606
|
};
|
|
611
|
-
},
|
|
607
|
+
}, Wn = async ({
|
|
612
608
|
item: e,
|
|
613
609
|
canTrack: t
|
|
614
610
|
}) => {
|
|
615
|
-
if (!t || !
|
|
611
|
+
if (!t || !kt(e))
|
|
616
612
|
return e;
|
|
617
|
-
const o = await
|
|
613
|
+
const o = await Pn({
|
|
618
614
|
contentId: e.id
|
|
619
|
-
}) ||
|
|
615
|
+
}) || vt({
|
|
620
616
|
variations: e.variations,
|
|
621
617
|
id: e.id
|
|
622
|
-
}), r =
|
|
618
|
+
}), r = Ct({
|
|
623
619
|
item: e,
|
|
624
620
|
testGroupId: o
|
|
625
621
|
});
|
|
@@ -628,49 +624,49 @@ const ct = (e) => {
|
|
|
628
624
|
...r
|
|
629
625
|
};
|
|
630
626
|
};
|
|
631
|
-
const
|
|
632
|
-
if (!
|
|
627
|
+
const On = "builder.preview", Dn = "BUILDER_STUDIO", Ke = "builder.userAttributes.", Un = (e) => e === "true" ? !0 : e === "false" ? !1 : e, Ge = () => {
|
|
628
|
+
if (!R())
|
|
633
629
|
return {};
|
|
634
630
|
const e = new URLSearchParams(window.location.search);
|
|
635
|
-
if (e.get(
|
|
631
|
+
if (e.get(On) !== Dn)
|
|
636
632
|
return {};
|
|
637
633
|
const t = {};
|
|
638
634
|
return e.forEach((n, o) => {
|
|
639
|
-
o.startsWith(
|
|
635
|
+
o.startsWith(Ke) && (t[o.slice(Ke.length)] = Un(n));
|
|
640
636
|
}), t;
|
|
641
|
-
},
|
|
642
|
-
function
|
|
637
|
+
}, Je = "builder.userAttributes";
|
|
638
|
+
function _e() {
|
|
643
639
|
let e = !0;
|
|
644
640
|
const t = /* @__PURE__ */ new Set(), n = () => {
|
|
645
|
-
const o =
|
|
646
|
-
name:
|
|
641
|
+
const o = Re({
|
|
642
|
+
name: Je,
|
|
647
643
|
canTrack: e
|
|
648
644
|
});
|
|
649
645
|
return o ? JSON.parse(o) : {};
|
|
650
646
|
};
|
|
651
647
|
return {
|
|
652
648
|
setUserAttributes(o) {
|
|
653
|
-
if (!
|
|
649
|
+
if (!R())
|
|
654
650
|
return;
|
|
655
651
|
const r = {
|
|
656
652
|
...n(),
|
|
657
653
|
...o
|
|
658
654
|
};
|
|
659
|
-
|
|
660
|
-
name:
|
|
655
|
+
dt({
|
|
656
|
+
name: Je,
|
|
661
657
|
value: JSON.stringify(r),
|
|
662
658
|
canTrack: e
|
|
663
659
|
});
|
|
664
|
-
const i =
|
|
660
|
+
const i = Ge();
|
|
665
661
|
t.forEach((s) => s({
|
|
666
662
|
...r,
|
|
667
663
|
...i
|
|
668
664
|
}));
|
|
669
665
|
},
|
|
670
666
|
getUserAttributes() {
|
|
671
|
-
return
|
|
667
|
+
return R() ? {
|
|
672
668
|
...n(),
|
|
673
|
-
...
|
|
669
|
+
...Ge()
|
|
674
670
|
} : {};
|
|
675
671
|
},
|
|
676
672
|
subscribeOnUserAttributesChange(o, {
|
|
@@ -685,25 +681,25 @@ function qe() {
|
|
|
685
681
|
}
|
|
686
682
|
};
|
|
687
683
|
}
|
|
688
|
-
let
|
|
689
|
-
|
|
690
|
-
const
|
|
691
|
-
|
|
692
|
-
},
|
|
693
|
-
const t =
|
|
694
|
-
return
|
|
684
|
+
let ke;
|
|
685
|
+
R() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = _e()), ke = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ke = _e();
|
|
686
|
+
const de = ke, Es = (e) => {
|
|
687
|
+
de.setUserAttributes(e);
|
|
688
|
+
}, G = (e) => {
|
|
689
|
+
const t = ce(e) ? e : !0;
|
|
690
|
+
return de.setCanTrack(t), t;
|
|
695
691
|
};
|
|
696
|
-
function
|
|
692
|
+
function xn() {
|
|
697
693
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
698
694
|
}
|
|
699
|
-
function
|
|
700
|
-
const e =
|
|
695
|
+
function Fn() {
|
|
696
|
+
const e = xn().fetch;
|
|
701
697
|
if (typeof e > "u")
|
|
702
698
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
703
699
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
704
700
|
return e;
|
|
705
701
|
}
|
|
706
|
-
const
|
|
702
|
+
const Ln = Fn();
|
|
707
703
|
function ve(e, t = null, n = ".") {
|
|
708
704
|
return Object.keys(e).reduce((o, r) => {
|
|
709
705
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
@@ -716,14 +712,14 @@ function ve(e, t = null, n = ".") {
|
|
|
716
712
|
};
|
|
717
713
|
}, {});
|
|
718
714
|
}
|
|
719
|
-
function
|
|
715
|
+
function Tt(e, t, n = {}) {
|
|
720
716
|
for (const o in e) {
|
|
721
717
|
const r = e[o], i = t ? t + "." + o : o;
|
|
722
|
-
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("$")) ? Tt(r, i, n) : n[i] = r;
|
|
723
719
|
}
|
|
724
720
|
return n;
|
|
725
721
|
}
|
|
726
|
-
function
|
|
722
|
+
function Mn(e) {
|
|
727
723
|
const t = {};
|
|
728
724
|
for (const n in e) {
|
|
729
725
|
const o = n.split(".");
|
|
@@ -735,7 +731,7 @@ function Rn(e) {
|
|
|
735
731
|
}
|
|
736
732
|
return t;
|
|
737
733
|
}
|
|
738
|
-
const
|
|
734
|
+
const Hn = "v3", Qe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Be = (e) => {
|
|
739
735
|
const {
|
|
740
736
|
limit: t = 30,
|
|
741
737
|
userAttributes: n,
|
|
@@ -743,9 +739,9 @@ const En = "v3", Ke = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (
|
|
|
743
739
|
model: r,
|
|
744
740
|
apiKey: i,
|
|
745
741
|
enrich: s,
|
|
746
|
-
enrichOptions:
|
|
747
|
-
locale:
|
|
748
|
-
apiVersion:
|
|
742
|
+
enrichOptions: a,
|
|
743
|
+
locale: l,
|
|
744
|
+
apiVersion: d = Hn,
|
|
749
745
|
fields: p,
|
|
750
746
|
omit: b,
|
|
751
747
|
offset: c,
|
|
@@ -753,87 +749,87 @@ const En = "v3", Ke = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (
|
|
|
753
749
|
staleCacheSeconds: f,
|
|
754
750
|
sort: g,
|
|
755
751
|
includeUnpublished: P,
|
|
756
|
-
apiHost:
|
|
752
|
+
apiHost: D
|
|
757
753
|
} = e;
|
|
758
754
|
if (!i)
|
|
759
755
|
throw new Error("Missing API key");
|
|
760
|
-
if (!["v3"].includes(
|
|
761
|
-
throw new Error(`Invalid apiVersion: expected 'v3', received '${
|
|
762
|
-
const B = t !== 1, q =
|
|
763
|
-
C.searchParams.set("apiKey", i), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(B)), C.searchParams.set("includeRefs", String(!0)),
|
|
764
|
-
let
|
|
765
|
-
if (s && C.searchParams.set("enrich", String(s)), s &&
|
|
756
|
+
if (!["v3"].includes(d))
|
|
757
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${d}'`);
|
|
758
|
+
const B = t !== 1, q = D || "https://cdn.builder.io", C = new URL(`${q}/api/${d}/content/${r}`);
|
|
759
|
+
C.searchParams.set("apiKey", i), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(B)), C.searchParams.set("includeRefs", String(!0)), l && C.searchParams.set("locale", l);
|
|
760
|
+
let j = n || {};
|
|
761
|
+
if (s && C.searchParams.set("enrich", String(s)), s && a && C.searchParams.set("enrichOptions", JSON.stringify(a)), C.searchParams.set("omit", b ?? "meta.componentsUsed"), p && C.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof P == "boolean" && C.searchParams.set("includeUnpublished", String(P)), m && Qe(m) && C.searchParams.set("cacheSeconds", String(m)), f && Qe(f) && C.searchParams.set("staleCacheSeconds", String(f)), g) {
|
|
766
762
|
const W = ve({
|
|
767
763
|
sort: g
|
|
768
764
|
});
|
|
769
765
|
for (const L in W)
|
|
770
766
|
C.searchParams.set(L, JSON.stringify(W[L]));
|
|
771
767
|
}
|
|
772
|
-
const
|
|
773
|
-
|
|
774
|
-
...
|
|
768
|
+
const J = {
|
|
769
|
+
...$n(),
|
|
770
|
+
...ct(e.options || {})
|
|
775
771
|
};
|
|
776
|
-
|
|
777
|
-
...
|
|
778
|
-
...
|
|
772
|
+
j = {
|
|
773
|
+
...j,
|
|
774
|
+
...qn(J)
|
|
779
775
|
};
|
|
780
|
-
const
|
|
781
|
-
for (const W in
|
|
782
|
-
W !== "apiKey" && C.searchParams.set(W, String(
|
|
783
|
-
if (Object.keys(
|
|
784
|
-
const W =
|
|
776
|
+
const _ = ve(J);
|
|
777
|
+
for (const W in _)
|
|
778
|
+
W !== "apiKey" && C.searchParams.set(W, String(_[W]));
|
|
779
|
+
if (Object.keys(j).length > 0 && C.searchParams.set("userAttributes", JSON.stringify(j)), o) {
|
|
780
|
+
const W = Tt({
|
|
785
781
|
query: o
|
|
786
782
|
});
|
|
787
783
|
for (const L in W)
|
|
788
784
|
C.searchParams.set(L, JSON.stringify(W[L]));
|
|
789
785
|
}
|
|
790
786
|
return C;
|
|
791
|
-
},
|
|
787
|
+
}, jn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, zn = (e) => {
|
|
792
788
|
const t = {};
|
|
793
789
|
for (const n in e)
|
|
794
|
-
n.startsWith("userAttributes.") && (t[n] =
|
|
790
|
+
n.startsWith("userAttributes.") && (t[n] = jn(e[n]), delete e[n]);
|
|
795
791
|
return t;
|
|
796
|
-
},
|
|
797
|
-
if (
|
|
792
|
+
}, qn = (e) => {
|
|
793
|
+
if (R() && e.preview === "BUILDER_STUDIO") {
|
|
798
794
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
799
|
-
const t =
|
|
795
|
+
const t = zn(e), {
|
|
800
796
|
userAttributes: n
|
|
801
|
-
} =
|
|
797
|
+
} = Mn(t);
|
|
802
798
|
return n;
|
|
803
799
|
}
|
|
804
800
|
return {};
|
|
805
|
-
},
|
|
806
|
-
async function
|
|
801
|
+
}, Kn = (e) => "results" in e;
|
|
802
|
+
async function Ve(e) {
|
|
807
803
|
var o;
|
|
808
804
|
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
809
805
|
t && (e.locale = t, e.userAttributes = {
|
|
810
806
|
locale: t,
|
|
811
807
|
...e.userAttributes
|
|
812
808
|
});
|
|
813
|
-
const n = await
|
|
809
|
+
const n = await _n({
|
|
814
810
|
...e,
|
|
815
811
|
limit: 1
|
|
816
812
|
});
|
|
817
813
|
return n && n[0] || null;
|
|
818
814
|
}
|
|
819
|
-
const
|
|
815
|
+
const Gn = async (e) => {
|
|
820
816
|
var s;
|
|
821
|
-
const t =
|
|
817
|
+
const t = Be(e), n = e.fetch ?? Ln, o = {
|
|
822
818
|
...e.fetchOptions,
|
|
823
819
|
headers: {
|
|
824
820
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
825
|
-
...
|
|
821
|
+
...Gt()
|
|
826
822
|
}
|
|
827
823
|
};
|
|
828
824
|
return await (await n(t.href, o)).json();
|
|
829
|
-
},
|
|
830
|
-
const o =
|
|
831
|
-
if (n.search.includes("preview="), !o || !(
|
|
825
|
+
}, Jn = async (e, t, n = Be(e)) => {
|
|
826
|
+
const o = G(e.canTrack);
|
|
827
|
+
if (n.search.includes("preview="), !o || !(R() || E === "reactNative"))
|
|
832
828
|
return t.results;
|
|
833
829
|
try {
|
|
834
830
|
const r = [];
|
|
835
831
|
for (const i of t.results)
|
|
836
|
-
r.push(await
|
|
832
|
+
r.push(await Wn({
|
|
837
833
|
item: i,
|
|
838
834
|
canTrack: o
|
|
839
835
|
}));
|
|
@@ -843,17 +839,17 @@ const Nn = async (e) => {
|
|
|
843
839
|
}
|
|
844
840
|
return t.results;
|
|
845
841
|
};
|
|
846
|
-
async function
|
|
847
|
-
const t =
|
|
848
|
-
if (!
|
|
842
|
+
async function _n(e) {
|
|
843
|
+
const t = Be(e), n = await Gn(e);
|
|
844
|
+
if (!Kn(n))
|
|
849
845
|
throw F.error("Error fetching data. ", {
|
|
850
846
|
url: t,
|
|
851
847
|
content: n,
|
|
852
848
|
options: e
|
|
853
849
|
}), n;
|
|
854
|
-
return
|
|
850
|
+
return Jn(e, n);
|
|
855
851
|
}
|
|
856
|
-
const
|
|
852
|
+
const Ps = async (e) => {
|
|
857
853
|
var o, r, i;
|
|
858
854
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
859
855
|
...e,
|
|
@@ -865,27 +861,27 @@ const ps = async (e) => {
|
|
|
865
861
|
urlPath: t
|
|
866
862
|
} : {}
|
|
867
863
|
},
|
|
868
|
-
options:
|
|
864
|
+
options: bt(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
869
865
|
};
|
|
870
866
|
return {
|
|
871
867
|
apiKey: n.apiKey,
|
|
872
868
|
model: n.model,
|
|
873
|
-
content: await
|
|
869
|
+
content: await Ve(n)
|
|
874
870
|
};
|
|
875
|
-
},
|
|
876
|
-
function
|
|
877
|
-
let o, r, i, s = null,
|
|
878
|
-
const
|
|
879
|
-
|
|
871
|
+
}, Ne = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
872
|
+
function Qn(e, t, n = {}) {
|
|
873
|
+
let o, r, i, s = null, a = 0;
|
|
874
|
+
const l = function() {
|
|
875
|
+
a = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
880
876
|
};
|
|
881
877
|
return function() {
|
|
882
|
-
const
|
|
883
|
-
!
|
|
884
|
-
const p = t - (
|
|
885
|
-
return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null),
|
|
878
|
+
const d = Date.now();
|
|
879
|
+
!a && n.leading === !1 && (a = d);
|
|
880
|
+
const p = t - (d - a);
|
|
881
|
+
return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), a = d, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(l, p)), i;
|
|
886
882
|
};
|
|
887
883
|
}
|
|
888
|
-
function
|
|
884
|
+
function Z(e, ...t) {
|
|
889
885
|
const n = Object(e);
|
|
890
886
|
for (let o = 1; o < arguments.length; o++) {
|
|
891
887
|
const r = arguments[o];
|
|
@@ -895,130 +891,130 @@ function X(e, ...t) {
|
|
|
895
891
|
}
|
|
896
892
|
return n;
|
|
897
893
|
}
|
|
898
|
-
function
|
|
894
|
+
function Yn(e) {
|
|
899
895
|
for (const t of e)
|
|
900
896
|
switch (t.trigger) {
|
|
901
897
|
case "pageLoad":
|
|
902
|
-
|
|
898
|
+
$t(t);
|
|
903
899
|
break;
|
|
904
900
|
case "scrollInView":
|
|
905
|
-
|
|
901
|
+
Zn(t);
|
|
906
902
|
break;
|
|
907
903
|
}
|
|
908
904
|
}
|
|
909
|
-
function
|
|
905
|
+
function wt(e) {
|
|
910
906
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
911
907
|
}
|
|
912
|
-
function
|
|
913
|
-
const n =
|
|
914
|
-
for (const
|
|
915
|
-
for (const
|
|
916
|
-
|
|
908
|
+
function It(e, t) {
|
|
909
|
+
const n = Xn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
910
|
+
for (const a of s)
|
|
911
|
+
for (const l of n)
|
|
912
|
+
l in a || (a[l] = o[l]);
|
|
917
913
|
}
|
|
918
|
-
function
|
|
914
|
+
function Xn(e) {
|
|
919
915
|
const t = [];
|
|
920
916
|
for (const n of e.steps)
|
|
921
917
|
for (const o in n.styles)
|
|
922
918
|
t.indexOf(o) === -1 && t.push(o);
|
|
923
919
|
return t;
|
|
924
920
|
}
|
|
925
|
-
function
|
|
921
|
+
function $t(e) {
|
|
926
922
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
927
923
|
if (!t.length) {
|
|
928
|
-
|
|
924
|
+
wt(e.elementId || e.id || "");
|
|
929
925
|
return;
|
|
930
926
|
}
|
|
931
927
|
Array.from(t).forEach((n) => {
|
|
932
|
-
|
|
933
|
-
n.style.transition = `all ${e.duration}s ${
|
|
928
|
+
It(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 ${Ne(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
|
|
934
930
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
935
931
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
936
932
|
});
|
|
937
933
|
});
|
|
938
934
|
}
|
|
939
|
-
function
|
|
935
|
+
function Zn(e) {
|
|
940
936
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
941
937
|
if (!t.length) {
|
|
942
|
-
|
|
938
|
+
wt(e.elementId || e.id || "");
|
|
943
939
|
return;
|
|
944
940
|
}
|
|
945
941
|
Array.from(t).forEach((n) => {
|
|
946
|
-
|
|
942
|
+
It(e, n);
|
|
947
943
|
let o = !1, r = !1;
|
|
948
944
|
function i() {
|
|
949
|
-
!o &&
|
|
950
|
-
|
|
945
|
+
!o && a(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
946
|
+
Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
951
947
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
952
948
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
953
|
-
})) : e.repeat && o && !r && !
|
|
949
|
+
})) : e.repeat && o && !r && !a(n) && (o = !1, Z(n.style, e.steps[0].styles));
|
|
954
950
|
}
|
|
955
|
-
const s =
|
|
951
|
+
const s = Qn(i, 200, {
|
|
956
952
|
leading: !1
|
|
957
953
|
});
|
|
958
|
-
function
|
|
954
|
+
function a(p) {
|
|
959
955
|
const b = p.getBoundingClientRect(), c = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * c;
|
|
960
956
|
return b.bottom > f && b.top < c - f;
|
|
961
957
|
}
|
|
962
|
-
const
|
|
963
|
-
function
|
|
964
|
-
|
|
958
|
+
const l = e.steps[0].styles;
|
|
959
|
+
function d() {
|
|
960
|
+
Z(n.style, l);
|
|
965
961
|
}
|
|
966
|
-
|
|
967
|
-
n.style.transition = `all ${e.duration}s ${
|
|
962
|
+
d(), setTimeout(() => {
|
|
963
|
+
n.style.transition = `all ${e.duration}s ${Ne(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
968
964
|
}), document.addEventListener("scroll", s, {
|
|
969
965
|
capture: !0,
|
|
970
966
|
passive: !0
|
|
971
967
|
}), i();
|
|
972
968
|
});
|
|
973
969
|
}
|
|
974
|
-
const
|
|
970
|
+
const oe = (e, t) => {
|
|
975
971
|
const n = (e == null ? void 0 : e.objectPosition) || t;
|
|
976
972
|
return n ? {
|
|
977
973
|
...e,
|
|
978
974
|
"--builder-image-position": n
|
|
979
975
|
} : e;
|
|
980
|
-
},
|
|
976
|
+
}, As = (e, t) => t ? {
|
|
981
977
|
...e,
|
|
982
|
-
large:
|
|
983
|
-
medium:
|
|
984
|
-
small:
|
|
985
|
-
xsmall:
|
|
986
|
-
} : e,
|
|
978
|
+
large: oe(e == null ? void 0 : e.large, "initial"),
|
|
979
|
+
medium: oe(e == null ? void 0 : e.medium),
|
|
980
|
+
small: oe(e == null ? void 0 : e.small),
|
|
981
|
+
xsmall: oe(e == null ? void 0 : e.xsmall)
|
|
982
|
+
} : e, Rt = (e) => Object.entries(e).map(([n, o]) => {
|
|
987
983
|
if (typeof o == "string")
|
|
988
|
-
return `${
|
|
989
|
-
}).filter(
|
|
990
|
-
`),
|
|
984
|
+
return `${Ne(n)}: ${o};`;
|
|
985
|
+
}).filter(ce), eo = (e) => Rt(e).join(`
|
|
986
|
+
`), Bs = ({
|
|
991
987
|
mediaQuery: e,
|
|
992
988
|
className: t,
|
|
993
989
|
styles: n
|
|
994
990
|
}) => {
|
|
995
991
|
const o = `.${t} {
|
|
996
|
-
${
|
|
992
|
+
${eo(n)}
|
|
997
993
|
}`;
|
|
998
994
|
return e ? `${e} {
|
|
999
995
|
${o}
|
|
1000
996
|
}` : o;
|
|
1001
997
|
};
|
|
1002
|
-
function
|
|
998
|
+
function to({
|
|
1003
999
|
style: e
|
|
1004
1000
|
}) {
|
|
1005
1001
|
return e;
|
|
1006
1002
|
}
|
|
1007
|
-
const
|
|
1003
|
+
const Vs = ({
|
|
1008
1004
|
block: e,
|
|
1009
1005
|
context: t
|
|
1010
|
-
}) =>
|
|
1006
|
+
}) => Et(to({
|
|
1011
1007
|
style: e.style || {},
|
|
1012
1008
|
context: t,
|
|
1013
1009
|
block: e
|
|
1014
1010
|
}));
|
|
1015
|
-
function
|
|
1016
|
-
switch (
|
|
1011
|
+
function Et(e) {
|
|
1012
|
+
switch (E) {
|
|
1017
1013
|
case "svelte":
|
|
1018
1014
|
case "vue":
|
|
1019
1015
|
case "solid":
|
|
1020
1016
|
case "angular":
|
|
1021
|
-
return
|
|
1017
|
+
return Rt(e).join(" ");
|
|
1022
1018
|
case "qwik":
|
|
1023
1019
|
case "reactNative":
|
|
1024
1020
|
case "react":
|
|
@@ -1026,7 +1022,7 @@ function vt(e) {
|
|
|
1026
1022
|
return e;
|
|
1027
1023
|
}
|
|
1028
1024
|
}
|
|
1029
|
-
const
|
|
1025
|
+
const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, no = ({
|
|
1030
1026
|
block: e,
|
|
1031
1027
|
registeredComponents: t,
|
|
1032
1028
|
model: n
|
|
@@ -1036,99 +1032,121 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1036
1032
|
if (!o)
|
|
1037
1033
|
return null;
|
|
1038
1034
|
const r = t[o];
|
|
1039
|
-
if (!r ||
|
|
1035
|
+
if (!r || Pt(r, n)) {
|
|
1040
1036
|
console.warn(`
|
|
1041
1037
|
Could not find a registered component named "${o}".
|
|
1042
1038
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1043
1039
|
return;
|
|
1044
1040
|
} else
|
|
1045
1041
|
return r;
|
|
1046
|
-
},
|
|
1042
|
+
}, Ye = /* @__PURE__ */ new WeakMap(), oo = (e) => {
|
|
1043
|
+
if (ft()) {
|
|
1044
|
+
const {
|
|
1045
|
+
repeat: n,
|
|
1046
|
+
...o
|
|
1047
|
+
} = e;
|
|
1048
|
+
return o;
|
|
1049
|
+
}
|
|
1050
|
+
let t = Ye.get(e);
|
|
1051
|
+
if (!t) {
|
|
1052
|
+
const {
|
|
1053
|
+
repeat: n,
|
|
1054
|
+
...o
|
|
1055
|
+
} = e;
|
|
1056
|
+
t = o, Ye.set(e, t);
|
|
1057
|
+
}
|
|
1058
|
+
return t;
|
|
1059
|
+
}, ro = ({
|
|
1047
1060
|
block: e,
|
|
1048
1061
|
context: t
|
|
1049
1062
|
}) => {
|
|
1050
1063
|
const {
|
|
1051
|
-
repeat: n
|
|
1052
|
-
...o
|
|
1064
|
+
repeat: n
|
|
1053
1065
|
} = e;
|
|
1054
1066
|
if (!(n != null && n.collection))
|
|
1055
1067
|
return;
|
|
1056
|
-
const
|
|
1068
|
+
const o = te({
|
|
1057
1069
|
code: n.collection,
|
|
1058
1070
|
localState: t.localState,
|
|
1059
1071
|
rootState: t.rootState,
|
|
1060
1072
|
rootSetState: t.rootSetState,
|
|
1061
1073
|
context: t.context
|
|
1062
1074
|
});
|
|
1063
|
-
if (!Array.isArray(
|
|
1075
|
+
if (!Array.isArray(o))
|
|
1064
1076
|
return;
|
|
1065
|
-
const
|
|
1066
|
-
return
|
|
1077
|
+
const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item"), s = oo(e);
|
|
1078
|
+
return o.map((l, d) => ({
|
|
1067
1079
|
context: {
|
|
1068
1080
|
...t,
|
|
1069
1081
|
localState: {
|
|
1070
1082
|
...t.localState,
|
|
1071
|
-
$index:
|
|
1072
|
-
$item:
|
|
1073
|
-
[
|
|
1074
|
-
[`$${
|
|
1083
|
+
$index: d,
|
|
1084
|
+
$item: l,
|
|
1085
|
+
[i]: l,
|
|
1086
|
+
[`$${i}Index`]: d
|
|
1075
1087
|
}
|
|
1076
1088
|
},
|
|
1077
|
-
block:
|
|
1089
|
+
block: s
|
|
1078
1090
|
}));
|
|
1079
|
-
},
|
|
1091
|
+
}, io = (e, t) => {
|
|
1080
1092
|
var n;
|
|
1081
1093
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1082
1094
|
builderLinkComponent: t
|
|
1083
1095
|
} : {};
|
|
1084
|
-
},
|
|
1096
|
+
}, Xe = /* @__PURE__ */ new WeakMap(), so = (e, t, n) => {
|
|
1085
1097
|
var o;
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1098
|
+
if ((o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents) {
|
|
1099
|
+
let r = Xe.get(t);
|
|
1100
|
+
r || (r = /* @__PURE__ */ new Map(), Xe.set(t, r));
|
|
1101
|
+
let i = r.get(n);
|
|
1102
|
+
return i || (i = Object.fromEntries(Object.entries(t).filter(([s, a]) => !Pt(a, n))), r.set(n, i)), {
|
|
1103
|
+
builderComponents: i
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
return {};
|
|
1107
|
+
}, ao = (e, t) => {
|
|
1090
1108
|
var n;
|
|
1091
1109
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1092
1110
|
builderBlock: t
|
|
1093
1111
|
} : {};
|
|
1094
|
-
},
|
|
1112
|
+
}, lo = (e, t) => {
|
|
1095
1113
|
var n;
|
|
1096
1114
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1097
1115
|
builderContext: t
|
|
1098
1116
|
} : {};
|
|
1099
|
-
},
|
|
1117
|
+
}, co = (e) => e.toString(), uo = () => Promise.resolve().then(() => Io).then((e) => e.default).catch((e) => {
|
|
1100
1118
|
throw console.error(
|
|
1101
1119
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1102
1120
|
e
|
|
1103
1121
|
), e;
|
|
1104
|
-
}),
|
|
1122
|
+
}), po = () => import("./block-wrapper-e5lqTjH4.js").then((e) => e.default).catch((e) => {
|
|
1105
1123
|
throw console.error(
|
|
1106
1124
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1107
1125
|
e
|
|
1108
1126
|
), e;
|
|
1109
|
-
}),
|
|
1127
|
+
}), mo = () => import("./component-ref-lBfIlbHs.js").then((e) => e.default).catch((e) => {
|
|
1110
1128
|
throw console.error(
|
|
1111
1129
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1112
1130
|
e
|
|
1113
1131
|
), e;
|
|
1114
|
-
}),
|
|
1132
|
+
}), ho = () => import("./repeated-block-hte-wY9-.js").then((e) => e.default).catch((e) => {
|
|
1115
1133
|
throw console.error(
|
|
1116
1134
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1117
1135
|
e
|
|
1118
1136
|
), e;
|
|
1119
|
-
}),
|
|
1137
|
+
}), fo = () => import("./style-wrapper-y6_fa2q6.js").then((e) => e.default).catch((e) => {
|
|
1120
1138
|
throw console.error(
|
|
1121
1139
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1122
1140
|
e
|
|
1123
1141
|
), e;
|
|
1124
|
-
}),
|
|
1142
|
+
}), bo = y({
|
|
1125
1143
|
name: "block",
|
|
1126
1144
|
components: {
|
|
1127
|
-
StyleWrapper:
|
|
1128
|
-
RepeatedBlock:
|
|
1129
|
-
ComponentRef:
|
|
1130
|
-
BlockWrapper:
|
|
1131
|
-
DynamicDiv:
|
|
1145
|
+
StyleWrapper: Q(fo),
|
|
1146
|
+
RepeatedBlock: Q(ho),
|
|
1147
|
+
ComponentRef: Q(mo),
|
|
1148
|
+
BlockWrapper: Q(po),
|
|
1149
|
+
DynamicDiv: Q(uo)
|
|
1132
1150
|
},
|
|
1133
1151
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1134
1152
|
data() {
|
|
@@ -1137,12 +1155,16 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1137
1155
|
value: null,
|
|
1138
1156
|
update: !1
|
|
1139
1157
|
},
|
|
1140
|
-
|
|
1158
|
+
_componentRefProps: {
|
|
1159
|
+
value: null,
|
|
1160
|
+
deps: []
|
|
1161
|
+
},
|
|
1162
|
+
generateKey: co
|
|
1141
1163
|
};
|
|
1142
1164
|
},
|
|
1143
1165
|
mounted() {
|
|
1144
1166
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1145
|
-
t && e &&
|
|
1167
|
+
t && e && Yn(
|
|
1146
1168
|
t.map((n) => ({
|
|
1147
1169
|
...n,
|
|
1148
1170
|
elementId: e
|
|
@@ -1153,14 +1175,14 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1153
1175
|
},
|
|
1154
1176
|
computed: {
|
|
1155
1177
|
repeatItem() {
|
|
1156
|
-
return
|
|
1178
|
+
return ro({
|
|
1157
1179
|
block: this.block,
|
|
1158
1180
|
context: this.context
|
|
1159
1181
|
});
|
|
1160
1182
|
},
|
|
1161
1183
|
processedBlock() {
|
|
1162
1184
|
var t;
|
|
1163
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1185
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : Cn({
|
|
1164
1186
|
block: this.block,
|
|
1165
1187
|
localState: this.context.localState,
|
|
1166
1188
|
rootState: this.context.rootState,
|
|
@@ -1169,7 +1191,7 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1169
1191
|
});
|
|
1170
1192
|
},
|
|
1171
1193
|
blockComponent() {
|
|
1172
|
-
return
|
|
1194
|
+
return no({
|
|
1173
1195
|
block: this.processedBlock,
|
|
1174
1196
|
registeredComponents: this.registeredComponents,
|
|
1175
1197
|
model: this.context.model
|
|
@@ -1191,16 +1213,16 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1191
1213
|
return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? this.processedBlock.children ?? [] : [];
|
|
1192
1214
|
},
|
|
1193
1215
|
componentRefProps() {
|
|
1194
|
-
var
|
|
1195
|
-
return {
|
|
1216
|
+
var t, n, o;
|
|
1217
|
+
return this.processedBlock, this.context, this.context.rootState, this.context.localState, this.registeredComponents, this.linkComponent, {
|
|
1196
1218
|
blockChildren: this.processedBlock.children ?? [],
|
|
1197
|
-
componentRef: (
|
|
1219
|
+
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
1198
1220
|
componentOptions: {
|
|
1199
|
-
...
|
|
1200
|
-
...
|
|
1201
|
-
...
|
|
1202
|
-
...
|
|
1203
|
-
...
|
|
1221
|
+
...bn(this.processedBlock, this.context),
|
|
1222
|
+
...ao(this.blockComponent, this.processedBlock),
|
|
1223
|
+
...lo(this.blockComponent, this.context),
|
|
1224
|
+
...io(this.blockComponent, this.linkComponent),
|
|
1225
|
+
...so(
|
|
1204
1226
|
this.blockComponent,
|
|
1205
1227
|
this.registeredComponents,
|
|
1206
1228
|
this.context.model
|
|
@@ -1210,29 +1232,29 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1210
1232
|
linkComponent: this.linkComponent,
|
|
1211
1233
|
registeredComponents: this.registeredComponents,
|
|
1212
1234
|
builderBlock: this.processedBlock,
|
|
1213
|
-
includeBlockProps: ((
|
|
1214
|
-
isInteractive: !((
|
|
1235
|
+
includeBlockProps: ((n = this.blockComponent) == null ? void 0 : n.noWrap) === !0,
|
|
1236
|
+
isInteractive: !((o = this.blockComponent) != null && o.isRSC && E === "rsc")
|
|
1215
1237
|
};
|
|
1216
1238
|
}
|
|
1217
1239
|
}
|
|
1218
1240
|
});
|
|
1219
|
-
function
|
|
1241
|
+
function go(e, t, n, o, r, i) {
|
|
1220
1242
|
var b;
|
|
1221
|
-
const s =
|
|
1222
|
-
return e.canShowBlock ? (
|
|
1243
|
+
const s = v("StyleWrapper"), a = v("ComponentRef"), l = v("Block", !0), d = v("BlockWrapper"), p = v("RepeatedBlock");
|
|
1244
|
+
return e.canShowBlock ? (u(), h(w, { key: 0 }, [
|
|
1223
1245
|
$(s, {
|
|
1224
1246
|
block: e.processedBlock,
|
|
1225
1247
|
context: e.context,
|
|
1226
1248
|
id: e.block.id
|
|
1227
1249
|
}, null, 8, ["block", "context", "id"]),
|
|
1228
|
-
(b = e.blockComponent) != null && b.noWrap ? (
|
|
1229
|
-
e.repeatItem ? (
|
|
1250
|
+
(b = e.blockComponent) != null && b.noWrap ? (u(), h(w, { key: 1 }, [
|
|
1251
|
+
e.repeatItem ? (u(!0), h(w, { key: 1 }, x(e.repeatItem, (c, m) => (u(), k(p, {
|
|
1230
1252
|
key: e.generateKey(m),
|
|
1231
1253
|
repeatContext: c.context,
|
|
1232
1254
|
block: c.block,
|
|
1233
1255
|
registeredComponents: e.registeredComponents,
|
|
1234
1256
|
linkComponent: e.linkComponent
|
|
1235
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
1257
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), k(a, {
|
|
1236
1258
|
key: 0,
|
|
1237
1259
|
componentRef: e.componentRefProps.componentRef,
|
|
1238
1260
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -1244,21 +1266,21 @@ function to(e, t, n, o, r, i) {
|
|
|
1244
1266
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1245
1267
|
isInteractive: e.componentRefProps.isInteractive
|
|
1246
1268
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1247
|
-
], 64)) : (
|
|
1248
|
-
e.repeatItem ? (
|
|
1269
|
+
], 64)) : (u(), h(w, { key: 0 }, [
|
|
1270
|
+
e.repeatItem ? (u(!0), h(w, { key: 1 }, x(e.repeatItem, (c, m) => (u(), k(p, {
|
|
1249
1271
|
key: e.generateKey(m),
|
|
1250
1272
|
repeatContext: c.context,
|
|
1251
1273
|
block: c.block,
|
|
1252
1274
|
registeredComponents: e.registeredComponents,
|
|
1253
1275
|
linkComponent: e.linkComponent
|
|
1254
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
1276
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), k(d, {
|
|
1255
1277
|
key: 0,
|
|
1256
1278
|
Wrapper: e.Tag,
|
|
1257
1279
|
block: e.processedBlock,
|
|
1258
1280
|
context: e.context
|
|
1259
1281
|
}, {
|
|
1260
|
-
default:
|
|
1261
|
-
$(
|
|
1282
|
+
default: O(() => [
|
|
1283
|
+
$(a, {
|
|
1262
1284
|
componentRef: e.componentRefProps.componentRef,
|
|
1263
1285
|
componentOptions: e.componentRefProps.componentOptions,
|
|
1264
1286
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -1269,7 +1291,7 @@ function to(e, t, n, o, r, i) {
|
|
|
1269
1291
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1270
1292
|
isInteractive: e.componentRefProps.isInteractive
|
|
1271
1293
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1272
|
-
(
|
|
1294
|
+
(u(!0), h(w, null, x(e.childrenWithoutParentComponent, (c, m) => (u(), k(l, {
|
|
1273
1295
|
key: c.id,
|
|
1274
1296
|
block: c,
|
|
1275
1297
|
registeredComponents: e.registeredComponents,
|
|
@@ -1282,10 +1304,10 @@ function to(e, t, n, o, r, i) {
|
|
|
1282
1304
|
], 64))
|
|
1283
1305
|
], 64)) : T("", !0);
|
|
1284
1306
|
}
|
|
1285
|
-
const
|
|
1307
|
+
const At = /* @__PURE__ */ S(bo, [["render", go]]), Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1286
1308
|
__proto__: null,
|
|
1287
|
-
default:
|
|
1288
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1309
|
+
default: At
|
|
1310
|
+
}, Symbol.toStringTag, { value: "Module" })), yo = y({
|
|
1289
1311
|
name: "builder-blocks-wrapper",
|
|
1290
1312
|
props: [
|
|
1291
1313
|
"blocks",
|
|
@@ -1355,8 +1377,8 @@ const kt = /* @__PURE__ */ v(eo, [["render", to]]), bs = /* @__PURE__ */ Object.
|
|
|
1355
1377
|
}
|
|
1356
1378
|
}
|
|
1357
1379
|
});
|
|
1358
|
-
function
|
|
1359
|
-
return
|
|
1380
|
+
function So(e, t, n, o, r, i) {
|
|
1381
|
+
return u(), k(X(e.BlocksWrapper), I({
|
|
1360
1382
|
ref: "blocksWrapperRef",
|
|
1361
1383
|
class: e.className + " component-5vz8uirn7sc",
|
|
1362
1384
|
"builder-path": e.dataPath,
|
|
@@ -1366,15 +1388,15 @@ function oo(e, t, n, o, r, i) {
|
|
|
1366
1388
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
1367
1389
|
onKeyPress: (s) => e.onClick()
|
|
1368
1390
|
}, { ...e.BlocksWrapperProps }), {
|
|
1369
|
-
default:
|
|
1391
|
+
default: O(() => [
|
|
1370
1392
|
V(e.$slots, "default", {}, void 0, !0)
|
|
1371
1393
|
]),
|
|
1372
1394
|
_: 3
|
|
1373
1395
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1374
1396
|
}
|
|
1375
|
-
const
|
|
1397
|
+
const ko = /* @__PURE__ */ S(yo, [["render", So], ["__scopeId", "data-v-82fc93d6"]]), vo = y({
|
|
1376
1398
|
name: "builder-blocks",
|
|
1377
|
-
components: { BlocksWrapper:
|
|
1399
|
+
components: { BlocksWrapper: ko, Block: At },
|
|
1378
1400
|
props: [
|
|
1379
1401
|
"blocks",
|
|
1380
1402
|
"parent",
|
|
@@ -1387,27 +1409,27 @@ const ro = /* @__PURE__ */ v(no, [["render", oo], ["__scopeId", "data-v-82fc93d6
|
|
|
1387
1409
|
"registeredComponents"
|
|
1388
1410
|
],
|
|
1389
1411
|
inject: {
|
|
1390
|
-
builderContext:
|
|
1391
|
-
componentsContext:
|
|
1412
|
+
builderContext: Se.key,
|
|
1413
|
+
componentsContext: pt.key
|
|
1392
1414
|
}
|
|
1393
1415
|
});
|
|
1394
|
-
function
|
|
1395
|
-
var
|
|
1396
|
-
const s =
|
|
1397
|
-
return
|
|
1416
|
+
function Co(e, t, n, o, r, i) {
|
|
1417
|
+
var l, d, p, b;
|
|
1418
|
+
const s = v("Block"), a = v("BlocksWrapper");
|
|
1419
|
+
return u(), k(a, {
|
|
1398
1420
|
blocks: e.blocks,
|
|
1399
1421
|
parent: e.parent,
|
|
1400
1422
|
path: e.path,
|
|
1401
1423
|
styleProp: e.styleProp,
|
|
1402
|
-
BlocksWrapperProps: e.BlocksWrapperProps || ((
|
|
1424
|
+
BlocksWrapperProps: e.BlocksWrapperProps || ((l = e.context) == null ? void 0 : l.BlocksWrapperProps) || ((d = e.builderContext) == null ? void 0 : d.BlocksWrapperProps),
|
|
1403
1425
|
classNameProp: e.className,
|
|
1404
1426
|
BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((b = e.builderContext) == null ? void 0 : b.BlocksWrapper)
|
|
1405
1427
|
}, {
|
|
1406
|
-
default:
|
|
1428
|
+
default: O(() => [
|
|
1407
1429
|
V(e.$slots, "default"),
|
|
1408
|
-
e.blocks ? (
|
|
1430
|
+
e.blocks ? (u(!0), h(w, { key: 0 }, x(e.blocks, (c, m) => {
|
|
1409
1431
|
var f;
|
|
1410
|
-
return
|
|
1432
|
+
return u(), k(s, {
|
|
1411
1433
|
key: c.id,
|
|
1412
1434
|
block: c,
|
|
1413
1435
|
linkComponent: e.linkComponent,
|
|
@@ -1419,21 +1441,21 @@ function so(e, t, n, o, r, i) {
|
|
|
1419
1441
|
_: 3
|
|
1420
1442
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
1421
1443
|
}
|
|
1422
|
-
const
|
|
1444
|
+
const z = /* @__PURE__ */ S(vo, [["render", Co]]), To = y({
|
|
1423
1445
|
name: "dynamic-div",
|
|
1424
1446
|
props: []
|
|
1425
1447
|
});
|
|
1426
|
-
function
|
|
1427
|
-
return
|
|
1448
|
+
function wo(e, t, n, o, r, i) {
|
|
1449
|
+
return u(), h("div", null, [
|
|
1428
1450
|
V(e.$slots, "default")
|
|
1429
1451
|
]);
|
|
1430
1452
|
}
|
|
1431
|
-
const
|
|
1453
|
+
const ne = /* @__PURE__ */ S(To, [["render", wo]]), Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1432
1454
|
__proto__: null,
|
|
1433
|
-
default:
|
|
1434
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1455
|
+
default: ne
|
|
1456
|
+
}, Symbol.toStringTag, { value: "Module" })), he = y({
|
|
1435
1457
|
render() {
|
|
1436
|
-
return
|
|
1458
|
+
return at("style", {
|
|
1437
1459
|
innerHTML: this.styles,
|
|
1438
1460
|
"data-id": this.id,
|
|
1439
1461
|
nonce: this.nonce
|
|
@@ -1441,7 +1463,7 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
|
|
|
1441
1463
|
},
|
|
1442
1464
|
name: "inlined-styles",
|
|
1443
1465
|
props: ["styles", "id", "nonce"]
|
|
1444
|
-
}),
|
|
1466
|
+
}), Y = {
|
|
1445
1467
|
xsmall: {
|
|
1446
1468
|
min: 0,
|
|
1447
1469
|
default: 160,
|
|
@@ -1462,8 +1484,21 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
|
|
|
1462
1484
|
default: 991,
|
|
1463
1485
|
max: 1200
|
|
1464
1486
|
}
|
|
1465
|
-
},
|
|
1466
|
-
const t =
|
|
1487
|
+
}, Ws = (e, t = Y) => `@media (max-width: ${t[e].max}px)`, $o = (e) => {
|
|
1488
|
+
const t = {
|
|
1489
|
+
xsmall: {
|
|
1490
|
+
...Y.xsmall
|
|
1491
|
+
},
|
|
1492
|
+
small: {
|
|
1493
|
+
...Y.small
|
|
1494
|
+
},
|
|
1495
|
+
medium: {
|
|
1496
|
+
...Y.medium
|
|
1497
|
+
},
|
|
1498
|
+
large: {
|
|
1499
|
+
...Y.large
|
|
1500
|
+
}
|
|
1501
|
+
};
|
|
1467
1502
|
if (!e)
|
|
1468
1503
|
return t;
|
|
1469
1504
|
const {
|
|
@@ -1472,11 +1507,11 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
|
|
|
1472
1507
|
medium: r
|
|
1473
1508
|
} = e;
|
|
1474
1509
|
if (n) {
|
|
1475
|
-
const
|
|
1510
|
+
const l = Math.floor(n / 2);
|
|
1476
1511
|
t.xsmall = {
|
|
1477
1512
|
max: n,
|
|
1478
|
-
min:
|
|
1479
|
-
default:
|
|
1513
|
+
min: l,
|
|
1514
|
+
default: l + 1
|
|
1480
1515
|
};
|
|
1481
1516
|
}
|
|
1482
1517
|
if (!o || !r)
|
|
@@ -1493,20 +1528,20 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
|
|
|
1493
1528
|
min: s,
|
|
1494
1529
|
default: s + 1
|
|
1495
1530
|
};
|
|
1496
|
-
const
|
|
1531
|
+
const a = t.medium.max + 1;
|
|
1497
1532
|
return t.large = {
|
|
1498
1533
|
max: 2e3,
|
|
1499
1534
|
// TODO: decide upper limit
|
|
1500
|
-
min:
|
|
1501
|
-
default:
|
|
1535
|
+
min: a,
|
|
1536
|
+
default: a + 1
|
|
1502
1537
|
}, t;
|
|
1503
|
-
},
|
|
1538
|
+
}, Ro = (e) => `builder-columns ${e}-breakpoints`, Eo = y({
|
|
1504
1539
|
name: "builder-columns",
|
|
1505
1540
|
components: {
|
|
1506
|
-
InlinedStyles:
|
|
1507
|
-
DynamicRenderer:
|
|
1508
|
-
Blocks:
|
|
1509
|
-
DynamicDiv:
|
|
1541
|
+
InlinedStyles: he,
|
|
1542
|
+
DynamicRenderer: Ee,
|
|
1543
|
+
Blocks: z,
|
|
1544
|
+
DynamicDiv: ne
|
|
1510
1545
|
},
|
|
1511
1546
|
props: [
|
|
1512
1547
|
"space",
|
|
@@ -1519,7 +1554,7 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
|
|
|
1519
1554
|
"builderComponents"
|
|
1520
1555
|
],
|
|
1521
1556
|
data() {
|
|
1522
|
-
return { TARGET:
|
|
1557
|
+
return { TARGET: E, getColumnsClass: Ro };
|
|
1523
1558
|
},
|
|
1524
1559
|
computed: {
|
|
1525
1560
|
gutterSize() {
|
|
@@ -1598,7 +1633,7 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
|
|
|
1598
1633
|
},
|
|
1599
1634
|
getWidthForBreakpointSize(e) {
|
|
1600
1635
|
var n, o;
|
|
1601
|
-
return
|
|
1636
|
+
return $o(
|
|
1602
1637
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1603
1638
|
)[e].max;
|
|
1604
1639
|
},
|
|
@@ -1635,33 +1670,33 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
|
|
|
1635
1670
|
...e.link ? {
|
|
1636
1671
|
href: e.link
|
|
1637
1672
|
} : {},
|
|
1638
|
-
[
|
|
1639
|
-
style:
|
|
1673
|
+
[H()]: "builder-column",
|
|
1674
|
+
style: Et(this.columnCssVars(t))
|
|
1640
1675
|
};
|
|
1641
1676
|
}
|
|
1642
1677
|
}
|
|
1643
1678
|
});
|
|
1644
|
-
function
|
|
1645
|
-
var
|
|
1646
|
-
const s =
|
|
1647
|
-
return
|
|
1648
|
-
class: e.getColumnsClass((
|
|
1679
|
+
function Po(e, t, n, o, r, i) {
|
|
1680
|
+
var d;
|
|
1681
|
+
const s = v("InlinedStyles"), a = v("Blocks"), l = v("DynamicRenderer");
|
|
1682
|
+
return u(), h("div", I({
|
|
1683
|
+
class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-1be3j8m9ewb",
|
|
1649
1684
|
style: e.columnsCssVars()
|
|
1650
1685
|
}, {}), [
|
|
1651
|
-
e.TARGET !== "reactNative" ? (
|
|
1686
|
+
e.TARGET !== "reactNative" ? (u(), k(s, {
|
|
1652
1687
|
key: 0,
|
|
1653
1688
|
id: "builderio-columns",
|
|
1654
1689
|
styles: e.columnsStyles(),
|
|
1655
1690
|
nonce: e.builderContext.nonce
|
|
1656
1691
|
}, null, 8, ["styles", "nonce"])) : T("", !0),
|
|
1657
|
-
(
|
|
1692
|
+
(u(!0), h(w, null, x(e.columns, (p, b) => (u(), k(l, {
|
|
1658
1693
|
key: b,
|
|
1659
1694
|
TagName: e.getTagName(p),
|
|
1660
1695
|
actionAttributes: {},
|
|
1661
1696
|
attributes: e.getAttributes(p, b)
|
|
1662
1697
|
}, {
|
|
1663
|
-
default:
|
|
1664
|
-
$(
|
|
1698
|
+
default: O(() => [
|
|
1699
|
+
$(a, {
|
|
1665
1700
|
path: `columns.${b}.blocks`,
|
|
1666
1701
|
parent: e.builderBlock.id,
|
|
1667
1702
|
context: e.builderContext,
|
|
@@ -1677,47 +1712,47 @@ function ho(e, t, n, o, r, i) {
|
|
|
1677
1712
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1678
1713
|
], 16);
|
|
1679
1714
|
}
|
|
1680
|
-
const
|
|
1715
|
+
const Ao = /* @__PURE__ */ S(Eo, [["render", Po], ["__scopeId", "data-v-ab15749a"]]), Bo = y({
|
|
1681
1716
|
name: "builder-fragment-component",
|
|
1682
1717
|
props: []
|
|
1683
1718
|
});
|
|
1684
|
-
function
|
|
1685
|
-
return
|
|
1719
|
+
function Vo(e, t, n, o, r, i) {
|
|
1720
|
+
return u(), h("span", null, [
|
|
1686
1721
|
V(e.$slots, "default")
|
|
1687
1722
|
]);
|
|
1688
1723
|
}
|
|
1689
|
-
const
|
|
1690
|
-
function
|
|
1724
|
+
const No = /* @__PURE__ */ S(Bo, [["render", Vo]]);
|
|
1725
|
+
function Ze(e) {
|
|
1691
1726
|
return e.replace(/http(s)?:/, "");
|
|
1692
1727
|
}
|
|
1693
|
-
function
|
|
1728
|
+
function Wo(e = "", t, n) {
|
|
1694
1729
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1695
1730
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1696
1731
|
}
|
|
1697
|
-
function
|
|
1732
|
+
function Oo(e, t) {
|
|
1698
1733
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1699
1734
|
return e;
|
|
1700
1735
|
if (t === "master")
|
|
1701
|
-
return
|
|
1736
|
+
return Ze(e);
|
|
1702
1737
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1703
1738
|
if (n) {
|
|
1704
1739
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
1705
|
-
return
|
|
1740
|
+
return Ze(`${o[0]}_${i}${r}`);
|
|
1706
1741
|
}
|
|
1707
1742
|
return null;
|
|
1708
1743
|
}
|
|
1709
|
-
function
|
|
1744
|
+
function se(e) {
|
|
1710
1745
|
if (!e)
|
|
1711
1746
|
return e;
|
|
1712
1747
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1713
1748
|
if (e.match(/builder\.io/)) {
|
|
1714
1749
|
let n = e;
|
|
1715
1750
|
const o = Number(e.split("?width=")[1]);
|
|
1716
|
-
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) => `${Wo(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1717
1752
|
}
|
|
1718
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1753
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Oo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1719
1754
|
}
|
|
1720
|
-
const
|
|
1755
|
+
const Do = y({
|
|
1721
1756
|
name: "builder-image",
|
|
1722
1757
|
props: [
|
|
1723
1758
|
"lazy",
|
|
@@ -1747,10 +1782,10 @@ const ko = y({
|
|
|
1747
1782
|
if (!this.noWebp) {
|
|
1748
1783
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
1749
1784
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
1750
|
-
return console.debug("Removed given srcset"),
|
|
1785
|
+
return console.debug("Removed given srcset"), se(t);
|
|
1751
1786
|
} else if (this.image && !this.srcset)
|
|
1752
|
-
return
|
|
1753
|
-
return
|
|
1787
|
+
return se(t);
|
|
1788
|
+
return se(t);
|
|
1754
1789
|
}
|
|
1755
1790
|
},
|
|
1756
1791
|
webpSrcSet() {
|
|
@@ -1771,60 +1806,60 @@ const ko = y({
|
|
|
1771
1806
|
return this.aspectRatio ? e : void 0;
|
|
1772
1807
|
}
|
|
1773
1808
|
}
|
|
1774
|
-
}),
|
|
1809
|
+
}), Uo = ["srcset", "sizes"], xo = ["loading", "fetchpriority", "alt", "title", "src", "srcset", "sizes"], Fo = {
|
|
1775
1810
|
key: 2,
|
|
1776
1811
|
class: "div-t43jfuqn6g-2"
|
|
1777
1812
|
};
|
|
1778
|
-
function
|
|
1779
|
-
var s,
|
|
1780
|
-
return
|
|
1813
|
+
function Lo(e, t, n, o, r, i) {
|
|
1814
|
+
var s, a, l, d, p, b;
|
|
1815
|
+
return u(), h(w, null, [
|
|
1781
1816
|
K("picture", null, [
|
|
1782
|
-
e.webpSrcSet ? (
|
|
1817
|
+
e.webpSrcSet ? (u(), h("source", {
|
|
1783
1818
|
key: 0,
|
|
1784
1819
|
type: "image/webp",
|
|
1785
1820
|
srcset: e.webpSrcSet,
|
|
1786
1821
|
sizes: e.sizesToUse
|
|
1787
|
-
}, null, 8,
|
|
1822
|
+
}, null, 8, Uo)) : T("", !0),
|
|
1788
1823
|
K("img", {
|
|
1789
1824
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1790
1825
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
1791
1826
|
alt: e.altText || "",
|
|
1792
1827
|
title: e.title,
|
|
1793
|
-
style:
|
|
1828
|
+
style: M({
|
|
1794
1829
|
objectPosition: `var(--builder-image-position, ${e.backgroundPosition || "center"})`,
|
|
1795
1830
|
objectFit: e.backgroundSize || "cover",
|
|
1796
1831
|
...e.aspectRatioCss
|
|
1797
1832
|
}),
|
|
1798
|
-
class:
|
|
1833
|
+
class: ee(
|
|
1799
1834
|
"builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
|
|
1800
1835
|
),
|
|
1801
1836
|
src: e.image,
|
|
1802
1837
|
srcset: e.srcSetToUse,
|
|
1803
1838
|
sizes: e.sizesToUse
|
|
1804
|
-
}, null, 14,
|
|
1839
|
+
}, null, 14, xo)
|
|
1805
1840
|
]),
|
|
1806
|
-
e.aspectRatio && !((
|
|
1841
|
+
e.aspectRatio && !((a = (s = e.builderBlock) == null ? void 0 : s.children) != null && a.length && e.fitContent) ? (u(), h("div", {
|
|
1807
1842
|
key: 0,
|
|
1808
1843
|
class: "builder-image-sizer div-t43jfuqn6g",
|
|
1809
|
-
style:
|
|
1844
|
+
style: M({
|
|
1810
1845
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1811
1846
|
})
|
|
1812
1847
|
}, null, 4)) : T("", !0),
|
|
1813
|
-
(
|
|
1814
|
-
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (
|
|
1848
|
+
(d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && e.fitContent ? V(e.$slots, "default", { key: 1 }, void 0, !0) : T("", !0),
|
|
1849
|
+
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (u(), h("div", Fo, [
|
|
1815
1850
|
V(e.$slots, "default", {}, void 0, !0)
|
|
1816
1851
|
])) : T("", !0)
|
|
1817
1852
|
], 64);
|
|
1818
1853
|
}
|
|
1819
|
-
const
|
|
1854
|
+
const Mo = /* @__PURE__ */ S(Do, [["render", Lo], ["__scopeId", "data-v-8fff0ea5"]]), Ho = y({
|
|
1820
1855
|
name: "builder-section-component",
|
|
1821
1856
|
props: ["attributes", "maxWidth"],
|
|
1822
1857
|
data() {
|
|
1823
1858
|
return { filterAttrs: N };
|
|
1824
1859
|
}
|
|
1825
1860
|
});
|
|
1826
|
-
function
|
|
1827
|
-
return
|
|
1861
|
+
function jo(e, t, n, o, r, i) {
|
|
1862
|
+
return u(), h("section", I({
|
|
1828
1863
|
style: {
|
|
1829
1864
|
width: "100%",
|
|
1830
1865
|
alignSelf: "stretch",
|
|
@@ -1841,31 +1876,31 @@ function Eo(e, t, n, o, r, i) {
|
|
|
1841
1876
|
V(e.$slots, "default")
|
|
1842
1877
|
], 16);
|
|
1843
1878
|
}
|
|
1844
|
-
const
|
|
1845
|
-
function
|
|
1846
|
-
function r(
|
|
1847
|
-
return typeof
|
|
1879
|
+
const zo = /* @__PURE__ */ S(Ho, [["render", jo]]);
|
|
1880
|
+
function qo(e, t, n, o) {
|
|
1881
|
+
function r(d) {
|
|
1882
|
+
return typeof d == "string";
|
|
1848
1883
|
}
|
|
1849
|
-
function i(
|
|
1850
|
-
return typeof
|
|
1884
|
+
function i(d) {
|
|
1885
|
+
return typeof d == "number";
|
|
1851
1886
|
}
|
|
1852
|
-
function s(
|
|
1887
|
+
function s(d, p) {
|
|
1853
1888
|
return (() => {
|
|
1854
1889
|
const c = p.property, m = p.operator;
|
|
1855
1890
|
let f = p.value;
|
|
1856
1891
|
if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (f = p.value.slice(0, -1)), !(c && m))
|
|
1857
1892
|
return !0;
|
|
1858
1893
|
if (Array.isArray(f))
|
|
1859
|
-
return m === "isNot" ? f.every((P) => s(
|
|
1894
|
+
return m === "isNot" ? f.every((P) => s(d, {
|
|
1860
1895
|
property: c,
|
|
1861
1896
|
operator: m,
|
|
1862
1897
|
value: P
|
|
1863
|
-
})) : !!f.find((P) => s(
|
|
1898
|
+
})) : !!f.find((P) => s(d, {
|
|
1864
1899
|
property: c,
|
|
1865
1900
|
operator: m,
|
|
1866
1901
|
value: P
|
|
1867
1902
|
}));
|
|
1868
|
-
const g =
|
|
1903
|
+
const g = d[c];
|
|
1869
1904
|
if (Array.isArray(g))
|
|
1870
1905
|
return g.includes(f);
|
|
1871
1906
|
switch (m) {
|
|
@@ -1892,14 +1927,14 @@ function Ao(e, t, n, o) {
|
|
|
1892
1927
|
}
|
|
1893
1928
|
})();
|
|
1894
1929
|
}
|
|
1895
|
-
const
|
|
1930
|
+
const a = {
|
|
1896
1931
|
query: t,
|
|
1897
1932
|
startDate: n,
|
|
1898
1933
|
endDate: o
|
|
1899
|
-
},
|
|
1900
|
-
return
|
|
1934
|
+
}, l = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
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));
|
|
1901
1936
|
}
|
|
1902
|
-
const
|
|
1937
|
+
const Ko = `function getStudioUserAttributes() {
|
|
1903
1938
|
const params = new URLSearchParams(window.location.search);
|
|
1904
1939
|
if (params.get('builder.preview') !== 'BUILDER_STUDIO') {
|
|
1905
1940
|
return {};
|
|
@@ -1912,7 +1947,7 @@ const Bo = `function getStudioUserAttributes() {
|
|
|
1912
1947
|
}
|
|
1913
1948
|
});
|
|
1914
1949
|
return attributes;
|
|
1915
|
-
}`,
|
|
1950
|
+
}`, Go = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1916
1951
|
if (!navigator.cookieEnabled) {
|
|
1917
1952
|
return;
|
|
1918
1953
|
}
|
|
@@ -1958,7 +1993,7 @@ const Bo = `function getStudioUserAttributes() {
|
|
|
1958
1993
|
thisScript.remove();
|
|
1959
1994
|
}
|
|
1960
1995
|
}
|
|
1961
|
-
}`,
|
|
1996
|
+
}`, Jo = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
1962
1997
|
function isString(val) {
|
|
1963
1998
|
return typeof val === 'string';
|
|
1964
1999
|
}
|
|
@@ -2036,7 +2071,7 @@ const Bo = `function getStudioUserAttributes() {
|
|
|
2036
2071
|
return item.query.every(filter => {
|
|
2037
2072
|
return objectMatchesQuery(userAttributes, filter);
|
|
2038
2073
|
});
|
|
2039
|
-
}`,
|
|
2074
|
+
}`, _o = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
2040
2075
|
function getCookie(name) {
|
|
2041
2076
|
const nameEQ = name + '=';
|
|
2042
2077
|
const ca = document.cookie.split(';');
|
|
@@ -2075,11 +2110,11 @@ const Bo = `function getStudioUserAttributes() {
|
|
|
2075
2110
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2076
2111
|
}
|
|
2077
2112
|
}
|
|
2078
|
-
}`,
|
|
2079
|
-
function
|
|
2080
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
2113
|
+
}`, ae = "default", et = "filterWithCustomTargeting", Ce = "builderIoPersonalization", Te = "updateVisibilityStylesScript", tt = "builderIoStudioUserAttributes", Qo = "PersonalizationContainer", Bt = ["react", "vue", "svelte", "qwik"], Vt = ["vue", "svelte", "qwik"];
|
|
2114
|
+
function Yo(e, t) {
|
|
2115
|
+
return !(e && e.length > 0) || !t ? !1 : Vt.includes(E) ? !0 : !R();
|
|
2081
2116
|
}
|
|
2082
|
-
function
|
|
2117
|
+
function Xo({
|
|
2083
2118
|
variants: e,
|
|
2084
2119
|
previewingIndex: t,
|
|
2085
2120
|
isHydrated: n,
|
|
@@ -2089,7 +2124,7 @@ function Uo({
|
|
|
2089
2124
|
const i = {
|
|
2090
2125
|
blocks: r ?? [],
|
|
2091
2126
|
path: "this.children",
|
|
2092
|
-
index:
|
|
2127
|
+
index: ae
|
|
2093
2128
|
};
|
|
2094
2129
|
if (n && A()) {
|
|
2095
2130
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
@@ -2103,39 +2138,39 @@ function Uo({
|
|
|
2103
2138
|
}
|
|
2104
2139
|
return i;
|
|
2105
2140
|
}
|
|
2106
|
-
if (
|
|
2141
|
+
if (R()) {
|
|
2107
2142
|
const s = o == null ? void 0 : o[0];
|
|
2108
2143
|
if (s && e) {
|
|
2109
|
-
const
|
|
2110
|
-
if (
|
|
2144
|
+
const a = e.indexOf(s);
|
|
2145
|
+
if (a !== -1)
|
|
2111
2146
|
return {
|
|
2112
2147
|
blocks: s.blocks,
|
|
2113
|
-
path: `variants.${
|
|
2114
|
-
index:
|
|
2148
|
+
path: `variants.${a}.blocks`,
|
|
2149
|
+
index: a
|
|
2115
2150
|
};
|
|
2116
2151
|
}
|
|
2117
2152
|
}
|
|
2118
2153
|
return i;
|
|
2119
2154
|
}
|
|
2120
|
-
const
|
|
2155
|
+
const we = (e) => {
|
|
2121
2156
|
var t;
|
|
2122
|
-
return Array.isArray(e) ? e.some(
|
|
2123
|
-
},
|
|
2157
|
+
return Array.isArray(e) ? e.some(we) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === Qo ? !0 : Object.values(e).some(we);
|
|
2158
|
+
}, Zo = (e) => we(e), er = () => `
|
|
2124
2159
|
(function() {
|
|
2125
|
-
if (!window.${
|
|
2126
|
-
window.${
|
|
2160
|
+
if (!window.${tt}) {
|
|
2161
|
+
window.${tt} = ${Ko};
|
|
2127
2162
|
}
|
|
2128
|
-
if (!window.${
|
|
2129
|
-
window.${
|
|
2163
|
+
if (!window.${et}) {
|
|
2164
|
+
window.${et} = ${Jo};
|
|
2130
2165
|
}
|
|
2131
|
-
if (!window.${
|
|
2132
|
-
window.${
|
|
2166
|
+
if (!window.${Ce}) {
|
|
2167
|
+
window.${Ce} = ${Go};
|
|
2133
2168
|
}
|
|
2134
|
-
if (!window.${
|
|
2135
|
-
window.${
|
|
2169
|
+
if (!window.${Te}) {
|
|
2170
|
+
window.${Te} = ${_o};
|
|
2136
2171
|
}
|
|
2137
2172
|
})();
|
|
2138
|
-
`,
|
|
2173
|
+
`, Nt = E === "react", tr = (e, t, n) => `window.${Ce}(${JSON.stringify(e)}, "${t}", ${Nt}${n ? `, "${n}"` : ""})`, nr = (e, t, n) => `window.${Te}(${JSON.stringify(e)}, "${t}", ${Nt}${n ? `, "${n}"` : ""})`, fe = {
|
|
2139
2174
|
"@type": "@builder.io/sdk:Element",
|
|
2140
2175
|
layerName: "Accordion item title",
|
|
2141
2176
|
responsiveStyles: {
|
|
@@ -2164,7 +2199,7 @@ const Ce = (e) => {
|
|
|
2164
2199
|
}
|
|
2165
2200
|
}
|
|
2166
2201
|
}]
|
|
2167
|
-
},
|
|
2202
|
+
}, be = {
|
|
2168
2203
|
"@type": "@builder.io/sdk:Element",
|
|
2169
2204
|
layerName: "Accordion item detail",
|
|
2170
2205
|
responsiveStyles: {
|
|
@@ -2195,7 +2230,7 @@ const Ce = (e) => {
|
|
|
2195
2230
|
}
|
|
2196
2231
|
}
|
|
2197
2232
|
}]
|
|
2198
|
-
},
|
|
2233
|
+
}, or = {
|
|
2199
2234
|
name: "Builder:Accordion",
|
|
2200
2235
|
canHaveChildren: !0,
|
|
2201
2236
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2212,19 +2247,19 @@ const Ce = (e) => {
|
|
|
2212
2247
|
name: "title",
|
|
2213
2248
|
type: "uiBlocks",
|
|
2214
2249
|
hideFromUI: !0,
|
|
2215
|
-
defaultValue: [
|
|
2250
|
+
defaultValue: [fe]
|
|
2216
2251
|
}, {
|
|
2217
2252
|
name: "detail",
|
|
2218
2253
|
type: "uiBlocks",
|
|
2219
2254
|
hideFromUI: !0,
|
|
2220
|
-
defaultValue: [
|
|
2255
|
+
defaultValue: [be]
|
|
2221
2256
|
}],
|
|
2222
2257
|
defaultValue: [{
|
|
2223
|
-
title: [
|
|
2224
|
-
detail: [
|
|
2258
|
+
title: [fe],
|
|
2259
|
+
detail: [be]
|
|
2225
2260
|
}, {
|
|
2226
|
-
title: [
|
|
2227
|
-
detail: [
|
|
2261
|
+
title: [fe],
|
|
2262
|
+
detail: [be]
|
|
2228
2263
|
}],
|
|
2229
2264
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2230
2265
|
}, {
|
|
@@ -2259,9 +2294,9 @@ const Ce = (e) => {
|
|
|
2259
2294
|
builderComponents: !0,
|
|
2260
2295
|
builderLinkComponent: !0
|
|
2261
2296
|
}
|
|
2262
|
-
},
|
|
2297
|
+
}, rr = (e) => e.toString(), ir = y({
|
|
2263
2298
|
name: "builder-accordion",
|
|
2264
|
-
components: { Blocks:
|
|
2299
|
+
components: { Blocks: z },
|
|
2265
2300
|
props: [
|
|
2266
2301
|
"grid",
|
|
2267
2302
|
"oneAtATime",
|
|
@@ -2273,7 +2308,7 @@ const Ce = (e) => {
|
|
|
2273
2308
|
"builderLinkComponent"
|
|
2274
2309
|
],
|
|
2275
2310
|
data() {
|
|
2276
|
-
return { open: [], convertOrderNumberToString:
|
|
2311
|
+
return { open: [], convertOrderNumberToString: rr };
|
|
2277
2312
|
},
|
|
2278
2313
|
computed: {
|
|
2279
2314
|
onlyOneAtATime() {
|
|
@@ -2319,11 +2354,11 @@ const Ce = (e) => {
|
|
|
2319
2354
|
continue;
|
|
2320
2355
|
const s = r.getBoundingClientRect();
|
|
2321
2356
|
if (s.left > i.left) {
|
|
2322
|
-
const
|
|
2357
|
+
const a = parseInt(
|
|
2323
2358
|
r.getAttribute("data-index") || "",
|
|
2324
2359
|
10
|
|
2325
2360
|
);
|
|
2326
|
-
isNaN(
|
|
2361
|
+
isNaN(a) || (i = s, e = a);
|
|
2327
2362
|
} else
|
|
2328
2363
|
break;
|
|
2329
2364
|
}
|
|
@@ -2354,43 +2389,43 @@ const Ce = (e) => {
|
|
|
2354
2389
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2355
2390
|
}
|
|
2356
2391
|
}
|
|
2357
|
-
}),
|
|
2358
|
-
function
|
|
2359
|
-
const s =
|
|
2360
|
-
return
|
|
2392
|
+
}), sr = ["data-index", "onClick"];
|
|
2393
|
+
function ar(e, t, n, o, r, i) {
|
|
2394
|
+
const s = v("Blocks");
|
|
2395
|
+
return u(), h("div", {
|
|
2361
2396
|
class: "builder-accordion",
|
|
2362
|
-
style:
|
|
2397
|
+
style: M(e.accordionStyles)
|
|
2363
2398
|
}, [
|
|
2364
|
-
(
|
|
2399
|
+
(u(!0), h(w, null, x(e.items, (a, l) => (u(), h(w, { key: l }, [
|
|
2365
2400
|
K("div", {
|
|
2366
|
-
class:
|
|
2367
|
-
style:
|
|
2401
|
+
class: ee(e.getAccordionTitleClassName(l)),
|
|
2402
|
+
style: M({
|
|
2368
2403
|
...e.accordionTitleStyles,
|
|
2369
2404
|
...e.grid && {
|
|
2370
2405
|
width: e.gridRowWidth,
|
|
2371
|
-
order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(
|
|
2406
|
+
order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(l) : e.convertOrderNumberToString(l + 1)
|
|
2372
2407
|
}
|
|
2373
2408
|
}),
|
|
2374
|
-
"data-index":
|
|
2375
|
-
onClick: async (
|
|
2409
|
+
"data-index": l,
|
|
2410
|
+
onClick: async (d) => e.onClick(l)
|
|
2376
2411
|
}, [
|
|
2377
2412
|
$(s, {
|
|
2378
|
-
blocks:
|
|
2379
|
-
path: `items.${
|
|
2413
|
+
blocks: a.title,
|
|
2414
|
+
path: `items.${l}.title`,
|
|
2380
2415
|
parent: e.builderBlock.id,
|
|
2381
2416
|
context: e.builderContext,
|
|
2382
2417
|
registeredComponents: e.builderComponents,
|
|
2383
2418
|
linkComponent: e.builderLinkComponent
|
|
2384
2419
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2385
|
-
], 14,
|
|
2386
|
-
e.open.includes(
|
|
2420
|
+
], 14, sr),
|
|
2421
|
+
e.open.includes(l) ? (u(), h("div", {
|
|
2387
2422
|
key: 0,
|
|
2388
|
-
class:
|
|
2389
|
-
style:
|
|
2423
|
+
class: ee(e.getAccordionDetailClassName(l)),
|
|
2424
|
+
style: M(e.accordionDetailStyles)
|
|
2390
2425
|
}, [
|
|
2391
2426
|
$(s, {
|
|
2392
|
-
blocks:
|
|
2393
|
-
path: `items.${
|
|
2427
|
+
blocks: a.detail,
|
|
2428
|
+
path: `items.${l}.detail`,
|
|
2394
2429
|
parent: e.builderBlock.id,
|
|
2395
2430
|
context: e.builderContext,
|
|
2396
2431
|
registeredComponents: e.builderComponents,
|
|
@@ -2400,7 +2435,7 @@ function Ko(e, t, n, o, r, i) {
|
|
|
2400
2435
|
], 64))), 128))
|
|
2401
2436
|
], 4);
|
|
2402
2437
|
}
|
|
2403
|
-
const
|
|
2438
|
+
const lr = /* @__PURE__ */ S(ir, [["render", ar]]), cr = {
|
|
2404
2439
|
name: "Core:Button",
|
|
2405
2440
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2406
2441
|
defaultStyles: {
|
|
@@ -2436,7 +2471,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2436
2471
|
shouldReceiveBuilderProps: {
|
|
2437
2472
|
builderLinkComponent: !0
|
|
2438
2473
|
}
|
|
2439
|
-
},
|
|
2474
|
+
}, dr = {
|
|
2440
2475
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2441
2476
|
name: "Columns",
|
|
2442
2477
|
isRSC: !0,
|
|
@@ -2615,7 +2650,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2615
2650
|
});
|
|
2616
2651
|
}
|
|
2617
2652
|
const n = e.get("columns");
|
|
2618
|
-
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((
|
|
2653
|
+
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
|
|
2619
2654
|
}
|
|
2620
2655
|
}, {
|
|
2621
2656
|
name: "space",
|
|
@@ -2643,13 +2678,13 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2643
2678
|
builderComponents: !0,
|
|
2644
2679
|
builderLinkComponent: !0
|
|
2645
2680
|
}
|
|
2646
|
-
},
|
|
2681
|
+
}, ur = {
|
|
2647
2682
|
name: "Fragment",
|
|
2648
2683
|
static: !0,
|
|
2649
2684
|
hidden: !0,
|
|
2650
2685
|
canHaveChildren: !0,
|
|
2651
2686
|
noWrap: !0
|
|
2652
|
-
},
|
|
2687
|
+
}, We = ["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"], pr = ["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"], mr = {
|
|
2653
2688
|
name: "Image",
|
|
2654
2689
|
static: !0,
|
|
2655
2690
|
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",
|
|
@@ -2664,22 +2699,22 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2664
2699
|
name: "image",
|
|
2665
2700
|
type: "file",
|
|
2666
2701
|
bubble: !0,
|
|
2667
|
-
allowedFileTypes:
|
|
2702
|
+
allowedFileTypes: We,
|
|
2668
2703
|
required: !0,
|
|
2669
2704
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2670
2705
|
onChange: (e) => {
|
|
2671
2706
|
e.delete("srcset"), e.delete("noWebp");
|
|
2672
|
-
function n(s,
|
|
2673
|
-
return new Promise((
|
|
2707
|
+
function n(s, a = 6e4) {
|
|
2708
|
+
return new Promise((l, d) => {
|
|
2674
2709
|
const p = document.createElement("img");
|
|
2675
2710
|
let b = !1;
|
|
2676
2711
|
p.onload = () => {
|
|
2677
|
-
b = !0,
|
|
2712
|
+
b = !0, l(p);
|
|
2678
2713
|
}, p.addEventListener("error", (c) => {
|
|
2679
|
-
console.warn("Image load failed", c.error),
|
|
2714
|
+
console.warn("Image load failed", c.error), d(c.error);
|
|
2680
2715
|
}), p.src = s, setTimeout(() => {
|
|
2681
|
-
b ||
|
|
2682
|
-
},
|
|
2716
|
+
b || d(new Error("Image load timed out"));
|
|
2717
|
+
}, a);
|
|
2683
2718
|
});
|
|
2684
2719
|
}
|
|
2685
2720
|
function o(s) {
|
|
@@ -2690,8 +2725,8 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2690
2725
|
s.type.includes("svg") && e.set("noWebp", !0);
|
|
2691
2726
|
}), r && (!i || i === 0.7041))
|
|
2692
2727
|
return n(r).then((s) => {
|
|
2693
|
-
const
|
|
2694
|
-
e.get("image") === r && (!
|
|
2728
|
+
const a = e.get("aspectRatio");
|
|
2729
|
+
e.get("image") === r && (!a || a === 0.7041) && s.width && s.height && (e.set("aspectRatio", o(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
|
|
2695
2730
|
});
|
|
2696
2731
|
}
|
|
2697
2732
|
}, {
|
|
@@ -2762,7 +2797,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2762
2797
|
shouldReceiveBuilderProps: {
|
|
2763
2798
|
builderBlock: !0
|
|
2764
2799
|
}
|
|
2765
|
-
},
|
|
2800
|
+
}, hr = {
|
|
2766
2801
|
name: "PersonalizationContainer",
|
|
2767
2802
|
shouldReceiveBuilderProps: {
|
|
2768
2803
|
builderBlock: !0,
|
|
@@ -2798,9 +2833,9 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2798
2833
|
defaultValue: []
|
|
2799
2834
|
}]
|
|
2800
2835
|
}]
|
|
2801
|
-
},
|
|
2836
|
+
}, Oe = y({
|
|
2802
2837
|
render() {
|
|
2803
|
-
return
|
|
2838
|
+
return at("script", {
|
|
2804
2839
|
innerHTML: this.scriptStr,
|
|
2805
2840
|
"data-id": this.id,
|
|
2806
2841
|
nonce: this.nonce
|
|
@@ -2808,12 +2843,12 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2808
2843
|
},
|
|
2809
2844
|
name: "inlined-script",
|
|
2810
2845
|
props: ["scriptStr", "id", "nonce"]
|
|
2811
|
-
}),
|
|
2846
|
+
}), fr = y({
|
|
2812
2847
|
name: "builder-personalization-container",
|
|
2813
2848
|
components: {
|
|
2814
|
-
Blocks:
|
|
2815
|
-
InlinedStyles:
|
|
2816
|
-
InlinedScript:
|
|
2849
|
+
Blocks: z,
|
|
2850
|
+
InlinedStyles: he,
|
|
2851
|
+
InlinedScript: Oe
|
|
2817
2852
|
},
|
|
2818
2853
|
props: [
|
|
2819
2854
|
"builderContext",
|
|
@@ -2826,45 +2861,45 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2826
2861
|
data() {
|
|
2827
2862
|
var e, t, n, o, r, i, s;
|
|
2828
2863
|
return {
|
|
2829
|
-
userAttributes:
|
|
2830
|
-
scriptStr:
|
|
2864
|
+
userAttributes: de.getUserAttributes(),
|
|
2865
|
+
scriptStr: tr(
|
|
2831
2866
|
this.variants,
|
|
2832
2867
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
2833
2868
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
2834
2869
|
),
|
|
2835
|
-
updateVisibilityStylesScript:
|
|
2870
|
+
updateVisibilityStylesScript: nr(
|
|
2836
2871
|
this.variants,
|
|
2837
2872
|
((o = this.builderBlock) == null ? void 0 : o.id) || "none",
|
|
2838
2873
|
(i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
|
|
2839
2874
|
),
|
|
2840
2875
|
unsubscribers: [],
|
|
2841
|
-
shouldRenderVariants:
|
|
2876
|
+
shouldRenderVariants: Yo(
|
|
2842
2877
|
this.variants,
|
|
2843
|
-
|
|
2878
|
+
G((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
2844
2879
|
),
|
|
2845
2880
|
shouldResetVariants: !1,
|
|
2846
|
-
TARGET:
|
|
2847
|
-
DEFAULT_INDEX:
|
|
2848
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
2881
|
+
TARGET: E,
|
|
2882
|
+
DEFAULT_INDEX: ae,
|
|
2883
|
+
SDKS_REQUIRING_RESET_APPROACH: Vt
|
|
2849
2884
|
};
|
|
2850
2885
|
},
|
|
2851
2886
|
mounted() {
|
|
2852
2887
|
var t;
|
|
2853
2888
|
this.shouldResetVariants = !0;
|
|
2854
|
-
const e =
|
|
2889
|
+
const e = de.subscribeOnUserAttributesChange(
|
|
2855
2890
|
(n) => {
|
|
2856
2891
|
this.userAttributes = n;
|
|
2857
2892
|
},
|
|
2858
2893
|
{
|
|
2859
|
-
fireImmediately:
|
|
2894
|
+
fireImmediately: E === "qwik"
|
|
2860
2895
|
}
|
|
2861
2896
|
);
|
|
2862
|
-
if (!(A() ||
|
|
2897
|
+
if (!(A() || me())) {
|
|
2863
2898
|
const n = this.filteredVariants[0];
|
|
2864
2899
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
2865
2900
|
new CustomEvent("builder.variantLoaded", {
|
|
2866
2901
|
detail: {
|
|
2867
|
-
variant: n ||
|
|
2902
|
+
variant: n || ae,
|
|
2868
2903
|
content: (t = this.builderContext) == null ? void 0 : t.content
|
|
2869
2904
|
},
|
|
2870
2905
|
bubbles: !0
|
|
@@ -2875,7 +2910,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2875
2910
|
i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
|
|
2876
2911
|
new CustomEvent("builder.variantDisplayed", {
|
|
2877
2912
|
detail: {
|
|
2878
|
-
variant: n ||
|
|
2913
|
+
variant: n || ae,
|
|
2879
2914
|
content: (s = this.builderContext) == null ? void 0 : s.content
|
|
2880
2915
|
},
|
|
2881
2916
|
bubbles: !0
|
|
@@ -2894,13 +2929,13 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2894
2929
|
return {
|
|
2895
2930
|
...N(this.attributes, "v-on:", !1),
|
|
2896
2931
|
...N(this.attributes, "v-on:", !0),
|
|
2897
|
-
[
|
|
2932
|
+
[H()]: `builder-personalization-container ${this.attributes[H()] || ""}`
|
|
2898
2933
|
};
|
|
2899
2934
|
},
|
|
2900
2935
|
filteredVariants() {
|
|
2901
2936
|
return (this.variants || []).filter((e) => {
|
|
2902
2937
|
var t, n, o, r;
|
|
2903
|
-
return
|
|
2938
|
+
return qo(
|
|
2904
2939
|
{
|
|
2905
2940
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
2906
2941
|
locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
|
|
@@ -2915,7 +2950,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2915
2950
|
},
|
|
2916
2951
|
blocksToRender() {
|
|
2917
2952
|
var e;
|
|
2918
|
-
return
|
|
2953
|
+
return Xo({
|
|
2919
2954
|
variants: this.variants,
|
|
2920
2955
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
2921
2956
|
isHydrated: this.shouldResetVariants,
|
|
@@ -2933,14 +2968,14 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2933
2968
|
}
|
|
2934
2969
|
}
|
|
2935
2970
|
});
|
|
2936
|
-
function
|
|
2937
|
-
var
|
|
2938
|
-
const s =
|
|
2939
|
-
return
|
|
2940
|
-
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (
|
|
2971
|
+
function br(e, t, n, o, r, i) {
|
|
2972
|
+
var d, p, b, c, m, f, g, P, D, B;
|
|
2973
|
+
const s = v("Blocks"), a = v("InlinedStyles"), l = v("InlinedScript");
|
|
2974
|
+
return u(), h("div", I({ ref: "rootRef" }, e.attrs), [
|
|
2975
|
+
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), k(s, {
|
|
2941
2976
|
key: 0,
|
|
2942
2977
|
blocks: e.blocksToRender.blocks,
|
|
2943
|
-
parent: (
|
|
2978
|
+
parent: (d = e.builderBlock) == null ? void 0 : d.id,
|
|
2944
2979
|
path: e.blocksToRender.path,
|
|
2945
2980
|
context: e.builderContext,
|
|
2946
2981
|
registeredComponents: e.builderComponents,
|
|
@@ -2949,27 +2984,27 @@ function tr(e, t, n, o, r, i) {
|
|
|
2949
2984
|
"data-variant-id": `${(b = e.builderBlock) == null ? void 0 : b.id}-${e.blocksToRender.index}`
|
|
2950
2985
|
}
|
|
2951
2986
|
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : T("", !0),
|
|
2952
|
-
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (
|
|
2953
|
-
e.shouldRenderVariants ? (
|
|
2954
|
-
$(
|
|
2987
|
+
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), h(w, { key: 1 }, [
|
|
2988
|
+
e.shouldRenderVariants ? (u(), h(w, { key: 0 }, [
|
|
2989
|
+
$(a, {
|
|
2955
2990
|
nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
|
|
2956
2991
|
styles: e.hideVariantsStyleString,
|
|
2957
2992
|
id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
|
|
2958
2993
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
2959
|
-
$(
|
|
2994
|
+
$(l, {
|
|
2960
2995
|
nonce: ((f = e.builderContext) == null ? void 0 : f.nonce) || "",
|
|
2961
2996
|
scriptStr: e.updateVisibilityStylesScript,
|
|
2962
2997
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
2963
2998
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
2964
|
-
(
|
|
2965
|
-
var
|
|
2966
|
-
return
|
|
2967
|
-
key: `${(
|
|
2999
|
+
(u(!0), h(w, null, x(e.variants, (q, C) => {
|
|
3000
|
+
var j, J, _, W;
|
|
3001
|
+
return u(), k(s, {
|
|
3002
|
+
key: `${(j = e.builderBlock) == null ? void 0 : j.id}-${C}`,
|
|
2968
3003
|
BlocksWrapperProps: {
|
|
2969
|
-
...(
|
|
3004
|
+
...(J = e.builderContext) == null ? void 0 : J.BlocksWrapperProps,
|
|
2970
3005
|
"aria-hidden": !0,
|
|
2971
3006
|
hidden: !0,
|
|
2972
|
-
"data-variant-id": `${(
|
|
3007
|
+
"data-variant-id": `${(_ = e.builderBlock) == null ? void 0 : _.id}-${C}`
|
|
2973
3008
|
},
|
|
2974
3009
|
blocks: q.blocks,
|
|
2975
3010
|
parent: (W = e.builderBlock) == null ? void 0 : W.id,
|
|
@@ -2977,13 +3012,13 @@ function tr(e, t, n, o, r, i) {
|
|
|
2977
3012
|
context: e.builderContext,
|
|
2978
3013
|
registeredComponents: e.builderComponents
|
|
2979
3014
|
}, {
|
|
2980
|
-
default:
|
|
2981
|
-
var L,
|
|
3015
|
+
default: O(() => {
|
|
3016
|
+
var L, Ue;
|
|
2982
3017
|
return [
|
|
2983
|
-
$(
|
|
3018
|
+
$(l, {
|
|
2984
3019
|
nonce: ((L = e.builderContext) == null ? void 0 : L.nonce) || "",
|
|
2985
3020
|
scriptStr: e.scriptStr,
|
|
2986
|
-
id: `variants-script-${(
|
|
3021
|
+
id: `variants-script-${(Ue = e.builderBlock) == null ? void 0 : Ue.id}-${C}`
|
|
2987
3022
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
2988
3023
|
];
|
|
2989
3024
|
}),
|
|
@@ -2998,14 +3033,14 @@ function tr(e, t, n, o, r, i) {
|
|
|
2998
3033
|
context: e.builderContext,
|
|
2999
3034
|
registeredComponents: e.builderComponents,
|
|
3000
3035
|
BlocksWrapperProps: {
|
|
3001
|
-
...(
|
|
3036
|
+
...(D = e.builderContext) == null ? void 0 : D.BlocksWrapperProps,
|
|
3002
3037
|
"data-variant-id": `${(B = e.builderBlock) == null ? void 0 : B.id}-${e.blocksToRender.index}`
|
|
3003
3038
|
}
|
|
3004
3039
|
}, {
|
|
3005
|
-
default:
|
|
3040
|
+
default: O(() => {
|
|
3006
3041
|
var q, C;
|
|
3007
3042
|
return [
|
|
3008
|
-
e.shouldRenderVariants ? (
|
|
3043
|
+
e.shouldRenderVariants ? (u(), k(l, {
|
|
3009
3044
|
key: 0,
|
|
3010
3045
|
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
3011
3046
|
scriptStr: e.scriptStr,
|
|
@@ -3018,7 +3053,7 @@ function tr(e, t, n, o, r, i) {
|
|
|
3018
3053
|
], 64)) : T("", !0)
|
|
3019
3054
|
], 16);
|
|
3020
3055
|
}
|
|
3021
|
-
const
|
|
3056
|
+
const gr = /* @__PURE__ */ S(fr, [["render", br]]), yr = {
|
|
3022
3057
|
name: "Core:Section",
|
|
3023
3058
|
static: !0,
|
|
3024
3059
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3057,7 +3092,7 @@ const nr = /* @__PURE__ */ v(er, [["render", tr]]), or = {
|
|
|
3057
3092
|
}
|
|
3058
3093
|
}
|
|
3059
3094
|
}]
|
|
3060
|
-
},
|
|
3095
|
+
}, Sr = {
|
|
3061
3096
|
name: "Slot",
|
|
3062
3097
|
isRSC: !0,
|
|
3063
3098
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3074,32 +3109,32 @@ const nr = /* @__PURE__ */ v(er, [["render", tr]]), or = {
|
|
|
3074
3109
|
builderContext: !0,
|
|
3075
3110
|
builderComponents: !0
|
|
3076
3111
|
}
|
|
3077
|
-
},
|
|
3112
|
+
}, kr = y({
|
|
3078
3113
|
name: "builder-slot",
|
|
3079
|
-
components: { Blocks:
|
|
3114
|
+
components: { Blocks: z },
|
|
3080
3115
|
props: ["builderContext", "name", "builderComponents"]
|
|
3081
3116
|
});
|
|
3082
|
-
function
|
|
3083
|
-
var
|
|
3084
|
-
const s =
|
|
3085
|
-
return
|
|
3117
|
+
function vr(e, t, n, o, r, i) {
|
|
3118
|
+
var a, l, d;
|
|
3119
|
+
const s = v("Blocks");
|
|
3120
|
+
return u(), h("div", I(
|
|
3086
3121
|
{ style: {
|
|
3087
3122
|
pointerEvents: "auto"
|
|
3088
3123
|
} },
|
|
3089
|
-
!((
|
|
3124
|
+
!((a = e.builderContext.context) != null && a.symbolId) && {
|
|
3090
3125
|
"builder-slot": e.name
|
|
3091
3126
|
}
|
|
3092
3127
|
), [
|
|
3093
3128
|
$(s, {
|
|
3094
|
-
parent: (
|
|
3129
|
+
parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
|
|
3095
3130
|
path: `symbol.data.${e.name}`,
|
|
3096
3131
|
context: e.builderContext,
|
|
3097
3132
|
registeredComponents: e.builderComponents,
|
|
3098
|
-
blocks: (
|
|
3133
|
+
blocks: (d = e.builderContext.rootState) == null ? void 0 : d[e.name]
|
|
3099
3134
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
3100
3135
|
], 16);
|
|
3101
3136
|
}
|
|
3102
|
-
const
|
|
3137
|
+
const Cr = /* @__PURE__ */ S(kr, [["render", vr]]), Tr = {
|
|
3103
3138
|
name: "Symbol",
|
|
3104
3139
|
noWrap: !0,
|
|
3105
3140
|
static: !0,
|
|
@@ -3138,7 +3173,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3138
3173
|
builderComponents: !0,
|
|
3139
3174
|
builderLinkComponent: !0
|
|
3140
3175
|
}
|
|
3141
|
-
},
|
|
3176
|
+
}, ge = {
|
|
3142
3177
|
"@type": "@builder.io/sdk:Element",
|
|
3143
3178
|
responsiveStyles: {
|
|
3144
3179
|
large: {
|
|
@@ -3160,7 +3195,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3160
3195
|
text: "New tab"
|
|
3161
3196
|
}
|
|
3162
3197
|
}
|
|
3163
|
-
},
|
|
3198
|
+
}, ye = {
|
|
3164
3199
|
"@type": "@builder.io/sdk:Element",
|
|
3165
3200
|
responsiveStyles: {
|
|
3166
3201
|
large: {
|
|
@@ -3176,7 +3211,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3176
3211
|
text: "New tab content "
|
|
3177
3212
|
}
|
|
3178
3213
|
}
|
|
3179
|
-
},
|
|
3214
|
+
}, wr = {
|
|
3180
3215
|
name: "Builder: Tabs",
|
|
3181
3216
|
inputs: [{
|
|
3182
3217
|
name: "tabs",
|
|
@@ -3186,16 +3221,16 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3186
3221
|
name: "label",
|
|
3187
3222
|
type: "uiBlocks",
|
|
3188
3223
|
hideFromUI: !0,
|
|
3189
|
-
defaultValue: [
|
|
3224
|
+
defaultValue: [ge]
|
|
3190
3225
|
}, {
|
|
3191
3226
|
name: "content",
|
|
3192
3227
|
type: "uiBlocks",
|
|
3193
3228
|
hideFromUI: !0,
|
|
3194
|
-
defaultValue: [
|
|
3229
|
+
defaultValue: [ye]
|
|
3195
3230
|
}],
|
|
3196
3231
|
defaultValue: [{
|
|
3197
3232
|
label: [{
|
|
3198
|
-
...
|
|
3233
|
+
...ge,
|
|
3199
3234
|
component: {
|
|
3200
3235
|
name: "Text",
|
|
3201
3236
|
options: {
|
|
@@ -3204,7 +3239,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3204
3239
|
}
|
|
3205
3240
|
}],
|
|
3206
3241
|
content: [{
|
|
3207
|
-
...
|
|
3242
|
+
...ye,
|
|
3208
3243
|
component: {
|
|
3209
3244
|
name: "Text",
|
|
3210
3245
|
options: {
|
|
@@ -3214,7 +3249,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3214
3249
|
}]
|
|
3215
3250
|
}, {
|
|
3216
3251
|
label: [{
|
|
3217
|
-
...
|
|
3252
|
+
...ge,
|
|
3218
3253
|
component: {
|
|
3219
3254
|
name: "Text",
|
|
3220
3255
|
options: {
|
|
@@ -3223,7 +3258,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3223
3258
|
}
|
|
3224
3259
|
}],
|
|
3225
3260
|
content: [{
|
|
3226
|
-
...
|
|
3261
|
+
...ye,
|
|
3227
3262
|
component: {
|
|
3228
3263
|
name: "Text",
|
|
3229
3264
|
options: {
|
|
@@ -3279,9 +3314,9 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3279
3314
|
builderComponents: !0,
|
|
3280
3315
|
builderLinkComponent: !0
|
|
3281
3316
|
}
|
|
3282
|
-
},
|
|
3317
|
+
}, Ir = y({
|
|
3283
3318
|
name: "builder-tabs",
|
|
3284
|
-
components: { Blocks:
|
|
3319
|
+
components: { Blocks: z },
|
|
3285
3320
|
props: [
|
|
3286
3321
|
"defaultActiveTab",
|
|
3287
3322
|
"tabs",
|
|
@@ -3307,36 +3342,36 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3307
3342
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3308
3343
|
}
|
|
3309
3344
|
}
|
|
3310
|
-
}),
|
|
3311
|
-
function
|
|
3312
|
-
const s =
|
|
3313
|
-
return
|
|
3345
|
+
}), $r = ["onClick"], Rr = { key: 0 };
|
|
3346
|
+
function Er(e, t, n, o, r, i) {
|
|
3347
|
+
const s = v("Blocks");
|
|
3348
|
+
return u(), h("div", null, [
|
|
3314
3349
|
K("div", {
|
|
3315
3350
|
class: "builder-tabs-wrap",
|
|
3316
|
-
style:
|
|
3351
|
+
style: M({
|
|
3317
3352
|
display: "flex",
|
|
3318
3353
|
flexDirection: "row",
|
|
3319
3354
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
3320
3355
|
overflow: "auto"
|
|
3321
3356
|
})
|
|
3322
3357
|
}, [
|
|
3323
|
-
(
|
|
3324
|
-
key:
|
|
3325
|
-
class:
|
|
3326
|
-
style:
|
|
3327
|
-
onClick: async (
|
|
3358
|
+
(u(!0), h(w, null, x(e.tabs, (a, l) => (u(), h("span", {
|
|
3359
|
+
key: l,
|
|
3360
|
+
class: ee(`builder-tab-wrap ${e.activeTab === l ? "builder-tab-active" : ""}`),
|
|
3361
|
+
style: M(e.getTabStyle(l)),
|
|
3362
|
+
onClick: async (d) => e.onClick(l)
|
|
3328
3363
|
}, [
|
|
3329
3364
|
$(s, {
|
|
3330
3365
|
parent: e.builderBlock.id,
|
|
3331
|
-
path: `tabs.${
|
|
3332
|
-
blocks:
|
|
3366
|
+
path: `tabs.${l}.label`,
|
|
3367
|
+
blocks: a.label,
|
|
3333
3368
|
context: e.builderContext,
|
|
3334
3369
|
registeredComponents: e.builderComponents,
|
|
3335
3370
|
linkComponent: e.builderLinkComponent
|
|
3336
3371
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3337
|
-
], 14,
|
|
3372
|
+
], 14, $r))), 128))
|
|
3338
3373
|
], 4),
|
|
3339
|
-
e.activeTabContent(e.activeTab) ? (
|
|
3374
|
+
e.activeTabContent(e.activeTab) ? (u(), h("div", Rr, [
|
|
3340
3375
|
$(s, {
|
|
3341
3376
|
parent: e.builderBlock.id,
|
|
3342
3377
|
path: `tabs.${e.activeTab}.content`,
|
|
@@ -3348,7 +3383,7 @@ function mr(e, t, n, o, r, i) {
|
|
|
3348
3383
|
])) : T("", !0)
|
|
3349
3384
|
]);
|
|
3350
3385
|
}
|
|
3351
|
-
const
|
|
3386
|
+
const Pr = /* @__PURE__ */ S(Ir, [["render", Er]]), Ar = {
|
|
3352
3387
|
shouldReceiveBuilderProps: {},
|
|
3353
3388
|
name: "Text",
|
|
3354
3389
|
static: !0,
|
|
@@ -3366,21 +3401,21 @@ const hr = /* @__PURE__ */ v(dr, [["render", mr]]), fr = {
|
|
|
3366
3401
|
height: "auto",
|
|
3367
3402
|
textAlign: "center"
|
|
3368
3403
|
}
|
|
3369
|
-
},
|
|
3404
|
+
}, Br = y({
|
|
3370
3405
|
name: "builder-text",
|
|
3371
3406
|
props: ["text"]
|
|
3372
|
-
}),
|
|
3373
|
-
function
|
|
3407
|
+
}), Vr = ["innerHTML"];
|
|
3408
|
+
function Nr(e, t, n, o, r, i) {
|
|
3374
3409
|
var s;
|
|
3375
|
-
return
|
|
3410
|
+
return u(), h("div", {
|
|
3376
3411
|
class: "builder-text",
|
|
3377
3412
|
innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
|
|
3378
3413
|
style: {
|
|
3379
3414
|
outline: "none"
|
|
3380
3415
|
}
|
|
3381
|
-
}, null, 8,
|
|
3416
|
+
}, null, 8, Vr);
|
|
3382
3417
|
}
|
|
3383
|
-
const
|
|
3418
|
+
const Wr = /* @__PURE__ */ S(Br, [["render", Nr]]), Or = {
|
|
3384
3419
|
name: "Custom Code",
|
|
3385
3420
|
static: !0,
|
|
3386
3421
|
requiredPermissions: ["editCode"],
|
|
@@ -3402,7 +3437,7 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
|
|
|
3402
3437
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3403
3438
|
advanced: !0
|
|
3404
3439
|
}]
|
|
3405
|
-
},
|
|
3440
|
+
}, Dr = y({
|
|
3406
3441
|
name: "builder-custom-code",
|
|
3407
3442
|
props: ["code", "replaceNodes"],
|
|
3408
3443
|
data() {
|
|
@@ -3461,15 +3496,15 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
|
|
|
3461
3496
|
}
|
|
3462
3497
|
}
|
|
3463
3498
|
}
|
|
3464
|
-
}),
|
|
3465
|
-
function
|
|
3466
|
-
return
|
|
3499
|
+
}), Ur = ["innerHTML"];
|
|
3500
|
+
function xr(e, t, n, o, r, i) {
|
|
3501
|
+
return u(), h("div", {
|
|
3467
3502
|
ref: "elementRef",
|
|
3468
|
-
class:
|
|
3503
|
+
class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3469
3504
|
innerHTML: e.code
|
|
3470
|
-
}, null, 10,
|
|
3505
|
+
}, null, 10, Ur);
|
|
3471
3506
|
}
|
|
3472
|
-
const
|
|
3507
|
+
const Fr = /* @__PURE__ */ S(Dr, [["render", xr]]), Lr = {
|
|
3473
3508
|
name: "Embed",
|
|
3474
3509
|
static: !0,
|
|
3475
3510
|
inputs: [{
|
|
@@ -3484,7 +3519,7 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3484
3519
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3485
3520
|
hideFromUI: !0
|
|
3486
3521
|
}]
|
|
3487
|
-
},
|
|
3522
|
+
}, Mr = ["text/javascript", "application/javascript", "application/ecmascript"], Hr = (e) => Mr.includes(e.type), jr = y({
|
|
3488
3523
|
name: "builder-embed",
|
|
3489
3524
|
props: ["content"],
|
|
3490
3525
|
data() {
|
|
@@ -3517,7 +3552,7 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3517
3552
|
this.scriptsInserted.push(n.src);
|
|
3518
3553
|
const o = document.createElement("script");
|
|
3519
3554
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3520
|
-
} else if (
|
|
3555
|
+
} else if (Hr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3521
3556
|
try {
|
|
3522
3557
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3523
3558
|
} catch (o) {
|
|
@@ -3526,15 +3561,15 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3526
3561
|
}
|
|
3527
3562
|
}
|
|
3528
3563
|
}
|
|
3529
|
-
}),
|
|
3530
|
-
function
|
|
3531
|
-
return
|
|
3564
|
+
}), zr = ["innerHTML"];
|
|
3565
|
+
function qr(e, t, n, o, r, i) {
|
|
3566
|
+
return u(), h("div", {
|
|
3532
3567
|
class: "builder-embed",
|
|
3533
3568
|
ref: "elem",
|
|
3534
3569
|
innerHTML: e.content
|
|
3535
|
-
}, null, 8,
|
|
3570
|
+
}, null, 8, zr);
|
|
3536
3571
|
}
|
|
3537
|
-
const
|
|
3572
|
+
const Kr = /* @__PURE__ */ S(jr, [["render", qr]]), Gr = {
|
|
3538
3573
|
name: "Form:Form",
|
|
3539
3574
|
// editableTags: ['builder-form-error']
|
|
3540
3575
|
defaults: {
|
|
@@ -3771,12 +3806,12 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3771
3806
|
builderComponents: !0,
|
|
3772
3807
|
builderLinkComponent: !0
|
|
3773
3808
|
}
|
|
3774
|
-
},
|
|
3809
|
+
}, Jr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], _r = () => {
|
|
3775
3810
|
const e = process.env.NODE_ENV || "production";
|
|
3776
|
-
return
|
|
3777
|
-
},
|
|
3811
|
+
return Jr.includes(e) ? e : "production";
|
|
3812
|
+
}, Qr = y({
|
|
3778
3813
|
name: "builder-form-component",
|
|
3779
|
-
components: { Blocks:
|
|
3814
|
+
components: { Blocks: z },
|
|
3780
3815
|
props: [
|
|
3781
3816
|
"builderContext",
|
|
3782
3817
|
"previewState",
|
|
@@ -3833,7 +3868,7 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3833
3868
|
e.preventDefault();
|
|
3834
3869
|
const o = e.currentTarget || e.target, r = this.customHeaders || {};
|
|
3835
3870
|
let i;
|
|
3836
|
-
const s = new FormData(o),
|
|
3871
|
+
const s = new FormData(o), a = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).filter(
|
|
3837
3872
|
(c) => !!c.name && (c.type !== "radio" || c.checked)
|
|
3838
3873
|
).map((c) => {
|
|
3839
3874
|
let m;
|
|
@@ -3859,24 +3894,24 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3859
3894
|
value: m
|
|
3860
3895
|
};
|
|
3861
3896
|
});
|
|
3862
|
-
let
|
|
3863
|
-
if (this.sendSubmissionsTo === "email" && (
|
|
3864
|
-
(c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (
|
|
3865
|
-
}),
|
|
3897
|
+
let l = this.contentType;
|
|
3898
|
+
if (this.sendSubmissionsTo === "email" && (l = "multipart/form-data"), Array.from(a).forEach(({ value: c }) => {
|
|
3899
|
+
(c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (l = "multipart/form-data");
|
|
3900
|
+
}), l !== "application/json")
|
|
3866
3901
|
i = s;
|
|
3867
3902
|
else {
|
|
3868
3903
|
const c = {};
|
|
3869
|
-
Array.from(
|
|
3870
|
-
|
|
3904
|
+
Array.from(a).forEach(({ value: m, key: f }) => {
|
|
3905
|
+
Jt(c, f, m);
|
|
3871
3906
|
}), i = JSON.stringify(c);
|
|
3872
3907
|
}
|
|
3873
|
-
|
|
3874
|
-
const
|
|
3908
|
+
l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = l));
|
|
3909
|
+
const d = new CustomEvent("presubmit", {
|
|
3875
3910
|
detail: {
|
|
3876
3911
|
body: i
|
|
3877
3912
|
}
|
|
3878
3913
|
});
|
|
3879
|
-
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(
|
|
3914
|
+
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
|
|
3880
3915
|
return;
|
|
3881
3916
|
if (this.formState = "sending", this.sendSubmissionsTo === "email" && (this.sendSubmissionsToEmail === "your@email.com" || !this.sendSubmissionsToEmail)) {
|
|
3882
3917
|
const c = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
@@ -3885,10 +3920,10 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3885
3920
|
});
|
|
3886
3921
|
return;
|
|
3887
3922
|
}
|
|
3888
|
-
const p = `${
|
|
3923
|
+
const p = `${_r() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3889
3924
|
this.sendSubmissionsToEmail || ""
|
|
3890
3925
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
3891
|
-
|
|
3926
|
+
ut(b), fetch(b, {
|
|
3892
3927
|
body: i,
|
|
3893
3928
|
headers: r,
|
|
3894
3929
|
method: this.method || "post"
|
|
@@ -3898,32 +3933,32 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3898
3933
|
let m;
|
|
3899
3934
|
const f = c.headers.get("content-type");
|
|
3900
3935
|
if (f && f.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
|
|
3901
|
-
const
|
|
3936
|
+
const D = new CustomEvent("submit:error", {
|
|
3902
3937
|
detail: {
|
|
3903
3938
|
error: m,
|
|
3904
3939
|
status: c.status
|
|
3905
3940
|
}
|
|
3906
3941
|
});
|
|
3907
3942
|
if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
|
|
3908
|
-
|
|
3909
|
-
),
|
|
3943
|
+
D
|
|
3944
|
+
), D.defaultPrevented))
|
|
3910
3945
|
return;
|
|
3911
3946
|
this.responseData = m, this.formState = "error";
|
|
3912
|
-
let B = this.errorMessagePath ?
|
|
3947
|
+
let B = this.errorMessagePath ? mt(m, this.errorMessagePath) : m.message || m.error || m;
|
|
3913
3948
|
typeof B != "string" && (B = JSON.stringify(B)), this.formErrorMessage = B, this.mergeNewRootState({
|
|
3914
3949
|
formErrorMessage: B
|
|
3915
3950
|
});
|
|
3916
3951
|
return;
|
|
3917
3952
|
}
|
|
3918
3953
|
if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
3919
|
-
const
|
|
3954
|
+
const D = new CustomEvent("submit:success", {
|
|
3920
3955
|
detail: {
|
|
3921
3956
|
res: c,
|
|
3922
3957
|
body: m
|
|
3923
3958
|
}
|
|
3924
3959
|
});
|
|
3925
3960
|
if (this.$refs.formRef) {
|
|
3926
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
3961
|
+
if (this.$refs.formRef.dispatchEvent(D), D.defaultPrevented)
|
|
3927
3962
|
return;
|
|
3928
3963
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
3929
3964
|
}
|
|
@@ -3951,43 +3986,43 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3951
3986
|
}
|
|
3952
3987
|
}
|
|
3953
3988
|
}
|
|
3954
|
-
}),
|
|
3989
|
+
}), Yr = ["validate", "action", "method", "name"], Xr = {
|
|
3955
3990
|
key: 2,
|
|
3956
3991
|
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
3957
3992
|
};
|
|
3958
|
-
function
|
|
3959
|
-
const s =
|
|
3960
|
-
return
|
|
3993
|
+
function Zr(e, t, n, o, r, i) {
|
|
3994
|
+
const s = v("Blocks");
|
|
3995
|
+
return u(), h("form", I({
|
|
3961
3996
|
validate: e.validate,
|
|
3962
3997
|
ref: "formRef",
|
|
3963
3998
|
action: !e.sendWithJs && e.action,
|
|
3964
3999
|
method: e.method,
|
|
3965
4000
|
name: e.name,
|
|
3966
|
-
onSubmit: t[0] || (t[0] = async (
|
|
4001
|
+
onSubmit: t[0] || (t[0] = async (a) => e.onSubmit(a))
|
|
3967
4002
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3968
4003
|
V(e.$slots, "default", {}, void 0, !0),
|
|
3969
|
-
e.submissionState() === "error" ? (
|
|
4004
|
+
e.submissionState() === "error" ? (u(), k(s, {
|
|
3970
4005
|
key: 0,
|
|
3971
4006
|
path: "errorMessage",
|
|
3972
4007
|
blocks: e.errorMessage,
|
|
3973
4008
|
context: e.builderContext
|
|
3974
4009
|
}, null, 8, ["blocks", "context"])) : T("", !0),
|
|
3975
|
-
e.submissionState() === "sending" ? (
|
|
4010
|
+
e.submissionState() === "sending" ? (u(), k(s, {
|
|
3976
4011
|
key: 1,
|
|
3977
4012
|
path: "sendingMessage",
|
|
3978
4013
|
blocks: e.sendingMessage,
|
|
3979
4014
|
context: e.builderContext
|
|
3980
4015
|
}, null, 8, ["blocks", "context"])) : T("", !0),
|
|
3981
|
-
e.submissionState() === "error" && e.responseData ? (
|
|
3982
|
-
e.submissionState() === "success" ? (
|
|
4016
|
+
e.submissionState() === "error" && e.responseData ? (u(), h("pre", Xr, pe(e.errorResponse(e.responseData)), 1)) : T("", !0),
|
|
4017
|
+
e.submissionState() === "success" ? (u(), k(s, {
|
|
3983
4018
|
key: 3,
|
|
3984
4019
|
path: "successMessage",
|
|
3985
4020
|
blocks: e.successMessage,
|
|
3986
4021
|
context: e.builderContext
|
|
3987
4022
|
}, null, 8, ["blocks", "context"])) : T("", !0)
|
|
3988
|
-
], 16,
|
|
4023
|
+
], 16, Yr);
|
|
3989
4024
|
}
|
|
3990
|
-
const
|
|
4025
|
+
const ei = /* @__PURE__ */ S(Qr, [["render", Zr], ["__scopeId", "data-v-77c7888c"]]), ti = {
|
|
3991
4026
|
name: "Form:Input",
|
|
3992
4027
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3993
4028
|
inputs: [
|
|
@@ -4038,7 +4073,7 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", xr], ["__scopeId", "data-v-77c7888c
|
|
|
4038
4073
|
borderStyle: "solid",
|
|
4039
4074
|
borderColor: "#ccc"
|
|
4040
4075
|
}
|
|
4041
|
-
},
|
|
4076
|
+
}, ni = y({
|
|
4042
4077
|
name: "builder-form-input-component",
|
|
4043
4078
|
props: [
|
|
4044
4079
|
"attributes",
|
|
@@ -4052,9 +4087,9 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", xr], ["__scopeId", "data-v-77c7888c
|
|
|
4052
4087
|
data() {
|
|
4053
4088
|
return { isEditing: A, filterAttrs: N };
|
|
4054
4089
|
}
|
|
4055
|
-
}),
|
|
4056
|
-
function
|
|
4057
|
-
return
|
|
4090
|
+
}), oi = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4091
|
+
function ri(e, t, n, o, r, i) {
|
|
4092
|
+
return u(), h("input", I({
|
|
4058
4093
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4059
4094
|
placeholder: e.placeholder,
|
|
4060
4095
|
type: e.type,
|
|
@@ -4062,9 +4097,9 @@ function zr(e, t, n, o, r, i) {
|
|
|
4062
4097
|
value: e.value,
|
|
4063
4098
|
defaultValue: e.defaultValue,
|
|
4064
4099
|
required: e.required
|
|
4065
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4100
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, oi);
|
|
4066
4101
|
}
|
|
4067
|
-
const
|
|
4102
|
+
const ii = /* @__PURE__ */ S(ni, [["render", ri]]), si = {
|
|
4068
4103
|
name: "Form:Select",
|
|
4069
4104
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4070
4105
|
defaultStyles: {
|
|
@@ -4106,28 +4141,28 @@ const jr = /* @__PURE__ */ v(Hr, [["render", zr]]), qr = {
|
|
|
4106
4141
|
}],
|
|
4107
4142
|
static: !0,
|
|
4108
4143
|
noWrap: !0
|
|
4109
|
-
},
|
|
4144
|
+
}, ai = y({
|
|
4110
4145
|
name: "builder-select-component",
|
|
4111
4146
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4112
4147
|
data() {
|
|
4113
4148
|
return { isEditing: A, filterAttrs: N };
|
|
4114
4149
|
}
|
|
4115
|
-
}),
|
|
4116
|
-
function
|
|
4117
|
-
return
|
|
4150
|
+
}), li = ["value", "defaultValue", "name", "required"], ci = ["value"];
|
|
4151
|
+
function di(e, t, n, o, r, i) {
|
|
4152
|
+
return u(), h("select", I({
|
|
4118
4153
|
value: e.value,
|
|
4119
4154
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4120
4155
|
defaultValue: e.defaultValue,
|
|
4121
4156
|
name: e.name,
|
|
4122
4157
|
required: e.required
|
|
4123
4158
|
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4124
|
-
(
|
|
4125
|
-
key: `${s.name}-${
|
|
4159
|
+
(u(!0), h(w, null, x(e.options, (s, a) => (u(), h("option", {
|
|
4160
|
+
key: `${s.name}-${a}`,
|
|
4126
4161
|
value: s.value
|
|
4127
|
-
},
|
|
4128
|
-
], 16,
|
|
4162
|
+
}, pe(s.name || s.value), 9, ci))), 128))
|
|
4163
|
+
], 16, li);
|
|
4129
4164
|
}
|
|
4130
|
-
const
|
|
4165
|
+
const ui = /* @__PURE__ */ S(ai, [["render", di]]), pi = {
|
|
4131
4166
|
name: "Form:SubmitButton",
|
|
4132
4167
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4133
4168
|
defaultStyles: {
|
|
@@ -4152,17 +4187,17 @@ const Yr = /* @__PURE__ */ v(Kr, [["render", Qr]]), _r = {
|
|
|
4152
4187
|
// that only shows if advanced setting is flipped
|
|
4153
4188
|
// TODO: defaultChildren
|
|
4154
4189
|
// canHaveChildren: true,
|
|
4155
|
-
},
|
|
4190
|
+
}, mi = y({
|
|
4156
4191
|
name: "builder-submit-button",
|
|
4157
4192
|
props: ["attributes", "text"],
|
|
4158
4193
|
data() {
|
|
4159
4194
|
return { filterAttrs: N };
|
|
4160
4195
|
}
|
|
4161
4196
|
});
|
|
4162
|
-
function
|
|
4163
|
-
return
|
|
4197
|
+
function hi(e, t, n, o, r, i) {
|
|
4198
|
+
return u(), h("button", I({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), pe(e.text), 17);
|
|
4164
4199
|
}
|
|
4165
|
-
const
|
|
4200
|
+
const fi = /* @__PURE__ */ S(mi, [["render", hi]]), bi = {
|
|
4166
4201
|
name: "Form:TextArea",
|
|
4167
4202
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4168
4203
|
inputs: [{
|
|
@@ -4198,7 +4233,7 @@ const ei = /* @__PURE__ */ v(Xr, [["render", Zr]]), ti = {
|
|
|
4198
4233
|
},
|
|
4199
4234
|
static: !0,
|
|
4200
4235
|
noWrap: !0
|
|
4201
|
-
},
|
|
4236
|
+
}, gi = y({
|
|
4202
4237
|
name: "builder-textarea",
|
|
4203
4238
|
props: [
|
|
4204
4239
|
"attributes",
|
|
@@ -4211,17 +4246,17 @@ const ei = /* @__PURE__ */ v(Xr, [["render", Zr]]), ti = {
|
|
|
4211
4246
|
data() {
|
|
4212
4247
|
return { filterAttrs: N };
|
|
4213
4248
|
}
|
|
4214
|
-
}),
|
|
4215
|
-
function
|
|
4216
|
-
return
|
|
4249
|
+
}), yi = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4250
|
+
function Si(e, t, n, o, r, i) {
|
|
4251
|
+
return u(), h("textarea", I({
|
|
4217
4252
|
placeholder: e.placeholder,
|
|
4218
4253
|
name: e.name,
|
|
4219
4254
|
value: e.value,
|
|
4220
4255
|
defaultValue: e.defaultValue,
|
|
4221
4256
|
required: e.required
|
|
4222
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4257
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, yi);
|
|
4223
4258
|
}
|
|
4224
|
-
const
|
|
4259
|
+
const ki = /* @__PURE__ */ S(gi, [["render", Si]]), vi = {
|
|
4225
4260
|
name: "Raw:Img",
|
|
4226
4261
|
hideFromInsertMenu: !0,
|
|
4227
4262
|
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",
|
|
@@ -4229,7 +4264,7 @@ const ii = /* @__PURE__ */ v(ni, [["render", ri]]), si = {
|
|
|
4229
4264
|
name: "image",
|
|
4230
4265
|
bubble: !0,
|
|
4231
4266
|
type: "file",
|
|
4232
|
-
allowedFileTypes:
|
|
4267
|
+
allowedFileTypes: We,
|
|
4233
4268
|
required: !0
|
|
4234
4269
|
}, {
|
|
4235
4270
|
name: "backgroundSize",
|
|
@@ -4265,7 +4300,7 @@ const ii = /* @__PURE__ */ v(ni, [["render", ri]]), si = {
|
|
|
4265
4300
|
defaultValue: 0.7041
|
|
4266
4301
|
}],
|
|
4267
4302
|
noWrap: !0
|
|
4268
|
-
},
|
|
4303
|
+
}, Ci = y({
|
|
4269
4304
|
name: "builder-img-component",
|
|
4270
4305
|
props: [
|
|
4271
4306
|
"imgSrc",
|
|
@@ -4284,21 +4319,21 @@ const ii = /* @__PURE__ */ v(ni, [["render", ri]]), si = {
|
|
|
4284
4319
|
srcSetToUse() {
|
|
4285
4320
|
const e = this.imgSrc || this.image;
|
|
4286
4321
|
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
4287
|
-
return
|
|
4322
|
+
return se(e);
|
|
4288
4323
|
},
|
|
4289
4324
|
imgAttrs() {
|
|
4290
4325
|
const e = {
|
|
4291
4326
|
...N(this.attributes, "v-on:", !1),
|
|
4292
4327
|
...N(this.attributes, "v-on:", !0),
|
|
4293
|
-
[
|
|
4328
|
+
[H()]: `builder-raw-img ${this.attributes[H()] || ""}`
|
|
4294
4329
|
};
|
|
4295
4330
|
return delete e.style, e;
|
|
4296
4331
|
}
|
|
4297
4332
|
}
|
|
4298
|
-
}),
|
|
4299
|
-
function
|
|
4333
|
+
}), Ti = ["alt", "title", "src"];
|
|
4334
|
+
function wi(e, t, n, o, r, i) {
|
|
4300
4335
|
var s;
|
|
4301
|
-
return
|
|
4336
|
+
return u(), h("img", I({
|
|
4302
4337
|
loading: "lazy",
|
|
4303
4338
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
4304
4339
|
alt: e.altText,
|
|
@@ -4310,9 +4345,9 @@ function ci(e, t, n, o, r, i) {
|
|
|
4310
4345
|
aspectRatio: e.aspectRatio || void 0,
|
|
4311
4346
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4312
4347
|
}
|
|
4313
|
-
}, e.imgAttrs), null, 16,
|
|
4348
|
+
}, e.imgAttrs), null, 16, Ti);
|
|
4314
4349
|
}
|
|
4315
|
-
const
|
|
4350
|
+
const Ii = /* @__PURE__ */ S(Ci, [["render", wi]]), $i = {
|
|
4316
4351
|
name: "Video",
|
|
4317
4352
|
canHaveChildren: !0,
|
|
4318
4353
|
defaultStyles: {
|
|
@@ -4323,14 +4358,14 @@ const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
|
|
|
4323
4358
|
inputs: [{
|
|
4324
4359
|
name: "video",
|
|
4325
4360
|
type: "file",
|
|
4326
|
-
allowedFileTypes:
|
|
4361
|
+
allowedFileTypes: pr,
|
|
4327
4362
|
bubble: !0,
|
|
4328
4363
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4329
4364
|
required: !0
|
|
4330
4365
|
}, {
|
|
4331
4366
|
name: "posterImage",
|
|
4332
4367
|
type: "file",
|
|
4333
|
-
allowedFileTypes:
|
|
4368
|
+
allowedFileTypes: We,
|
|
4334
4369
|
helperText: "Image to show before the video plays"
|
|
4335
4370
|
}, {
|
|
4336
4371
|
name: "autoPlay",
|
|
@@ -4396,7 +4431,7 @@ const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
|
|
|
4396
4431
|
shouldReceiveBuilderProps: {
|
|
4397
4432
|
builderBlock: !0
|
|
4398
4433
|
}
|
|
4399
|
-
},
|
|
4434
|
+
}, Ri = y({
|
|
4400
4435
|
name: "builder-video",
|
|
4401
4436
|
props: [
|
|
4402
4437
|
"lazyLoad",
|
|
@@ -4469,16 +4504,16 @@ const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
|
|
|
4469
4504
|
};
|
|
4470
4505
|
}
|
|
4471
4506
|
}
|
|
4472
|
-
}),
|
|
4507
|
+
}), Ei = { style: {
|
|
4473
4508
|
position: "relative"
|
|
4474
|
-
} },
|
|
4509
|
+
} }, Pi = ["preload", "poster"], Ai = {
|
|
4475
4510
|
key: 1,
|
|
4476
4511
|
style: {
|
|
4477
4512
|
display: "flex",
|
|
4478
4513
|
flexDirection: "column",
|
|
4479
4514
|
alignItems: "stretch"
|
|
4480
4515
|
}
|
|
4481
|
-
},
|
|
4516
|
+
}, Bi = {
|
|
4482
4517
|
key: 2,
|
|
4483
4518
|
style: {
|
|
4484
4519
|
pointerEvents: "none",
|
|
@@ -4492,9 +4527,9 @@ const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
|
|
|
4492
4527
|
height: "100%"
|
|
4493
4528
|
}
|
|
4494
4529
|
};
|
|
4495
|
-
function
|
|
4496
|
-
var s,
|
|
4497
|
-
return
|
|
4530
|
+
function Vi(e, t, n, o, r, i) {
|
|
4531
|
+
var s, a, l, d, p, b, c;
|
|
4532
|
+
return u(), h("div", Ei, [
|
|
4498
4533
|
K("video", I({
|
|
4499
4534
|
class: "builder-video",
|
|
4500
4535
|
ref: "videoRef",
|
|
@@ -4522,85 +4557,87 @@ function gi(e, t, n, o, r, i) {
|
|
|
4522
4557
|
src: e.video
|
|
4523
4558
|
}
|
|
4524
4559
|
), null, 16)
|
|
4525
|
-
], 16,
|
|
4526
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
4560
|
+
], 16, Pi),
|
|
4561
|
+
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (u(), h("div", {
|
|
4527
4562
|
key: 0,
|
|
4528
|
-
style:
|
|
4563
|
+
style: M({
|
|
4529
4564
|
width: "100%",
|
|
4530
4565
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
4531
4566
|
pointerEvents: "none",
|
|
4532
4567
|
fontSize: "0px"
|
|
4533
4568
|
})
|
|
4534
4569
|
}, null, 4)) : T("", !0),
|
|
4535
|
-
(p = (
|
|
4570
|
+
(p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && e.fitContent ? (u(), h("div", Ai, [
|
|
4536
4571
|
V(e.$slots, "default")
|
|
4537
4572
|
])) : T("", !0),
|
|
4538
|
-
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (
|
|
4573
|
+
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (u(), h("div", Bi, [
|
|
4539
4574
|
V(e.$slots, "default")
|
|
4540
4575
|
])) : T("", !0)
|
|
4541
4576
|
]);
|
|
4542
4577
|
}
|
|
4543
|
-
const
|
|
4544
|
-
component: wr,
|
|
4545
|
-
...Sr
|
|
4546
|
-
}, {
|
|
4547
|
-
component: Br,
|
|
4548
|
-
...Ir
|
|
4549
|
-
}, {
|
|
4578
|
+
const Ni = /* @__PURE__ */ S(Ri, [["render", Vi]]), Wi = () => [{
|
|
4550
4579
|
component: Fr,
|
|
4551
|
-
...
|
|
4580
|
+
...Or
|
|
4552
4581
|
}, {
|
|
4553
|
-
component:
|
|
4582
|
+
component: Kr,
|
|
4554
4583
|
...Lr
|
|
4555
4584
|
}, {
|
|
4556
4585
|
component: ei,
|
|
4557
|
-
...
|
|
4558
|
-
}, {
|
|
4559
|
-
component: Yr,
|
|
4560
|
-
...qr
|
|
4586
|
+
...Gr
|
|
4561
4587
|
}, {
|
|
4562
4588
|
component: ii,
|
|
4563
4589
|
...ti
|
|
4564
4590
|
}, {
|
|
4565
|
-
component:
|
|
4591
|
+
component: fi,
|
|
4592
|
+
...pi
|
|
4593
|
+
}, {
|
|
4594
|
+
component: ui,
|
|
4566
4595
|
...si
|
|
4567
4596
|
}, {
|
|
4568
|
-
component:
|
|
4569
|
-
...
|
|
4570
|
-
}], Ye = () => [{
|
|
4571
|
-
component: jt,
|
|
4572
|
-
...Go
|
|
4597
|
+
component: ki,
|
|
4598
|
+
...bi
|
|
4573
4599
|
}, {
|
|
4574
|
-
component:
|
|
4575
|
-
...
|
|
4600
|
+
component: Ii,
|
|
4601
|
+
...vi
|
|
4576
4602
|
}, {
|
|
4577
|
-
component:
|
|
4578
|
-
|
|
4603
|
+
component: Ni,
|
|
4604
|
+
...$i
|
|
4605
|
+
}];
|
|
4606
|
+
let re;
|
|
4607
|
+
const nt = () => re || (re = [{
|
|
4608
|
+
component: nn,
|
|
4609
|
+
...cr
|
|
4579
4610
|
}, {
|
|
4580
|
-
component:
|
|
4581
|
-
...
|
|
4611
|
+
component: Ao,
|
|
4612
|
+
...dr
|
|
4582
4613
|
}, {
|
|
4583
|
-
component:
|
|
4584
|
-
...
|
|
4614
|
+
component: No,
|
|
4615
|
+
...ur
|
|
4616
|
+
}, {
|
|
4617
|
+
component: Mo,
|
|
4618
|
+
...mr
|
|
4585
4619
|
}, {
|
|
4586
|
-
component:
|
|
4587
|
-
...
|
|
4620
|
+
component: zo,
|
|
4621
|
+
...yr
|
|
4622
|
+
}, {
|
|
4623
|
+
component: Cr,
|
|
4624
|
+
...Sr
|
|
4588
4625
|
}, {
|
|
4589
|
-
component:
|
|
4590
|
-
...
|
|
4626
|
+
component: ks,
|
|
4627
|
+
...Tr
|
|
4591
4628
|
}, {
|
|
4592
|
-
component:
|
|
4593
|
-
...
|
|
4594
|
-
}, ...
|
|
4595
|
-
component:
|
|
4596
|
-
...
|
|
4629
|
+
component: Wr,
|
|
4630
|
+
...Ar
|
|
4631
|
+
}, ...Bt.includes(E) ? [{
|
|
4632
|
+
component: gr,
|
|
4633
|
+
...hr
|
|
4597
4634
|
}] : [], {
|
|
4598
|
-
component:
|
|
4599
|
-
...
|
|
4635
|
+
component: Pr,
|
|
4636
|
+
...wr
|
|
4600
4637
|
}, {
|
|
4601
|
-
component:
|
|
4602
|
-
...
|
|
4603
|
-
}, ...
|
|
4638
|
+
component: lr,
|
|
4639
|
+
...or
|
|
4640
|
+
}, ...Wi()], re), Oi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4604
4641
|
function getAndSetVariantId() {
|
|
4605
4642
|
function setCookie(name, value, days) {
|
|
4606
4643
|
let expires = '';
|
|
@@ -4659,7 +4696,7 @@ const yi = /* @__PURE__ */ v(pi, [["render", gi]]), vi = () => [{
|
|
|
4659
4696
|
}).join('');
|
|
4660
4697
|
styleEl.innerHTML = newStyleStr;
|
|
4661
4698
|
}
|
|
4662
|
-
}`,
|
|
4699
|
+
}`, Di = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4663
4700
|
if (!navigator.cookieEnabled) {
|
|
4664
4701
|
return;
|
|
4665
4702
|
}
|
|
@@ -4693,37 +4730,37 @@ const yi = /* @__PURE__ */ v(pi, [["render", gi]]), vi = () => [{
|
|
|
4693
4730
|
thisScriptEl?.remove();
|
|
4694
4731
|
}
|
|
4695
4732
|
return;
|
|
4696
|
-
}`,
|
|
4733
|
+
}`, Ie = "builderIoAbTest", $e = "builderIoRenderContent", le = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4697
4734
|
...t,
|
|
4698
4735
|
testVariationId: t.id,
|
|
4699
4736
|
id: e == null ? void 0 : e.id
|
|
4700
|
-
})),
|
|
4737
|
+
})), Ui = ({
|
|
4701
4738
|
canTrack: e,
|
|
4702
4739
|
content: t
|
|
4703
|
-
}) => !(!(
|
|
4740
|
+
}) => !(!(le(t).length > 0) || !e), xi = (e) => e === "react" || e === "reactNative", Fi = E === "angular", De = xi(E), Li = () => `
|
|
4704
4741
|
(function() {
|
|
4705
|
-
if (!window.${
|
|
4706
|
-
window.${
|
|
4742
|
+
if (!window.${Ie}) {
|
|
4743
|
+
window.${Ie} = ${Oi};
|
|
4707
4744
|
}
|
|
4708
|
-
if (!window.${
|
|
4709
|
-
window.${
|
|
4745
|
+
if (!window.${$e}) {
|
|
4746
|
+
window.${$e} = ${Di};
|
|
4710
4747
|
}${De ? `
|
|
4711
4748
|
var thisScriptEl = document.currentScript;
|
|
4712
4749
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
4713
4750
|
})();
|
|
4714
|
-
`,
|
|
4715
|
-
window.${
|
|
4716
|
-
"${t}",${JSON.stringify(e)}, ${De}, ${
|
|
4717
|
-
)`,
|
|
4751
|
+
`, Mi = (e, t) => `
|
|
4752
|
+
window.${Ie}(
|
|
4753
|
+
"${t}",${JSON.stringify(e)}, ${De}, ${Fi}
|
|
4754
|
+
)`, Hi = ({
|
|
4718
4755
|
contentId: e,
|
|
4719
4756
|
variationId: t
|
|
4720
|
-
}) => `window.${
|
|
4757
|
+
}) => `window.${$e}(
|
|
4721
4758
|
"${t}", "${e}", ${De}
|
|
4722
4759
|
)`;
|
|
4723
|
-
function
|
|
4760
|
+
function ot(e) {
|
|
4724
4761
|
return Math.round(e * 1e3) / 1e3;
|
|
4725
4762
|
}
|
|
4726
|
-
const
|
|
4763
|
+
const ji = (e, t, n = !0) => {
|
|
4727
4764
|
if (!(e instanceof HTMLElement))
|
|
4728
4765
|
return null;
|
|
4729
4766
|
let o = n ? e : e.parentElement;
|
|
@@ -4734,35 +4771,35 @@ const Ei = (e, t, n = !0) => {
|
|
|
4734
4771
|
return o;
|
|
4735
4772
|
} while (o = o.parentElement);
|
|
4736
4773
|
return null;
|
|
4737
|
-
},
|
|
4774
|
+
}, zi = (e) => ji(e, (t) => {
|
|
4738
4775
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4739
4776
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4740
|
-
}),
|
|
4777
|
+
}), rt = ({
|
|
4741
4778
|
event: e,
|
|
4742
4779
|
target: t
|
|
4743
4780
|
}) => {
|
|
4744
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
4781
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = ot(o / n.width), s = ot(r / n.height);
|
|
4745
4782
|
return {
|
|
4746
4783
|
x: i,
|
|
4747
4784
|
y: s
|
|
4748
4785
|
};
|
|
4749
|
-
},
|
|
4750
|
-
const t = e.target, n = t &&
|
|
4786
|
+
}, qi = (e) => {
|
|
4787
|
+
const t = e.target, n = t && zi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4751
4788
|
return {
|
|
4752
4789
|
targetBuilderElement: o || void 0,
|
|
4753
4790
|
metadata: {
|
|
4754
|
-
targetOffset: t ?
|
|
4791
|
+
targetOffset: t ? rt({
|
|
4755
4792
|
event: e,
|
|
4756
4793
|
target: t
|
|
4757
4794
|
}) : void 0,
|
|
4758
|
-
builderTargetOffset: n ?
|
|
4795
|
+
builderTargetOffset: n ? rt({
|
|
4759
4796
|
event: e,
|
|
4760
4797
|
target: n
|
|
4761
4798
|
}) : void 0,
|
|
4762
4799
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4763
4800
|
}
|
|
4764
4801
|
};
|
|
4765
|
-
},
|
|
4802
|
+
}, Ki = ["svelte", "qwik", "vue"], Gi = () => Ki.includes(E) && (A() || me()), Ji = (e) => {
|
|
4766
4803
|
var i;
|
|
4767
4804
|
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);
|
|
4768
4805
|
let r = "";
|
|
@@ -4777,27 +4814,27 @@ font-weight: 400;
|
|
|
4777
4814
|
for (const s in e.files) {
|
|
4778
4815
|
if (!(String(Number(s)) === s))
|
|
4779
4816
|
continue;
|
|
4780
|
-
const
|
|
4781
|
-
|
|
4817
|
+
const l = e.files[s];
|
|
4818
|
+
l && l !== o && (r += `
|
|
4782
4819
|
@font-face {
|
|
4783
4820
|
font-family: "${t}";
|
|
4784
|
-
src: url('${
|
|
4821
|
+
src: url('${l}') format('woff2');
|
|
4785
4822
|
font-display: fallback;
|
|
4786
4823
|
font-weight: ${s};
|
|
4787
4824
|
}
|
|
4788
4825
|
`.trim());
|
|
4789
4826
|
}
|
|
4790
4827
|
return r;
|
|
4791
|
-
},
|
|
4828
|
+
}, _i = ({
|
|
4792
4829
|
customFonts: e
|
|
4793
4830
|
}) => {
|
|
4794
4831
|
var t;
|
|
4795
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4796
|
-
},
|
|
4832
|
+
return ((t = e == null ? void 0 : e.map((n) => Ji(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4833
|
+
}, Qi = ({
|
|
4797
4834
|
cssCode: e,
|
|
4798
4835
|
contentId: t
|
|
4799
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4800
|
-
.builder-button {
|
|
4836
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Yi = `
|
|
4837
|
+
:where(.builder-button) {
|
|
4801
4838
|
all: unset;
|
|
4802
4839
|
}
|
|
4803
4840
|
|
|
@@ -4813,9 +4850,9 @@ font-weight: ${s};
|
|
|
4813
4850
|
text-align: inherit;
|
|
4814
4851
|
font-family: inherit;
|
|
4815
4852
|
}
|
|
4816
|
-
`,
|
|
4853
|
+
`, Xi = (e) => e ? "" : Yi, Zi = (e) => `variant-${e}`, es = y({
|
|
4817
4854
|
name: "enable-editor",
|
|
4818
|
-
components: { DynamicDiv:
|
|
4855
|
+
components: { DynamicDiv: ne },
|
|
4819
4856
|
props: [
|
|
4820
4857
|
"isNestedRender",
|
|
4821
4858
|
"builderContextSignal",
|
|
@@ -4845,15 +4882,15 @@ font-weight: ${s};
|
|
|
4845
4882
|
httpReqsData: {},
|
|
4846
4883
|
httpReqsPending: {},
|
|
4847
4884
|
clicked: !1,
|
|
4848
|
-
builderContext:
|
|
4849
|
-
needsElementRefDivForEditing:
|
|
4850
|
-
getWrapperClassName:
|
|
4885
|
+
builderContext: Se,
|
|
4886
|
+
needsElementRefDivForEditing: Gi,
|
|
4887
|
+
getWrapperClassName: Zi
|
|
4851
4888
|
};
|
|
4852
4889
|
},
|
|
4853
4890
|
provide() {
|
|
4854
4891
|
const e = this;
|
|
4855
4892
|
return {
|
|
4856
|
-
[
|
|
4893
|
+
[Se.key]: e.builderContextSignal
|
|
4857
4894
|
};
|
|
4858
4895
|
},
|
|
4859
4896
|
created() {
|
|
@@ -4861,26 +4898,26 @@ font-weight: ${s};
|
|
|
4861
4898
|
},
|
|
4862
4899
|
mounted() {
|
|
4863
4900
|
var e, t, n;
|
|
4864
|
-
if (
|
|
4901
|
+
if (R()) {
|
|
4865
4902
|
A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4866
4903
|
new CustomEvent("initeditingbldr")
|
|
4867
4904
|
);
|
|
4868
|
-
const o = this.builderContextSignal.content &&
|
|
4905
|
+
const o = this.builderContextSignal.content && G(this.canTrack), r = Re({
|
|
4869
4906
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
4870
4907
|
canTrack: !0
|
|
4871
4908
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
4872
4909
|
if (o && i === r) {
|
|
4873
|
-
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id,
|
|
4874
|
-
|
|
4910
|
+
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, a = this.apiKey;
|
|
4911
|
+
xe({
|
|
4875
4912
|
apiHost: this.apiHost,
|
|
4876
4913
|
type: "impression",
|
|
4877
4914
|
canTrack: !0,
|
|
4878
4915
|
contentId: s,
|
|
4879
|
-
apiKey:
|
|
4916
|
+
apiKey: a,
|
|
4880
4917
|
variationId: r !== s ? r : void 0
|
|
4881
4918
|
});
|
|
4882
4919
|
}
|
|
4883
|
-
|
|
4920
|
+
me() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4884
4921
|
new CustomEvent("initpreviewingbldr")
|
|
4885
4922
|
);
|
|
4886
4923
|
}
|
|
@@ -4922,7 +4959,7 @@ font-weight: ${s};
|
|
|
4922
4959
|
}
|
|
4923
4960
|
},
|
|
4924
4961
|
unmounted() {
|
|
4925
|
-
|
|
4962
|
+
R() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
4926
4963
|
"builder:component:stateChangeListenerActivated",
|
|
4927
4964
|
this.emitStateUpdate
|
|
4928
4965
|
));
|
|
@@ -4965,7 +5002,7 @@ font-weight: ${s};
|
|
|
4965
5002
|
this.builderContextSignal.rootSetState ? (r = (o = this.builderContextSignal).rootSetState) == null || r.call(o, n) : this.builderContextSignal.rootState = n, this.builderContextSignal.rootSetState ? this.builderContextSignal.rootSetState(n) : this.builderContextSignal.rootState = n;
|
|
4966
5003
|
},
|
|
4967
5004
|
mergeNewContent(e, t) {
|
|
4968
|
-
var o, r, i, s,
|
|
5005
|
+
var o, r, i, s, a;
|
|
4969
5006
|
const n = {
|
|
4970
5007
|
...this.builderContextSignal.content,
|
|
4971
5008
|
...e,
|
|
@@ -4976,13 +5013,13 @@ font-weight: ${s};
|
|
|
4976
5013
|
meta: {
|
|
4977
5014
|
...(r = this.builderContextSignal.content) == null ? void 0 : r.meta,
|
|
4978
5015
|
...e == null ? void 0 : e.meta,
|
|
4979
|
-
breakpoints: ((i = e == null ? void 0 : e.meta) == null ? void 0 : i.breakpoints) || ((
|
|
5016
|
+
breakpoints: ((i = e == null ? void 0 : e.meta) == null ? void 0 : i.breakpoints) || ((a = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : a.breakpoints)
|
|
4980
5017
|
}
|
|
4981
5018
|
};
|
|
4982
5019
|
this.builderContextSignal.content = n;
|
|
4983
5020
|
},
|
|
4984
5021
|
processMessage(e) {
|
|
4985
|
-
return
|
|
5022
|
+
return St({
|
|
4986
5023
|
model: this.model,
|
|
4987
5024
|
trustedHosts: this.trustedHosts,
|
|
4988
5025
|
callbacks: {
|
|
@@ -4996,7 +5033,7 @@ font-weight: ${s};
|
|
|
4996
5033
|
});
|
|
4997
5034
|
},
|
|
4998
5035
|
animation: (t) => {
|
|
4999
|
-
|
|
5036
|
+
$t(t);
|
|
5000
5037
|
},
|
|
5001
5038
|
contentUpdate: (t, n) => {
|
|
5002
5039
|
this.mergeNewContent(t, n);
|
|
@@ -5011,14 +5048,14 @@ font-weight: ${s};
|
|
|
5011
5048
|
var t, n;
|
|
5012
5049
|
if (this.builderContextSignal.content) {
|
|
5013
5050
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
5014
|
-
|
|
5051
|
+
xe({
|
|
5015
5052
|
apiHost: this.apiHost,
|
|
5016
5053
|
type: "click",
|
|
5017
|
-
canTrack:
|
|
5054
|
+
canTrack: G(this.canTrack),
|
|
5018
5055
|
contentId: r,
|
|
5019
5056
|
apiKey: this.apiKey,
|
|
5020
5057
|
variationId: o !== r ? o : void 0,
|
|
5021
|
-
...
|
|
5058
|
+
...qi(e),
|
|
5022
5059
|
unique: !this.clicked
|
|
5023
5060
|
});
|
|
5024
5061
|
}
|
|
@@ -5036,10 +5073,10 @@ font-weight: ${s};
|
|
|
5036
5073
|
return;
|
|
5037
5074
|
const s = i ? r.request.url : r;
|
|
5038
5075
|
this.httpReqsPending[o] = !0;
|
|
5039
|
-
const
|
|
5076
|
+
const a = s.replace(
|
|
5040
5077
|
/{{([^}]+)}}/g,
|
|
5041
5078
|
(p, b) => String(
|
|
5042
|
-
|
|
5079
|
+
te({
|
|
5043
5080
|
code: b,
|
|
5044
5081
|
context: this.context || {},
|
|
5045
5082
|
localState: void 0,
|
|
@@ -5047,22 +5084,22 @@ font-weight: ${s};
|
|
|
5047
5084
|
rootSetState: this.builderContextSignal.rootSetState
|
|
5048
5085
|
})
|
|
5049
5086
|
)
|
|
5050
|
-
),
|
|
5051
|
-
url:
|
|
5087
|
+
), l = i ? {
|
|
5088
|
+
url: a,
|
|
5052
5089
|
method: r.request.method,
|
|
5053
5090
|
headers: r.request.headers,
|
|
5054
5091
|
body: r.request.body
|
|
5055
5092
|
} : {
|
|
5056
|
-
url:
|
|
5093
|
+
url: a,
|
|
5057
5094
|
method: "GET"
|
|
5058
5095
|
};
|
|
5059
|
-
|
|
5060
|
-
const
|
|
5061
|
-
method:
|
|
5062
|
-
headers:
|
|
5063
|
-
body:
|
|
5096
|
+
ut(JSON.stringify(l));
|
|
5097
|
+
const d = {
|
|
5098
|
+
method: l.method,
|
|
5099
|
+
headers: l.headers,
|
|
5100
|
+
body: l.body
|
|
5064
5101
|
};
|
|
5065
|
-
|
|
5102
|
+
l.method === "GET" && delete d.body, fetch(l.url, d).then((p) => p.json()).then((p) => {
|
|
5066
5103
|
this.mergeNewRootState({
|
|
5067
5104
|
[o]: p
|
|
5068
5105
|
}), this.httpReqsData[o] = !0;
|
|
@@ -5084,7 +5121,7 @@ font-weight: ${s};
|
|
|
5084
5121
|
"builder:component:stateChange",
|
|
5085
5122
|
{
|
|
5086
5123
|
detail: {
|
|
5087
|
-
state:
|
|
5124
|
+
state: _t(this.builderContextSignal.rootState),
|
|
5088
5125
|
ref: {
|
|
5089
5126
|
name: this.model
|
|
5090
5127
|
}
|
|
@@ -5094,7 +5131,7 @@ font-weight: ${s};
|
|
|
5094
5131
|
);
|
|
5095
5132
|
},
|
|
5096
5133
|
elementRef_onIniteditingbldr(e) {
|
|
5097
|
-
window.addEventListener("message", this.processMessage),
|
|
5134
|
+
window.addEventListener("message", this.processMessage), yt({
|
|
5098
5135
|
...this.locale ? {
|
|
5099
5136
|
locale: this.locale
|
|
5100
5137
|
} : {},
|
|
@@ -5114,7 +5151,7 @@ font-weight: ${s};
|
|
|
5114
5151
|
).forEach((t) => {
|
|
5115
5152
|
var n, o;
|
|
5116
5153
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
5117
|
-
const r =
|
|
5154
|
+
const r = Tn(t);
|
|
5118
5155
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
5119
5156
|
}
|
|
5120
5157
|
}), window.addEventListener(
|
|
@@ -5127,7 +5164,7 @@ font-weight: ${s};
|
|
|
5127
5164
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5128
5165
|
`builder.overrides.${n}`
|
|
5129
5166
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5130
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5167
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Ve({
|
|
5131
5168
|
model: this.model,
|
|
5132
5169
|
apiKey: this.apiKey,
|
|
5133
5170
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5142,72 +5179,123 @@ font-weight: ${s};
|
|
|
5142
5179
|
}
|
|
5143
5180
|
}
|
|
5144
5181
|
});
|
|
5145
|
-
function
|
|
5146
|
-
var s,
|
|
5147
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (
|
|
5182
|
+
function ts(e, t, n, o, r, i) {
|
|
5183
|
+
var s, a, l;
|
|
5184
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (u(), k(X(e.ContentWrapper), I({
|
|
5148
5185
|
key: 0,
|
|
5149
5186
|
ref: "elementRef",
|
|
5150
|
-
onClick: (
|
|
5187
|
+
onClick: (d) => e.onClick(d),
|
|
5151
5188
|
"builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
|
|
5152
5189
|
"builder-model": e.model,
|
|
5153
|
-
className: e.getWrapperClassName(((
|
|
5190
|
+
className: e.getWrapperClassName(((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)),
|
|
5154
5191
|
style: {
|
|
5155
5192
|
display: !e.builderContextSignal.content && e.needsElementRefDivForEditing() ? "none" : void 0
|
|
5156
5193
|
},
|
|
5157
|
-
onIniteditingbldr: (
|
|
5158
|
-
onInitpreviewingbldr: (
|
|
5194
|
+
onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
|
|
5195
|
+
onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
|
|
5159
5196
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
5160
|
-
default:
|
|
5197
|
+
default: O(() => [
|
|
5161
5198
|
V(e.$slots, "default")
|
|
5162
5199
|
]),
|
|
5163
5200
|
_: 3
|
|
5164
5201
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : T("", !0);
|
|
5165
5202
|
}
|
|
5166
|
-
const
|
|
5203
|
+
const ns = /* @__PURE__ */ S(es, [["render", ts]]), os = y({
|
|
5167
5204
|
name: "content-styles",
|
|
5168
|
-
components: { InlinedStyles:
|
|
5205
|
+
components: { InlinedStyles: he },
|
|
5169
5206
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5170
5207
|
data() {
|
|
5171
5208
|
return {
|
|
5172
5209
|
injectedStyles: `
|
|
5173
|
-
${
|
|
5210
|
+
${Qi({
|
|
5174
5211
|
cssCode: this.cssCode,
|
|
5175
5212
|
contentId: this.contentId
|
|
5176
5213
|
})}
|
|
5177
|
-
${
|
|
5214
|
+
${_i({
|
|
5178
5215
|
customFonts: this.customFonts
|
|
5179
5216
|
})}
|
|
5180
|
-
${
|
|
5217
|
+
${Xi(this.isNestedRender)}
|
|
5181
5218
|
`.trim()
|
|
5182
5219
|
};
|
|
5183
5220
|
}
|
|
5184
5221
|
});
|
|
5185
|
-
function
|
|
5186
|
-
const s =
|
|
5187
|
-
return
|
|
5222
|
+
function rs(e, t, n, o, r, i) {
|
|
5223
|
+
const s = v("InlinedStyles");
|
|
5224
|
+
return u(), k(s, {
|
|
5188
5225
|
id: "builderio-content",
|
|
5189
5226
|
styles: e.injectedStyles,
|
|
5190
5227
|
nonce: e.nonce
|
|
5191
5228
|
}, null, 8, ["styles", "nonce"]);
|
|
5192
5229
|
}
|
|
5193
|
-
const
|
|
5230
|
+
const is = /* @__PURE__ */ S(os, [["render", rs]]), ue = (e, t = /* @__PURE__ */ new WeakMap()) => {
|
|
5231
|
+
if (e === null || typeof e != "object")
|
|
5232
|
+
return e;
|
|
5233
|
+
if (t.has(e))
|
|
5234
|
+
return t.get(e);
|
|
5235
|
+
if (Array.isArray(e)) {
|
|
5236
|
+
const r = [];
|
|
5237
|
+
t.set(e, r);
|
|
5238
|
+
for (let i = 0; i < e.length; i++)
|
|
5239
|
+
r[i] = ue(e[i], t);
|
|
5240
|
+
return r;
|
|
5241
|
+
}
|
|
5242
|
+
const n = Object.getPrototypeOf(e);
|
|
5243
|
+
if (n !== Object.prototype && n !== null)
|
|
5244
|
+
return e;
|
|
5245
|
+
const o = {};
|
|
5246
|
+
t.set(e, o);
|
|
5247
|
+
for (const r of Object.keys(e)) {
|
|
5248
|
+
const i = ue(e[r], t);
|
|
5249
|
+
r === "__proto__" ? Object.defineProperty(o, r, {
|
|
5250
|
+
value: i,
|
|
5251
|
+
enumerable: !0,
|
|
5252
|
+
writable: !0,
|
|
5253
|
+
configurable: !0
|
|
5254
|
+
}) : o[r] = i;
|
|
5255
|
+
}
|
|
5256
|
+
return o;
|
|
5257
|
+
}, it = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), Wt = (e) => {
|
|
5258
|
+
const t = it.get(e);
|
|
5259
|
+
if (t)
|
|
5260
|
+
return t;
|
|
5261
|
+
const {
|
|
5262
|
+
component: n,
|
|
5263
|
+
...o
|
|
5264
|
+
} = e, r = Pe(o);
|
|
5265
|
+
return it.set(e, r), r;
|
|
5266
|
+
}, ss = (e, t) => {
|
|
5267
|
+
const n = {};
|
|
5268
|
+
for (const o of e) {
|
|
5269
|
+
let r = st.get(o);
|
|
5270
|
+
r || (r = {
|
|
5271
|
+
component: t(o.component),
|
|
5272
|
+
...Wt(o)
|
|
5273
|
+
}, st.set(o, r)), n[o.name] = r;
|
|
5274
|
+
}
|
|
5275
|
+
return n;
|
|
5276
|
+
}, as = (e) => {
|
|
5277
|
+
const t = {};
|
|
5278
|
+
for (const n of e)
|
|
5279
|
+
t[n.name] = Wt(n);
|
|
5280
|
+
return t;
|
|
5281
|
+
}, ls = ({
|
|
5194
5282
|
content: e,
|
|
5195
5283
|
data: t,
|
|
5196
5284
|
locale: n
|
|
5197
5285
|
}) => {
|
|
5198
|
-
var
|
|
5199
|
-
const o = {}, r = (
|
|
5200
|
-
return (l = (
|
|
5201
|
-
|
|
5286
|
+
var s, a, l;
|
|
5287
|
+
const o = {}, r = /* @__PURE__ */ new WeakMap(), i = ue(((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {}, r);
|
|
5288
|
+
return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((d) => {
|
|
5289
|
+
d.name && d.defaultValue !== void 0 && (o[d.name] = ue(d.defaultValue, r));
|
|
5202
5290
|
}), {
|
|
5203
5291
|
...o,
|
|
5204
|
-
...
|
|
5292
|
+
...i,
|
|
5205
5293
|
...t,
|
|
5206
5294
|
...n ? {
|
|
5207
5295
|
locale: n
|
|
5208
5296
|
} : {}
|
|
5209
5297
|
};
|
|
5210
|
-
},
|
|
5298
|
+
}, cs = ({
|
|
5211
5299
|
content: e,
|
|
5212
5300
|
data: t
|
|
5213
5301
|
}) => e ? {
|
|
@@ -5217,14 +5305,14 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
|
|
|
5217
5305
|
...t
|
|
5218
5306
|
},
|
|
5219
5307
|
meta: e == null ? void 0 : e.meta
|
|
5220
|
-
} : void 0,
|
|
5308
|
+
} : void 0, ds = Dt, us = y({
|
|
5221
5309
|
name: "content-component",
|
|
5222
5310
|
components: {
|
|
5223
|
-
EnableEditor:
|
|
5224
|
-
InlinedScript:
|
|
5225
|
-
ContentStyles:
|
|
5226
|
-
Blocks:
|
|
5227
|
-
DynamicDiv:
|
|
5311
|
+
EnableEditor: ns,
|
|
5312
|
+
InlinedScript: Oe,
|
|
5313
|
+
ContentStyles: is,
|
|
5314
|
+
Blocks: z,
|
|
5315
|
+
DynamicDiv: ne
|
|
5228
5316
|
},
|
|
5229
5317
|
props: [
|
|
5230
5318
|
"content",
|
|
@@ -5253,32 +5341,23 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
|
|
|
5253
5341
|
data() {
|
|
5254
5342
|
var e, t;
|
|
5255
5343
|
return {
|
|
5256
|
-
scriptStr:
|
|
5344
|
+
scriptStr: Hi({
|
|
5257
5345
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5258
5346
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5259
5347
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5260
5348
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5261
5349
|
}),
|
|
5262
|
-
registeredComponents:
|
|
5263
|
-
...
|
|
5264
|
-
|
|
5265
|
-
].reduce(
|
|
5266
|
-
(n, { component: o, ...r }) => ({
|
|
5267
|
-
...n,
|
|
5268
|
-
[r.name]: {
|
|
5269
|
-
component: Ji(o),
|
|
5270
|
-
...le(r)
|
|
5271
|
-
}
|
|
5272
|
-
}),
|
|
5273
|
-
{}
|
|
5350
|
+
registeredComponents: ss(
|
|
5351
|
+
[...nt(), ...this.customComponents || []],
|
|
5352
|
+
(n) => ds(n)
|
|
5274
5353
|
),
|
|
5275
5354
|
builderContextSignal: {
|
|
5276
|
-
content:
|
|
5355
|
+
content: cs({
|
|
5277
5356
|
content: this.content,
|
|
5278
5357
|
data: this.data
|
|
5279
5358
|
}),
|
|
5280
5359
|
localState: void 0,
|
|
5281
|
-
rootState:
|
|
5360
|
+
rootState: ls({
|
|
5282
5361
|
content: this.content,
|
|
5283
5362
|
data: this.data,
|
|
5284
5363
|
locale: this.locale
|
|
@@ -5288,29 +5367,23 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
|
|
|
5288
5367
|
canTrack: this.canTrack,
|
|
5289
5368
|
apiKey: this.apiKey,
|
|
5290
5369
|
apiVersion: this.apiVersion,
|
|
5291
|
-
componentInfos: [
|
|
5292
|
-
...
|
|
5370
|
+
componentInfos: as([
|
|
5371
|
+
...nt(),
|
|
5293
5372
|
...this.customComponents || []
|
|
5294
|
-
]
|
|
5295
|
-
(n, { component: o, ...r }) => ({
|
|
5296
|
-
...n,
|
|
5297
|
-
[r.name]: le(r)
|
|
5298
|
-
}),
|
|
5299
|
-
{}
|
|
5300
|
-
),
|
|
5373
|
+
]),
|
|
5301
5374
|
inheritedStyles: {},
|
|
5302
5375
|
BlocksWrapper: this.blocksWrapper || "div",
|
|
5303
5376
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
5304
5377
|
nonce: this.nonce || "",
|
|
5305
5378
|
model: this.model
|
|
5306
5379
|
},
|
|
5307
|
-
TARGET:
|
|
5380
|
+
TARGET: E
|
|
5308
5381
|
};
|
|
5309
5382
|
},
|
|
5310
5383
|
provide() {
|
|
5311
5384
|
const e = this;
|
|
5312
5385
|
return {
|
|
5313
|
-
[
|
|
5386
|
+
[pt.key]: {
|
|
5314
5387
|
registeredComponents: e.registeredComponents
|
|
5315
5388
|
}
|
|
5316
5389
|
};
|
|
@@ -5321,7 +5394,7 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
|
|
|
5321
5394
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
5322
5395
|
);
|
|
5323
5396
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
5324
|
-
e &&
|
|
5397
|
+
e && te({
|
|
5325
5398
|
code: e,
|
|
5326
5399
|
context: this.context || {},
|
|
5327
5400
|
localState: void 0,
|
|
@@ -5354,9 +5427,9 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
|
|
|
5354
5427
|
}
|
|
5355
5428
|
}
|
|
5356
5429
|
});
|
|
5357
|
-
function
|
|
5358
|
-
const s =
|
|
5359
|
-
return
|
|
5430
|
+
function ps(e, t, n, o, r, i) {
|
|
5431
|
+
const s = v("InlinedScript"), a = v("ContentStyles"), l = v("Blocks"), d = v("EnableEditor");
|
|
5432
|
+
return u(), k(d, I({
|
|
5360
5433
|
apiHost: e.apiHost,
|
|
5361
5434
|
nonce: e.nonce,
|
|
5362
5435
|
content: e.content,
|
|
@@ -5375,16 +5448,16 @@ function Qi(e, t, n, o, r, i) {
|
|
|
5375
5448
|
trustedHosts: e.trustedHosts,
|
|
5376
5449
|
isNestedRender: e.isNestedRender
|
|
5377
5450
|
}, {}), {
|
|
5378
|
-
default:
|
|
5451
|
+
default: O(() => {
|
|
5379
5452
|
var p, b, c, m, f, g, P;
|
|
5380
5453
|
return [
|
|
5381
|
-
e.isSsrAbTest ? (
|
|
5454
|
+
e.isSsrAbTest ? (u(), k(s, {
|
|
5382
5455
|
key: 0,
|
|
5383
5456
|
id: "builderio-variant-visibility",
|
|
5384
5457
|
scriptStr: e.scriptStr,
|
|
5385
5458
|
nonce: e.nonce || ""
|
|
5386
5459
|
}, null, 8, ["scriptStr", "nonce"])) : T("", !0),
|
|
5387
|
-
e.TARGET !== "reactNative" ? (
|
|
5460
|
+
e.TARGET !== "reactNative" ? (u(), k(a, {
|
|
5388
5461
|
key: 1,
|
|
5389
5462
|
nonce: e.nonce || "",
|
|
5390
5463
|
isNestedRender: e.isNestedRender,
|
|
@@ -5392,7 +5465,7 @@ function Qi(e, t, n, o, r, i) {
|
|
|
5392
5465
|
cssCode: (c = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : c.cssCode,
|
|
5393
5466
|
customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
|
|
5394
5467
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : T("", !0),
|
|
5395
|
-
$(
|
|
5468
|
+
$(l, {
|
|
5396
5469
|
blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
|
|
5397
5470
|
context: e.builderContextSignal,
|
|
5398
5471
|
registeredComponents: e.registeredComponents,
|
|
@@ -5403,12 +5476,12 @@ function Qi(e, t, n, o, r, i) {
|
|
|
5403
5476
|
_: 1
|
|
5404
5477
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5405
5478
|
}
|
|
5406
|
-
const
|
|
5479
|
+
const ms = /* @__PURE__ */ S(us, [["render", ps]]), hs = y({
|
|
5407
5480
|
name: "content-variants",
|
|
5408
5481
|
components: {
|
|
5409
|
-
InlinedScript:
|
|
5410
|
-
InlinedStyles:
|
|
5411
|
-
ContentComponent:
|
|
5482
|
+
InlinedScript: Oe,
|
|
5483
|
+
InlinedStyles: he,
|
|
5484
|
+
ContentComponent: ms
|
|
5412
5485
|
},
|
|
5413
5486
|
props: [
|
|
5414
5487
|
"canTrack",
|
|
@@ -5434,16 +5507,16 @@ const Yi = /* @__PURE__ */ v(Gi, [["render", Qi]]), _i = y({
|
|
|
5434
5507
|
],
|
|
5435
5508
|
data() {
|
|
5436
5509
|
return {
|
|
5437
|
-
shouldRenderVariants:
|
|
5438
|
-
canTrack:
|
|
5510
|
+
shouldRenderVariants: Ui({
|
|
5511
|
+
canTrack: G(this.canTrack),
|
|
5439
5512
|
content: this.content
|
|
5440
5513
|
}),
|
|
5441
|
-
shouldEmitPersonalizationFns:
|
|
5442
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
5443
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5444
|
-
TARGET:
|
|
5445
|
-
getInitVariantsFnsScriptString:
|
|
5446
|
-
getVariants:
|
|
5514
|
+
shouldEmitPersonalizationFns: Zo(this.content),
|
|
5515
|
+
SDKS_SUPPORTING_PERSONALIZATION: Bt,
|
|
5516
|
+
getInitPersonalizationVariantsFnsScriptString: er,
|
|
5517
|
+
TARGET: E,
|
|
5518
|
+
getInitVariantsFnsScriptString: Li,
|
|
5519
|
+
getVariants: le
|
|
5447
5520
|
};
|
|
5448
5521
|
},
|
|
5449
5522
|
mounted() {
|
|
@@ -5451,8 +5524,8 @@ const Yi = /* @__PURE__ */ v(Gi, [["render", Qi]]), _i = y({
|
|
|
5451
5524
|
computed: {
|
|
5452
5525
|
updateCookieAndStylesScriptStr() {
|
|
5453
5526
|
var e;
|
|
5454
|
-
return
|
|
5455
|
-
|
|
5527
|
+
return Mi(
|
|
5528
|
+
le(this.content).map((t) => ({
|
|
5456
5529
|
id: t.testVariationId,
|
|
5457
5530
|
testRatio: t.testRatio
|
|
5458
5531
|
})),
|
|
@@ -5460,38 +5533,38 @@ const Yi = /* @__PURE__ */ v(Gi, [["render", Qi]]), _i = y({
|
|
|
5460
5533
|
);
|
|
5461
5534
|
},
|
|
5462
5535
|
hideVariantsStyleString() {
|
|
5463
|
-
return
|
|
5536
|
+
return le(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
5464
5537
|
},
|
|
5465
5538
|
defaultContent() {
|
|
5466
5539
|
var e;
|
|
5467
5540
|
return this.shouldRenderVariants ? {
|
|
5468
5541
|
...this.content,
|
|
5469
5542
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5470
|
-
} :
|
|
5543
|
+
} : Nn({
|
|
5471
5544
|
item: this.content,
|
|
5472
|
-
canTrack:
|
|
5545
|
+
canTrack: G(this.canTrack)
|
|
5473
5546
|
});
|
|
5474
5547
|
}
|
|
5475
5548
|
}
|
|
5476
5549
|
});
|
|
5477
|
-
function
|
|
5478
|
-
const s =
|
|
5479
|
-
return
|
|
5480
|
-
e.shouldEmitPersonalizationFns ? (
|
|
5481
|
-
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (
|
|
5550
|
+
function fs(e, t, n, o, r, i) {
|
|
5551
|
+
const s = v("InlinedScript"), a = v("InlinedStyles"), l = v("ContentComponent");
|
|
5552
|
+
return u(), h(w, null, [
|
|
5553
|
+
e.shouldEmitPersonalizationFns ? (u(), h(w, { key: 0 }, [
|
|
5554
|
+
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (u(), k(s, {
|
|
5482
5555
|
key: 0,
|
|
5483
5556
|
id: "builderio-init-personalization-variants-fns",
|
|
5484
5557
|
nonce: e.nonce || "",
|
|
5485
5558
|
scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
|
|
5486
5559
|
}, null, 8, ["nonce", "scriptStr"])) : T("", !0)
|
|
5487
5560
|
], 64)) : T("", !0),
|
|
5488
|
-
e.shouldRenderVariants ? (
|
|
5561
|
+
e.shouldRenderVariants ? (u(), h(w, { key: 1 }, [
|
|
5489
5562
|
$(s, {
|
|
5490
5563
|
id: "builderio-init-variants-fns",
|
|
5491
5564
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
5492
5565
|
nonce: e.nonce || ""
|
|
5493
5566
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5494
|
-
$(
|
|
5567
|
+
$(a, {
|
|
5495
5568
|
id: "builderio-variants",
|
|
5496
5569
|
styles: e.hideVariantsStyleString,
|
|
5497
5570
|
nonce: e.nonce || ""
|
|
@@ -5501,12 +5574,12 @@ function Xi(e, t, n, o, r, i) {
|
|
|
5501
5574
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5502
5575
|
nonce: e.nonce || ""
|
|
5503
5576
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5504
|
-
(
|
|
5505
|
-
key:
|
|
5577
|
+
(u(!0), h(w, null, x(e.getVariants(e.content), (d, p) => (u(), k(l, I({
|
|
5578
|
+
key: d.testVariationId,
|
|
5506
5579
|
apiHost: e.apiHost,
|
|
5507
5580
|
isNestedRender: e.isNestedRender,
|
|
5508
5581
|
nonce: e.nonce,
|
|
5509
|
-
content:
|
|
5582
|
+
content: d,
|
|
5510
5583
|
showContent: !1,
|
|
5511
5584
|
model: e.model,
|
|
5512
5585
|
data: e.data,
|
|
@@ -5527,7 +5600,7 @@ function Xi(e, t, n, o, r, i) {
|
|
|
5527
5600
|
trustedHosts: e.trustedHosts
|
|
5528
5601
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
5529
5602
|
], 64)) : T("", !0),
|
|
5530
|
-
$(
|
|
5603
|
+
$(l, I({
|
|
5531
5604
|
apiHost: e.apiHost,
|
|
5532
5605
|
nonce: e.nonce,
|
|
5533
5606
|
isNestedRender: e.isNestedRender,
|
|
@@ -5555,13 +5628,13 @@ function Xi(e, t, n, o, r, i) {
|
|
|
5555
5628
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5556
5629
|
], 64);
|
|
5557
5630
|
}
|
|
5558
|
-
const
|
|
5631
|
+
const bs = /* @__PURE__ */ S(hs, [["render", fs]]), gs = async ({
|
|
5559
5632
|
builderContextValue: e,
|
|
5560
5633
|
symbol: t
|
|
5561
5634
|
}) => {
|
|
5562
5635
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5563
5636
|
(e != null && e.apiKey))
|
|
5564
|
-
return
|
|
5637
|
+
return Ve({
|
|
5565
5638
|
model: t.model,
|
|
5566
5639
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5567
5640
|
apiVersion: e.apiVersion,
|
|
@@ -5573,9 +5646,9 @@ const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
|
|
|
5573
5646
|
}).catch((n) => {
|
|
5574
5647
|
F.error("Could not fetch symbol content: ", n);
|
|
5575
5648
|
});
|
|
5576
|
-
},
|
|
5649
|
+
}, ys = y({
|
|
5577
5650
|
name: "builder-symbol",
|
|
5578
|
-
components: { ContentVariants:
|
|
5651
|
+
components: { ContentVariants: bs, DynamicDiv: ne },
|
|
5579
5652
|
props: [
|
|
5580
5653
|
"symbol",
|
|
5581
5654
|
"builderComponents",
|
|
@@ -5617,7 +5690,7 @@ const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
|
|
|
5617
5690
|
className() {
|
|
5618
5691
|
var e, t;
|
|
5619
5692
|
return [
|
|
5620
|
-
this.attributes[
|
|
5693
|
+
this.attributes[H()],
|
|
5621
5694
|
"builder-symbol",
|
|
5622
5695
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
5623
5696
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -5632,7 +5705,7 @@ const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
|
|
|
5632
5705
|
methods: {
|
|
5633
5706
|
setContent() {
|
|
5634
5707
|
var e;
|
|
5635
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
5708
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || gs({
|
|
5636
5709
|
symbol: this.symbol,
|
|
5637
5710
|
builderContextValue: this.builderContext
|
|
5638
5711
|
}).then((t) => {
|
|
@@ -5642,18 +5715,18 @@ const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
|
|
|
5642
5715
|
}
|
|
5643
5716
|
}
|
|
5644
5717
|
});
|
|
5645
|
-
function
|
|
5646
|
-
var
|
|
5647
|
-
const s =
|
|
5648
|
-
return
|
|
5718
|
+
function Ss(e, t, n, o, r, i) {
|
|
5719
|
+
var a, l, d, p, b, c, m;
|
|
5720
|
+
const s = v("ContentVariants");
|
|
5721
|
+
return u(), h("div", I({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5649
5722
|
$(s, {
|
|
5650
5723
|
nonce: e.builderContext.nonce,
|
|
5651
5724
|
isNestedRender: !0,
|
|
5652
5725
|
apiVersion: e.builderContext.apiVersion,
|
|
5653
|
-
apiKey: (
|
|
5726
|
+
apiKey: (a = e.symbol) != null && a.global && ((l = e.symbol) != null && l.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
|
|
5654
5727
|
context: {
|
|
5655
5728
|
...e.builderContext.context,
|
|
5656
|
-
symbolId: (
|
|
5729
|
+
symbolId: (d = e.builderBlock) == null ? void 0 : d.id
|
|
5657
5730
|
},
|
|
5658
5731
|
customComponents: e.customComponents,
|
|
5659
5732
|
data: {
|
|
@@ -5670,44 +5743,44 @@ function ns(e, t, n, o, r, i) {
|
|
|
5670
5743
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5671
5744
|
], 16);
|
|
5672
5745
|
}
|
|
5673
|
-
const
|
|
5746
|
+
const ks = /* @__PURE__ */ S(ys, [["render", Ss]]);
|
|
5674
5747
|
export {
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5748
|
+
_n as A,
|
|
5749
|
+
At as B,
|
|
5750
|
+
Ao as C,
|
|
5751
|
+
Ve as D,
|
|
5752
|
+
Ts as E,
|
|
5753
|
+
No as F,
|
|
5754
|
+
Ns as G,
|
|
5755
|
+
Mo as I,
|
|
5756
|
+
zo as S,
|
|
5757
|
+
Wr as T,
|
|
5758
|
+
Ni as V,
|
|
5759
|
+
S as _,
|
|
5760
|
+
H as a,
|
|
5761
|
+
Se as b,
|
|
5762
|
+
he as c,
|
|
5763
|
+
As as d,
|
|
5764
|
+
te as e,
|
|
5765
|
+
$o as f,
|
|
5766
|
+
Vs as g,
|
|
5767
|
+
Bs as h,
|
|
5768
|
+
Ws as i,
|
|
5769
|
+
Ne as j,
|
|
5770
|
+
Cn as k,
|
|
5771
|
+
nn as l,
|
|
5772
|
+
ks as m,
|
|
5773
|
+
z as n,
|
|
5774
|
+
bs as o,
|
|
5775
|
+
me as p,
|
|
5776
|
+
Tn as q,
|
|
5777
|
+
ws as r,
|
|
5778
|
+
Es as s,
|
|
5779
|
+
Is as t,
|
|
5780
|
+
$s as u,
|
|
5781
|
+
bt as v,
|
|
5782
|
+
ds as w,
|
|
5783
|
+
Rs as x,
|
|
5784
|
+
Ps as y,
|
|
5785
|
+
Jn as z
|
|
5713
5786
|
};
|