@builder.io/sdk-vue 3.0.0 → 3.0.2
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-XqdWIlSd.cjs → awaiter-Go_v9R-Q.cjs} +1 -1
- package/lib/browser/{awaiter-pA1AuJSn.js → awaiter-f2v25MXG.js} +1 -1
- package/lib/browser/{block-styles-i6cpfJgi.cjs → block-styles-VvtOwAna.cjs} +1 -1
- package/lib/browser/{block-styles-ytvCIXMJ.js → block-styles-zLkeE8Yo.js} +1 -1
- package/lib/browser/{block-wrapper-UdxI8OCZ.js → block-wrapper-RHvSza0L.js} +3 -3
- package/lib/browser/{block-wrapper-4Ddr9Ro1.cjs → block-wrapper-W_D_Bb2d.cjs} +1 -1
- package/lib/browser/blocks/form/select/select.vue.d.ts +3 -3
- package/lib/browser/blocks/text/text.vue.d.ts +1 -6
- package/lib/browser/{component-ref-1UbPu9gf.cjs → component-ref-OuSuLJu3.cjs} +1 -1
- package/lib/browser/{component-ref-CKlhzm4D.js → component-ref-QZVWIf-w.js} +3 -3
- package/lib/browser/components/block/block.helpers.d.ts +4 -3
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +2 -2
- package/lib/browser/components/content/components/enable-editor.helpers.d.ts +11 -0
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +8 -6
- package/lib/browser/components/content/content.vue.d.ts +7 -6
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +6 -6
- package/lib/browser/constants/file-types.d.ts +2 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/context/builder.context.d.ts +1 -0
- package/lib/browser/context/types.d.ts +1 -0
- package/lib/browser/functions/extract-localized-values.d.ts +2 -0
- 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/functions/traverse.d.ts +34 -0
- package/lib/browser/{get-block-properties-pUTK7jyd.cjs → get-block-properties-COMGTr9K.cjs} +1 -1
- package/lib/browser/{get-block-properties-C5uVrmU3.js → get-block-properties-IUSNX0SS.js} +1 -1
- package/lib/browser/helpers/flatten.d.ts +6 -0
- package/lib/browser/index-M-gfkd7t.cjs +166 -0
- package/lib/browser/{index-tDGIvfSj.js → index-mAw516k1.js} +969 -887
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-9RoptQEu.js → repeated-block-9wsw76F2.js} +2 -2
- package/lib/browser/{repeated-block-h7zSwvTu.cjs → repeated-block-nE8lZjb_.cjs} +1 -1
- package/lib/browser/server-index.d.ts +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/browser/types/components.d.ts +3 -0
- package/lib/edge/{awaiter-yLbJL6E0.js → awaiter-4_rv9wh9.js} +1 -1
- package/lib/edge/{awaiter-V9rb_a7Q.cjs → awaiter-e1RaAwPG.cjs} +1 -1
- package/lib/edge/{block-styles-ZvyyqPxg.cjs → block-styles-83ja5Ixf.cjs} +1 -1
- package/lib/edge/{block-styles-8rJVuUSs.js → block-styles-KCVLt7eI.js} +1 -1
- package/lib/edge/{block-wrapper-jr4gy0mp.js → block-wrapper-FpChCEPR.js} +3 -3
- package/lib/edge/{block-wrapper-m7_ZegT7.cjs → block-wrapper-z1tA6pLu.cjs} +1 -1
- package/lib/edge/blocks/form/select/select.vue.d.ts +3 -3
- package/lib/edge/blocks/text/text.vue.d.ts +1 -6
- package/lib/edge/{component-ref-_qPvv-Qb.cjs → component-ref-hZs-PJf_.cjs} +1 -1
- package/lib/edge/{component-ref-uZEXLaN7.js → component-ref-oYtINbYY.js} +3 -3
- package/lib/edge/components/block/block.helpers.d.ts +4 -3
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +2 -2
- package/lib/edge/components/content/components/enable-editor.helpers.d.ts +11 -0
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +8 -6
- package/lib/edge/components/content/content.vue.d.ts +7 -6
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +6 -6
- package/lib/edge/constants/file-types.d.ts +2 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/context/builder.context.d.ts +1 -0
- package/lib/edge/context/types.d.ts +1 -0
- package/lib/edge/functions/extract-localized-values.d.ts +2 -0
- 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/functions/traverse.d.ts +34 -0
- package/lib/edge/{get-block-properties-4gxUIMch.cjs → get-block-properties-WHU9TAQT.cjs} +1 -1
- package/lib/edge/{get-block-properties-IQuU2YJ7.js → get-block-properties-g6seSIll.js} +1 -1
- package/lib/edge/helpers/flatten.d.ts +6 -0
- package/lib/edge/index-Gb_tMZnR.cjs +184 -0
- package/lib/edge/{index-Qfd4FC6c.js → index-fTtKR2Pq.js} +1515 -1435
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-J3gmF8cW.js → repeated-block-_kwPuyY0.js} +2 -2
- package/lib/{node/repeated-block-sc5a_YJK.cjs → edge/repeated-block-o16gyhl8.cjs} +1 -1
- package/lib/edge/server-index.d.ts +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/edge/types/components.d.ts +3 -0
- package/lib/node/{awaiter-pBLgVddK.cjs → awaiter-EKc5xDU7.cjs} +1 -1
- package/lib/node/{awaiter-yHq7zte0.js → awaiter-yTUISQzQ.js} +1 -1
- package/lib/node/{block-styles-JKmWb0f1.cjs → block-styles-KsyPudvY.cjs} +1 -1
- package/lib/node/{block-styles-UKsSQRSe.js → block-styles-Z4CBN1bX.js} +1 -1
- package/lib/node/{block-wrapper-Ql9JBZTu.js → block-wrapper-KpJ-EQWT.js} +3 -3
- package/lib/node/{block-wrapper-UkD5beND.cjs → block-wrapper-wfmJ-Is8.cjs} +1 -1
- package/lib/node/blocks/form/select/select.vue.d.ts +3 -3
- package/lib/node/blocks/text/text.vue.d.ts +1 -6
- package/lib/node/{component-ref-GQuqlfCd.js → component-ref-PIZE59-x.js} +3 -3
- package/lib/node/{component-ref-KSw6L492.cjs → component-ref-dZr5pqVw.cjs} +1 -1
- package/lib/node/components/block/block.helpers.d.ts +4 -3
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +2 -2
- package/lib/node/components/content/components/enable-editor.helpers.d.ts +11 -0
- package/lib/node/components/content/components/enable-editor.vue.d.ts +8 -6
- package/lib/node/components/content/content.vue.d.ts +7 -6
- package/lib/node/components/content-variants/content-variants.vue.d.ts +6 -6
- package/lib/node/constants/file-types.d.ts +2 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/context/builder.context.d.ts +1 -0
- package/lib/node/context/types.d.ts +1 -0
- package/lib/node/functions/extract-localized-values.d.ts +2 -0
- 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/functions/traverse.d.ts +34 -0
- package/lib/node/{get-block-properties-RPZW1-a0.cjs → get-block-properties-XFifmVHz.cjs} +1 -1
- package/lib/node/{get-block-properties-y-gYAn-I.js → get-block-properties-YmWkYu_d.js} +1 -1
- package/lib/node/helpers/flatten.d.ts +6 -0
- package/lib/node/{index-5bUk_uLu.js → index-PmCPg9YL.js} +901 -819
- package/lib/node/index-_D8PBs-1.cjs +166 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/{edge/repeated-block-48-vVIqv.cjs → node/repeated-block-p1vrucwi.cjs} +1 -1
- package/lib/node/{repeated-block-_Z2mgv3f.js → repeated-block-qSSzvRZP.js} +2 -2
- package/lib/node/server-index.d.ts +1 -1
- package/lib/node/style.css +1 -1
- package/lib/node/types/components.d.ts +3 -0
- package/package.json +1 -1
- package/lib/browser/index-N0sk5VKQ.cjs +0 -166
- package/lib/edge/index-LY5CDeZs.cjs +0 -184
- package/lib/node/index-W6CSiGOt.cjs +0 -166
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const
|
|
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
|
+
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
|
}
|
|
14
|
-
const
|
|
14
|
+
const It = g({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: Tt };
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
20
|
+
}), b = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
22
22
|
for (const [o, r] of t)
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (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
|
|
41
|
+
const me = /* @__PURE__ */ b(It, [["render", $t]]), Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
45
|
-
switch (
|
|
43
|
+
default: me
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), R = "vue", _ = () => {
|
|
45
|
+
switch (R) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
48
48
|
case "rsc":
|
|
@@ -54,9 +54,9 @@ const pe = /* @__PURE__ */ g(vt, [["render", St]]), Ni = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, Rt = g({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: me },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -83,20 +83,20 @@ const pe = /* @__PURE__ */ g(vt, [["render", St]]), Ni = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
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)
|
|
92
92
|
}, {
|
|
93
93
|
default: N(() => [
|
|
94
|
-
|
|
94
|
+
St(ne(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const Pt = /* @__PURE__ */ b(Rt, [["render", Et]]), Bt = Symbol(), ce = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -110,59 +110,46 @@ const Tt = /* @__PURE__ */ g(Ct, [["render", wt]]), It = Symbol(), le = {
|
|
|
110
110
|
inheritedStyles: {},
|
|
111
111
|
BlocksWrapper: "div",
|
|
112
112
|
BlocksWrapperProps: {},
|
|
113
|
-
nonce: ""
|
|
113
|
+
nonce: "",
|
|
114
|
+
model: ""
|
|
114
115
|
},
|
|
115
|
-
key:
|
|
116
|
-
},
|
|
116
|
+
key: Bt
|
|
117
|
+
}, At = Symbol(), Oe = {
|
|
117
118
|
Components: { registeredComponents: {} },
|
|
118
|
-
key:
|
|
119
|
-
}
|
|
120
|
-
function Rt(e) {
|
|
121
|
-
var t;
|
|
122
|
-
return {
|
|
123
|
-
...(t = e.component) == null ? void 0 : t.options,
|
|
124
|
-
...e.options
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
function Et(e, ...t) {
|
|
128
|
-
const n = Object.assign({}, e);
|
|
129
|
-
for (const o of t)
|
|
130
|
-
delete n[o];
|
|
131
|
-
return n;
|
|
132
|
-
}
|
|
133
|
-
const Q = "[Builder.io]: ", B = {
|
|
119
|
+
key: At
|
|
120
|
+
}, Q = "[Builder.io]: ", B = {
|
|
134
121
|
log: (...e) => console.log(Q, ...e),
|
|
135
122
|
error: (...e) => console.error(Q, ...e),
|
|
136
123
|
warn: (...e) => console.warn(Q, ...e),
|
|
137
124
|
debug: (...e) => console.debug(Q, ...e)
|
|
138
|
-
},
|
|
139
|
-
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);
|
|
140
127
|
return o === void 0 || o === e ? n : o;
|
|
141
128
|
};
|
|
142
|
-
function
|
|
129
|
+
function I() {
|
|
143
130
|
return typeof window < "u" && typeof document < "u";
|
|
144
131
|
}
|
|
145
|
-
const
|
|
132
|
+
const xt = (e) => {
|
|
146
133
|
const t = {};
|
|
147
134
|
return e.forEach((n, o) => {
|
|
148
135
|
t[o] = n;
|
|
149
136
|
}), t;
|
|
150
|
-
},
|
|
151
|
-
function
|
|
152
|
-
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;
|
|
153
140
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
156
|
-
|
|
141
|
+
function E(e) {
|
|
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;
|
|
157
144
|
}
|
|
158
|
-
const
|
|
159
|
-
if (
|
|
145
|
+
const Wt = () => {
|
|
146
|
+
if (I()) {
|
|
160
147
|
const e = new URL(location.href);
|
|
161
148
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
162
149
|
} else
|
|
163
150
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
164
|
-
},
|
|
165
|
-
const e =
|
|
151
|
+
}, Nt = () => typeof navigator == "object" && navigator.userAgent || "", Ue = () => {
|
|
152
|
+
const e = Nt(), t = {
|
|
166
153
|
Android() {
|
|
167
154
|
return e.match(/Android/i);
|
|
168
155
|
},
|
|
@@ -179,15 +166,15 @@ const xt = () => {
|
|
|
179
166
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
180
167
|
},
|
|
181
168
|
any() {
|
|
182
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
169
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || R === "reactNative";
|
|
183
170
|
}
|
|
184
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
171
|
+
}, n = e.match(/Tablet|iPad/i), o = Wt();
|
|
185
172
|
return {
|
|
186
173
|
urlPath: o == null ? void 0 : o.pathname,
|
|
187
174
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
188
175
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
189
176
|
};
|
|
190
|
-
},
|
|
177
|
+
}, Ot = ({
|
|
191
178
|
builder: e,
|
|
192
179
|
context: t,
|
|
193
180
|
event: n,
|
|
@@ -199,15 +186,15 @@ const xt = () => {
|
|
|
199
186
|
builder: e,
|
|
200
187
|
context: t,
|
|
201
188
|
event: n
|
|
202
|
-
}),
|
|
203
|
-
isEditing:
|
|
204
|
-
isBrowser:
|
|
205
|
-
isServer:
|
|
206
|
-
getUserAttributes: () =>
|
|
207
|
-
}),
|
|
189
|
+
}), Ft = () => ({
|
|
190
|
+
isEditing: E(),
|
|
191
|
+
isBrowser: I(),
|
|
192
|
+
isServer: !I(),
|
|
193
|
+
getUserAttributes: () => Ue()
|
|
194
|
+
}), Dt = (e, {
|
|
208
195
|
isExpression: t = !0
|
|
209
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;
|
|
210
|
-
function
|
|
197
|
+
function Me({
|
|
211
198
|
rootState: e,
|
|
212
199
|
localState: t,
|
|
213
200
|
rootSetState: n
|
|
@@ -216,91 +203,91 @@ function De({
|
|
|
216
203
|
get: (o, r) => {
|
|
217
204
|
if (t && r in t)
|
|
218
205
|
return t[r];
|
|
219
|
-
const
|
|
220
|
-
return typeof
|
|
221
|
-
rootState:
|
|
206
|
+
const s = o[r];
|
|
207
|
+
return typeof s == "object" && s !== null ? Me({
|
|
208
|
+
rootState: s,
|
|
222
209
|
localState: void 0,
|
|
223
|
-
rootSetState: n ? (
|
|
224
|
-
o[r] =
|
|
210
|
+
rootSetState: n ? (i) => {
|
|
211
|
+
o[r] = i, n(o);
|
|
225
212
|
} : void 0
|
|
226
|
-
}) :
|
|
213
|
+
}) : s;
|
|
227
214
|
},
|
|
228
|
-
set: (o, r,
|
|
215
|
+
set: (o, r, s) => {
|
|
229
216
|
if (t && r in t)
|
|
230
217
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
231
|
-
return o[r] =
|
|
218
|
+
return o[r] = s, n == null || n(o), !0;
|
|
232
219
|
}
|
|
233
220
|
});
|
|
234
221
|
}
|
|
235
|
-
const
|
|
222
|
+
const Ie = ({
|
|
236
223
|
code: e,
|
|
237
224
|
builder: t,
|
|
238
225
|
context: n,
|
|
239
226
|
event: o,
|
|
240
227
|
localState: r,
|
|
241
|
-
rootSetState:
|
|
242
|
-
rootState:
|
|
228
|
+
rootSetState: s,
|
|
229
|
+
rootState: i
|
|
243
230
|
}) => {
|
|
244
|
-
const l =
|
|
231
|
+
const l = Ot({
|
|
245
232
|
builder: t,
|
|
246
233
|
context: n,
|
|
247
234
|
event: o,
|
|
248
|
-
state:
|
|
249
|
-
rootState:
|
|
235
|
+
state: Me({
|
|
236
|
+
rootState: i,
|
|
250
237
|
localState: r,
|
|
251
|
-
rootSetState:
|
|
238
|
+
rootSetState: s
|
|
252
239
|
})
|
|
253
240
|
});
|
|
254
241
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
255
242
|
}, D = (e) => e != null;
|
|
256
|
-
function
|
|
243
|
+
function Lt() {
|
|
257
244
|
var e;
|
|
258
245
|
return typeof process < "u" && D((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
259
246
|
}
|
|
260
|
-
const
|
|
247
|
+
const Ut = ({
|
|
261
248
|
shouldLogWarning: e
|
|
262
249
|
}) => {
|
|
263
250
|
var r;
|
|
264
|
-
if (!
|
|
251
|
+
if (!Lt())
|
|
265
252
|
return !1;
|
|
266
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");
|
|
267
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;
|
|
268
|
-
},
|
|
255
|
+
}, Mt = (e) => (I() || Ut({
|
|
269
256
|
shouldLogWarning: !0
|
|
270
|
-
}),
|
|
271
|
-
var t, n, o, r,
|
|
272
|
-
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));
|
|
273
260
|
};
|
|
274
|
-
function
|
|
261
|
+
function Y({
|
|
275
262
|
code: e,
|
|
276
263
|
context: t,
|
|
277
264
|
localState: n,
|
|
278
265
|
rootState: o,
|
|
279
266
|
rootSetState: r,
|
|
280
|
-
event:
|
|
281
|
-
isExpression:
|
|
267
|
+
event: s,
|
|
268
|
+
isExpression: i = !0
|
|
282
269
|
}) {
|
|
283
270
|
if (e.trim() === "")
|
|
284
271
|
return;
|
|
285
|
-
const l =
|
|
272
|
+
const l = Kt(e.trim());
|
|
286
273
|
if (l)
|
|
287
|
-
return
|
|
274
|
+
return Fe({
|
|
288
275
|
...o,
|
|
289
276
|
...n
|
|
290
277
|
}, l);
|
|
291
278
|
const a = {
|
|
292
|
-
code:
|
|
293
|
-
isExpression:
|
|
279
|
+
code: Dt(e, {
|
|
280
|
+
isExpression: i
|
|
294
281
|
}),
|
|
295
|
-
builder:
|
|
282
|
+
builder: Ft(),
|
|
296
283
|
context: t,
|
|
297
|
-
event:
|
|
284
|
+
event: s,
|
|
298
285
|
rootSetState: r,
|
|
299
286
|
rootState: o,
|
|
300
287
|
localState: n
|
|
301
288
|
};
|
|
302
289
|
try {
|
|
303
|
-
return
|
|
290
|
+
return Mt(a);
|
|
304
291
|
} catch (u) {
|
|
305
292
|
B.error("Failed code evaluation: " + u.message, {
|
|
306
293
|
code: e
|
|
@@ -308,27 +295,95 @@ function J({
|
|
|
308
295
|
return;
|
|
309
296
|
}
|
|
310
297
|
}
|
|
311
|
-
|
|
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
|
+
}
|
|
326
|
+
function ee(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
327
|
+
if (e == null || typeof e != "object") {
|
|
328
|
+
t(e, (s) => {
|
|
329
|
+
n !== null && o !== null && (n[o] = s);
|
|
330
|
+
});
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((s, i) => {
|
|
334
|
+
t(s, (a) => {
|
|
335
|
+
e[i] = a;
|
|
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);
|
|
341
|
+
}));
|
|
342
|
+
}
|
|
343
|
+
function He(e) {
|
|
344
|
+
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
345
|
+
}
|
|
346
|
+
function Jt(e) {
|
|
347
|
+
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
348
|
+
return !1;
|
|
349
|
+
let t = !1;
|
|
350
|
+
return ee(e, (n) => {
|
|
351
|
+
if (He(n)) {
|
|
352
|
+
t = !0;
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
}), t;
|
|
356
|
+
}
|
|
357
|
+
function Yt(e, t) {
|
|
358
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ee(e, (n, o) => {
|
|
359
|
+
He(n) && o(n[t] ?? void 0);
|
|
360
|
+
}), e);
|
|
361
|
+
}
|
|
362
|
+
function Xt(e, t) {
|
|
363
|
+
var n, o;
|
|
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;
|
|
365
|
+
}
|
|
366
|
+
const he = (e) => JSON.parse(JSON.stringify(e)), je = (e, t, n) => {
|
|
312
367
|
if (Object(e) !== e)
|
|
313
368
|
return e;
|
|
314
369
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
315
|
-
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;
|
|
316
371
|
};
|
|
317
|
-
function
|
|
372
|
+
function de(e) {
|
|
318
373
|
if (e === null || typeof e != "object")
|
|
319
374
|
return e;
|
|
320
375
|
if (Array.isArray(e))
|
|
321
|
-
return e.map((n) =>
|
|
376
|
+
return e.map((n) => de(n));
|
|
322
377
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
323
378
|
return e;
|
|
324
379
|
const t = {};
|
|
325
380
|
for (const n in e)
|
|
326
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
381
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = de(e[n]));
|
|
327
382
|
return t;
|
|
328
383
|
}
|
|
329
|
-
const
|
|
330
|
-
if (
|
|
331
|
-
const t =
|
|
384
|
+
const Qt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Zt = (e) => {
|
|
385
|
+
if (Qt) {
|
|
386
|
+
const t = he(e);
|
|
332
387
|
return {
|
|
333
388
|
...t,
|
|
334
389
|
properties: {
|
|
@@ -339,7 +394,7 @@ const Ht = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), jt = (e) =
|
|
|
339
394
|
}
|
|
340
395
|
};
|
|
341
396
|
} else {
|
|
342
|
-
const t =
|
|
397
|
+
const t = de(Gt(e, "children", "meta"));
|
|
343
398
|
return {
|
|
344
399
|
...t,
|
|
345
400
|
properties: {
|
|
@@ -352,7 +407,7 @@ const Ht = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), jt = (e) =
|
|
|
352
407
|
meta: e.meta
|
|
353
408
|
};
|
|
354
409
|
}
|
|
355
|
-
},
|
|
410
|
+
}, _t = ({
|
|
356
411
|
block: e,
|
|
357
412
|
context: t,
|
|
358
413
|
localState: n,
|
|
@@ -361,55 +416,54 @@ const Ht = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), jt = (e) =
|
|
|
361
416
|
}) => {
|
|
362
417
|
if (!e.bindings)
|
|
363
418
|
return e;
|
|
364
|
-
const
|
|
365
|
-
for (const
|
|
366
|
-
const l = e.bindings[
|
|
419
|
+
const s = Zt(e);
|
|
420
|
+
for (const i in e.bindings) {
|
|
421
|
+
const l = e.bindings[i], a = Y({
|
|
367
422
|
code: l,
|
|
368
423
|
localState: n,
|
|
369
424
|
rootState: o,
|
|
370
425
|
rootSetState: r,
|
|
371
426
|
context: t
|
|
372
427
|
});
|
|
373
|
-
|
|
428
|
+
je(s, i, a);
|
|
374
429
|
}
|
|
375
|
-
return
|
|
430
|
+
return s;
|
|
376
431
|
};
|
|
377
|
-
function
|
|
432
|
+
function en({
|
|
378
433
|
block: e,
|
|
379
434
|
context: t,
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
rootSetState: i
|
|
435
|
+
localState: n,
|
|
436
|
+
rootState: o,
|
|
437
|
+
rootSetState: r
|
|
384
438
|
}) {
|
|
385
|
-
|
|
386
|
-
return
|
|
439
|
+
let s = Xt(e, o.locale);
|
|
440
|
+
return s = s, _t({
|
|
387
441
|
block: s,
|
|
388
|
-
localState:
|
|
389
|
-
rootState:
|
|
390
|
-
rootSetState:
|
|
442
|
+
localState: n,
|
|
443
|
+
rootState: o,
|
|
444
|
+
rootSetState: r,
|
|
391
445
|
context: t
|
|
392
|
-
})
|
|
446
|
+
});
|
|
393
447
|
}
|
|
394
|
-
function
|
|
395
|
-
const t = e || (
|
|
396
|
-
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;
|
|
397
451
|
}
|
|
398
|
-
const
|
|
452
|
+
const tn = (e) => ({
|
|
399
453
|
type: "builder.registerComponent",
|
|
400
|
-
data:
|
|
401
|
-
}),
|
|
454
|
+
data: te(e)
|
|
455
|
+
}), nn = (e) => {
|
|
402
456
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
403
|
-
return `return (${!t.startsWith("function") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
457
|
+
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
404
458
|
};
|
|
405
|
-
function
|
|
406
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
459
|
+
function te(e) {
|
|
460
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? nn(n) : n));
|
|
407
461
|
}
|
|
408
|
-
const
|
|
409
|
-
function
|
|
410
|
-
e === "plugin" && (t =
|
|
411
|
-
let n =
|
|
412
|
-
if (n || (n =
|
|
462
|
+
const $e = {};
|
|
463
|
+
function on(e, t) {
|
|
464
|
+
e === "plugin" && (t = te(t));
|
|
465
|
+
let n = $e[e];
|
|
466
|
+
if (n || (n = $e[e] = []), n.push(t), I()) {
|
|
413
467
|
const o = {
|
|
414
468
|
type: "builder.register",
|
|
415
469
|
data: {
|
|
@@ -424,42 +478,42 @@ function Yt(e, t) {
|
|
|
424
478
|
}
|
|
425
479
|
}
|
|
426
480
|
}
|
|
427
|
-
const
|
|
428
|
-
function
|
|
429
|
-
if (
|
|
430
|
-
Object.assign(
|
|
481
|
+
const Re = {};
|
|
482
|
+
function Xs(e) {
|
|
483
|
+
if (I()) {
|
|
484
|
+
Object.assign(Re, e);
|
|
431
485
|
const t = {
|
|
432
486
|
type: "builder.settingsChange",
|
|
433
|
-
data:
|
|
487
|
+
data: Re
|
|
434
488
|
};
|
|
435
489
|
parent.postMessage(t, "*");
|
|
436
490
|
}
|
|
437
491
|
}
|
|
438
|
-
const
|
|
492
|
+
const Ee = "builder.", rn = "options.", qe = (e) => {
|
|
439
493
|
if (!e)
|
|
440
494
|
return {};
|
|
441
|
-
const t =
|
|
495
|
+
const t = De(e), n = {};
|
|
442
496
|
return Object.keys(t).forEach((o) => {
|
|
443
|
-
if (o.startsWith(
|
|
444
|
-
const r = o.replace(
|
|
497
|
+
if (o.startsWith(Ee)) {
|
|
498
|
+
const r = o.replace(Ee, "").replace(rn, "");
|
|
445
499
|
n[r] = t[o];
|
|
446
500
|
}
|
|
447
501
|
}), n;
|
|
448
|
-
},
|
|
449
|
-
if (
|
|
502
|
+
}, sn = () => {
|
|
503
|
+
if (!I())
|
|
450
504
|
return {};
|
|
451
505
|
const e = new URLSearchParams(window.location.search);
|
|
452
|
-
return
|
|
453
|
-
},
|
|
454
|
-
"X-Builder-SDK":
|
|
506
|
+
return qe(e);
|
|
507
|
+
}, ze = "3.0.2", Ge = () => ({
|
|
508
|
+
"X-Builder-SDK": R,
|
|
455
509
|
"X-Builder-SDK-GEN": "2",
|
|
456
|
-
"X-Builder-SDK-Version":
|
|
457
|
-
}),
|
|
510
|
+
"X-Builder-SDK-Version": ze
|
|
511
|
+
}), an = (e) => {
|
|
458
512
|
if (e === "localhost" || e === "127.0.0.1")
|
|
459
513
|
return e;
|
|
460
514
|
const t = e.split(".");
|
|
461
515
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
462
|
-
},
|
|
516
|
+
}, Je = ({
|
|
463
517
|
name: e,
|
|
464
518
|
canTrack: t
|
|
465
519
|
}) => {
|
|
@@ -470,14 +524,14 @@ const Ie = "builder.", Xt = "options.", Ue = (e) => {
|
|
|
470
524
|
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
471
525
|
return;
|
|
472
526
|
}
|
|
473
|
-
},
|
|
527
|
+
}, Ye = async (e) => Je(e), ln = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), cn = [["secure", ""], ["SameSite", "None"]], dn = ({
|
|
474
528
|
name: e,
|
|
475
529
|
value: t,
|
|
476
530
|
expires: n
|
|
477
531
|
}) => {
|
|
478
|
-
const r = (
|
|
479
|
-
return
|
|
480
|
-
},
|
|
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 ({
|
|
481
535
|
name: e,
|
|
482
536
|
value: t,
|
|
483
537
|
expires: n,
|
|
@@ -486,7 +540,7 @@ const Ie = "builder.", Xt = "options.", Ue = (e) => {
|
|
|
486
540
|
try {
|
|
487
541
|
if (!o)
|
|
488
542
|
return;
|
|
489
|
-
const r =
|
|
543
|
+
const r = dn({
|
|
490
544
|
name: e,
|
|
491
545
|
value: t,
|
|
492
546
|
expires: n
|
|
@@ -496,93 +550,93 @@ const Ie = "builder.", Xt = "options.", Ue = (e) => {
|
|
|
496
550
|
B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
497
551
|
}
|
|
498
552
|
};
|
|
499
|
-
function
|
|
553
|
+
function un() {
|
|
500
554
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
501
555
|
const t = Math.random() * 16 | 0;
|
|
502
556
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
503
557
|
});
|
|
504
558
|
}
|
|
505
|
-
function
|
|
506
|
-
return
|
|
559
|
+
function Qe() {
|
|
560
|
+
return un().replace(/-/g, "");
|
|
507
561
|
}
|
|
508
|
-
const
|
|
562
|
+
const Ze = "builderSessionId", pn = async ({
|
|
509
563
|
canTrack: e
|
|
510
564
|
}) => {
|
|
511
565
|
if (!e)
|
|
512
566
|
return;
|
|
513
|
-
const t = await
|
|
514
|
-
name:
|
|
567
|
+
const t = await Ye({
|
|
568
|
+
name: Ze,
|
|
515
569
|
canTrack: e
|
|
516
570
|
});
|
|
517
571
|
if (D(t))
|
|
518
572
|
return t;
|
|
519
573
|
{
|
|
520
|
-
const n =
|
|
521
|
-
return
|
|
574
|
+
const n = mn();
|
|
575
|
+
return hn({
|
|
522
576
|
id: n,
|
|
523
577
|
canTrack: e
|
|
524
578
|
}), n;
|
|
525
579
|
}
|
|
526
|
-
},
|
|
580
|
+
}, mn = () => Qe(), hn = ({
|
|
527
581
|
id: e,
|
|
528
582
|
canTrack: t
|
|
529
|
-
}) =>
|
|
530
|
-
name:
|
|
583
|
+
}) => Xe({
|
|
584
|
+
name: Ze,
|
|
531
585
|
value: e,
|
|
532
586
|
canTrack: t
|
|
533
|
-
}),
|
|
587
|
+
}), _e = () => I() && typeof localStorage < "u" ? localStorage : void 0, fn = ({
|
|
534
588
|
key: e,
|
|
535
589
|
canTrack: t
|
|
536
590
|
}) => {
|
|
537
591
|
var n;
|
|
538
592
|
try {
|
|
539
|
-
return t ? (n =
|
|
593
|
+
return t ? (n = _e()) == null ? void 0 : n.getItem(e) : void 0;
|
|
540
594
|
} catch (o) {
|
|
541
595
|
console.debug("[LocalStorage] GET error: ", o);
|
|
542
596
|
return;
|
|
543
597
|
}
|
|
544
|
-
},
|
|
598
|
+
}, gn = ({
|
|
545
599
|
key: e,
|
|
546
600
|
canTrack: t,
|
|
547
601
|
value: n
|
|
548
602
|
}) => {
|
|
549
603
|
var o;
|
|
550
604
|
try {
|
|
551
|
-
t && ((o =
|
|
605
|
+
t && ((o = _e()) == null || o.setItem(e, n));
|
|
552
606
|
} catch (r) {
|
|
553
607
|
console.debug("[LocalStorage] SET error: ", r);
|
|
554
608
|
}
|
|
555
|
-
},
|
|
609
|
+
}, et = "builderVisitorId", bn = ({
|
|
556
610
|
canTrack: e
|
|
557
611
|
}) => {
|
|
558
612
|
if (!e)
|
|
559
613
|
return;
|
|
560
|
-
const t =
|
|
561
|
-
key:
|
|
614
|
+
const t = fn({
|
|
615
|
+
key: et,
|
|
562
616
|
canTrack: e
|
|
563
617
|
});
|
|
564
618
|
if (D(t))
|
|
565
619
|
return t;
|
|
566
620
|
{
|
|
567
|
-
const n =
|
|
568
|
-
return
|
|
621
|
+
const n = yn();
|
|
622
|
+
return kn({
|
|
569
623
|
id: n,
|
|
570
624
|
canTrack: e
|
|
571
625
|
}), n;
|
|
572
626
|
}
|
|
573
|
-
},
|
|
627
|
+
}, yn = () => Qe(), kn = ({
|
|
574
628
|
id: e,
|
|
575
629
|
canTrack: t
|
|
576
|
-
}) =>
|
|
577
|
-
key:
|
|
630
|
+
}) => gn({
|
|
631
|
+
key: et,
|
|
578
632
|
value: e,
|
|
579
633
|
canTrack: t
|
|
580
634
|
});
|
|
581
|
-
function
|
|
635
|
+
function fe(e) {
|
|
582
636
|
var t;
|
|
583
637
|
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
|
|
584
638
|
}
|
|
585
|
-
const
|
|
639
|
+
const vn = async ({
|
|
586
640
|
canTrack: e
|
|
587
641
|
}) => {
|
|
588
642
|
if (!e)
|
|
@@ -590,16 +644,16 @@ const pn = async ({
|
|
|
590
644
|
visitorId: void 0,
|
|
591
645
|
sessionId: void 0
|
|
592
646
|
};
|
|
593
|
-
const t = await
|
|
647
|
+
const t = await pn({
|
|
594
648
|
canTrack: e
|
|
595
|
-
}), n =
|
|
649
|
+
}), n = bn({
|
|
596
650
|
canTrack: e
|
|
597
651
|
});
|
|
598
652
|
return {
|
|
599
653
|
sessionId: t,
|
|
600
654
|
visitorId: n
|
|
601
655
|
};
|
|
602
|
-
},
|
|
656
|
+
}, Sn = async ({
|
|
603
657
|
type: e,
|
|
604
658
|
canTrack: t,
|
|
605
659
|
apiKey: n,
|
|
@@ -613,14 +667,14 @@ const pn = async ({
|
|
|
613
667
|
url: location.href,
|
|
614
668
|
...o
|
|
615
669
|
},
|
|
616
|
-
...await
|
|
670
|
+
...await vn({
|
|
617
671
|
canTrack: t
|
|
618
672
|
}),
|
|
619
|
-
userAttributes:
|
|
673
|
+
userAttributes: Ue(),
|
|
620
674
|
ownerId: n
|
|
621
675
|
}
|
|
622
676
|
});
|
|
623
|
-
async function
|
|
677
|
+
async function ue({
|
|
624
678
|
apiHost: e,
|
|
625
679
|
...t
|
|
626
680
|
}) {
|
|
@@ -628,35 +682,35 @@ async function de({
|
|
|
628
682
|
B.error("Missing API key for track call. Please provide your API key.");
|
|
629
683
|
return;
|
|
630
684
|
}
|
|
631
|
-
if (!t.canTrack ||
|
|
685
|
+
if (!t.canTrack || E() || !(I() || R === "reactNative"))
|
|
632
686
|
return;
|
|
633
687
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
634
|
-
return
|
|
688
|
+
return fe(o), fetch(o, {
|
|
635
689
|
method: "POST",
|
|
636
690
|
body: JSON.stringify({
|
|
637
|
-
events: [await
|
|
691
|
+
events: [await Sn(t)]
|
|
638
692
|
}),
|
|
639
693
|
headers: {
|
|
640
694
|
"content-type": "application/json",
|
|
641
|
-
...
|
|
695
|
+
...Ge()
|
|
642
696
|
},
|
|
643
697
|
mode: "cors"
|
|
644
698
|
}).catch((r) => {
|
|
645
699
|
console.error("Failed to track: ", r);
|
|
646
700
|
});
|
|
647
701
|
}
|
|
648
|
-
const
|
|
702
|
+
const Qs = (e) => ue({
|
|
649
703
|
...e,
|
|
650
704
|
canTrack: !0
|
|
651
|
-
}),
|
|
652
|
-
function
|
|
705
|
+
}), Cn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
706
|
+
function tt(e, t) {
|
|
653
707
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
654
708
|
return !1;
|
|
655
709
|
const n = new URL(t.origin), o = n.hostname;
|
|
656
|
-
return (e ||
|
|
710
|
+
return (e || Cn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
657
711
|
}
|
|
658
|
-
const
|
|
659
|
-
|
|
712
|
+
const wn = () => {
|
|
713
|
+
on("insertMenu", {
|
|
660
714
|
name: "_default",
|
|
661
715
|
default: !0,
|
|
662
716
|
items: [{
|
|
@@ -678,14 +732,14 @@ const fn = () => {
|
|
|
678
732
|
}]
|
|
679
733
|
});
|
|
680
734
|
};
|
|
681
|
-
let
|
|
682
|
-
const
|
|
735
|
+
let Pe = !1;
|
|
736
|
+
const nt = (e = {}) => {
|
|
683
737
|
var t, n;
|
|
684
|
-
|
|
738
|
+
Pe || (Pe = !0, I() && ((t = window.parent) == null || t.postMessage({
|
|
685
739
|
type: "builder.sdkInfo",
|
|
686
740
|
data: {
|
|
687
|
-
target:
|
|
688
|
-
version:
|
|
741
|
+
target: R,
|
|
742
|
+
version: ze,
|
|
689
743
|
supportsPatchUpdates: !1,
|
|
690
744
|
// Supports builder-model="..." attribute which is needed to
|
|
691
745
|
// scope our '+ add block' button styling
|
|
@@ -698,8 +752,8 @@ const Qe = (e = {}) => {
|
|
|
698
752
|
options: e
|
|
699
753
|
}
|
|
700
754
|
}, "*"), window.addEventListener("message", (o) => {
|
|
701
|
-
var
|
|
702
|
-
if (!
|
|
755
|
+
var s, i;
|
|
756
|
+
if (!tt(e.trustedHosts, o))
|
|
703
757
|
return;
|
|
704
758
|
const {
|
|
705
759
|
data: r
|
|
@@ -714,7 +768,7 @@ const Qe = (e = {}) => {
|
|
|
714
768
|
} catch (f) {
|
|
715
769
|
d = f;
|
|
716
770
|
}
|
|
717
|
-
d ? (
|
|
771
|
+
d ? (s = window.parent) == null || s.postMessage({
|
|
718
772
|
type: "builder.evaluateError",
|
|
719
773
|
data: {
|
|
720
774
|
id: u,
|
|
@@ -729,7 +783,7 @@ const Qe = (e = {}) => {
|
|
|
729
783
|
result: f
|
|
730
784
|
}
|
|
731
785
|
}, "*");
|
|
732
|
-
}).catch(console.error) : (
|
|
786
|
+
}).catch(console.error) : (i = window.parent) == null || i.postMessage({
|
|
733
787
|
type: "builder.evaluateResult",
|
|
734
788
|
data: {
|
|
735
789
|
result: h,
|
|
@@ -740,12 +794,12 @@ const Qe = (e = {}) => {
|
|
|
740
794
|
}
|
|
741
795
|
}
|
|
742
796
|
})));
|
|
743
|
-
},
|
|
797
|
+
}, ot = ({
|
|
744
798
|
model: e,
|
|
745
799
|
trustedHosts: t,
|
|
746
800
|
callbacks: n
|
|
747
801
|
}) => (o) => {
|
|
748
|
-
if (!
|
|
802
|
+
if (!tt(t, o))
|
|
749
803
|
return;
|
|
750
804
|
const {
|
|
751
805
|
data: r
|
|
@@ -761,17 +815,17 @@ const Qe = (e = {}) => {
|
|
|
761
815
|
break;
|
|
762
816
|
}
|
|
763
817
|
case "builder.contentUpdate": {
|
|
764
|
-
const
|
|
765
|
-
|
|
818
|
+
const s = r.data, i = s.key || s.alias || s.entry || s.modelName, l = s.data;
|
|
819
|
+
i === e && n.contentUpdate(l);
|
|
766
820
|
break;
|
|
767
821
|
}
|
|
768
822
|
}
|
|
769
|
-
},
|
|
770
|
-
if (
|
|
823
|
+
}, Zs = (e, t, n) => {
|
|
824
|
+
if (!I)
|
|
771
825
|
return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
772
826
|
};
|
|
773
|
-
|
|
774
|
-
const o =
|
|
827
|
+
nt();
|
|
828
|
+
const o = ot({
|
|
775
829
|
callbacks: {
|
|
776
830
|
contentUpdate: t,
|
|
777
831
|
animation: () => {
|
|
@@ -785,45 +839,45 @@ const Qe = (e = {}) => {
|
|
|
785
839
|
return window.addEventListener("message", o), () => {
|
|
786
840
|
window.removeEventListener("message", o);
|
|
787
841
|
};
|
|
788
|
-
},
|
|
842
|
+
}, Tn = "builder.tests", ge = (e) => `${Tn}.${e}`, In = ({
|
|
789
843
|
contentId: e
|
|
790
|
-
}) =>
|
|
791
|
-
name:
|
|
844
|
+
}) => Ye({
|
|
845
|
+
name: ge(e),
|
|
792
846
|
canTrack: !0
|
|
793
|
-
}),
|
|
847
|
+
}), $n = ({
|
|
794
848
|
contentId: e
|
|
795
|
-
}) =>
|
|
796
|
-
name:
|
|
849
|
+
}) => Je({
|
|
850
|
+
name: ge(e),
|
|
797
851
|
canTrack: !0
|
|
798
|
-
}),
|
|
852
|
+
}), Rn = ({
|
|
799
853
|
contentId: e,
|
|
800
854
|
value: t
|
|
801
|
-
}) =>
|
|
802
|
-
name:
|
|
855
|
+
}) => Xe({
|
|
856
|
+
name: ge(e),
|
|
803
857
|
value: t,
|
|
804
858
|
canTrack: !0
|
|
805
|
-
}),
|
|
859
|
+
}), rt = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, En = ({
|
|
806
860
|
id: e,
|
|
807
861
|
variations: t
|
|
808
862
|
}) => {
|
|
809
863
|
var r;
|
|
810
864
|
let n = 0;
|
|
811
865
|
const o = Math.random();
|
|
812
|
-
for (const
|
|
813
|
-
const
|
|
814
|
-
if (n +=
|
|
815
|
-
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;
|
|
816
870
|
}
|
|
817
871
|
return e;
|
|
818
|
-
},
|
|
819
|
-
const t =
|
|
820
|
-
return
|
|
872
|
+
}, st = (e) => {
|
|
873
|
+
const t = En(e);
|
|
874
|
+
return Rn({
|
|
821
875
|
contentId: e.id,
|
|
822
876
|
value: t
|
|
823
877
|
}).catch((n) => {
|
|
824
878
|
B.error("could not store A/B test variation: ", n);
|
|
825
879
|
}), t;
|
|
826
|
-
},
|
|
880
|
+
}, it = ({
|
|
827
881
|
item: e,
|
|
828
882
|
testGroupId: t
|
|
829
883
|
}) => {
|
|
@@ -837,7 +891,7 @@ const Qe = (e = {}) => {
|
|
|
837
891
|
testVariationId: n.id,
|
|
838
892
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
839
893
|
};
|
|
840
|
-
},
|
|
894
|
+
}, Pn = ({
|
|
841
895
|
item: e,
|
|
842
896
|
canTrack: t
|
|
843
897
|
}) => {
|
|
@@ -845,14 +899,14 @@ const Qe = (e = {}) => {
|
|
|
845
899
|
return e;
|
|
846
900
|
if (!e)
|
|
847
901
|
return;
|
|
848
|
-
if (!
|
|
902
|
+
if (!rt(e))
|
|
849
903
|
return e;
|
|
850
|
-
const n =
|
|
904
|
+
const n = $n({
|
|
851
905
|
contentId: e.id
|
|
852
|
-
}) ||
|
|
906
|
+
}) || st({
|
|
853
907
|
variations: e.variations,
|
|
854
908
|
id: e.id
|
|
855
|
-
}), o =
|
|
909
|
+
}), o = it({
|
|
856
910
|
item: e,
|
|
857
911
|
testGroupId: n
|
|
858
912
|
});
|
|
@@ -860,18 +914,18 @@ const Qe = (e = {}) => {
|
|
|
860
914
|
...e,
|
|
861
915
|
...o
|
|
862
916
|
};
|
|
863
|
-
},
|
|
917
|
+
}, Bn = async ({
|
|
864
918
|
item: e,
|
|
865
919
|
canTrack: t
|
|
866
920
|
}) => {
|
|
867
|
-
if (!t || !
|
|
921
|
+
if (!t || !rt(e))
|
|
868
922
|
return e;
|
|
869
|
-
const o = await
|
|
923
|
+
const o = await In({
|
|
870
924
|
contentId: e.id
|
|
871
|
-
}) ||
|
|
925
|
+
}) || st({
|
|
872
926
|
variations: e.variations,
|
|
873
927
|
id: e.id
|
|
874
|
-
}), r =
|
|
928
|
+
}), r = it({
|
|
875
929
|
item: e,
|
|
876
930
|
testGroupId: o
|
|
877
931
|
});
|
|
@@ -879,47 +933,59 @@ const Qe = (e = {}) => {
|
|
|
879
933
|
...e,
|
|
880
934
|
...r
|
|
881
935
|
};
|
|
882
|
-
},
|
|
883
|
-
function
|
|
936
|
+
}, J = (e) => D(e) ? e : !0;
|
|
937
|
+
function An() {
|
|
884
938
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
885
939
|
}
|
|
886
|
-
function
|
|
887
|
-
const e =
|
|
940
|
+
function xn() {
|
|
941
|
+
const e = An().fetch;
|
|
888
942
|
if (typeof e > "u")
|
|
889
943
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
890
944
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
891
945
|
return e;
|
|
892
946
|
}
|
|
893
|
-
const
|
|
894
|
-
function
|
|
947
|
+
const Vn = xn();
|
|
948
|
+
function pe(e, t = null, n = ".") {
|
|
895
949
|
return Object.keys(e).reduce((o, r) => {
|
|
896
|
-
const
|
|
897
|
-
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) ? {
|
|
898
952
|
...o,
|
|
899
|
-
...
|
|
953
|
+
...pe(s, i, n)
|
|
900
954
|
} : {
|
|
901
955
|
...o,
|
|
902
|
-
[
|
|
956
|
+
[i]: s
|
|
903
957
|
};
|
|
904
958
|
}, {});
|
|
905
959
|
}
|
|
906
|
-
function
|
|
960
|
+
function at(e, t, n = {}) {
|
|
907
961
|
for (const o in e) {
|
|
908
|
-
const r = e[o],
|
|
909
|
-
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;
|
|
910
964
|
}
|
|
911
965
|
return n;
|
|
912
966
|
}
|
|
913
|
-
|
|
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) => {
|
|
914
980
|
const {
|
|
915
981
|
limit: t = 30,
|
|
916
982
|
userAttributes: n,
|
|
917
983
|
query: o,
|
|
918
984
|
model: r,
|
|
919
|
-
apiKey:
|
|
920
|
-
enrich:
|
|
985
|
+
apiKey: s,
|
|
986
|
+
enrich: i,
|
|
921
987
|
locale: l,
|
|
922
|
-
apiVersion: a =
|
|
988
|
+
apiVersion: a = Nn,
|
|
923
989
|
fields: u,
|
|
924
990
|
omit: m,
|
|
925
991
|
offset: h,
|
|
@@ -929,65 +995,84 @@ const $n = "v3", Re = (e) => typeof e == "number" && !isNaN(e) && e >= 0, be = (
|
|
|
929
995
|
includeUnpublished: w,
|
|
930
996
|
apiHost: L
|
|
931
997
|
} = e;
|
|
932
|
-
if (!
|
|
998
|
+
if (!s)
|
|
933
999
|
throw new Error("Missing API key");
|
|
934
1000
|
if (!["v3"].includes(a))
|
|
935
1001
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
936
|
-
const
|
|
937
|
-
|
|
938
|
-
const
|
|
939
|
-
let
|
|
940
|
-
if (
|
|
941
|
-
locale:
|
|
942
|
-
...
|
|
943
|
-
}),
|
|
944
|
-
const O =
|
|
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));
|
|
1004
|
+
const oe = l || (n == null ? void 0 : n.locale);
|
|
1005
|
+
let U = n || {};
|
|
1006
|
+
if (oe && ($.searchParams.set("locale", oe), U = {
|
|
1007
|
+
locale: oe,
|
|
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) {
|
|
1010
|
+
const O = pe({
|
|
945
1011
|
sort: S
|
|
946
1012
|
});
|
|
947
|
-
for (const
|
|
948
|
-
|
|
1013
|
+
for (const H in O)
|
|
1014
|
+
$.searchParams.set(H, JSON.stringify(O[H]));
|
|
949
1015
|
}
|
|
950
|
-
const
|
|
951
|
-
...
|
|
952
|
-
...
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
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({
|
|
958
1029
|
query: o
|
|
959
1030
|
});
|
|
960
|
-
for (const
|
|
961
|
-
|
|
1031
|
+
for (const H in O)
|
|
1032
|
+
$.searchParams.set(H, JSON.stringify(O[H]));
|
|
1033
|
+
}
|
|
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;
|
|
962
1047
|
}
|
|
963
|
-
return
|
|
964
|
-
},
|
|
965
|
-
async function
|
|
966
|
-
const t = await
|
|
1048
|
+
return {};
|
|
1049
|
+
}, Dn = (e) => "results" in e;
|
|
1050
|
+
async function ye(e) {
|
|
1051
|
+
const t = await Mn({
|
|
967
1052
|
...e,
|
|
968
1053
|
limit: 1
|
|
969
1054
|
});
|
|
970
1055
|
return t && t[0] || null;
|
|
971
1056
|
}
|
|
972
|
-
const
|
|
973
|
-
var
|
|
974
|
-
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 = {
|
|
975
1060
|
...e.fetchOptions,
|
|
976
1061
|
headers: {
|
|
977
|
-
...(
|
|
978
|
-
...
|
|
1062
|
+
...(i = e.fetchOptions) == null ? void 0 : i.headers,
|
|
1063
|
+
...Ge()
|
|
979
1064
|
}
|
|
980
1065
|
};
|
|
981
1066
|
return await (await n(t.href, o)).json();
|
|
982
|
-
},
|
|
983
|
-
const o =
|
|
984
|
-
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"))
|
|
985
1070
|
return t.results;
|
|
986
1071
|
try {
|
|
987
1072
|
const r = [];
|
|
988
|
-
for (const
|
|
989
|
-
r.push(await
|
|
990
|
-
item:
|
|
1073
|
+
for (const s of t.results)
|
|
1074
|
+
r.push(await Bn({
|
|
1075
|
+
item: s,
|
|
991
1076
|
canTrack: o
|
|
992
1077
|
}));
|
|
993
1078
|
t.results = r;
|
|
@@ -996,18 +1081,18 @@ const En = async (e) => {
|
|
|
996
1081
|
}
|
|
997
1082
|
return t.results;
|
|
998
1083
|
};
|
|
999
|
-
async function
|
|
1000
|
-
const t = be(e), n = await
|
|
1001
|
-
if (!
|
|
1084
|
+
async function Mn(e) {
|
|
1085
|
+
const t = be(e), n = await Ln(e);
|
|
1086
|
+
if (!Dn(n))
|
|
1002
1087
|
throw B.error("Error fetching data. ", {
|
|
1003
1088
|
url: t,
|
|
1004
1089
|
content: n,
|
|
1005
1090
|
options: e
|
|
1006
1091
|
}), n;
|
|
1007
|
-
return
|
|
1092
|
+
return Un(e, n);
|
|
1008
1093
|
}
|
|
1009
|
-
const
|
|
1010
|
-
var o, r,
|
|
1094
|
+
const _s = async (e) => {
|
|
1095
|
+
var o, r, s;
|
|
1011
1096
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1012
1097
|
...e,
|
|
1013
1098
|
apiKey: e.apiKey,
|
|
@@ -1018,94 +1103,94 @@ const Li = async (e) => {
|
|
|
1018
1103
|
urlPath: t
|
|
1019
1104
|
} : {}
|
|
1020
1105
|
},
|
|
1021
|
-
options:
|
|
1106
|
+
options: qe(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
|
|
1022
1107
|
};
|
|
1023
1108
|
return {
|
|
1024
1109
|
apiKey: n.apiKey,
|
|
1025
1110
|
model: n.model,
|
|
1026
|
-
content: await
|
|
1111
|
+
content: await ye(n)
|
|
1027
1112
|
};
|
|
1028
|
-
},
|
|
1029
|
-
function
|
|
1030
|
-
let o, r,
|
|
1113
|
+
}, ke = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1114
|
+
function Hn(e, t, n = {}) {
|
|
1115
|
+
let o, r, s, i = null, l = 0;
|
|
1031
1116
|
const a = function() {
|
|
1032
|
-
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);
|
|
1033
1118
|
};
|
|
1034
1119
|
return function() {
|
|
1035
1120
|
const u = Date.now();
|
|
1036
1121
|
!l && n.leading === !1 && (l = u);
|
|
1037
1122
|
const m = t - (u - l);
|
|
1038
|
-
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;
|
|
1039
1124
|
};
|
|
1040
1125
|
}
|
|
1041
|
-
function
|
|
1126
|
+
function q(e, ...t) {
|
|
1042
1127
|
const n = Object(e);
|
|
1043
1128
|
for (let o = 1; o < arguments.length; o++) {
|
|
1044
1129
|
const r = arguments[o];
|
|
1045
1130
|
if (r != null)
|
|
1046
|
-
for (const
|
|
1047
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
1131
|
+
for (const s in r)
|
|
1132
|
+
Object.prototype.hasOwnProperty.call(r, s) && (n[s] = r[s]);
|
|
1048
1133
|
}
|
|
1049
1134
|
return n;
|
|
1050
1135
|
}
|
|
1051
|
-
function
|
|
1136
|
+
function jn(e) {
|
|
1052
1137
|
for (const t of e)
|
|
1053
1138
|
switch (t.trigger) {
|
|
1054
1139
|
case "pageLoad":
|
|
1055
|
-
|
|
1140
|
+
dt(t);
|
|
1056
1141
|
break;
|
|
1057
1142
|
case "scrollInView":
|
|
1058
|
-
|
|
1143
|
+
qn(t);
|
|
1059
1144
|
break;
|
|
1060
1145
|
}
|
|
1061
1146
|
}
|
|
1062
|
-
function
|
|
1147
|
+
function lt(e) {
|
|
1063
1148
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1064
1149
|
}
|
|
1065
|
-
function
|
|
1066
|
-
const n =
|
|
1067
|
-
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)
|
|
1068
1153
|
for (const a of n)
|
|
1069
1154
|
a in l || (l[a] = o[a]);
|
|
1070
1155
|
}
|
|
1071
|
-
function
|
|
1156
|
+
function Kn(e) {
|
|
1072
1157
|
const t = [];
|
|
1073
1158
|
for (const n of e.steps)
|
|
1074
1159
|
for (const o in n.styles)
|
|
1075
1160
|
t.indexOf(o) === -1 && t.push(o);
|
|
1076
1161
|
return t;
|
|
1077
1162
|
}
|
|
1078
|
-
function
|
|
1163
|
+
function dt(e) {
|
|
1079
1164
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1080
1165
|
if (!t.length) {
|
|
1081
|
-
|
|
1166
|
+
lt(e.elementId || e.id || "");
|
|
1082
1167
|
return;
|
|
1083
1168
|
}
|
|
1084
1169
|
Array.from(t).forEach((n) => {
|
|
1085
|
-
|
|
1086
|
-
n.style.transition = `all ${e.duration}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(() => {
|
|
1087
1172
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1088
1173
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1089
1174
|
});
|
|
1090
1175
|
});
|
|
1091
1176
|
}
|
|
1092
|
-
function
|
|
1177
|
+
function qn(e) {
|
|
1093
1178
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1094
1179
|
if (!t.length) {
|
|
1095
|
-
|
|
1180
|
+
lt(e.elementId || e.id || "");
|
|
1096
1181
|
return;
|
|
1097
1182
|
}
|
|
1098
1183
|
Array.from(t).forEach((n) => {
|
|
1099
|
-
|
|
1184
|
+
ct(e, n);
|
|
1100
1185
|
let o = !1, r = !1;
|
|
1101
|
-
function
|
|
1186
|
+
function s() {
|
|
1102
1187
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
1103
|
-
|
|
1188
|
+
q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
|
|
1104
1189
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
1105
1190
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1106
|
-
})) : e.repeat && o && !r && !l(n) && (o = !1,
|
|
1191
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, q(n.style, e.steps[0].styles));
|
|
1107
1192
|
}
|
|
1108
|
-
const
|
|
1193
|
+
const i = Hn(s, 200, {
|
|
1109
1194
|
leading: !1
|
|
1110
1195
|
});
|
|
1111
1196
|
function l(m) {
|
|
@@ -1114,52 +1199,52 @@ function Wn(e) {
|
|
|
1114
1199
|
}
|
|
1115
1200
|
const a = e.steps[0].styles;
|
|
1116
1201
|
function u() {
|
|
1117
|
-
|
|
1202
|
+
q(n.style, a);
|
|
1118
1203
|
}
|
|
1119
1204
|
u(), setTimeout(() => {
|
|
1120
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1121
|
-
}), document.addEventListener("scroll",
|
|
1205
|
+
n.style.transition = `all ${e.duration}s ${ke(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
1206
|
+
}), document.addEventListener("scroll", i, {
|
|
1122
1207
|
capture: !0,
|
|
1123
1208
|
passive: !0
|
|
1124
|
-
}),
|
|
1209
|
+
}), s();
|
|
1125
1210
|
});
|
|
1126
1211
|
}
|
|
1127
|
-
const
|
|
1212
|
+
const ut = (e) => Object.entries(e).map(([n, o]) => {
|
|
1128
1213
|
if (typeof o == "string")
|
|
1129
|
-
return `${
|
|
1130
|
-
}).filter(D),
|
|
1131
|
-
`),
|
|
1214
|
+
return `${ke(n)}: ${o};`;
|
|
1215
|
+
}).filter(D), zn = (e) => ut(e).join(`
|
|
1216
|
+
`), ei = ({
|
|
1132
1217
|
mediaQuery: e,
|
|
1133
1218
|
className: t,
|
|
1134
1219
|
styles: n
|
|
1135
1220
|
}) => {
|
|
1136
1221
|
const o = `.${t} {
|
|
1137
|
-
${
|
|
1222
|
+
${zn(n)}
|
|
1138
1223
|
}`;
|
|
1139
1224
|
return e ? `${e} {
|
|
1140
1225
|
${o}
|
|
1141
1226
|
}` : o;
|
|
1142
1227
|
};
|
|
1143
|
-
function
|
|
1228
|
+
function Gn({
|
|
1144
1229
|
style: e
|
|
1145
1230
|
}) {
|
|
1146
1231
|
return e;
|
|
1147
1232
|
}
|
|
1148
|
-
const
|
|
1233
|
+
const ti = ({
|
|
1149
1234
|
block: e,
|
|
1150
1235
|
context: t
|
|
1151
|
-
}) =>
|
|
1236
|
+
}) => pt(Gn({
|
|
1152
1237
|
style: e.style || {},
|
|
1153
1238
|
context: t,
|
|
1154
1239
|
block: e
|
|
1155
1240
|
}));
|
|
1156
|
-
function
|
|
1157
|
-
switch (
|
|
1241
|
+
function pt(e) {
|
|
1242
|
+
switch (R) {
|
|
1158
1243
|
case "svelte":
|
|
1159
1244
|
case "vue":
|
|
1160
1245
|
case "solid":
|
|
1161
1246
|
case "angular":
|
|
1162
|
-
return
|
|
1247
|
+
return ut(e).join(" ");
|
|
1163
1248
|
case "qwik":
|
|
1164
1249
|
case "reactNative":
|
|
1165
1250
|
case "react":
|
|
@@ -1167,21 +1252,24 @@ function at(e) {
|
|
|
1167
1252
|
return e;
|
|
1168
1253
|
}
|
|
1169
1254
|
}
|
|
1170
|
-
const
|
|
1255
|
+
const mt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Jn = ({
|
|
1171
1256
|
block: e,
|
|
1172
|
-
registeredComponents: t
|
|
1257
|
+
registeredComponents: t,
|
|
1258
|
+
model: n
|
|
1173
1259
|
}) => {
|
|
1174
|
-
var
|
|
1175
|
-
const
|
|
1176
|
-
if (!
|
|
1260
|
+
var s;
|
|
1261
|
+
const o = (s = e.component) == null ? void 0 : s.name;
|
|
1262
|
+
if (!o)
|
|
1177
1263
|
return null;
|
|
1178
|
-
const
|
|
1179
|
-
if (
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
Could not find a registered component named "${n}".
|
|
1264
|
+
const r = t[o];
|
|
1265
|
+
if (!r || mt(r, n)) {
|
|
1266
|
+
console.warn(`
|
|
1267
|
+
Could not find a registered component named "${o}".
|
|
1183
1268
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1184
|
-
|
|
1269
|
+
return;
|
|
1270
|
+
} else
|
|
1271
|
+
return r;
|
|
1272
|
+
}, Yn = ({
|
|
1185
1273
|
block: e,
|
|
1186
1274
|
context: t
|
|
1187
1275
|
}) => {
|
|
@@ -1191,7 +1279,7 @@ const Fn = ({
|
|
|
1191
1279
|
} = e;
|
|
1192
1280
|
if (!(n != null && n.collection))
|
|
1193
1281
|
return;
|
|
1194
|
-
const r =
|
|
1282
|
+
const r = Y({
|
|
1195
1283
|
code: n.collection,
|
|
1196
1284
|
localState: t.localState,
|
|
1197
1285
|
rootState: t.rootState,
|
|
@@ -1200,7 +1288,7 @@ const Fn = ({
|
|
|
1200
1288
|
});
|
|
1201
1289
|
if (!Array.isArray(r))
|
|
1202
1290
|
return;
|
|
1203
|
-
const
|
|
1291
|
+
const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
|
|
1204
1292
|
return r.map((a, u) => ({
|
|
1205
1293
|
context: {
|
|
1206
1294
|
...t,
|
|
@@ -1208,65 +1296,65 @@ const Fn = ({
|
|
|
1208
1296
|
...t.localState,
|
|
1209
1297
|
$index: u,
|
|
1210
1298
|
$item: a,
|
|
1211
|
-
[
|
|
1212
|
-
[`$${
|
|
1299
|
+
[i]: a,
|
|
1300
|
+
[`$${i}Index`]: u
|
|
1213
1301
|
}
|
|
1214
1302
|
},
|
|
1215
1303
|
block: o
|
|
1216
1304
|
}));
|
|
1217
|
-
},
|
|
1305
|
+
}, Xn = (e, t) => {
|
|
1218
1306
|
var n;
|
|
1219
1307
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1220
1308
|
builderLinkComponent: t
|
|
1221
1309
|
} : {};
|
|
1222
|
-
},
|
|
1223
|
-
var
|
|
1224
|
-
return (
|
|
1225
|
-
builderComponents: t
|
|
1310
|
+
}, Qn = (e, t, n) => {
|
|
1311
|
+
var o;
|
|
1312
|
+
return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
|
|
1313
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([s, i]) => !mt(i, n)))
|
|
1226
1314
|
} : {};
|
|
1227
|
-
},
|
|
1315
|
+
}, Zn = (e, t) => {
|
|
1228
1316
|
var n;
|
|
1229
1317
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1230
1318
|
builderBlock: t
|
|
1231
1319
|
} : {};
|
|
1232
|
-
},
|
|
1320
|
+
}, _n = (e, t) => {
|
|
1233
1321
|
var n;
|
|
1234
1322
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1235
1323
|
builderContext: t
|
|
1236
1324
|
} : {};
|
|
1237
|
-
},
|
|
1325
|
+
}, eo = () => Promise.resolve().then(() => fo).then((e) => e.default).catch((e) => {
|
|
1238
1326
|
throw console.error(
|
|
1239
1327
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1240
1328
|
e
|
|
1241
1329
|
), e;
|
|
1242
|
-
}),
|
|
1330
|
+
}), to = () => import("./block-styles-zLkeE8Yo.js").then((e) => e.default).catch((e) => {
|
|
1243
1331
|
throw console.error(
|
|
1244
1332
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1245
1333
|
e
|
|
1246
1334
|
), e;
|
|
1247
|
-
}),
|
|
1335
|
+
}), no = () => import("./block-wrapper-RHvSza0L.js").then((e) => e.default).catch((e) => {
|
|
1248
1336
|
throw console.error(
|
|
1249
1337
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1250
1338
|
e
|
|
1251
1339
|
), e;
|
|
1252
|
-
}),
|
|
1340
|
+
}), oo = () => import("./component-ref-QZVWIf-w.js").then((e) => e.default).catch((e) => {
|
|
1253
1341
|
throw console.error(
|
|
1254
1342
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1255
1343
|
e
|
|
1256
1344
|
), e;
|
|
1257
|
-
}),
|
|
1345
|
+
}), ro = () => import("./repeated-block-9wsw76F2.js").then((e) => e.default).catch((e) => {
|
|
1258
1346
|
throw console.error(
|
|
1259
1347
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1260
1348
|
e
|
|
1261
1349
|
), e;
|
|
1262
|
-
}),
|
|
1350
|
+
}), so = g({
|
|
1263
1351
|
name: "block",
|
|
1264
1352
|
components: {
|
|
1265
|
-
BlockStyles:
|
|
1266
|
-
RepeatedBlock:
|
|
1267
|
-
ComponentRef:
|
|
1268
|
-
BlockWrapper:
|
|
1269
|
-
DynamicDiv:
|
|
1353
|
+
BlockStyles: j(to),
|
|
1354
|
+
RepeatedBlock: j(ro),
|
|
1355
|
+
ComponentRef: j(oo),
|
|
1356
|
+
BlockWrapper: j(no),
|
|
1357
|
+
DynamicDiv: j(eo)
|
|
1270
1358
|
},
|
|
1271
1359
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1272
1360
|
data() {
|
|
@@ -1279,7 +1367,7 @@ const Fn = ({
|
|
|
1279
1367
|
},
|
|
1280
1368
|
mounted() {
|
|
1281
1369
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1282
|
-
t && e &&
|
|
1370
|
+
t && e && jn(
|
|
1283
1371
|
t.map((n) => ({
|
|
1284
1372
|
...n,
|
|
1285
1373
|
elementId: e
|
|
@@ -1290,26 +1378,26 @@ const Fn = ({
|
|
|
1290
1378
|
},
|
|
1291
1379
|
computed: {
|
|
1292
1380
|
repeatItem() {
|
|
1293
|
-
return
|
|
1381
|
+
return Yn({
|
|
1294
1382
|
block: this.block,
|
|
1295
1383
|
context: this.context
|
|
1296
1384
|
});
|
|
1297
1385
|
},
|
|
1298
1386
|
processedBlock() {
|
|
1299
1387
|
var t;
|
|
1300
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1388
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : en({
|
|
1301
1389
|
block: this.block,
|
|
1302
1390
|
localState: this.context.localState,
|
|
1303
1391
|
rootState: this.context.rootState,
|
|
1304
1392
|
rootSetState: this.context.rootSetState,
|
|
1305
|
-
context: this.context.context
|
|
1306
|
-
shouldEvaluateBindings: !0
|
|
1393
|
+
context: this.context.context
|
|
1307
1394
|
});
|
|
1308
1395
|
},
|
|
1309
1396
|
blockComponent() {
|
|
1310
|
-
return
|
|
1397
|
+
return Jn({
|
|
1311
1398
|
block: this.processedBlock,
|
|
1312
|
-
registeredComponents: this.registeredComponents
|
|
1399
|
+
registeredComponents: this.registeredComponents,
|
|
1400
|
+
model: this.context.model
|
|
1313
1401
|
});
|
|
1314
1402
|
},
|
|
1315
1403
|
Tag() {
|
|
@@ -1333,13 +1421,14 @@ const Fn = ({
|
|
|
1333
1421
|
blockChildren: this.processedBlock.children ?? [],
|
|
1334
1422
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1335
1423
|
componentOptions: {
|
|
1336
|
-
...
|
|
1337
|
-
...
|
|
1338
|
-
...
|
|
1339
|
-
...
|
|
1340
|
-
...
|
|
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(
|
|
1341
1429
|
this.blockComponent,
|
|
1342
|
-
this.registeredComponents
|
|
1430
|
+
this.registeredComponents,
|
|
1431
|
+
this.context.model
|
|
1343
1432
|
)
|
|
1344
1433
|
},
|
|
1345
1434
|
context: this.context,
|
|
@@ -1347,16 +1436,16 @@ const Fn = ({
|
|
|
1347
1436
|
registeredComponents: this.registeredComponents,
|
|
1348
1437
|
builderBlock: this.processedBlock,
|
|
1349
1438
|
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
1350
|
-
isInteractive: !((n = this.blockComponent) != null && n.isRSC &&
|
|
1439
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC && R === "rsc")
|
|
1351
1440
|
};
|
|
1352
1441
|
}
|
|
1353
1442
|
}
|
|
1354
1443
|
});
|
|
1355
|
-
function
|
|
1444
|
+
function io(e, t, n, o, r, s) {
|
|
1356
1445
|
var h;
|
|
1357
|
-
const
|
|
1446
|
+
const i = k("BlockStyles"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), m = k("RepeatedBlock");
|
|
1358
1447
|
return e.canShowBlock ? (c(), p(T, { key: 0 }, [
|
|
1359
|
-
|
|
1448
|
+
P(i, {
|
|
1360
1449
|
block: e.processedBlock,
|
|
1361
1450
|
context: e.context
|
|
1362
1451
|
}, null, 8, ["block", "context"]),
|
|
@@ -1393,7 +1482,7 @@ function Yn(e, t, n, o, r, i) {
|
|
|
1393
1482
|
context: e.context
|
|
1394
1483
|
}, {
|
|
1395
1484
|
default: N(() => [
|
|
1396
|
-
|
|
1485
|
+
P(l, {
|
|
1397
1486
|
componentRef: e.componentRefProps.componentRef,
|
|
1398
1487
|
componentOptions: e.componentRefProps.componentOptions,
|
|
1399
1488
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -1417,10 +1506,10 @@ function Yn(e, t, n, o, r, i) {
|
|
|
1417
1506
|
], 64))
|
|
1418
1507
|
], 64)) : v("", !0);
|
|
1419
1508
|
}
|
|
1420
|
-
const
|
|
1509
|
+
const ve = /* @__PURE__ */ b(so, [["render", io]]), ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1421
1510
|
__proto__: null,
|
|
1422
|
-
default:
|
|
1423
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1511
|
+
default: ve
|
|
1512
|
+
}, Symbol.toStringTag, { value: "Module" })), ao = g({
|
|
1424
1513
|
name: "builder-blocks-wrapper",
|
|
1425
1514
|
props: [
|
|
1426
1515
|
"blocks",
|
|
@@ -1452,7 +1541,7 @@ const ke = /* @__PURE__ */ g(Jn, [["render", Yn]]), Hi = /* @__PURE__ */ Object.
|
|
|
1452
1541
|
methods: {
|
|
1453
1542
|
onClick() {
|
|
1454
1543
|
var e, t;
|
|
1455
|
-
|
|
1544
|
+
E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1456
1545
|
{
|
|
1457
1546
|
type: "builder.clickEmptyBlocks",
|
|
1458
1547
|
data: {
|
|
@@ -1465,7 +1554,7 @@ const ke = /* @__PURE__ */ g(Jn, [["render", Yn]]), Hi = /* @__PURE__ */ Object.
|
|
|
1465
1554
|
},
|
|
1466
1555
|
onMouseEnter() {
|
|
1467
1556
|
var e, t;
|
|
1468
|
-
|
|
1557
|
+
E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1469
1558
|
{
|
|
1470
1559
|
type: "builder.hoverEmptyBlocks",
|
|
1471
1560
|
data: {
|
|
@@ -1478,26 +1567,26 @@ const ke = /* @__PURE__ */ g(Jn, [["render", Yn]]), Hi = /* @__PURE__ */ Object.
|
|
|
1478
1567
|
}
|
|
1479
1568
|
}
|
|
1480
1569
|
});
|
|
1481
|
-
function
|
|
1482
|
-
return c(), y(
|
|
1570
|
+
function lo(e, t, n, o, r, s) {
|
|
1571
|
+
return c(), y(K(e.BlocksWrapper), C({
|
|
1483
1572
|
ref: "blocksWrapperRef",
|
|
1484
1573
|
class: e.className + " component-1k2igrjdg3x",
|
|
1485
1574
|
"builder-path": e.dataPath,
|
|
1486
1575
|
"builder-parent-id": e.parent,
|
|
1487
1576
|
style: e.styleProp,
|
|
1488
|
-
onClick: (
|
|
1489
|
-
onMouseEnter: (
|
|
1490
|
-
onKeyPress: (
|
|
1577
|
+
onClick: (i) => e.onClick(),
|
|
1578
|
+
onMouseEnter: (i) => e.onMouseEnter(),
|
|
1579
|
+
onKeyPress: (i) => e.onClick()
|
|
1491
1580
|
}, { ...e.BlocksWrapperProps }), {
|
|
1492
1581
|
default: N(() => [
|
|
1493
|
-
|
|
1582
|
+
x(e.$slots, "default", {}, void 0, !0)
|
|
1494
1583
|
]),
|
|
1495
1584
|
_: 3
|
|
1496
1585
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1497
1586
|
}
|
|
1498
|
-
const
|
|
1587
|
+
const co = /* @__PURE__ */ b(ao, [["render", lo], ["__scopeId", "data-v-ba2bc5c0"]]), uo = g({
|
|
1499
1588
|
name: "builder-blocks",
|
|
1500
|
-
components: { BlocksWrapper:
|
|
1589
|
+
components: { BlocksWrapper: co, Block: ve },
|
|
1501
1590
|
props: [
|
|
1502
1591
|
"blocks",
|
|
1503
1592
|
"parent",
|
|
@@ -1509,13 +1598,13 @@ const Zn = /* @__PURE__ */ g(Xn, [["render", Qn], ["__scopeId", "data-v-ba2bc5c0
|
|
|
1509
1598
|
"registeredComponents"
|
|
1510
1599
|
],
|
|
1511
1600
|
inject: {
|
|
1512
|
-
builderContext:
|
|
1513
|
-
componentsContext:
|
|
1601
|
+
builderContext: ce.key,
|
|
1602
|
+
componentsContext: Oe.key
|
|
1514
1603
|
}
|
|
1515
1604
|
});
|
|
1516
|
-
function
|
|
1605
|
+
function po(e, t, n, o, r, s) {
|
|
1517
1606
|
var a, u, m, h;
|
|
1518
|
-
const
|
|
1607
|
+
const i = k("Block"), l = k("BlocksWrapper");
|
|
1519
1608
|
return c(), y(l, {
|
|
1520
1609
|
blocks: e.blocks,
|
|
1521
1610
|
parent: e.parent,
|
|
@@ -1528,7 +1617,7 @@ function eo(e, t, n, o, r, i) {
|
|
|
1528
1617
|
default: N(() => [
|
|
1529
1618
|
e.blocks ? (c(!0), p(T, { key: 0 }, V(e.blocks, (d, f) => {
|
|
1530
1619
|
var S;
|
|
1531
|
-
return c(), y(
|
|
1620
|
+
return c(), y(i, {
|
|
1532
1621
|
key: d.id,
|
|
1533
1622
|
block: d,
|
|
1534
1623
|
linkComponent: e.linkComponent,
|
|
@@ -1540,21 +1629,21 @@ function eo(e, t, n, o, r, i) {
|
|
|
1540
1629
|
_: 1
|
|
1541
1630
|
}, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
1542
1631
|
}
|
|
1543
|
-
const
|
|
1632
|
+
const M = /* @__PURE__ */ b(uo, [["render", po]]), mo = g({
|
|
1544
1633
|
name: "dynamic-div",
|
|
1545
1634
|
props: []
|
|
1546
1635
|
});
|
|
1547
|
-
function
|
|
1636
|
+
function ho(e, t, n, o, r, s) {
|
|
1548
1637
|
return c(), p("div", null, [
|
|
1549
|
-
|
|
1638
|
+
x(e.$slots, "default")
|
|
1550
1639
|
]);
|
|
1551
1640
|
}
|
|
1552
|
-
const
|
|
1641
|
+
const X = /* @__PURE__ */ b(mo, [["render", ho]]), fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1553
1642
|
__proto__: null,
|
|
1554
|
-
default:
|
|
1555
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1643
|
+
default: X
|
|
1644
|
+
}, Symbol.toStringTag, { value: "Module" })), Se = g({
|
|
1556
1645
|
render() {
|
|
1557
|
-
return
|
|
1646
|
+
return Ne("style", {
|
|
1558
1647
|
innerHTML: this.styles,
|
|
1559
1648
|
"data-id": this.id,
|
|
1560
1649
|
nonce: this.nonce
|
|
@@ -1562,7 +1651,7 @@ const Y = /* @__PURE__ */ g(to, [["render", no]]), oo = /* @__PURE__ */ Object.f
|
|
|
1562
1651
|
},
|
|
1563
1652
|
name: "inlined-styles",
|
|
1564
1653
|
props: ["styles", "id", "nonce"]
|
|
1565
|
-
}),
|
|
1654
|
+
}), ht = {
|
|
1566
1655
|
small: {
|
|
1567
1656
|
min: 320,
|
|
1568
1657
|
default: 321,
|
|
@@ -1578,11 +1667,11 @@ const Y = /* @__PURE__ */ g(to, [["render", no]]), oo = /* @__PURE__ */ Object.f
|
|
|
1578
1667
|
default: 991,
|
|
1579
1668
|
max: 1200
|
|
1580
1669
|
}
|
|
1581
|
-
},
|
|
1670
|
+
}, oi = (e, t = ht) => `@media (max-width: ${t[e].max}px)`, go = ({
|
|
1582
1671
|
small: e,
|
|
1583
1672
|
medium: t
|
|
1584
1673
|
}) => {
|
|
1585
|
-
const n =
|
|
1674
|
+
const n = he(ht);
|
|
1586
1675
|
if (!e || !t)
|
|
1587
1676
|
return n;
|
|
1588
1677
|
const o = Math.floor(e / 2);
|
|
@@ -1597,20 +1686,20 @@ const Y = /* @__PURE__ */ g(to, [["render", no]]), oo = /* @__PURE__ */ Object.f
|
|
|
1597
1686
|
min: r,
|
|
1598
1687
|
default: r + 1
|
|
1599
1688
|
};
|
|
1600
|
-
const
|
|
1689
|
+
const s = n.medium.max + 1;
|
|
1601
1690
|
return n.large = {
|
|
1602
1691
|
max: 2e3,
|
|
1603
1692
|
// TODO: decide upper limit
|
|
1604
|
-
min:
|
|
1605
|
-
default:
|
|
1693
|
+
min: s,
|
|
1694
|
+
default: s + 1
|
|
1606
1695
|
}, n;
|
|
1607
|
-
},
|
|
1696
|
+
}, bo = (e) => `builder-columns ${e}-breakpoints`, yo = g({
|
|
1608
1697
|
name: "builder-columns",
|
|
1609
1698
|
components: {
|
|
1610
|
-
InlinedStyles:
|
|
1611
|
-
DynamicRenderer:
|
|
1612
|
-
Blocks:
|
|
1613
|
-
DynamicDiv:
|
|
1699
|
+
InlinedStyles: Se,
|
|
1700
|
+
DynamicRenderer: me,
|
|
1701
|
+
Blocks: M,
|
|
1702
|
+
DynamicDiv: X
|
|
1614
1703
|
},
|
|
1615
1704
|
props: [
|
|
1616
1705
|
"space",
|
|
@@ -1623,7 +1712,7 @@ const Y = /* @__PURE__ */ g(to, [["render", no]]), oo = /* @__PURE__ */ Object.f
|
|
|
1623
1712
|
"builderComponents"
|
|
1624
1713
|
],
|
|
1625
1714
|
data() {
|
|
1626
|
-
return { TARGET:
|
|
1715
|
+
return { TARGET: R, getColumnsClass: bo };
|
|
1627
1716
|
},
|
|
1628
1717
|
computed: {
|
|
1629
1718
|
gutterSize() {
|
|
@@ -1673,7 +1762,7 @@ const Y = /* @__PURE__ */ g(to, [["render", no]]), oo = /* @__PURE__ */ Object.f
|
|
|
1673
1762
|
};
|
|
1674
1763
|
},
|
|
1675
1764
|
columnCssVars(e) {
|
|
1676
|
-
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;
|
|
1677
1766
|
return {
|
|
1678
1767
|
...{
|
|
1679
1768
|
display: "flex",
|
|
@@ -1687,7 +1776,7 @@ const Y = /* @__PURE__ */ g(to, [["render", no]]), oo = /* @__PURE__ */ Object.f
|
|
|
1687
1776
|
desktopStyle: n
|
|
1688
1777
|
}),
|
|
1689
1778
|
"--column-margin-left-mobile": this.getMobileStyle({
|
|
1690
|
-
stackedStyle:
|
|
1779
|
+
stackedStyle: s,
|
|
1691
1780
|
desktopStyle: o
|
|
1692
1781
|
}),
|
|
1693
1782
|
"--column-width-tablet": this.getTabletStyle({
|
|
@@ -1695,14 +1784,14 @@ const Y = /* @__PURE__ */ g(to, [["render", no]]), oo = /* @__PURE__ */ Object.f
|
|
|
1695
1784
|
desktopStyle: n
|
|
1696
1785
|
}),
|
|
1697
1786
|
"--column-margin-left-tablet": this.getTabletStyle({
|
|
1698
|
-
stackedStyle:
|
|
1787
|
+
stackedStyle: s,
|
|
1699
1788
|
desktopStyle: o
|
|
1700
1789
|
})
|
|
1701
1790
|
};
|
|
1702
1791
|
},
|
|
1703
1792
|
getWidthForBreakpointSize(e) {
|
|
1704
1793
|
var n, o;
|
|
1705
|
-
return
|
|
1794
|
+
return go(
|
|
1706
1795
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1707
1796
|
)[e].max;
|
|
1708
1797
|
},
|
|
@@ -1740,19 +1829,19 @@ const Y = /* @__PURE__ */ g(to, [["render", no]]), oo = /* @__PURE__ */ Object.f
|
|
|
1740
1829
|
href: e.link
|
|
1741
1830
|
} : {},
|
|
1742
1831
|
[_()]: "builder-column",
|
|
1743
|
-
style:
|
|
1832
|
+
style: pt(this.columnCssVars(t))
|
|
1744
1833
|
};
|
|
1745
1834
|
}
|
|
1746
1835
|
}
|
|
1747
1836
|
});
|
|
1748
|
-
function
|
|
1837
|
+
function ko(e, t, n, o, r, s) {
|
|
1749
1838
|
var u;
|
|
1750
|
-
const
|
|
1839
|
+
const i = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1751
1840
|
return c(), p("div", C({
|
|
1752
1841
|
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
|
|
1753
1842
|
style: e.columnsCssVars()
|
|
1754
1843
|
}, {}), [
|
|
1755
|
-
e.TARGET !== "reactNative" ? (c(), y(
|
|
1844
|
+
e.TARGET !== "reactNative" ? (c(), y(i, {
|
|
1756
1845
|
key: 0,
|
|
1757
1846
|
id: "builderio-columns",
|
|
1758
1847
|
styles: e.columnsStyles(),
|
|
@@ -1765,7 +1854,7 @@ function ao(e, t, n, o, r, i) {
|
|
|
1765
1854
|
attributes: e.getAttributes(m, h)
|
|
1766
1855
|
}, {
|
|
1767
1856
|
default: N(() => [
|
|
1768
|
-
|
|
1857
|
+
P(l, {
|
|
1769
1858
|
path: `columns.${h}.blocks`,
|
|
1770
1859
|
parent: e.builderBlock.id,
|
|
1771
1860
|
styleProp: {
|
|
@@ -1781,47 +1870,47 @@ function ao(e, t, n, o, r, i) {
|
|
|
1781
1870
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1782
1871
|
], 16);
|
|
1783
1872
|
}
|
|
1784
|
-
const
|
|
1873
|
+
const vo = /* @__PURE__ */ b(yo, [["render", ko], ["__scopeId", "data-v-3354f136"]]), So = g({
|
|
1785
1874
|
name: "builder-fragment-component",
|
|
1786
1875
|
props: []
|
|
1787
1876
|
});
|
|
1788
|
-
function
|
|
1877
|
+
function Co(e, t, n, o, r, s) {
|
|
1789
1878
|
return c(), p("span", null, [
|
|
1790
|
-
|
|
1879
|
+
x(e.$slots, "default")
|
|
1791
1880
|
]);
|
|
1792
1881
|
}
|
|
1793
|
-
const
|
|
1794
|
-
function
|
|
1882
|
+
const wo = /* @__PURE__ */ b(So, [["render", Co]]);
|
|
1883
|
+
function Ae(e) {
|
|
1795
1884
|
return e.replace(/http(s)?:/, "");
|
|
1796
1885
|
}
|
|
1797
|
-
function
|
|
1886
|
+
function To(e = "", t, n) {
|
|
1798
1887
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1799
1888
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1800
1889
|
}
|
|
1801
|
-
function
|
|
1890
|
+
function Io(e, t) {
|
|
1802
1891
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1803
1892
|
return e;
|
|
1804
1893
|
if (t === "master")
|
|
1805
|
-
return
|
|
1894
|
+
return Ae(e);
|
|
1806
1895
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1807
1896
|
if (n) {
|
|
1808
|
-
const o = e.split(n[0]), r = n[3],
|
|
1809
|
-
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}`);
|
|
1810
1899
|
}
|
|
1811
1900
|
return null;
|
|
1812
1901
|
}
|
|
1813
|
-
function
|
|
1902
|
+
function re(e) {
|
|
1814
1903
|
if (!e)
|
|
1815
1904
|
return e;
|
|
1816
1905
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1817
1906
|
if (e.match(/builder\.io/)) {
|
|
1818
1907
|
let n = e;
|
|
1819
1908
|
const o = Number(e.split("?width=")[1]);
|
|
1820
|
-
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(", ");
|
|
1821
1910
|
}
|
|
1822
|
-
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;
|
|
1823
1912
|
}
|
|
1824
|
-
const
|
|
1913
|
+
const $o = g({
|
|
1825
1914
|
name: "builder-image",
|
|
1826
1915
|
props: [
|
|
1827
1916
|
"image",
|
|
@@ -1846,15 +1935,15 @@ const fo = b({
|
|
|
1846
1935
|
const t = this.image || this.src;
|
|
1847
1936
|
if (!t || // We can auto add srcset for cdn.builder.io and shopify
|
|
1848
1937
|
// images, otherwise you can supply this prop manually
|
|
1849
|
-
!(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
|
|
1938
|
+
!(typeof t == "string" && (t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/))))
|
|
1850
1939
|
return this.srcset;
|
|
1851
1940
|
if (!this.noWebp) {
|
|
1852
1941
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
1853
1942
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
1854
|
-
return console.debug("Removed given srcset"),
|
|
1943
|
+
return console.debug("Removed given srcset"), re(t);
|
|
1855
1944
|
} else if (this.image && !this.srcset)
|
|
1856
|
-
return
|
|
1857
|
-
return
|
|
1945
|
+
return re(t);
|
|
1946
|
+
return re(t);
|
|
1858
1947
|
}
|
|
1859
1948
|
},
|
|
1860
1949
|
webpSrcSet() {
|
|
@@ -1872,20 +1961,20 @@ const fo = b({
|
|
|
1872
1961
|
return this.aspectRatio ? e : void 0;
|
|
1873
1962
|
}
|
|
1874
1963
|
}
|
|
1875
|
-
}),
|
|
1964
|
+
}), Ro = ["srcset"], Eo = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], Po = {
|
|
1876
1965
|
key: 2,
|
|
1877
1966
|
class: "div-29wpyomtntv-2"
|
|
1878
1967
|
};
|
|
1879
|
-
function
|
|
1880
|
-
var
|
|
1968
|
+
function Bo(e, t, n, o, r, s) {
|
|
1969
|
+
var i, l, a, u, m, h;
|
|
1881
1970
|
return c(), p(T, null, [
|
|
1882
|
-
|
|
1971
|
+
z("picture", null, [
|
|
1883
1972
|
e.webpSrcSet ? (c(), p("source", {
|
|
1884
1973
|
key: 0,
|
|
1885
1974
|
type: "image/webp",
|
|
1886
1975
|
srcset: e.webpSrcSet
|
|
1887
|
-
}, null, 8,
|
|
1888
|
-
|
|
1976
|
+
}, null, 8, Ro)) : v("", !0),
|
|
1977
|
+
z("img", {
|
|
1889
1978
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1890
1979
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
1891
1980
|
alt: e.altText,
|
|
@@ -1895,35 +1984,35 @@ function ko(e, t, n, o, r, i) {
|
|
|
1895
1984
|
objectFit: e.backgroundSize || "cover",
|
|
1896
1985
|
...e.aspectRatioCss
|
|
1897
1986
|
}),
|
|
1898
|
-
class:
|
|
1987
|
+
class: G(
|
|
1899
1988
|
"builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
|
|
1900
1989
|
),
|
|
1901
1990
|
src: e.image,
|
|
1902
1991
|
srcset: e.srcSetToUse,
|
|
1903
1992
|
sizes: e.sizes
|
|
1904
|
-
}, null, 14,
|
|
1993
|
+
}, null, 14, Eo)
|
|
1905
1994
|
]),
|
|
1906
|
-
e.aspectRatio && !((l = (
|
|
1995
|
+
e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (c(), p("div", {
|
|
1907
1996
|
key: 0,
|
|
1908
1997
|
class: "builder-image-sizer div-29wpyomtntv",
|
|
1909
1998
|
style: F({
|
|
1910
1999
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1911
2000
|
})
|
|
1912
2001
|
}, null, 4)) : v("", !0),
|
|
1913
|
-
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ?
|
|
1914
|
-
!e.fitContent && ((h = (m = e.builderBlock) == null ? void 0 : m.children) != null && h.length) ? (c(), p("div",
|
|
1915
|
-
|
|
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)
|
|
1916
2005
|
])) : v("", !0)
|
|
1917
2006
|
], 64);
|
|
1918
2007
|
}
|
|
1919
|
-
const
|
|
2008
|
+
const Ao = /* @__PURE__ */ b($o, [["render", Bo], ["__scopeId", "data-v-a3766aaf"]]), xo = g({
|
|
1920
2009
|
name: "builder-section-component",
|
|
1921
2010
|
props: ["attributes", "maxWidth"],
|
|
1922
2011
|
data() {
|
|
1923
2012
|
return { filterAttrs: W };
|
|
1924
2013
|
}
|
|
1925
2014
|
});
|
|
1926
|
-
function
|
|
2015
|
+
function Vo(e, t, n, o, r, s) {
|
|
1927
2016
|
return c(), p("section", C({
|
|
1928
2017
|
style: {
|
|
1929
2018
|
width: "100%",
|
|
@@ -1937,11 +2026,11 @@ function Co(e, t, n, o, r, i) {
|
|
|
1937
2026
|
marginLeft: "auto",
|
|
1938
2027
|
marginRight: "auto"
|
|
1939
2028
|
}
|
|
1940
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1941
|
-
|
|
2029
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
2030
|
+
x(e.$slots, "default")
|
|
1942
2031
|
], 16);
|
|
1943
2032
|
}
|
|
1944
|
-
const
|
|
2033
|
+
const Wo = /* @__PURE__ */ b(xo, [["render", Vo]]), se = {
|
|
1945
2034
|
"@type": "@builder.io/sdk:Element",
|
|
1946
2035
|
layerName: "Accordion item title",
|
|
1947
2036
|
responsiveStyles: {
|
|
@@ -2001,7 +2090,7 @@ const wo = /* @__PURE__ */ g(So, [["render", Co]]), re = {
|
|
|
2001
2090
|
}
|
|
2002
2091
|
}
|
|
2003
2092
|
}]
|
|
2004
|
-
},
|
|
2093
|
+
}, No = {
|
|
2005
2094
|
name: "Builder:Accordion",
|
|
2006
2095
|
canHaveChildren: !0,
|
|
2007
2096
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2018,7 +2107,7 @@ const wo = /* @__PURE__ */ g(So, [["render", Co]]), re = {
|
|
|
2018
2107
|
name: "title",
|
|
2019
2108
|
type: "uiBlocks",
|
|
2020
2109
|
hideFromUI: !0,
|
|
2021
|
-
defaultValue: [
|
|
2110
|
+
defaultValue: [se]
|
|
2022
2111
|
}, {
|
|
2023
2112
|
name: "detail",
|
|
2024
2113
|
type: "uiBlocks",
|
|
@@ -2026,10 +2115,10 @@ const wo = /* @__PURE__ */ g(So, [["render", Co]]), re = {
|
|
|
2026
2115
|
defaultValue: [ie]
|
|
2027
2116
|
}],
|
|
2028
2117
|
defaultValue: [{
|
|
2029
|
-
title: [
|
|
2118
|
+
title: [se],
|
|
2030
2119
|
detail: [ie]
|
|
2031
2120
|
}, {
|
|
2032
|
-
title: [
|
|
2121
|
+
title: [se],
|
|
2033
2122
|
detail: [ie]
|
|
2034
2123
|
}],
|
|
2035
2124
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
@@ -2065,9 +2154,9 @@ const wo = /* @__PURE__ */ g(So, [["render", Co]]), re = {
|
|
|
2065
2154
|
builderComponents: !0,
|
|
2066
2155
|
builderLinkComponent: !0
|
|
2067
2156
|
}
|
|
2068
|
-
},
|
|
2157
|
+
}, Oo = (e) => e.toString(), Fo = g({
|
|
2069
2158
|
name: "builder-accordion",
|
|
2070
|
-
components: { Blocks:
|
|
2159
|
+
components: { Blocks: M },
|
|
2071
2160
|
props: [
|
|
2072
2161
|
"grid",
|
|
2073
2162
|
"oneAtATime",
|
|
@@ -2079,7 +2168,7 @@ const wo = /* @__PURE__ */ g(So, [["render", Co]]), re = {
|
|
|
2079
2168
|
"builderLinkComponent"
|
|
2080
2169
|
],
|
|
2081
2170
|
data() {
|
|
2082
|
-
return { open: [], convertOrderNumberToString:
|
|
2171
|
+
return { open: [], convertOrderNumberToString: Oo };
|
|
2083
2172
|
},
|
|
2084
2173
|
computed: {
|
|
2085
2174
|
onlyOneAtATime() {
|
|
@@ -2118,18 +2207,18 @@ const wo = /* @__PURE__ */ g(So, [["render", Co]]), re = {
|
|
|
2118
2207
|
`.builder-accordion-title[data-index="${n}"]`
|
|
2119
2208
|
);
|
|
2120
2209
|
if (e = n, r) {
|
|
2121
|
-
let
|
|
2210
|
+
let s = r.getBoundingClientRect();
|
|
2122
2211
|
for (; r = r && r.nextElementSibling; )
|
|
2123
2212
|
if (r) {
|
|
2124
2213
|
if (r.classList.contains("builder-accordion-detail"))
|
|
2125
2214
|
continue;
|
|
2126
|
-
const
|
|
2127
|
-
if (
|
|
2215
|
+
const i = r.getBoundingClientRect();
|
|
2216
|
+
if (i.left > s.left) {
|
|
2128
2217
|
const l = parseInt(
|
|
2129
2218
|
r.getAttribute("data-index") || "",
|
|
2130
2219
|
10
|
|
2131
2220
|
);
|
|
2132
|
-
isNaN(l) || (
|
|
2221
|
+
isNaN(l) || (s = i, e = l);
|
|
2133
2222
|
} else
|
|
2134
2223
|
break;
|
|
2135
2224
|
}
|
|
@@ -2160,16 +2249,16 @@ const wo = /* @__PURE__ */ g(So, [["render", Co]]), re = {
|
|
|
2160
2249
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2161
2250
|
}
|
|
2162
2251
|
}
|
|
2163
|
-
}),
|
|
2164
|
-
function
|
|
2165
|
-
const
|
|
2252
|
+
}), Do = ["data-index", "onClick"];
|
|
2253
|
+
function Lo(e, t, n, o, r, s) {
|
|
2254
|
+
const i = k("Blocks");
|
|
2166
2255
|
return c(), p("div", {
|
|
2167
2256
|
class: "builder-accordion",
|
|
2168
2257
|
style: F(e.accordionStyles)
|
|
2169
2258
|
}, [
|
|
2170
2259
|
(c(!0), p(T, null, V(e.items, (l, a) => (c(), p(T, { key: a }, [
|
|
2171
|
-
|
|
2172
|
-
class:
|
|
2260
|
+
z("div", {
|
|
2261
|
+
class: G(e.getAccordionTitleClassName(a)),
|
|
2173
2262
|
style: F({
|
|
2174
2263
|
...e.accordionTitleStyles,
|
|
2175
2264
|
...e.grid && {
|
|
@@ -2180,7 +2269,7 @@ function Eo(e, t, n, o, r, i) {
|
|
|
2180
2269
|
"data-index": a,
|
|
2181
2270
|
onClick: (u) => e.onClick(a)
|
|
2182
2271
|
}, [
|
|
2183
|
-
|
|
2272
|
+
P(i, {
|
|
2184
2273
|
blocks: l.title,
|
|
2185
2274
|
path: `items.${a}.title`,
|
|
2186
2275
|
parent: e.builderBlock.id,
|
|
@@ -2188,13 +2277,13 @@ function Eo(e, t, n, o, r, i) {
|
|
|
2188
2277
|
registeredComponents: e.builderComponents,
|
|
2189
2278
|
linkComponent: e.builderLinkComponent
|
|
2190
2279
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2191
|
-
], 14,
|
|
2280
|
+
], 14, Do),
|
|
2192
2281
|
e.open.includes(a) ? (c(), p("div", {
|
|
2193
2282
|
key: 0,
|
|
2194
|
-
class:
|
|
2283
|
+
class: G(e.getAccordionDetailClassName(a)),
|
|
2195
2284
|
style: F(e.accordionDetailStyles)
|
|
2196
2285
|
}, [
|
|
2197
|
-
|
|
2286
|
+
P(i, {
|
|
2198
2287
|
blocks: l.detail,
|
|
2199
2288
|
path: `items.${a}.detail`,
|
|
2200
2289
|
parent: e.builderBlock.id,
|
|
@@ -2206,7 +2295,7 @@ function Eo(e, t, n, o, r, i) {
|
|
|
2206
2295
|
], 64))), 128))
|
|
2207
2296
|
], 4);
|
|
2208
2297
|
}
|
|
2209
|
-
const
|
|
2298
|
+
const Uo = /* @__PURE__ */ b(Fo, [["render", Lo]]), Mo = {
|
|
2210
2299
|
name: "Core:Button",
|
|
2211
2300
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2212
2301
|
defaultStyles: {
|
|
@@ -2242,7 +2331,7 @@ const Po = /* @__PURE__ */ g($o, [["render", Eo]]), Bo = {
|
|
|
2242
2331
|
shouldReceiveBuilderProps: {
|
|
2243
2332
|
builderLinkComponent: !0
|
|
2244
2333
|
}
|
|
2245
|
-
},
|
|
2334
|
+
}, Ho = {
|
|
2246
2335
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2247
2336
|
name: "Columns",
|
|
2248
2337
|
isRSC: !0,
|
|
@@ -2421,7 +2510,7 @@ const Po = /* @__PURE__ */ g($o, [["render", Eo]]), Bo = {
|
|
|
2421
2510
|
});
|
|
2422
2511
|
}
|
|
2423
2512
|
const n = e.get("columns");
|
|
2424
|
-
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();
|
|
2425
2514
|
}
|
|
2426
2515
|
}, {
|
|
2427
2516
|
name: "space",
|
|
@@ -2449,13 +2538,13 @@ const Po = /* @__PURE__ */ g($o, [["render", Eo]]), Bo = {
|
|
|
2449
2538
|
builderComponents: !0,
|
|
2450
2539
|
builderLinkComponent: !0
|
|
2451
2540
|
}
|
|
2452
|
-
},
|
|
2541
|
+
}, jo = {
|
|
2453
2542
|
name: "Fragment",
|
|
2454
2543
|
static: !0,
|
|
2455
2544
|
hidden: !0,
|
|
2456
2545
|
canHaveChildren: !0,
|
|
2457
2546
|
noWrap: !0
|
|
2458
|
-
},
|
|
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 = {
|
|
2459
2548
|
name: "Image",
|
|
2460
2549
|
static: !0,
|
|
2461
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",
|
|
@@ -2470,12 +2559,12 @@ const Po = /* @__PURE__ */ g($o, [["render", Eo]]), Bo = {
|
|
|
2470
2559
|
name: "image",
|
|
2471
2560
|
type: "file",
|
|
2472
2561
|
bubble: !0,
|
|
2473
|
-
allowedFileTypes:
|
|
2562
|
+
allowedFileTypes: Ce,
|
|
2474
2563
|
required: !0,
|
|
2475
2564
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2476
2565
|
onChange: (e) => {
|
|
2477
2566
|
e.delete("srcset"), e.delete("noWebp");
|
|
2478
|
-
function n(
|
|
2567
|
+
function n(i, l = 6e4) {
|
|
2479
2568
|
return new Promise((a, u) => {
|
|
2480
2569
|
const m = document.createElement("img");
|
|
2481
2570
|
let h = !1;
|
|
@@ -2483,21 +2572,21 @@ const Po = /* @__PURE__ */ g($o, [["render", Eo]]), Bo = {
|
|
|
2483
2572
|
h = !0, a(m);
|
|
2484
2573
|
}, m.addEventListener("error", (d) => {
|
|
2485
2574
|
console.warn("Image load failed", d.error), u(d.error);
|
|
2486
|
-
}), m.src =
|
|
2575
|
+
}), m.src = i, setTimeout(() => {
|
|
2487
2576
|
h || u(new Error("Image load timed out"));
|
|
2488
2577
|
}, l);
|
|
2489
2578
|
});
|
|
2490
2579
|
}
|
|
2491
|
-
function o(
|
|
2492
|
-
return Math.round(
|
|
2580
|
+
function o(i) {
|
|
2581
|
+
return Math.round(i * 1e3) / 1e3;
|
|
2493
2582
|
}
|
|
2494
|
-
const r = e.get("image"),
|
|
2495
|
-
if (fetch(r).then((
|
|
2496
|
-
|
|
2497
|
-
}), r && (!
|
|
2498
|
-
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) => {
|
|
2499
2588
|
const l = e.get("aspectRatio");
|
|
2500
|
-
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));
|
|
2501
2590
|
});
|
|
2502
2591
|
}
|
|
2503
2592
|
}, {
|
|
@@ -2563,7 +2652,7 @@ const Po = /* @__PURE__ */ g($o, [["render", Eo]]), Bo = {
|
|
|
2563
2652
|
shouldReceiveBuilderProps: {
|
|
2564
2653
|
builderBlock: !0
|
|
2565
2654
|
}
|
|
2566
|
-
},
|
|
2655
|
+
}, zo = {
|
|
2567
2656
|
name: "Core:Section",
|
|
2568
2657
|
static: !0,
|
|
2569
2658
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2602,7 +2691,7 @@ const Po = /* @__PURE__ */ g($o, [["render", Eo]]), Bo = {
|
|
|
2602
2691
|
}
|
|
2603
2692
|
}
|
|
2604
2693
|
}]
|
|
2605
|
-
},
|
|
2694
|
+
}, Go = {
|
|
2606
2695
|
name: "Slot",
|
|
2607
2696
|
isRSC: !0,
|
|
2608
2697
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2619,14 +2708,14 @@ const Po = /* @__PURE__ */ g($o, [["render", Eo]]), Bo = {
|
|
|
2619
2708
|
builderContext: !0,
|
|
2620
2709
|
builderComponents: !0
|
|
2621
2710
|
}
|
|
2622
|
-
},
|
|
2711
|
+
}, Jo = g({
|
|
2623
2712
|
name: "builder-slot",
|
|
2624
|
-
components: { Blocks:
|
|
2713
|
+
components: { Blocks: M },
|
|
2625
2714
|
props: ["builderContext", "name", "builderComponents"]
|
|
2626
2715
|
});
|
|
2627
|
-
function
|
|
2716
|
+
function Yo(e, t, n, o, r, s) {
|
|
2628
2717
|
var l, a, u;
|
|
2629
|
-
const
|
|
2718
|
+
const i = k("Blocks");
|
|
2630
2719
|
return c(), p("div", C(
|
|
2631
2720
|
{ style: {
|
|
2632
2721
|
pointerEvents: "auto"
|
|
@@ -2635,7 +2724,7 @@ function Fo(e, t, n, o, r, i) {
|
|
|
2635
2724
|
"builder-slot": e.name
|
|
2636
2725
|
}
|
|
2637
2726
|
), [
|
|
2638
|
-
|
|
2727
|
+
P(i, {
|
|
2639
2728
|
parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
|
|
2640
2729
|
path: `symbol.data.${e.name}`,
|
|
2641
2730
|
context: e.builderContext,
|
|
@@ -2644,7 +2733,7 @@ function Fo(e, t, n, o, r, i) {
|
|
|
2644
2733
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
2645
2734
|
], 16);
|
|
2646
2735
|
}
|
|
2647
|
-
const
|
|
2736
|
+
const Xo = /* @__PURE__ */ b(Jo, [["render", Yo]]), Qo = {
|
|
2648
2737
|
name: "Symbol",
|
|
2649
2738
|
noWrap: !0,
|
|
2650
2739
|
static: !0,
|
|
@@ -2683,7 +2772,7 @@ const Do = /* @__PURE__ */ g(Oo, [["render", Fo]]), Lo = {
|
|
|
2683
2772
|
builderComponents: !0,
|
|
2684
2773
|
builderLinkComponent: !0
|
|
2685
2774
|
}
|
|
2686
|
-
},
|
|
2775
|
+
}, ae = {
|
|
2687
2776
|
"@type": "@builder.io/sdk:Element",
|
|
2688
2777
|
responsiveStyles: {
|
|
2689
2778
|
large: {
|
|
@@ -2705,7 +2794,7 @@ const Do = /* @__PURE__ */ g(Oo, [["render", Fo]]), Lo = {
|
|
|
2705
2794
|
text: "New tab"
|
|
2706
2795
|
}
|
|
2707
2796
|
}
|
|
2708
|
-
},
|
|
2797
|
+
}, le = {
|
|
2709
2798
|
"@type": "@builder.io/sdk:Element",
|
|
2710
2799
|
responsiveStyles: {
|
|
2711
2800
|
large: {
|
|
@@ -2721,7 +2810,7 @@ const Do = /* @__PURE__ */ g(Oo, [["render", Fo]]), Lo = {
|
|
|
2721
2810
|
text: "New tab content "
|
|
2722
2811
|
}
|
|
2723
2812
|
}
|
|
2724
|
-
},
|
|
2813
|
+
}, Zo = {
|
|
2725
2814
|
name: "Builder: Tabs",
|
|
2726
2815
|
inputs: [{
|
|
2727
2816
|
name: "tabs",
|
|
@@ -2731,16 +2820,16 @@ const Do = /* @__PURE__ */ g(Oo, [["render", Fo]]), Lo = {
|
|
|
2731
2820
|
name: "label",
|
|
2732
2821
|
type: "uiBlocks",
|
|
2733
2822
|
hideFromUI: !0,
|
|
2734
|
-
defaultValue: [
|
|
2823
|
+
defaultValue: [ae]
|
|
2735
2824
|
}, {
|
|
2736
2825
|
name: "content",
|
|
2737
2826
|
type: "uiBlocks",
|
|
2738
2827
|
hideFromUI: !0,
|
|
2739
|
-
defaultValue: [
|
|
2828
|
+
defaultValue: [le]
|
|
2740
2829
|
}],
|
|
2741
2830
|
defaultValue: [{
|
|
2742
2831
|
label: [{
|
|
2743
|
-
...
|
|
2832
|
+
...ae,
|
|
2744
2833
|
component: {
|
|
2745
2834
|
name: "Text",
|
|
2746
2835
|
options: {
|
|
@@ -2749,7 +2838,7 @@ const Do = /* @__PURE__ */ g(Oo, [["render", Fo]]), Lo = {
|
|
|
2749
2838
|
}
|
|
2750
2839
|
}],
|
|
2751
2840
|
content: [{
|
|
2752
|
-
...
|
|
2841
|
+
...le,
|
|
2753
2842
|
component: {
|
|
2754
2843
|
name: "Text",
|
|
2755
2844
|
options: {
|
|
@@ -2759,7 +2848,7 @@ const Do = /* @__PURE__ */ g(Oo, [["render", Fo]]), Lo = {
|
|
|
2759
2848
|
}]
|
|
2760
2849
|
}, {
|
|
2761
2850
|
label: [{
|
|
2762
|
-
...
|
|
2851
|
+
...ae,
|
|
2763
2852
|
component: {
|
|
2764
2853
|
name: "Text",
|
|
2765
2854
|
options: {
|
|
@@ -2768,7 +2857,7 @@ const Do = /* @__PURE__ */ g(Oo, [["render", Fo]]), Lo = {
|
|
|
2768
2857
|
}
|
|
2769
2858
|
}],
|
|
2770
2859
|
content: [{
|
|
2771
|
-
...
|
|
2860
|
+
...le,
|
|
2772
2861
|
component: {
|
|
2773
2862
|
name: "Text",
|
|
2774
2863
|
options: {
|
|
@@ -2824,9 +2913,9 @@ const Do = /* @__PURE__ */ g(Oo, [["render", Fo]]), Lo = {
|
|
|
2824
2913
|
builderComponents: !0,
|
|
2825
2914
|
builderLinkComponent: !0
|
|
2826
2915
|
}
|
|
2827
|
-
},
|
|
2916
|
+
}, _o = g({
|
|
2828
2917
|
name: "builder-tabs",
|
|
2829
|
-
components: { Blocks:
|
|
2918
|
+
components: { Blocks: M },
|
|
2830
2919
|
props: [
|
|
2831
2920
|
"defaultActiveTab",
|
|
2832
2921
|
"tabs",
|
|
@@ -2849,11 +2938,11 @@ const Do = /* @__PURE__ */ g(Oo, [["render", Fo]]), Lo = {
|
|
|
2849
2938
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
2850
2939
|
}
|
|
2851
2940
|
}
|
|
2852
|
-
}),
|
|
2853
|
-
function
|
|
2854
|
-
const
|
|
2941
|
+
}), er = ["onClick"], tr = { key: 0 };
|
|
2942
|
+
function nr(e, t, n, o, r, s) {
|
|
2943
|
+
const i = k("Blocks");
|
|
2855
2944
|
return c(), p("div", null, [
|
|
2856
|
-
|
|
2945
|
+
z("div", {
|
|
2857
2946
|
class: "builder-tabs-wrap",
|
|
2858
2947
|
style: F({
|
|
2859
2948
|
display: "flex",
|
|
@@ -2864,13 +2953,13 @@ function Ko(e, t, n, o, r, i) {
|
|
|
2864
2953
|
}, [
|
|
2865
2954
|
(c(!0), p(T, null, V(e.tabs, (l, a) => (c(), p("span", {
|
|
2866
2955
|
key: a,
|
|
2867
|
-
class:
|
|
2956
|
+
class: G(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
2868
2957
|
style: F({
|
|
2869
2958
|
...e.activeTab === a ? e.activeTabStyle : {}
|
|
2870
2959
|
}),
|
|
2871
2960
|
onClick: (u) => e.onClick(a)
|
|
2872
2961
|
}, [
|
|
2873
|
-
|
|
2962
|
+
P(i, {
|
|
2874
2963
|
parent: e.builderBlock.id,
|
|
2875
2964
|
path: `tabs.${a}.label`,
|
|
2876
2965
|
blocks: l.label,
|
|
@@ -2878,10 +2967,10 @@ function Ko(e, t, n, o, r, i) {
|
|
|
2878
2967
|
registeredComponents: e.builderComponents,
|
|
2879
2968
|
linkComponent: e.builderLinkComponent
|
|
2880
2969
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2881
|
-
], 14,
|
|
2970
|
+
], 14, er))), 128))
|
|
2882
2971
|
], 4),
|
|
2883
|
-
e.activeTabContent(e.activeTab) ? (c(), p("div",
|
|
2884
|
-
|
|
2972
|
+
e.activeTabContent(e.activeTab) ? (c(), p("div", tr, [
|
|
2973
|
+
P(i, {
|
|
2885
2974
|
parent: e.builderBlock.id,
|
|
2886
2975
|
path: `tabs.${e.activeTab}.content`,
|
|
2887
2976
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -2892,7 +2981,7 @@ function Ko(e, t, n, o, r, i) {
|
|
|
2892
2981
|
])) : v("", !0)
|
|
2893
2982
|
]);
|
|
2894
2983
|
}
|
|
2895
|
-
const
|
|
2984
|
+
const or = /* @__PURE__ */ b(_o, [["render", nr]]), rr = {
|
|
2896
2985
|
shouldReceiveBuilderProps: {
|
|
2897
2986
|
builderBlock: !1,
|
|
2898
2987
|
builderContext: !0
|
|
@@ -2914,41 +3003,21 @@ const qo = /* @__PURE__ */ g(Mo, [["render", Ko]]), zo = {
|
|
|
2914
3003
|
height: "auto",
|
|
2915
3004
|
textAlign: "center"
|
|
2916
3005
|
}
|
|
2917
|
-
},
|
|
3006
|
+
}, sr = g({
|
|
2918
3007
|
name: "builder-text",
|
|
2919
|
-
props: ["
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
const e = this.builderContext, {
|
|
2924
|
-
context: t,
|
|
2925
|
-
localState: n,
|
|
2926
|
-
rootState: o,
|
|
2927
|
-
rootSetState: r
|
|
2928
|
-
} = e;
|
|
2929
|
-
return String(((i = this.text) == null ? void 0 : i.toString()) || "").replace(
|
|
2930
|
-
/{{([^}]+)}}/g,
|
|
2931
|
-
(s, l) => J({
|
|
2932
|
-
code: l,
|
|
2933
|
-
context: t,
|
|
2934
|
-
localState: n,
|
|
2935
|
-
rootState: o,
|
|
2936
|
-
rootSetState: r
|
|
2937
|
-
})
|
|
2938
|
-
);
|
|
2939
|
-
}
|
|
2940
|
-
}
|
|
2941
|
-
}), Jo = ["innerHTML"];
|
|
2942
|
-
function Yo(e, t, n, o, r, i) {
|
|
3008
|
+
props: ["text"]
|
|
3009
|
+
}), ir = ["innerHTML"];
|
|
3010
|
+
function ar(e, t, n, o, r, s) {
|
|
3011
|
+
var i;
|
|
2943
3012
|
return c(), p("div", {
|
|
2944
3013
|
class: "builder-text",
|
|
2945
|
-
innerHTML: e.
|
|
3014
|
+
innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
|
|
2946
3015
|
style: {
|
|
2947
3016
|
outline: "none"
|
|
2948
3017
|
}
|
|
2949
|
-
}, null, 8,
|
|
3018
|
+
}, null, 8, ir);
|
|
2950
3019
|
}
|
|
2951
|
-
const
|
|
3020
|
+
const lr = /* @__PURE__ */ b(sr, [["render", ar]]), cr = {
|
|
2952
3021
|
name: "Custom Code",
|
|
2953
3022
|
static: !0,
|
|
2954
3023
|
requiredPermissions: ["editCode"],
|
|
@@ -2970,7 +3039,7 @@ const Xo = /* @__PURE__ */ g(Go, [["render", Yo]]), Qo = {
|
|
|
2970
3039
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
2971
3040
|
advanced: !0
|
|
2972
3041
|
}]
|
|
2973
|
-
},
|
|
3042
|
+
}, dr = g({
|
|
2974
3043
|
name: "builder-custom-code",
|
|
2975
3044
|
props: ["replaceNodes", "code"],
|
|
2976
3045
|
data() {
|
|
@@ -3004,15 +3073,15 @@ const Xo = /* @__PURE__ */ g(Go, [["render", Yo]]), Qo = {
|
|
|
3004
3073
|
}
|
|
3005
3074
|
}
|
|
3006
3075
|
}
|
|
3007
|
-
}),
|
|
3008
|
-
function
|
|
3076
|
+
}), ur = ["innerHTML"];
|
|
3077
|
+
function pr(e, t, n, o, r, s) {
|
|
3009
3078
|
return c(), p("div", {
|
|
3010
3079
|
ref: "elementRef",
|
|
3011
|
-
class:
|
|
3080
|
+
class: G("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3012
3081
|
innerHTML: e.code
|
|
3013
|
-
}, null, 10,
|
|
3082
|
+
}, null, 10, ur);
|
|
3014
3083
|
}
|
|
3015
|
-
const
|
|
3084
|
+
const mr = /* @__PURE__ */ b(dr, [["render", pr]]), hr = {
|
|
3016
3085
|
name: "Embed",
|
|
3017
3086
|
static: !0,
|
|
3018
3087
|
inputs: [{
|
|
@@ -3027,7 +3096,7 @@ const tr = /* @__PURE__ */ g(Zo, [["render", er]]), nr = {
|
|
|
3027
3096
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3028
3097
|
hideFromUI: !0
|
|
3029
3098
|
}]
|
|
3030
|
-
},
|
|
3099
|
+
}, fr = ["text/javascript", "application/javascript", "application/ecmascript"], gr = (e) => fr.includes(e.type), br = g({
|
|
3031
3100
|
name: "builder-embed",
|
|
3032
3101
|
props: ["content"],
|
|
3033
3102
|
data() {
|
|
@@ -3060,7 +3129,7 @@ const tr = /* @__PURE__ */ g(Zo, [["render", er]]), nr = {
|
|
|
3060
3129
|
this.scriptsInserted.push(n.src);
|
|
3061
3130
|
const o = document.createElement("script");
|
|
3062
3131
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3063
|
-
} else if (
|
|
3132
|
+
} else if (gr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3064
3133
|
try {
|
|
3065
3134
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3066
3135
|
} catch (o) {
|
|
@@ -3069,15 +3138,15 @@ const tr = /* @__PURE__ */ g(Zo, [["render", er]]), nr = {
|
|
|
3069
3138
|
}
|
|
3070
3139
|
}
|
|
3071
3140
|
}
|
|
3072
|
-
}),
|
|
3073
|
-
function
|
|
3141
|
+
}), yr = ["innerHTML"];
|
|
3142
|
+
function kr(e, t, n, o, r, s) {
|
|
3074
3143
|
return c(), p("div", {
|
|
3075
3144
|
class: "builder-embed",
|
|
3076
3145
|
ref: "elem",
|
|
3077
3146
|
innerHTML: e.content
|
|
3078
|
-
}, null, 8,
|
|
3147
|
+
}, null, 8, yr);
|
|
3079
3148
|
}
|
|
3080
|
-
const
|
|
3149
|
+
const vr = /* @__PURE__ */ b(br, [["render", kr]]), Sr = {
|
|
3081
3150
|
name: "Form:Form",
|
|
3082
3151
|
// editableTags: ['builder-form-error']
|
|
3083
3152
|
defaults: {
|
|
@@ -3314,12 +3383,12 @@ const lr = /* @__PURE__ */ g(ir, [["render", ar]]), cr = {
|
|
|
3314
3383
|
builderComponents: !0,
|
|
3315
3384
|
builderLinkComponent: !0
|
|
3316
3385
|
}
|
|
3317
|
-
},
|
|
3386
|
+
}, Cr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], wr = () => {
|
|
3318
3387
|
const e = process.env.NODE_ENV || "production";
|
|
3319
|
-
return
|
|
3320
|
-
},
|
|
3388
|
+
return Cr.includes(e) ? e : "production";
|
|
3389
|
+
}, Tr = g({
|
|
3321
3390
|
name: "builder-form-component",
|
|
3322
|
-
components: { Block:
|
|
3391
|
+
components: { Block: ve, Blocks: M },
|
|
3323
3392
|
props: [
|
|
3324
3393
|
"builderContext",
|
|
3325
3394
|
"previewState",
|
|
@@ -3361,7 +3430,7 @@ const lr = /* @__PURE__ */ g(ir, [["render", ar]]), cr = {
|
|
|
3361
3430
|
this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
|
|
3362
3431
|
},
|
|
3363
3432
|
submissionState() {
|
|
3364
|
-
return
|
|
3433
|
+
return E() && this.previewState || this.formState;
|
|
3365
3434
|
},
|
|
3366
3435
|
onSubmit(e) {
|
|
3367
3436
|
var n;
|
|
@@ -3375,8 +3444,8 @@ const lr = /* @__PURE__ */ g(ir, [["render", ar]]), cr = {
|
|
|
3375
3444
|
}
|
|
3376
3445
|
e.preventDefault();
|
|
3377
3446
|
const o = e.currentTarget || e.target, r = this.customHeaders || {};
|
|
3378
|
-
let
|
|
3379
|
-
const
|
|
3447
|
+
let s;
|
|
3448
|
+
const i = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((d) => !!d.name).map((d) => {
|
|
3380
3449
|
let f;
|
|
3381
3450
|
const S = d.name;
|
|
3382
3451
|
if (d instanceof HTMLInputElement)
|
|
@@ -3404,27 +3473,27 @@ const lr = /* @__PURE__ */ g(ir, [["render", ar]]), cr = {
|
|
|
3404
3473
|
if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: d }) => {
|
|
3405
3474
|
(d instanceof File || Array.isArray(d) && d[0] instanceof File || d instanceof FileList) && (a = "multipart/form-data");
|
|
3406
3475
|
}), a !== "application/json")
|
|
3407
|
-
|
|
3476
|
+
s = i;
|
|
3408
3477
|
else {
|
|
3409
3478
|
const d = {};
|
|
3410
3479
|
Array.from(l).forEach(({ value: f, key: S }) => {
|
|
3411
|
-
|
|
3412
|
-
}),
|
|
3480
|
+
je(d, S, f);
|
|
3481
|
+
}), s = JSON.stringify(d);
|
|
3413
3482
|
}
|
|
3414
3483
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
3415
3484
|
const u = new CustomEvent("presubmit", {
|
|
3416
3485
|
detail: {
|
|
3417
|
-
body:
|
|
3486
|
+
body: s
|
|
3418
3487
|
}
|
|
3419
3488
|
});
|
|
3420
3489
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
|
|
3421
3490
|
return;
|
|
3422
3491
|
this.formState = "sending";
|
|
3423
|
-
const m = `${
|
|
3492
|
+
const m = `${wr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3424
3493
|
this.sendSubmissionsToEmail || ""
|
|
3425
3494
|
)}&name=${encodeURIComponent(this.name || "")}`, h = this.sendSubmissionsTo === "email" ? m : this.action;
|
|
3426
|
-
|
|
3427
|
-
body:
|
|
3495
|
+
fe(h), fetch(h, {
|
|
3496
|
+
body: s,
|
|
3428
3497
|
headers: r,
|
|
3429
3498
|
method: this.method || "post"
|
|
3430
3499
|
}).then(
|
|
@@ -3432,7 +3501,7 @@ const lr = /* @__PURE__ */ g(ir, [["render", ar]]), cr = {
|
|
|
3432
3501
|
let f;
|
|
3433
3502
|
const S = d.headers.get("content-type");
|
|
3434
3503
|
if (S && S.indexOf("application/json") !== -1 ? f = await d.json() : f = await d.text(), !d.ok && this.errorMessagePath) {
|
|
3435
|
-
let w =
|
|
3504
|
+
let w = Fe(f, this.errorMessagePath);
|
|
3436
3505
|
w && (typeof w != "string" && (w = JSON.stringify(w)), this.formErrorMessage = w, this.mergeNewRootState({
|
|
3437
3506
|
formErrorMessage: w
|
|
3438
3507
|
}));
|
|
@@ -3473,13 +3542,13 @@ const lr = /* @__PURE__ */ g(ir, [["render", ar]]), cr = {
|
|
|
3473
3542
|
}
|
|
3474
3543
|
}
|
|
3475
3544
|
}
|
|
3476
|
-
}),
|
|
3545
|
+
}), Ir = ["validate", "action", "method", "name"], $r = {
|
|
3477
3546
|
key: 3,
|
|
3478
3547
|
class: "builder-form-error-text pre-3q96myty4lk"
|
|
3479
3548
|
};
|
|
3480
|
-
function
|
|
3549
|
+
function Rr(e, t, n, o, r, s) {
|
|
3481
3550
|
var a;
|
|
3482
|
-
const
|
|
3551
|
+
const i = k("Block"), l = k("Blocks");
|
|
3483
3552
|
return c(), p("form", C({
|
|
3484
3553
|
validate: e.validate,
|
|
3485
3554
|
ref: "formRef",
|
|
@@ -3487,8 +3556,8 @@ function fr(e, t, n, o, r, i) {
|
|
|
3487
3556
|
method: e.method,
|
|
3488
3557
|
name: e.name,
|
|
3489
3558
|
onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
|
|
3490
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3491
|
-
e.builderBlock && e.builderBlock.children ? (c(!0), p(T, { key: 0 }, V((a = e.builderBlock) == null ? void 0 : a.children, (u, m) => (c(), y(
|
|
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, {
|
|
3492
3561
|
key: `form-block-${e.idx}`,
|
|
3493
3562
|
block: u,
|
|
3494
3563
|
context: e.builderContext,
|
|
@@ -3507,16 +3576,16 @@ function fr(e, t, n, o, r, i) {
|
|
|
3507
3576
|
blocks: e.sendingMessage,
|
|
3508
3577
|
context: e.builderContext
|
|
3509
3578
|
}, null, 8, ["blocks", "context"])) : v("", !0),
|
|
3510
|
-
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),
|
|
3511
3580
|
e.submissionState() === "success" ? (c(), y(l, {
|
|
3512
3581
|
key: 4,
|
|
3513
3582
|
path: "successMessage",
|
|
3514
3583
|
blocks: e.successMessage,
|
|
3515
3584
|
context: e.builderContext
|
|
3516
3585
|
}, null, 8, ["blocks", "context"])) : v("", !0)
|
|
3517
|
-
], 16,
|
|
3586
|
+
], 16, Ir);
|
|
3518
3587
|
}
|
|
3519
|
-
const
|
|
3588
|
+
const Er = /* @__PURE__ */ b(Tr, [["render", Rr], ["__scopeId", "data-v-cd94d6c1"]]), Pr = {
|
|
3520
3589
|
name: "Form:Input",
|
|
3521
3590
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3522
3591
|
inputs: [
|
|
@@ -3567,7 +3636,7 @@ const br = /* @__PURE__ */ g(pr, [["render", fr], ["__scopeId", "data-v-cd94d6c1
|
|
|
3567
3636
|
borderStyle: "solid",
|
|
3568
3637
|
borderColor: "#ccc"
|
|
3569
3638
|
}
|
|
3570
|
-
},
|
|
3639
|
+
}, Br = g({
|
|
3571
3640
|
name: "builder-form-input-component",
|
|
3572
3641
|
props: [
|
|
3573
3642
|
"attributes",
|
|
@@ -3579,10 +3648,10 @@ const br = /* @__PURE__ */ g(pr, [["render", fr], ["__scopeId", "data-v-cd94d6c1
|
|
|
3579
3648
|
"required"
|
|
3580
3649
|
],
|
|
3581
3650
|
data() {
|
|
3582
|
-
return { isEditing:
|
|
3651
|
+
return { isEditing: E, filterAttrs: W };
|
|
3583
3652
|
}
|
|
3584
|
-
}),
|
|
3585
|
-
function
|
|
3653
|
+
}), Ar = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3654
|
+
function xr(e, t, n, o, r, s) {
|
|
3586
3655
|
return c(), p("input", C({
|
|
3587
3656
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3588
3657
|
placeholder: e.placeholder,
|
|
@@ -3591,9 +3660,9 @@ function vr(e, t, n, o, r, i) {
|
|
|
3591
3660
|
value: e.value,
|
|
3592
3661
|
defaultValue: e.defaultValue,
|
|
3593
3662
|
required: e.required
|
|
3594
|
-
}, 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);
|
|
3595
3664
|
}
|
|
3596
|
-
const
|
|
3665
|
+
const Vr = /* @__PURE__ */ b(Br, [["render", xr]]), Wr = {
|
|
3597
3666
|
name: "Form:Select",
|
|
3598
3667
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3599
3668
|
defaultStyles: {
|
|
@@ -3635,28 +3704,28 @@ const Sr = /* @__PURE__ */ g(yr, [["render", vr]]), Cr = {
|
|
|
3635
3704
|
}],
|
|
3636
3705
|
static: !0,
|
|
3637
3706
|
noWrap: !0
|
|
3638
|
-
},
|
|
3707
|
+
}, Nr = g({
|
|
3639
3708
|
name: "builder-select-component",
|
|
3640
3709
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
3641
3710
|
data() {
|
|
3642
|
-
return { isEditing:
|
|
3711
|
+
return { isEditing: E, filterAttrs: W };
|
|
3643
3712
|
}
|
|
3644
|
-
}),
|
|
3645
|
-
function
|
|
3713
|
+
}), Or = ["value", "defaultValue", "name", "required"], Fr = ["value"];
|
|
3714
|
+
function Dr(e, t, n, o, r, s) {
|
|
3646
3715
|
return c(), p("select", C({
|
|
3647
3716
|
value: e.value,
|
|
3648
3717
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3649
3718
|
defaultValue: e.defaultValue,
|
|
3650
3719
|
name: e.name,
|
|
3651
3720
|
required: e.required
|
|
3652
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3653
|
-
(c(!0), p(T, null, V(e.options, (
|
|
3654
|
-
key: `${
|
|
3655
|
-
value:
|
|
3656
|
-
},
|
|
3657
|
-
], 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);
|
|
3658
3727
|
}
|
|
3659
|
-
const
|
|
3728
|
+
const Lr = /* @__PURE__ */ b(Nr, [["render", Dr]]), Ur = {
|
|
3660
3729
|
name: "Form:SubmitButton",
|
|
3661
3730
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3662
3731
|
defaultStyles: {
|
|
@@ -3681,17 +3750,17 @@ const Rr = /* @__PURE__ */ g(wr, [["render", $r]]), Er = {
|
|
|
3681
3750
|
// that only shows if advanced setting is flipped
|
|
3682
3751
|
// TODO: defaultChildren
|
|
3683
3752
|
// canHaveChildren: true,
|
|
3684
|
-
},
|
|
3753
|
+
}, Mr = g({
|
|
3685
3754
|
name: "builder-submit-button",
|
|
3686
3755
|
props: ["attributes", "text"],
|
|
3687
3756
|
data() {
|
|
3688
3757
|
return { filterAttrs: W };
|
|
3689
3758
|
}
|
|
3690
3759
|
});
|
|
3691
|
-
function
|
|
3692
|
-
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);
|
|
3693
3762
|
}
|
|
3694
|
-
const
|
|
3763
|
+
const jr = /* @__PURE__ */ b(Mr, [["render", Hr]]), Kr = {
|
|
3695
3764
|
name: "Form:TextArea",
|
|
3696
3765
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3697
3766
|
inputs: [{
|
|
@@ -3727,7 +3796,7 @@ const xr = /* @__PURE__ */ g(Pr, [["render", Br]]), Ar = {
|
|
|
3727
3796
|
},
|
|
3728
3797
|
static: !0,
|
|
3729
3798
|
noWrap: !0
|
|
3730
|
-
},
|
|
3799
|
+
}, qr = g({
|
|
3731
3800
|
name: "builder-textarea",
|
|
3732
3801
|
props: [
|
|
3733
3802
|
"attributes",
|
|
@@ -3740,17 +3809,17 @@ const xr = /* @__PURE__ */ g(Pr, [["render", Br]]), Ar = {
|
|
|
3740
3809
|
data() {
|
|
3741
3810
|
return { filterAttrs: W };
|
|
3742
3811
|
}
|
|
3743
|
-
}),
|
|
3744
|
-
function
|
|
3812
|
+
}), zr = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3813
|
+
function Gr(e, t, n, o, r, s) {
|
|
3745
3814
|
return c(), p("textarea", C({
|
|
3746
3815
|
placeholder: e.placeholder,
|
|
3747
3816
|
name: e.name,
|
|
3748
3817
|
value: e.value,
|
|
3749
3818
|
defaultValue: e.defaultValue,
|
|
3750
3819
|
required: e.required
|
|
3751
|
-
}, 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);
|
|
3752
3821
|
}
|
|
3753
|
-
const
|
|
3822
|
+
const Jr = /* @__PURE__ */ b(qr, [["render", Gr]]), Yr = {
|
|
3754
3823
|
// friendlyName?
|
|
3755
3824
|
name: "Raw:Img",
|
|
3756
3825
|
hideFromInsertMenu: !0,
|
|
@@ -3759,12 +3828,12 @@ const Or = /* @__PURE__ */ g(Vr, [["render", Nr]]), Fr = {
|
|
|
3759
3828
|
name: "image",
|
|
3760
3829
|
bubble: !0,
|
|
3761
3830
|
type: "file",
|
|
3762
|
-
allowedFileTypes:
|
|
3831
|
+
allowedFileTypes: Ce,
|
|
3763
3832
|
required: !0
|
|
3764
3833
|
}],
|
|
3765
3834
|
noWrap: !0,
|
|
3766
3835
|
static: !0
|
|
3767
|
-
},
|
|
3836
|
+
}, Xr = g({
|
|
3768
3837
|
name: "builder-img-component",
|
|
3769
3838
|
props: [
|
|
3770
3839
|
"backgroundSize",
|
|
@@ -3775,10 +3844,10 @@ const Or = /* @__PURE__ */ g(Vr, [["render", Nr]]), Fr = {
|
|
|
3775
3844
|
"attributes"
|
|
3776
3845
|
],
|
|
3777
3846
|
data() {
|
|
3778
|
-
return { isEditing:
|
|
3847
|
+
return { isEditing: E, filterAttrs: W };
|
|
3779
3848
|
}
|
|
3780
|
-
}),
|
|
3781
|
-
function
|
|
3849
|
+
}), Qr = ["alt", "src"];
|
|
3850
|
+
function Zr(e, t, n, o, r, s) {
|
|
3782
3851
|
return c(), p("img", C({
|
|
3783
3852
|
style: {
|
|
3784
3853
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -3787,9 +3856,9 @@ function Ur(e, t, n, o, r, i) {
|
|
|
3787
3856
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
3788
3857
|
alt: e.altText,
|
|
3789
3858
|
src: e.imgSrc || e.image
|
|
3790
|
-
}, 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);
|
|
3791
3860
|
}
|
|
3792
|
-
const
|
|
3861
|
+
const _r = /* @__PURE__ */ b(Xr, [["render", Zr]]), es = {
|
|
3793
3862
|
name: "Video",
|
|
3794
3863
|
canHaveChildren: !0,
|
|
3795
3864
|
defaultStyles: {
|
|
@@ -3800,14 +3869,14 @@ const Mr = /* @__PURE__ */ g(Dr, [["render", Ur]]), Hr = {
|
|
|
3800
3869
|
inputs: [{
|
|
3801
3870
|
name: "video",
|
|
3802
3871
|
type: "file",
|
|
3803
|
-
allowedFileTypes:
|
|
3872
|
+
allowedFileTypes: Ko,
|
|
3804
3873
|
bubble: !0,
|
|
3805
3874
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3806
3875
|
required: !0
|
|
3807
3876
|
}, {
|
|
3808
3877
|
name: "posterImage",
|
|
3809
3878
|
type: "file",
|
|
3810
|
-
allowedFileTypes:
|
|
3879
|
+
allowedFileTypes: Ce,
|
|
3811
3880
|
helperText: "Image to show before the video plays"
|
|
3812
3881
|
}, {
|
|
3813
3882
|
name: "autoPlay",
|
|
@@ -3873,7 +3942,7 @@ const Mr = /* @__PURE__ */ g(Dr, [["render", Ur]]), Hr = {
|
|
|
3873
3942
|
shouldReceiveBuilderProps: {
|
|
3874
3943
|
builderBlock: !0
|
|
3875
3944
|
}
|
|
3876
|
-
},
|
|
3945
|
+
}, ts = g({
|
|
3877
3946
|
name: "builder-video",
|
|
3878
3947
|
props: [
|
|
3879
3948
|
"autoPlay",
|
|
@@ -3918,16 +3987,16 @@ const Mr = /* @__PURE__ */ g(Dr, [["render", Ur]]), Hr = {
|
|
|
3918
3987
|
};
|
|
3919
3988
|
}
|
|
3920
3989
|
}
|
|
3921
|
-
}),
|
|
3990
|
+
}), ns = { style: {
|
|
3922
3991
|
position: "relative"
|
|
3923
|
-
} },
|
|
3992
|
+
} }, os = ["preload", "src", "poster"], rs = ["src"], ss = {
|
|
3924
3993
|
key: 1,
|
|
3925
3994
|
style: {
|
|
3926
3995
|
display: "flex",
|
|
3927
3996
|
flexDirection: "column",
|
|
3928
3997
|
alignItems: "stretch"
|
|
3929
3998
|
}
|
|
3930
|
-
},
|
|
3999
|
+
}, is = {
|
|
3931
4000
|
key: 2,
|
|
3932
4001
|
style: {
|
|
3933
4002
|
pointerEvents: "none",
|
|
@@ -3941,16 +4010,16 @@ const Mr = /* @__PURE__ */ g(Dr, [["render", Ur]]), Hr = {
|
|
|
3941
4010
|
height: "100%"
|
|
3942
4011
|
}
|
|
3943
4012
|
};
|
|
3944
|
-
function
|
|
3945
|
-
var
|
|
3946
|
-
return c(), p("div",
|
|
3947
|
-
|
|
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({
|
|
3948
4017
|
class: "builder-video",
|
|
3949
4018
|
preload: e.preload || "metadata",
|
|
3950
4019
|
style: {
|
|
3951
4020
|
width: "100%",
|
|
3952
4021
|
height: "100%",
|
|
3953
|
-
...(
|
|
4022
|
+
...(i = e.attributes) == null ? void 0 : i.style,
|
|
3954
4023
|
objectFit: e.fit,
|
|
3955
4024
|
objectPosition: e.position,
|
|
3956
4025
|
// Hack to get object fit to work as expected and
|
|
@@ -3968,8 +4037,8 @@ function Yr(e, t, n, o, r, i) {
|
|
|
3968
4037
|
key: 0,
|
|
3969
4038
|
type: "video/mp4",
|
|
3970
4039
|
src: e.video
|
|
3971
|
-
}, null, 8,
|
|
3972
|
-
], 16,
|
|
4040
|
+
}, null, 8, rs))
|
|
4041
|
+
], 16, os),
|
|
3973
4042
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (c(), p("div", {
|
|
3974
4043
|
key: 0,
|
|
3975
4044
|
style: F({
|
|
@@ -3979,72 +4048,72 @@ function Yr(e, t, n, o, r, i) {
|
|
|
3979
4048
|
fontSize: "0px"
|
|
3980
4049
|
})
|
|
3981
4050
|
}, null, 4)) : v("", !0),
|
|
3982
|
-
(m = (u = e.builderBlock) == null ? void 0 : u.children) != null && m.length && e.fitContent ? (c(), p("div",
|
|
3983
|
-
|
|
4051
|
+
(m = (u = e.builderBlock) == null ? void 0 : u.children) != null && m.length && e.fitContent ? (c(), p("div", ss, [
|
|
4052
|
+
x(e.$slots, "default")
|
|
3984
4053
|
])) : v("", !0),
|
|
3985
|
-
(d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length && !e.fitContent ? (c(), p("div",
|
|
3986
|
-
|
|
4054
|
+
(d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length && !e.fitContent ? (c(), p("div", is, [
|
|
4055
|
+
x(e.$slots, "default")
|
|
3987
4056
|
])) : v("", !0)
|
|
3988
4057
|
]);
|
|
3989
4058
|
}
|
|
3990
|
-
const
|
|
3991
|
-
component:
|
|
3992
|
-
...Qo
|
|
3993
|
-
}, {
|
|
3994
|
-
component: lr,
|
|
3995
|
-
...nr
|
|
3996
|
-
}, {
|
|
3997
|
-
component: br,
|
|
4059
|
+
const ls = /* @__PURE__ */ b(ts, [["render", as]]), cs = () => [{
|
|
4060
|
+
component: mr,
|
|
3998
4061
|
...cr
|
|
3999
4062
|
}, {
|
|
4000
|
-
component:
|
|
4001
|
-
...
|
|
4063
|
+
component: vr,
|
|
4064
|
+
...hr
|
|
4002
4065
|
}, {
|
|
4003
|
-
component:
|
|
4004
|
-
...
|
|
4066
|
+
component: Er,
|
|
4067
|
+
...Sr
|
|
4005
4068
|
}, {
|
|
4006
|
-
component:
|
|
4007
|
-
...
|
|
4069
|
+
component: Vr,
|
|
4070
|
+
...Pr
|
|
4008
4071
|
}, {
|
|
4009
|
-
component:
|
|
4010
|
-
...
|
|
4072
|
+
component: jr,
|
|
4073
|
+
...Ur
|
|
4011
4074
|
}, {
|
|
4012
|
-
component:
|
|
4013
|
-
...
|
|
4075
|
+
component: Lr,
|
|
4076
|
+
...Wr
|
|
4014
4077
|
}, {
|
|
4015
|
-
component:
|
|
4016
|
-
...
|
|
4017
|
-
}], Pe = () => [{
|
|
4018
|
-
component: Tt,
|
|
4019
|
-
...Bo
|
|
4078
|
+
component: Jr,
|
|
4079
|
+
...Kr
|
|
4020
4080
|
}, {
|
|
4021
|
-
component:
|
|
4022
|
-
...
|
|
4081
|
+
component: _r,
|
|
4082
|
+
...Yr
|
|
4023
4083
|
}, {
|
|
4024
|
-
component:
|
|
4025
|
-
...
|
|
4084
|
+
component: ls,
|
|
4085
|
+
...es
|
|
4086
|
+
}], xe = () => [{
|
|
4087
|
+
component: Pt,
|
|
4088
|
+
...Mo
|
|
4026
4089
|
}, {
|
|
4027
4090
|
component: vo,
|
|
4028
|
-
...
|
|
4091
|
+
...Ho
|
|
4029
4092
|
}, {
|
|
4030
4093
|
component: wo,
|
|
4031
|
-
...
|
|
4094
|
+
...jo
|
|
4032
4095
|
}, {
|
|
4033
|
-
component:
|
|
4034
|
-
...
|
|
4096
|
+
component: Ao,
|
|
4097
|
+
...qo
|
|
4035
4098
|
}, {
|
|
4036
|
-
component:
|
|
4037
|
-
...
|
|
4099
|
+
component: Wo,
|
|
4100
|
+
...zo
|
|
4038
4101
|
}, {
|
|
4039
4102
|
component: Xo,
|
|
4040
|
-
...
|
|
4103
|
+
...Go
|
|
4104
|
+
}, {
|
|
4105
|
+
component: zs,
|
|
4106
|
+
...Qo
|
|
4107
|
+
}, {
|
|
4108
|
+
component: lr,
|
|
4109
|
+
...rr
|
|
4041
4110
|
}, {
|
|
4042
|
-
component:
|
|
4043
|
-
...
|
|
4111
|
+
component: or,
|
|
4112
|
+
...Zo
|
|
4044
4113
|
}, {
|
|
4045
|
-
component:
|
|
4046
|
-
...
|
|
4047
|
-
}, ...
|
|
4114
|
+
component: Uo,
|
|
4115
|
+
...No
|
|
4116
|
+
}, ...cs()], ds = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4048
4117
|
function getAndSetVariantId() {
|
|
4049
4118
|
function setCookie(name, value, days) {
|
|
4050
4119
|
let expires = '';
|
|
@@ -4100,7 +4169,7 @@ const Xr = /* @__PURE__ */ g(jr, [["render", Yr]]), Qr = () => [{
|
|
|
4100
4169
|
}).join('');
|
|
4101
4170
|
styleEl.innerHTML = newStyleStr;
|
|
4102
4171
|
}
|
|
4103
|
-
}`,
|
|
4172
|
+
}`, us = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4104
4173
|
if (!navigator.cookieEnabled) {
|
|
4105
4174
|
return;
|
|
4106
4175
|
}
|
|
@@ -4134,27 +4203,27 @@ const Xr = /* @__PURE__ */ g(jr, [["render", Yr]]), Qr = () => [{
|
|
|
4134
4203
|
thisScriptEl?.remove();
|
|
4135
4204
|
}
|
|
4136
4205
|
return;
|
|
4137
|
-
}`,
|
|
4206
|
+
}`, ft = "builderIoAbTest", gt = "builderIoRenderContent", Z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4138
4207
|
...t,
|
|
4139
4208
|
testVariationId: t.id,
|
|
4140
4209
|
id: e == null ? void 0 : e.id
|
|
4141
|
-
})),
|
|
4210
|
+
})), ps = ({
|
|
4142
4211
|
canTrack: e,
|
|
4143
4212
|
content: t
|
|
4144
|
-
}) => !(!(Z(t).length > 0) || !e),
|
|
4145
|
-
window.${
|
|
4146
|
-
window.${
|
|
4147
|
-
`,
|
|
4148
|
-
window.${
|
|
4149
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4150
|
-
)`,
|
|
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 = ({
|
|
4151
4220
|
contentId: e,
|
|
4152
4221
|
variationId: t
|
|
4153
|
-
}) => `window.${
|
|
4154
|
-
"${t}", "${e}", ${
|
|
4155
|
-
)`,
|
|
4222
|
+
}) => `window.${gt}(
|
|
4223
|
+
"${t}", "${e}", ${bt}
|
|
4224
|
+
)`, yt = g({
|
|
4156
4225
|
render() {
|
|
4157
|
-
return
|
|
4226
|
+
return Ne("script", {
|
|
4158
4227
|
innerHTML: this.scriptStr,
|
|
4159
4228
|
"data-id": this.id,
|
|
4160
4229
|
nonce: this.nonce
|
|
@@ -4163,10 +4232,10 @@ const Xr = /* @__PURE__ */ g(jr, [["render", Yr]]), Qr = () => [{
|
|
|
4163
4232
|
name: "inlined-script",
|
|
4164
4233
|
props: ["scriptStr", "id", "nonce"]
|
|
4165
4234
|
});
|
|
4166
|
-
function
|
|
4235
|
+
function Ve(e) {
|
|
4167
4236
|
return Math.round(e * 1e3) / 1e3;
|
|
4168
4237
|
}
|
|
4169
|
-
const
|
|
4238
|
+
const bs = (e, t, n = !0) => {
|
|
4170
4239
|
if (!(e instanceof HTMLElement))
|
|
4171
4240
|
return null;
|
|
4172
4241
|
let o = n ? e : e.parentElement;
|
|
@@ -4177,37 +4246,37 @@ const ii = (e, t, n = !0) => {
|
|
|
4177
4246
|
return o;
|
|
4178
4247
|
} while (o = o.parentElement);
|
|
4179
4248
|
return null;
|
|
4180
|
-
},
|
|
4249
|
+
}, ys = (e) => bs(e, (t) => {
|
|
4181
4250
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4182
4251
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4183
|
-
}),
|
|
4252
|
+
}), We = ({
|
|
4184
4253
|
event: e,
|
|
4185
4254
|
target: t
|
|
4186
4255
|
}) => {
|
|
4187
|
-
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);
|
|
4188
4257
|
return {
|
|
4189
|
-
x:
|
|
4190
|
-
y:
|
|
4258
|
+
x: s,
|
|
4259
|
+
y: i
|
|
4191
4260
|
};
|
|
4192
|
-
},
|
|
4193
|
-
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);
|
|
4194
4263
|
return {
|
|
4195
4264
|
targetBuilderElement: o || void 0,
|
|
4196
4265
|
metadata: {
|
|
4197
|
-
targetOffset: t ?
|
|
4266
|
+
targetOffset: t ? We({
|
|
4198
4267
|
event: e,
|
|
4199
4268
|
target: t
|
|
4200
4269
|
}) : void 0,
|
|
4201
|
-
builderTargetOffset: n ?
|
|
4270
|
+
builderTargetOffset: n ? We({
|
|
4202
4271
|
event: e,
|
|
4203
4272
|
target: n
|
|
4204
4273
|
}) : void 0,
|
|
4205
4274
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4206
4275
|
}
|
|
4207
4276
|
};
|
|
4208
|
-
},
|
|
4209
|
-
var
|
|
4210
|
-
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);
|
|
4211
4280
|
let r = "";
|
|
4212
4281
|
if (o && t && n && (r += `
|
|
4213
4282
|
@font-face {
|
|
@@ -4217,29 +4286,29 @@ font-display: fallback;
|
|
|
4217
4286
|
font-weight: 400;
|
|
4218
4287
|
}
|
|
4219
4288
|
`.trim()), e.files)
|
|
4220
|
-
for (const
|
|
4221
|
-
if (!(String(Number(
|
|
4289
|
+
for (const i in e.files) {
|
|
4290
|
+
if (!(String(Number(i)) === i))
|
|
4222
4291
|
continue;
|
|
4223
|
-
const a = e.files[
|
|
4292
|
+
const a = e.files[i];
|
|
4224
4293
|
a && a !== o && (r += `
|
|
4225
4294
|
@font-face {
|
|
4226
4295
|
font-family: "${t}";
|
|
4227
4296
|
src: url('${a}') format('woff2');
|
|
4228
4297
|
font-display: fallback;
|
|
4229
|
-
font-weight: ${
|
|
4298
|
+
font-weight: ${i};
|
|
4230
4299
|
}
|
|
4231
4300
|
`.trim());
|
|
4232
4301
|
}
|
|
4233
4302
|
return r;
|
|
4234
|
-
},
|
|
4303
|
+
}, ws = ({
|
|
4235
4304
|
customFonts: e
|
|
4236
4305
|
}) => {
|
|
4237
4306
|
var t;
|
|
4238
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4239
|
-
},
|
|
4307
|
+
return ((t = e == null ? void 0 : e.map((n) => Cs(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4308
|
+
}, Ts = ({
|
|
4240
4309
|
cssCode: e,
|
|
4241
4310
|
contentId: t
|
|
4242
|
-
}) => 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 = `
|
|
4243
4312
|
.builder-button {
|
|
4244
4313
|
all: unset;
|
|
4245
4314
|
}
|
|
@@ -4256,9 +4325,9 @@ font-weight: ${s};
|
|
|
4256
4325
|
text-align: inherit;
|
|
4257
4326
|
font-family: inherit;
|
|
4258
4327
|
}
|
|
4259
|
-
`,
|
|
4328
|
+
`, $s = (e) => e ? "" : Is, Rs = (e) => `variant-${e}`, Es = g({
|
|
4260
4329
|
name: "enable-editor",
|
|
4261
|
-
components: { DynamicDiv:
|
|
4330
|
+
components: { DynamicDiv: X },
|
|
4262
4331
|
props: [
|
|
4263
4332
|
"isNestedRender",
|
|
4264
4333
|
"builderContextSignal",
|
|
@@ -4270,10 +4339,10 @@ font-weight: ${s};
|
|
|
4270
4339
|
"trustedHosts",
|
|
4271
4340
|
"model",
|
|
4272
4341
|
"content",
|
|
4342
|
+
"context",
|
|
4273
4343
|
"data",
|
|
4274
4344
|
"showContent",
|
|
4275
4345
|
"contentWrapper",
|
|
4276
|
-
"context",
|
|
4277
4346
|
"contentWrapperProps"
|
|
4278
4347
|
],
|
|
4279
4348
|
data() {
|
|
@@ -4282,14 +4351,15 @@ font-weight: ${s};
|
|
|
4282
4351
|
httpReqsData: {},
|
|
4283
4352
|
httpReqsPending: {},
|
|
4284
4353
|
clicked: !1,
|
|
4285
|
-
builderContext:
|
|
4286
|
-
|
|
4354
|
+
builderContext: ce,
|
|
4355
|
+
needsElementRefDivForEditing: Ss,
|
|
4356
|
+
getWrapperClassName: Rs
|
|
4287
4357
|
};
|
|
4288
4358
|
},
|
|
4289
4359
|
provide() {
|
|
4290
4360
|
const e = this;
|
|
4291
4361
|
return {
|
|
4292
|
-
[
|
|
4362
|
+
[ce.key]: e.builderContextSignal
|
|
4293
4363
|
};
|
|
4294
4364
|
},
|
|
4295
4365
|
created() {
|
|
@@ -4297,21 +4367,21 @@ font-weight: ${s};
|
|
|
4297
4367
|
},
|
|
4298
4368
|
mounted() {
|
|
4299
4369
|
var e, t;
|
|
4300
|
-
if (
|
|
4301
|
-
if (
|
|
4370
|
+
if (I()) {
|
|
4371
|
+
if (E() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4302
4372
|
new CustomEvent("initeditingbldr")
|
|
4303
|
-
), this.builderContextSignal.content &&
|
|
4304
|
-
const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id,
|
|
4305
|
-
|
|
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;
|
|
4375
|
+
ue({
|
|
4306
4376
|
apiHost: this.apiHost,
|
|
4307
4377
|
type: "impression",
|
|
4308
4378
|
canTrack: !0,
|
|
4309
4379
|
contentId: r,
|
|
4310
|
-
apiKey:
|
|
4380
|
+
apiKey: s,
|
|
4311
4381
|
variationId: o !== r ? o : void 0
|
|
4312
4382
|
});
|
|
4313
4383
|
}
|
|
4314
|
-
|
|
4384
|
+
Ke() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4315
4385
|
new CustomEvent("initpreviewingbldr")
|
|
4316
4386
|
);
|
|
4317
4387
|
}
|
|
@@ -4345,7 +4415,7 @@ font-weight: ${s};
|
|
|
4345
4415
|
}
|
|
4346
4416
|
},
|
|
4347
4417
|
unmounted() {
|
|
4348
|
-
|
|
4418
|
+
I() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
4349
4419
|
"builder:component:stateChangeListenerActivated",
|
|
4350
4420
|
this.emitStateUpdate
|
|
4351
4421
|
));
|
|
@@ -4388,7 +4458,7 @@ font-weight: ${s};
|
|
|
4388
4458
|
this.builderContextSignal.rootSetState ? (o = (n = this.builderContextSignal).rootSetState) == null || o.call(n, t) : this.builderContextSignal.rootState = t;
|
|
4389
4459
|
},
|
|
4390
4460
|
mergeNewContent(e) {
|
|
4391
|
-
var n, o, r,
|
|
4461
|
+
var n, o, r, s, i;
|
|
4392
4462
|
const t = {
|
|
4393
4463
|
...this.builderContextSignal.content,
|
|
4394
4464
|
...e,
|
|
@@ -4399,13 +4469,13 @@ font-weight: ${s};
|
|
|
4399
4469
|
meta: {
|
|
4400
4470
|
...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
|
|
4401
4471
|
...e == null ? void 0 : e.meta,
|
|
4402
|
-
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)
|
|
4403
4473
|
}
|
|
4404
4474
|
};
|
|
4405
4475
|
this.builderContextSignal.content = t;
|
|
4406
4476
|
},
|
|
4407
4477
|
processMessage(e) {
|
|
4408
|
-
return
|
|
4478
|
+
return ot({
|
|
4409
4479
|
model: this.model,
|
|
4410
4480
|
trustedHosts: this.trustedHosts,
|
|
4411
4481
|
callbacks: {
|
|
@@ -4419,7 +4489,7 @@ font-weight: ${s};
|
|
|
4419
4489
|
});
|
|
4420
4490
|
},
|
|
4421
4491
|
animation: (t) => {
|
|
4422
|
-
|
|
4492
|
+
dt(t);
|
|
4423
4493
|
},
|
|
4424
4494
|
contentUpdate: (t) => {
|
|
4425
4495
|
this.mergeNewContent(t);
|
|
@@ -4431,14 +4501,14 @@ font-weight: ${s};
|
|
|
4431
4501
|
var t, n;
|
|
4432
4502
|
if (this.builderContextSignal.content) {
|
|
4433
4503
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
4434
|
-
|
|
4504
|
+
ue({
|
|
4435
4505
|
apiHost: this.apiHost,
|
|
4436
4506
|
type: "click",
|
|
4437
|
-
canTrack:
|
|
4507
|
+
canTrack: J(this.canTrack),
|
|
4438
4508
|
contentId: r,
|
|
4439
4509
|
apiKey: this.apiKey,
|
|
4440
4510
|
variationId: o !== r ? o : void 0,
|
|
4441
|
-
...
|
|
4511
|
+
...ks(e),
|
|
4442
4512
|
unique: !this.clicked
|
|
4443
4513
|
});
|
|
4444
4514
|
}
|
|
@@ -4448,13 +4518,13 @@ font-weight: ${s};
|
|
|
4448
4518
|
var t, n;
|
|
4449
4519
|
const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
|
|
4450
4520
|
Object.entries(e).forEach(([o, r]) => {
|
|
4451
|
-
if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !
|
|
4521
|
+
if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !E())
|
|
4452
4522
|
return;
|
|
4453
4523
|
this.httpReqsPending[o] = !0;
|
|
4454
|
-
const
|
|
4524
|
+
const s = r.replace(
|
|
4455
4525
|
/{{([^}]+)}}/g,
|
|
4456
|
-
(
|
|
4457
|
-
|
|
4526
|
+
(i, l) => String(
|
|
4527
|
+
Y({
|
|
4458
4528
|
code: l,
|
|
4459
4529
|
context: this.context || {},
|
|
4460
4530
|
localState: void 0,
|
|
@@ -4463,24 +4533,24 @@ font-weight: ${s};
|
|
|
4463
4533
|
})
|
|
4464
4534
|
)
|
|
4465
4535
|
);
|
|
4466
|
-
|
|
4536
|
+
fe(s), fetch(s).then((i) => i.json()).then((i) => {
|
|
4467
4537
|
this.mergeNewRootState({
|
|
4468
|
-
[o]:
|
|
4538
|
+
[o]: i
|
|
4469
4539
|
}), this.httpReqsData[o] = !0;
|
|
4470
|
-
}).catch((
|
|
4471
|
-
console.error("error fetching dynamic data", r,
|
|
4540
|
+
}).catch((i) => {
|
|
4541
|
+
console.error("error fetching dynamic data", r, i);
|
|
4472
4542
|
}).finally(() => {
|
|
4473
4543
|
this.httpReqsPending[o] = !1;
|
|
4474
4544
|
});
|
|
4475
4545
|
});
|
|
4476
4546
|
},
|
|
4477
4547
|
emitStateUpdate() {
|
|
4478
|
-
|
|
4548
|
+
E() && window.dispatchEvent(
|
|
4479
4549
|
new CustomEvent(
|
|
4480
4550
|
"builder:component:stateChange",
|
|
4481
4551
|
{
|
|
4482
4552
|
detail: {
|
|
4483
|
-
state:
|
|
4553
|
+
state: he(this.builderContextSignal.rootState),
|
|
4484
4554
|
ref: {
|
|
4485
4555
|
name: this.model
|
|
4486
4556
|
}
|
|
@@ -4490,7 +4560,7 @@ font-weight: ${s};
|
|
|
4490
4560
|
);
|
|
4491
4561
|
},
|
|
4492
4562
|
elementRef_onIniteditingbldr(e) {
|
|
4493
|
-
window.addEventListener("message", this.processMessage),
|
|
4563
|
+
window.addEventListener("message", this.processMessage), wn(), nt({
|
|
4494
4564
|
...this.locale ? {
|
|
4495
4565
|
locale: this.locale
|
|
4496
4566
|
} : {},
|
|
@@ -4503,81 +4573,92 @@ font-weight: ${s};
|
|
|
4503
4573
|
}), Object.values(
|
|
4504
4574
|
this.builderContextSignal.componentInfos
|
|
4505
4575
|
).forEach((t) => {
|
|
4506
|
-
var o;
|
|
4507
|
-
|
|
4508
|
-
|
|
4576
|
+
var n, o;
|
|
4577
|
+
if (!this.model || !((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
4578
|
+
const r = tn(t);
|
|
4579
|
+
(o = window.parent) == null || o.postMessage(r, "*");
|
|
4580
|
+
}
|
|
4509
4581
|
}), window.addEventListener(
|
|
4510
4582
|
"builder:component:stateChangeListenerActivated",
|
|
4511
4583
|
this.emitStateUpdate
|
|
4512
4584
|
);
|
|
4513
4585
|
},
|
|
4514
4586
|
elementRef_onInitpreviewingbldr(e) {
|
|
4587
|
+
var s;
|
|
4515
4588
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
4516
4589
|
`builder.overrides.${n}`
|
|
4517
4590
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
4518
|
-
n === this.model && r === this.apiKey && (!this.content || o === this.content.id) &&
|
|
4519
|
-
model: this.model,
|
|
4591
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && ye({
|
|
4592
|
+
model: this.model || "",
|
|
4520
4593
|
apiKey: this.apiKey,
|
|
4521
|
-
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
|
+
} : {}
|
|
4522
4600
|
}).then((i) => {
|
|
4523
4601
|
i && this.mergeNewContent(i);
|
|
4524
4602
|
});
|
|
4525
4603
|
}
|
|
4526
4604
|
}
|
|
4527
4605
|
});
|
|
4528
|
-
function
|
|
4529
|
-
var
|
|
4530
|
-
return e.builderContextSignal.content ? (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({
|
|
4531
4609
|
key: 0,
|
|
4532
4610
|
ref: "elementRef",
|
|
4533
4611
|
onClick: (u) => e.onClick(u),
|
|
4534
|
-
"builder-content-id": (
|
|
4612
|
+
"builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
|
|
4535
4613
|
"builder-model": e.model,
|
|
4536
4614
|
className: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
|
|
4615
|
+
style: {
|
|
4616
|
+
display: !e.builderContextSignal.content && e.needsElementRefDivForEditing() ? "none" : void 0
|
|
4617
|
+
},
|
|
4537
4618
|
onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
|
|
4538
4619
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
4539
4620
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
4540
4621
|
default: N(() => [
|
|
4541
|
-
|
|
4622
|
+
x(e.$slots, "default")
|
|
4542
4623
|
]),
|
|
4543
4624
|
_: 3
|
|
4544
|
-
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
|
|
4625
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
|
|
4545
4626
|
}
|
|
4546
|
-
const
|
|
4627
|
+
const Bs = /* @__PURE__ */ b(Es, [["render", Ps]]), As = g({
|
|
4547
4628
|
name: "content-styles",
|
|
4548
|
-
components: { InlinedStyles:
|
|
4629
|
+
components: { InlinedStyles: Se },
|
|
4549
4630
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
4550
4631
|
data() {
|
|
4551
4632
|
return {
|
|
4552
4633
|
injectedStyles: `
|
|
4553
|
-
${
|
|
4634
|
+
${Ts({
|
|
4554
4635
|
cssCode: this.cssCode,
|
|
4555
4636
|
contentId: this.contentId
|
|
4556
4637
|
})}
|
|
4557
|
-
${
|
|
4638
|
+
${ws({
|
|
4558
4639
|
customFonts: this.customFonts
|
|
4559
4640
|
})}
|
|
4560
|
-
${
|
|
4641
|
+
${$s(this.isNestedRender)}
|
|
4561
4642
|
`.trim()
|
|
4562
4643
|
};
|
|
4563
4644
|
}
|
|
4564
4645
|
});
|
|
4565
|
-
function
|
|
4566
|
-
const
|
|
4567
|
-
return c(), y(
|
|
4646
|
+
function xs(e, t, n, o, r, s) {
|
|
4647
|
+
const i = k("InlinedStyles");
|
|
4648
|
+
return c(), y(i, {
|
|
4568
4649
|
id: "builderio-content",
|
|
4569
4650
|
styles: e.injectedStyles,
|
|
4570
4651
|
nonce: e.nonce
|
|
4571
4652
|
}, null, 8, ["styles", "nonce"]);
|
|
4572
4653
|
}
|
|
4573
|
-
const
|
|
4654
|
+
const Vs = /* @__PURE__ */ b(As, [["render", xs]]), Ws = ({
|
|
4574
4655
|
content: e,
|
|
4575
4656
|
data: t,
|
|
4576
4657
|
locale: n
|
|
4577
4658
|
}) => {
|
|
4578
|
-
var
|
|
4579
|
-
const o = {}, r = ((
|
|
4580
|
-
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) => {
|
|
4581
4662
|
a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
|
|
4582
4663
|
}), {
|
|
4583
4664
|
...o,
|
|
@@ -4587,7 +4668,7 @@ const ki = /* @__PURE__ */ g(gi, [["render", yi]]), vi = ({
|
|
|
4587
4668
|
locale: n
|
|
4588
4669
|
} : {}
|
|
4589
4670
|
};
|
|
4590
|
-
},
|
|
4671
|
+
}, Ns = ({
|
|
4591
4672
|
content: e,
|
|
4592
4673
|
data: t
|
|
4593
4674
|
}) => e ? {
|
|
@@ -4597,21 +4678,20 @@ const ki = /* @__PURE__ */ g(gi, [["render", yi]]), vi = ({
|
|
|
4597
4678
|
...t
|
|
4598
4679
|
},
|
|
4599
4680
|
meta: e == null ? void 0 : e.meta
|
|
4600
|
-
} : void 0,
|
|
4681
|
+
} : void 0, Os = Ct, Fs = g({
|
|
4601
4682
|
name: "content-component",
|
|
4602
4683
|
components: {
|
|
4603
|
-
EnableEditor:
|
|
4604
|
-
InlinedScript:
|
|
4605
|
-
ContentStyles:
|
|
4606
|
-
Blocks:
|
|
4607
|
-
DynamicDiv:
|
|
4684
|
+
EnableEditor: Bs,
|
|
4685
|
+
InlinedScript: yt,
|
|
4686
|
+
ContentStyles: Vs,
|
|
4687
|
+
Blocks: M,
|
|
4688
|
+
DynamicDiv: X
|
|
4608
4689
|
},
|
|
4609
4690
|
props: [
|
|
4610
4691
|
"apiKey",
|
|
4611
4692
|
"context",
|
|
4612
4693
|
"content",
|
|
4613
4694
|
"customComponents",
|
|
4614
|
-
"model",
|
|
4615
4695
|
"data",
|
|
4616
4696
|
"locale",
|
|
4617
4697
|
"canTrack",
|
|
@@ -4619,6 +4699,7 @@ const ki = /* @__PURE__ */ g(gi, [["render", yi]]), vi = ({
|
|
|
4619
4699
|
"blocksWrapper",
|
|
4620
4700
|
"blocksWrapperProps",
|
|
4621
4701
|
"nonce",
|
|
4702
|
+
"model",
|
|
4622
4703
|
"apiHost",
|
|
4623
4704
|
"enrich",
|
|
4624
4705
|
"showContent",
|
|
@@ -4630,34 +4711,34 @@ const ki = /* @__PURE__ */ g(gi, [["render", yi]]), vi = ({
|
|
|
4630
4711
|
"linkComponent"
|
|
4631
4712
|
],
|
|
4632
4713
|
data() {
|
|
4633
|
-
var e, t
|
|
4714
|
+
var e, t;
|
|
4634
4715
|
return {
|
|
4635
|
-
scriptStr:
|
|
4716
|
+
scriptStr: gs({
|
|
4636
4717
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4637
4718
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
4638
4719
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4639
4720
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
4640
4721
|
}),
|
|
4641
4722
|
registeredComponents: [
|
|
4642
|
-
...
|
|
4643
|
-
...
|
|
4723
|
+
...xe(),
|
|
4724
|
+
...this.customComponents || []
|
|
4644
4725
|
].reduce(
|
|
4645
|
-
(
|
|
4646
|
-
...
|
|
4647
|
-
[
|
|
4648
|
-
component:
|
|
4649
|
-
...
|
|
4726
|
+
(n, { component: o, ...r }) => ({
|
|
4727
|
+
...n,
|
|
4728
|
+
[r.name]: {
|
|
4729
|
+
component: Os(o),
|
|
4730
|
+
...te(r)
|
|
4650
4731
|
}
|
|
4651
4732
|
}),
|
|
4652
4733
|
{}
|
|
4653
4734
|
),
|
|
4654
4735
|
builderContextSignal: {
|
|
4655
|
-
content:
|
|
4736
|
+
content: Ns({
|
|
4656
4737
|
content: this.content,
|
|
4657
4738
|
data: this.data
|
|
4658
4739
|
}),
|
|
4659
4740
|
localState: void 0,
|
|
4660
|
-
rootState:
|
|
4741
|
+
rootState: Ws({
|
|
4661
4742
|
content: this.content,
|
|
4662
4743
|
data: this.data,
|
|
4663
4744
|
locale: this.locale
|
|
@@ -4668,27 +4749,28 @@ const ki = /* @__PURE__ */ g(gi, [["render", yi]]), vi = ({
|
|
|
4668
4749
|
apiKey: this.apiKey,
|
|
4669
4750
|
apiVersion: this.apiVersion,
|
|
4670
4751
|
componentInfos: [
|
|
4671
|
-
...
|
|
4672
|
-
...
|
|
4752
|
+
...xe(),
|
|
4753
|
+
...this.customComponents || []
|
|
4673
4754
|
].reduce(
|
|
4674
|
-
(
|
|
4675
|
-
...
|
|
4676
|
-
[
|
|
4755
|
+
(n, { component: o, ...r }) => ({
|
|
4756
|
+
...n,
|
|
4757
|
+
[r.name]: te(r)
|
|
4677
4758
|
}),
|
|
4678
4759
|
{}
|
|
4679
4760
|
),
|
|
4680
4761
|
inheritedStyles: {},
|
|
4681
4762
|
BlocksWrapper: this.blocksWrapper || "div",
|
|
4682
4763
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
4683
|
-
nonce: this.nonce || ""
|
|
4764
|
+
nonce: this.nonce || "",
|
|
4765
|
+
model: this.model || ""
|
|
4684
4766
|
},
|
|
4685
|
-
TARGET:
|
|
4767
|
+
TARGET: R
|
|
4686
4768
|
};
|
|
4687
4769
|
},
|
|
4688
4770
|
provide() {
|
|
4689
4771
|
const e = this;
|
|
4690
4772
|
return {
|
|
4691
|
-
[
|
|
4773
|
+
[Oe.key]: {
|
|
4692
4774
|
registeredComponents: e.registeredComponents
|
|
4693
4775
|
}
|
|
4694
4776
|
};
|
|
@@ -4699,7 +4781,7 @@ const ki = /* @__PURE__ */ g(gi, [["render", yi]]), vi = ({
|
|
|
4699
4781
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4700
4782
|
);
|
|
4701
4783
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
4702
|
-
e &&
|
|
4784
|
+
e && Y({
|
|
4703
4785
|
code: e,
|
|
4704
4786
|
context: this.context || {},
|
|
4705
4787
|
localState: void 0,
|
|
@@ -4716,8 +4798,8 @@ const ki = /* @__PURE__ */ g(gi, [["render", yi]]), vi = ({
|
|
|
4716
4798
|
}
|
|
4717
4799
|
}
|
|
4718
4800
|
});
|
|
4719
|
-
function
|
|
4720
|
-
const
|
|
4801
|
+
function Ds(e, t, n, o, r, s) {
|
|
4802
|
+
const i = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
4721
4803
|
return c(), y(u, C({
|
|
4722
4804
|
apiHost: e.apiHost,
|
|
4723
4805
|
nonce: e.nonce,
|
|
@@ -4739,7 +4821,7 @@ function Ti(e, t, n, o, r, i) {
|
|
|
4739
4821
|
default: N(() => {
|
|
4740
4822
|
var m, h, d, f, S, w, L;
|
|
4741
4823
|
return [
|
|
4742
|
-
e.isSsrAbTest ? (c(), y(
|
|
4824
|
+
e.isSsrAbTest ? (c(), y(i, {
|
|
4743
4825
|
key: 0,
|
|
4744
4826
|
id: "builderio-variant-visibility",
|
|
4745
4827
|
scriptStr: e.scriptStr,
|
|
@@ -4753,7 +4835,7 @@ function Ti(e, t, n, o, r, i) {
|
|
|
4753
4835
|
cssCode: (d = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : d.cssCode,
|
|
4754
4836
|
customFonts: (S = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : S.customFonts
|
|
4755
4837
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
|
|
4756
|
-
|
|
4838
|
+
P(a, {
|
|
4757
4839
|
blocks: (L = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : L.blocks,
|
|
4758
4840
|
context: e.builderContextSignal,
|
|
4759
4841
|
registeredComponents: e.registeredComponents,
|
|
@@ -4764,12 +4846,12 @@ function Ti(e, t, n, o, r, i) {
|
|
|
4764
4846
|
_: 1
|
|
4765
4847
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
4766
4848
|
}
|
|
4767
|
-
const
|
|
4849
|
+
const Ls = /* @__PURE__ */ b(Fs, [["render", Ds]]), Us = g({
|
|
4768
4850
|
name: "content-variants",
|
|
4769
4851
|
components: {
|
|
4770
|
-
InlinedScript:
|
|
4771
|
-
InlinedStyles:
|
|
4772
|
-
ContentComponent:
|
|
4852
|
+
InlinedScript: yt,
|
|
4853
|
+
InlinedStyles: Se,
|
|
4854
|
+
ContentComponent: Ls
|
|
4773
4855
|
},
|
|
4774
4856
|
props: [
|
|
4775
4857
|
"canTrack",
|
|
@@ -4794,12 +4876,12 @@ const Ii = /* @__PURE__ */ g(wi, [["render", Ti]]), $i = b({
|
|
|
4794
4876
|
],
|
|
4795
4877
|
data() {
|
|
4796
4878
|
return {
|
|
4797
|
-
shouldRenderVariants:
|
|
4798
|
-
canTrack:
|
|
4879
|
+
shouldRenderVariants: ps({
|
|
4880
|
+
canTrack: J(this.canTrack),
|
|
4799
4881
|
content: this.content
|
|
4800
4882
|
}),
|
|
4801
|
-
TARGET:
|
|
4802
|
-
getInitVariantsFnsScriptString:
|
|
4883
|
+
TARGET: R,
|
|
4884
|
+
getInitVariantsFnsScriptString: hs,
|
|
4803
4885
|
getVariants: Z
|
|
4804
4886
|
};
|
|
4805
4887
|
},
|
|
@@ -4808,7 +4890,7 @@ const Ii = /* @__PURE__ */ g(wi, [["render", Ti]]), $i = b({
|
|
|
4808
4890
|
computed: {
|
|
4809
4891
|
updateCookieAndStylesScriptStr() {
|
|
4810
4892
|
var e;
|
|
4811
|
-
return
|
|
4893
|
+
return fs(
|
|
4812
4894
|
Z(this.content).map((t) => ({
|
|
4813
4895
|
id: t.testVariationId,
|
|
4814
4896
|
testRatio: t.testRatio
|
|
@@ -4824,29 +4906,29 @@ const Ii = /* @__PURE__ */ g(wi, [["render", Ti]]), $i = b({
|
|
|
4824
4906
|
return this.shouldRenderVariants ? {
|
|
4825
4907
|
...this.content,
|
|
4826
4908
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
4827
|
-
} :
|
|
4909
|
+
} : Pn({
|
|
4828
4910
|
item: this.content,
|
|
4829
|
-
canTrack:
|
|
4911
|
+
canTrack: J(this.canTrack)
|
|
4830
4912
|
});
|
|
4831
4913
|
}
|
|
4832
4914
|
}
|
|
4833
4915
|
});
|
|
4834
|
-
function
|
|
4835
|
-
const
|
|
4916
|
+
function Ms(e, t, n, o, r, s) {
|
|
4917
|
+
const i = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
4836
4918
|
return c(), p(T, null, [
|
|
4837
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(
|
|
4919
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(i, {
|
|
4838
4920
|
key: 0,
|
|
4839
4921
|
id: "builderio-init-variants-fns",
|
|
4840
4922
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
4841
4923
|
nonce: e.nonce || ""
|
|
4842
4924
|
}, null, 8, ["scriptStr", "nonce"])) : v("", !0),
|
|
4843
4925
|
e.shouldRenderVariants ? (c(), p(T, { key: 1 }, [
|
|
4844
|
-
|
|
4926
|
+
P(l, {
|
|
4845
4927
|
id: "builderio-variants",
|
|
4846
4928
|
styles: e.hideVariantsStyleString,
|
|
4847
4929
|
nonce: e.nonce || ""
|
|
4848
4930
|
}, null, 8, ["styles", "nonce"]),
|
|
4849
|
-
|
|
4931
|
+
P(i, {
|
|
4850
4932
|
id: "builderio-variants-visibility",
|
|
4851
4933
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
4852
4934
|
nonce: e.nonce || ""
|
|
@@ -4876,7 +4958,7 @@ function Ri(e, t, n, o, r, i) {
|
|
|
4876
4958
|
trustedHosts: e.trustedHosts
|
|
4877
4959
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4878
4960
|
], 64)) : v("", !0),
|
|
4879
|
-
|
|
4961
|
+
P(a, C({
|
|
4880
4962
|
apiHost: e.apiHost,
|
|
4881
4963
|
nonce: e.nonce,
|
|
4882
4964
|
isNestedRender: e.isNestedRender,
|
|
@@ -4903,13 +4985,13 @@ function Ri(e, t, n, o, r, i) {
|
|
|
4903
4985
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4904
4986
|
], 64);
|
|
4905
4987
|
}
|
|
4906
|
-
const
|
|
4988
|
+
const Hs = /* @__PURE__ */ b(Us, [["render", Ms]]), js = async ({
|
|
4907
4989
|
builderContextValue: e,
|
|
4908
4990
|
symbol: t
|
|
4909
4991
|
}) => {
|
|
4910
4992
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4911
4993
|
(e != null && e.apiKey))
|
|
4912
|
-
return
|
|
4994
|
+
return ye({
|
|
4913
4995
|
model: t.model,
|
|
4914
4996
|
apiKey: e.apiKey,
|
|
4915
4997
|
apiVersion: e.apiVersion,
|
|
@@ -4921,9 +5003,9 @@ const Ei = /* @__PURE__ */ g($i, [["render", Ri]]), Pi = async ({
|
|
|
4921
5003
|
}).catch((n) => {
|
|
4922
5004
|
B.error("Could not fetch symbol content: ", n);
|
|
4923
5005
|
});
|
|
4924
|
-
},
|
|
5006
|
+
}, Ks = g({
|
|
4925
5007
|
name: "builder-symbol",
|
|
4926
|
-
components: { ContentVariants:
|
|
5008
|
+
components: { ContentVariants: Hs, DynamicDiv: X },
|
|
4927
5009
|
props: [
|
|
4928
5010
|
"symbol",
|
|
4929
5011
|
"attributes",
|
|
@@ -4972,7 +5054,7 @@ const Ei = /* @__PURE__ */ g($i, [["render", Ri]]), Pi = async ({
|
|
|
4972
5054
|
},
|
|
4973
5055
|
methods: {
|
|
4974
5056
|
setContent() {
|
|
4975
|
-
this.contentToUse ||
|
|
5057
|
+
this.contentToUse || js({
|
|
4976
5058
|
symbol: this.symbol,
|
|
4977
5059
|
builderContextValue: this.builderContext
|
|
4978
5060
|
}).then((e) => {
|
|
@@ -4981,11 +5063,11 @@ const Ei = /* @__PURE__ */ g($i, [["render", Ri]]), Pi = async ({
|
|
|
4981
5063
|
}
|
|
4982
5064
|
}
|
|
4983
5065
|
});
|
|
4984
|
-
function
|
|
5066
|
+
function qs(e, t, n, o, r, s) {
|
|
4985
5067
|
var l, a, u, m, h;
|
|
4986
|
-
const
|
|
4987
|
-
return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
4988
|
-
|
|
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, {
|
|
4989
5071
|
nonce: e.builderContext.nonce,
|
|
4990
5072
|
isNestedRender: !0,
|
|
4991
5073
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5009,44 +5091,44 @@ function xi(e, t, n, o, r, i) {
|
|
|
5009
5091
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5010
5092
|
], 16);
|
|
5011
5093
|
}
|
|
5012
|
-
const
|
|
5094
|
+
const zs = /* @__PURE__ */ b(Ks, [["render", qs]]);
|
|
5013
5095
|
export {
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5096
|
+
Mn as A,
|
|
5097
|
+
ve as B,
|
|
5098
|
+
vo as C,
|
|
5099
|
+
ye as D,
|
|
5100
|
+
Ys as E,
|
|
5101
|
+
wo as F,
|
|
5102
|
+
ni as G,
|
|
5103
|
+
Ao as I,
|
|
5104
|
+
Wo as S,
|
|
5105
|
+
R as T,
|
|
5106
|
+
ls as V,
|
|
5107
|
+
Se as _,
|
|
5108
|
+
ei as a,
|
|
5109
|
+
oi as b,
|
|
5028
5110
|
D as c,
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5111
|
+
ke as d,
|
|
5112
|
+
b as e,
|
|
5113
|
+
Y as f,
|
|
5114
|
+
go as g,
|
|
5115
|
+
ti as h,
|
|
5034
5116
|
_ as i,
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5117
|
+
ce as j,
|
|
5118
|
+
Pt as k,
|
|
5119
|
+
zs as l,
|
|
5120
|
+
lr as m,
|
|
5121
|
+
M as n,
|
|
5122
|
+
Hs as o,
|
|
5123
|
+
E as p,
|
|
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
|
|
5052
5134
|
};
|