@builder.io/sdk-vue 2.0.25 → 2.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{awaiter-tjkV0OML.js → awaiter-uzRVzcZ6.js} +1 -1
- package/lib/browser/{awaiter-23x9Wk9g.cjs → awaiter-zCZ9DAMz.cjs} +1 -1
- package/lib/browser/{block-styles-iSXgxy2c.js → block-styles-6qY_TBFM.js} +1 -1
- package/lib/browser/{block-styles-kRQCCX9t.cjs → block-styles-rFxKY8To.cjs} +1 -1
- package/lib/browser/{block-wrapper-7G8ua10s.js → block-wrapper-3wYQPVms.js} +3 -3
- package/lib/browser/{block-wrapper-b0FL4A4o.cjs → block-wrapper-uWJvqmnk.cjs} +1 -1
- package/lib/browser/blocks/columns/columns.vue.d.ts +6 -5
- package/lib/browser/{component-ref-quKGEuEz.cjs → component-ref-hBhFYTso.cjs} +1 -1
- package/lib/browser/{component-ref-23RPWonP.js → component-ref-xP2Elmh1.js} +3 -3
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +6 -0
- package/lib/browser/components/content/components/styles.vue.d.ts +3 -3
- package/lib/browser/components/content/content.vue.d.ts +3 -0
- package/lib/browser/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/evaluate/node-runtime/setIvm.d.ts +1 -0
- package/lib/browser/functions/get-content/types.d.ts +4 -0
- package/lib/browser/functions/track/index.d.ts +3 -1
- package/lib/browser/{get-block-properties-yY8QiK7p.js → get-block-properties-F4OIxBfF.js} +1 -1
- package/lib/browser/{get-block-properties-_P9vw3zA.cjs → get-block-properties-UMUMlzuS.cjs} +1 -1
- package/lib/browser/{index-udCKeeEB.js → index-InL0mFtx.js} +445 -425
- package/lib/browser/{index-DMWpqZ_2.cjs → index-xPtbXnZX.cjs} +20 -20
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-7mJZ0k_W.cjs → repeated-block-ICKJlLUh.cjs} +1 -1
- package/lib/browser/{repeated-block-ZXjysCEP.js → repeated-block-h6wP7nUB.js} +2 -2
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-q7QPf2ls.cjs → awaiter-54l-bppu.cjs} +1 -1
- package/lib/edge/{awaiter-8UIL439V.js → awaiter-hAyK-uXB.js} +1 -1
- package/lib/edge/{block-styles-TaCD-AEs.js → block-styles-DQQzKxS2.js} +1 -1
- package/lib/edge/{block-styles-btF9xO7m.cjs → block-styles-gYcphkPV.cjs} +1 -1
- package/lib/edge/{block-wrapper-mJEc21SN.cjs → block-wrapper-MiIe7noC.cjs} +1 -1
- package/lib/edge/{block-wrapper-dEWTROXs.js → block-wrapper-tTIzEleC.js} +3 -3
- package/lib/edge/blocks/columns/columns.vue.d.ts +6 -5
- package/lib/edge/{component-ref-ZtE936HW.cjs → component-ref-UwiRkPk2.cjs} +1 -1
- package/lib/edge/{component-ref-s40H3oSA.js → component-ref-kz3Obd_4.js} +3 -3
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +6 -0
- package/lib/edge/components/content/components/styles.vue.d.ts +3 -3
- package/lib/edge/components/content/content.vue.d.ts +3 -0
- package/lib/edge/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/evaluate/node-runtime/setIvm.d.ts +1 -0
- package/lib/edge/functions/get-content/types.d.ts +4 -0
- package/lib/edge/functions/track/index.d.ts +3 -1
- package/lib/edge/{get-block-properties-E6IlSVtd.js → get-block-properties-A2Pw1eVE.js} +1 -1
- package/lib/edge/{get-block-properties-cPpFrJzo.cjs → get-block-properties-mpbl9Lr0.cjs} +1 -1
- package/lib/edge/{index-e-9o30rZ.cjs → index--uXyZwlg.cjs} +15 -15
- package/lib/edge/{index-C9ugK_z9.js → index-uWdUvOrU.js} +605 -585
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/repeated-block-3r29TWSO.cjs → edge/repeated-block-AqmVXbtt.cjs} +1 -1
- package/lib/edge/{repeated-block-bCWBWRos.js → repeated-block-ssAazECV.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-RtzoFcgF.js → awaiter-IbJnWTiA.js} +1 -1
- package/lib/node/{awaiter-5RC_NBfF.cjs → awaiter-QAGy1jxt.cjs} +1 -1
- package/lib/node/{block-styles-p9EVZ--A.js → block-styles-a1lNlhp2.js} +2 -2
- package/lib/node/{block-styles--Z2ga0ww.cjs → block-styles-wKqB4Ory.cjs} +1 -1
- package/lib/node/{block-wrapper-X3JbYLjC.cjs → block-wrapper-o1F5OSiJ.cjs} +1 -1
- package/lib/node/{block-wrapper-3KYjgNSM.js → block-wrapper-qugtJ04Q.js} +3 -3
- package/lib/node/blocks/columns/columns.vue.d.ts +6 -5
- package/lib/node/{component-ref-sqw7jB13.cjs → component-ref-5Yhh77fb.cjs} +1 -1
- package/lib/node/{component-ref-otsSnHPE.js → component-ref-NKhHeKN1.js} +3 -3
- package/lib/node/components/content/components/enable-editor.vue.d.ts +6 -0
- package/lib/node/components/content/components/styles.vue.d.ts +3 -3
- package/lib/node/components/content/content.vue.d.ts +3 -0
- package/lib/node/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/evaluate/node-runtime/setIvm.d.ts +1 -0
- package/lib/node/functions/get-content/types.d.ts +4 -0
- package/lib/node/functions/track/index.d.ts +3 -1
- package/lib/node/{get-block-properties-e8oSlHVZ.js → get-block-properties-AIgDBI_j.js} +2 -2
- package/lib/node/{get-block-properties-P9abw_Qq.cjs → get-block-properties-zbCXU1Ay.cjs} +1 -1
- package/lib/node/{index-wlUebKy9.cjs → index-FrElABeq.cjs} +21 -21
- package/lib/node/{index-IksZ0BcQ.js → index-fGw0CDsj.js} +603 -583
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/repeated-block-H93-mkPL.cjs → node/repeated-block-N0xlT-99.cjs} +1 -1
- package/lib/node/{repeated-block-mD49LdDR.js → repeated-block-dqm2sVo0.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-k58tZzl7.cjs → should-force-browser-runtime-in-node-1vTKsoso.cjs} +3 -3
- package/lib/node/{should-force-browser-runtime-in-node-o45oecPI.js → should-force-browser-runtime-in-node-ikxWrCvn.js} +36 -34
- package/lib/node/style.css +1 -1
- package/nuxt.js +3 -2
- package/package.json +2 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as f, openBlock as d, createElementBlock as m, Fragment as T, createBlock as k, resolveDynamicComponent as
|
|
2
|
-
import { T as R, g as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as f, openBlock as d, createElementBlock as m, Fragment as T, createBlock as k, resolveDynamicComponent as M, mergeProps as C, toHandlers as P, withCtx as W, renderSlot as B, resolveComponent as v, createTextVNode as lt, toDisplayString as _, defineAsyncComponent as H, createVNode as I, renderList as A, createCommentVNode as S, h as Re, createElementVNode as K, normalizeStyle as O, normalizeClass as q, markRaw as ct } from "vue";
|
|
2
|
+
import { T as R, g as dt, f as ut, i as $, s as pt, r as mt, p as ht, a as ft, l as x, b as Ee, c as ce, d as bt, n as Pe, e as D, h as E, j as gt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
|
|
3
|
+
const yt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), kt = (e) => typeof e == "string" && yt.has(e.toLowerCase());
|
|
4
4
|
function V(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
7
7
|
if (!e[r] || n && !r.startsWith(t))
|
|
8
8
|
continue;
|
|
9
|
-
const
|
|
10
|
-
o[
|
|
9
|
+
const i = n ? r.replace(t, "") : r;
|
|
10
|
+
o[i] = e[r];
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const vt = f({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: kt };
|
|
19
19
|
}
|
|
20
20
|
}), b = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
@@ -23,14 +23,14 @@ const yt = f({
|
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (d(), k(
|
|
28
|
-
typeof e.TagName == "string" ? (d(), k(
|
|
26
|
+
function St(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (d(), k(M(e.TagName), C({ key: 1 }, e.attributes, P(e.actionAttributes)), null, 16)) : (d(), m(T, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (d(), k(M(e.TagName), C({ key: 0 }, e.attributes, P(e.actionAttributes)), {
|
|
29
29
|
default: W(() => [
|
|
30
30
|
B(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (d(), k(
|
|
33
|
+
}, 16)) : (d(), k(M(e.TagName), C({ key: 1 }, e.attributes, P(e.actionAttributes)), {
|
|
34
34
|
default: W(() => [
|
|
35
35
|
B(e.$slots, "default")
|
|
36
36
|
]),
|
|
@@ -38,7 +38,7 @@ function kt(e, t, n, o, r, s) {
|
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const de = /* @__PURE__ */ b(
|
|
41
|
+
const de = /* @__PURE__ */ b(vt, [["render", St]]), Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
default: de
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), Q = () => {
|
|
@@ -54,7 +54,7 @@ const de = /* @__PURE__ */ b(yt, [["render", kt]]), Ii = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, Ct = f({
|
|
58
58
|
name: "builder-button",
|
|
59
59
|
components: { DynamicRenderer: de },
|
|
60
60
|
props: [
|
|
@@ -83,20 +83,20 @@ const de = /* @__PURE__ */ b(yt, [["render", kt]]), Ii = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
87
|
-
const
|
|
88
|
-
return d(), k(
|
|
86
|
+
function Tt(e, t, n, o, r, i) {
|
|
87
|
+
const s = v("DynamicRenderer");
|
|
88
|
+
return d(), 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
93
|
default: W(() => [
|
|
94
|
-
|
|
94
|
+
lt(_(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const wt = /* @__PURE__ */ b(Ct, [["render", Tt]]), It = Symbol(), se = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -112,52 +112,52 @@ const Ct = /* @__PURE__ */ b(vt, [["render", St]]), Tt = Symbol(), ie = {
|
|
|
112
112
|
BlocksWrapperProps: {},
|
|
113
113
|
nonce: ""
|
|
114
114
|
},
|
|
115
|
-
key:
|
|
116
|
-
},
|
|
115
|
+
key: It
|
|
116
|
+
}, $t = Symbol(), Be = {
|
|
117
117
|
Components: { registeredComponents: {} },
|
|
118
|
-
key:
|
|
118
|
+
key: $t
|
|
119
119
|
};
|
|
120
|
-
function
|
|
120
|
+
function Rt(e) {
|
|
121
121
|
var t;
|
|
122
122
|
return {
|
|
123
123
|
...(t = e.component) == null ? void 0 : t.options,
|
|
124
124
|
...e.options
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Et(e, ...t) {
|
|
128
128
|
const n = Object.assign({}, e);
|
|
129
129
|
for (const o of t)
|
|
130
130
|
delete n[o];
|
|
131
131
|
return n;
|
|
132
132
|
}
|
|
133
133
|
const xe = (e, t, n) => {
|
|
134
|
-
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r,
|
|
134
|
+
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
135
135
|
return o === void 0 || o === e ? n : o;
|
|
136
|
-
},
|
|
136
|
+
}, Pt = ({
|
|
137
137
|
code: e,
|
|
138
138
|
builder: t,
|
|
139
139
|
context: n,
|
|
140
140
|
event: o,
|
|
141
141
|
localState: r,
|
|
142
|
-
rootSetState:
|
|
143
|
-
rootState:
|
|
142
|
+
rootSetState: i,
|
|
143
|
+
rootState: s
|
|
144
144
|
}) => {
|
|
145
|
-
const l =
|
|
145
|
+
const l = dt({
|
|
146
146
|
builder: t,
|
|
147
147
|
context: n,
|
|
148
148
|
event: o,
|
|
149
|
-
state:
|
|
150
|
-
rootState:
|
|
149
|
+
state: ut({
|
|
150
|
+
rootState: s,
|
|
151
151
|
localState: r,
|
|
152
|
-
rootSetState:
|
|
152
|
+
rootSetState: i
|
|
153
153
|
})
|
|
154
154
|
});
|
|
155
155
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
156
|
-
},
|
|
156
|
+
}, Bt = (e) => $() || pt({
|
|
157
157
|
shouldLogWarning: !0
|
|
158
|
-
}) ?
|
|
159
|
-
var t, n, o, r,
|
|
160
|
-
return ((o = (n = (t =
|
|
158
|
+
}) ? Pt(e) : mt(e), xt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, At = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Vt = (e) => {
|
|
159
|
+
var t, n, o, r, i, s;
|
|
160
|
+
return ((o = (n = (t = xt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = At.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
161
161
|
};
|
|
162
162
|
function J({
|
|
163
163
|
code: e,
|
|
@@ -165,30 +165,30 @@ function J({
|
|
|
165
165
|
localState: n,
|
|
166
166
|
rootState: o,
|
|
167
167
|
rootSetState: r,
|
|
168
|
-
event:
|
|
169
|
-
isExpression:
|
|
168
|
+
event: i,
|
|
169
|
+
isExpression: s = !0
|
|
170
170
|
}) {
|
|
171
171
|
if (e.trim() === "")
|
|
172
172
|
return;
|
|
173
|
-
const l =
|
|
173
|
+
const l = Vt(e.trim());
|
|
174
174
|
if (l)
|
|
175
175
|
return xe({
|
|
176
176
|
...o,
|
|
177
177
|
...n
|
|
178
178
|
}, l);
|
|
179
179
|
const a = {
|
|
180
|
-
code:
|
|
181
|
-
isExpression:
|
|
180
|
+
code: ht(e, {
|
|
181
|
+
isExpression: s
|
|
182
182
|
}),
|
|
183
|
-
builder:
|
|
183
|
+
builder: ft(),
|
|
184
184
|
context: t,
|
|
185
|
-
event:
|
|
185
|
+
event: i,
|
|
186
186
|
rootSetState: r,
|
|
187
187
|
rootState: o,
|
|
188
188
|
localState: n
|
|
189
189
|
};
|
|
190
190
|
try {
|
|
191
|
-
return
|
|
191
|
+
return Bt(a);
|
|
192
192
|
} catch (u) {
|
|
193
193
|
x.error("Failed code evaluation: " + u.message, {
|
|
194
194
|
code: e
|
|
@@ -196,20 +196,20 @@ function J({
|
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function ie(e) {
|
|
200
200
|
if (e === null || typeof e != "object")
|
|
201
201
|
return e;
|
|
202
202
|
if (Array.isArray(e))
|
|
203
|
-
return e.map((n) =>
|
|
203
|
+
return e.map((n) => ie(n));
|
|
204
204
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
205
205
|
return e;
|
|
206
206
|
const t = {};
|
|
207
207
|
for (const n in e)
|
|
208
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
208
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ie(e[n]));
|
|
209
209
|
return t;
|
|
210
210
|
}
|
|
211
|
-
const
|
|
212
|
-
if (
|
|
211
|
+
const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Nt = (e) => {
|
|
212
|
+
if (Wt) {
|
|
213
213
|
const t = ce(e);
|
|
214
214
|
return {
|
|
215
215
|
...t,
|
|
@@ -221,7 +221,7 @@ const At = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Vt = (e) =
|
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
223
|
} else {
|
|
224
|
-
const t =
|
|
224
|
+
const t = ie(Et(e, "children", "meta"));
|
|
225
225
|
return {
|
|
226
226
|
...t,
|
|
227
227
|
properties: {
|
|
@@ -234,7 +234,7 @@ const At = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Vt = (e) =
|
|
|
234
234
|
meta: e.meta
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
|
-
},
|
|
237
|
+
}, Ft = ({
|
|
238
238
|
block: e,
|
|
239
239
|
context: t,
|
|
240
240
|
localState: n,
|
|
@@ -243,52 +243,52 @@ const At = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Vt = (e) =
|
|
|
243
243
|
}) => {
|
|
244
244
|
if (!e.bindings)
|
|
245
245
|
return e;
|
|
246
|
-
const
|
|
247
|
-
for (const
|
|
248
|
-
const l = e.bindings[
|
|
246
|
+
const i = Nt(e);
|
|
247
|
+
for (const s in e.bindings) {
|
|
248
|
+
const l = e.bindings[s], a = J({
|
|
249
249
|
code: l,
|
|
250
250
|
localState: n,
|
|
251
251
|
rootState: o,
|
|
252
252
|
rootSetState: r,
|
|
253
253
|
context: t
|
|
254
254
|
});
|
|
255
|
-
Ee(
|
|
255
|
+
Ee(i, s, a);
|
|
256
256
|
}
|
|
257
|
-
return
|
|
257
|
+
return i;
|
|
258
258
|
};
|
|
259
|
-
function
|
|
259
|
+
function Ot({
|
|
260
260
|
block: e,
|
|
261
261
|
context: t,
|
|
262
262
|
shouldEvaluateBindings: n,
|
|
263
263
|
localState: o,
|
|
264
264
|
rootState: r,
|
|
265
|
-
rootSetState:
|
|
265
|
+
rootSetState: i
|
|
266
266
|
}) {
|
|
267
|
-
const
|
|
268
|
-
return n ?
|
|
269
|
-
block:
|
|
267
|
+
const s = e;
|
|
268
|
+
return n ? Ft({
|
|
269
|
+
block: s,
|
|
270
270
|
localState: o,
|
|
271
271
|
rootState: r,
|
|
272
|
-
rootSetState:
|
|
272
|
+
rootSetState: i,
|
|
273
273
|
context: t
|
|
274
|
-
}) :
|
|
274
|
+
}) : s;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Dt(e) {
|
|
277
277
|
const t = e || ($() ? window.location.search : void 0);
|
|
278
|
-
return t ?
|
|
278
|
+
return t ? bt(t).indexOf("builder.preview=") !== -1 : !1;
|
|
279
279
|
}
|
|
280
|
-
const
|
|
280
|
+
const Lt = (e) => ({
|
|
281
281
|
type: "builder.registerComponent",
|
|
282
282
|
data: Z(e)
|
|
283
|
-
}),
|
|
283
|
+
}), Ut = (e) => {
|
|
284
284
|
const t = e.toString().trim();
|
|
285
285
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
286
286
|
};
|
|
287
287
|
function Z(e) {
|
|
288
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
288
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Ut(n) : n));
|
|
289
289
|
}
|
|
290
290
|
const ye = {};
|
|
291
|
-
function
|
|
291
|
+
function Ht(e, t) {
|
|
292
292
|
e === "plugin" && (t = Z(t));
|
|
293
293
|
let n = ye[e];
|
|
294
294
|
if (n || (n = ye[e] = []), n.push(t), $()) {
|
|
@@ -307,7 +307,7 @@ function Lt(e, t) {
|
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
const ke = {};
|
|
310
|
-
function
|
|
310
|
+
function Es(e) {
|
|
311
311
|
if ($()) {
|
|
312
312
|
Object.assign(ke, e);
|
|
313
313
|
const t = {
|
|
@@ -317,26 +317,26 @@ function $i(e) {
|
|
|
317
317
|
parent.postMessage(t, "*");
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
const ve = "builder.",
|
|
320
|
+
const ve = "builder.", Mt = "options.", Ae = (e) => {
|
|
321
321
|
if (!e)
|
|
322
322
|
return {};
|
|
323
323
|
const t = Pe(e), n = {};
|
|
324
324
|
return Object.keys(t).forEach((o) => {
|
|
325
325
|
if (o.startsWith(ve)) {
|
|
326
|
-
const r = o.replace(ve, "").replace(
|
|
326
|
+
const r = o.replace(ve, "").replace(Mt, "");
|
|
327
327
|
n[r] = t[o];
|
|
328
328
|
}
|
|
329
329
|
}), n;
|
|
330
|
-
},
|
|
330
|
+
}, jt = () => {
|
|
331
331
|
if (!$())
|
|
332
332
|
return {};
|
|
333
333
|
const e = new URLSearchParams(window.location.search);
|
|
334
334
|
return Ae(e);
|
|
335
|
-
}, Ve = "2.0.
|
|
335
|
+
}, Ve = "2.0.28", We = () => ({
|
|
336
336
|
"X-Builder-SDK": R,
|
|
337
337
|
"X-Builder-SDK-GEN": "2",
|
|
338
338
|
"X-Builder-SDK-Version": Ve
|
|
339
|
-
}),
|
|
339
|
+
}), Kt = (e) => {
|
|
340
340
|
if (e === "localhost" || e === "127.0.0.1")
|
|
341
341
|
return e;
|
|
342
342
|
const t = e.split(".");
|
|
@@ -352,13 +352,13 @@ const ve = "builder.", Ut = "options.", Ae = (e) => {
|
|
|
352
352
|
x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
353
353
|
return;
|
|
354
354
|
}
|
|
355
|
-
}, Fe = async (e) => Ne(e),
|
|
355
|
+
}, Fe = async (e) => Ne(e), qt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), zt = [["secure", ""], ["SameSite", "None"]], Jt = ({
|
|
356
356
|
name: e,
|
|
357
357
|
value: t,
|
|
358
358
|
expires: n
|
|
359
359
|
}) => {
|
|
360
|
-
const r = ($() ? location.protocol === "https:" : !0) ?
|
|
361
|
-
return
|
|
360
|
+
const r = ($() ? location.protocol === "https:" : !0) ? zt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Kt(window.location.hostname)], ...r];
|
|
361
|
+
return qt(s);
|
|
362
362
|
}, Oe = async ({
|
|
363
363
|
name: e,
|
|
364
364
|
value: t,
|
|
@@ -368,7 +368,7 @@ const ve = "builder.", Ut = "options.", Ae = (e) => {
|
|
|
368
368
|
try {
|
|
369
369
|
if (!o)
|
|
370
370
|
return;
|
|
371
|
-
const r =
|
|
371
|
+
const r = Jt({
|
|
372
372
|
name: e,
|
|
373
373
|
value: t,
|
|
374
374
|
expires: n
|
|
@@ -378,16 +378,16 @@ const ve = "builder.", Ut = "options.", Ae = (e) => {
|
|
|
378
378
|
x.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
379
379
|
}
|
|
380
380
|
};
|
|
381
|
-
function
|
|
381
|
+
function Gt() {
|
|
382
382
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
383
383
|
const t = Math.random() * 16 | 0;
|
|
384
384
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
387
|
function De() {
|
|
388
|
-
return
|
|
388
|
+
return Gt().replace(/-/g, "");
|
|
389
389
|
}
|
|
390
|
-
const Le = "builderSessionId",
|
|
390
|
+
const Le = "builderSessionId", Yt = async ({
|
|
391
391
|
canTrack: e
|
|
392
392
|
}) => {
|
|
393
393
|
if (!e)
|
|
@@ -399,20 +399,20 @@ const Le = "builderSessionId", Jt = async ({
|
|
|
399
399
|
if (D(t))
|
|
400
400
|
return t;
|
|
401
401
|
{
|
|
402
|
-
const n =
|
|
403
|
-
return
|
|
402
|
+
const n = Xt();
|
|
403
|
+
return Qt({
|
|
404
404
|
id: n,
|
|
405
405
|
canTrack: e
|
|
406
406
|
}), n;
|
|
407
407
|
}
|
|
408
|
-
},
|
|
408
|
+
}, Xt = () => De(), Qt = ({
|
|
409
409
|
id: e,
|
|
410
410
|
canTrack: t
|
|
411
411
|
}) => Oe({
|
|
412
412
|
name: Le,
|
|
413
413
|
value: e,
|
|
414
414
|
canTrack: t
|
|
415
|
-
}), Ue = () => $() && typeof localStorage < "u" ? localStorage : void 0,
|
|
415
|
+
}), Ue = () => $() && typeof localStorage < "u" ? localStorage : void 0, Zt = ({
|
|
416
416
|
key: e,
|
|
417
417
|
canTrack: t
|
|
418
418
|
}) => {
|
|
@@ -423,7 +423,7 @@ const Le = "builderSessionId", Jt = async ({
|
|
|
423
423
|
console.debug("[LocalStorage] GET error: ", o);
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
|
-
},
|
|
426
|
+
}, _t = ({
|
|
427
427
|
key: e,
|
|
428
428
|
canTrack: t,
|
|
429
429
|
value: n
|
|
@@ -434,32 +434,32 @@ const Le = "builderSessionId", Jt = async ({
|
|
|
434
434
|
} catch (r) {
|
|
435
435
|
console.debug("[LocalStorage] SET error: ", r);
|
|
436
436
|
}
|
|
437
|
-
},
|
|
437
|
+
}, He = "builderVisitorId", en = ({
|
|
438
438
|
canTrack: e
|
|
439
439
|
}) => {
|
|
440
440
|
if (!e)
|
|
441
441
|
return;
|
|
442
|
-
const t =
|
|
443
|
-
key:
|
|
442
|
+
const t = Zt({
|
|
443
|
+
key: He,
|
|
444
444
|
canTrack: e
|
|
445
445
|
});
|
|
446
446
|
if (D(t))
|
|
447
447
|
return t;
|
|
448
448
|
{
|
|
449
|
-
const n =
|
|
450
|
-
return
|
|
449
|
+
const n = tn();
|
|
450
|
+
return nn({
|
|
451
451
|
id: n,
|
|
452
452
|
canTrack: e
|
|
453
453
|
}), n;
|
|
454
454
|
}
|
|
455
|
-
},
|
|
455
|
+
}, tn = () => De(), nn = ({
|
|
456
456
|
id: e,
|
|
457
457
|
canTrack: t
|
|
458
|
-
}) =>
|
|
459
|
-
key:
|
|
458
|
+
}) => _t({
|
|
459
|
+
key: He,
|
|
460
460
|
value: e,
|
|
461
461
|
canTrack: t
|
|
462
|
-
}),
|
|
462
|
+
}), on = async ({
|
|
463
463
|
canTrack: e
|
|
464
464
|
}) => {
|
|
465
465
|
if (!e)
|
|
@@ -467,16 +467,16 @@ const Le = "builderSessionId", Jt = async ({
|
|
|
467
467
|
visitorId: void 0,
|
|
468
468
|
sessionId: void 0
|
|
469
469
|
};
|
|
470
|
-
const t = await
|
|
470
|
+
const t = await Yt({
|
|
471
471
|
canTrack: e
|
|
472
|
-
}), n =
|
|
472
|
+
}), n = en({
|
|
473
473
|
canTrack: e
|
|
474
474
|
});
|
|
475
475
|
return {
|
|
476
476
|
sessionId: t,
|
|
477
477
|
visitorId: n
|
|
478
478
|
};
|
|
479
|
-
},
|
|
479
|
+
}, rn = async ({
|
|
480
480
|
type: e,
|
|
481
481
|
canTrack: t,
|
|
482
482
|
apiKey: n,
|
|
@@ -490,45 +490,47 @@ const Le = "builderSessionId", Jt = async ({
|
|
|
490
490
|
url: location.href,
|
|
491
491
|
...o
|
|
492
492
|
},
|
|
493
|
-
...await
|
|
493
|
+
...await on({
|
|
494
494
|
canTrack: t
|
|
495
495
|
}),
|
|
496
|
-
userAttributes:
|
|
496
|
+
userAttributes: gt(),
|
|
497
497
|
ownerId: n
|
|
498
498
|
}
|
|
499
499
|
});
|
|
500
|
-
async function ae(
|
|
501
|
-
|
|
500
|
+
async function ae({
|
|
501
|
+
apiHost: e,
|
|
502
|
+
...t
|
|
503
|
+
}) {
|
|
504
|
+
if (!t.apiKey) {
|
|
502
505
|
x.error("Missing API key for track call. Please provide your API key.");
|
|
503
506
|
return;
|
|
504
507
|
}
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
});
|
|
508
|
+
return !t.canTrack || E() || !($() || R === "reactNative") ? void 0 : fetch(`${e || "https://cdn.builder.io"}/api/v1/track`, {
|
|
509
|
+
method: "POST",
|
|
510
|
+
body: JSON.stringify({
|
|
511
|
+
events: [await rn(t)]
|
|
512
|
+
}),
|
|
513
|
+
headers: {
|
|
514
|
+
"content-type": "application/json",
|
|
515
|
+
...We()
|
|
516
|
+
},
|
|
517
|
+
mode: "cors"
|
|
518
|
+
}).catch((o) => {
|
|
519
|
+
console.error("Failed to track: ", o);
|
|
520
|
+
});
|
|
519
521
|
}
|
|
520
|
-
const
|
|
522
|
+
const Ps = (e) => ae({
|
|
521
523
|
...e,
|
|
522
524
|
canTrack: !0
|
|
523
|
-
}),
|
|
524
|
-
function
|
|
525
|
+
}), sn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
526
|
+
function Me(e, t) {
|
|
525
527
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
526
528
|
return !1;
|
|
527
529
|
const n = new URL(t.origin), o = n.hostname;
|
|
528
|
-
return (e ||
|
|
530
|
+
return (e || sn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
529
531
|
}
|
|
530
|
-
const
|
|
531
|
-
|
|
532
|
+
const an = () => {
|
|
533
|
+
Ht("insertMenu", {
|
|
532
534
|
name: "_default",
|
|
533
535
|
default: !0,
|
|
534
536
|
items: [{
|
|
@@ -551,7 +553,7 @@ const rn = () => {
|
|
|
551
553
|
});
|
|
552
554
|
};
|
|
553
555
|
let Se = !1;
|
|
554
|
-
const
|
|
556
|
+
const je = (e = {}) => {
|
|
555
557
|
var t, n;
|
|
556
558
|
Se || (Se = !0, $() && ((t = window.parent) == null || t.postMessage({
|
|
557
559
|
type: "builder.sdkInfo",
|
|
@@ -570,8 +572,8 @@ const He = (e = {}) => {
|
|
|
570
572
|
options: e
|
|
571
573
|
}
|
|
572
574
|
}, "*"), window.addEventListener("message", (o) => {
|
|
573
|
-
var
|
|
574
|
-
if (!
|
|
575
|
+
var i, s;
|
|
576
|
+
if (!Me(e.trustedHosts, o))
|
|
575
577
|
return;
|
|
576
578
|
const {
|
|
577
579
|
data: r
|
|
@@ -586,7 +588,7 @@ const He = (e = {}) => {
|
|
|
586
588
|
} catch (y) {
|
|
587
589
|
p = y;
|
|
588
590
|
}
|
|
589
|
-
p ? (
|
|
591
|
+
p ? (i = window.parent) == null || i.postMessage({
|
|
590
592
|
type: "builder.evaluateError",
|
|
591
593
|
data: {
|
|
592
594
|
id: u,
|
|
@@ -601,7 +603,7 @@ const He = (e = {}) => {
|
|
|
601
603
|
result: y
|
|
602
604
|
}
|
|
603
605
|
}, "*");
|
|
604
|
-
}).catch(console.error) : (
|
|
606
|
+
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
605
607
|
type: "builder.evaluateResult",
|
|
606
608
|
data: {
|
|
607
609
|
result: c,
|
|
@@ -617,7 +619,7 @@ const He = (e = {}) => {
|
|
|
617
619
|
trustedHosts: t,
|
|
618
620
|
callbacks: n
|
|
619
621
|
}) => (o) => {
|
|
620
|
-
if (!
|
|
622
|
+
if (!Me(t, o))
|
|
621
623
|
return;
|
|
622
624
|
const {
|
|
623
625
|
data: r
|
|
@@ -633,16 +635,16 @@ const He = (e = {}) => {
|
|
|
633
635
|
break;
|
|
634
636
|
}
|
|
635
637
|
case "builder.contentUpdate": {
|
|
636
|
-
const
|
|
637
|
-
|
|
638
|
+
const i = r.data, s = i.key || i.alias || i.entry || i.modelName, l = i.data;
|
|
639
|
+
s === e && n.contentUpdate(l);
|
|
638
640
|
break;
|
|
639
641
|
}
|
|
640
642
|
}
|
|
641
|
-
},
|
|
643
|
+
}, Bs = (e, t, n) => {
|
|
642
644
|
if (!$)
|
|
643
645
|
return x.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
644
646
|
};
|
|
645
|
-
|
|
647
|
+
je();
|
|
646
648
|
const o = Ke({
|
|
647
649
|
callbacks: {
|
|
648
650
|
contentUpdate: t,
|
|
@@ -657,39 +659,39 @@ const He = (e = {}) => {
|
|
|
657
659
|
return window.addEventListener("message", o), () => {
|
|
658
660
|
window.removeEventListener("message", o);
|
|
659
661
|
};
|
|
660
|
-
},
|
|
662
|
+
}, ln = "builder.tests", ue = (e) => `${ln}.${e}`, cn = ({
|
|
661
663
|
contentId: e
|
|
662
664
|
}) => Fe({
|
|
663
665
|
name: ue(e),
|
|
664
666
|
canTrack: !0
|
|
665
|
-
}),
|
|
667
|
+
}), dn = ({
|
|
666
668
|
contentId: e
|
|
667
669
|
}) => Ne({
|
|
668
670
|
name: ue(e),
|
|
669
671
|
canTrack: !0
|
|
670
|
-
}),
|
|
672
|
+
}), un = ({
|
|
671
673
|
contentId: e,
|
|
672
674
|
value: t
|
|
673
675
|
}) => Oe({
|
|
674
676
|
name: ue(e),
|
|
675
677
|
value: t,
|
|
676
678
|
canTrack: !0
|
|
677
|
-
}), qe = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0,
|
|
679
|
+
}), qe = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, pn = ({
|
|
678
680
|
id: e,
|
|
679
681
|
variations: t
|
|
680
682
|
}) => {
|
|
681
683
|
var r;
|
|
682
684
|
let n = 0;
|
|
683
685
|
const o = Math.random();
|
|
684
|
-
for (const
|
|
685
|
-
const
|
|
686
|
-
if (n +=
|
|
687
|
-
return
|
|
686
|
+
for (const i in t) {
|
|
687
|
+
const s = (r = t[i]) == null ? void 0 : r.testRatio;
|
|
688
|
+
if (n += s, o < n)
|
|
689
|
+
return i;
|
|
688
690
|
}
|
|
689
691
|
return e;
|
|
690
692
|
}, ze = (e) => {
|
|
691
|
-
const t =
|
|
692
|
-
return
|
|
693
|
+
const t = pn(e);
|
|
694
|
+
return un({
|
|
693
695
|
contentId: e.id,
|
|
694
696
|
value: t
|
|
695
697
|
}).catch((n) => {
|
|
@@ -709,7 +711,7 @@ const He = (e = {}) => {
|
|
|
709
711
|
testVariationId: n.id,
|
|
710
712
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
711
713
|
};
|
|
712
|
-
},
|
|
714
|
+
}, mn = ({
|
|
713
715
|
item: e,
|
|
714
716
|
canTrack: t
|
|
715
717
|
}) => {
|
|
@@ -719,7 +721,7 @@ const He = (e = {}) => {
|
|
|
719
721
|
return;
|
|
720
722
|
if (!qe(e))
|
|
721
723
|
return e;
|
|
722
|
-
const n =
|
|
724
|
+
const n = dn({
|
|
723
725
|
contentId: e.id
|
|
724
726
|
}) || ze({
|
|
725
727
|
variations: e.variations,
|
|
@@ -732,13 +734,13 @@ const He = (e = {}) => {
|
|
|
732
734
|
...e,
|
|
733
735
|
...o
|
|
734
736
|
};
|
|
735
|
-
},
|
|
737
|
+
}, hn = async ({
|
|
736
738
|
item: e,
|
|
737
739
|
canTrack: t
|
|
738
740
|
}) => {
|
|
739
741
|
if (!t || !qe(e))
|
|
740
742
|
return e;
|
|
741
|
-
const o = await
|
|
743
|
+
const o = await cn({
|
|
742
744
|
contentId: e.id
|
|
743
745
|
}) || ze({
|
|
744
746
|
variations: e.variations,
|
|
@@ -752,70 +754,71 @@ const He = (e = {}) => {
|
|
|
752
754
|
...r
|
|
753
755
|
};
|
|
754
756
|
}, z = (e) => D(e) ? e : !0;
|
|
755
|
-
function
|
|
757
|
+
function fn() {
|
|
756
758
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
757
759
|
}
|
|
758
|
-
function
|
|
759
|
-
const e =
|
|
760
|
+
function bn() {
|
|
761
|
+
const e = fn().fetch;
|
|
760
762
|
if (typeof e > "u")
|
|
761
763
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
762
764
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
763
765
|
return e;
|
|
764
766
|
}
|
|
765
|
-
const
|
|
767
|
+
const gn = bn();
|
|
766
768
|
function le(e, t = null, n = ".") {
|
|
767
769
|
return Object.keys(e).reduce((o, r) => {
|
|
768
|
-
const
|
|
769
|
-
return [typeof
|
|
770
|
+
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
771
|
+
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
770
772
|
...o,
|
|
771
|
-
...le(
|
|
773
|
+
...le(i, s, n)
|
|
772
774
|
} : {
|
|
773
775
|
...o,
|
|
774
|
-
[
|
|
776
|
+
[s]: i
|
|
775
777
|
};
|
|
776
778
|
}, {});
|
|
777
779
|
}
|
|
778
780
|
function Ge(e, t, n = {}) {
|
|
779
781
|
for (const o in e) {
|
|
780
|
-
const r = e[o],
|
|
781
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((
|
|
782
|
+
const r = e[o], i = t ? t + "." + o : o;
|
|
783
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Ge(r, i, n) : n[i] = r;
|
|
782
784
|
}
|
|
783
785
|
return n;
|
|
784
786
|
}
|
|
785
|
-
const
|
|
787
|
+
const yn = "v3", Ce = (e) => typeof e == "number" && !isNaN(e) && e >= 0, pe = (e) => {
|
|
786
788
|
const {
|
|
787
789
|
limit: t = 30,
|
|
788
790
|
userAttributes: n,
|
|
789
791
|
query: o,
|
|
790
792
|
model: r,
|
|
791
|
-
apiKey:
|
|
792
|
-
enrich:
|
|
793
|
+
apiKey: i,
|
|
794
|
+
enrich: s,
|
|
793
795
|
locale: l,
|
|
794
|
-
apiVersion: a =
|
|
796
|
+
apiVersion: a = yn,
|
|
795
797
|
fields: u,
|
|
796
798
|
omit: h,
|
|
797
799
|
offset: c,
|
|
798
800
|
cacheSeconds: p,
|
|
799
801
|
staleCacheSeconds: y,
|
|
800
802
|
sort: g,
|
|
801
|
-
includeUnpublished: N
|
|
803
|
+
includeUnpublished: N,
|
|
804
|
+
apiHost: Y
|
|
802
805
|
} = e;
|
|
803
|
-
if (!
|
|
806
|
+
if (!i)
|
|
804
807
|
throw new Error("Missing API key");
|
|
805
808
|
if (!["v3"].includes(a))
|
|
806
809
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
807
|
-
const
|
|
808
|
-
if (w.searchParams.set("apiKey",
|
|
810
|
+
const st = t !== 1, it = Y || "https://cdn.builder.io", w = new URL(`${it}/api/${a}/content/${r}`);
|
|
811
|
+
if (w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(st)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && w.searchParams.set("offset", String(Math.floor(c))), typeof N == "boolean" && w.searchParams.set("includeUnpublished", String(N)), p && Ce(p) && w.searchParams.set("cacheSeconds", String(p)), y && Ce(y) && w.searchParams.set("staleCacheSeconds", String(y)), g) {
|
|
809
812
|
const F = le({
|
|
810
813
|
sort: g
|
|
811
814
|
});
|
|
812
815
|
for (const U in F)
|
|
813
816
|
w.searchParams.set(U, JSON.stringify(F[U]));
|
|
814
817
|
}
|
|
815
|
-
const
|
|
816
|
-
...
|
|
818
|
+
const at = {
|
|
819
|
+
...jt(),
|
|
817
820
|
...Pe(e.options || {})
|
|
818
|
-
}, ge = le(
|
|
821
|
+
}, ge = le(at);
|
|
819
822
|
for (const F in ge)
|
|
820
823
|
w.searchParams.set(F, String(ge[F]));
|
|
821
824
|
if (n && w.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
@@ -826,33 +829,33 @@ const bn = "v3", Ce = (e) => typeof e == "number" && !isNaN(e) && e >= 0, pe = (
|
|
|
826
829
|
w.searchParams.set(U, JSON.stringify(F[U]));
|
|
827
830
|
}
|
|
828
831
|
return w;
|
|
829
|
-
},
|
|
832
|
+
}, kn = (e) => "results" in e;
|
|
830
833
|
async function me(e) {
|
|
831
|
-
const t = await
|
|
834
|
+
const t = await Cn({
|
|
832
835
|
...e,
|
|
833
836
|
limit: 1
|
|
834
837
|
});
|
|
835
838
|
return t && t[0] || null;
|
|
836
839
|
}
|
|
837
|
-
const
|
|
838
|
-
var
|
|
839
|
-
const t = pe(e), n = e.fetch ??
|
|
840
|
+
const vn = async (e) => {
|
|
841
|
+
var s;
|
|
842
|
+
const t = pe(e), n = e.fetch ?? gn, o = {
|
|
840
843
|
...e.fetchOptions,
|
|
841
844
|
headers: {
|
|
842
|
-
...(
|
|
845
|
+
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
843
846
|
...We()
|
|
844
847
|
}
|
|
845
848
|
};
|
|
846
849
|
return await (await n(t.href, o)).json();
|
|
847
|
-
},
|
|
850
|
+
}, Sn = async (e, t, n = pe(e)) => {
|
|
848
851
|
const o = z(e.canTrack);
|
|
849
852
|
if (n.search.includes("preview="), !o || !($() || R === "reactNative"))
|
|
850
853
|
return t.results;
|
|
851
854
|
try {
|
|
852
855
|
const r = [];
|
|
853
|
-
for (const
|
|
854
|
-
r.push(await
|
|
855
|
-
item:
|
|
856
|
+
for (const i of t.results)
|
|
857
|
+
r.push(await hn({
|
|
858
|
+
item: i,
|
|
856
859
|
canTrack: o
|
|
857
860
|
}));
|
|
858
861
|
t.results = r;
|
|
@@ -861,10 +864,10 @@ const yn = async (e) => {
|
|
|
861
864
|
}
|
|
862
865
|
return t.results;
|
|
863
866
|
};
|
|
864
|
-
async function
|
|
867
|
+
async function Cn(e) {
|
|
865
868
|
try {
|
|
866
|
-
const t = pe(e), n = await
|
|
867
|
-
return
|
|
869
|
+
const t = pe(e), n = await vn(e);
|
|
870
|
+
return kn(n) ? Sn(e, n) : (x.error("Error fetching data. ", {
|
|
868
871
|
url: t,
|
|
869
872
|
content: n,
|
|
870
873
|
options: e
|
|
@@ -873,8 +876,8 @@ async function vn(e) {
|
|
|
873
876
|
return x.error("Error fetching data. ", t), null;
|
|
874
877
|
}
|
|
875
878
|
}
|
|
876
|
-
const
|
|
877
|
-
var o, r,
|
|
879
|
+
const xs = async (e) => {
|
|
880
|
+
var o, r, i;
|
|
878
881
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
879
882
|
...e,
|
|
880
883
|
apiKey: e.apiKey,
|
|
@@ -885,7 +888,7 @@ const Pi = async (e) => {
|
|
|
885
888
|
urlPath: t
|
|
886
889
|
} : {}
|
|
887
890
|
},
|
|
888
|
-
options: Ae(e.searchParams || ((
|
|
891
|
+
options: Ae(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
889
892
|
};
|
|
890
893
|
return {
|
|
891
894
|
apiKey: n.apiKey,
|
|
@@ -893,36 +896,36 @@ const Pi = async (e) => {
|
|
|
893
896
|
content: await me(n)
|
|
894
897
|
};
|
|
895
898
|
}, he = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
896
|
-
function
|
|
897
|
-
let o, r,
|
|
899
|
+
function Tn(e, t, n = {}) {
|
|
900
|
+
let o, r, i, s = null, l = 0;
|
|
898
901
|
const a = function() {
|
|
899
|
-
l = n.leading === !1 ? 0 : Date.now(),
|
|
902
|
+
l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
900
903
|
};
|
|
901
904
|
return function() {
|
|
902
905
|
const u = Date.now();
|
|
903
906
|
!l && n.leading === !1 && (l = u);
|
|
904
907
|
const h = t - (u - l);
|
|
905
|
-
return o = this, r = arguments, h <= 0 || h > t ? (
|
|
908
|
+
return o = this, r = arguments, h <= 0 || h > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, h)), i;
|
|
906
909
|
};
|
|
907
910
|
}
|
|
908
|
-
function
|
|
911
|
+
function j(e, ...t) {
|
|
909
912
|
const n = Object(e);
|
|
910
913
|
for (let o = 1; o < arguments.length; o++) {
|
|
911
914
|
const r = arguments[o];
|
|
912
915
|
if (r != null)
|
|
913
|
-
for (const
|
|
914
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
916
|
+
for (const i in r)
|
|
917
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
915
918
|
}
|
|
916
919
|
return n;
|
|
917
920
|
}
|
|
918
|
-
function
|
|
921
|
+
function wn(e) {
|
|
919
922
|
for (const t of e)
|
|
920
923
|
switch (t.trigger) {
|
|
921
924
|
case "pageLoad":
|
|
922
925
|
Qe(t);
|
|
923
926
|
break;
|
|
924
927
|
case "scrollInView":
|
|
925
|
-
|
|
928
|
+
$n(t);
|
|
926
929
|
break;
|
|
927
930
|
}
|
|
928
931
|
}
|
|
@@ -930,12 +933,12 @@ function Ye(e) {
|
|
|
930
933
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
931
934
|
}
|
|
932
935
|
function Xe(e, t) {
|
|
933
|
-
const n =
|
|
934
|
-
for (const l of
|
|
936
|
+
const n = In(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
937
|
+
for (const l of s)
|
|
935
938
|
for (const a of n)
|
|
936
939
|
a in l || (l[a] = o[a]);
|
|
937
940
|
}
|
|
938
|
-
function
|
|
941
|
+
function In(e) {
|
|
939
942
|
const t = [];
|
|
940
943
|
for (const n of e.steps)
|
|
941
944
|
for (const o in n.styles)
|
|
@@ -949,14 +952,14 @@ function Qe(e) {
|
|
|
949
952
|
return;
|
|
950
953
|
}
|
|
951
954
|
Array.from(t).forEach((n) => {
|
|
952
|
-
Xe(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
953
|
-
n.style.transition = `all ${e.duration}s ${he(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
955
|
+
Xe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
|
|
956
|
+
n.style.transition = `all ${e.duration}s ${he(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
|
|
954
957
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
955
958
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
956
959
|
});
|
|
957
960
|
});
|
|
958
961
|
}
|
|
959
|
-
function
|
|
962
|
+
function $n(e) {
|
|
960
963
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
961
964
|
if (!t.length) {
|
|
962
965
|
Ye(e.elementId || e.id || "");
|
|
@@ -965,14 +968,14 @@ function wn(e) {
|
|
|
965
968
|
Array.from(t).forEach((n) => {
|
|
966
969
|
Xe(e, n);
|
|
967
970
|
let o = !1, r = !1;
|
|
968
|
-
function
|
|
971
|
+
function i() {
|
|
969
972
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
970
|
-
|
|
973
|
+
j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
971
974
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
972
975
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
973
|
-
})) : e.repeat && o && !r && !l(n) && (o = !1,
|
|
976
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, j(n.style, e.steps[0].styles));
|
|
974
977
|
}
|
|
975
|
-
const
|
|
978
|
+
const s = Tn(i, 200, {
|
|
976
979
|
leading: !1
|
|
977
980
|
});
|
|
978
981
|
function l(h) {
|
|
@@ -981,41 +984,41 @@ function wn(e) {
|
|
|
981
984
|
}
|
|
982
985
|
const a = e.steps[0].styles;
|
|
983
986
|
function u() {
|
|
984
|
-
|
|
987
|
+
j(n.style, a);
|
|
985
988
|
}
|
|
986
989
|
u(), setTimeout(() => {
|
|
987
990
|
n.style.transition = `all ${e.duration}s ${he(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
988
|
-
}), document.addEventListener("scroll",
|
|
991
|
+
}), document.addEventListener("scroll", s, {
|
|
989
992
|
capture: !0,
|
|
990
993
|
passive: !0
|
|
991
|
-
}),
|
|
994
|
+
}), i();
|
|
992
995
|
});
|
|
993
996
|
}
|
|
994
997
|
const Ze = (e) => Object.entries(e).map(([n, o]) => {
|
|
995
998
|
if (typeof o == "string")
|
|
996
999
|
return `${he(n)}: ${o};`;
|
|
997
|
-
}).filter(D),
|
|
998
|
-
`),
|
|
1000
|
+
}).filter(D), Rn = (e) => Ze(e).join(`
|
|
1001
|
+
`), As = ({
|
|
999
1002
|
mediaQuery: e,
|
|
1000
1003
|
className: t,
|
|
1001
1004
|
styles: n
|
|
1002
1005
|
}) => {
|
|
1003
1006
|
const o = `.${t} {
|
|
1004
|
-
${
|
|
1007
|
+
${Rn(n)}
|
|
1005
1008
|
}`;
|
|
1006
1009
|
return e ? `${e} {
|
|
1007
1010
|
${o}
|
|
1008
1011
|
}` : o;
|
|
1009
1012
|
};
|
|
1010
|
-
function
|
|
1013
|
+
function En({
|
|
1011
1014
|
style: e
|
|
1012
1015
|
}) {
|
|
1013
1016
|
return e;
|
|
1014
1017
|
}
|
|
1015
|
-
const
|
|
1018
|
+
const Vs = ({
|
|
1016
1019
|
block: e,
|
|
1017
1020
|
context: t
|
|
1018
|
-
}) => _e(
|
|
1021
|
+
}) => _e(En({
|
|
1019
1022
|
style: e.style || {},
|
|
1020
1023
|
context: t,
|
|
1021
1024
|
block: e
|
|
@@ -1034,7 +1037,7 @@ function _e(e) {
|
|
|
1034
1037
|
return e;
|
|
1035
1038
|
}
|
|
1036
1039
|
}
|
|
1037
|
-
const
|
|
1040
|
+
const Pn = ({
|
|
1038
1041
|
block: e,
|
|
1039
1042
|
registeredComponents: t
|
|
1040
1043
|
}) => {
|
|
@@ -1048,7 +1051,7 @@ const Rn = ({
|
|
|
1048
1051
|
console.warn(`
|
|
1049
1052
|
Could not find a registered component named "${n}".
|
|
1050
1053
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1051
|
-
},
|
|
1054
|
+
}, Bn = ({
|
|
1052
1055
|
block: e,
|
|
1053
1056
|
context: t
|
|
1054
1057
|
}) => {
|
|
@@ -1067,7 +1070,7 @@ const Rn = ({
|
|
|
1067
1070
|
});
|
|
1068
1071
|
if (!Array.isArray(r))
|
|
1069
1072
|
return;
|
|
1070
|
-
const
|
|
1073
|
+
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
1071
1074
|
return r.map((a, u) => ({
|
|
1072
1075
|
context: {
|
|
1073
1076
|
...t,
|
|
@@ -1075,65 +1078,65 @@ const Rn = ({
|
|
|
1075
1078
|
...t.localState,
|
|
1076
1079
|
$index: u,
|
|
1077
1080
|
$item: a,
|
|
1078
|
-
[
|
|
1079
|
-
[`$${
|
|
1081
|
+
[s]: a,
|
|
1082
|
+
[`$${s}Index`]: u
|
|
1080
1083
|
}
|
|
1081
1084
|
},
|
|
1082
1085
|
block: o
|
|
1083
1086
|
}));
|
|
1084
|
-
},
|
|
1087
|
+
}, xn = (e, t) => {
|
|
1085
1088
|
var n;
|
|
1086
1089
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1087
1090
|
builderLinkComponent: t
|
|
1088
1091
|
} : {};
|
|
1089
|
-
},
|
|
1092
|
+
}, An = (e, t) => {
|
|
1090
1093
|
var n;
|
|
1091
1094
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
1092
1095
|
builderComponents: t
|
|
1093
1096
|
} : {};
|
|
1094
|
-
},
|
|
1097
|
+
}, Vn = (e, t) => {
|
|
1095
1098
|
var n;
|
|
1096
1099
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1097
1100
|
builderBlock: t
|
|
1098
1101
|
} : {};
|
|
1099
|
-
},
|
|
1102
|
+
}, Wn = (e, t) => {
|
|
1100
1103
|
var n;
|
|
1101
1104
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1102
1105
|
builderContext: t
|
|
1103
1106
|
} : {};
|
|
1104
|
-
},
|
|
1107
|
+
}, Nn = () => Promise.resolve().then(() => Yn).then((e) => e.default).catch((e) => {
|
|
1105
1108
|
throw console.error(
|
|
1106
1109
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1107
1110
|
e
|
|
1108
1111
|
), e;
|
|
1109
|
-
}),
|
|
1112
|
+
}), Fn = () => import("./block-styles-a1lNlhp2.js").then((e) => e.default).catch((e) => {
|
|
1110
1113
|
throw console.error(
|
|
1111
1114
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1112
1115
|
e
|
|
1113
1116
|
), e;
|
|
1114
|
-
}),
|
|
1117
|
+
}), On = () => import("./block-wrapper-qugtJ04Q.js").then((e) => e.default).catch((e) => {
|
|
1115
1118
|
throw console.error(
|
|
1116
1119
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1117
1120
|
e
|
|
1118
1121
|
), e;
|
|
1119
|
-
}),
|
|
1122
|
+
}), Dn = () => import("./component-ref-NKhHeKN1.js").then((e) => e.default).catch((e) => {
|
|
1120
1123
|
throw console.error(
|
|
1121
1124
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1122
1125
|
e
|
|
1123
1126
|
), e;
|
|
1124
|
-
}),
|
|
1127
|
+
}), Ln = () => import("./repeated-block-dqm2sVo0.js").then((e) => e.default).catch((e) => {
|
|
1125
1128
|
throw console.error(
|
|
1126
1129
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1127
1130
|
e
|
|
1128
1131
|
), e;
|
|
1129
|
-
}),
|
|
1132
|
+
}), Un = f({
|
|
1130
1133
|
name: "block",
|
|
1131
1134
|
components: {
|
|
1132
|
-
BlockStyles:
|
|
1133
|
-
RepeatedBlock:
|
|
1134
|
-
ComponentRef:
|
|
1135
|
-
BlockWrapper:
|
|
1136
|
-
DynamicDiv:
|
|
1135
|
+
BlockStyles: H(Fn),
|
|
1136
|
+
RepeatedBlock: H(Ln),
|
|
1137
|
+
ComponentRef: H(Dn),
|
|
1138
|
+
BlockWrapper: H(On),
|
|
1139
|
+
DynamicDiv: H(Nn)
|
|
1137
1140
|
},
|
|
1138
1141
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1139
1142
|
data() {
|
|
@@ -1146,7 +1149,7 @@ const Rn = ({
|
|
|
1146
1149
|
},
|
|
1147
1150
|
mounted() {
|
|
1148
1151
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1149
|
-
t && e &&
|
|
1152
|
+
t && e && wn(
|
|
1150
1153
|
t.map((n) => ({
|
|
1151
1154
|
...n,
|
|
1152
1155
|
elementId: e
|
|
@@ -1157,14 +1160,14 @@ const Rn = ({
|
|
|
1157
1160
|
},
|
|
1158
1161
|
computed: {
|
|
1159
1162
|
repeatItem() {
|
|
1160
|
-
return
|
|
1163
|
+
return Bn({
|
|
1161
1164
|
block: this.block,
|
|
1162
1165
|
context: this.context
|
|
1163
1166
|
});
|
|
1164
1167
|
},
|
|
1165
1168
|
processedBlock() {
|
|
1166
1169
|
var t;
|
|
1167
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1170
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : Ot({
|
|
1168
1171
|
block: this.block,
|
|
1169
1172
|
localState: this.context.localState,
|
|
1170
1173
|
rootState: this.context.rootState,
|
|
@@ -1174,7 +1177,7 @@ const Rn = ({
|
|
|
1174
1177
|
});
|
|
1175
1178
|
},
|
|
1176
1179
|
blockComponent() {
|
|
1177
|
-
return
|
|
1180
|
+
return Pn({
|
|
1178
1181
|
block: this.processedBlock,
|
|
1179
1182
|
registeredComponents: this.registeredComponents
|
|
1180
1183
|
});
|
|
@@ -1200,11 +1203,11 @@ const Rn = ({
|
|
|
1200
1203
|
blockChildren: this.processedBlock.children ?? [],
|
|
1201
1204
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1202
1205
|
componentOptions: {
|
|
1203
|
-
...
|
|
1204
|
-
...
|
|
1205
|
-
...
|
|
1206
|
-
...
|
|
1207
|
-
...
|
|
1206
|
+
...Rt(this.processedBlock),
|
|
1207
|
+
...Vn(this.blockComponent, this.processedBlock),
|
|
1208
|
+
...Wn(this.blockComponent, this.context),
|
|
1209
|
+
...xn(this.blockComponent, this.linkComponent),
|
|
1210
|
+
...An(
|
|
1208
1211
|
this.blockComponent,
|
|
1209
1212
|
this.registeredComponents
|
|
1210
1213
|
)
|
|
@@ -1219,11 +1222,11 @@ const Rn = ({
|
|
|
1219
1222
|
}
|
|
1220
1223
|
}
|
|
1221
1224
|
});
|
|
1222
|
-
function
|
|
1225
|
+
function Hn(e, t, n, o, r, i) {
|
|
1223
1226
|
var c;
|
|
1224
|
-
const
|
|
1227
|
+
const s = v("BlockStyles"), l = v("ComponentRef"), a = v("Block", !0), u = v("BlockWrapper"), h = v("RepeatedBlock");
|
|
1225
1228
|
return e.canShowBlock ? (d(), m(T, { key: 0 }, [
|
|
1226
|
-
I(
|
|
1229
|
+
I(s, {
|
|
1227
1230
|
block: e.processedBlock,
|
|
1228
1231
|
context: e.context
|
|
1229
1232
|
}, null, 8, ["block", "context"]),
|
|
@@ -1284,10 +1287,10 @@ function Ln(e, t, n, o, r, s) {
|
|
|
1284
1287
|
], 64))
|
|
1285
1288
|
], 64)) : S("", !0);
|
|
1286
1289
|
}
|
|
1287
|
-
const fe = /* @__PURE__ */ b(
|
|
1290
|
+
const fe = /* @__PURE__ */ b(Un, [["render", Hn]]), Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1288
1291
|
__proto__: null,
|
|
1289
1292
|
default: fe
|
|
1290
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1293
|
+
}, Symbol.toStringTag, { value: "Module" })), Mn = f({
|
|
1291
1294
|
name: "builder-blocks-wrapper",
|
|
1292
1295
|
props: [
|
|
1293
1296
|
"blocks",
|
|
@@ -1339,16 +1342,16 @@ const fe = /* @__PURE__ */ b(Dn, [["render", Ln]]), Ai = /* @__PURE__ */ Object.
|
|
|
1339
1342
|
}
|
|
1340
1343
|
}
|
|
1341
1344
|
});
|
|
1342
|
-
function
|
|
1343
|
-
return d(), k(
|
|
1345
|
+
function jn(e, t, n, o, r, i) {
|
|
1346
|
+
return d(), k(M(e.BlocksWrapper), C({
|
|
1344
1347
|
ref: "blocksWrapperRef",
|
|
1345
1348
|
class: e.className + " component-1k2igrjdg3x",
|
|
1346
1349
|
"builder-path": e.path,
|
|
1347
1350
|
"builder-parent-id": e.parent,
|
|
1348
1351
|
style: e.styleProp,
|
|
1349
|
-
onClick: (
|
|
1350
|
-
onMouseEnter: (
|
|
1351
|
-
onKeyPress: (
|
|
1352
|
+
onClick: (s) => e.onClick(),
|
|
1353
|
+
onMouseEnter: (s) => e.onMouseEnter(),
|
|
1354
|
+
onKeyPress: (s) => e.onClick()
|
|
1352
1355
|
}, { ...e.BlocksWrapperProps }), {
|
|
1353
1356
|
default: W(() => [
|
|
1354
1357
|
B(e.$slots, "default", {}, void 0, !0)
|
|
@@ -1356,9 +1359,9 @@ function Mn(e, t, n, o, r, s) {
|
|
|
1356
1359
|
_: 3
|
|
1357
1360
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1358
1361
|
}
|
|
1359
|
-
const
|
|
1362
|
+
const Kn = /* @__PURE__ */ b(Mn, [["render", jn], ["__scopeId", "data-v-e241e088"]]), qn = f({
|
|
1360
1363
|
name: "builder-blocks",
|
|
1361
|
-
components: { BlocksWrapper:
|
|
1364
|
+
components: { BlocksWrapper: Kn, Block: fe },
|
|
1362
1365
|
props: [
|
|
1363
1366
|
"blocks",
|
|
1364
1367
|
"parent",
|
|
@@ -1370,13 +1373,13 @@ const jn = /* @__PURE__ */ b(Un, [["render", Mn], ["__scopeId", "data-v-e241e088
|
|
|
1370
1373
|
"registeredComponents"
|
|
1371
1374
|
],
|
|
1372
1375
|
inject: {
|
|
1373
|
-
builderContext:
|
|
1376
|
+
builderContext: se.key,
|
|
1374
1377
|
componentsContext: Be.key
|
|
1375
1378
|
}
|
|
1376
1379
|
});
|
|
1377
|
-
function
|
|
1380
|
+
function zn(e, t, n, o, r, i) {
|
|
1378
1381
|
var a, u, h, c;
|
|
1379
|
-
const
|
|
1382
|
+
const s = v("Block"), l = v("BlocksWrapper");
|
|
1380
1383
|
return d(), k(l, {
|
|
1381
1384
|
blocks: e.blocks,
|
|
1382
1385
|
parent: e.parent,
|
|
@@ -1389,7 +1392,7 @@ function Kn(e, t, n, o, r, s) {
|
|
|
1389
1392
|
default: W(() => [
|
|
1390
1393
|
e.blocks ? (d(!0), m(T, { key: 0 }, A(e.blocks, (p, y) => {
|
|
1391
1394
|
var g;
|
|
1392
|
-
return d(), k(
|
|
1395
|
+
return d(), k(s, {
|
|
1393
1396
|
key: p.id,
|
|
1394
1397
|
block: p,
|
|
1395
1398
|
linkComponent: e.linkComponent,
|
|
@@ -1401,16 +1404,16 @@ function Kn(e, t, n, o, r, s) {
|
|
|
1401
1404
|
_: 1
|
|
1402
1405
|
}, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
1403
1406
|
}
|
|
1404
|
-
const L = /* @__PURE__ */ b(
|
|
1407
|
+
const L = /* @__PURE__ */ b(qn, [["render", zn]]), Jn = f({
|
|
1405
1408
|
name: "dynamic-div",
|
|
1406
1409
|
props: []
|
|
1407
1410
|
});
|
|
1408
|
-
function
|
|
1411
|
+
function Gn(e, t, n, o, r, i) {
|
|
1409
1412
|
return d(), m("div", null, [
|
|
1410
1413
|
B(e.$slots, "default")
|
|
1411
1414
|
]);
|
|
1412
1415
|
}
|
|
1413
|
-
const G = /* @__PURE__ */ b(
|
|
1416
|
+
const G = /* @__PURE__ */ b(Jn, [["render", Gn]]), Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1414
1417
|
__proto__: null,
|
|
1415
1418
|
default: G
|
|
1416
1419
|
}, Symbol.toStringTag, { value: "Module" })), be = f({
|
|
@@ -1439,7 +1442,7 @@ const G = /* @__PURE__ */ b(qn, [["render", zn]]), Jn = /* @__PURE__ */ Object.f
|
|
|
1439
1442
|
default: 991,
|
|
1440
1443
|
max: 1200
|
|
1441
1444
|
}
|
|
1442
|
-
},
|
|
1445
|
+
}, Ns = (e, t = et) => `@media (max-width: ${t[e].max}px)`, Xn = ({
|
|
1443
1446
|
small: e,
|
|
1444
1447
|
medium: t
|
|
1445
1448
|
}) => {
|
|
@@ -1458,14 +1461,14 @@ const G = /* @__PURE__ */ b(qn, [["render", zn]]), Jn = /* @__PURE__ */ Object.f
|
|
|
1458
1461
|
min: r,
|
|
1459
1462
|
default: r + 1
|
|
1460
1463
|
};
|
|
1461
|
-
const
|
|
1464
|
+
const i = n.medium.max + 1;
|
|
1462
1465
|
return n.large = {
|
|
1463
1466
|
max: 2e3,
|
|
1464
1467
|
// TODO: decide upper limit
|
|
1465
|
-
min:
|
|
1466
|
-
default:
|
|
1468
|
+
min: i,
|
|
1469
|
+
default: i + 1
|
|
1467
1470
|
}, n;
|
|
1468
|
-
},
|
|
1471
|
+
}, Qn = (e) => `builder-columns ${e}-breakpoints`, Zn = f({
|
|
1469
1472
|
name: "builder-columns",
|
|
1470
1473
|
components: {
|
|
1471
1474
|
InlinedStyles: be,
|
|
@@ -1484,14 +1487,21 @@ const G = /* @__PURE__ */ b(qn, [["render", zn]]), Jn = /* @__PURE__ */ Object.f
|
|
|
1484
1487
|
"builderComponents"
|
|
1485
1488
|
],
|
|
1486
1489
|
data() {
|
|
1487
|
-
return {
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1490
|
+
return { TARGET: R, getColumnsClass: Qn };
|
|
1491
|
+
},
|
|
1492
|
+
computed: {
|
|
1493
|
+
gutterSize() {
|
|
1494
|
+
return typeof this.space == "number" ? this.space || 0 : 20;
|
|
1495
|
+
},
|
|
1496
|
+
cols() {
|
|
1497
|
+
return this.columns || [];
|
|
1498
|
+
},
|
|
1499
|
+
stackAt() {
|
|
1500
|
+
return this.stackColumnsAt || "tablet";
|
|
1501
|
+
},
|
|
1502
|
+
flexDir() {
|
|
1503
|
+
return this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1504
|
+
}
|
|
1495
1505
|
},
|
|
1496
1506
|
methods: {
|
|
1497
1507
|
getTagName(e) {
|
|
@@ -1527,7 +1537,7 @@ const G = /* @__PURE__ */ b(qn, [["render", zn]]), Jn = /* @__PURE__ */ Object.f
|
|
|
1527
1537
|
};
|
|
1528
1538
|
},
|
|
1529
1539
|
columnCssVars(e) {
|
|
1530
|
-
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%",
|
|
1540
|
+
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", i = 0;
|
|
1531
1541
|
return {
|
|
1532
1542
|
...{
|
|
1533
1543
|
display: "flex",
|
|
@@ -1541,7 +1551,7 @@ const G = /* @__PURE__ */ b(qn, [["render", zn]]), Jn = /* @__PURE__ */ Object.f
|
|
|
1541
1551
|
desktopStyle: n
|
|
1542
1552
|
}),
|
|
1543
1553
|
"--column-margin-left-mobile": this.getMobileStyle({
|
|
1544
|
-
stackedStyle:
|
|
1554
|
+
stackedStyle: i,
|
|
1545
1555
|
desktopStyle: o
|
|
1546
1556
|
}),
|
|
1547
1557
|
"--column-width-tablet": this.getTabletStyle({
|
|
@@ -1549,14 +1559,14 @@ const G = /* @__PURE__ */ b(qn, [["render", zn]]), Jn = /* @__PURE__ */ Object.f
|
|
|
1549
1559
|
desktopStyle: n
|
|
1550
1560
|
}),
|
|
1551
1561
|
"--column-margin-left-tablet": this.getTabletStyle({
|
|
1552
|
-
stackedStyle:
|
|
1562
|
+
stackedStyle: i,
|
|
1553
1563
|
desktopStyle: o
|
|
1554
1564
|
})
|
|
1555
1565
|
};
|
|
1556
1566
|
},
|
|
1557
1567
|
getWidthForBreakpointSize(e) {
|
|
1558
1568
|
var n, o;
|
|
1559
|
-
return
|
|
1569
|
+
return Xn(
|
|
1560
1570
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1561
1571
|
)[e].max;
|
|
1562
1572
|
},
|
|
@@ -1599,14 +1609,14 @@ const G = /* @__PURE__ */ b(qn, [["render", zn]]), Jn = /* @__PURE__ */ Object.f
|
|
|
1599
1609
|
}
|
|
1600
1610
|
}
|
|
1601
1611
|
});
|
|
1602
|
-
function
|
|
1612
|
+
function _n(e, t, n, o, r, i) {
|
|
1603
1613
|
var u;
|
|
1604
|
-
const
|
|
1614
|
+
const s = v("InlinedStyles"), l = v("Blocks"), a = v("DynamicRenderer");
|
|
1605
1615
|
return d(), m("div", C({
|
|
1606
1616
|
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
|
|
1607
1617
|
style: e.columnsCssVars()
|
|
1608
1618
|
}, {}), [
|
|
1609
|
-
e.TARGET !== "reactNative" ? (d(), k(
|
|
1619
|
+
e.TARGET !== "reactNative" ? (d(), k(s, {
|
|
1610
1620
|
key: 0,
|
|
1611
1621
|
id: "builderio-columns",
|
|
1612
1622
|
styles: e.columnsStyles(),
|
|
@@ -1635,32 +1645,32 @@ function Qn(e, t, n, o, r, s) {
|
|
|
1635
1645
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1636
1646
|
], 16);
|
|
1637
1647
|
}
|
|
1638
|
-
const
|
|
1648
|
+
const eo = /* @__PURE__ */ b(Zn, [["render", _n], ["__scopeId", "data-v-f68a6aa7"]]), to = f({
|
|
1639
1649
|
name: "builder-fragment-component",
|
|
1640
1650
|
props: []
|
|
1641
1651
|
});
|
|
1642
|
-
function
|
|
1652
|
+
function no(e, t, n, o, r, i) {
|
|
1643
1653
|
return d(), m("span", null, [
|
|
1644
1654
|
B(e.$slots, "default")
|
|
1645
1655
|
]);
|
|
1646
1656
|
}
|
|
1647
|
-
const
|
|
1657
|
+
const oo = /* @__PURE__ */ b(to, [["render", no]]);
|
|
1648
1658
|
function Te(e) {
|
|
1649
1659
|
return e.replace(/http(s)?:/, "");
|
|
1650
1660
|
}
|
|
1651
|
-
function
|
|
1661
|
+
function ro(e = "", t, n) {
|
|
1652
1662
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1653
1663
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1654
1664
|
}
|
|
1655
|
-
function
|
|
1665
|
+
function so(e, t) {
|
|
1656
1666
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1657
1667
|
return e;
|
|
1658
1668
|
if (t === "master")
|
|
1659
1669
|
return Te(e);
|
|
1660
1670
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1661
1671
|
if (n) {
|
|
1662
|
-
const o = e.split(n[0]), r = n[3],
|
|
1663
|
-
return Te(`${o[0]}_${
|
|
1672
|
+
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
1673
|
+
return Te(`${o[0]}_${i}${r}`);
|
|
1664
1674
|
}
|
|
1665
1675
|
return null;
|
|
1666
1676
|
}
|
|
@@ -1671,11 +1681,11 @@ function ee(e) {
|
|
|
1671
1681
|
if (e.match(/builder\.io/)) {
|
|
1672
1682
|
let n = e;
|
|
1673
1683
|
const o = Number(e.split("?width=")[1]);
|
|
1674
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
1684
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${ro(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1675
1685
|
}
|
|
1676
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1686
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [so(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1677
1687
|
}
|
|
1678
|
-
const
|
|
1688
|
+
const io = f({
|
|
1679
1689
|
name: "builder-image",
|
|
1680
1690
|
props: [
|
|
1681
1691
|
"image",
|
|
@@ -1726,19 +1736,19 @@ const ro = f({
|
|
|
1726
1736
|
return this.aspectRatio ? e : void 0;
|
|
1727
1737
|
}
|
|
1728
1738
|
}
|
|
1729
|
-
}),
|
|
1739
|
+
}), ao = ["srcset"], lo = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], co = {
|
|
1730
1740
|
key: 2,
|
|
1731
1741
|
class: "div-29wpyomtntv-2"
|
|
1732
1742
|
};
|
|
1733
|
-
function
|
|
1734
|
-
var
|
|
1743
|
+
function uo(e, t, n, o, r, i) {
|
|
1744
|
+
var s, l, a, u, h, c;
|
|
1735
1745
|
return d(), m(T, null, [
|
|
1736
1746
|
K("picture", null, [
|
|
1737
1747
|
e.webpSrcSet ? (d(), m("source", {
|
|
1738
1748
|
key: 0,
|
|
1739
1749
|
type: "image/webp",
|
|
1740
1750
|
srcset: e.webpSrcSet
|
|
1741
|
-
}, null, 8,
|
|
1751
|
+
}, null, 8, ao)) : S("", !0),
|
|
1742
1752
|
K("img", {
|
|
1743
1753
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1744
1754
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
@@ -1755,9 +1765,9 @@ function lo(e, t, n, o, r, s) {
|
|
|
1755
1765
|
src: e.image,
|
|
1756
1766
|
srcset: e.srcSetToUse,
|
|
1757
1767
|
sizes: e.sizes
|
|
1758
|
-
}, null, 14,
|
|
1768
|
+
}, null, 14, lo)
|
|
1759
1769
|
]),
|
|
1760
|
-
e.aspectRatio && !((l = (
|
|
1770
|
+
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), m("div", {
|
|
1761
1771
|
key: 0,
|
|
1762
1772
|
class: "builder-image-sizer div-29wpyomtntv",
|
|
1763
1773
|
style: O({
|
|
@@ -1765,19 +1775,19 @@ function lo(e, t, n, o, r, s) {
|
|
|
1765
1775
|
})
|
|
1766
1776
|
}, null, 4)) : S("", !0),
|
|
1767
1777
|
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? B(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
|
|
1768
|
-
!e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(), m("div",
|
|
1778
|
+
!e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(), m("div", co, [
|
|
1769
1779
|
B(e.$slots, "default", {}, void 0, !0)
|
|
1770
1780
|
])) : S("", !0)
|
|
1771
1781
|
], 64);
|
|
1772
1782
|
}
|
|
1773
|
-
const
|
|
1783
|
+
const po = /* @__PURE__ */ b(io, [["render", uo], ["__scopeId", "data-v-77f8a6c4"]]), mo = f({
|
|
1774
1784
|
name: "builder-section-component",
|
|
1775
1785
|
props: ["attributes", "maxWidth"],
|
|
1776
1786
|
data() {
|
|
1777
1787
|
return { filterAttrs: V };
|
|
1778
1788
|
}
|
|
1779
1789
|
});
|
|
1780
|
-
function
|
|
1790
|
+
function ho(e, t, n, o, r, i) {
|
|
1781
1791
|
return d(), m("section", C({
|
|
1782
1792
|
style: {
|
|
1783
1793
|
width: "100%",
|
|
@@ -1795,7 +1805,7 @@ function po(e, t, n, o, r, s) {
|
|
|
1795
1805
|
B(e.$slots, "default")
|
|
1796
1806
|
], 16);
|
|
1797
1807
|
}
|
|
1798
|
-
const
|
|
1808
|
+
const fo = /* @__PURE__ */ b(mo, [["render", ho]]), te = {
|
|
1799
1809
|
"@type": "@builder.io/sdk:Element",
|
|
1800
1810
|
layerName: "Accordion item title",
|
|
1801
1811
|
responsiveStyles: {
|
|
@@ -1855,7 +1865,7 @@ const mo = /* @__PURE__ */ b(uo, [["render", po]]), te = {
|
|
|
1855
1865
|
}
|
|
1856
1866
|
}
|
|
1857
1867
|
}]
|
|
1858
|
-
},
|
|
1868
|
+
}, bo = {
|
|
1859
1869
|
name: "Builder:Accordion",
|
|
1860
1870
|
canHaveChildren: !0,
|
|
1861
1871
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1919,7 +1929,7 @@ const mo = /* @__PURE__ */ b(uo, [["render", po]]), te = {
|
|
|
1919
1929
|
builderComponents: !0,
|
|
1920
1930
|
builderLinkComponent: !0
|
|
1921
1931
|
}
|
|
1922
|
-
},
|
|
1932
|
+
}, go = (e) => e.toString(), yo = f({
|
|
1923
1933
|
name: "builder-accordion",
|
|
1924
1934
|
components: { Blocks: L },
|
|
1925
1935
|
props: [
|
|
@@ -1933,7 +1943,7 @@ const mo = /* @__PURE__ */ b(uo, [["render", po]]), te = {
|
|
|
1933
1943
|
"builderLinkComponent"
|
|
1934
1944
|
],
|
|
1935
1945
|
data() {
|
|
1936
|
-
return { open: [], convertOrderNumberToString:
|
|
1946
|
+
return { open: [], convertOrderNumberToString: go };
|
|
1937
1947
|
},
|
|
1938
1948
|
computed: {
|
|
1939
1949
|
onlyOneAtATime() {
|
|
@@ -1972,18 +1982,18 @@ const mo = /* @__PURE__ */ b(uo, [["render", po]]), te = {
|
|
|
1972
1982
|
`.builder-accordion-title[data-index="${n}"]`
|
|
1973
1983
|
);
|
|
1974
1984
|
if (e = n, r) {
|
|
1975
|
-
let
|
|
1985
|
+
let i = r.getBoundingClientRect();
|
|
1976
1986
|
for (; r = r && r.nextElementSibling; )
|
|
1977
1987
|
if (r) {
|
|
1978
1988
|
if (r.classList.contains("builder-accordion-detail"))
|
|
1979
1989
|
continue;
|
|
1980
|
-
const
|
|
1981
|
-
if (
|
|
1990
|
+
const s = r.getBoundingClientRect();
|
|
1991
|
+
if (s.left > i.left) {
|
|
1982
1992
|
const l = parseInt(
|
|
1983
1993
|
r.getAttribute("data-index") || "",
|
|
1984
1994
|
10
|
|
1985
1995
|
);
|
|
1986
|
-
isNaN(l) || (
|
|
1996
|
+
isNaN(l) || (i = s, e = l);
|
|
1987
1997
|
} else
|
|
1988
1998
|
break;
|
|
1989
1999
|
}
|
|
@@ -2014,9 +2024,9 @@ const mo = /* @__PURE__ */ b(uo, [["render", po]]), te = {
|
|
|
2014
2024
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2015
2025
|
}
|
|
2016
2026
|
}
|
|
2017
|
-
}),
|
|
2018
|
-
function
|
|
2019
|
-
const
|
|
2027
|
+
}), ko = ["data-index", "onClick"];
|
|
2028
|
+
function vo(e, t, n, o, r, i) {
|
|
2029
|
+
const s = v("Blocks");
|
|
2020
2030
|
return d(), m("div", {
|
|
2021
2031
|
class: "builder-accordion",
|
|
2022
2032
|
style: O(e.accordionStyles)
|
|
@@ -2032,7 +2042,7 @@ function yo(e, t, n, o, r, s) {
|
|
|
2032
2042
|
"data-index": a,
|
|
2033
2043
|
onClick: (u) => e.onClick(a)
|
|
2034
2044
|
}, [
|
|
2035
|
-
I(
|
|
2045
|
+
I(s, {
|
|
2036
2046
|
blocks: l.title,
|
|
2037
2047
|
path: `items.${a}.title`,
|
|
2038
2048
|
parent: e.builderBlock.id,
|
|
@@ -2040,13 +2050,13 @@ function yo(e, t, n, o, r, s) {
|
|
|
2040
2050
|
registeredComponents: e.builderComponents,
|
|
2041
2051
|
linkComponent: e.builderLinkComponent
|
|
2042
2052
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2043
|
-
], 14,
|
|
2053
|
+
], 14, ko),
|
|
2044
2054
|
e.open.includes(a) ? (d(), m("div", {
|
|
2045
2055
|
key: 0,
|
|
2046
2056
|
class: q(e.getAccordionDetailClassName(a)),
|
|
2047
2057
|
style: O(e.accordionDetailStyles)
|
|
2048
2058
|
}, [
|
|
2049
|
-
I(
|
|
2059
|
+
I(s, {
|
|
2050
2060
|
blocks: l.detail,
|
|
2051
2061
|
path: `items.${a}.detail`,
|
|
2052
2062
|
parent: e.builderBlock.id,
|
|
@@ -2058,7 +2068,7 @@ function yo(e, t, n, o, r, s) {
|
|
|
2058
2068
|
], 64))), 128))
|
|
2059
2069
|
], 4);
|
|
2060
2070
|
}
|
|
2061
|
-
const
|
|
2071
|
+
const So = /* @__PURE__ */ b(yo, [["render", vo]]), Co = {
|
|
2062
2072
|
name: "Core:Button",
|
|
2063
2073
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2064
2074
|
defaultStyles: {
|
|
@@ -2094,7 +2104,7 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), vo = {
|
|
|
2094
2104
|
shouldReceiveBuilderProps: {
|
|
2095
2105
|
builderLinkComponent: !0
|
|
2096
2106
|
}
|
|
2097
|
-
},
|
|
2107
|
+
}, To = {
|
|
2098
2108
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2099
2109
|
name: "Columns",
|
|
2100
2110
|
isRSC: !0,
|
|
@@ -2273,7 +2283,7 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), vo = {
|
|
|
2273
2283
|
});
|
|
2274
2284
|
}
|
|
2275
2285
|
const n = e.get("columns");
|
|
2276
|
-
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((
|
|
2286
|
+
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((l, a) => l + a.get("width"), 0) !== 100) && t();
|
|
2277
2287
|
}
|
|
2278
2288
|
}, {
|
|
2279
2289
|
name: "space",
|
|
@@ -2301,13 +2311,13 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), vo = {
|
|
|
2301
2311
|
builderComponents: !0,
|
|
2302
2312
|
builderLinkComponent: !0
|
|
2303
2313
|
}
|
|
2304
|
-
},
|
|
2314
|
+
}, wo = {
|
|
2305
2315
|
name: "Fragment",
|
|
2306
2316
|
static: !0,
|
|
2307
2317
|
hidden: !0,
|
|
2308
2318
|
canHaveChildren: !0,
|
|
2309
2319
|
noWrap: !0
|
|
2310
|
-
},
|
|
2320
|
+
}, Io = {
|
|
2311
2321
|
name: "Image",
|
|
2312
2322
|
static: !0,
|
|
2313
2323
|
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",
|
|
@@ -2327,7 +2337,7 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), vo = {
|
|
|
2327
2337
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2328
2338
|
onChange: (e) => {
|
|
2329
2339
|
e.delete("srcset"), e.delete("noWebp");
|
|
2330
|
-
function n(
|
|
2340
|
+
function n(s, l = 6e4) {
|
|
2331
2341
|
return new Promise((a, u) => {
|
|
2332
2342
|
const h = document.createElement("img");
|
|
2333
2343
|
let c = !1;
|
|
@@ -2335,21 +2345,21 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), vo = {
|
|
|
2335
2345
|
c = !0, a(h);
|
|
2336
2346
|
}, h.addEventListener("error", (p) => {
|
|
2337
2347
|
console.warn("Image load failed", p.error), u(p.error);
|
|
2338
|
-
}), h.src =
|
|
2348
|
+
}), h.src = s, setTimeout(() => {
|
|
2339
2349
|
c || u(new Error("Image load timed out"));
|
|
2340
2350
|
}, l);
|
|
2341
2351
|
});
|
|
2342
2352
|
}
|
|
2343
|
-
function o(
|
|
2344
|
-
return Math.round(
|
|
2353
|
+
function o(s) {
|
|
2354
|
+
return Math.round(s * 1e3) / 1e3;
|
|
2345
2355
|
}
|
|
2346
|
-
const r = e.get("image"),
|
|
2347
|
-
if (fetch(r).then((
|
|
2348
|
-
|
|
2349
|
-
}), r && (!
|
|
2350
|
-
return n(r).then((
|
|
2356
|
+
const r = e.get("image"), i = e.get("aspectRatio");
|
|
2357
|
+
if (fetch(r).then((s) => s.blob()).then((s) => {
|
|
2358
|
+
s.type.includes("svg") && e.set("noWebp", !0);
|
|
2359
|
+
}), r && (!i || i === 0.7041))
|
|
2360
|
+
return n(r).then((s) => {
|
|
2351
2361
|
const l = e.get("aspectRatio");
|
|
2352
|
-
e.get("image") === r && (!l || l === 0.7041) &&
|
|
2362
|
+
e.get("image") === r && (!l || l === 0.7041) && s.width && s.height && (e.set("aspectRatio", o(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
|
|
2353
2363
|
});
|
|
2354
2364
|
}
|
|
2355
2365
|
}, {
|
|
@@ -2415,7 +2425,7 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), vo = {
|
|
|
2415
2425
|
shouldReceiveBuilderProps: {
|
|
2416
2426
|
builderBlock: !0
|
|
2417
2427
|
}
|
|
2418
|
-
},
|
|
2428
|
+
}, $o = {
|
|
2419
2429
|
name: "Core:Section",
|
|
2420
2430
|
static: !0,
|
|
2421
2431
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2454,7 +2464,7 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), vo = {
|
|
|
2454
2464
|
}
|
|
2455
2465
|
}
|
|
2456
2466
|
}]
|
|
2457
|
-
},
|
|
2467
|
+
}, Ro = {
|
|
2458
2468
|
name: "Slot",
|
|
2459
2469
|
isRSC: !0,
|
|
2460
2470
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2471,14 +2481,14 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), vo = {
|
|
|
2471
2481
|
builderContext: !0,
|
|
2472
2482
|
builderComponents: !0
|
|
2473
2483
|
}
|
|
2474
|
-
},
|
|
2484
|
+
}, Eo = f({
|
|
2475
2485
|
name: "builder-slot",
|
|
2476
2486
|
components: { Blocks: L },
|
|
2477
2487
|
props: ["builderContext", "name", "builderComponents"]
|
|
2478
2488
|
});
|
|
2479
|
-
function
|
|
2489
|
+
function Po(e, t, n, o, r, i) {
|
|
2480
2490
|
var l, a, u;
|
|
2481
|
-
const
|
|
2491
|
+
const s = v("Blocks");
|
|
2482
2492
|
return d(), m("div", C(
|
|
2483
2493
|
{ style: {
|
|
2484
2494
|
pointerEvents: "auto"
|
|
@@ -2487,7 +2497,7 @@ function Ro(e, t, n, o, r, s) {
|
|
|
2487
2497
|
"builder-slot": e.name
|
|
2488
2498
|
}
|
|
2489
2499
|
), [
|
|
2490
|
-
I(
|
|
2500
|
+
I(s, {
|
|
2491
2501
|
parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
|
|
2492
2502
|
path: `symbol.data.${e.name}`,
|
|
2493
2503
|
context: e.builderContext,
|
|
@@ -2496,7 +2506,7 @@ function Ro(e, t, n, o, r, s) {
|
|
|
2496
2506
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
2497
2507
|
], 16);
|
|
2498
2508
|
}
|
|
2499
|
-
const
|
|
2509
|
+
const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), xo = {
|
|
2500
2510
|
name: "Symbol",
|
|
2501
2511
|
noWrap: !0,
|
|
2502
2512
|
static: !0,
|
|
@@ -2573,7 +2583,7 @@ const Eo = /* @__PURE__ */ b($o, [["render", Ro]]), Po = {
|
|
|
2573
2583
|
text: "New tab content "
|
|
2574
2584
|
}
|
|
2575
2585
|
}
|
|
2576
|
-
},
|
|
2586
|
+
}, Ao = {
|
|
2577
2587
|
name: "Builder: Tabs",
|
|
2578
2588
|
inputs: [{
|
|
2579
2589
|
name: "tabs",
|
|
@@ -2676,7 +2686,7 @@ const Eo = /* @__PURE__ */ b($o, [["render", Ro]]), Po = {
|
|
|
2676
2686
|
builderComponents: !0,
|
|
2677
2687
|
builderLinkComponent: !0
|
|
2678
2688
|
}
|
|
2679
|
-
},
|
|
2689
|
+
}, Vo = f({
|
|
2680
2690
|
name: "builder-tabs",
|
|
2681
2691
|
components: { Blocks: L },
|
|
2682
2692
|
props: [
|
|
@@ -2701,9 +2711,9 @@ const Eo = /* @__PURE__ */ b($o, [["render", Ro]]), Po = {
|
|
|
2701
2711
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
2702
2712
|
}
|
|
2703
2713
|
}
|
|
2704
|
-
}),
|
|
2705
|
-
function
|
|
2706
|
-
const
|
|
2714
|
+
}), Wo = ["onClick"], No = { key: 0 };
|
|
2715
|
+
function Fo(e, t, n, o, r, i) {
|
|
2716
|
+
const s = v("Blocks");
|
|
2707
2717
|
return d(), m("div", null, [
|
|
2708
2718
|
K("div", {
|
|
2709
2719
|
class: "builder-tabs-wrap",
|
|
@@ -2722,7 +2732,7 @@ function Wo(e, t, n, o, r, s) {
|
|
|
2722
2732
|
}),
|
|
2723
2733
|
onClick: (u) => e.onClick(a)
|
|
2724
2734
|
}, [
|
|
2725
|
-
I(
|
|
2735
|
+
I(s, {
|
|
2726
2736
|
parent: e.builderBlock.id,
|
|
2727
2737
|
path: `component.options.tabs.${a}.label`,
|
|
2728
2738
|
blocks: l.label,
|
|
@@ -2730,10 +2740,10 @@ function Wo(e, t, n, o, r, s) {
|
|
|
2730
2740
|
registeredComponents: e.builderComponents,
|
|
2731
2741
|
linkComponent: e.builderLinkComponent
|
|
2732
2742
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2733
|
-
], 14,
|
|
2743
|
+
], 14, Wo))), 128))
|
|
2734
2744
|
], 4),
|
|
2735
|
-
e.activeTabContent(e.activeTab) ? (d(), m("div",
|
|
2736
|
-
I(
|
|
2745
|
+
e.activeTabContent(e.activeTab) ? (d(), m("div", No, [
|
|
2746
|
+
I(s, {
|
|
2737
2747
|
parent: e.builderBlock.id,
|
|
2738
2748
|
path: `component.options.tabs.${e.activeTab}.content`,
|
|
2739
2749
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -2744,7 +2754,7 @@ function Wo(e, t, n, o, r, s) {
|
|
|
2744
2754
|
])) : S("", !0)
|
|
2745
2755
|
]);
|
|
2746
2756
|
}
|
|
2747
|
-
const
|
|
2757
|
+
const Oo = /* @__PURE__ */ b(Vo, [["render", Fo]]), Do = {
|
|
2748
2758
|
shouldReceiveBuilderProps: {
|
|
2749
2759
|
builderBlock: !1,
|
|
2750
2760
|
builderContext: !0
|
|
@@ -2766,21 +2776,21 @@ const No = /* @__PURE__ */ b(xo, [["render", Wo]]), Fo = {
|
|
|
2766
2776
|
height: "auto",
|
|
2767
2777
|
textAlign: "center"
|
|
2768
2778
|
}
|
|
2769
|
-
},
|
|
2779
|
+
}, Lo = f({
|
|
2770
2780
|
name: "builder-text",
|
|
2771
2781
|
props: ["builderContext", "text"],
|
|
2772
2782
|
computed: {
|
|
2773
2783
|
processedText() {
|
|
2774
|
-
var
|
|
2784
|
+
var i;
|
|
2775
2785
|
const e = this.builderContext, {
|
|
2776
2786
|
context: t,
|
|
2777
2787
|
localState: n,
|
|
2778
2788
|
rootState: o,
|
|
2779
2789
|
rootSetState: r
|
|
2780
2790
|
} = e;
|
|
2781
|
-
return String(((
|
|
2791
|
+
return String(((i = this.text) == null ? void 0 : i.toString()) || "").replace(
|
|
2782
2792
|
/{{([^}]+)}}/g,
|
|
2783
|
-
(
|
|
2793
|
+
(s, l) => J({
|
|
2784
2794
|
code: l,
|
|
2785
2795
|
context: t,
|
|
2786
2796
|
localState: n,
|
|
@@ -2790,17 +2800,17 @@ const No = /* @__PURE__ */ b(xo, [["render", Wo]]), Fo = {
|
|
|
2790
2800
|
);
|
|
2791
2801
|
}
|
|
2792
2802
|
}
|
|
2793
|
-
}),
|
|
2794
|
-
function
|
|
2803
|
+
}), Uo = ["innerHTML"];
|
|
2804
|
+
function Ho(e, t, n, o, r, i) {
|
|
2795
2805
|
return d(), m("div", {
|
|
2796
2806
|
class: "builder-text",
|
|
2797
2807
|
innerHTML: e.processedText,
|
|
2798
2808
|
style: {
|
|
2799
2809
|
outline: "none"
|
|
2800
2810
|
}
|
|
2801
|
-
}, null, 8,
|
|
2811
|
+
}, null, 8, Uo);
|
|
2802
2812
|
}
|
|
2803
|
-
const
|
|
2813
|
+
const Mo = /* @__PURE__ */ b(Lo, [["render", Ho]]), jo = {
|
|
2804
2814
|
name: "Custom Code",
|
|
2805
2815
|
static: !0,
|
|
2806
2816
|
requiredPermissions: ["editCode"],
|
|
@@ -2822,7 +2832,7 @@ const Uo = /* @__PURE__ */ b(Oo, [["render", Lo]]), Mo = {
|
|
|
2822
2832
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
2823
2833
|
advanced: !0
|
|
2824
2834
|
}]
|
|
2825
|
-
},
|
|
2835
|
+
}, Ko = f({
|
|
2826
2836
|
name: "builder-custom-code",
|
|
2827
2837
|
props: ["replaceNodes", "code"],
|
|
2828
2838
|
data() {
|
|
@@ -2856,15 +2866,15 @@ const Uo = /* @__PURE__ */ b(Oo, [["render", Lo]]), Mo = {
|
|
|
2856
2866
|
}
|
|
2857
2867
|
}
|
|
2858
2868
|
}
|
|
2859
|
-
}),
|
|
2860
|
-
function
|
|
2869
|
+
}), qo = ["innerHTML"];
|
|
2870
|
+
function zo(e, t, n, o, r, i) {
|
|
2861
2871
|
return d(), m("div", {
|
|
2862
2872
|
ref: "elementRef",
|
|
2863
2873
|
class: q("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
2864
2874
|
innerHTML: e.code
|
|
2865
|
-
}, null, 10,
|
|
2875
|
+
}, null, 10, qo);
|
|
2866
2876
|
}
|
|
2867
|
-
const
|
|
2877
|
+
const Jo = /* @__PURE__ */ b(Ko, [["render", zo]]), Go = {
|
|
2868
2878
|
name: "Embed",
|
|
2869
2879
|
static: !0,
|
|
2870
2880
|
inputs: [{
|
|
@@ -2879,7 +2889,7 @@ const qo = /* @__PURE__ */ b(jo, [["render", Ko]]), zo = {
|
|
|
2879
2889
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2880
2890
|
hideFromUI: !0
|
|
2881
2891
|
}]
|
|
2882
|
-
},
|
|
2892
|
+
}, Yo = ["text/javascript", "application/javascript", "application/ecmascript"], Xo = (e) => Yo.includes(e.type), Qo = f({
|
|
2883
2893
|
name: "builder-embed",
|
|
2884
2894
|
props: ["content"],
|
|
2885
2895
|
data() {
|
|
@@ -2912,7 +2922,7 @@ const qo = /* @__PURE__ */ b(jo, [["render", Ko]]), zo = {
|
|
|
2912
2922
|
this.scriptsInserted.push(n.src);
|
|
2913
2923
|
const o = document.createElement("script");
|
|
2914
2924
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
2915
|
-
} else if (
|
|
2925
|
+
} else if (Xo(n) && !this.scriptsRun.includes(n.innerText))
|
|
2916
2926
|
try {
|
|
2917
2927
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
2918
2928
|
} catch (o) {
|
|
@@ -2921,15 +2931,15 @@ const qo = /* @__PURE__ */ b(jo, [["render", Ko]]), zo = {
|
|
|
2921
2931
|
}
|
|
2922
2932
|
}
|
|
2923
2933
|
}
|
|
2924
|
-
}),
|
|
2925
|
-
function
|
|
2934
|
+
}), Zo = ["innerHTML"];
|
|
2935
|
+
function _o(e, t, n, o, r, i) {
|
|
2926
2936
|
return d(), m("div", {
|
|
2927
2937
|
class: "builder-embed",
|
|
2928
2938
|
ref: "elem",
|
|
2929
2939
|
innerHTML: e.content
|
|
2930
|
-
}, null, 8,
|
|
2940
|
+
}, null, 8, Zo);
|
|
2931
2941
|
}
|
|
2932
|
-
const
|
|
2942
|
+
const er = /* @__PURE__ */ b(Qo, [["render", _o]]), tr = {
|
|
2933
2943
|
name: "Form:Form",
|
|
2934
2944
|
// editableTags: ['builder-form-error']
|
|
2935
2945
|
defaults: {
|
|
@@ -3166,10 +3176,10 @@ const Zo = /* @__PURE__ */ b(Yo, [["render", Qo]]), _o = {
|
|
|
3166
3176
|
builderComponents: !0,
|
|
3167
3177
|
builderLinkComponent: !0
|
|
3168
3178
|
}
|
|
3169
|
-
},
|
|
3179
|
+
}, nr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], or = () => {
|
|
3170
3180
|
const e = process.env.NODE_ENV || "production";
|
|
3171
|
-
return
|
|
3172
|
-
},
|
|
3181
|
+
return nr.includes(e) ? e : "production";
|
|
3182
|
+
}, rr = f({
|
|
3173
3183
|
name: "builder-form-component",
|
|
3174
3184
|
components: { Block: fe, Blocks: L },
|
|
3175
3185
|
props: [
|
|
@@ -3227,8 +3237,8 @@ const Zo = /* @__PURE__ */ b(Yo, [["render", Qo]]), _o = {
|
|
|
3227
3237
|
}
|
|
3228
3238
|
e.preventDefault();
|
|
3229
3239
|
const o = e.currentTarget || e.target, r = this.customHeaders || {};
|
|
3230
|
-
let
|
|
3231
|
-
const
|
|
3240
|
+
let i;
|
|
3241
|
+
const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
|
|
3232
3242
|
let p;
|
|
3233
3243
|
const y = c.name;
|
|
3234
3244
|
if (c instanceof HTMLInputElement)
|
|
@@ -3256,29 +3266,29 @@ const Zo = /* @__PURE__ */ b(Yo, [["render", Qo]]), _o = {
|
|
|
3256
3266
|
if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
|
|
3257
3267
|
(c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
|
|
3258
3268
|
}), a !== "application/json")
|
|
3259
|
-
|
|
3269
|
+
i = s;
|
|
3260
3270
|
else {
|
|
3261
3271
|
const c = {};
|
|
3262
3272
|
Array.from(l).forEach(({ value: p, key: y }) => {
|
|
3263
3273
|
Ee(c, y, p);
|
|
3264
|
-
}),
|
|
3274
|
+
}), i = JSON.stringify(c);
|
|
3265
3275
|
}
|
|
3266
3276
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
3267
3277
|
const u = new CustomEvent("presubmit", {
|
|
3268
3278
|
detail: {
|
|
3269
|
-
body:
|
|
3279
|
+
body: i
|
|
3270
3280
|
}
|
|
3271
3281
|
});
|
|
3272
3282
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
|
|
3273
3283
|
return;
|
|
3274
3284
|
this.formState = "sending";
|
|
3275
|
-
const h = `${
|
|
3285
|
+
const h = `${or() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3276
3286
|
this.sendSubmissionsToEmail || ""
|
|
3277
3287
|
)}&name=${encodeURIComponent(this.name || "")}`;
|
|
3278
3288
|
fetch(
|
|
3279
3289
|
this.sendSubmissionsTo === "email" ? h : this.action,
|
|
3280
3290
|
{
|
|
3281
|
-
body:
|
|
3291
|
+
body: i,
|
|
3282
3292
|
headers: r,
|
|
3283
3293
|
method: this.method || "post"
|
|
3284
3294
|
}
|
|
@@ -3328,13 +3338,13 @@ const Zo = /* @__PURE__ */ b(Yo, [["render", Qo]]), _o = {
|
|
|
3328
3338
|
}
|
|
3329
3339
|
}
|
|
3330
3340
|
}
|
|
3331
|
-
}),
|
|
3341
|
+
}), sr = ["validate", "action", "method", "name"], ir = {
|
|
3332
3342
|
key: 3,
|
|
3333
3343
|
class: "builder-form-error-text pre-3q96myty4lk"
|
|
3334
3344
|
};
|
|
3335
|
-
function
|
|
3345
|
+
function ar(e, t, n, o, r, i) {
|
|
3336
3346
|
var a;
|
|
3337
|
-
const
|
|
3347
|
+
const s = v("Block"), l = v("Blocks");
|
|
3338
3348
|
return d(), m("form", C({
|
|
3339
3349
|
validate: e.validate,
|
|
3340
3350
|
ref: "formRef",
|
|
@@ -3343,7 +3353,7 @@ function ir(e, t, n, o, r, s) {
|
|
|
3343
3353
|
name: e.name,
|
|
3344
3354
|
onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
|
|
3345
3355
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3346
|
-
e.builderBlock && e.builderBlock.children ? (d(!0), m(T, { key: 0 }, A((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (d(), k(
|
|
3356
|
+
e.builderBlock && e.builderBlock.children ? (d(!0), m(T, { key: 0 }, A((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (d(), k(s, {
|
|
3347
3357
|
key: `form-block-${e.idx}`,
|
|
3348
3358
|
block: u,
|
|
3349
3359
|
context: e.builderContext,
|
|
@@ -3362,16 +3372,16 @@ function ir(e, t, n, o, r, s) {
|
|
|
3362
3372
|
blocks: e.sendingMessage,
|
|
3363
3373
|
context: e.builderContext
|
|
3364
3374
|
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
3365
|
-
e.submissionState() === "error" && e.responseData ? (d(), m("pre",
|
|
3375
|
+
e.submissionState() === "error" && e.responseData ? (d(), m("pre", ir, _(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
|
|
3366
3376
|
e.submissionState() === "success" ? (d(), k(l, {
|
|
3367
3377
|
key: 4,
|
|
3368
3378
|
path: "successMessage",
|
|
3369
3379
|
blocks: e.successMessage,
|
|
3370
3380
|
context: e.builderContext
|
|
3371
3381
|
}, null, 8, ["blocks", "context"])) : S("", !0)
|
|
3372
|
-
], 16,
|
|
3382
|
+
], 16, sr);
|
|
3373
3383
|
}
|
|
3374
|
-
const
|
|
3384
|
+
const lr = /* @__PURE__ */ b(rr, [["render", ar], ["__scopeId", "data-v-6e18f21b"]]), cr = {
|
|
3375
3385
|
name: "Form:Input",
|
|
3376
3386
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3377
3387
|
inputs: [
|
|
@@ -3422,7 +3432,7 @@ const sr = /* @__PURE__ */ b(nr, [["render", ir], ["__scopeId", "data-v-6e18f21b
|
|
|
3422
3432
|
borderStyle: "solid",
|
|
3423
3433
|
borderColor: "#ccc"
|
|
3424
3434
|
}
|
|
3425
|
-
},
|
|
3435
|
+
}, dr = f({
|
|
3426
3436
|
name: "builder-form-input-component",
|
|
3427
3437
|
props: [
|
|
3428
3438
|
"attributes",
|
|
@@ -3436,8 +3446,8 @@ const sr = /* @__PURE__ */ b(nr, [["render", ir], ["__scopeId", "data-v-6e18f21b
|
|
|
3436
3446
|
data() {
|
|
3437
3447
|
return { isEditing: E, filterAttrs: V };
|
|
3438
3448
|
}
|
|
3439
|
-
}),
|
|
3440
|
-
function
|
|
3449
|
+
}), ur = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3450
|
+
function pr(e, t, n, o, r, i) {
|
|
3441
3451
|
return d(), m("input", C({
|
|
3442
3452
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3443
3453
|
placeholder: e.placeholder,
|
|
@@ -3446,9 +3456,9 @@ function dr(e, t, n, o, r, s) {
|
|
|
3446
3456
|
value: e.value,
|
|
3447
3457
|
defaultValue: e.defaultValue,
|
|
3448
3458
|
required: e.required
|
|
3449
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
3459
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ur);
|
|
3450
3460
|
}
|
|
3451
|
-
const
|
|
3461
|
+
const mr = /* @__PURE__ */ b(dr, [["render", pr]]), hr = {
|
|
3452
3462
|
name: "Form:Select",
|
|
3453
3463
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3454
3464
|
defaultStyles: {
|
|
@@ -3490,14 +3500,14 @@ const ur = /* @__PURE__ */ b(lr, [["render", dr]]), pr = {
|
|
|
3490
3500
|
}],
|
|
3491
3501
|
static: !0,
|
|
3492
3502
|
noWrap: !0
|
|
3493
|
-
},
|
|
3503
|
+
}, fr = f({
|
|
3494
3504
|
name: "builder-select-component",
|
|
3495
3505
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
3496
3506
|
data() {
|
|
3497
3507
|
return { isEditing: E, filterAttrs: V };
|
|
3498
3508
|
}
|
|
3499
|
-
}),
|
|
3500
|
-
function
|
|
3509
|
+
}), br = ["value", "defaultValue", "name", "required"], gr = ["value"];
|
|
3510
|
+
function yr(e, t, n, o, r, i) {
|
|
3501
3511
|
return d(), m("select", C({
|
|
3502
3512
|
value: e.value,
|
|
3503
3513
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
@@ -3505,13 +3515,13 @@ function br(e, t, n, o, r, s) {
|
|
|
3505
3515
|
name: e.name,
|
|
3506
3516
|
required: e.required
|
|
3507
3517
|
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3508
|
-
(d(!0), m(T, null, A(e.options, (
|
|
3509
|
-
key: `${
|
|
3510
|
-
value:
|
|
3511
|
-
}, _(
|
|
3512
|
-
], 16,
|
|
3518
|
+
(d(!0), m(T, null, A(e.options, (s, l) => (d(), m("option", {
|
|
3519
|
+
key: `${s.name}-${l}`,
|
|
3520
|
+
value: s.value
|
|
3521
|
+
}, _(s.name || s.value), 9, gr))), 128))
|
|
3522
|
+
], 16, br);
|
|
3513
3523
|
}
|
|
3514
|
-
const
|
|
3524
|
+
const kr = /* @__PURE__ */ b(fr, [["render", yr]]), vr = {
|
|
3515
3525
|
name: "Form:SubmitButton",
|
|
3516
3526
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3517
3527
|
defaultStyles: {
|
|
@@ -3536,17 +3546,17 @@ const gr = /* @__PURE__ */ b(mr, [["render", br]]), yr = {
|
|
|
3536
3546
|
// that only shows if advanced setting is flipped
|
|
3537
3547
|
// TODO: defaultChildren
|
|
3538
3548
|
// canHaveChildren: true,
|
|
3539
|
-
},
|
|
3549
|
+
}, Sr = f({
|
|
3540
3550
|
name: "builder-submit-button",
|
|
3541
3551
|
props: ["attributes", "text"],
|
|
3542
3552
|
data() {
|
|
3543
3553
|
return { filterAttrs: V };
|
|
3544
3554
|
}
|
|
3545
3555
|
});
|
|
3546
|
-
function
|
|
3556
|
+
function Cr(e, t, n, o, r, i) {
|
|
3547
3557
|
return d(), m("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), _(e.text), 17);
|
|
3548
3558
|
}
|
|
3549
|
-
const
|
|
3559
|
+
const Tr = /* @__PURE__ */ b(Sr, [["render", Cr]]), wr = {
|
|
3550
3560
|
name: "Form:TextArea",
|
|
3551
3561
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3552
3562
|
inputs: [{
|
|
@@ -3582,7 +3592,7 @@ const Sr = /* @__PURE__ */ b(kr, [["render", vr]]), Cr = {
|
|
|
3582
3592
|
},
|
|
3583
3593
|
static: !0,
|
|
3584
3594
|
noWrap: !0
|
|
3585
|
-
},
|
|
3595
|
+
}, Ir = f({
|
|
3586
3596
|
name: "builder-textarea",
|
|
3587
3597
|
props: [
|
|
3588
3598
|
"attributes",
|
|
@@ -3595,17 +3605,17 @@ const Sr = /* @__PURE__ */ b(kr, [["render", vr]]), Cr = {
|
|
|
3595
3605
|
data() {
|
|
3596
3606
|
return { filterAttrs: V };
|
|
3597
3607
|
}
|
|
3598
|
-
}),
|
|
3599
|
-
function
|
|
3608
|
+
}), $r = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3609
|
+
function Rr(e, t, n, o, r, i) {
|
|
3600
3610
|
return d(), m("textarea", C({
|
|
3601
3611
|
placeholder: e.placeholder,
|
|
3602
3612
|
name: e.name,
|
|
3603
3613
|
value: e.value,
|
|
3604
3614
|
defaultValue: e.defaultValue,
|
|
3605
3615
|
required: e.required
|
|
3606
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
3616
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, $r);
|
|
3607
3617
|
}
|
|
3608
|
-
const
|
|
3618
|
+
const Er = /* @__PURE__ */ b(Ir, [["render", Rr]]), Pr = {
|
|
3609
3619
|
// friendlyName?
|
|
3610
3620
|
name: "Raw:Img",
|
|
3611
3621
|
hideFromInsertMenu: !0,
|
|
@@ -3619,7 +3629,7 @@ const $r = /* @__PURE__ */ b(Tr, [["render", Ir]]), Rr = {
|
|
|
3619
3629
|
}],
|
|
3620
3630
|
noWrap: !0,
|
|
3621
3631
|
static: !0
|
|
3622
|
-
},
|
|
3632
|
+
}, Br = f({
|
|
3623
3633
|
name: "builder-img-component",
|
|
3624
3634
|
props: [
|
|
3625
3635
|
"backgroundSize",
|
|
@@ -3632,8 +3642,8 @@ const $r = /* @__PURE__ */ b(Tr, [["render", Ir]]), Rr = {
|
|
|
3632
3642
|
data() {
|
|
3633
3643
|
return { isEditing: E, filterAttrs: V };
|
|
3634
3644
|
}
|
|
3635
|
-
}),
|
|
3636
|
-
function
|
|
3645
|
+
}), xr = ["alt", "src"];
|
|
3646
|
+
function Ar(e, t, n, o, r, i) {
|
|
3637
3647
|
return d(), m("img", C({
|
|
3638
3648
|
style: {
|
|
3639
3649
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -3642,9 +3652,9 @@ function Br(e, t, n, o, r, s) {
|
|
|
3642
3652
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
3643
3653
|
alt: e.altText,
|
|
3644
3654
|
src: e.imgSrc || e.image
|
|
3645
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
3655
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, xr);
|
|
3646
3656
|
}
|
|
3647
|
-
const
|
|
3657
|
+
const Vr = /* @__PURE__ */ b(Br, [["render", Ar]]), Wr = {
|
|
3648
3658
|
name: "Video",
|
|
3649
3659
|
canHaveChildren: !0,
|
|
3650
3660
|
defaultStyles: {
|
|
@@ -3728,7 +3738,7 @@ const xr = /* @__PURE__ */ b(Er, [["render", Br]]), Ar = {
|
|
|
3728
3738
|
shouldReceiveBuilderProps: {
|
|
3729
3739
|
builderBlock: !0
|
|
3730
3740
|
}
|
|
3731
|
-
},
|
|
3741
|
+
}, Nr = f({
|
|
3732
3742
|
name: "builder-video",
|
|
3733
3743
|
props: [
|
|
3734
3744
|
"autoPlay",
|
|
@@ -3773,16 +3783,16 @@ const xr = /* @__PURE__ */ b(Er, [["render", Br]]), Ar = {
|
|
|
3773
3783
|
};
|
|
3774
3784
|
}
|
|
3775
3785
|
}
|
|
3776
|
-
}),
|
|
3786
|
+
}), Fr = { style: {
|
|
3777
3787
|
position: "relative"
|
|
3778
|
-
} },
|
|
3788
|
+
} }, Or = ["preload", "src", "poster"], Dr = ["src"], Lr = {
|
|
3779
3789
|
key: 1,
|
|
3780
3790
|
style: {
|
|
3781
3791
|
display: "flex",
|
|
3782
3792
|
flexDirection: "column",
|
|
3783
3793
|
alignItems: "stretch"
|
|
3784
3794
|
}
|
|
3785
|
-
},
|
|
3795
|
+
}, Ur = {
|
|
3786
3796
|
key: 2,
|
|
3787
3797
|
style: {
|
|
3788
3798
|
pointerEvents: "none",
|
|
@@ -3796,16 +3806,16 @@ const xr = /* @__PURE__ */ b(Er, [["render", Br]]), Ar = {
|
|
|
3796
3806
|
height: "100%"
|
|
3797
3807
|
}
|
|
3798
3808
|
};
|
|
3799
|
-
function
|
|
3800
|
-
var
|
|
3801
|
-
return d(), m("div",
|
|
3809
|
+
function Hr(e, t, n, o, r, i) {
|
|
3810
|
+
var s, l, a, u, h, c, p;
|
|
3811
|
+
return d(), m("div", Fr, [
|
|
3802
3812
|
K("video", C({
|
|
3803
3813
|
class: "builder-video",
|
|
3804
3814
|
preload: e.preload || "metadata",
|
|
3805
3815
|
style: {
|
|
3806
3816
|
width: "100%",
|
|
3807
3817
|
height: "100%",
|
|
3808
|
-
...(
|
|
3818
|
+
...(s = e.attributes) == null ? void 0 : s.style,
|
|
3809
3819
|
objectFit: e.fit,
|
|
3810
3820
|
objectPosition: e.position,
|
|
3811
3821
|
// Hack to get object fit to work as expected and
|
|
@@ -3823,8 +3833,8 @@ function Lr(e, t, n, o, r, s) {
|
|
|
3823
3833
|
key: 0,
|
|
3824
3834
|
type: "video/mp4",
|
|
3825
3835
|
src: e.video
|
|
3826
|
-
}, null, 8,
|
|
3827
|
-
], 16,
|
|
3836
|
+
}, null, 8, Dr))
|
|
3837
|
+
], 16, Or),
|
|
3828
3838
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), m("div", {
|
|
3829
3839
|
key: 0,
|
|
3830
3840
|
style: O({
|
|
@@ -3834,72 +3844,72 @@ function Lr(e, t, n, o, r, s) {
|
|
|
3834
3844
|
fontSize: "0px"
|
|
3835
3845
|
})
|
|
3836
3846
|
}, null, 4)) : S("", !0),
|
|
3837
|
-
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(), m("div",
|
|
3847
|
+
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(), m("div", Lr, [
|
|
3838
3848
|
B(e.$slots, "default")
|
|
3839
3849
|
])) : S("", !0),
|
|
3840
|
-
(p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (d(), m("div",
|
|
3850
|
+
(p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (d(), m("div", Ur, [
|
|
3841
3851
|
B(e.$slots, "default")
|
|
3842
3852
|
])) : S("", !0)
|
|
3843
3853
|
]);
|
|
3844
3854
|
}
|
|
3845
|
-
const
|
|
3846
|
-
component:
|
|
3847
|
-
...
|
|
3855
|
+
const Mr = /* @__PURE__ */ b(Nr, [["render", Hr]]), jr = () => [{
|
|
3856
|
+
component: Jo,
|
|
3857
|
+
...jo
|
|
3848
3858
|
}, {
|
|
3849
|
-
component:
|
|
3850
|
-
...
|
|
3859
|
+
component: er,
|
|
3860
|
+
...Go
|
|
3851
3861
|
}, {
|
|
3852
|
-
component:
|
|
3853
|
-
...
|
|
3862
|
+
component: lr,
|
|
3863
|
+
...tr
|
|
3854
3864
|
}, {
|
|
3855
|
-
component:
|
|
3856
|
-
...
|
|
3865
|
+
component: mr,
|
|
3866
|
+
...cr
|
|
3857
3867
|
}, {
|
|
3858
|
-
component:
|
|
3859
|
-
...
|
|
3868
|
+
component: Tr,
|
|
3869
|
+
...vr
|
|
3860
3870
|
}, {
|
|
3861
|
-
component:
|
|
3862
|
-
...
|
|
3871
|
+
component: kr,
|
|
3872
|
+
...hr
|
|
3863
3873
|
}, {
|
|
3864
|
-
component:
|
|
3865
|
-
...
|
|
3874
|
+
component: Er,
|
|
3875
|
+
...wr
|
|
3866
3876
|
}, {
|
|
3867
|
-
component:
|
|
3868
|
-
...
|
|
3877
|
+
component: Vr,
|
|
3878
|
+
...Pr
|
|
3869
3879
|
}, {
|
|
3870
|
-
component:
|
|
3871
|
-
...
|
|
3880
|
+
component: Mr,
|
|
3881
|
+
...Wr
|
|
3872
3882
|
}], we = () => [{
|
|
3873
|
-
component:
|
|
3874
|
-
...vo
|
|
3875
|
-
}, {
|
|
3876
|
-
component: Zn,
|
|
3877
|
-
...So
|
|
3878
|
-
}, {
|
|
3879
|
-
component: to,
|
|
3883
|
+
component: wt,
|
|
3880
3884
|
...Co
|
|
3881
3885
|
}, {
|
|
3882
|
-
component:
|
|
3886
|
+
component: eo,
|
|
3883
3887
|
...To
|
|
3884
3888
|
}, {
|
|
3885
|
-
component:
|
|
3889
|
+
component: oo,
|
|
3886
3890
|
...wo
|
|
3887
3891
|
}, {
|
|
3888
|
-
component:
|
|
3892
|
+
component: po,
|
|
3889
3893
|
...Io
|
|
3890
3894
|
}, {
|
|
3891
|
-
component:
|
|
3892
|
-
|
|
3895
|
+
component: fo,
|
|
3896
|
+
...$o
|
|
3897
|
+
}, {
|
|
3898
|
+
component: Bo,
|
|
3899
|
+
...Ro
|
|
3900
|
+
}, {
|
|
3901
|
+
component: ws,
|
|
3902
|
+
...xo
|
|
3893
3903
|
}, {
|
|
3894
|
-
component:
|
|
3895
|
-
...
|
|
3904
|
+
component: Mo,
|
|
3905
|
+
...Do
|
|
3896
3906
|
}, {
|
|
3897
|
-
component:
|
|
3898
|
-
...
|
|
3907
|
+
component: Oo,
|
|
3908
|
+
...Ao
|
|
3899
3909
|
}, {
|
|
3900
|
-
component:
|
|
3901
|
-
...
|
|
3902
|
-
}, ...
|
|
3910
|
+
component: So,
|
|
3911
|
+
...bo
|
|
3912
|
+
}, ...jr()], Kr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3903
3913
|
function getAndSetVariantId() {
|
|
3904
3914
|
function setCookie(name, value, days) {
|
|
3905
3915
|
let expires = '';
|
|
@@ -3955,7 +3965,7 @@ const Ur = /* @__PURE__ */ b(Vr, [["render", Lr]]), Mr = () => [{
|
|
|
3955
3965
|
}).join('');
|
|
3956
3966
|
styleEl.innerHTML = newStyleStr;
|
|
3957
3967
|
}
|
|
3958
|
-
}`,
|
|
3968
|
+
}`, qr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3959
3969
|
if (!navigator.cookieEnabled) {
|
|
3960
3970
|
return;
|
|
3961
3971
|
}
|
|
@@ -3993,16 +4003,16 @@ const Ur = /* @__PURE__ */ b(Vr, [["render", Lr]]), Mr = () => [{
|
|
|
3993
4003
|
...t,
|
|
3994
4004
|
testVariationId: t.id,
|
|
3995
4005
|
id: e == null ? void 0 : e.id
|
|
3996
|
-
})),
|
|
4006
|
+
})), zr = ({
|
|
3997
4007
|
canTrack: e,
|
|
3998
4008
|
content: t
|
|
3999
|
-
}) => !(!(X(t).length > 0) || !e),
|
|
4000
|
-
window.${tt} = ${
|
|
4001
|
-
window.${nt} = ${
|
|
4002
|
-
`,
|
|
4009
|
+
}) => !(!(X(t).length > 0) || !e), Jr = (e) => e === "react" || e === "reactNative", ot = Jr(R), Gr = () => `
|
|
4010
|
+
window.${tt} = ${Kr}
|
|
4011
|
+
window.${nt} = ${qr}
|
|
4012
|
+
`, Yr = (e, t) => `
|
|
4003
4013
|
window.${tt}(
|
|
4004
4014
|
"${t}",${JSON.stringify(e)}, ${ot}
|
|
4005
|
-
)`,
|
|
4015
|
+
)`, Xr = ({
|
|
4006
4016
|
contentId: e,
|
|
4007
4017
|
variationId: t
|
|
4008
4018
|
}) => `window.${nt}(
|
|
@@ -4021,7 +4031,7 @@ const Ur = /* @__PURE__ */ b(Vr, [["render", Lr]]), Mr = () => [{
|
|
|
4021
4031
|
function Ie(e) {
|
|
4022
4032
|
return Math.round(e * 1e3) / 1e3;
|
|
4023
4033
|
}
|
|
4024
|
-
const
|
|
4034
|
+
const Qr = (e, t, n = !0) => {
|
|
4025
4035
|
if (!(e instanceof HTMLElement))
|
|
4026
4036
|
return null;
|
|
4027
4037
|
let o = n ? e : e.parentElement;
|
|
@@ -4032,20 +4042,20 @@ const Yr = (e, t, n = !0) => {
|
|
|
4032
4042
|
return o;
|
|
4033
4043
|
} while (o = o.parentElement);
|
|
4034
4044
|
return null;
|
|
4035
|
-
},
|
|
4045
|
+
}, Zr = (e) => Qr(e, (t) => {
|
|
4036
4046
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4037
4047
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4038
4048
|
}), $e = ({
|
|
4039
4049
|
event: e,
|
|
4040
4050
|
target: t
|
|
4041
4051
|
}) => {
|
|
4042
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top,
|
|
4052
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Ie(o / n.width), s = Ie(r / n.height);
|
|
4043
4053
|
return {
|
|
4044
|
-
x:
|
|
4045
|
-
y:
|
|
4054
|
+
x: i,
|
|
4055
|
+
y: s
|
|
4046
4056
|
};
|
|
4047
|
-
},
|
|
4048
|
-
const t = e.target, n = t &&
|
|
4057
|
+
}, _r = (e) => {
|
|
4058
|
+
const t = e.target, n = t && Zr(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4049
4059
|
return {
|
|
4050
4060
|
targetBuilderElement: o || void 0,
|
|
4051
4061
|
metadata: {
|
|
@@ -4060,9 +4070,9 @@ const Yr = (e, t, n = !0) => {
|
|
|
4060
4070
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4061
4071
|
}
|
|
4062
4072
|
};
|
|
4063
|
-
},
|
|
4064
|
-
var
|
|
4065
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((
|
|
4073
|
+
}, es = (e) => {
|
|
4074
|
+
var i;
|
|
4075
|
+
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);
|
|
4066
4076
|
let r = "";
|
|
4067
4077
|
if (o && t && n && (r += `
|
|
4068
4078
|
@font-face {
|
|
@@ -4072,29 +4082,29 @@ font-display: fallback;
|
|
|
4072
4082
|
font-weight: 400;
|
|
4073
4083
|
}
|
|
4074
4084
|
`.trim()), e.files)
|
|
4075
|
-
for (const
|
|
4076
|
-
if (!(String(Number(
|
|
4085
|
+
for (const s in e.files) {
|
|
4086
|
+
if (!(String(Number(s)) === s))
|
|
4077
4087
|
continue;
|
|
4078
|
-
const a = e.files[
|
|
4088
|
+
const a = e.files[s];
|
|
4079
4089
|
a && a !== o && (r += `
|
|
4080
4090
|
@font-face {
|
|
4081
4091
|
font-family: "${t}";
|
|
4082
4092
|
src: url('${a}') format('woff2');
|
|
4083
4093
|
font-display: fallback;
|
|
4084
|
-
font-weight: ${
|
|
4094
|
+
font-weight: ${s};
|
|
4085
4095
|
}
|
|
4086
4096
|
`.trim());
|
|
4087
4097
|
}
|
|
4088
4098
|
return r;
|
|
4089
|
-
},
|
|
4099
|
+
}, ts = ({
|
|
4090
4100
|
customFonts: e
|
|
4091
4101
|
}) => {
|
|
4092
4102
|
var t;
|
|
4093
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4094
|
-
},
|
|
4103
|
+
return ((t = e == null ? void 0 : e.map((n) => es(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4104
|
+
}, ns = ({
|
|
4095
4105
|
cssCode: e,
|
|
4096
4106
|
contentId: t
|
|
4097
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4107
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", os = `
|
|
4098
4108
|
.builder-button {
|
|
4099
4109
|
all: unset;
|
|
4100
4110
|
}
|
|
@@ -4111,13 +4121,15 @@ font-weight: ${i};
|
|
|
4111
4121
|
text-align: inherit;
|
|
4112
4122
|
font-family: inherit;
|
|
4113
4123
|
}
|
|
4114
|
-
`,
|
|
4124
|
+
`, rs = (e) => e ? "" : os, ss = (e) => `variant-${e}`, is = f({
|
|
4115
4125
|
name: "enable-editor",
|
|
4116
4126
|
components: { DynamicDiv: G },
|
|
4117
4127
|
props: [
|
|
4128
|
+
"isNestedRender",
|
|
4118
4129
|
"builderContextSignal",
|
|
4119
4130
|
"canTrack",
|
|
4120
4131
|
"apiKey",
|
|
4132
|
+
"apiHost",
|
|
4121
4133
|
"locale",
|
|
4122
4134
|
"enrich",
|
|
4123
4135
|
"trustedHosts",
|
|
@@ -4135,14 +4147,14 @@ font-weight: ${i};
|
|
|
4135
4147
|
httpReqsData: {},
|
|
4136
4148
|
httpReqsPending: {},
|
|
4137
4149
|
clicked: !1,
|
|
4138
|
-
builderContext:
|
|
4139
|
-
getWrapperClassName:
|
|
4150
|
+
builderContext: se,
|
|
4151
|
+
getWrapperClassName: ss
|
|
4140
4152
|
};
|
|
4141
4153
|
},
|
|
4142
4154
|
provide() {
|
|
4143
4155
|
const e = this;
|
|
4144
4156
|
return {
|
|
4145
|
-
[
|
|
4157
|
+
[se.key]: e.builderContextSignal
|
|
4146
4158
|
};
|
|
4147
4159
|
},
|
|
4148
4160
|
created() {
|
|
@@ -4151,19 +4163,20 @@ font-weight: ${i};
|
|
|
4151
4163
|
mounted() {
|
|
4152
4164
|
var e, t;
|
|
4153
4165
|
if ($()) {
|
|
4154
|
-
if (E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4166
|
+
if (E() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4155
4167
|
new CustomEvent("initeditingbldr")
|
|
4156
4168
|
), this.builderContextSignal.content && z(this.canTrack)) {
|
|
4157
|
-
const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id,
|
|
4169
|
+
const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id, i = this.apiKey;
|
|
4158
4170
|
ae({
|
|
4171
|
+
apiHost: this.apiHost,
|
|
4159
4172
|
type: "impression",
|
|
4160
4173
|
canTrack: !0,
|
|
4161
4174
|
contentId: r,
|
|
4162
|
-
apiKey:
|
|
4175
|
+
apiKey: i,
|
|
4163
4176
|
variationId: o !== r ? o : void 0
|
|
4164
4177
|
});
|
|
4165
4178
|
}
|
|
4166
|
-
|
|
4179
|
+
Dt() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4167
4180
|
new CustomEvent("initpreviewingbldr")
|
|
4168
4181
|
);
|
|
4169
4182
|
}
|
|
@@ -4240,7 +4253,7 @@ font-weight: ${i};
|
|
|
4240
4253
|
this.builderContextSignal.rootSetState ? (o = (n = this.builderContextSignal).rootSetState) == null || o.call(n, t) : this.builderContextSignal.rootState = t;
|
|
4241
4254
|
},
|
|
4242
4255
|
mergeNewContent(e) {
|
|
4243
|
-
var n, o, r,
|
|
4256
|
+
var n, o, r, i, s;
|
|
4244
4257
|
const t = {
|
|
4245
4258
|
...this.builderContextSignal.content,
|
|
4246
4259
|
...e,
|
|
@@ -4251,7 +4264,7 @@ font-weight: ${i};
|
|
|
4251
4264
|
meta: {
|
|
4252
4265
|
...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
|
|
4253
4266
|
...e == null ? void 0 : e.meta,
|
|
4254
|
-
breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((
|
|
4267
|
+
breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((s = (i = this.builderContextSignal.content) == null ? void 0 : i.meta) == null ? void 0 : s.breakpoints)
|
|
4255
4268
|
}
|
|
4256
4269
|
};
|
|
4257
4270
|
this.builderContextSignal.content = t;
|
|
@@ -4284,12 +4297,13 @@ font-weight: ${i};
|
|
|
4284
4297
|
if (this.builderContextSignal.content) {
|
|
4285
4298
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
4286
4299
|
ae({
|
|
4300
|
+
apiHost: this.apiHost,
|
|
4287
4301
|
type: "click",
|
|
4288
4302
|
canTrack: z(this.canTrack),
|
|
4289
4303
|
contentId: r,
|
|
4290
4304
|
apiKey: this.apiKey,
|
|
4291
4305
|
variationId: o !== r ? o : void 0,
|
|
4292
|
-
...
|
|
4306
|
+
..._r(e),
|
|
4293
4307
|
unique: !this.clicked
|
|
4294
4308
|
});
|
|
4295
4309
|
}
|
|
@@ -4302,9 +4316,9 @@ font-weight: ${i};
|
|
|
4302
4316
|
if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !E())
|
|
4303
4317
|
return;
|
|
4304
4318
|
this.httpReqsPending[o] = !0;
|
|
4305
|
-
const
|
|
4319
|
+
const i = r.replace(
|
|
4306
4320
|
/{{([^}]+)}}/g,
|
|
4307
|
-
(
|
|
4321
|
+
(s, l) => String(
|
|
4308
4322
|
J({
|
|
4309
4323
|
code: l,
|
|
4310
4324
|
context: this.context || {},
|
|
@@ -4314,12 +4328,12 @@ font-weight: ${i};
|
|
|
4314
4328
|
})
|
|
4315
4329
|
)
|
|
4316
4330
|
);
|
|
4317
|
-
fetch(
|
|
4331
|
+
fetch(i).then((s) => s.json()).then((s) => {
|
|
4318
4332
|
this.mergeNewRootState({
|
|
4319
|
-
[o]:
|
|
4333
|
+
[o]: s
|
|
4320
4334
|
}), this.httpReqsData[o] = !0;
|
|
4321
|
-
}).catch((
|
|
4322
|
-
console.error("error fetching dynamic data", r,
|
|
4335
|
+
}).catch((s) => {
|
|
4336
|
+
console.error("error fetching dynamic data", r, s);
|
|
4323
4337
|
}).finally(() => {
|
|
4324
4338
|
this.httpReqsPending[o] = !1;
|
|
4325
4339
|
});
|
|
@@ -4341,7 +4355,7 @@ font-weight: ${i};
|
|
|
4341
4355
|
);
|
|
4342
4356
|
},
|
|
4343
4357
|
elementRef_onIniteditingbldr(e) {
|
|
4344
|
-
window.addEventListener("message", this.processMessage),
|
|
4358
|
+
window.addEventListener("message", this.processMessage), an(), je({
|
|
4345
4359
|
...this.locale ? {
|
|
4346
4360
|
locale: this.locale
|
|
4347
4361
|
} : {},
|
|
@@ -4355,7 +4369,7 @@ font-weight: ${i};
|
|
|
4355
4369
|
this.builderContextSignal.componentInfos
|
|
4356
4370
|
).forEach((t) => {
|
|
4357
4371
|
var o;
|
|
4358
|
-
const n =
|
|
4372
|
+
const n = Lt(t);
|
|
4359
4373
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
4360
4374
|
}), window.addEventListener(
|
|
4361
4375
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -4370,19 +4384,19 @@ font-weight: ${i};
|
|
|
4370
4384
|
model: this.model,
|
|
4371
4385
|
apiKey: this.apiKey,
|
|
4372
4386
|
apiVersion: this.builderContextSignal.apiVersion
|
|
4373
|
-
}).then((
|
|
4374
|
-
|
|
4387
|
+
}).then((i) => {
|
|
4388
|
+
i && this.mergeNewContent(i);
|
|
4375
4389
|
});
|
|
4376
4390
|
}
|
|
4377
4391
|
}
|
|
4378
4392
|
});
|
|
4379
|
-
function
|
|
4380
|
-
var
|
|
4381
|
-
return e.builderContextSignal.content ? (d(), k(
|
|
4393
|
+
function as(e, t, n, o, r, i) {
|
|
4394
|
+
var s, l, a;
|
|
4395
|
+
return e.builderContextSignal.content ? (d(), k(M(e.ContentWrapper), C({
|
|
4382
4396
|
key: 0,
|
|
4383
4397
|
ref: "elementRef",
|
|
4384
4398
|
onClick: (u) => e.onClick(u),
|
|
4385
|
-
"builder-content-id": (
|
|
4399
|
+
"builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
|
|
4386
4400
|
"builder-model": e.model,
|
|
4387
4401
|
className: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
|
|
4388
4402
|
onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
|
|
@@ -4394,41 +4408,41 @@ function ii(e, t, n, o, r, s) {
|
|
|
4394
4408
|
_: 3
|
|
4395
4409
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
|
|
4396
4410
|
}
|
|
4397
|
-
const
|
|
4411
|
+
const ls = /* @__PURE__ */ b(is, [["render", as]]), cs = f({
|
|
4398
4412
|
name: "content-styles",
|
|
4399
4413
|
components: { InlinedStyles: be },
|
|
4400
4414
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
4401
4415
|
data() {
|
|
4402
4416
|
return {
|
|
4403
4417
|
injectedStyles: `
|
|
4404
|
-
${
|
|
4418
|
+
${ns({
|
|
4405
4419
|
cssCode: this.cssCode,
|
|
4406
4420
|
contentId: this.contentId
|
|
4407
4421
|
})}
|
|
4408
|
-
${
|
|
4422
|
+
${ts({
|
|
4409
4423
|
customFonts: this.customFonts
|
|
4410
4424
|
})}
|
|
4411
|
-
${
|
|
4425
|
+
${rs(this.isNestedRender)}
|
|
4412
4426
|
`.trim()
|
|
4413
4427
|
};
|
|
4414
4428
|
}
|
|
4415
4429
|
});
|
|
4416
|
-
function
|
|
4417
|
-
const
|
|
4418
|
-
return d(), k(
|
|
4430
|
+
function ds(e, t, n, o, r, i) {
|
|
4431
|
+
const s = v("InlinedStyles");
|
|
4432
|
+
return d(), k(s, {
|
|
4419
4433
|
id: "builderio-content",
|
|
4420
4434
|
styles: e.injectedStyles,
|
|
4421
4435
|
nonce: e.nonce
|
|
4422
4436
|
}, null, 8, ["styles", "nonce"]);
|
|
4423
4437
|
}
|
|
4424
|
-
const
|
|
4438
|
+
const us = /* @__PURE__ */ b(cs, [["render", ds]]), ps = ({
|
|
4425
4439
|
content: e,
|
|
4426
4440
|
data: t,
|
|
4427
4441
|
locale: n
|
|
4428
4442
|
}) => {
|
|
4429
|
-
var
|
|
4430
|
-
const o = {}, r = ((
|
|
4431
|
-
return (l = (
|
|
4443
|
+
var i, s, l;
|
|
4444
|
+
const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
|
|
4445
|
+
return (l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || l.forEach((a) => {
|
|
4432
4446
|
a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
|
|
4433
4447
|
}), {
|
|
4434
4448
|
...o,
|
|
@@ -4438,7 +4452,7 @@ const ci = /* @__PURE__ */ b(ai, [["render", li]]), di = ({
|
|
|
4438
4452
|
locale: n
|
|
4439
4453
|
} : {}
|
|
4440
4454
|
};
|
|
4441
|
-
},
|
|
4455
|
+
}, ms = ({
|
|
4442
4456
|
content: e,
|
|
4443
4457
|
data: t
|
|
4444
4458
|
}) => e ? {
|
|
@@ -4448,12 +4462,12 @@ const ci = /* @__PURE__ */ b(ai, [["render", li]]), di = ({
|
|
|
4448
4462
|
...t
|
|
4449
4463
|
},
|
|
4450
4464
|
meta: e == null ? void 0 : e.meta
|
|
4451
|
-
} : void 0,
|
|
4465
|
+
} : void 0, hs = ct, fs = f({
|
|
4452
4466
|
name: "content-component",
|
|
4453
4467
|
components: {
|
|
4454
|
-
EnableEditor:
|
|
4468
|
+
EnableEditor: ls,
|
|
4455
4469
|
InlinedScript: rt,
|
|
4456
|
-
ContentStyles:
|
|
4470
|
+
ContentStyles: us,
|
|
4457
4471
|
Blocks: L,
|
|
4458
4472
|
DynamicDiv: G
|
|
4459
4473
|
},
|
|
@@ -4470,19 +4484,20 @@ const ci = /* @__PURE__ */ b(ai, [["render", li]]), di = ({
|
|
|
4470
4484
|
"blocksWrapper",
|
|
4471
4485
|
"blocksWrapperProps",
|
|
4472
4486
|
"nonce",
|
|
4487
|
+
"apiHost",
|
|
4473
4488
|
"enrich",
|
|
4474
4489
|
"showContent",
|
|
4475
4490
|
"contentWrapper",
|
|
4476
4491
|
"contentWrapperProps",
|
|
4477
4492
|
"trustedHosts",
|
|
4478
|
-
"isSsrAbTest",
|
|
4479
4493
|
"isNestedRender",
|
|
4494
|
+
"isSsrAbTest",
|
|
4480
4495
|
"linkComponent"
|
|
4481
4496
|
],
|
|
4482
4497
|
data() {
|
|
4483
4498
|
var e, t, n, o;
|
|
4484
4499
|
return {
|
|
4485
|
-
scriptStr:
|
|
4500
|
+
scriptStr: Xr({
|
|
4486
4501
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4487
4502
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
4488
4503
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4492,22 +4507,22 @@ const ci = /* @__PURE__ */ b(ai, [["render", li]]), di = ({
|
|
|
4492
4507
|
...we(),
|
|
4493
4508
|
...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
|
|
4494
4509
|
].reduce(
|
|
4495
|
-
(r, { component:
|
|
4510
|
+
(r, { component: i, ...s }) => ({
|
|
4496
4511
|
...r,
|
|
4497
|
-
[
|
|
4498
|
-
component:
|
|
4499
|
-
...Z(
|
|
4512
|
+
[s.name]: {
|
|
4513
|
+
component: hs(i),
|
|
4514
|
+
...Z(s)
|
|
4500
4515
|
}
|
|
4501
4516
|
}),
|
|
4502
4517
|
{}
|
|
4503
4518
|
),
|
|
4504
4519
|
builderContextSignal: {
|
|
4505
|
-
content:
|
|
4520
|
+
content: ms({
|
|
4506
4521
|
content: this.content,
|
|
4507
4522
|
data: this.data
|
|
4508
4523
|
}),
|
|
4509
4524
|
localState: void 0,
|
|
4510
|
-
rootState:
|
|
4525
|
+
rootState: ps({
|
|
4511
4526
|
content: this.content,
|
|
4512
4527
|
data: this.data,
|
|
4513
4528
|
locale: this.locale
|
|
@@ -4521,9 +4536,9 @@ const ci = /* @__PURE__ */ b(ai, [["render", li]]), di = ({
|
|
|
4521
4536
|
...we(),
|
|
4522
4537
|
...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
|
|
4523
4538
|
].reduce(
|
|
4524
|
-
(r, { component:
|
|
4539
|
+
(r, { component: i, ...s }) => ({
|
|
4525
4540
|
...r,
|
|
4526
|
-
[
|
|
4541
|
+
[s.name]: Z(s)
|
|
4527
4542
|
}),
|
|
4528
4543
|
{}
|
|
4529
4544
|
),
|
|
@@ -4566,9 +4581,10 @@ const ci = /* @__PURE__ */ b(ai, [["render", li]]), di = ({
|
|
|
4566
4581
|
}
|
|
4567
4582
|
}
|
|
4568
4583
|
});
|
|
4569
|
-
function
|
|
4570
|
-
const
|
|
4584
|
+
function bs(e, t, n, o, r, i) {
|
|
4585
|
+
const s = v("InlinedScript"), l = v("ContentStyles"), a = v("Blocks"), u = v("EnableEditor");
|
|
4571
4586
|
return d(), k(u, C({
|
|
4587
|
+
apiHost: e.apiHost,
|
|
4572
4588
|
nonce: e.nonce,
|
|
4573
4589
|
content: e.content,
|
|
4574
4590
|
data: e.data,
|
|
@@ -4582,12 +4598,13 @@ function hi(e, t, n, o, r, s) {
|
|
|
4582
4598
|
builderContextSignal: e.builderContextSignal,
|
|
4583
4599
|
contentWrapper: e.contentWrapper,
|
|
4584
4600
|
contentWrapperProps: e.contentWrapperProps,
|
|
4585
|
-
trustedHosts: e.trustedHosts
|
|
4601
|
+
trustedHosts: e.trustedHosts,
|
|
4602
|
+
isNestedRender: e.isNestedRender
|
|
4586
4603
|
}, {}), {
|
|
4587
4604
|
default: W(() => {
|
|
4588
4605
|
var h, c, p, y, g, N, Y;
|
|
4589
4606
|
return [
|
|
4590
|
-
e.isSsrAbTest ? (d(), k(
|
|
4607
|
+
e.isSsrAbTest ? (d(), k(s, {
|
|
4591
4608
|
key: 0,
|
|
4592
4609
|
id: "builderio-variant-visibility",
|
|
4593
4610
|
scriptStr: e.scriptStr,
|
|
@@ -4610,20 +4627,21 @@ function hi(e, t, n, o, r, s) {
|
|
|
4610
4627
|
];
|
|
4611
4628
|
}),
|
|
4612
4629
|
_: 1
|
|
4613
|
-
}, 16, ["nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
4630
|
+
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
4614
4631
|
}
|
|
4615
|
-
const
|
|
4632
|
+
const gs = /* @__PURE__ */ b(fs, [["render", bs]]), ys = f({
|
|
4616
4633
|
name: "content-variants",
|
|
4617
4634
|
components: {
|
|
4618
4635
|
InlinedScript: rt,
|
|
4619
4636
|
InlinedStyles: be,
|
|
4620
|
-
ContentComponent:
|
|
4637
|
+
ContentComponent: gs
|
|
4621
4638
|
},
|
|
4622
4639
|
props: [
|
|
4623
4640
|
"canTrack",
|
|
4624
4641
|
"content",
|
|
4625
4642
|
"isNestedRender",
|
|
4626
4643
|
"nonce",
|
|
4644
|
+
"apiHost",
|
|
4627
4645
|
"model",
|
|
4628
4646
|
"data",
|
|
4629
4647
|
"context",
|
|
@@ -4641,12 +4659,12 @@ const fi = /* @__PURE__ */ b(mi, [["render", hi]]), bi = f({
|
|
|
4641
4659
|
],
|
|
4642
4660
|
data() {
|
|
4643
4661
|
return {
|
|
4644
|
-
shouldRenderVariants:
|
|
4662
|
+
shouldRenderVariants: zr({
|
|
4645
4663
|
canTrack: z(this.canTrack),
|
|
4646
4664
|
content: this.content
|
|
4647
4665
|
}),
|
|
4648
4666
|
TARGET: R,
|
|
4649
|
-
getInitVariantsFnsScriptString:
|
|
4667
|
+
getInitVariantsFnsScriptString: Gr,
|
|
4650
4668
|
getVariants: X
|
|
4651
4669
|
};
|
|
4652
4670
|
},
|
|
@@ -4655,7 +4673,7 @@ const fi = /* @__PURE__ */ b(mi, [["render", hi]]), bi = f({
|
|
|
4655
4673
|
computed: {
|
|
4656
4674
|
updateCookieAndStylesScriptStr() {
|
|
4657
4675
|
var e;
|
|
4658
|
-
return
|
|
4676
|
+
return Yr(
|
|
4659
4677
|
X(this.content).map((t) => ({
|
|
4660
4678
|
id: t.testVariationId,
|
|
4661
4679
|
testRatio: t.testRatio
|
|
@@ -4671,17 +4689,17 @@ const fi = /* @__PURE__ */ b(mi, [["render", hi]]), bi = f({
|
|
|
4671
4689
|
return this.shouldRenderVariants ? {
|
|
4672
4690
|
...this.content,
|
|
4673
4691
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
4674
|
-
} :
|
|
4692
|
+
} : mn({
|
|
4675
4693
|
item: this.content,
|
|
4676
4694
|
canTrack: z(this.canTrack)
|
|
4677
4695
|
});
|
|
4678
4696
|
}
|
|
4679
4697
|
}
|
|
4680
4698
|
});
|
|
4681
|
-
function
|
|
4682
|
-
const
|
|
4699
|
+
function ks(e, t, n, o, r, i) {
|
|
4700
|
+
const s = v("InlinedScript"), l = v("InlinedStyles"), a = v("ContentComponent");
|
|
4683
4701
|
return d(), m(T, null, [
|
|
4684
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(
|
|
4702
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(s, {
|
|
4685
4703
|
key: 0,
|
|
4686
4704
|
id: "builderio-init-variants-fns",
|
|
4687
4705
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
@@ -4693,13 +4711,14 @@ function gi(e, t, n, o, r, s) {
|
|
|
4693
4711
|
styles: e.hideVariantsStyleString,
|
|
4694
4712
|
nonce: e.nonce || ""
|
|
4695
4713
|
}, null, 8, ["styles", "nonce"]),
|
|
4696
|
-
I(
|
|
4714
|
+
I(s, {
|
|
4697
4715
|
id: "builderio-variants-visibility",
|
|
4698
4716
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
4699
4717
|
nonce: e.nonce || ""
|
|
4700
4718
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
4701
4719
|
(d(!0), m(T, null, A(e.getVariants(e.content), (u, h) => (d(), k(a, C({
|
|
4702
4720
|
key: u.testVariationId,
|
|
4721
|
+
apiHost: e.apiHost,
|
|
4703
4722
|
isNestedRender: e.isNestedRender,
|
|
4704
4723
|
nonce: e.nonce,
|
|
4705
4724
|
content: u,
|
|
@@ -4720,9 +4739,10 @@ function gi(e, t, n, o, r, s) {
|
|
|
4720
4739
|
contentWrapper: e.contentWrapper,
|
|
4721
4740
|
contentWrapperProps: e.contentWrapperProps,
|
|
4722
4741
|
trustedHosts: e.trustedHosts
|
|
4723
|
-
}, {}), null, 16, ["isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4742
|
+
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4724
4743
|
], 64)) : S("", !0),
|
|
4725
4744
|
I(a, C({
|
|
4745
|
+
apiHost: e.apiHost,
|
|
4726
4746
|
nonce: e.nonce,
|
|
4727
4747
|
isNestedRender: e.isNestedRender,
|
|
4728
4748
|
content: e.defaultContent,
|
|
@@ -4745,10 +4765,10 @@ function gi(e, t, n, o, r, s) {
|
|
|
4745
4765
|
trustedHosts: e.trustedHosts
|
|
4746
4766
|
}, {
|
|
4747
4767
|
key: e.shouldRenderVariants.toString()
|
|
4748
|
-
}), null, 16, ["nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4768
|
+
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4749
4769
|
], 64);
|
|
4750
4770
|
}
|
|
4751
|
-
const
|
|
4771
|
+
const vs = /* @__PURE__ */ b(ys, [["render", ks]]), Ss = async ({
|
|
4752
4772
|
builderContextValue: e,
|
|
4753
4773
|
symbol: t
|
|
4754
4774
|
}) => {
|
|
@@ -4766,9 +4786,9 @@ const yi = /* @__PURE__ */ b(bi, [["render", gi]]), ki = async ({
|
|
|
4766
4786
|
}).catch((n) => {
|
|
4767
4787
|
x.error("Could not fetch symbol content: ", n);
|
|
4768
4788
|
});
|
|
4769
|
-
},
|
|
4789
|
+
}, Cs = f({
|
|
4770
4790
|
name: "builder-symbol",
|
|
4771
|
-
components: { ContentVariants:
|
|
4791
|
+
components: { ContentVariants: vs, DynamicDiv: G },
|
|
4772
4792
|
props: [
|
|
4773
4793
|
"symbol",
|
|
4774
4794
|
"attributes",
|
|
@@ -4817,7 +4837,7 @@ const yi = /* @__PURE__ */ b(bi, [["render", gi]]), ki = async ({
|
|
|
4817
4837
|
},
|
|
4818
4838
|
methods: {
|
|
4819
4839
|
setContent() {
|
|
4820
|
-
this.contentToUse ||
|
|
4840
|
+
this.contentToUse || Ss({
|
|
4821
4841
|
symbol: this.symbol,
|
|
4822
4842
|
builderContextValue: this.builderContext
|
|
4823
4843
|
}).then((e) => {
|
|
@@ -4826,11 +4846,11 @@ const yi = /* @__PURE__ */ b(bi, [["render", gi]]), ki = async ({
|
|
|
4826
4846
|
}
|
|
4827
4847
|
}
|
|
4828
4848
|
});
|
|
4829
|
-
function
|
|
4849
|
+
function Ts(e, t, n, o, r, i) {
|
|
4830
4850
|
var l, a, u, h, c;
|
|
4831
|
-
const
|
|
4851
|
+
const s = v("ContentVariants");
|
|
4832
4852
|
return d(), m("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4833
|
-
I(
|
|
4853
|
+
I(s, {
|
|
4834
4854
|
nonce: e.builderContext.nonce,
|
|
4835
4855
|
isNestedRender: !0,
|
|
4836
4856
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -4854,41 +4874,41 @@ function Si(e, t, n, o, r, s) {
|
|
|
4854
4874
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
4855
4875
|
], 16);
|
|
4856
4876
|
}
|
|
4857
|
-
const
|
|
4877
|
+
const ws = /* @__PURE__ */ b(Cs, [["render", Ts]]);
|
|
4858
4878
|
export {
|
|
4859
|
-
|
|
4879
|
+
Ws as A,
|
|
4860
4880
|
fe as B,
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4881
|
+
eo as C,
|
|
4882
|
+
oo as F,
|
|
4883
|
+
po as I,
|
|
4884
|
+
fo as S,
|
|
4885
|
+
Mo as T,
|
|
4886
|
+
Mr as V,
|
|
4867
4887
|
be as _,
|
|
4868
|
-
|
|
4888
|
+
Ns as a,
|
|
4869
4889
|
he as b,
|
|
4870
|
-
|
|
4890
|
+
As as c,
|
|
4871
4891
|
b as d,
|
|
4872
4892
|
J as e,
|
|
4873
|
-
|
|
4874
|
-
|
|
4893
|
+
Vs as f,
|
|
4894
|
+
Xn as g,
|
|
4875
4895
|
Q as h,
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4896
|
+
se as i,
|
|
4897
|
+
wt as j,
|
|
4898
|
+
ws as k,
|
|
4879
4899
|
L as l,
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4900
|
+
vs as m,
|
|
4901
|
+
Dt as n,
|
|
4902
|
+
Lt as o,
|
|
4883
4903
|
Ae as p,
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4904
|
+
Bs as q,
|
|
4905
|
+
Ht as r,
|
|
4906
|
+
Es as s,
|
|
4907
|
+
Ps as t,
|
|
4908
|
+
xs as u,
|
|
4909
|
+
Sn as v,
|
|
4910
|
+
hs as w,
|
|
4911
|
+
Cn as x,
|
|
4892
4912
|
me as y,
|
|
4893
|
-
|
|
4913
|
+
Rs as z
|
|
4894
4914
|
};
|