@builder.io/sdk-vue 3.0.1 → 3.0.3
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-mEQ0ZDTH.cjs → awaiter-BOE3oe-2.cjs} +1 -1
- package/lib/browser/{awaiter-W9NCtbGd.js → awaiter-fYJyWUKW.js} +1 -1
- package/lib/browser/{block-styles-iE_AMMov.cjs → block-styles-Ac2dTxc4.cjs} +1 -1
- package/lib/browser/{block-styles-YR66YUMW.js → block-styles-AkwFTcbO.js} +1 -1
- package/lib/browser/{block-wrapper-uCoTCnWV.cjs → block-wrapper-84VD_jLa.cjs} +1 -1
- package/lib/browser/{block-wrapper-zPfAxV1K.js → block-wrapper-fpDCjlfD.js} +3 -3
- package/lib/browser/blocks/text/text.vue.d.ts +1 -6
- package/lib/browser/{component-ref-KQElTQuz.cjs → component-ref-2i6kEvP5.cjs} +1 -1
- package/lib/browser/{component-ref-1sJWCSnM.js → component-ref-d8yXMilU.js} +3 -3
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +2 -2
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-block-component-options.d.ts +2 -1
- package/lib/browser/functions/get-processed-block.d.ts +1 -6
- package/lib/browser/{get-block-properties-28x9iJbv.cjs → get-block-properties-YOz_GV3T.cjs} +1 -1
- package/lib/browser/{get-block-properties-6nHJC7Bl.js → get-block-properties-cnhoBeZq.js} +1 -1
- package/lib/browser/helpers/flatten.d.ts +6 -0
- package/lib/browser/{index-96lMP92Z.js → index-OUDodTH_.js} +809 -780
- package/lib/browser/index-Tmp8hGxZ.cjs +166 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-alcf4ekM.cjs → repeated-block-2vOYpXEb.cjs} +1 -1
- package/lib/browser/{repeated-block-zdJEPXeM.js → repeated-block-YC73mMjD.js} +2 -2
- package/lib/browser/server-index.d.ts +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/browser/types/builder-content.d.ts +1 -0
- package/lib/browser/types/input.d.ts +10 -0
- package/lib/edge/{awaiter-AmWo0klS.js → awaiter-45RAZ4vr.js} +1 -1
- package/lib/edge/{awaiter-b7-kYxAd.cjs → awaiter-7y9vIvgM.cjs} +1 -1
- package/lib/edge/{block-styles-ZxATOs5j.cjs → block-styles-4oT6_tNs.cjs} +1 -1
- package/lib/edge/{block-styles-p5UoOXs6.js → block-styles-S0GMFR-E.js} +1 -1
- package/lib/edge/{block-wrapper-7wzSncci.js → block-wrapper-u1TP9krq.js} +3 -3
- package/lib/edge/{block-wrapper-M-L3jacN.cjs → block-wrapper-z2zQZEH5.cjs} +1 -1
- package/lib/edge/blocks/text/text.vue.d.ts +1 -6
- package/lib/edge/{component-ref-fsAjiPgJ.js → component-ref-egpaOyfe.js} +3 -3
- package/lib/edge/{component-ref-ObIZSCWX.cjs → component-ref-fINDKyFv.cjs} +1 -1
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +2 -2
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-block-component-options.d.ts +2 -1
- package/lib/edge/functions/get-processed-block.d.ts +1 -6
- package/lib/edge/{get-block-properties-BwEXZmo9.cjs → get-block-properties-7UcxpKgh.cjs} +1 -1
- package/lib/edge/{get-block-properties-pBTZazws.js → get-block-properties-O5TPRWRT.js} +1 -1
- package/lib/edge/helpers/flatten.d.ts +6 -0
- package/lib/edge/{index-8E5G8ahg.js → index-F3mzsZ0p.js} +887 -860
- package/lib/edge/index-gzbOXU-Q.cjs +184 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-kbuQgIKA.js → repeated-block-NSni9pku.js} +2 -2
- package/lib/{node/repeated-block-WDR29-D_.cjs → edge/repeated-block-Wu6fB8nR.cjs} +1 -1
- package/lib/edge/server-index.d.ts +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/edge/types/builder-content.d.ts +1 -0
- package/lib/edge/types/input.d.ts +10 -0
- package/lib/node/{awaiter-mRA2J5Tn.js → awaiter-Q1bT-TPr.js} +1 -1
- package/lib/node/{awaiter--VUu-0lf.cjs → awaiter-TAyS4fk5.cjs} +1 -1
- package/lib/node/{block-styles-m8QMKLNf.cjs → block-styles-A8-g46IJ.cjs} +1 -1
- package/lib/node/{block-styles-mnvxO4c9.js → block-styles-r18EdLf4.js} +1 -1
- package/lib/node/{block-wrapper-nmivaReB.cjs → block-wrapper-T0V1DNf3.cjs} +1 -1
- package/lib/node/{block-wrapper-TDtFNLpV.js → block-wrapper-XHFApIKd.js} +3 -3
- package/lib/node/blocks/text/text.vue.d.ts +1 -6
- package/lib/node/{component-ref-G822HD6s.cjs → component-ref-hUDJjksy.cjs} +1 -1
- package/lib/node/{component-ref-nu3ur2Zz.js → component-ref-s6TdgswK.js} +3 -3
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +2 -2
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-block-component-options.d.ts +2 -1
- package/lib/node/functions/get-processed-block.d.ts +1 -6
- package/lib/node/{get-block-properties-2BCkBOZG.js → get-block-properties-Eoo-6vv-.js} +1 -1
- package/lib/node/{get-block-properties-fBgYSGfR.cjs → get-block-properties-ZK8tFurn.cjs} +1 -1
- package/lib/node/helpers/flatten.d.ts +6 -0
- package/lib/node/{index-dZfvXbI_.js → index-Ys2hEVva.js} +655 -626
- package/lib/node/index-upwn_dSB.cjs +166 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/{edge/repeated-block-G7v60Rfo.cjs → node/repeated-block-5Nyck_fi.cjs} +1 -1
- package/lib/node/{repeated-block-XwjQQ8Do.js → repeated-block-9G20Z3_5.js} +2 -2
- package/lib/node/server-index.d.ts +1 -1
- package/lib/node/style.css +1 -1
- package/lib/node/types/builder-content.d.ts +1 -0
- package/lib/node/types/input.d.ts +10 -0
- package/package.json +1 -1
- package/lib/browser/index-vh-1AohY.cjs +0 -166
- package/lib/edge/index-8CRS7AwO.cjs +0 -184
- package/lib/node/index-SmPbrgmX.cjs +0 -166
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as g, openBlock as c, createElementBlock as p, Fragment as T, createBlock as y, resolveDynamicComponent as
|
|
2
|
+
import { defineComponent as g, openBlock as c, createElementBlock as p, Fragment as T, createBlock as y, resolveDynamicComponent as K, mergeProps as C, toHandlers as A, withCtx as N, renderSlot as x, resolveComponent as k, createTextVNode as St, toDisplayString as ne, defineAsyncComponent as j, createVNode as P, renderList as V, createCommentVNode as v, h as Ne, createElementVNode as z, normalizeStyle as F, normalizeClass as G, markRaw as Ct } from "vue";
|
|
3
3
|
const wt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Tt = (e) => typeof e == "string" && wt.has(e.toLowerCase());
|
|
4
4
|
function W(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 s = n ? r.replace(t, "") : r;
|
|
10
|
+
o[s] = e[r];
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
@@ -23,22 +23,22 @@ const It = g({
|
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function $t(e, t, n, o, r,
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (c(), y(
|
|
28
|
-
typeof e.TagName == "string" ? (c(), y(
|
|
26
|
+
function $t(e, t, n, o, r, s) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (c(), y(K(e.TagName), C({ key: 1 }, e.attributes, A(e.actionAttributes)), null, 16)) : (c(), p(T, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (c(), y(K(e.TagName), C({ key: 0 }, e.attributes, A(e.actionAttributes)), {
|
|
29
29
|
default: N(() => [
|
|
30
|
-
|
|
30
|
+
x(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (c(), y(
|
|
33
|
+
}, 16)) : (c(), y(K(e.TagName), C({ key: 1 }, e.attributes, A(e.actionAttributes)), {
|
|
34
34
|
default: N(() => [
|
|
35
|
-
|
|
35
|
+
x(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const me = /* @__PURE__ */ b(It, [["render", $t]]),
|
|
41
|
+
const me = /* @__PURE__ */ b(It, [["render", $t]]), Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
default: me
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), R = "vue", _ = () => {
|
|
@@ -83,9 +83,9 @@ const me = /* @__PURE__ */ b(It, [["render", $t]]), qi = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function Et(e, t, n, o, r,
|
|
87
|
-
const
|
|
88
|
-
return c(), y(
|
|
86
|
+
function Et(e, t, n, o, r, s) {
|
|
87
|
+
const i = k("DynamicRenderer");
|
|
88
|
+
return c(), y(i, {
|
|
89
89
|
attributes: e.attrs(),
|
|
90
90
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
@@ -114,56 +114,42 @@ const Pt = /* @__PURE__ */ b(Rt, [["render", Et]]), Bt = Symbol(), ce = {
|
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
116
|
key: Bt
|
|
117
|
-
},
|
|
117
|
+
}, At = Symbol(), Oe = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
|
-
key:
|
|
120
|
-
}
|
|
121
|
-
function At(e) {
|
|
122
|
-
var t;
|
|
123
|
-
return {
|
|
124
|
-
...(t = e.component) == null ? void 0 : t.options,
|
|
125
|
-
...e.options
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
function Vt(e, ...t) {
|
|
129
|
-
const n = Object.assign({}, e);
|
|
130
|
-
for (const o of t)
|
|
131
|
-
delete n[o];
|
|
132
|
-
return n;
|
|
133
|
-
}
|
|
134
|
-
const Q = "[Builder.io]: ", B = {
|
|
119
|
+
key: At
|
|
120
|
+
}, Q = "[Builder.io]: ", B = {
|
|
135
121
|
log: (...e) => console.log(Q, ...e),
|
|
136
122
|
error: (...e) => console.error(Q, ...e),
|
|
137
123
|
warn: (...e) => console.warn(Q, ...e),
|
|
138
124
|
debug: (...e) => console.debug(Q, ...e)
|
|
139
|
-
},
|
|
140
|
-
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r,
|
|
125
|
+
}, Fe = (e, t, n) => {
|
|
126
|
+
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
|
|
141
127
|
return o === void 0 || o === e ? n : o;
|
|
142
128
|
};
|
|
143
|
-
function
|
|
129
|
+
function I() {
|
|
144
130
|
return typeof window < "u" && typeof document < "u";
|
|
145
131
|
}
|
|
146
|
-
const
|
|
132
|
+
const xt = (e) => {
|
|
147
133
|
const t = {};
|
|
148
134
|
return e.forEach((n, o) => {
|
|
149
135
|
t[o] = n;
|
|
150
136
|
}), t;
|
|
151
|
-
},
|
|
152
|
-
function
|
|
153
|
-
return
|
|
137
|
+
}, De = (e) => e instanceof URLSearchParams ? xt(e) : e, Le = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
138
|
+
function Vt() {
|
|
139
|
+
return I() && window.self !== window.top;
|
|
154
140
|
}
|
|
155
141
|
function E(e) {
|
|
156
|
-
return
|
|
157
|
-
|
|
142
|
+
return Vt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
143
|
+
Le(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
158
144
|
}
|
|
159
|
-
const
|
|
160
|
-
if (
|
|
145
|
+
const Wt = () => {
|
|
146
|
+
if (I()) {
|
|
161
147
|
const e = new URL(location.href);
|
|
162
148
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
163
149
|
} else
|
|
164
150
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
165
|
-
},
|
|
166
|
-
const e =
|
|
151
|
+
}, Nt = () => typeof navigator == "object" && navigator.userAgent || "", Ue = () => {
|
|
152
|
+
const e = Nt(), t = {
|
|
167
153
|
Android() {
|
|
168
154
|
return e.match(/Android/i);
|
|
169
155
|
},
|
|
@@ -182,13 +168,13 @@ const Ot = () => {
|
|
|
182
168
|
any() {
|
|
183
169
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || R === "reactNative";
|
|
184
170
|
}
|
|
185
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
171
|
+
}, n = e.match(/Tablet|iPad/i), o = Wt();
|
|
186
172
|
return {
|
|
187
173
|
urlPath: o == null ? void 0 : o.pathname,
|
|
188
174
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
189
175
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
190
176
|
};
|
|
191
|
-
},
|
|
177
|
+
}, Ot = ({
|
|
192
178
|
builder: e,
|
|
193
179
|
context: t,
|
|
194
180
|
event: n,
|
|
@@ -200,15 +186,15 @@ const Ot = () => {
|
|
|
200
186
|
builder: e,
|
|
201
187
|
context: t,
|
|
202
188
|
event: n
|
|
203
|
-
}),
|
|
189
|
+
}), Ft = () => ({
|
|
204
190
|
isEditing: E(),
|
|
205
|
-
isBrowser:
|
|
206
|
-
isServer:
|
|
207
|
-
getUserAttributes: () =>
|
|
208
|
-
}),
|
|
191
|
+
isBrowser: I(),
|
|
192
|
+
isServer: !I(),
|
|
193
|
+
getUserAttributes: () => Ue()
|
|
194
|
+
}), Dt = (e, {
|
|
209
195
|
isExpression: t = !0
|
|
210
196
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
211
|
-
function
|
|
197
|
+
function Me({
|
|
212
198
|
rootState: e,
|
|
213
199
|
localState: t,
|
|
214
200
|
rootSetState: n
|
|
@@ -217,91 +203,91 @@ function Ue({
|
|
|
217
203
|
get: (o, r) => {
|
|
218
204
|
if (t && r in t)
|
|
219
205
|
return t[r];
|
|
220
|
-
const
|
|
221
|
-
return typeof
|
|
222
|
-
rootState:
|
|
206
|
+
const s = o[r];
|
|
207
|
+
return typeof s == "object" && s !== null ? Me({
|
|
208
|
+
rootState: s,
|
|
223
209
|
localState: void 0,
|
|
224
|
-
rootSetState: n ? (
|
|
225
|
-
o[r] =
|
|
210
|
+
rootSetState: n ? (i) => {
|
|
211
|
+
o[r] = i, n(o);
|
|
226
212
|
} : void 0
|
|
227
|
-
}) :
|
|
213
|
+
}) : s;
|
|
228
214
|
},
|
|
229
|
-
set: (o, r,
|
|
215
|
+
set: (o, r, s) => {
|
|
230
216
|
if (t && r in t)
|
|
231
217
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
232
|
-
return o[r] =
|
|
218
|
+
return o[r] = s, n == null || n(o), !0;
|
|
233
219
|
}
|
|
234
220
|
});
|
|
235
221
|
}
|
|
236
|
-
const
|
|
222
|
+
const Ie = ({
|
|
237
223
|
code: e,
|
|
238
224
|
builder: t,
|
|
239
225
|
context: n,
|
|
240
226
|
event: o,
|
|
241
227
|
localState: r,
|
|
242
|
-
rootSetState:
|
|
243
|
-
rootState:
|
|
228
|
+
rootSetState: s,
|
|
229
|
+
rootState: i
|
|
244
230
|
}) => {
|
|
245
|
-
const l =
|
|
231
|
+
const l = Ot({
|
|
246
232
|
builder: t,
|
|
247
233
|
context: n,
|
|
248
234
|
event: o,
|
|
249
|
-
state:
|
|
250
|
-
rootState:
|
|
235
|
+
state: Me({
|
|
236
|
+
rootState: i,
|
|
251
237
|
localState: r,
|
|
252
|
-
rootSetState:
|
|
238
|
+
rootSetState: s
|
|
253
239
|
})
|
|
254
240
|
});
|
|
255
241
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
256
242
|
}, D = (e) => e != null;
|
|
257
|
-
function
|
|
243
|
+
function Lt() {
|
|
258
244
|
var e;
|
|
259
245
|
return typeof process < "u" && D((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
260
246
|
}
|
|
261
|
-
const
|
|
247
|
+
const Ut = ({
|
|
262
248
|
shouldLogWarning: e
|
|
263
249
|
}) => {
|
|
264
250
|
var r;
|
|
265
|
-
if (!
|
|
251
|
+
if (!Lt())
|
|
266
252
|
return !1;
|
|
267
253
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
268
254
|
return t && n && !o ? (e && B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
269
|
-
},
|
|
255
|
+
}, Mt = (e) => (I() || Ut({
|
|
270
256
|
shouldLogWarning: !0
|
|
271
|
-
}),
|
|
272
|
-
var t, n, o, r,
|
|
273
|
-
return ((o = (n = (t =
|
|
257
|
+
}), Ie(e)), Ht = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, jt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Kt = (e) => {
|
|
258
|
+
var t, n, o, r, s, i;
|
|
259
|
+
return ((o = (n = (t = Ht.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((i = (s = (r = jt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : s.getPath) == null ? void 0 : i.slice(1));
|
|
274
260
|
};
|
|
275
|
-
function
|
|
261
|
+
function Y({
|
|
276
262
|
code: e,
|
|
277
263
|
context: t,
|
|
278
264
|
localState: n,
|
|
279
265
|
rootState: o,
|
|
280
266
|
rootSetState: r,
|
|
281
|
-
event:
|
|
282
|
-
isExpression:
|
|
267
|
+
event: s,
|
|
268
|
+
isExpression: i = !0
|
|
283
269
|
}) {
|
|
284
270
|
if (e.trim() === "")
|
|
285
271
|
return;
|
|
286
|
-
const l =
|
|
272
|
+
const l = Kt(e.trim());
|
|
287
273
|
if (l)
|
|
288
|
-
return
|
|
274
|
+
return Fe({
|
|
289
275
|
...o,
|
|
290
276
|
...n
|
|
291
277
|
}, l);
|
|
292
278
|
const a = {
|
|
293
|
-
code:
|
|
294
|
-
isExpression:
|
|
279
|
+
code: Dt(e, {
|
|
280
|
+
isExpression: i
|
|
295
281
|
}),
|
|
296
|
-
builder:
|
|
282
|
+
builder: Ft(),
|
|
297
283
|
context: t,
|
|
298
|
-
event:
|
|
284
|
+
event: s,
|
|
299
285
|
rootSetState: r,
|
|
300
286
|
rootState: o,
|
|
301
287
|
localState: n
|
|
302
288
|
};
|
|
303
289
|
try {
|
|
304
|
-
return
|
|
290
|
+
return Mt(a);
|
|
305
291
|
} catch (u) {
|
|
306
292
|
B.error("Failed code evaluation: " + u.message, {
|
|
307
293
|
code: e
|
|
@@ -309,51 +295,79 @@ function J({
|
|
|
309
295
|
return;
|
|
310
296
|
}
|
|
311
297
|
}
|
|
298
|
+
function qt(e, t) {
|
|
299
|
+
var n;
|
|
300
|
+
return {
|
|
301
|
+
...(n = e.component) == null ? void 0 : n.options,
|
|
302
|
+
...e.options,
|
|
303
|
+
...zt(e, t)
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
const zt = (e, t) => {
|
|
307
|
+
var n, o;
|
|
308
|
+
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
309
|
+
return {
|
|
310
|
+
...e.component.options,
|
|
311
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, s) => Y({
|
|
312
|
+
code: s,
|
|
313
|
+
context: t,
|
|
314
|
+
localState: t.localState,
|
|
315
|
+
rootState: t.rootState,
|
|
316
|
+
rootSetState: t.rootSetState
|
|
317
|
+
}))
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
function Gt(e, ...t) {
|
|
321
|
+
const n = Object.assign({}, e);
|
|
322
|
+
for (const o of t)
|
|
323
|
+
delete n[o];
|
|
324
|
+
return n;
|
|
325
|
+
}
|
|
312
326
|
function ee(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
313
327
|
if (e == null || typeof e != "object") {
|
|
314
|
-
t(e, (
|
|
315
|
-
n !== null && o !== null && (n[o] =
|
|
328
|
+
t(e, (s) => {
|
|
329
|
+
n !== null && o !== null && (n[o] = s);
|
|
316
330
|
});
|
|
317
331
|
return;
|
|
318
332
|
}
|
|
319
|
-
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((
|
|
320
|
-
t(i, (a) => {
|
|
321
|
-
e[s] = a;
|
|
322
|
-
}), ee(i, t, e, s, r);
|
|
323
|
-
}) : Object.entries(e).forEach(([i, s]) => {
|
|
333
|
+
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((s, i) => {
|
|
324
334
|
t(s, (a) => {
|
|
325
335
|
e[i] = a;
|
|
326
336
|
}), ee(s, t, e, i, r);
|
|
337
|
+
}) : Object.entries(e).forEach(([s, i]) => {
|
|
338
|
+
t(i, (a) => {
|
|
339
|
+
e[s] = a;
|
|
340
|
+
}), ee(i, t, e, s, r);
|
|
327
341
|
}));
|
|
328
342
|
}
|
|
329
|
-
function
|
|
343
|
+
function He(e) {
|
|
330
344
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
331
345
|
}
|
|
332
|
-
function
|
|
346
|
+
function Jt(e) {
|
|
333
347
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
334
348
|
return !1;
|
|
335
349
|
let t = !1;
|
|
336
350
|
return ee(e, (n) => {
|
|
337
|
-
if (
|
|
351
|
+
if (He(n)) {
|
|
338
352
|
t = !0;
|
|
339
353
|
return;
|
|
340
354
|
}
|
|
341
355
|
}), t;
|
|
342
356
|
}
|
|
343
|
-
function
|
|
357
|
+
function Yt(e, t) {
|
|
344
358
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ee(e, (n, o) => {
|
|
345
|
-
|
|
359
|
+
He(n) && o(n[t] ?? void 0);
|
|
346
360
|
}), e);
|
|
347
361
|
}
|
|
348
|
-
function
|
|
362
|
+
function Xt(e, t) {
|
|
349
363
|
var n, o;
|
|
350
|
-
return (n = e.component) != null && n.options &&
|
|
364
|
+
return (n = e.component) != null && n.options && Jt((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Yt(e.component.options, t ?? "Default")), e;
|
|
351
365
|
}
|
|
352
|
-
const he = (e) => JSON.parse(JSON.stringify(e)),
|
|
366
|
+
const he = (e) => JSON.parse(JSON.stringify(e)), je = (e, t, n) => {
|
|
353
367
|
if (Object(e) !== e)
|
|
354
368
|
return e;
|
|
355
369
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
356
|
-
return o.slice(0, -1).reduce((r,
|
|
370
|
+
return o.slice(0, -1).reduce((r, s, i) => Object(r[s]) === r[s] ? r[s] : r[s] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
357
371
|
};
|
|
358
372
|
function de(e) {
|
|
359
373
|
if (e === null || typeof e != "object")
|
|
@@ -367,8 +381,8 @@ function de(e) {
|
|
|
367
381
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = de(e[n]));
|
|
368
382
|
return t;
|
|
369
383
|
}
|
|
370
|
-
const
|
|
371
|
-
if (
|
|
384
|
+
const Qt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Zt = (e) => {
|
|
385
|
+
if (Qt) {
|
|
372
386
|
const t = he(e);
|
|
373
387
|
return {
|
|
374
388
|
...t,
|
|
@@ -380,7 +394,7 @@ const Xt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Qt = (e) =
|
|
|
380
394
|
}
|
|
381
395
|
};
|
|
382
396
|
} else {
|
|
383
|
-
const t = de(
|
|
397
|
+
const t = de(Gt(e, "children", "meta"));
|
|
384
398
|
return {
|
|
385
399
|
...t,
|
|
386
400
|
properties: {
|
|
@@ -393,7 +407,7 @@ const Xt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Qt = (e) =
|
|
|
393
407
|
meta: e.meta
|
|
394
408
|
};
|
|
395
409
|
}
|
|
396
|
-
},
|
|
410
|
+
}, _t = ({
|
|
397
411
|
block: e,
|
|
398
412
|
context: t,
|
|
399
413
|
localState: n,
|
|
@@ -402,55 +416,54 @@ const Xt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Qt = (e) =
|
|
|
402
416
|
}) => {
|
|
403
417
|
if (!e.bindings)
|
|
404
418
|
return e;
|
|
405
|
-
const
|
|
406
|
-
for (const
|
|
407
|
-
const l = e.bindings[
|
|
419
|
+
const s = Zt(e);
|
|
420
|
+
for (const i in e.bindings) {
|
|
421
|
+
const l = e.bindings[i], a = Y({
|
|
408
422
|
code: l,
|
|
409
423
|
localState: n,
|
|
410
424
|
rootState: o,
|
|
411
425
|
rootSetState: r,
|
|
412
426
|
context: t
|
|
413
427
|
});
|
|
414
|
-
|
|
428
|
+
je(s, i, a);
|
|
415
429
|
}
|
|
416
|
-
return
|
|
430
|
+
return s;
|
|
417
431
|
};
|
|
418
|
-
function
|
|
432
|
+
function en({
|
|
419
433
|
block: e,
|
|
420
434
|
context: t,
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
rootSetState: i
|
|
435
|
+
localState: n,
|
|
436
|
+
rootState: o,
|
|
437
|
+
rootSetState: r
|
|
425
438
|
}) {
|
|
426
|
-
let s =
|
|
427
|
-
return s = s,
|
|
439
|
+
let s = Xt(e, o.locale);
|
|
440
|
+
return s = s, _t({
|
|
428
441
|
block: s,
|
|
429
|
-
localState:
|
|
430
|
-
rootState:
|
|
431
|
-
rootSetState:
|
|
442
|
+
localState: n,
|
|
443
|
+
rootState: o,
|
|
444
|
+
rootSetState: r,
|
|
432
445
|
context: t
|
|
433
|
-
})
|
|
446
|
+
});
|
|
434
447
|
}
|
|
435
|
-
function
|
|
436
|
-
const t = e || (
|
|
437
|
-
return t ?
|
|
448
|
+
function Ke(e) {
|
|
449
|
+
const t = e || (I() ? window.location.search : void 0);
|
|
450
|
+
return t ? Le(t).indexOf("builder.preview=") !== -1 : !1;
|
|
438
451
|
}
|
|
439
|
-
const
|
|
452
|
+
const tn = (e) => ({
|
|
440
453
|
type: "builder.registerComponent",
|
|
441
454
|
data: te(e)
|
|
442
|
-
}),
|
|
455
|
+
}), nn = (e) => {
|
|
443
456
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
444
457
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
445
458
|
};
|
|
446
459
|
function te(e) {
|
|
447
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
460
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? nn(n) : n));
|
|
448
461
|
}
|
|
449
|
-
const
|
|
450
|
-
function
|
|
462
|
+
const $e = {};
|
|
463
|
+
function on(e, t) {
|
|
451
464
|
e === "plugin" && (t = te(t));
|
|
452
|
-
let n =
|
|
453
|
-
if (n || (n =
|
|
465
|
+
let n = $e[e];
|
|
466
|
+
if (n || (n = $e[e] = []), n.push(t), I()) {
|
|
454
467
|
const o = {
|
|
455
468
|
type: "builder.register",
|
|
456
469
|
data: {
|
|
@@ -465,42 +478,42 @@ function nn(e, t) {
|
|
|
465
478
|
}
|
|
466
479
|
}
|
|
467
480
|
}
|
|
468
|
-
const
|
|
469
|
-
function
|
|
470
|
-
if (
|
|
471
|
-
Object.assign(
|
|
481
|
+
const Re = {};
|
|
482
|
+
function Xs(e) {
|
|
483
|
+
if (I()) {
|
|
484
|
+
Object.assign(Re, e);
|
|
472
485
|
const t = {
|
|
473
486
|
type: "builder.settingsChange",
|
|
474
|
-
data:
|
|
487
|
+
data: Re
|
|
475
488
|
};
|
|
476
489
|
parent.postMessage(t, "*");
|
|
477
490
|
}
|
|
478
491
|
}
|
|
479
|
-
const
|
|
492
|
+
const Ee = "builder.", rn = "options.", qe = (e) => {
|
|
480
493
|
if (!e)
|
|
481
494
|
return {};
|
|
482
|
-
const t =
|
|
495
|
+
const t = De(e), n = {};
|
|
483
496
|
return Object.keys(t).forEach((o) => {
|
|
484
|
-
if (o.startsWith(
|
|
485
|
-
const r = o.replace(
|
|
497
|
+
if (o.startsWith(Ee)) {
|
|
498
|
+
const r = o.replace(Ee, "").replace(rn, "");
|
|
486
499
|
n[r] = t[o];
|
|
487
500
|
}
|
|
488
501
|
}), n;
|
|
489
|
-
},
|
|
490
|
-
if (
|
|
502
|
+
}, sn = () => {
|
|
503
|
+
if (!I())
|
|
491
504
|
return {};
|
|
492
505
|
const e = new URLSearchParams(window.location.search);
|
|
493
|
-
return
|
|
494
|
-
},
|
|
506
|
+
return qe(e);
|
|
507
|
+
}, ze = "3.0.3", Ge = () => ({
|
|
495
508
|
"X-Builder-SDK": R,
|
|
496
509
|
"X-Builder-SDK-GEN": "2",
|
|
497
|
-
"X-Builder-SDK-Version":
|
|
498
|
-
}),
|
|
510
|
+
"X-Builder-SDK-Version": ze
|
|
511
|
+
}), an = (e) => {
|
|
499
512
|
if (e === "localhost" || e === "127.0.0.1")
|
|
500
513
|
return e;
|
|
501
514
|
const t = e.split(".");
|
|
502
515
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
503
|
-
},
|
|
516
|
+
}, Je = ({
|
|
504
517
|
name: e,
|
|
505
518
|
canTrack: t
|
|
506
519
|
}) => {
|
|
@@ -511,14 +524,14 @@ const Re = "builder.", on = "options.", Ke = (e) => {
|
|
|
511
524
|
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
512
525
|
return;
|
|
513
526
|
}
|
|
514
|
-
},
|
|
527
|
+
}, Ye = async (e) => Je(e), ln = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), cn = [["secure", ""], ["SameSite", "None"]], dn = ({
|
|
515
528
|
name: e,
|
|
516
529
|
value: t,
|
|
517
530
|
expires: n
|
|
518
531
|
}) => {
|
|
519
|
-
const r = (
|
|
520
|
-
return
|
|
521
|
-
},
|
|
532
|
+
const r = (I() ? location.protocol === "https:" : !0) ? cn : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", an(window.location.hostname)], ...r];
|
|
533
|
+
return ln(i);
|
|
534
|
+
}, Xe = async ({
|
|
522
535
|
name: e,
|
|
523
536
|
value: t,
|
|
524
537
|
expires: n,
|
|
@@ -527,7 +540,7 @@ const Re = "builder.", on = "options.", Ke = (e) => {
|
|
|
527
540
|
try {
|
|
528
541
|
if (!o)
|
|
529
542
|
return;
|
|
530
|
-
const r =
|
|
543
|
+
const r = dn({
|
|
531
544
|
name: e,
|
|
532
545
|
value: t,
|
|
533
546
|
expires: n
|
|
@@ -537,85 +550,85 @@ const Re = "builder.", on = "options.", Ke = (e) => {
|
|
|
537
550
|
B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
538
551
|
}
|
|
539
552
|
};
|
|
540
|
-
function
|
|
553
|
+
function un() {
|
|
541
554
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
542
555
|
const t = Math.random() * 16 | 0;
|
|
543
556
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
544
557
|
});
|
|
545
558
|
}
|
|
546
|
-
function
|
|
547
|
-
return
|
|
559
|
+
function Qe() {
|
|
560
|
+
return un().replace(/-/g, "");
|
|
548
561
|
}
|
|
549
|
-
const
|
|
562
|
+
const Ze = "builderSessionId", pn = async ({
|
|
550
563
|
canTrack: e
|
|
551
564
|
}) => {
|
|
552
565
|
if (!e)
|
|
553
566
|
return;
|
|
554
|
-
const t = await
|
|
555
|
-
name:
|
|
567
|
+
const t = await Ye({
|
|
568
|
+
name: Ze,
|
|
556
569
|
canTrack: e
|
|
557
570
|
});
|
|
558
571
|
if (D(t))
|
|
559
572
|
return t;
|
|
560
573
|
{
|
|
561
|
-
const n =
|
|
562
|
-
return
|
|
574
|
+
const n = mn();
|
|
575
|
+
return hn({
|
|
563
576
|
id: n,
|
|
564
577
|
canTrack: e
|
|
565
578
|
}), n;
|
|
566
579
|
}
|
|
567
|
-
},
|
|
580
|
+
}, mn = () => Qe(), hn = ({
|
|
568
581
|
id: e,
|
|
569
582
|
canTrack: t
|
|
570
|
-
}) =>
|
|
571
|
-
name:
|
|
583
|
+
}) => Xe({
|
|
584
|
+
name: Ze,
|
|
572
585
|
value: e,
|
|
573
586
|
canTrack: t
|
|
574
|
-
}),
|
|
587
|
+
}), _e = () => I() && typeof localStorage < "u" ? localStorage : void 0, fn = ({
|
|
575
588
|
key: e,
|
|
576
589
|
canTrack: t
|
|
577
590
|
}) => {
|
|
578
591
|
var n;
|
|
579
592
|
try {
|
|
580
|
-
return t ? (n =
|
|
593
|
+
return t ? (n = _e()) == null ? void 0 : n.getItem(e) : void 0;
|
|
581
594
|
} catch (o) {
|
|
582
595
|
console.debug("[LocalStorage] GET error: ", o);
|
|
583
596
|
return;
|
|
584
597
|
}
|
|
585
|
-
},
|
|
598
|
+
}, gn = ({
|
|
586
599
|
key: e,
|
|
587
600
|
canTrack: t,
|
|
588
601
|
value: n
|
|
589
602
|
}) => {
|
|
590
603
|
var o;
|
|
591
604
|
try {
|
|
592
|
-
t && ((o =
|
|
605
|
+
t && ((o = _e()) == null || o.setItem(e, n));
|
|
593
606
|
} catch (r) {
|
|
594
607
|
console.debug("[LocalStorage] SET error: ", r);
|
|
595
608
|
}
|
|
596
|
-
},
|
|
609
|
+
}, et = "builderVisitorId", bn = ({
|
|
597
610
|
canTrack: e
|
|
598
611
|
}) => {
|
|
599
612
|
if (!e)
|
|
600
613
|
return;
|
|
601
|
-
const t =
|
|
602
|
-
key:
|
|
614
|
+
const t = fn({
|
|
615
|
+
key: et,
|
|
603
616
|
canTrack: e
|
|
604
617
|
});
|
|
605
618
|
if (D(t))
|
|
606
619
|
return t;
|
|
607
620
|
{
|
|
608
|
-
const n =
|
|
609
|
-
return
|
|
621
|
+
const n = yn();
|
|
622
|
+
return kn({
|
|
610
623
|
id: n,
|
|
611
624
|
canTrack: e
|
|
612
625
|
}), n;
|
|
613
626
|
}
|
|
614
|
-
},
|
|
627
|
+
}, yn = () => Qe(), kn = ({
|
|
615
628
|
id: e,
|
|
616
629
|
canTrack: t
|
|
617
|
-
}) =>
|
|
618
|
-
key:
|
|
630
|
+
}) => gn({
|
|
631
|
+
key: et,
|
|
619
632
|
value: e,
|
|
620
633
|
canTrack: t
|
|
621
634
|
});
|
|
@@ -623,7 +636,7 @@ function fe(e) {
|
|
|
623
636
|
var t;
|
|
624
637
|
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
|
|
625
638
|
}
|
|
626
|
-
const
|
|
639
|
+
const vn = async ({
|
|
627
640
|
canTrack: e
|
|
628
641
|
}) => {
|
|
629
642
|
if (!e)
|
|
@@ -631,16 +644,16 @@ const kn = async ({
|
|
|
631
644
|
visitorId: void 0,
|
|
632
645
|
sessionId: void 0
|
|
633
646
|
};
|
|
634
|
-
const t = await
|
|
647
|
+
const t = await pn({
|
|
635
648
|
canTrack: e
|
|
636
|
-
}), n =
|
|
649
|
+
}), n = bn({
|
|
637
650
|
canTrack: e
|
|
638
651
|
});
|
|
639
652
|
return {
|
|
640
653
|
sessionId: t,
|
|
641
654
|
visitorId: n
|
|
642
655
|
};
|
|
643
|
-
},
|
|
656
|
+
}, Sn = async ({
|
|
644
657
|
type: e,
|
|
645
658
|
canTrack: t,
|
|
646
659
|
apiKey: n,
|
|
@@ -654,10 +667,10 @@ const kn = async ({
|
|
|
654
667
|
url: location.href,
|
|
655
668
|
...o
|
|
656
669
|
},
|
|
657
|
-
...await
|
|
670
|
+
...await vn({
|
|
658
671
|
canTrack: t
|
|
659
672
|
}),
|
|
660
|
-
userAttributes:
|
|
673
|
+
userAttributes: Ue(),
|
|
661
674
|
ownerId: n
|
|
662
675
|
}
|
|
663
676
|
});
|
|
@@ -669,35 +682,35 @@ async function ue({
|
|
|
669
682
|
B.error("Missing API key for track call. Please provide your API key.");
|
|
670
683
|
return;
|
|
671
684
|
}
|
|
672
|
-
if (!t.canTrack || E() || !(
|
|
685
|
+
if (!t.canTrack || E() || !(I() || R === "reactNative"))
|
|
673
686
|
return;
|
|
674
687
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
675
688
|
return fe(o), fetch(o, {
|
|
676
689
|
method: "POST",
|
|
677
690
|
body: JSON.stringify({
|
|
678
|
-
events: [await
|
|
691
|
+
events: [await Sn(t)]
|
|
679
692
|
}),
|
|
680
693
|
headers: {
|
|
681
694
|
"content-type": "application/json",
|
|
682
|
-
...
|
|
695
|
+
...Ge()
|
|
683
696
|
},
|
|
684
697
|
mode: "cors"
|
|
685
698
|
}).catch((r) => {
|
|
686
699
|
console.error("Failed to track: ", r);
|
|
687
700
|
});
|
|
688
701
|
}
|
|
689
|
-
const
|
|
702
|
+
const Qs = (e) => ue({
|
|
690
703
|
...e,
|
|
691
704
|
canTrack: !0
|
|
692
|
-
}),
|
|
693
|
-
function
|
|
705
|
+
}), Cn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
706
|
+
function tt(e, t) {
|
|
694
707
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
695
708
|
return !1;
|
|
696
709
|
const n = new URL(t.origin), o = n.hostname;
|
|
697
|
-
return (e ||
|
|
710
|
+
return (e || Cn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
698
711
|
}
|
|
699
|
-
const
|
|
700
|
-
|
|
712
|
+
const wn = () => {
|
|
713
|
+
on("insertMenu", {
|
|
701
714
|
name: "_default",
|
|
702
715
|
default: !0,
|
|
703
716
|
items: [{
|
|
@@ -719,14 +732,14 @@ const Cn = () => {
|
|
|
719
732
|
}]
|
|
720
733
|
});
|
|
721
734
|
};
|
|
722
|
-
let
|
|
723
|
-
const
|
|
735
|
+
let Pe = !1;
|
|
736
|
+
const nt = (e = {}) => {
|
|
724
737
|
var t, n;
|
|
725
|
-
|
|
738
|
+
Pe || (Pe = !0, I() && ((t = window.parent) == null || t.postMessage({
|
|
726
739
|
type: "builder.sdkInfo",
|
|
727
740
|
data: {
|
|
728
741
|
target: R,
|
|
729
|
-
version:
|
|
742
|
+
version: ze,
|
|
730
743
|
supportsPatchUpdates: !1,
|
|
731
744
|
// Supports builder-model="..." attribute which is needed to
|
|
732
745
|
// scope our '+ add block' button styling
|
|
@@ -739,8 +752,8 @@ const tt = (e = {}) => {
|
|
|
739
752
|
options: e
|
|
740
753
|
}
|
|
741
754
|
}, "*"), window.addEventListener("message", (o) => {
|
|
742
|
-
var
|
|
743
|
-
if (!
|
|
755
|
+
var s, i;
|
|
756
|
+
if (!tt(e.trustedHosts, o))
|
|
744
757
|
return;
|
|
745
758
|
const {
|
|
746
759
|
data: r
|
|
@@ -755,7 +768,7 @@ const tt = (e = {}) => {
|
|
|
755
768
|
} catch (f) {
|
|
756
769
|
d = f;
|
|
757
770
|
}
|
|
758
|
-
d ? (
|
|
771
|
+
d ? (s = window.parent) == null || s.postMessage({
|
|
759
772
|
type: "builder.evaluateError",
|
|
760
773
|
data: {
|
|
761
774
|
id: u,
|
|
@@ -770,7 +783,7 @@ const tt = (e = {}) => {
|
|
|
770
783
|
result: f
|
|
771
784
|
}
|
|
772
785
|
}, "*");
|
|
773
|
-
}).catch(console.error) : (
|
|
786
|
+
}).catch(console.error) : (i = window.parent) == null || i.postMessage({
|
|
774
787
|
type: "builder.evaluateResult",
|
|
775
788
|
data: {
|
|
776
789
|
result: h,
|
|
@@ -781,12 +794,12 @@ const tt = (e = {}) => {
|
|
|
781
794
|
}
|
|
782
795
|
}
|
|
783
796
|
})));
|
|
784
|
-
},
|
|
797
|
+
}, ot = ({
|
|
785
798
|
model: e,
|
|
786
799
|
trustedHosts: t,
|
|
787
800
|
callbacks: n
|
|
788
801
|
}) => (o) => {
|
|
789
|
-
if (!
|
|
802
|
+
if (!tt(t, o))
|
|
790
803
|
return;
|
|
791
804
|
const {
|
|
792
805
|
data: r
|
|
@@ -802,17 +815,17 @@ const tt = (e = {}) => {
|
|
|
802
815
|
break;
|
|
803
816
|
}
|
|
804
817
|
case "builder.contentUpdate": {
|
|
805
|
-
const
|
|
806
|
-
|
|
818
|
+
const s = r.data, i = s.key || s.alias || s.entry || s.modelName, l = s.data;
|
|
819
|
+
i === e && n.contentUpdate(l);
|
|
807
820
|
break;
|
|
808
821
|
}
|
|
809
822
|
}
|
|
810
|
-
},
|
|
811
|
-
if (
|
|
823
|
+
}, Zs = (e, t, n) => {
|
|
824
|
+
if (!I)
|
|
812
825
|
return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
813
826
|
};
|
|
814
|
-
|
|
815
|
-
const o =
|
|
827
|
+
nt();
|
|
828
|
+
const o = ot({
|
|
816
829
|
callbacks: {
|
|
817
830
|
contentUpdate: t,
|
|
818
831
|
animation: () => {
|
|
@@ -826,39 +839,39 @@ const tt = (e = {}) => {
|
|
|
826
839
|
return window.addEventListener("message", o), () => {
|
|
827
840
|
window.removeEventListener("message", o);
|
|
828
841
|
};
|
|
829
|
-
},
|
|
842
|
+
}, Tn = "builder.tests", ge = (e) => `${Tn}.${e}`, In = ({
|
|
830
843
|
contentId: e
|
|
831
|
-
}) =>
|
|
844
|
+
}) => Ye({
|
|
832
845
|
name: ge(e),
|
|
833
846
|
canTrack: !0
|
|
834
|
-
}),
|
|
847
|
+
}), $n = ({
|
|
835
848
|
contentId: e
|
|
836
|
-
}) =>
|
|
849
|
+
}) => Je({
|
|
837
850
|
name: ge(e),
|
|
838
851
|
canTrack: !0
|
|
839
|
-
}),
|
|
852
|
+
}), Rn = ({
|
|
840
853
|
contentId: e,
|
|
841
854
|
value: t
|
|
842
|
-
}) =>
|
|
855
|
+
}) => Xe({
|
|
843
856
|
name: ge(e),
|
|
844
857
|
value: t,
|
|
845
858
|
canTrack: !0
|
|
846
|
-
}),
|
|
859
|
+
}), rt = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, En = ({
|
|
847
860
|
id: e,
|
|
848
861
|
variations: t
|
|
849
862
|
}) => {
|
|
850
863
|
var r;
|
|
851
864
|
let n = 0;
|
|
852
865
|
const o = Math.random();
|
|
853
|
-
for (const
|
|
854
|
-
const
|
|
855
|
-
if (n +=
|
|
856
|
-
return
|
|
866
|
+
for (const s in t) {
|
|
867
|
+
const i = (r = t[s]) == null ? void 0 : r.testRatio;
|
|
868
|
+
if (n += i, o < n)
|
|
869
|
+
return s;
|
|
857
870
|
}
|
|
858
871
|
return e;
|
|
859
|
-
},
|
|
860
|
-
const t =
|
|
861
|
-
return
|
|
872
|
+
}, st = (e) => {
|
|
873
|
+
const t = En(e);
|
|
874
|
+
return Rn({
|
|
862
875
|
contentId: e.id,
|
|
863
876
|
value: t
|
|
864
877
|
}).catch((n) => {
|
|
@@ -878,7 +891,7 @@ const tt = (e = {}) => {
|
|
|
878
891
|
testVariationId: n.id,
|
|
879
892
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
880
893
|
};
|
|
881
|
-
},
|
|
894
|
+
}, Pn = ({
|
|
882
895
|
item: e,
|
|
883
896
|
canTrack: t
|
|
884
897
|
}) => {
|
|
@@ -886,11 +899,11 @@ const tt = (e = {}) => {
|
|
|
886
899
|
return e;
|
|
887
900
|
if (!e)
|
|
888
901
|
return;
|
|
889
|
-
if (!
|
|
902
|
+
if (!rt(e))
|
|
890
903
|
return e;
|
|
891
|
-
const n =
|
|
904
|
+
const n = $n({
|
|
892
905
|
contentId: e.id
|
|
893
|
-
}) ||
|
|
906
|
+
}) || st({
|
|
894
907
|
variations: e.variations,
|
|
895
908
|
id: e.id
|
|
896
909
|
}), o = it({
|
|
@@ -901,15 +914,15 @@ const tt = (e = {}) => {
|
|
|
901
914
|
...e,
|
|
902
915
|
...o
|
|
903
916
|
};
|
|
904
|
-
},
|
|
917
|
+
}, Bn = async ({
|
|
905
918
|
item: e,
|
|
906
919
|
canTrack: t
|
|
907
920
|
}) => {
|
|
908
|
-
if (!t || !
|
|
921
|
+
if (!t || !rt(e))
|
|
909
922
|
return e;
|
|
910
|
-
const o = await
|
|
923
|
+
const o = await In({
|
|
911
924
|
contentId: e.id
|
|
912
|
-
}) ||
|
|
925
|
+
}) || st({
|
|
913
926
|
variations: e.variations,
|
|
914
927
|
id: e.id
|
|
915
928
|
}), r = it({
|
|
@@ -920,47 +933,59 @@ const tt = (e = {}) => {
|
|
|
920
933
|
...e,
|
|
921
934
|
...r
|
|
922
935
|
};
|
|
923
|
-
},
|
|
924
|
-
function
|
|
936
|
+
}, J = (e) => D(e) ? e : !0;
|
|
937
|
+
function An() {
|
|
925
938
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
926
939
|
}
|
|
927
940
|
function xn() {
|
|
928
|
-
const e =
|
|
941
|
+
const e = An().fetch;
|
|
929
942
|
if (typeof e > "u")
|
|
930
943
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
931
944
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
932
945
|
return e;
|
|
933
946
|
}
|
|
934
|
-
const
|
|
947
|
+
const Vn = xn();
|
|
935
948
|
function pe(e, t = null, n = ".") {
|
|
936
949
|
return Object.keys(e).reduce((o, r) => {
|
|
937
|
-
const
|
|
938
|
-
return [typeof
|
|
950
|
+
const s = e[r], i = [t, r].filter(Boolean).join(n);
|
|
951
|
+
return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
|
|
939
952
|
...o,
|
|
940
|
-
...pe(
|
|
953
|
+
...pe(s, i, n)
|
|
941
954
|
} : {
|
|
942
955
|
...o,
|
|
943
|
-
[
|
|
956
|
+
[i]: s
|
|
944
957
|
};
|
|
945
958
|
}, {});
|
|
946
959
|
}
|
|
947
|
-
function
|
|
960
|
+
function at(e, t, n = {}) {
|
|
948
961
|
for (const o in e) {
|
|
949
|
-
const r = e[o],
|
|
950
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((
|
|
962
|
+
const r = e[o], s = t ? t + "." + o : o;
|
|
963
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? at(r, s, n) : n[s] = r;
|
|
951
964
|
}
|
|
952
965
|
return n;
|
|
953
966
|
}
|
|
954
|
-
|
|
967
|
+
function Wn(e) {
|
|
968
|
+
const t = {};
|
|
969
|
+
for (const n in e) {
|
|
970
|
+
const o = n.split(".");
|
|
971
|
+
let r = t;
|
|
972
|
+
for (let s = 0; s < o.length; s++) {
|
|
973
|
+
const i = o[s];
|
|
974
|
+
s === o.length - 1 ? r[i] = e[n] : (r[i] = r[i] || {}, r = r[i]);
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
return t;
|
|
978
|
+
}
|
|
979
|
+
const Nn = "v3", Be = (e) => typeof e == "number" && !isNaN(e) && e >= 0, be = (e) => {
|
|
955
980
|
const {
|
|
956
981
|
limit: t = 30,
|
|
957
982
|
userAttributes: n,
|
|
958
983
|
query: o,
|
|
959
984
|
model: r,
|
|
960
|
-
apiKey:
|
|
961
|
-
enrich:
|
|
985
|
+
apiKey: s,
|
|
986
|
+
enrich: i,
|
|
962
987
|
locale: l,
|
|
963
|
-
apiVersion: a =
|
|
988
|
+
apiVersion: a = Nn,
|
|
964
989
|
fields: u,
|
|
965
990
|
omit: m,
|
|
966
991
|
offset: h,
|
|
@@ -970,65 +995,84 @@ const Vn = "v3", Pe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, be = (
|
|
|
970
995
|
includeUnpublished: w,
|
|
971
996
|
apiHost: L
|
|
972
997
|
} = e;
|
|
973
|
-
if (!
|
|
998
|
+
if (!s)
|
|
974
999
|
throw new Error("Missing API key");
|
|
975
1000
|
if (!["v3"].includes(a))
|
|
976
1001
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
977
|
-
const
|
|
978
|
-
|
|
1002
|
+
const kt = t !== 1, vt = L || "https://cdn.builder.io", $ = new URL(`${vt}/api/${a}/content/${r}`);
|
|
1003
|
+
$.searchParams.set("apiKey", s), $.searchParams.set("limit", String(t)), $.searchParams.set("noTraverse", String(kt)), $.searchParams.set("includeRefs", String(!0));
|
|
979
1004
|
const oe = l || (n == null ? void 0 : n.locale);
|
|
980
|
-
let
|
|
981
|
-
if (oe && (
|
|
1005
|
+
let U = n || {};
|
|
1006
|
+
if (oe && ($.searchParams.set("locale", oe), U = {
|
|
982
1007
|
locale: oe,
|
|
983
|
-
...
|
|
984
|
-
}),
|
|
1008
|
+
...U
|
|
1009
|
+
}), i && $.searchParams.set("enrich", String(i)), $.searchParams.set("omit", m || "meta.componentsUsed"), u && $.searchParams.set("fields", u), Number.isFinite(h) && h > -1 && $.searchParams.set("offset", String(Math.floor(h))), typeof w == "boolean" && $.searchParams.set("includeUnpublished", String(w)), d && Be(d) && $.searchParams.set("cacheSeconds", String(d)), f && Be(f) && $.searchParams.set("staleCacheSeconds", String(f)), S) {
|
|
985
1010
|
const O = pe({
|
|
986
1011
|
sort: S
|
|
987
1012
|
});
|
|
988
|
-
for (const
|
|
989
|
-
|
|
1013
|
+
for (const H in O)
|
|
1014
|
+
$.searchParams.set(H, JSON.stringify(O[H]));
|
|
990
1015
|
}
|
|
991
|
-
const
|
|
992
|
-
...
|
|
993
|
-
...
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1016
|
+
const we = {
|
|
1017
|
+
...sn(),
|
|
1018
|
+
...De(e.options || {})
|
|
1019
|
+
};
|
|
1020
|
+
U = {
|
|
1021
|
+
...U,
|
|
1022
|
+
...Fn(we)
|
|
1023
|
+
};
|
|
1024
|
+
const Te = pe(we);
|
|
1025
|
+
for (const O in Te)
|
|
1026
|
+
$.searchParams.set(O, String(Te[O]));
|
|
1027
|
+
if (Object.keys(U).length > 0 && $.searchParams.set("userAttributes", JSON.stringify(U)), o) {
|
|
1028
|
+
const O = at({
|
|
999
1029
|
query: o
|
|
1000
1030
|
});
|
|
1001
|
-
for (const
|
|
1002
|
-
|
|
1031
|
+
for (const H in O)
|
|
1032
|
+
$.searchParams.set(H, JSON.stringify(O[H]));
|
|
1003
1033
|
}
|
|
1004
|
-
return
|
|
1005
|
-
},
|
|
1034
|
+
return $;
|
|
1035
|
+
}, On = (e) => {
|
|
1036
|
+
const t = {};
|
|
1037
|
+
for (const n in e)
|
|
1038
|
+
n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
|
|
1039
|
+
return t;
|
|
1040
|
+
}, Fn = (e) => {
|
|
1041
|
+
if (I() && e.preview === "BUILDER_STUDIO") {
|
|
1042
|
+
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
1043
|
+
const t = On(e), {
|
|
1044
|
+
userAttributes: n
|
|
1045
|
+
} = Wn(t);
|
|
1046
|
+
return n;
|
|
1047
|
+
}
|
|
1048
|
+
return {};
|
|
1049
|
+
}, Dn = (e) => "results" in e;
|
|
1006
1050
|
async function ye(e) {
|
|
1007
|
-
const t = await
|
|
1051
|
+
const t = await Mn({
|
|
1008
1052
|
...e,
|
|
1009
1053
|
limit: 1
|
|
1010
1054
|
});
|
|
1011
1055
|
return t && t[0] || null;
|
|
1012
1056
|
}
|
|
1013
|
-
const
|
|
1014
|
-
var
|
|
1015
|
-
const t = be(e), n = e.fetch ??
|
|
1057
|
+
const Ln = async (e) => {
|
|
1058
|
+
var i;
|
|
1059
|
+
const t = be(e), n = e.fetch ?? Vn, o = {
|
|
1016
1060
|
...e.fetchOptions,
|
|
1017
1061
|
headers: {
|
|
1018
|
-
...(
|
|
1019
|
-
...
|
|
1062
|
+
...(i = e.fetchOptions) == null ? void 0 : i.headers,
|
|
1063
|
+
...Ge()
|
|
1020
1064
|
}
|
|
1021
1065
|
};
|
|
1022
1066
|
return await (await n(t.href, o)).json();
|
|
1023
|
-
},
|
|
1024
|
-
const o =
|
|
1025
|
-
if (n.search.includes("preview="), !o || !(
|
|
1067
|
+
}, Un = async (e, t, n = be(e)) => {
|
|
1068
|
+
const o = J(e.canTrack);
|
|
1069
|
+
if (n.search.includes("preview="), !o || !(I() || R === "reactNative"))
|
|
1026
1070
|
return t.results;
|
|
1027
1071
|
try {
|
|
1028
1072
|
const r = [];
|
|
1029
|
-
for (const
|
|
1030
|
-
r.push(await
|
|
1031
|
-
item:
|
|
1073
|
+
for (const s of t.results)
|
|
1074
|
+
r.push(await Bn({
|
|
1075
|
+
item: s,
|
|
1032
1076
|
canTrack: o
|
|
1033
1077
|
}));
|
|
1034
1078
|
t.results = r;
|
|
@@ -1037,18 +1081,18 @@ const Nn = async (e) => {
|
|
|
1037
1081
|
}
|
|
1038
1082
|
return t.results;
|
|
1039
1083
|
};
|
|
1040
|
-
async function
|
|
1041
|
-
const t = be(e), n = await
|
|
1042
|
-
if (!
|
|
1084
|
+
async function Mn(e) {
|
|
1085
|
+
const t = be(e), n = await Ln(e);
|
|
1086
|
+
if (!Dn(n))
|
|
1043
1087
|
throw B.error("Error fetching data. ", {
|
|
1044
1088
|
url: t,
|
|
1045
1089
|
content: n,
|
|
1046
1090
|
options: e
|
|
1047
1091
|
}), n;
|
|
1048
|
-
return
|
|
1092
|
+
return Un(e, n);
|
|
1049
1093
|
}
|
|
1050
|
-
const
|
|
1051
|
-
var o, r,
|
|
1094
|
+
const _s = async (e) => {
|
|
1095
|
+
var o, r, s;
|
|
1052
1096
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1053
1097
|
...e,
|
|
1054
1098
|
apiKey: e.apiKey,
|
|
@@ -1059,7 +1103,7 @@ const Yi = async (e) => {
|
|
|
1059
1103
|
urlPath: t
|
|
1060
1104
|
} : {}
|
|
1061
1105
|
},
|
|
1062
|
-
options:
|
|
1106
|
+
options: qe(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
|
|
1063
1107
|
};
|
|
1064
1108
|
return {
|
|
1065
1109
|
apiKey: n.apiKey,
|
|
@@ -1067,86 +1111,86 @@ const Yi = async (e) => {
|
|
|
1067
1111
|
content: await ye(n)
|
|
1068
1112
|
};
|
|
1069
1113
|
}, ke = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1070
|
-
function
|
|
1071
|
-
let o, r,
|
|
1114
|
+
function Hn(e, t, n = {}) {
|
|
1115
|
+
let o, r, s, i = null, l = 0;
|
|
1072
1116
|
const a = function() {
|
|
1073
|
-
l = n.leading === !1 ? 0 : Date.now(),
|
|
1117
|
+
l = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
|
|
1074
1118
|
};
|
|
1075
1119
|
return function() {
|
|
1076
1120
|
const u = Date.now();
|
|
1077
1121
|
!l && n.leading === !1 && (l = u);
|
|
1078
1122
|
const m = t - (u - l);
|
|
1079
|
-
return o = this, r = arguments, m <= 0 || m > t ? (
|
|
1123
|
+
return o = this, r = arguments, m <= 0 || m > t ? (i && (clearTimeout(i), i = null), l = u, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(a, m)), s;
|
|
1080
1124
|
};
|
|
1081
1125
|
}
|
|
1082
|
-
function
|
|
1126
|
+
function q(e, ...t) {
|
|
1083
1127
|
const n = Object(e);
|
|
1084
1128
|
for (let o = 1; o < arguments.length; o++) {
|
|
1085
1129
|
const r = arguments[o];
|
|
1086
1130
|
if (r != null)
|
|
1087
|
-
for (const
|
|
1088
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
1131
|
+
for (const s in r)
|
|
1132
|
+
Object.prototype.hasOwnProperty.call(r, s) && (n[s] = r[s]);
|
|
1089
1133
|
}
|
|
1090
1134
|
return n;
|
|
1091
1135
|
}
|
|
1092
|
-
function
|
|
1136
|
+
function jn(e) {
|
|
1093
1137
|
for (const t of e)
|
|
1094
1138
|
switch (t.trigger) {
|
|
1095
1139
|
case "pageLoad":
|
|
1096
|
-
|
|
1140
|
+
dt(t);
|
|
1097
1141
|
break;
|
|
1098
1142
|
case "scrollInView":
|
|
1099
|
-
|
|
1143
|
+
qn(t);
|
|
1100
1144
|
break;
|
|
1101
1145
|
}
|
|
1102
1146
|
}
|
|
1103
|
-
function
|
|
1147
|
+
function lt(e) {
|
|
1104
1148
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1105
1149
|
}
|
|
1106
|
-
function
|
|
1107
|
-
const n =
|
|
1108
|
-
for (const l of
|
|
1150
|
+
function ct(e, t) {
|
|
1151
|
+
const n = Kn(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
|
|
1152
|
+
for (const l of i)
|
|
1109
1153
|
for (const a of n)
|
|
1110
1154
|
a in l || (l[a] = o[a]);
|
|
1111
1155
|
}
|
|
1112
|
-
function
|
|
1156
|
+
function Kn(e) {
|
|
1113
1157
|
const t = [];
|
|
1114
1158
|
for (const n of e.steps)
|
|
1115
1159
|
for (const o in n.styles)
|
|
1116
1160
|
t.indexOf(o) === -1 && t.push(o);
|
|
1117
1161
|
return t;
|
|
1118
1162
|
}
|
|
1119
|
-
function
|
|
1163
|
+
function dt(e) {
|
|
1120
1164
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1121
1165
|
if (!t.length) {
|
|
1122
|
-
|
|
1166
|
+
lt(e.elementId || e.id || "");
|
|
1123
1167
|
return;
|
|
1124
1168
|
}
|
|
1125
1169
|
Array.from(t).forEach((n) => {
|
|
1126
|
-
|
|
1127
|
-
n.style.transition = `all ${e.duration}s ${ke(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
1170
|
+
ct(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1171
|
+
n.style.transition = `all ${e.duration}s ${ke(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1128
1172
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1129
1173
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1130
1174
|
});
|
|
1131
1175
|
});
|
|
1132
1176
|
}
|
|
1133
|
-
function
|
|
1177
|
+
function qn(e) {
|
|
1134
1178
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1135
1179
|
if (!t.length) {
|
|
1136
|
-
|
|
1180
|
+
lt(e.elementId || e.id || "");
|
|
1137
1181
|
return;
|
|
1138
1182
|
}
|
|
1139
1183
|
Array.from(t).forEach((n) => {
|
|
1140
|
-
|
|
1184
|
+
ct(e, n);
|
|
1141
1185
|
let o = !1, r = !1;
|
|
1142
|
-
function
|
|
1186
|
+
function s() {
|
|
1143
1187
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
1144
|
-
|
|
1188
|
+
q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
|
|
1145
1189
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
1146
1190
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1147
|
-
})) : e.repeat && o && !r && !l(n) && (o = !1,
|
|
1191
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, q(n.style, e.steps[0].styles));
|
|
1148
1192
|
}
|
|
1149
|
-
const
|
|
1193
|
+
const i = Hn(s, 200, {
|
|
1150
1194
|
leading: !1
|
|
1151
1195
|
});
|
|
1152
1196
|
function l(m) {
|
|
@@ -1155,52 +1199,52 @@ function Mn(e) {
|
|
|
1155
1199
|
}
|
|
1156
1200
|
const a = e.steps[0].styles;
|
|
1157
1201
|
function u() {
|
|
1158
|
-
|
|
1202
|
+
q(n.style, a);
|
|
1159
1203
|
}
|
|
1160
1204
|
u(), setTimeout(() => {
|
|
1161
1205
|
n.style.transition = `all ${e.duration}s ${ke(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
1162
|
-
}), document.addEventListener("scroll",
|
|
1206
|
+
}), document.addEventListener("scroll", i, {
|
|
1163
1207
|
capture: !0,
|
|
1164
1208
|
passive: !0
|
|
1165
|
-
}),
|
|
1209
|
+
}), s();
|
|
1166
1210
|
});
|
|
1167
1211
|
}
|
|
1168
|
-
const
|
|
1212
|
+
const ut = (e) => Object.entries(e).map(([n, o]) => {
|
|
1169
1213
|
if (typeof o == "string")
|
|
1170
1214
|
return `${ke(n)}: ${o};`;
|
|
1171
|
-
}).filter(D),
|
|
1172
|
-
`),
|
|
1215
|
+
}).filter(D), zn = (e) => ut(e).join(`
|
|
1216
|
+
`), ei = ({
|
|
1173
1217
|
mediaQuery: e,
|
|
1174
1218
|
className: t,
|
|
1175
1219
|
styles: n
|
|
1176
1220
|
}) => {
|
|
1177
1221
|
const o = `.${t} {
|
|
1178
|
-
${
|
|
1222
|
+
${zn(n)}
|
|
1179
1223
|
}`;
|
|
1180
1224
|
return e ? `${e} {
|
|
1181
1225
|
${o}
|
|
1182
1226
|
}` : o;
|
|
1183
1227
|
};
|
|
1184
|
-
function
|
|
1228
|
+
function Gn({
|
|
1185
1229
|
style: e
|
|
1186
1230
|
}) {
|
|
1187
1231
|
return e;
|
|
1188
1232
|
}
|
|
1189
|
-
const
|
|
1233
|
+
const ti = ({
|
|
1190
1234
|
block: e,
|
|
1191
1235
|
context: t
|
|
1192
|
-
}) =>
|
|
1236
|
+
}) => pt(Gn({
|
|
1193
1237
|
style: e.style || {},
|
|
1194
1238
|
context: t,
|
|
1195
1239
|
block: e
|
|
1196
1240
|
}));
|
|
1197
|
-
function
|
|
1241
|
+
function pt(e) {
|
|
1198
1242
|
switch (R) {
|
|
1199
1243
|
case "svelte":
|
|
1200
1244
|
case "vue":
|
|
1201
1245
|
case "solid":
|
|
1202
1246
|
case "angular":
|
|
1203
|
-
return
|
|
1247
|
+
return ut(e).join(" ");
|
|
1204
1248
|
case "qwik":
|
|
1205
1249
|
case "reactNative":
|
|
1206
1250
|
case "react":
|
|
@@ -1208,24 +1252,24 @@ function ut(e) {
|
|
|
1208
1252
|
return e;
|
|
1209
1253
|
}
|
|
1210
1254
|
}
|
|
1211
|
-
const
|
|
1255
|
+
const mt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Jn = ({
|
|
1212
1256
|
block: e,
|
|
1213
1257
|
registeredComponents: t,
|
|
1214
1258
|
model: n
|
|
1215
1259
|
}) => {
|
|
1216
|
-
var
|
|
1217
|
-
const o = (
|
|
1260
|
+
var s;
|
|
1261
|
+
const o = (s = e.component) == null ? void 0 : s.name;
|
|
1218
1262
|
if (!o)
|
|
1219
1263
|
return null;
|
|
1220
1264
|
const r = t[o];
|
|
1221
|
-
if (!r ||
|
|
1265
|
+
if (!r || mt(r, n)) {
|
|
1222
1266
|
console.warn(`
|
|
1223
1267
|
Could not find a registered component named "${o}".
|
|
1224
1268
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1225
1269
|
return;
|
|
1226
1270
|
} else
|
|
1227
1271
|
return r;
|
|
1228
|
-
},
|
|
1272
|
+
}, Yn = ({
|
|
1229
1273
|
block: e,
|
|
1230
1274
|
context: t
|
|
1231
1275
|
}) => {
|
|
@@ -1235,7 +1279,7 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1235
1279
|
} = e;
|
|
1236
1280
|
if (!(n != null && n.collection))
|
|
1237
1281
|
return;
|
|
1238
|
-
const r =
|
|
1282
|
+
const r = Y({
|
|
1239
1283
|
code: n.collection,
|
|
1240
1284
|
localState: t.localState,
|
|
1241
1285
|
rootState: t.rootState,
|
|
@@ -1244,7 +1288,7 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1244
1288
|
});
|
|
1245
1289
|
if (!Array.isArray(r))
|
|
1246
1290
|
return;
|
|
1247
|
-
const
|
|
1291
|
+
const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
|
|
1248
1292
|
return r.map((a, u) => ({
|
|
1249
1293
|
context: {
|
|
1250
1294
|
...t,
|
|
@@ -1252,65 +1296,65 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1252
1296
|
...t.localState,
|
|
1253
1297
|
$index: u,
|
|
1254
1298
|
$item: a,
|
|
1255
|
-
[
|
|
1256
|
-
[`$${
|
|
1299
|
+
[i]: a,
|
|
1300
|
+
[`$${i}Index`]: u
|
|
1257
1301
|
}
|
|
1258
1302
|
},
|
|
1259
1303
|
block: o
|
|
1260
1304
|
}));
|
|
1261
|
-
},
|
|
1305
|
+
}, Xn = (e, t) => {
|
|
1262
1306
|
var n;
|
|
1263
1307
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1264
1308
|
builderLinkComponent: t
|
|
1265
1309
|
} : {};
|
|
1266
|
-
},
|
|
1310
|
+
}, Qn = (e, t, n) => {
|
|
1267
1311
|
var o;
|
|
1268
1312
|
return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
|
|
1269
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([
|
|
1313
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([s, i]) => !mt(i, n)))
|
|
1270
1314
|
} : {};
|
|
1271
|
-
},
|
|
1315
|
+
}, Zn = (e, t) => {
|
|
1272
1316
|
var n;
|
|
1273
1317
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1274
1318
|
builderBlock: t
|
|
1275
1319
|
} : {};
|
|
1276
|
-
},
|
|
1320
|
+
}, _n = (e, t) => {
|
|
1277
1321
|
var n;
|
|
1278
1322
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1279
1323
|
builderContext: t
|
|
1280
1324
|
} : {};
|
|
1281
|
-
},
|
|
1325
|
+
}, eo = () => Promise.resolve().then(() => fo).then((e) => e.default).catch((e) => {
|
|
1282
1326
|
throw console.error(
|
|
1283
1327
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1284
1328
|
e
|
|
1285
1329
|
), e;
|
|
1286
|
-
}),
|
|
1330
|
+
}), to = () => import("./block-styles-AkwFTcbO.js").then((e) => e.default).catch((e) => {
|
|
1287
1331
|
throw console.error(
|
|
1288
1332
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1289
1333
|
e
|
|
1290
1334
|
), e;
|
|
1291
|
-
}),
|
|
1335
|
+
}), no = () => import("./block-wrapper-fpDCjlfD.js").then((e) => e.default).catch((e) => {
|
|
1292
1336
|
throw console.error(
|
|
1293
1337
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1294
1338
|
e
|
|
1295
1339
|
), e;
|
|
1296
|
-
}),
|
|
1340
|
+
}), oo = () => import("./component-ref-d8yXMilU.js").then((e) => e.default).catch((e) => {
|
|
1297
1341
|
throw console.error(
|
|
1298
1342
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1299
1343
|
e
|
|
1300
1344
|
), e;
|
|
1301
|
-
}),
|
|
1345
|
+
}), ro = () => import("./repeated-block-YC73mMjD.js").then((e) => e.default).catch((e) => {
|
|
1302
1346
|
throw console.error(
|
|
1303
1347
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1304
1348
|
e
|
|
1305
1349
|
), e;
|
|
1306
|
-
}),
|
|
1350
|
+
}), so = g({
|
|
1307
1351
|
name: "block",
|
|
1308
1352
|
components: {
|
|
1309
|
-
BlockStyles:
|
|
1310
|
-
RepeatedBlock:
|
|
1311
|
-
ComponentRef:
|
|
1312
|
-
BlockWrapper:
|
|
1313
|
-
DynamicDiv:
|
|
1353
|
+
BlockStyles: j(to),
|
|
1354
|
+
RepeatedBlock: j(ro),
|
|
1355
|
+
ComponentRef: j(oo),
|
|
1356
|
+
BlockWrapper: j(no),
|
|
1357
|
+
DynamicDiv: j(eo)
|
|
1314
1358
|
},
|
|
1315
1359
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1316
1360
|
data() {
|
|
@@ -1323,7 +1367,7 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1323
1367
|
},
|
|
1324
1368
|
mounted() {
|
|
1325
1369
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1326
|
-
t && e &&
|
|
1370
|
+
t && e && jn(
|
|
1327
1371
|
t.map((n) => ({
|
|
1328
1372
|
...n,
|
|
1329
1373
|
elementId: e
|
|
@@ -1334,24 +1378,23 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1334
1378
|
},
|
|
1335
1379
|
computed: {
|
|
1336
1380
|
repeatItem() {
|
|
1337
|
-
return
|
|
1381
|
+
return Yn({
|
|
1338
1382
|
block: this.block,
|
|
1339
1383
|
context: this.context
|
|
1340
1384
|
});
|
|
1341
1385
|
},
|
|
1342
1386
|
processedBlock() {
|
|
1343
1387
|
var t;
|
|
1344
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1388
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : en({
|
|
1345
1389
|
block: this.block,
|
|
1346
1390
|
localState: this.context.localState,
|
|
1347
1391
|
rootState: this.context.rootState,
|
|
1348
1392
|
rootSetState: this.context.rootSetState,
|
|
1349
|
-
context: this.context.context
|
|
1350
|
-
shouldEvaluateBindings: !0
|
|
1393
|
+
context: this.context.context
|
|
1351
1394
|
});
|
|
1352
1395
|
},
|
|
1353
1396
|
blockComponent() {
|
|
1354
|
-
return
|
|
1397
|
+
return Jn({
|
|
1355
1398
|
block: this.processedBlock,
|
|
1356
1399
|
registeredComponents: this.registeredComponents,
|
|
1357
1400
|
model: this.context.model
|
|
@@ -1378,11 +1421,11 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1378
1421
|
blockChildren: this.processedBlock.children ?? [],
|
|
1379
1422
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1380
1423
|
componentOptions: {
|
|
1381
|
-
...
|
|
1382
|
-
...
|
|
1383
|
-
...
|
|
1384
|
-
...
|
|
1385
|
-
...
|
|
1424
|
+
...qt(this.processedBlock, this.context),
|
|
1425
|
+
...Zn(this.blockComponent, this.processedBlock),
|
|
1426
|
+
..._n(this.blockComponent, this.context),
|
|
1427
|
+
...Xn(this.blockComponent, this.linkComponent),
|
|
1428
|
+
...Qn(
|
|
1386
1429
|
this.blockComponent,
|
|
1387
1430
|
this.registeredComponents,
|
|
1388
1431
|
this.context.model
|
|
@@ -1398,11 +1441,11 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1398
1441
|
}
|
|
1399
1442
|
}
|
|
1400
1443
|
});
|
|
1401
|
-
function
|
|
1444
|
+
function io(e, t, n, o, r, s) {
|
|
1402
1445
|
var h;
|
|
1403
|
-
const
|
|
1446
|
+
const i = k("BlockStyles"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), m = k("RepeatedBlock");
|
|
1404
1447
|
return e.canShowBlock ? (c(), p(T, { key: 0 }, [
|
|
1405
|
-
P(
|
|
1448
|
+
P(i, {
|
|
1406
1449
|
block: e.processedBlock,
|
|
1407
1450
|
context: e.context
|
|
1408
1451
|
}, null, 8, ["block", "context"]),
|
|
@@ -1463,10 +1506,10 @@ function no(e, t, n, o, r, i) {
|
|
|
1463
1506
|
], 64))
|
|
1464
1507
|
], 64)) : v("", !0);
|
|
1465
1508
|
}
|
|
1466
|
-
const ve = /* @__PURE__ */ b(
|
|
1509
|
+
const ve = /* @__PURE__ */ b(so, [["render", io]]), ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1467
1510
|
__proto__: null,
|
|
1468
1511
|
default: ve
|
|
1469
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1512
|
+
}, Symbol.toStringTag, { value: "Module" })), ao = g({
|
|
1470
1513
|
name: "builder-blocks-wrapper",
|
|
1471
1514
|
props: [
|
|
1472
1515
|
"blocks",
|
|
@@ -1524,26 +1567,26 @@ const ve = /* @__PURE__ */ b(to, [["render", no]]), Zi = /* @__PURE__ */ Object.
|
|
|
1524
1567
|
}
|
|
1525
1568
|
}
|
|
1526
1569
|
});
|
|
1527
|
-
function
|
|
1528
|
-
return c(), y(
|
|
1570
|
+
function lo(e, t, n, o, r, s) {
|
|
1571
|
+
return c(), y(K(e.BlocksWrapper), C({
|
|
1529
1572
|
ref: "blocksWrapperRef",
|
|
1530
1573
|
class: e.className + " component-1k2igrjdg3x",
|
|
1531
1574
|
"builder-path": e.dataPath,
|
|
1532
1575
|
"builder-parent-id": e.parent,
|
|
1533
1576
|
style: e.styleProp,
|
|
1534
|
-
onClick: (
|
|
1535
|
-
onMouseEnter: (
|
|
1536
|
-
onKeyPress: (
|
|
1577
|
+
onClick: (i) => e.onClick(),
|
|
1578
|
+
onMouseEnter: (i) => e.onMouseEnter(),
|
|
1579
|
+
onKeyPress: (i) => e.onClick()
|
|
1537
1580
|
}, { ...e.BlocksWrapperProps }), {
|
|
1538
1581
|
default: N(() => [
|
|
1539
|
-
|
|
1582
|
+
x(e.$slots, "default", {}, void 0, !0)
|
|
1540
1583
|
]),
|
|
1541
1584
|
_: 3
|
|
1542
1585
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1543
1586
|
}
|
|
1544
|
-
const
|
|
1587
|
+
const co = /* @__PURE__ */ b(ao, [["render", lo], ["__scopeId", "data-v-ba2bc5c0"]]), uo = g({
|
|
1545
1588
|
name: "builder-blocks",
|
|
1546
|
-
components: { BlocksWrapper:
|
|
1589
|
+
components: { BlocksWrapper: co, Block: ve },
|
|
1547
1590
|
props: [
|
|
1548
1591
|
"blocks",
|
|
1549
1592
|
"parent",
|
|
@@ -1556,12 +1599,12 @@ const io = /* @__PURE__ */ b(oo, [["render", ro], ["__scopeId", "data-v-ba2bc5c0
|
|
|
1556
1599
|
],
|
|
1557
1600
|
inject: {
|
|
1558
1601
|
builderContext: ce.key,
|
|
1559
|
-
componentsContext:
|
|
1602
|
+
componentsContext: Oe.key
|
|
1560
1603
|
}
|
|
1561
1604
|
});
|
|
1562
|
-
function
|
|
1605
|
+
function po(e, t, n, o, r, s) {
|
|
1563
1606
|
var a, u, m, h;
|
|
1564
|
-
const
|
|
1607
|
+
const i = k("Block"), l = k("BlocksWrapper");
|
|
1565
1608
|
return c(), y(l, {
|
|
1566
1609
|
blocks: e.blocks,
|
|
1567
1610
|
parent: e.parent,
|
|
@@ -1574,7 +1617,7 @@ function ao(e, t, n, o, r, i) {
|
|
|
1574
1617
|
default: N(() => [
|
|
1575
1618
|
e.blocks ? (c(!0), p(T, { key: 0 }, V(e.blocks, (d, f) => {
|
|
1576
1619
|
var S;
|
|
1577
|
-
return c(), y(
|
|
1620
|
+
return c(), y(i, {
|
|
1578
1621
|
key: d.id,
|
|
1579
1622
|
block: d,
|
|
1580
1623
|
linkComponent: e.linkComponent,
|
|
@@ -1586,21 +1629,21 @@ function ao(e, t, n, o, r, i) {
|
|
|
1586
1629
|
_: 1
|
|
1587
1630
|
}, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
1588
1631
|
}
|
|
1589
|
-
const
|
|
1632
|
+
const M = /* @__PURE__ */ b(uo, [["render", po]]), mo = g({
|
|
1590
1633
|
name: "dynamic-div",
|
|
1591
1634
|
props: []
|
|
1592
1635
|
});
|
|
1593
|
-
function
|
|
1636
|
+
function ho(e, t, n, o, r, s) {
|
|
1594
1637
|
return c(), p("div", null, [
|
|
1595
|
-
|
|
1638
|
+
x(e.$slots, "default")
|
|
1596
1639
|
]);
|
|
1597
1640
|
}
|
|
1598
|
-
const
|
|
1641
|
+
const X = /* @__PURE__ */ b(mo, [["render", ho]]), fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1599
1642
|
__proto__: null,
|
|
1600
|
-
default:
|
|
1643
|
+
default: X
|
|
1601
1644
|
}, Symbol.toStringTag, { value: "Module" })), Se = g({
|
|
1602
1645
|
render() {
|
|
1603
|
-
return
|
|
1646
|
+
return Ne("style", {
|
|
1604
1647
|
innerHTML: this.styles,
|
|
1605
1648
|
"data-id": this.id,
|
|
1606
1649
|
nonce: this.nonce
|
|
@@ -1608,7 +1651,7 @@ const Y = /* @__PURE__ */ b(lo, [["render", co]]), uo = /* @__PURE__ */ Object.f
|
|
|
1608
1651
|
},
|
|
1609
1652
|
name: "inlined-styles",
|
|
1610
1653
|
props: ["styles", "id", "nonce"]
|
|
1611
|
-
}),
|
|
1654
|
+
}), ht = {
|
|
1612
1655
|
small: {
|
|
1613
1656
|
min: 320,
|
|
1614
1657
|
default: 321,
|
|
@@ -1624,11 +1667,11 @@ const Y = /* @__PURE__ */ b(lo, [["render", co]]), uo = /* @__PURE__ */ Object.f
|
|
|
1624
1667
|
default: 991,
|
|
1625
1668
|
max: 1200
|
|
1626
1669
|
}
|
|
1627
|
-
},
|
|
1670
|
+
}, oi = (e, t = ht) => `@media (max-width: ${t[e].max}px)`, go = ({
|
|
1628
1671
|
small: e,
|
|
1629
1672
|
medium: t
|
|
1630
1673
|
}) => {
|
|
1631
|
-
const n = he(
|
|
1674
|
+
const n = he(ht);
|
|
1632
1675
|
if (!e || !t)
|
|
1633
1676
|
return n;
|
|
1634
1677
|
const o = Math.floor(e / 2);
|
|
@@ -1643,20 +1686,20 @@ const Y = /* @__PURE__ */ b(lo, [["render", co]]), uo = /* @__PURE__ */ Object.f
|
|
|
1643
1686
|
min: r,
|
|
1644
1687
|
default: r + 1
|
|
1645
1688
|
};
|
|
1646
|
-
const
|
|
1689
|
+
const s = n.medium.max + 1;
|
|
1647
1690
|
return n.large = {
|
|
1648
1691
|
max: 2e3,
|
|
1649
1692
|
// TODO: decide upper limit
|
|
1650
|
-
min:
|
|
1651
|
-
default:
|
|
1693
|
+
min: s,
|
|
1694
|
+
default: s + 1
|
|
1652
1695
|
}, n;
|
|
1653
|
-
},
|
|
1696
|
+
}, bo = (e) => `builder-columns ${e}-breakpoints`, yo = g({
|
|
1654
1697
|
name: "builder-columns",
|
|
1655
1698
|
components: {
|
|
1656
1699
|
InlinedStyles: Se,
|
|
1657
1700
|
DynamicRenderer: me,
|
|
1658
|
-
Blocks:
|
|
1659
|
-
DynamicDiv:
|
|
1701
|
+
Blocks: M,
|
|
1702
|
+
DynamicDiv: X
|
|
1660
1703
|
},
|
|
1661
1704
|
props: [
|
|
1662
1705
|
"space",
|
|
@@ -1669,7 +1712,7 @@ const Y = /* @__PURE__ */ b(lo, [["render", co]]), uo = /* @__PURE__ */ Object.f
|
|
|
1669
1712
|
"builderComponents"
|
|
1670
1713
|
],
|
|
1671
1714
|
data() {
|
|
1672
|
-
return { TARGET: R, getColumnsClass:
|
|
1715
|
+
return { TARGET: R, getColumnsClass: bo };
|
|
1673
1716
|
},
|
|
1674
1717
|
computed: {
|
|
1675
1718
|
gutterSize() {
|
|
@@ -1719,7 +1762,7 @@ const Y = /* @__PURE__ */ b(lo, [["render", co]]), uo = /* @__PURE__ */ Object.f
|
|
|
1719
1762
|
};
|
|
1720
1763
|
},
|
|
1721
1764
|
columnCssVars(e) {
|
|
1722
|
-
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%",
|
|
1765
|
+
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
|
|
1723
1766
|
return {
|
|
1724
1767
|
...{
|
|
1725
1768
|
display: "flex",
|
|
@@ -1733,7 +1776,7 @@ const Y = /* @__PURE__ */ b(lo, [["render", co]]), uo = /* @__PURE__ */ Object.f
|
|
|
1733
1776
|
desktopStyle: n
|
|
1734
1777
|
}),
|
|
1735
1778
|
"--column-margin-left-mobile": this.getMobileStyle({
|
|
1736
|
-
stackedStyle:
|
|
1779
|
+
stackedStyle: s,
|
|
1737
1780
|
desktopStyle: o
|
|
1738
1781
|
}),
|
|
1739
1782
|
"--column-width-tablet": this.getTabletStyle({
|
|
@@ -1741,14 +1784,14 @@ const Y = /* @__PURE__ */ b(lo, [["render", co]]), uo = /* @__PURE__ */ Object.f
|
|
|
1741
1784
|
desktopStyle: n
|
|
1742
1785
|
}),
|
|
1743
1786
|
"--column-margin-left-tablet": this.getTabletStyle({
|
|
1744
|
-
stackedStyle:
|
|
1787
|
+
stackedStyle: s,
|
|
1745
1788
|
desktopStyle: o
|
|
1746
1789
|
})
|
|
1747
1790
|
};
|
|
1748
1791
|
},
|
|
1749
1792
|
getWidthForBreakpointSize(e) {
|
|
1750
1793
|
var n, o;
|
|
1751
|
-
return
|
|
1794
|
+
return go(
|
|
1752
1795
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1753
1796
|
)[e].max;
|
|
1754
1797
|
},
|
|
@@ -1786,19 +1829,19 @@ const Y = /* @__PURE__ */ b(lo, [["render", co]]), uo = /* @__PURE__ */ Object.f
|
|
|
1786
1829
|
href: e.link
|
|
1787
1830
|
} : {},
|
|
1788
1831
|
[_()]: "builder-column",
|
|
1789
|
-
style:
|
|
1832
|
+
style: pt(this.columnCssVars(t))
|
|
1790
1833
|
};
|
|
1791
1834
|
}
|
|
1792
1835
|
}
|
|
1793
1836
|
});
|
|
1794
|
-
function
|
|
1837
|
+
function ko(e, t, n, o, r, s) {
|
|
1795
1838
|
var u;
|
|
1796
|
-
const
|
|
1839
|
+
const i = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1797
1840
|
return c(), p("div", C({
|
|
1798
1841
|
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
|
|
1799
1842
|
style: e.columnsCssVars()
|
|
1800
1843
|
}, {}), [
|
|
1801
|
-
e.TARGET !== "reactNative" ? (c(), y(
|
|
1844
|
+
e.TARGET !== "reactNative" ? (c(), y(i, {
|
|
1802
1845
|
key: 0,
|
|
1803
1846
|
id: "builderio-columns",
|
|
1804
1847
|
styles: e.columnsStyles(),
|
|
@@ -1827,32 +1870,32 @@ function fo(e, t, n, o, r, i) {
|
|
|
1827
1870
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1828
1871
|
], 16);
|
|
1829
1872
|
}
|
|
1830
|
-
const
|
|
1873
|
+
const vo = /* @__PURE__ */ b(yo, [["render", ko], ["__scopeId", "data-v-3354f136"]]), So = g({
|
|
1831
1874
|
name: "builder-fragment-component",
|
|
1832
1875
|
props: []
|
|
1833
1876
|
});
|
|
1834
|
-
function
|
|
1877
|
+
function Co(e, t, n, o, r, s) {
|
|
1835
1878
|
return c(), p("span", null, [
|
|
1836
|
-
|
|
1879
|
+
x(e.$slots, "default")
|
|
1837
1880
|
]);
|
|
1838
1881
|
}
|
|
1839
|
-
const
|
|
1840
|
-
function
|
|
1882
|
+
const wo = /* @__PURE__ */ b(So, [["render", Co]]);
|
|
1883
|
+
function Ae(e) {
|
|
1841
1884
|
return e.replace(/http(s)?:/, "");
|
|
1842
1885
|
}
|
|
1843
|
-
function
|
|
1886
|
+
function To(e = "", t, n) {
|
|
1844
1887
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1845
1888
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1846
1889
|
}
|
|
1847
|
-
function
|
|
1890
|
+
function Io(e, t) {
|
|
1848
1891
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1849
1892
|
return e;
|
|
1850
1893
|
if (t === "master")
|
|
1851
|
-
return
|
|
1894
|
+
return Ae(e);
|
|
1852
1895
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1853
1896
|
if (n) {
|
|
1854
|
-
const o = e.split(n[0]), r = n[3],
|
|
1855
|
-
return
|
|
1897
|
+
const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
|
|
1898
|
+
return Ae(`${o[0]}_${s}${r}`);
|
|
1856
1899
|
}
|
|
1857
1900
|
return null;
|
|
1858
1901
|
}
|
|
@@ -1863,11 +1906,11 @@ function re(e) {
|
|
|
1863
1906
|
if (e.match(/builder\.io/)) {
|
|
1864
1907
|
let n = e;
|
|
1865
1908
|
const o = Number(e.split("?width=")[1]);
|
|
1866
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
1909
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${To(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1867
1910
|
}
|
|
1868
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1911
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Io(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1869
1912
|
}
|
|
1870
|
-
const
|
|
1913
|
+
const $o = g({
|
|
1871
1914
|
name: "builder-image",
|
|
1872
1915
|
props: [
|
|
1873
1916
|
"image",
|
|
@@ -1918,20 +1961,20 @@ const Co = g({
|
|
|
1918
1961
|
return this.aspectRatio ? e : void 0;
|
|
1919
1962
|
}
|
|
1920
1963
|
}
|
|
1921
|
-
}),
|
|
1964
|
+
}), Ro = ["srcset"], Eo = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], Po = {
|
|
1922
1965
|
key: 2,
|
|
1923
1966
|
class: "div-29wpyomtntv-2"
|
|
1924
1967
|
};
|
|
1925
|
-
function
|
|
1926
|
-
var
|
|
1968
|
+
function Bo(e, t, n, o, r, s) {
|
|
1969
|
+
var i, l, a, u, m, h;
|
|
1927
1970
|
return c(), p(T, null, [
|
|
1928
|
-
|
|
1971
|
+
z("picture", null, [
|
|
1929
1972
|
e.webpSrcSet ? (c(), p("source", {
|
|
1930
1973
|
key: 0,
|
|
1931
1974
|
type: "image/webp",
|
|
1932
1975
|
srcset: e.webpSrcSet
|
|
1933
|
-
}, null, 8,
|
|
1934
|
-
|
|
1976
|
+
}, null, 8, Ro)) : v("", !0),
|
|
1977
|
+
z("img", {
|
|
1935
1978
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1936
1979
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
1937
1980
|
alt: e.altText,
|
|
@@ -1941,35 +1984,35 @@ function $o(e, t, n, o, r, i) {
|
|
|
1941
1984
|
objectFit: e.backgroundSize || "cover",
|
|
1942
1985
|
...e.aspectRatioCss
|
|
1943
1986
|
}),
|
|
1944
|
-
class:
|
|
1987
|
+
class: G(
|
|
1945
1988
|
"builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
|
|
1946
1989
|
),
|
|
1947
1990
|
src: e.image,
|
|
1948
1991
|
srcset: e.srcSetToUse,
|
|
1949
1992
|
sizes: e.sizes
|
|
1950
|
-
}, null, 14,
|
|
1993
|
+
}, null, 14, Eo)
|
|
1951
1994
|
]),
|
|
1952
|
-
e.aspectRatio && !((l = (
|
|
1995
|
+
e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (c(), p("div", {
|
|
1953
1996
|
key: 0,
|
|
1954
1997
|
class: "builder-image-sizer div-29wpyomtntv",
|
|
1955
1998
|
style: F({
|
|
1956
1999
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1957
2000
|
})
|
|
1958
2001
|
}, null, 4)) : v("", !0),
|
|
1959
|
-
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ?
|
|
1960
|
-
!e.fitContent && ((h = (m = e.builderBlock) == null ? void 0 : m.children) != null && h.length) ? (c(), p("div",
|
|
1961
|
-
|
|
2002
|
+
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? x(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
|
|
2003
|
+
!e.fitContent && ((h = (m = e.builderBlock) == null ? void 0 : m.children) != null && h.length) ? (c(), p("div", Po, [
|
|
2004
|
+
x(e.$slots, "default", {}, void 0, !0)
|
|
1962
2005
|
])) : v("", !0)
|
|
1963
2006
|
], 64);
|
|
1964
2007
|
}
|
|
1965
|
-
const
|
|
2008
|
+
const Ao = /* @__PURE__ */ b($o, [["render", Bo], ["__scopeId", "data-v-a3766aaf"]]), xo = g({
|
|
1966
2009
|
name: "builder-section-component",
|
|
1967
2010
|
props: ["attributes", "maxWidth"],
|
|
1968
2011
|
data() {
|
|
1969
2012
|
return { filterAttrs: W };
|
|
1970
2013
|
}
|
|
1971
2014
|
});
|
|
1972
|
-
function
|
|
2015
|
+
function Vo(e, t, n, o, r, s) {
|
|
1973
2016
|
return c(), p("section", C({
|
|
1974
2017
|
style: {
|
|
1975
2018
|
width: "100%",
|
|
@@ -1983,11 +2026,11 @@ function Po(e, t, n, o, r, i) {
|
|
|
1983
2026
|
marginLeft: "auto",
|
|
1984
2027
|
marginRight: "auto"
|
|
1985
2028
|
}
|
|
1986
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1987
|
-
|
|
2029
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
2030
|
+
x(e.$slots, "default")
|
|
1988
2031
|
], 16);
|
|
1989
2032
|
}
|
|
1990
|
-
const
|
|
2033
|
+
const Wo = /* @__PURE__ */ b(xo, [["render", Vo]]), se = {
|
|
1991
2034
|
"@type": "@builder.io/sdk:Element",
|
|
1992
2035
|
layerName: "Accordion item title",
|
|
1993
2036
|
responsiveStyles: {
|
|
@@ -2016,7 +2059,7 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), ie = {
|
|
|
2016
2059
|
}
|
|
2017
2060
|
}
|
|
2018
2061
|
}]
|
|
2019
|
-
},
|
|
2062
|
+
}, ie = {
|
|
2020
2063
|
"@type": "@builder.io/sdk:Element",
|
|
2021
2064
|
layerName: "Accordion item detail",
|
|
2022
2065
|
responsiveStyles: {
|
|
@@ -2047,7 +2090,7 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), ie = {
|
|
|
2047
2090
|
}
|
|
2048
2091
|
}
|
|
2049
2092
|
}]
|
|
2050
|
-
},
|
|
2093
|
+
}, No = {
|
|
2051
2094
|
name: "Builder:Accordion",
|
|
2052
2095
|
canHaveChildren: !0,
|
|
2053
2096
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2064,19 +2107,19 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), ie = {
|
|
|
2064
2107
|
name: "title",
|
|
2065
2108
|
type: "uiBlocks",
|
|
2066
2109
|
hideFromUI: !0,
|
|
2067
|
-
defaultValue: [
|
|
2110
|
+
defaultValue: [se]
|
|
2068
2111
|
}, {
|
|
2069
2112
|
name: "detail",
|
|
2070
2113
|
type: "uiBlocks",
|
|
2071
2114
|
hideFromUI: !0,
|
|
2072
|
-
defaultValue: [
|
|
2115
|
+
defaultValue: [ie]
|
|
2073
2116
|
}],
|
|
2074
2117
|
defaultValue: [{
|
|
2075
|
-
title: [
|
|
2076
|
-
detail: [
|
|
2118
|
+
title: [se],
|
|
2119
|
+
detail: [ie]
|
|
2077
2120
|
}, {
|
|
2078
|
-
title: [
|
|
2079
|
-
detail: [
|
|
2121
|
+
title: [se],
|
|
2122
|
+
detail: [ie]
|
|
2080
2123
|
}],
|
|
2081
2124
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2082
2125
|
}, {
|
|
@@ -2111,9 +2154,9 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), ie = {
|
|
|
2111
2154
|
builderComponents: !0,
|
|
2112
2155
|
builderLinkComponent: !0
|
|
2113
2156
|
}
|
|
2114
|
-
},
|
|
2157
|
+
}, Oo = (e) => e.toString(), Fo = g({
|
|
2115
2158
|
name: "builder-accordion",
|
|
2116
|
-
components: { Blocks:
|
|
2159
|
+
components: { Blocks: M },
|
|
2117
2160
|
props: [
|
|
2118
2161
|
"grid",
|
|
2119
2162
|
"oneAtATime",
|
|
@@ -2125,7 +2168,7 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), ie = {
|
|
|
2125
2168
|
"builderLinkComponent"
|
|
2126
2169
|
],
|
|
2127
2170
|
data() {
|
|
2128
|
-
return { open: [], convertOrderNumberToString:
|
|
2171
|
+
return { open: [], convertOrderNumberToString: Oo };
|
|
2129
2172
|
},
|
|
2130
2173
|
computed: {
|
|
2131
2174
|
onlyOneAtATime() {
|
|
@@ -2164,18 +2207,18 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), ie = {
|
|
|
2164
2207
|
`.builder-accordion-title[data-index="${n}"]`
|
|
2165
2208
|
);
|
|
2166
2209
|
if (e = n, r) {
|
|
2167
|
-
let
|
|
2210
|
+
let s = r.getBoundingClientRect();
|
|
2168
2211
|
for (; r = r && r.nextElementSibling; )
|
|
2169
2212
|
if (r) {
|
|
2170
2213
|
if (r.classList.contains("builder-accordion-detail"))
|
|
2171
2214
|
continue;
|
|
2172
|
-
const
|
|
2173
|
-
if (
|
|
2215
|
+
const i = r.getBoundingClientRect();
|
|
2216
|
+
if (i.left > s.left) {
|
|
2174
2217
|
const l = parseInt(
|
|
2175
2218
|
r.getAttribute("data-index") || "",
|
|
2176
2219
|
10
|
|
2177
2220
|
);
|
|
2178
|
-
isNaN(l) || (
|
|
2221
|
+
isNaN(l) || (s = i, e = l);
|
|
2179
2222
|
} else
|
|
2180
2223
|
break;
|
|
2181
2224
|
}
|
|
@@ -2206,16 +2249,16 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), ie = {
|
|
|
2206
2249
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2207
2250
|
}
|
|
2208
2251
|
}
|
|
2209
|
-
}),
|
|
2210
|
-
function
|
|
2211
|
-
const
|
|
2252
|
+
}), Do = ["data-index", "onClick"];
|
|
2253
|
+
function Lo(e, t, n, o, r, s) {
|
|
2254
|
+
const i = k("Blocks");
|
|
2212
2255
|
return c(), p("div", {
|
|
2213
2256
|
class: "builder-accordion",
|
|
2214
2257
|
style: F(e.accordionStyles)
|
|
2215
2258
|
}, [
|
|
2216
2259
|
(c(!0), p(T, null, V(e.items, (l, a) => (c(), p(T, { key: a }, [
|
|
2217
|
-
|
|
2218
|
-
class:
|
|
2260
|
+
z("div", {
|
|
2261
|
+
class: G(e.getAccordionTitleClassName(a)),
|
|
2219
2262
|
style: F({
|
|
2220
2263
|
...e.accordionTitleStyles,
|
|
2221
2264
|
...e.grid && {
|
|
@@ -2224,9 +2267,9 @@ function No(e, t, n, o, r, i) {
|
|
|
2224
2267
|
}
|
|
2225
2268
|
}),
|
|
2226
2269
|
"data-index": a,
|
|
2227
|
-
onClick: (u) => e.onClick(a)
|
|
2270
|
+
onClick: async (u) => e.onClick(a)
|
|
2228
2271
|
}, [
|
|
2229
|
-
P(
|
|
2272
|
+
P(i, {
|
|
2230
2273
|
blocks: l.title,
|
|
2231
2274
|
path: `items.${a}.title`,
|
|
2232
2275
|
parent: e.builderBlock.id,
|
|
@@ -2234,13 +2277,13 @@ function No(e, t, n, o, r, i) {
|
|
|
2234
2277
|
registeredComponents: e.builderComponents,
|
|
2235
2278
|
linkComponent: e.builderLinkComponent
|
|
2236
2279
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2237
|
-
], 14,
|
|
2280
|
+
], 14, Do),
|
|
2238
2281
|
e.open.includes(a) ? (c(), p("div", {
|
|
2239
2282
|
key: 0,
|
|
2240
|
-
class:
|
|
2283
|
+
class: G(e.getAccordionDetailClassName(a)),
|
|
2241
2284
|
style: F(e.accordionDetailStyles)
|
|
2242
2285
|
}, [
|
|
2243
|
-
P(
|
|
2286
|
+
P(i, {
|
|
2244
2287
|
blocks: l.detail,
|
|
2245
2288
|
path: `items.${a}.detail`,
|
|
2246
2289
|
parent: e.builderBlock.id,
|
|
@@ -2252,7 +2295,7 @@ function No(e, t, n, o, r, i) {
|
|
|
2252
2295
|
], 64))), 128))
|
|
2253
2296
|
], 4);
|
|
2254
2297
|
}
|
|
2255
|
-
const
|
|
2298
|
+
const Uo = /* @__PURE__ */ b(Fo, [["render", Lo]]), Mo = {
|
|
2256
2299
|
name: "Core:Button",
|
|
2257
2300
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2258
2301
|
defaultStyles: {
|
|
@@ -2288,7 +2331,7 @@ const Oo = /* @__PURE__ */ b(Vo, [["render", No]]), Fo = {
|
|
|
2288
2331
|
shouldReceiveBuilderProps: {
|
|
2289
2332
|
builderLinkComponent: !0
|
|
2290
2333
|
}
|
|
2291
|
-
},
|
|
2334
|
+
}, Ho = {
|
|
2292
2335
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2293
2336
|
name: "Columns",
|
|
2294
2337
|
isRSC: !0,
|
|
@@ -2467,7 +2510,7 @@ const Oo = /* @__PURE__ */ b(Vo, [["render", No]]), Fo = {
|
|
|
2467
2510
|
});
|
|
2468
2511
|
}
|
|
2469
2512
|
const n = e.get("columns");
|
|
2470
|
-
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((
|
|
2513
|
+
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((s) => !s.get("width")) || n.reduce((l, a) => l + a.get("width"), 0) !== 100) && t();
|
|
2471
2514
|
}
|
|
2472
2515
|
}, {
|
|
2473
2516
|
name: "space",
|
|
@@ -2495,13 +2538,13 @@ const Oo = /* @__PURE__ */ b(Vo, [["render", No]]), Fo = {
|
|
|
2495
2538
|
builderComponents: !0,
|
|
2496
2539
|
builderLinkComponent: !0
|
|
2497
2540
|
}
|
|
2498
|
-
},
|
|
2541
|
+
}, jo = {
|
|
2499
2542
|
name: "Fragment",
|
|
2500
2543
|
static: !0,
|
|
2501
2544
|
hidden: !0,
|
|
2502
2545
|
canHaveChildren: !0,
|
|
2503
2546
|
noWrap: !0
|
|
2504
|
-
}, Ce = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"],
|
|
2547
|
+
}, Ce = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Ko = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], qo = {
|
|
2505
2548
|
name: "Image",
|
|
2506
2549
|
static: !0,
|
|
2507
2550
|
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",
|
|
@@ -2521,7 +2564,7 @@ const Oo = /* @__PURE__ */ b(Vo, [["render", No]]), Fo = {
|
|
|
2521
2564
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2522
2565
|
onChange: (e) => {
|
|
2523
2566
|
e.delete("srcset"), e.delete("noWebp");
|
|
2524
|
-
function n(
|
|
2567
|
+
function n(i, l = 6e4) {
|
|
2525
2568
|
return new Promise((a, u) => {
|
|
2526
2569
|
const m = document.createElement("img");
|
|
2527
2570
|
let h = !1;
|
|
@@ -2529,21 +2572,21 @@ const Oo = /* @__PURE__ */ b(Vo, [["render", No]]), Fo = {
|
|
|
2529
2572
|
h = !0, a(m);
|
|
2530
2573
|
}, m.addEventListener("error", (d) => {
|
|
2531
2574
|
console.warn("Image load failed", d.error), u(d.error);
|
|
2532
|
-
}), m.src =
|
|
2575
|
+
}), m.src = i, setTimeout(() => {
|
|
2533
2576
|
h || u(new Error("Image load timed out"));
|
|
2534
2577
|
}, l);
|
|
2535
2578
|
});
|
|
2536
2579
|
}
|
|
2537
|
-
function o(
|
|
2538
|
-
return Math.round(
|
|
2580
|
+
function o(i) {
|
|
2581
|
+
return Math.round(i * 1e3) / 1e3;
|
|
2539
2582
|
}
|
|
2540
|
-
const r = e.get("image"),
|
|
2541
|
-
if (fetch(r).then((
|
|
2542
|
-
|
|
2543
|
-
}), r && (!
|
|
2544
|
-
return n(r).then((
|
|
2583
|
+
const r = e.get("image"), s = e.get("aspectRatio");
|
|
2584
|
+
if (fetch(r).then((i) => i.blob()).then((i) => {
|
|
2585
|
+
i.type.includes("svg") && e.set("noWebp", !0);
|
|
2586
|
+
}), r && (!s || s === 0.7041))
|
|
2587
|
+
return n(r).then((i) => {
|
|
2545
2588
|
const l = e.get("aspectRatio");
|
|
2546
|
-
e.get("image") === r && (!l || l === 0.7041) &&
|
|
2589
|
+
e.get("image") === r && (!l || l === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
2547
2590
|
});
|
|
2548
2591
|
}
|
|
2549
2592
|
}, {
|
|
@@ -2609,7 +2652,7 @@ const Oo = /* @__PURE__ */ b(Vo, [["render", No]]), Fo = {
|
|
|
2609
2652
|
shouldReceiveBuilderProps: {
|
|
2610
2653
|
builderBlock: !0
|
|
2611
2654
|
}
|
|
2612
|
-
},
|
|
2655
|
+
}, zo = {
|
|
2613
2656
|
name: "Core:Section",
|
|
2614
2657
|
static: !0,
|
|
2615
2658
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2648,7 +2691,7 @@ const Oo = /* @__PURE__ */ b(Vo, [["render", No]]), Fo = {
|
|
|
2648
2691
|
}
|
|
2649
2692
|
}
|
|
2650
2693
|
}]
|
|
2651
|
-
},
|
|
2694
|
+
}, Go = {
|
|
2652
2695
|
name: "Slot",
|
|
2653
2696
|
isRSC: !0,
|
|
2654
2697
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2665,14 +2708,14 @@ const Oo = /* @__PURE__ */ b(Vo, [["render", No]]), Fo = {
|
|
|
2665
2708
|
builderContext: !0,
|
|
2666
2709
|
builderComponents: !0
|
|
2667
2710
|
}
|
|
2668
|
-
},
|
|
2711
|
+
}, Jo = g({
|
|
2669
2712
|
name: "builder-slot",
|
|
2670
|
-
components: { Blocks:
|
|
2713
|
+
components: { Blocks: M },
|
|
2671
2714
|
props: ["builderContext", "name", "builderComponents"]
|
|
2672
2715
|
});
|
|
2673
|
-
function
|
|
2716
|
+
function Yo(e, t, n, o, r, s) {
|
|
2674
2717
|
var l, a, u;
|
|
2675
|
-
const
|
|
2718
|
+
const i = k("Blocks");
|
|
2676
2719
|
return c(), p("div", C(
|
|
2677
2720
|
{ style: {
|
|
2678
2721
|
pointerEvents: "auto"
|
|
@@ -2681,7 +2724,7 @@ function qo(e, t, n, o, r, i) {
|
|
|
2681
2724
|
"builder-slot": e.name
|
|
2682
2725
|
}
|
|
2683
2726
|
), [
|
|
2684
|
-
P(
|
|
2727
|
+
P(i, {
|
|
2685
2728
|
parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
|
|
2686
2729
|
path: `symbol.data.${e.name}`,
|
|
2687
2730
|
context: e.builderContext,
|
|
@@ -2690,7 +2733,7 @@ function qo(e, t, n, o, r, i) {
|
|
|
2690
2733
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
2691
2734
|
], 16);
|
|
2692
2735
|
}
|
|
2693
|
-
const
|
|
2736
|
+
const Xo = /* @__PURE__ */ b(Jo, [["render", Yo]]), Qo = {
|
|
2694
2737
|
name: "Symbol",
|
|
2695
2738
|
noWrap: !0,
|
|
2696
2739
|
static: !0,
|
|
@@ -2767,7 +2810,7 @@ const zo = /* @__PURE__ */ b(Ko, [["render", qo]]), Go = {
|
|
|
2767
2810
|
text: "New tab content "
|
|
2768
2811
|
}
|
|
2769
2812
|
}
|
|
2770
|
-
},
|
|
2813
|
+
}, Zo = {
|
|
2771
2814
|
name: "Builder: Tabs",
|
|
2772
2815
|
inputs: [{
|
|
2773
2816
|
name: "tabs",
|
|
@@ -2870,9 +2913,9 @@ const zo = /* @__PURE__ */ b(Ko, [["render", qo]]), Go = {
|
|
|
2870
2913
|
builderComponents: !0,
|
|
2871
2914
|
builderLinkComponent: !0
|
|
2872
2915
|
}
|
|
2873
|
-
},
|
|
2916
|
+
}, _o = g({
|
|
2874
2917
|
name: "builder-tabs",
|
|
2875
|
-
components: { Blocks:
|
|
2918
|
+
components: { Blocks: M },
|
|
2876
2919
|
props: [
|
|
2877
2920
|
"defaultActiveTab",
|
|
2878
2921
|
"tabs",
|
|
@@ -2895,11 +2938,11 @@ const zo = /* @__PURE__ */ b(Ko, [["render", qo]]), Go = {
|
|
|
2895
2938
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
2896
2939
|
}
|
|
2897
2940
|
}
|
|
2898
|
-
}),
|
|
2899
|
-
function
|
|
2900
|
-
const
|
|
2941
|
+
}), er = ["onClick"], tr = { key: 0 };
|
|
2942
|
+
function nr(e, t, n, o, r, s) {
|
|
2943
|
+
const i = k("Blocks");
|
|
2901
2944
|
return c(), p("div", null, [
|
|
2902
|
-
|
|
2945
|
+
z("div", {
|
|
2903
2946
|
class: "builder-tabs-wrap",
|
|
2904
2947
|
style: F({
|
|
2905
2948
|
display: "flex",
|
|
@@ -2910,13 +2953,13 @@ function Zo(e, t, n, o, r, i) {
|
|
|
2910
2953
|
}, [
|
|
2911
2954
|
(c(!0), p(T, null, V(e.tabs, (l, a) => (c(), p("span", {
|
|
2912
2955
|
key: a,
|
|
2913
|
-
class:
|
|
2956
|
+
class: G(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
2914
2957
|
style: F({
|
|
2915
2958
|
...e.activeTab === a ? e.activeTabStyle : {}
|
|
2916
2959
|
}),
|
|
2917
|
-
onClick: (u) => e.onClick(a)
|
|
2960
|
+
onClick: async (u) => e.onClick(a)
|
|
2918
2961
|
}, [
|
|
2919
|
-
P(
|
|
2962
|
+
P(i, {
|
|
2920
2963
|
parent: e.builderBlock.id,
|
|
2921
2964
|
path: `tabs.${a}.label`,
|
|
2922
2965
|
blocks: l.label,
|
|
@@ -2924,10 +2967,10 @@ function Zo(e, t, n, o, r, i) {
|
|
|
2924
2967
|
registeredComponents: e.builderComponents,
|
|
2925
2968
|
linkComponent: e.builderLinkComponent
|
|
2926
2969
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2927
|
-
], 14,
|
|
2970
|
+
], 14, er))), 128))
|
|
2928
2971
|
], 4),
|
|
2929
|
-
e.activeTabContent(e.activeTab) ? (c(), p("div",
|
|
2930
|
-
P(
|
|
2972
|
+
e.activeTabContent(e.activeTab) ? (c(), p("div", tr, [
|
|
2973
|
+
P(i, {
|
|
2931
2974
|
parent: e.builderBlock.id,
|
|
2932
2975
|
path: `tabs.${e.activeTab}.content`,
|
|
2933
2976
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -2938,7 +2981,7 @@ function Zo(e, t, n, o, r, i) {
|
|
|
2938
2981
|
])) : v("", !0)
|
|
2939
2982
|
]);
|
|
2940
2983
|
}
|
|
2941
|
-
const
|
|
2984
|
+
const or = /* @__PURE__ */ b(_o, [["render", nr]]), rr = {
|
|
2942
2985
|
shouldReceiveBuilderProps: {
|
|
2943
2986
|
builderBlock: !1,
|
|
2944
2987
|
builderContext: !0
|
|
@@ -2960,41 +3003,21 @@ const _o = /* @__PURE__ */ b(Yo, [["render", Zo]]), er = {
|
|
|
2960
3003
|
height: "auto",
|
|
2961
3004
|
textAlign: "center"
|
|
2962
3005
|
}
|
|
2963
|
-
},
|
|
3006
|
+
}, sr = g({
|
|
2964
3007
|
name: "builder-text",
|
|
2965
|
-
props: ["
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
const e = this.builderContext, {
|
|
2970
|
-
context: t,
|
|
2971
|
-
localState: n,
|
|
2972
|
-
rootState: o,
|
|
2973
|
-
rootSetState: r
|
|
2974
|
-
} = e;
|
|
2975
|
-
return String(((i = this.text) == null ? void 0 : i.toString()) || "").replace(
|
|
2976
|
-
/{{([^}]+)}}/g,
|
|
2977
|
-
(s, l) => J({
|
|
2978
|
-
code: l,
|
|
2979
|
-
context: t,
|
|
2980
|
-
localState: n,
|
|
2981
|
-
rootState: o,
|
|
2982
|
-
rootSetState: r
|
|
2983
|
-
})
|
|
2984
|
-
);
|
|
2985
|
-
}
|
|
2986
|
-
}
|
|
2987
|
-
}), nr = ["innerHTML"];
|
|
2988
|
-
function or(e, t, n, o, r, i) {
|
|
3008
|
+
props: ["text"]
|
|
3009
|
+
}), ir = ["innerHTML"];
|
|
3010
|
+
function ar(e, t, n, o, r, s) {
|
|
3011
|
+
var i;
|
|
2989
3012
|
return c(), p("div", {
|
|
2990
3013
|
class: "builder-text",
|
|
2991
|
-
innerHTML: e.
|
|
3014
|
+
innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
|
|
2992
3015
|
style: {
|
|
2993
3016
|
outline: "none"
|
|
2994
3017
|
}
|
|
2995
|
-
}, null, 8,
|
|
3018
|
+
}, null, 8, ir);
|
|
2996
3019
|
}
|
|
2997
|
-
const
|
|
3020
|
+
const lr = /* @__PURE__ */ b(sr, [["render", ar]]), cr = {
|
|
2998
3021
|
name: "Custom Code",
|
|
2999
3022
|
static: !0,
|
|
3000
3023
|
requiredPermissions: ["editCode"],
|
|
@@ -3016,7 +3039,7 @@ const rr = /* @__PURE__ */ b(tr, [["render", or]]), ir = {
|
|
|
3016
3039
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3017
3040
|
advanced: !0
|
|
3018
3041
|
}]
|
|
3019
|
-
},
|
|
3042
|
+
}, dr = g({
|
|
3020
3043
|
name: "builder-custom-code",
|
|
3021
3044
|
props: ["replaceNodes", "code"],
|
|
3022
3045
|
data() {
|
|
@@ -3050,15 +3073,15 @@ const rr = /* @__PURE__ */ b(tr, [["render", or]]), ir = {
|
|
|
3050
3073
|
}
|
|
3051
3074
|
}
|
|
3052
3075
|
}
|
|
3053
|
-
}),
|
|
3054
|
-
function
|
|
3076
|
+
}), ur = ["innerHTML"];
|
|
3077
|
+
function pr(e, t, n, o, r, s) {
|
|
3055
3078
|
return c(), p("div", {
|
|
3056
3079
|
ref: "elementRef",
|
|
3057
|
-
class:
|
|
3080
|
+
class: G("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3058
3081
|
innerHTML: e.code
|
|
3059
|
-
}, null, 10,
|
|
3082
|
+
}, null, 10, ur);
|
|
3060
3083
|
}
|
|
3061
|
-
const
|
|
3084
|
+
const mr = /* @__PURE__ */ b(dr, [["render", pr]]), hr = {
|
|
3062
3085
|
name: "Embed",
|
|
3063
3086
|
static: !0,
|
|
3064
3087
|
inputs: [{
|
|
@@ -3073,7 +3096,7 @@ const cr = /* @__PURE__ */ b(sr, [["render", lr]]), dr = {
|
|
|
3073
3096
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3074
3097
|
hideFromUI: !0
|
|
3075
3098
|
}]
|
|
3076
|
-
},
|
|
3099
|
+
}, fr = ["text/javascript", "application/javascript", "application/ecmascript"], gr = (e) => fr.includes(e.type), br = g({
|
|
3077
3100
|
name: "builder-embed",
|
|
3078
3101
|
props: ["content"],
|
|
3079
3102
|
data() {
|
|
@@ -3106,7 +3129,7 @@ const cr = /* @__PURE__ */ b(sr, [["render", lr]]), dr = {
|
|
|
3106
3129
|
this.scriptsInserted.push(n.src);
|
|
3107
3130
|
const o = document.createElement("script");
|
|
3108
3131
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3109
|
-
} else if (
|
|
3132
|
+
} else if (gr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3110
3133
|
try {
|
|
3111
3134
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3112
3135
|
} catch (o) {
|
|
@@ -3115,15 +3138,15 @@ const cr = /* @__PURE__ */ b(sr, [["render", lr]]), dr = {
|
|
|
3115
3138
|
}
|
|
3116
3139
|
}
|
|
3117
3140
|
}
|
|
3118
|
-
}),
|
|
3119
|
-
function
|
|
3141
|
+
}), yr = ["innerHTML"];
|
|
3142
|
+
function kr(e, t, n, o, r, s) {
|
|
3120
3143
|
return c(), p("div", {
|
|
3121
3144
|
class: "builder-embed",
|
|
3122
3145
|
ref: "elem",
|
|
3123
3146
|
innerHTML: e.content
|
|
3124
|
-
}, null, 8,
|
|
3147
|
+
}, null, 8, yr);
|
|
3125
3148
|
}
|
|
3126
|
-
const
|
|
3149
|
+
const vr = /* @__PURE__ */ b(br, [["render", kr]]), Sr = {
|
|
3127
3150
|
name: "Form:Form",
|
|
3128
3151
|
// editableTags: ['builder-form-error']
|
|
3129
3152
|
defaults: {
|
|
@@ -3360,12 +3383,12 @@ const gr = /* @__PURE__ */ b(mr, [["render", fr]]), br = {
|
|
|
3360
3383
|
builderComponents: !0,
|
|
3361
3384
|
builderLinkComponent: !0
|
|
3362
3385
|
}
|
|
3363
|
-
},
|
|
3386
|
+
}, Cr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], wr = () => {
|
|
3364
3387
|
const e = process.env.NODE_ENV || "production";
|
|
3365
|
-
return
|
|
3366
|
-
},
|
|
3388
|
+
return Cr.includes(e) ? e : "production";
|
|
3389
|
+
}, Tr = g({
|
|
3367
3390
|
name: "builder-form-component",
|
|
3368
|
-
components: { Block: ve, Blocks:
|
|
3391
|
+
components: { Block: ve, Blocks: M },
|
|
3369
3392
|
props: [
|
|
3370
3393
|
"builderContext",
|
|
3371
3394
|
"previewState",
|
|
@@ -3421,8 +3444,8 @@ const gr = /* @__PURE__ */ b(mr, [["render", fr]]), br = {
|
|
|
3421
3444
|
}
|
|
3422
3445
|
e.preventDefault();
|
|
3423
3446
|
const o = e.currentTarget || e.target, r = this.customHeaders || {};
|
|
3424
|
-
let
|
|
3425
|
-
const
|
|
3447
|
+
let s;
|
|
3448
|
+
const i = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((d) => !!d.name).map((d) => {
|
|
3426
3449
|
let f;
|
|
3427
3450
|
const S = d.name;
|
|
3428
3451
|
if (d instanceof HTMLInputElement)
|
|
@@ -3450,27 +3473,27 @@ const gr = /* @__PURE__ */ b(mr, [["render", fr]]), br = {
|
|
|
3450
3473
|
if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: d }) => {
|
|
3451
3474
|
(d instanceof File || Array.isArray(d) && d[0] instanceof File || d instanceof FileList) && (a = "multipart/form-data");
|
|
3452
3475
|
}), a !== "application/json")
|
|
3453
|
-
|
|
3476
|
+
s = i;
|
|
3454
3477
|
else {
|
|
3455
3478
|
const d = {};
|
|
3456
3479
|
Array.from(l).forEach(({ value: f, key: S }) => {
|
|
3457
|
-
|
|
3458
|
-
}),
|
|
3480
|
+
je(d, S, f);
|
|
3481
|
+
}), s = JSON.stringify(d);
|
|
3459
3482
|
}
|
|
3460
3483
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
3461
3484
|
const u = new CustomEvent("presubmit", {
|
|
3462
3485
|
detail: {
|
|
3463
|
-
body:
|
|
3486
|
+
body: s
|
|
3464
3487
|
}
|
|
3465
3488
|
});
|
|
3466
3489
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
|
|
3467
3490
|
return;
|
|
3468
3491
|
this.formState = "sending";
|
|
3469
|
-
const m = `${
|
|
3492
|
+
const m = `${wr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3470
3493
|
this.sendSubmissionsToEmail || ""
|
|
3471
3494
|
)}&name=${encodeURIComponent(this.name || "")}`, h = this.sendSubmissionsTo === "email" ? m : this.action;
|
|
3472
3495
|
fe(h), fetch(h, {
|
|
3473
|
-
body:
|
|
3496
|
+
body: s,
|
|
3474
3497
|
headers: r,
|
|
3475
3498
|
method: this.method || "post"
|
|
3476
3499
|
}).then(
|
|
@@ -3478,7 +3501,7 @@ const gr = /* @__PURE__ */ b(mr, [["render", fr]]), br = {
|
|
|
3478
3501
|
let f;
|
|
3479
3502
|
const S = d.headers.get("content-type");
|
|
3480
3503
|
if (S && S.indexOf("application/json") !== -1 ? f = await d.json() : f = await d.text(), !d.ok && this.errorMessagePath) {
|
|
3481
|
-
let w =
|
|
3504
|
+
let w = Fe(f, this.errorMessagePath);
|
|
3482
3505
|
w && (typeof w != "string" && (w = JSON.stringify(w)), this.formErrorMessage = w, this.mergeNewRootState({
|
|
3483
3506
|
formErrorMessage: w
|
|
3484
3507
|
}));
|
|
@@ -3519,23 +3542,23 @@ const gr = /* @__PURE__ */ b(mr, [["render", fr]]), br = {
|
|
|
3519
3542
|
}
|
|
3520
3543
|
}
|
|
3521
3544
|
}
|
|
3522
|
-
}),
|
|
3545
|
+
}), Ir = ["validate", "action", "method", "name"], $r = {
|
|
3523
3546
|
key: 3,
|
|
3524
3547
|
class: "builder-form-error-text pre-3q96myty4lk"
|
|
3525
3548
|
};
|
|
3526
|
-
function
|
|
3549
|
+
function Rr(e, t, n, o, r, s) {
|
|
3527
3550
|
var a;
|
|
3528
|
-
const
|
|
3551
|
+
const i = k("Block"), l = k("Blocks");
|
|
3529
3552
|
return c(), p("form", C({
|
|
3530
3553
|
validate: e.validate,
|
|
3531
3554
|
ref: "formRef",
|
|
3532
3555
|
action: !e.sendWithJs && e.action,
|
|
3533
3556
|
method: e.method,
|
|
3534
3557
|
name: e.name,
|
|
3535
|
-
onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
|
|
3536
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3537
|
-
e.builderBlock && e.builderBlock.children ? (c(!0), p(T, { key: 0 }, V((a = e.builderBlock) == null ? void 0 : a.children, (u, m) => (c(), y(
|
|
3538
|
-
key: `form-block-${
|
|
3558
|
+
onSubmit: t[0] || (t[0] = async (u) => e.onSubmit(u))
|
|
3559
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3560
|
+
e.builderBlock && e.builderBlock.children ? (c(!0), p(T, { key: 0 }, V((a = e.builderBlock) == null ? void 0 : a.children, (u, m) => (c(), y(i, {
|
|
3561
|
+
key: `form-block-${m}`,
|
|
3539
3562
|
block: u,
|
|
3540
3563
|
context: e.builderContext,
|
|
3541
3564
|
registeredComponents: e.builderComponents,
|
|
@@ -3553,16 +3576,16 @@ function wr(e, t, n, o, r, i) {
|
|
|
3553
3576
|
blocks: e.sendingMessage,
|
|
3554
3577
|
context: e.builderContext
|
|
3555
3578
|
}, null, 8, ["blocks", "context"])) : v("", !0),
|
|
3556
|
-
e.submissionState() === "error" && e.responseData ? (c(), p("pre",
|
|
3579
|
+
e.submissionState() === "error" && e.responseData ? (c(), p("pre", $r, ne(JSON.stringify(e.responseData, null, 2)), 1)) : v("", !0),
|
|
3557
3580
|
e.submissionState() === "success" ? (c(), y(l, {
|
|
3558
3581
|
key: 4,
|
|
3559
3582
|
path: "successMessage",
|
|
3560
3583
|
blocks: e.successMessage,
|
|
3561
3584
|
context: e.builderContext
|
|
3562
3585
|
}, null, 8, ["blocks", "context"])) : v("", !0)
|
|
3563
|
-
], 16,
|
|
3586
|
+
], 16, Ir);
|
|
3564
3587
|
}
|
|
3565
|
-
const
|
|
3588
|
+
const Er = /* @__PURE__ */ b(Tr, [["render", Rr], ["__scopeId", "data-v-92491cd4"]]), Pr = {
|
|
3566
3589
|
name: "Form:Input",
|
|
3567
3590
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3568
3591
|
inputs: [
|
|
@@ -3613,7 +3636,7 @@ const Tr = /* @__PURE__ */ b(vr, [["render", wr], ["__scopeId", "data-v-cd94d6c1
|
|
|
3613
3636
|
borderStyle: "solid",
|
|
3614
3637
|
borderColor: "#ccc"
|
|
3615
3638
|
}
|
|
3616
|
-
},
|
|
3639
|
+
}, Br = g({
|
|
3617
3640
|
name: "builder-form-input-component",
|
|
3618
3641
|
props: [
|
|
3619
3642
|
"attributes",
|
|
@@ -3627,8 +3650,8 @@ const Tr = /* @__PURE__ */ b(vr, [["render", wr], ["__scopeId", "data-v-cd94d6c1
|
|
|
3627
3650
|
data() {
|
|
3628
3651
|
return { isEditing: E, filterAttrs: W };
|
|
3629
3652
|
}
|
|
3630
|
-
}),
|
|
3631
|
-
function
|
|
3653
|
+
}), Ar = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3654
|
+
function xr(e, t, n, o, r, s) {
|
|
3632
3655
|
return c(), p("input", C({
|
|
3633
3656
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3634
3657
|
placeholder: e.placeholder,
|
|
@@ -3637,9 +3660,9 @@ function Er(e, t, n, o, r, i) {
|
|
|
3637
3660
|
value: e.value,
|
|
3638
3661
|
defaultValue: e.defaultValue,
|
|
3639
3662
|
required: e.required
|
|
3640
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3663
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ar);
|
|
3641
3664
|
}
|
|
3642
|
-
const
|
|
3665
|
+
const Vr = /* @__PURE__ */ b(Br, [["render", xr]]), Wr = {
|
|
3643
3666
|
name: "Form:Select",
|
|
3644
3667
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3645
3668
|
defaultStyles: {
|
|
@@ -3681,28 +3704,28 @@ const Pr = /* @__PURE__ */ b($r, [["render", Er]]), Br = {
|
|
|
3681
3704
|
}],
|
|
3682
3705
|
static: !0,
|
|
3683
3706
|
noWrap: !0
|
|
3684
|
-
},
|
|
3707
|
+
}, Nr = g({
|
|
3685
3708
|
name: "builder-select-component",
|
|
3686
3709
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
3687
3710
|
data() {
|
|
3688
3711
|
return { isEditing: E, filterAttrs: W };
|
|
3689
3712
|
}
|
|
3690
|
-
}),
|
|
3691
|
-
function
|
|
3713
|
+
}), Or = ["value", "defaultValue", "name", "required"], Fr = ["value"];
|
|
3714
|
+
function Dr(e, t, n, o, r, s) {
|
|
3692
3715
|
return c(), p("select", C({
|
|
3693
3716
|
value: e.value,
|
|
3694
3717
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3695
3718
|
defaultValue: e.defaultValue,
|
|
3696
3719
|
name: e.name,
|
|
3697
3720
|
required: e.required
|
|
3698
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3699
|
-
(c(!0), p(T, null, V(e.options, (
|
|
3700
|
-
key: `${
|
|
3701
|
-
value:
|
|
3702
|
-
}, ne(
|
|
3703
|
-
], 16,
|
|
3721
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3722
|
+
(c(!0), p(T, null, V(e.options, (i, l) => (c(), p("option", {
|
|
3723
|
+
key: `${i.name}-${l}`,
|
|
3724
|
+
value: i.value
|
|
3725
|
+
}, ne(i.name || i.value), 9, Fr))), 128))
|
|
3726
|
+
], 16, Or);
|
|
3704
3727
|
}
|
|
3705
|
-
const
|
|
3728
|
+
const Lr = /* @__PURE__ */ b(Nr, [["render", Dr]]), Ur = {
|
|
3706
3729
|
name: "Form:SubmitButton",
|
|
3707
3730
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3708
3731
|
defaultStyles: {
|
|
@@ -3727,17 +3750,17 @@ const Nr = /* @__PURE__ */ b(xr, [["render", Wr]]), Or = {
|
|
|
3727
3750
|
// that only shows if advanced setting is flipped
|
|
3728
3751
|
// TODO: defaultChildren
|
|
3729
3752
|
// canHaveChildren: true,
|
|
3730
|
-
},
|
|
3753
|
+
}, Mr = g({
|
|
3731
3754
|
name: "builder-submit-button",
|
|
3732
3755
|
props: ["attributes", "text"],
|
|
3733
3756
|
data() {
|
|
3734
3757
|
return { filterAttrs: W };
|
|
3735
3758
|
}
|
|
3736
3759
|
});
|
|
3737
|
-
function
|
|
3738
|
-
return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3760
|
+
function Hr(e, t, n, o, r, s) {
|
|
3761
|
+
return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ne(e.text), 17);
|
|
3739
3762
|
}
|
|
3740
|
-
const
|
|
3763
|
+
const jr = /* @__PURE__ */ b(Mr, [["render", Hr]]), Kr = {
|
|
3741
3764
|
name: "Form:TextArea",
|
|
3742
3765
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3743
3766
|
inputs: [{
|
|
@@ -3773,7 +3796,7 @@ const Lr = /* @__PURE__ */ b(Fr, [["render", Dr]]), Ur = {
|
|
|
3773
3796
|
},
|
|
3774
3797
|
static: !0,
|
|
3775
3798
|
noWrap: !0
|
|
3776
|
-
},
|
|
3799
|
+
}, qr = g({
|
|
3777
3800
|
name: "builder-textarea",
|
|
3778
3801
|
props: [
|
|
3779
3802
|
"attributes",
|
|
@@ -3786,17 +3809,17 @@ const Lr = /* @__PURE__ */ b(Fr, [["render", Dr]]), Ur = {
|
|
|
3786
3809
|
data() {
|
|
3787
3810
|
return { filterAttrs: W };
|
|
3788
3811
|
}
|
|
3789
|
-
}),
|
|
3790
|
-
function
|
|
3812
|
+
}), zr = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3813
|
+
function Gr(e, t, n, o, r, s) {
|
|
3791
3814
|
return c(), p("textarea", C({
|
|
3792
3815
|
placeholder: e.placeholder,
|
|
3793
3816
|
name: e.name,
|
|
3794
3817
|
value: e.value,
|
|
3795
3818
|
defaultValue: e.defaultValue,
|
|
3796
3819
|
required: e.required
|
|
3797
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3820
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, zr);
|
|
3798
3821
|
}
|
|
3799
|
-
const
|
|
3822
|
+
const Jr = /* @__PURE__ */ b(qr, [["render", Gr]]), Yr = {
|
|
3800
3823
|
// friendlyName?
|
|
3801
3824
|
name: "Raw:Img",
|
|
3802
3825
|
hideFromInsertMenu: !0,
|
|
@@ -3810,7 +3833,7 @@ const Kr = /* @__PURE__ */ b(Mr, [["render", jr]]), qr = {
|
|
|
3810
3833
|
}],
|
|
3811
3834
|
noWrap: !0,
|
|
3812
3835
|
static: !0
|
|
3813
|
-
},
|
|
3836
|
+
}, Xr = g({
|
|
3814
3837
|
name: "builder-img-component",
|
|
3815
3838
|
props: [
|
|
3816
3839
|
"backgroundSize",
|
|
@@ -3823,8 +3846,8 @@ const Kr = /* @__PURE__ */ b(Mr, [["render", jr]]), qr = {
|
|
|
3823
3846
|
data() {
|
|
3824
3847
|
return { isEditing: E, filterAttrs: W };
|
|
3825
3848
|
}
|
|
3826
|
-
}),
|
|
3827
|
-
function
|
|
3849
|
+
}), Qr = ["alt", "src"];
|
|
3850
|
+
function Zr(e, t, n, o, r, s) {
|
|
3828
3851
|
return c(), p("img", C({
|
|
3829
3852
|
style: {
|
|
3830
3853
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -3833,9 +3856,9 @@ function Jr(e, t, n, o, r, i) {
|
|
|
3833
3856
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
3834
3857
|
alt: e.altText,
|
|
3835
3858
|
src: e.imgSrc || e.image
|
|
3836
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3859
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Qr);
|
|
3837
3860
|
}
|
|
3838
|
-
const
|
|
3861
|
+
const _r = /* @__PURE__ */ b(Xr, [["render", Zr]]), es = {
|
|
3839
3862
|
name: "Video",
|
|
3840
3863
|
canHaveChildren: !0,
|
|
3841
3864
|
defaultStyles: {
|
|
@@ -3846,7 +3869,7 @@ const Yr = /* @__PURE__ */ b(zr, [["render", Jr]]), Xr = {
|
|
|
3846
3869
|
inputs: [{
|
|
3847
3870
|
name: "video",
|
|
3848
3871
|
type: "file",
|
|
3849
|
-
allowedFileTypes:
|
|
3872
|
+
allowedFileTypes: Ko,
|
|
3850
3873
|
bubble: !0,
|
|
3851
3874
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3852
3875
|
required: !0
|
|
@@ -3919,7 +3942,7 @@ const Yr = /* @__PURE__ */ b(zr, [["render", Jr]]), Xr = {
|
|
|
3919
3942
|
shouldReceiveBuilderProps: {
|
|
3920
3943
|
builderBlock: !0
|
|
3921
3944
|
}
|
|
3922
|
-
},
|
|
3945
|
+
}, ts = g({
|
|
3923
3946
|
name: "builder-video",
|
|
3924
3947
|
props: [
|
|
3925
3948
|
"autoPlay",
|
|
@@ -3964,16 +3987,16 @@ const Yr = /* @__PURE__ */ b(zr, [["render", Jr]]), Xr = {
|
|
|
3964
3987
|
};
|
|
3965
3988
|
}
|
|
3966
3989
|
}
|
|
3967
|
-
}),
|
|
3990
|
+
}), ns = { style: {
|
|
3968
3991
|
position: "relative"
|
|
3969
|
-
} },
|
|
3992
|
+
} }, os = ["preload", "src", "poster"], rs = ["src"], ss = {
|
|
3970
3993
|
key: 1,
|
|
3971
3994
|
style: {
|
|
3972
3995
|
display: "flex",
|
|
3973
3996
|
flexDirection: "column",
|
|
3974
3997
|
alignItems: "stretch"
|
|
3975
3998
|
}
|
|
3976
|
-
},
|
|
3999
|
+
}, is = {
|
|
3977
4000
|
key: 2,
|
|
3978
4001
|
style: {
|
|
3979
4002
|
pointerEvents: "none",
|
|
@@ -3987,16 +4010,16 @@ const Yr = /* @__PURE__ */ b(zr, [["render", Jr]]), Xr = {
|
|
|
3987
4010
|
height: "100%"
|
|
3988
4011
|
}
|
|
3989
4012
|
};
|
|
3990
|
-
function
|
|
3991
|
-
var
|
|
3992
|
-
return c(), p("div",
|
|
3993
|
-
|
|
4013
|
+
function as(e, t, n, o, r, s) {
|
|
4014
|
+
var i, l, a, u, m, h, d;
|
|
4015
|
+
return c(), p("div", ns, [
|
|
4016
|
+
z("video", C({
|
|
3994
4017
|
class: "builder-video",
|
|
3995
4018
|
preload: e.preload || "metadata",
|
|
3996
4019
|
style: {
|
|
3997
4020
|
width: "100%",
|
|
3998
4021
|
height: "100%",
|
|
3999
|
-
...(
|
|
4022
|
+
...(i = e.attributes) == null ? void 0 : i.style,
|
|
4000
4023
|
objectFit: e.fit,
|
|
4001
4024
|
objectPosition: e.position,
|
|
4002
4025
|
// Hack to get object fit to work as expected and
|
|
@@ -4014,8 +4037,8 @@ function oi(e, t, n, o, r, i) {
|
|
|
4014
4037
|
key: 0,
|
|
4015
4038
|
type: "video/mp4",
|
|
4016
4039
|
src: e.video
|
|
4017
|
-
}, null, 8,
|
|
4018
|
-
], 16,
|
|
4040
|
+
}, null, 8, rs))
|
|
4041
|
+
], 16, os),
|
|
4019
4042
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (c(), p("div", {
|
|
4020
4043
|
key: 0,
|
|
4021
4044
|
style: F({
|
|
@@ -4025,72 +4048,72 @@ function oi(e, t, n, o, r, i) {
|
|
|
4025
4048
|
fontSize: "0px"
|
|
4026
4049
|
})
|
|
4027
4050
|
}, null, 4)) : v("", !0),
|
|
4028
|
-
(m = (u = e.builderBlock) == null ? void 0 : u.children) != null && m.length && e.fitContent ? (c(), p("div",
|
|
4029
|
-
|
|
4051
|
+
(m = (u = e.builderBlock) == null ? void 0 : u.children) != null && m.length && e.fitContent ? (c(), p("div", ss, [
|
|
4052
|
+
x(e.$slots, "default")
|
|
4030
4053
|
])) : v("", !0),
|
|
4031
|
-
(d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length && !e.fitContent ? (c(), p("div",
|
|
4032
|
-
|
|
4054
|
+
(d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length && !e.fitContent ? (c(), p("div", is, [
|
|
4055
|
+
x(e.$slots, "default")
|
|
4033
4056
|
])) : v("", !0)
|
|
4034
4057
|
]);
|
|
4035
4058
|
}
|
|
4036
|
-
const
|
|
4037
|
-
component:
|
|
4038
|
-
...
|
|
4059
|
+
const ls = /* @__PURE__ */ b(ts, [["render", as]]), cs = () => [{
|
|
4060
|
+
component: mr,
|
|
4061
|
+
...cr
|
|
4039
4062
|
}, {
|
|
4040
|
-
component:
|
|
4041
|
-
...
|
|
4063
|
+
component: vr,
|
|
4064
|
+
...hr
|
|
4042
4065
|
}, {
|
|
4043
|
-
component:
|
|
4044
|
-
...
|
|
4066
|
+
component: Er,
|
|
4067
|
+
...Sr
|
|
4045
4068
|
}, {
|
|
4046
|
-
component:
|
|
4047
|
-
...
|
|
4069
|
+
component: Vr,
|
|
4070
|
+
...Pr
|
|
4048
4071
|
}, {
|
|
4049
|
-
component:
|
|
4050
|
-
...
|
|
4072
|
+
component: jr,
|
|
4073
|
+
...Ur
|
|
4051
4074
|
}, {
|
|
4052
|
-
component:
|
|
4053
|
-
...
|
|
4075
|
+
component: Lr,
|
|
4076
|
+
...Wr
|
|
4054
4077
|
}, {
|
|
4055
|
-
component:
|
|
4056
|
-
...
|
|
4078
|
+
component: Jr,
|
|
4079
|
+
...Kr
|
|
4057
4080
|
}, {
|
|
4058
|
-
component:
|
|
4059
|
-
...
|
|
4081
|
+
component: _r,
|
|
4082
|
+
...Yr
|
|
4060
4083
|
}, {
|
|
4061
|
-
component:
|
|
4062
|
-
...
|
|
4084
|
+
component: ls,
|
|
4085
|
+
...es
|
|
4063
4086
|
}], xe = () => [{
|
|
4064
4087
|
component: Pt,
|
|
4065
|
-
...Fo
|
|
4066
|
-
}, {
|
|
4067
|
-
component: go,
|
|
4068
|
-
...Do
|
|
4069
|
-
}, {
|
|
4070
|
-
component: ko,
|
|
4071
|
-
...Lo
|
|
4072
|
-
}, {
|
|
4073
|
-
component: Ro,
|
|
4074
4088
|
...Mo
|
|
4075
4089
|
}, {
|
|
4076
|
-
component:
|
|
4090
|
+
component: vo,
|
|
4077
4091
|
...Ho
|
|
4078
4092
|
}, {
|
|
4079
|
-
component:
|
|
4093
|
+
component: wo,
|
|
4080
4094
|
...jo
|
|
4081
4095
|
}, {
|
|
4082
|
-
component:
|
|
4096
|
+
component: Ao,
|
|
4097
|
+
...qo
|
|
4098
|
+
}, {
|
|
4099
|
+
component: Wo,
|
|
4100
|
+
...zo
|
|
4101
|
+
}, {
|
|
4102
|
+
component: Xo,
|
|
4083
4103
|
...Go
|
|
4084
4104
|
}, {
|
|
4085
|
-
component:
|
|
4086
|
-
...
|
|
4105
|
+
component: zs,
|
|
4106
|
+
...Qo
|
|
4087
4107
|
}, {
|
|
4088
|
-
component:
|
|
4089
|
-
...
|
|
4108
|
+
component: lr,
|
|
4109
|
+
...rr
|
|
4090
4110
|
}, {
|
|
4091
|
-
component:
|
|
4092
|
-
...
|
|
4093
|
-
},
|
|
4111
|
+
component: or,
|
|
4112
|
+
...Zo
|
|
4113
|
+
}, {
|
|
4114
|
+
component: Uo,
|
|
4115
|
+
...No
|
|
4116
|
+
}, ...cs()], ds = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4094
4117
|
function getAndSetVariantId() {
|
|
4095
4118
|
function setCookie(name, value, days) {
|
|
4096
4119
|
let expires = '';
|
|
@@ -4146,7 +4169,7 @@ const ri = /* @__PURE__ */ b(Qr, [["render", oi]]), ii = () => [{
|
|
|
4146
4169
|
}).join('');
|
|
4147
4170
|
styleEl.innerHTML = newStyleStr;
|
|
4148
4171
|
}
|
|
4149
|
-
}`,
|
|
4172
|
+
}`, us = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4150
4173
|
if (!navigator.cookieEnabled) {
|
|
4151
4174
|
return;
|
|
4152
4175
|
}
|
|
@@ -4180,27 +4203,27 @@ const ri = /* @__PURE__ */ b(Qr, [["render", oi]]), ii = () => [{
|
|
|
4180
4203
|
thisScriptEl?.remove();
|
|
4181
4204
|
}
|
|
4182
4205
|
return;
|
|
4183
|
-
}`,
|
|
4206
|
+
}`, ft = "builderIoAbTest", gt = "builderIoRenderContent", Z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4184
4207
|
...t,
|
|
4185
4208
|
testVariationId: t.id,
|
|
4186
4209
|
id: e == null ? void 0 : e.id
|
|
4187
|
-
})),
|
|
4210
|
+
})), ps = ({
|
|
4188
4211
|
canTrack: e,
|
|
4189
4212
|
content: t
|
|
4190
|
-
}) => !(!(Z(t).length > 0) || !e),
|
|
4191
|
-
window.${
|
|
4192
|
-
window.${
|
|
4193
|
-
`,
|
|
4194
|
-
window.${
|
|
4195
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4196
|
-
)`,
|
|
4213
|
+
}) => !(!(Z(t).length > 0) || !e), ms = (e) => e === "react" || e === "reactNative", bt = ms(R), hs = () => `
|
|
4214
|
+
window.${ft} = ${ds}
|
|
4215
|
+
window.${gt} = ${us}
|
|
4216
|
+
`, fs = (e, t) => `
|
|
4217
|
+
window.${ft}(
|
|
4218
|
+
"${t}",${JSON.stringify(e)}, ${bt}
|
|
4219
|
+
)`, gs = ({
|
|
4197
4220
|
contentId: e,
|
|
4198
4221
|
variationId: t
|
|
4199
|
-
}) => `window.${
|
|
4200
|
-
"${t}", "${e}", ${
|
|
4201
|
-
)`,
|
|
4222
|
+
}) => `window.${gt}(
|
|
4223
|
+
"${t}", "${e}", ${bt}
|
|
4224
|
+
)`, yt = g({
|
|
4202
4225
|
render() {
|
|
4203
|
-
return
|
|
4226
|
+
return Ne("script", {
|
|
4204
4227
|
innerHTML: this.scriptStr,
|
|
4205
4228
|
"data-id": this.id,
|
|
4206
4229
|
nonce: this.nonce
|
|
@@ -4209,10 +4232,10 @@ const ri = /* @__PURE__ */ b(Qr, [["render", oi]]), ii = () => [{
|
|
|
4209
4232
|
name: "inlined-script",
|
|
4210
4233
|
props: ["scriptStr", "id", "nonce"]
|
|
4211
4234
|
});
|
|
4212
|
-
function
|
|
4235
|
+
function Ve(e) {
|
|
4213
4236
|
return Math.round(e * 1e3) / 1e3;
|
|
4214
4237
|
}
|
|
4215
|
-
const
|
|
4238
|
+
const bs = (e, t, n = !0) => {
|
|
4216
4239
|
if (!(e instanceof HTMLElement))
|
|
4217
4240
|
return null;
|
|
4218
4241
|
let o = n ? e : e.parentElement;
|
|
@@ -4223,37 +4246,37 @@ const mi = (e, t, n = !0) => {
|
|
|
4223
4246
|
return o;
|
|
4224
4247
|
} while (o = o.parentElement);
|
|
4225
4248
|
return null;
|
|
4226
|
-
},
|
|
4249
|
+
}, ys = (e) => bs(e, (t) => {
|
|
4227
4250
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4228
4251
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4229
|
-
}),
|
|
4252
|
+
}), We = ({
|
|
4230
4253
|
event: e,
|
|
4231
4254
|
target: t
|
|
4232
4255
|
}) => {
|
|
4233
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top,
|
|
4256
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = Ve(o / n.width), i = Ve(r / n.height);
|
|
4234
4257
|
return {
|
|
4235
|
-
x:
|
|
4236
|
-
y:
|
|
4258
|
+
x: s,
|
|
4259
|
+
y: i
|
|
4237
4260
|
};
|
|
4238
|
-
},
|
|
4239
|
-
const t = e.target, n = t &&
|
|
4261
|
+
}, ks = (e) => {
|
|
4262
|
+
const t = e.target, n = t && ys(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4240
4263
|
return {
|
|
4241
4264
|
targetBuilderElement: o || void 0,
|
|
4242
4265
|
metadata: {
|
|
4243
|
-
targetOffset: t ?
|
|
4266
|
+
targetOffset: t ? We({
|
|
4244
4267
|
event: e,
|
|
4245
4268
|
target: t
|
|
4246
4269
|
}) : void 0,
|
|
4247
|
-
builderTargetOffset: n ?
|
|
4270
|
+
builderTargetOffset: n ? We({
|
|
4248
4271
|
event: e,
|
|
4249
4272
|
target: n
|
|
4250
4273
|
}) : void 0,
|
|
4251
4274
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4252
4275
|
}
|
|
4253
4276
|
};
|
|
4254
|
-
},
|
|
4255
|
-
var
|
|
4256
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((
|
|
4277
|
+
}, vs = ["svelte", "qwik", "vue"], Ss = () => vs.includes(R) && (E() || Ke()), Cs = (e) => {
|
|
4278
|
+
var s;
|
|
4279
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((s = e == null ? void 0 : e.files) == null ? void 0 : s.regular);
|
|
4257
4280
|
let r = "";
|
|
4258
4281
|
if (o && t && n && (r += `
|
|
4259
4282
|
@font-face {
|
|
@@ -4263,29 +4286,29 @@ font-display: fallback;
|
|
|
4263
4286
|
font-weight: 400;
|
|
4264
4287
|
}
|
|
4265
4288
|
`.trim()), e.files)
|
|
4266
|
-
for (const
|
|
4267
|
-
if (!(String(Number(
|
|
4289
|
+
for (const i in e.files) {
|
|
4290
|
+
if (!(String(Number(i)) === i))
|
|
4268
4291
|
continue;
|
|
4269
|
-
const a = e.files[
|
|
4292
|
+
const a = e.files[i];
|
|
4270
4293
|
a && a !== o && (r += `
|
|
4271
4294
|
@font-face {
|
|
4272
4295
|
font-family: "${t}";
|
|
4273
4296
|
src: url('${a}') format('woff2');
|
|
4274
4297
|
font-display: fallback;
|
|
4275
|
-
font-weight: ${
|
|
4298
|
+
font-weight: ${i};
|
|
4276
4299
|
}
|
|
4277
4300
|
`.trim());
|
|
4278
4301
|
}
|
|
4279
4302
|
return r;
|
|
4280
|
-
},
|
|
4303
|
+
}, ws = ({
|
|
4281
4304
|
customFonts: e
|
|
4282
4305
|
}) => {
|
|
4283
4306
|
var t;
|
|
4284
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4285
|
-
},
|
|
4307
|
+
return ((t = e == null ? void 0 : e.map((n) => Cs(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4308
|
+
}, Ts = ({
|
|
4286
4309
|
cssCode: e,
|
|
4287
4310
|
contentId: t
|
|
4288
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4311
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Is = `
|
|
4289
4312
|
.builder-button {
|
|
4290
4313
|
all: unset;
|
|
4291
4314
|
}
|
|
@@ -4302,9 +4325,9 @@ font-weight: ${s};
|
|
|
4302
4325
|
text-align: inherit;
|
|
4303
4326
|
font-family: inherit;
|
|
4304
4327
|
}
|
|
4305
|
-
`,
|
|
4328
|
+
`, $s = (e) => e ? "" : Is, Rs = (e) => `variant-${e}`, Es = g({
|
|
4306
4329
|
name: "enable-editor",
|
|
4307
|
-
components: { DynamicDiv:
|
|
4330
|
+
components: { DynamicDiv: X },
|
|
4308
4331
|
props: [
|
|
4309
4332
|
"isNestedRender",
|
|
4310
4333
|
"builderContextSignal",
|
|
@@ -4316,10 +4339,10 @@ font-weight: ${s};
|
|
|
4316
4339
|
"trustedHosts",
|
|
4317
4340
|
"model",
|
|
4318
4341
|
"content",
|
|
4342
|
+
"context",
|
|
4319
4343
|
"data",
|
|
4320
4344
|
"showContent",
|
|
4321
4345
|
"contentWrapper",
|
|
4322
|
-
"context",
|
|
4323
4346
|
"contentWrapperProps"
|
|
4324
4347
|
],
|
|
4325
4348
|
data() {
|
|
@@ -4329,8 +4352,8 @@ font-weight: ${s};
|
|
|
4329
4352
|
httpReqsPending: {},
|
|
4330
4353
|
clicked: !1,
|
|
4331
4354
|
builderContext: ce,
|
|
4332
|
-
needsElementRefDivForEditing:
|
|
4333
|
-
getWrapperClassName:
|
|
4355
|
+
needsElementRefDivForEditing: Ss,
|
|
4356
|
+
getWrapperClassName: Rs
|
|
4334
4357
|
};
|
|
4335
4358
|
},
|
|
4336
4359
|
provide() {
|
|
@@ -4344,21 +4367,21 @@ font-weight: ${s};
|
|
|
4344
4367
|
},
|
|
4345
4368
|
mounted() {
|
|
4346
4369
|
var e, t;
|
|
4347
|
-
if (
|
|
4370
|
+
if (I()) {
|
|
4348
4371
|
if (E() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4349
4372
|
new CustomEvent("initeditingbldr")
|
|
4350
|
-
), this.builderContextSignal.content &&
|
|
4351
|
-
const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id,
|
|
4373
|
+
), this.builderContextSignal.content && J(this.canTrack)) {
|
|
4374
|
+
const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id, s = this.apiKey;
|
|
4352
4375
|
ue({
|
|
4353
4376
|
apiHost: this.apiHost,
|
|
4354
4377
|
type: "impression",
|
|
4355
4378
|
canTrack: !0,
|
|
4356
4379
|
contentId: r,
|
|
4357
|
-
apiKey:
|
|
4380
|
+
apiKey: s,
|
|
4358
4381
|
variationId: o !== r ? o : void 0
|
|
4359
4382
|
});
|
|
4360
4383
|
}
|
|
4361
|
-
|
|
4384
|
+
Ke() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4362
4385
|
new CustomEvent("initpreviewingbldr")
|
|
4363
4386
|
);
|
|
4364
4387
|
}
|
|
@@ -4392,7 +4415,7 @@ font-weight: ${s};
|
|
|
4392
4415
|
}
|
|
4393
4416
|
},
|
|
4394
4417
|
unmounted() {
|
|
4395
|
-
|
|
4418
|
+
I() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
4396
4419
|
"builder:component:stateChangeListenerActivated",
|
|
4397
4420
|
this.emitStateUpdate
|
|
4398
4421
|
));
|
|
@@ -4435,7 +4458,7 @@ font-weight: ${s};
|
|
|
4435
4458
|
this.builderContextSignal.rootSetState ? (o = (n = this.builderContextSignal).rootSetState) == null || o.call(n, t) : this.builderContextSignal.rootState = t;
|
|
4436
4459
|
},
|
|
4437
4460
|
mergeNewContent(e) {
|
|
4438
|
-
var n, o, r,
|
|
4461
|
+
var n, o, r, s, i;
|
|
4439
4462
|
const t = {
|
|
4440
4463
|
...this.builderContextSignal.content,
|
|
4441
4464
|
...e,
|
|
@@ -4446,13 +4469,13 @@ font-weight: ${s};
|
|
|
4446
4469
|
meta: {
|
|
4447
4470
|
...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
|
|
4448
4471
|
...e == null ? void 0 : e.meta,
|
|
4449
|
-
breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((
|
|
4472
|
+
breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((i = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : i.breakpoints)
|
|
4450
4473
|
}
|
|
4451
4474
|
};
|
|
4452
4475
|
this.builderContextSignal.content = t;
|
|
4453
4476
|
},
|
|
4454
4477
|
processMessage(e) {
|
|
4455
|
-
return
|
|
4478
|
+
return ot({
|
|
4456
4479
|
model: this.model,
|
|
4457
4480
|
trustedHosts: this.trustedHosts,
|
|
4458
4481
|
callbacks: {
|
|
@@ -4466,7 +4489,7 @@ font-weight: ${s};
|
|
|
4466
4489
|
});
|
|
4467
4490
|
},
|
|
4468
4491
|
animation: (t) => {
|
|
4469
|
-
|
|
4492
|
+
dt(t);
|
|
4470
4493
|
},
|
|
4471
4494
|
contentUpdate: (t) => {
|
|
4472
4495
|
this.mergeNewContent(t);
|
|
@@ -4481,11 +4504,11 @@ font-weight: ${s};
|
|
|
4481
4504
|
ue({
|
|
4482
4505
|
apiHost: this.apiHost,
|
|
4483
4506
|
type: "click",
|
|
4484
|
-
canTrack:
|
|
4507
|
+
canTrack: J(this.canTrack),
|
|
4485
4508
|
contentId: r,
|
|
4486
4509
|
apiKey: this.apiKey,
|
|
4487
4510
|
variationId: o !== r ? o : void 0,
|
|
4488
|
-
...
|
|
4511
|
+
...ks(e),
|
|
4489
4512
|
unique: !this.clicked
|
|
4490
4513
|
});
|
|
4491
4514
|
}
|
|
@@ -4498,10 +4521,10 @@ font-weight: ${s};
|
|
|
4498
4521
|
if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !E())
|
|
4499
4522
|
return;
|
|
4500
4523
|
this.httpReqsPending[o] = !0;
|
|
4501
|
-
const
|
|
4524
|
+
const s = r.replace(
|
|
4502
4525
|
/{{([^}]+)}}/g,
|
|
4503
|
-
(
|
|
4504
|
-
|
|
4526
|
+
(i, l) => String(
|
|
4527
|
+
Y({
|
|
4505
4528
|
code: l,
|
|
4506
4529
|
context: this.context || {},
|
|
4507
4530
|
localState: void 0,
|
|
@@ -4510,12 +4533,12 @@ font-weight: ${s};
|
|
|
4510
4533
|
})
|
|
4511
4534
|
)
|
|
4512
4535
|
);
|
|
4513
|
-
fe(
|
|
4536
|
+
fe(s), fetch(s).then((i) => i.json()).then((i) => {
|
|
4514
4537
|
this.mergeNewRootState({
|
|
4515
|
-
[o]:
|
|
4538
|
+
[o]: i
|
|
4516
4539
|
}), this.httpReqsData[o] = !0;
|
|
4517
|
-
}).catch((
|
|
4518
|
-
console.error("error fetching dynamic data", r,
|
|
4540
|
+
}).catch((i) => {
|
|
4541
|
+
console.error("error fetching dynamic data", r, i);
|
|
4519
4542
|
}).finally(() => {
|
|
4520
4543
|
this.httpReqsPending[o] = !1;
|
|
4521
4544
|
});
|
|
@@ -4537,7 +4560,7 @@ font-weight: ${s};
|
|
|
4537
4560
|
);
|
|
4538
4561
|
},
|
|
4539
4562
|
elementRef_onIniteditingbldr(e) {
|
|
4540
|
-
window.addEventListener("message", this.processMessage),
|
|
4563
|
+
window.addEventListener("message", this.processMessage), wn(), nt({
|
|
4541
4564
|
...this.locale ? {
|
|
4542
4565
|
locale: this.locale
|
|
4543
4566
|
} : {},
|
|
@@ -4552,7 +4575,7 @@ font-weight: ${s};
|
|
|
4552
4575
|
).forEach((t) => {
|
|
4553
4576
|
var n, o;
|
|
4554
4577
|
if (!this.model || !((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
4555
|
-
const r =
|
|
4578
|
+
const r = tn(t);
|
|
4556
4579
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
4557
4580
|
}
|
|
4558
4581
|
}), window.addEventListener(
|
|
@@ -4561,26 +4584,32 @@ font-weight: ${s};
|
|
|
4561
4584
|
);
|
|
4562
4585
|
},
|
|
4563
4586
|
elementRef_onInitpreviewingbldr(e) {
|
|
4587
|
+
var s;
|
|
4564
4588
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
4565
4589
|
`builder.overrides.${n}`
|
|
4566
4590
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
4567
|
-
n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && ye({
|
|
4568
|
-
model: this.model,
|
|
4591
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && ye({
|
|
4592
|
+
model: this.model || "",
|
|
4569
4593
|
apiKey: this.apiKey,
|
|
4570
|
-
apiVersion: this.builderContextSignal.apiVersion
|
|
4594
|
+
apiVersion: this.builderContextSignal.apiVersion,
|
|
4595
|
+
...n === "BUILDER_STUDIO" && ((s = this.context) != null && s.symbolId) ? {
|
|
4596
|
+
query: {
|
|
4597
|
+
id: this.context.symbolId
|
|
4598
|
+
}
|
|
4599
|
+
} : {}
|
|
4571
4600
|
}).then((i) => {
|
|
4572
4601
|
i && this.mergeNewContent(i);
|
|
4573
4602
|
});
|
|
4574
4603
|
}
|
|
4575
4604
|
}
|
|
4576
4605
|
});
|
|
4577
|
-
function
|
|
4578
|
-
var
|
|
4579
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (c(), y(
|
|
4606
|
+
function Ps(e, t, n, o, r, s) {
|
|
4607
|
+
var i, l, a;
|
|
4608
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (c(), y(K(e.ContentWrapper), C({
|
|
4580
4609
|
key: 0,
|
|
4581
4610
|
ref: "elementRef",
|
|
4582
4611
|
onClick: (u) => e.onClick(u),
|
|
4583
|
-
"builder-content-id": (
|
|
4612
|
+
"builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
|
|
4584
4613
|
"builder-model": e.model,
|
|
4585
4614
|
className: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
|
|
4586
4615
|
style: {
|
|
@@ -4590,46 +4619,46 @@ function Ii(e, t, n, o, r, i) {
|
|
|
4590
4619
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
4591
4620
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
4592
4621
|
default: N(() => [
|
|
4593
|
-
|
|
4622
|
+
x(e.$slots, "default")
|
|
4594
4623
|
]),
|
|
4595
4624
|
_: 3
|
|
4596
4625
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
|
|
4597
4626
|
}
|
|
4598
|
-
const
|
|
4627
|
+
const Bs = /* @__PURE__ */ b(Es, [["render", Ps]]), As = g({
|
|
4599
4628
|
name: "content-styles",
|
|
4600
4629
|
components: { InlinedStyles: Se },
|
|
4601
4630
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
4602
4631
|
data() {
|
|
4603
4632
|
return {
|
|
4604
4633
|
injectedStyles: `
|
|
4605
|
-
${
|
|
4634
|
+
${Ts({
|
|
4606
4635
|
cssCode: this.cssCode,
|
|
4607
4636
|
contentId: this.contentId
|
|
4608
4637
|
})}
|
|
4609
|
-
${
|
|
4638
|
+
${ws({
|
|
4610
4639
|
customFonts: this.customFonts
|
|
4611
4640
|
})}
|
|
4612
|
-
${
|
|
4641
|
+
${$s(this.isNestedRender)}
|
|
4613
4642
|
`.trim()
|
|
4614
4643
|
};
|
|
4615
4644
|
}
|
|
4616
4645
|
});
|
|
4617
|
-
function
|
|
4618
|
-
const
|
|
4619
|
-
return c(), y(
|
|
4646
|
+
function xs(e, t, n, o, r, s) {
|
|
4647
|
+
const i = k("InlinedStyles");
|
|
4648
|
+
return c(), y(i, {
|
|
4620
4649
|
id: "builderio-content",
|
|
4621
4650
|
styles: e.injectedStyles,
|
|
4622
4651
|
nonce: e.nonce
|
|
4623
4652
|
}, null, 8, ["styles", "nonce"]);
|
|
4624
4653
|
}
|
|
4625
|
-
const
|
|
4654
|
+
const Vs = /* @__PURE__ */ b(As, [["render", xs]]), Ws = ({
|
|
4626
4655
|
content: e,
|
|
4627
4656
|
data: t,
|
|
4628
4657
|
locale: n
|
|
4629
4658
|
}) => {
|
|
4630
|
-
var
|
|
4631
|
-
const o = {}, r = ((
|
|
4632
|
-
return (l = (
|
|
4659
|
+
var s, i, l;
|
|
4660
|
+
const o = {}, r = ((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {};
|
|
4661
|
+
return (l = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || l.forEach((a) => {
|
|
4633
4662
|
a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
|
|
4634
4663
|
}), {
|
|
4635
4664
|
...o,
|
|
@@ -4639,7 +4668,7 @@ const Pi = /* @__PURE__ */ b(Ri, [["render", Ei]]), Bi = ({
|
|
|
4639
4668
|
locale: n
|
|
4640
4669
|
} : {}
|
|
4641
4670
|
};
|
|
4642
|
-
},
|
|
4671
|
+
}, Ns = ({
|
|
4643
4672
|
content: e,
|
|
4644
4673
|
data: t
|
|
4645
4674
|
}) => e ? {
|
|
@@ -4649,14 +4678,14 @@ const Pi = /* @__PURE__ */ b(Ri, [["render", Ei]]), Bi = ({
|
|
|
4649
4678
|
...t
|
|
4650
4679
|
},
|
|
4651
4680
|
meta: e == null ? void 0 : e.meta
|
|
4652
|
-
} : void 0,
|
|
4681
|
+
} : void 0, Os = Ct, Fs = g({
|
|
4653
4682
|
name: "content-component",
|
|
4654
4683
|
components: {
|
|
4655
|
-
EnableEditor:
|
|
4656
|
-
InlinedScript:
|
|
4657
|
-
ContentStyles:
|
|
4658
|
-
Blocks:
|
|
4659
|
-
DynamicDiv:
|
|
4684
|
+
EnableEditor: Bs,
|
|
4685
|
+
InlinedScript: yt,
|
|
4686
|
+
ContentStyles: Vs,
|
|
4687
|
+
Blocks: M,
|
|
4688
|
+
DynamicDiv: X
|
|
4660
4689
|
},
|
|
4661
4690
|
props: [
|
|
4662
4691
|
"apiKey",
|
|
@@ -4684,7 +4713,7 @@ const Pi = /* @__PURE__ */ b(Ri, [["render", Ei]]), Bi = ({
|
|
|
4684
4713
|
data() {
|
|
4685
4714
|
var e, t;
|
|
4686
4715
|
return {
|
|
4687
|
-
scriptStr:
|
|
4716
|
+
scriptStr: gs({
|
|
4688
4717
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4689
4718
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
4690
4719
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4697,19 +4726,19 @@ const Pi = /* @__PURE__ */ b(Ri, [["render", Ei]]), Bi = ({
|
|
|
4697
4726
|
(n, { component: o, ...r }) => ({
|
|
4698
4727
|
...n,
|
|
4699
4728
|
[r.name]: {
|
|
4700
|
-
component:
|
|
4729
|
+
component: Os(o),
|
|
4701
4730
|
...te(r)
|
|
4702
4731
|
}
|
|
4703
4732
|
}),
|
|
4704
4733
|
{}
|
|
4705
4734
|
),
|
|
4706
4735
|
builderContextSignal: {
|
|
4707
|
-
content:
|
|
4736
|
+
content: Ns({
|
|
4708
4737
|
content: this.content,
|
|
4709
4738
|
data: this.data
|
|
4710
4739
|
}),
|
|
4711
4740
|
localState: void 0,
|
|
4712
|
-
rootState:
|
|
4741
|
+
rootState: Ws({
|
|
4713
4742
|
content: this.content,
|
|
4714
4743
|
data: this.data,
|
|
4715
4744
|
locale: this.locale
|
|
@@ -4741,7 +4770,7 @@ const Pi = /* @__PURE__ */ b(Ri, [["render", Ei]]), Bi = ({
|
|
|
4741
4770
|
provide() {
|
|
4742
4771
|
const e = this;
|
|
4743
4772
|
return {
|
|
4744
|
-
[
|
|
4773
|
+
[Oe.key]: {
|
|
4745
4774
|
registeredComponents: e.registeredComponents
|
|
4746
4775
|
}
|
|
4747
4776
|
};
|
|
@@ -4752,7 +4781,7 @@ const Pi = /* @__PURE__ */ b(Ri, [["render", Ei]]), Bi = ({
|
|
|
4752
4781
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4753
4782
|
);
|
|
4754
4783
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
4755
|
-
e &&
|
|
4784
|
+
e && Y({
|
|
4756
4785
|
code: e,
|
|
4757
4786
|
context: this.context || {},
|
|
4758
4787
|
localState: void 0,
|
|
@@ -4769,8 +4798,8 @@ const Pi = /* @__PURE__ */ b(Ri, [["render", Ei]]), Bi = ({
|
|
|
4769
4798
|
}
|
|
4770
4799
|
}
|
|
4771
4800
|
});
|
|
4772
|
-
function
|
|
4773
|
-
const
|
|
4801
|
+
function Ds(e, t, n, o, r, s) {
|
|
4802
|
+
const i = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
4774
4803
|
return c(), y(u, C({
|
|
4775
4804
|
apiHost: e.apiHost,
|
|
4776
4805
|
nonce: e.nonce,
|
|
@@ -4792,7 +4821,7 @@ function Wi(e, t, n, o, r, i) {
|
|
|
4792
4821
|
default: N(() => {
|
|
4793
4822
|
var m, h, d, f, S, w, L;
|
|
4794
4823
|
return [
|
|
4795
|
-
e.isSsrAbTest ? (c(), y(
|
|
4824
|
+
e.isSsrAbTest ? (c(), y(i, {
|
|
4796
4825
|
key: 0,
|
|
4797
4826
|
id: "builderio-variant-visibility",
|
|
4798
4827
|
scriptStr: e.scriptStr,
|
|
@@ -4817,12 +4846,12 @@ function Wi(e, t, n, o, r, i) {
|
|
|
4817
4846
|
_: 1
|
|
4818
4847
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
4819
4848
|
}
|
|
4820
|
-
const
|
|
4849
|
+
const Ls = /* @__PURE__ */ b(Fs, [["render", Ds]]), Us = g({
|
|
4821
4850
|
name: "content-variants",
|
|
4822
4851
|
components: {
|
|
4823
|
-
InlinedScript:
|
|
4852
|
+
InlinedScript: yt,
|
|
4824
4853
|
InlinedStyles: Se,
|
|
4825
|
-
ContentComponent:
|
|
4854
|
+
ContentComponent: Ls
|
|
4826
4855
|
},
|
|
4827
4856
|
props: [
|
|
4828
4857
|
"canTrack",
|
|
@@ -4847,12 +4876,12 @@ const Ni = /* @__PURE__ */ b(Vi, [["render", Wi]]), Oi = g({
|
|
|
4847
4876
|
],
|
|
4848
4877
|
data() {
|
|
4849
4878
|
return {
|
|
4850
|
-
shouldRenderVariants:
|
|
4851
|
-
canTrack:
|
|
4879
|
+
shouldRenderVariants: ps({
|
|
4880
|
+
canTrack: J(this.canTrack),
|
|
4852
4881
|
content: this.content
|
|
4853
4882
|
}),
|
|
4854
4883
|
TARGET: R,
|
|
4855
|
-
getInitVariantsFnsScriptString:
|
|
4884
|
+
getInitVariantsFnsScriptString: hs,
|
|
4856
4885
|
getVariants: Z
|
|
4857
4886
|
};
|
|
4858
4887
|
},
|
|
@@ -4861,7 +4890,7 @@ const Ni = /* @__PURE__ */ b(Vi, [["render", Wi]]), Oi = g({
|
|
|
4861
4890
|
computed: {
|
|
4862
4891
|
updateCookieAndStylesScriptStr() {
|
|
4863
4892
|
var e;
|
|
4864
|
-
return
|
|
4893
|
+
return fs(
|
|
4865
4894
|
Z(this.content).map((t) => ({
|
|
4866
4895
|
id: t.testVariationId,
|
|
4867
4896
|
testRatio: t.testRatio
|
|
@@ -4877,17 +4906,17 @@ const Ni = /* @__PURE__ */ b(Vi, [["render", Wi]]), Oi = g({
|
|
|
4877
4906
|
return this.shouldRenderVariants ? {
|
|
4878
4907
|
...this.content,
|
|
4879
4908
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
4880
|
-
} :
|
|
4909
|
+
} : Pn({
|
|
4881
4910
|
item: this.content,
|
|
4882
|
-
canTrack:
|
|
4911
|
+
canTrack: J(this.canTrack)
|
|
4883
4912
|
});
|
|
4884
4913
|
}
|
|
4885
4914
|
}
|
|
4886
4915
|
});
|
|
4887
|
-
function
|
|
4888
|
-
const
|
|
4916
|
+
function Ms(e, t, n, o, r, s) {
|
|
4917
|
+
const i = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
4889
4918
|
return c(), p(T, null, [
|
|
4890
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(
|
|
4919
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(i, {
|
|
4891
4920
|
key: 0,
|
|
4892
4921
|
id: "builderio-init-variants-fns",
|
|
4893
4922
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
@@ -4899,7 +4928,7 @@ function Fi(e, t, n, o, r, i) {
|
|
|
4899
4928
|
styles: e.hideVariantsStyleString,
|
|
4900
4929
|
nonce: e.nonce || ""
|
|
4901
4930
|
}, null, 8, ["styles", "nonce"]),
|
|
4902
|
-
P(
|
|
4931
|
+
P(i, {
|
|
4903
4932
|
id: "builderio-variants-visibility",
|
|
4904
4933
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
4905
4934
|
nonce: e.nonce || ""
|
|
@@ -4956,7 +4985,7 @@ function Fi(e, t, n, o, r, i) {
|
|
|
4956
4985
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4957
4986
|
], 64);
|
|
4958
4987
|
}
|
|
4959
|
-
const
|
|
4988
|
+
const Hs = /* @__PURE__ */ b(Us, [["render", Ms]]), js = async ({
|
|
4960
4989
|
builderContextValue: e,
|
|
4961
4990
|
symbol: t
|
|
4962
4991
|
}) => {
|
|
@@ -4974,9 +5003,9 @@ const Di = /* @__PURE__ */ b(Oi, [["render", Fi]]), Li = async ({
|
|
|
4974
5003
|
}).catch((n) => {
|
|
4975
5004
|
B.error("Could not fetch symbol content: ", n);
|
|
4976
5005
|
});
|
|
4977
|
-
},
|
|
5006
|
+
}, Ks = g({
|
|
4978
5007
|
name: "builder-symbol",
|
|
4979
|
-
components: { ContentVariants:
|
|
5008
|
+
components: { ContentVariants: Hs, DynamicDiv: X },
|
|
4980
5009
|
props: [
|
|
4981
5010
|
"symbol",
|
|
4982
5011
|
"attributes",
|
|
@@ -5025,7 +5054,7 @@ const Di = /* @__PURE__ */ b(Oi, [["render", Fi]]), Li = async ({
|
|
|
5025
5054
|
},
|
|
5026
5055
|
methods: {
|
|
5027
5056
|
setContent() {
|
|
5028
|
-
this.contentToUse ||
|
|
5057
|
+
this.contentToUse || js({
|
|
5029
5058
|
symbol: this.symbol,
|
|
5030
5059
|
builderContextValue: this.builderContext
|
|
5031
5060
|
}).then((e) => {
|
|
@@ -5034,11 +5063,11 @@ const Di = /* @__PURE__ */ b(Oi, [["render", Fi]]), Li = async ({
|
|
|
5034
5063
|
}
|
|
5035
5064
|
}
|
|
5036
5065
|
});
|
|
5037
|
-
function
|
|
5066
|
+
function qs(e, t, n, o, r, s) {
|
|
5038
5067
|
var l, a, u, m, h;
|
|
5039
|
-
const
|
|
5040
|
-
return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
5041
|
-
P(
|
|
5068
|
+
const i = k("ContentVariants");
|
|
5069
|
+
return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5070
|
+
P(i, {
|
|
5042
5071
|
nonce: e.builderContext.nonce,
|
|
5043
5072
|
isNestedRender: !0,
|
|
5044
5073
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5062,44 +5091,44 @@ function Mi(e, t, n, o, r, i) {
|
|
|
5062
5091
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5063
5092
|
], 16);
|
|
5064
5093
|
}
|
|
5065
|
-
const
|
|
5094
|
+
const zs = /* @__PURE__ */ b(Ks, [["render", qs]]);
|
|
5066
5095
|
export {
|
|
5067
|
-
|
|
5096
|
+
Mn as A,
|
|
5068
5097
|
ve as B,
|
|
5069
|
-
|
|
5098
|
+
vo as C,
|
|
5070
5099
|
ye as D,
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5100
|
+
Ys as E,
|
|
5101
|
+
wo as F,
|
|
5102
|
+
ni as G,
|
|
5103
|
+
Ao as I,
|
|
5104
|
+
Wo as S,
|
|
5076
5105
|
R as T,
|
|
5077
|
-
|
|
5106
|
+
ls as V,
|
|
5078
5107
|
Se as _,
|
|
5079
|
-
|
|
5080
|
-
|
|
5108
|
+
ei as a,
|
|
5109
|
+
oi as b,
|
|
5081
5110
|
D as c,
|
|
5082
5111
|
ke as d,
|
|
5083
5112
|
b as e,
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5113
|
+
Y as f,
|
|
5114
|
+
go as g,
|
|
5115
|
+
ti as h,
|
|
5087
5116
|
_ as i,
|
|
5088
5117
|
ce as j,
|
|
5089
5118
|
Pt as k,
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5119
|
+
zs as l,
|
|
5120
|
+
lr as m,
|
|
5121
|
+
M as n,
|
|
5122
|
+
Hs as o,
|
|
5094
5123
|
E as p,
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5124
|
+
Ke as q,
|
|
5125
|
+
tn as r,
|
|
5126
|
+
on as s,
|
|
5127
|
+
Xs as t,
|
|
5128
|
+
qe as u,
|
|
5129
|
+
Qs as v,
|
|
5130
|
+
Os as w,
|
|
5131
|
+
Zs as x,
|
|
5132
|
+
_s as y,
|
|
5133
|
+
Un as z
|
|
5105
5134
|
};
|