@builder.io/sdk-react 3.0.3-0 → 3.0.5
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/blocks-exports.cjs +32 -169
- package/lib/browser/blocks-exports.mjs +778 -1199
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +16 -17
- package/lib/browser/server-entry-101d66b8.cjs +2 -0
- package/lib/browser/{server-entry-da1754bd.js → server-entry-785c0408.js} +237 -279
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-388f5e60.cjs → accordion-190c4426.cjs} +1 -1
- package/lib/edge/{accordion-50de133c.js → accordion-cd6e0363.js} +1 -1
- package/lib/edge/{blocks-a5193d52.cjs → blocks-766e8d45.cjs} +9 -9
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +12 -13
- package/lib/edge/{blocks-5e476ddc.js → blocks-fe2d7c1a.js} +2 -3
- package/lib/edge/{button-c6ec3aea.cjs → button-694fcd4f.cjs} +1 -1
- package/lib/edge/{button-4261ae64.js → button-6a27481c.js} +2 -2
- package/lib/edge/{columns-28e9fb0a.js → columns-90e6407e.js} +18 -18
- package/lib/edge/{columns-8c831c02.cjs → columns-b38bf0f7.cjs} +2 -2
- package/lib/edge/content-variants-4e385c19.cjs +134 -0
- package/lib/edge/{content-variants-36ca4fe5.js → content-variants-cbb89349.js} +124 -165
- package/lib/edge/dynamic-blocks-exports.cjs +1 -3
- package/lib/edge/dynamic-blocks-exports.mjs +2 -5
- package/lib/edge/form-16bbf874.js +166 -0
- package/lib/edge/form-547645eb.cjs +1 -0
- package/lib/edge/{get-class-prop-name-a86a3e60.cjs → get-class-prop-name-58770197.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-65d6824c.js → get-class-prop-name-8b719c6b.js} +1 -1
- package/lib/edge/{image-2a2b26d2.js → image-38917f45.js} +22 -24
- package/lib/edge/image-590e36ae.cjs +17 -0
- package/lib/edge/{img-7de3a3de.cjs → img-8859c851.cjs} +1 -1
- package/lib/edge/{img-61d29fb3.js → img-d3351743.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +17 -18
- package/lib/edge/{input-c8539054.js → input-24c601b4.js} +1 -1
- package/lib/edge/{input-bd5387a6.cjs → input-4fe0fc6d.cjs} +1 -1
- package/lib/edge/{select-6b5cda00.js → select-af05377b.js} +1 -1
- package/lib/edge/{select-73accaf4.cjs → select-c73bd418.cjs} +1 -1
- package/lib/edge/server-entry-3c7fa63a.cjs +2 -0
- package/lib/edge/{server-entry-838c1f06.js → server-entry-67bfc740.js} +280 -322
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-403c77da.js → slot-32a4df0c.js} +3 -3
- package/lib/edge/{slot-099112f1.cjs → slot-759c8dd9.cjs} +1 -1
- package/lib/edge/{symbol-97f456f4.js → symbol-50360a37.js} +2 -2
- package/lib/edge/{symbol-ffa6e6cd.cjs → symbol-8d63aa7d.cjs} +1 -1
- package/lib/edge/{tabs-a7c94ead.js → tabs-6535c934.js} +3 -3
- package/lib/edge/{tabs-ad55c6a7.cjs → tabs-fc6c1700.cjs} +1 -1
- package/lib/edge/video-4ecfd08b.cjs +1 -0
- package/lib/edge/{video-58c2cc8d.js → video-a3f10439.js} +0 -1
- package/lib/node/blocks-exports.cjs +32 -169
- package/lib/node/blocks-exports.mjs +896 -1317
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +16 -17
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/server-entry-95273908.cjs +2 -0
- package/lib/node/{server-entry-51bc0b1d.js → server-entry-ffc70868.js} +237 -279
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-575cf1f1.js → setIvm-2cea7252.js} +1 -1
- package/lib/node/{setIvm-d912cf4d.cjs → setIvm-4ce0db03.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-66df4856.js → should-force-browser-runtime-in-node-c0d50009.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-23225980.cjs → should-force-browser-runtime-in-node-d3e6df07.cjs} +1 -1
- package/package.json +2 -2
- package/types/blocks/form/form/form.d.ts +1 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/index-helpers/blocks-exports.d.ts +0 -1
- package/types/types/components.d.ts +2 -2
- package/types/types/input.d.ts +0 -1
- package/lib/browser/server-entry-c7bda8b5.cjs +0 -2
- package/lib/edge/content-variants-81713434.cjs +0 -134
- package/lib/edge/form-039fb5ff.js +0 -176
- package/lib/edge/form-e7a1dec9.cjs +0 -1
- package/lib/edge/image-4db81d72.cjs +0 -17
- package/lib/edge/personalization-container-3fda6014.cjs +0 -138
- package/lib/edge/personalization-container-c76e4fef.js +0 -379
- package/lib/edge/server-entry-ea2a8b0e.cjs +0 -2
- package/lib/edge/video-e20dcbbc.cjs +0 -1
- package/lib/node/server-entry-d7316893.cjs +0 -2
- package/types/blocks/index.d.ts +0 -4
- package/types/blocks/personalization-container/component-info.d.ts +0 -2
- package/types/blocks/personalization-container/helpers/index.d.ts +0 -15
- package/types/blocks/personalization-container/helpers/inlined-fns.d.ts +0 -8
- package/types/blocks/personalization-container/helpers.d.ts +0 -27
- package/types/blocks/personalization-container/index.d.ts +0 -1
- package/types/blocks/personalization-container/personalization-container.d.ts +0 -4
- package/types/blocks/personalization-container/personalization-container.types.d.ts +0 -14
- package/types/blocks/textarea/component-info.d.ts +0 -2
- package/types/blocks/textarea/index.d.ts +0 -1
- package/types/blocks/textarea/textarea.d.ts +0 -14
- package/types/functions/filter-with-custom-targeting.d.ts +0 -15
- package/types/helpers/user-attributes.d.ts +0 -17
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
|
|
2
|
+
import { jsx as s, Fragment as E, jsxs as B } from "react/jsx-runtime";
|
|
3
|
+
import { TARGET as $, isEditing as W, isBrowser as D, getUserAttributes as ze, checkIsDefined as q, logger as J, isPreviewing as ae, logFetch as Ie, registerInsertMenu as Ke, setupBrowserForEditing as Je, createRegisterComponentMessage as Ge, getDefaultCanTrack as z, _track as ue, fetchOneEntry as we, createEditorListener as Ye, serializeIncludingFunctions as me, handleABTestingSync as Qe } from "./server-entry-785c0408.js";
|
|
4
|
+
import * as Xe from "react";
|
|
5
|
+
import { createContext as Ee, useEffect as A, useState as R, useRef as O, useContext as fe, createElement as Re } from "react";
|
|
6
|
+
const Ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), et = (e) => typeof e == "string" && Ze.has(e.toLowerCase());
|
|
8
7
|
function re(e) {
|
|
9
|
-
return /* @__PURE__ */ s(
|
|
8
|
+
return /* @__PURE__ */ s(E, { children: et(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
10
9
|
}
|
|
11
|
-
const
|
|
12
|
-
switch (
|
|
10
|
+
const _ = () => {
|
|
11
|
+
switch ($) {
|
|
13
12
|
case "react":
|
|
14
13
|
case "reactNative":
|
|
15
14
|
case "rsc":
|
|
@@ -22,11 +21,11 @@ const H = () => {
|
|
|
22
21
|
return "class";
|
|
23
22
|
}
|
|
24
23
|
};
|
|
25
|
-
function
|
|
24
|
+
function tt(e) {
|
|
26
25
|
function t() {
|
|
27
26
|
return {
|
|
28
27
|
...e.attributes,
|
|
29
|
-
[
|
|
28
|
+
[_()]: `${e.link ? "" : "builder-button"} ${e.attributes[_()] || ""}`,
|
|
30
29
|
...e.link ? {
|
|
31
30
|
href: e.link,
|
|
32
31
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -46,7 +45,7 @@ function nt(e) {
|
|
|
46
45
|
}
|
|
47
46
|
);
|
|
48
47
|
}
|
|
49
|
-
const le =
|
|
48
|
+
const le = Ee({
|
|
50
49
|
content: null,
|
|
51
50
|
context: {},
|
|
52
51
|
localState: void 0,
|
|
@@ -61,10 +60,10 @@ const le = Re({
|
|
|
61
60
|
BlocksWrapperProps: {},
|
|
62
61
|
nonce: "",
|
|
63
62
|
model: ""
|
|
64
|
-
}),
|
|
63
|
+
}), Pe = Ee({ registeredComponents: {} }), Be = (e, t, n) => {
|
|
65
64
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
66
65
|
return i === void 0 || i === e ? n : i;
|
|
67
|
-
},
|
|
66
|
+
}, nt = ({
|
|
68
67
|
builder: e,
|
|
69
68
|
context: t,
|
|
70
69
|
event: n,
|
|
@@ -76,15 +75,15 @@ const le = Re({
|
|
|
76
75
|
builder: e,
|
|
77
76
|
context: t,
|
|
78
77
|
event: n
|
|
79
|
-
}),
|
|
78
|
+
}), it = () => ({
|
|
80
79
|
isEditing: W(),
|
|
81
|
-
isBrowser:
|
|
82
|
-
isServer: !
|
|
83
|
-
getUserAttributes: () =>
|
|
84
|
-
}),
|
|
80
|
+
isBrowser: D(),
|
|
81
|
+
isServer: !D(),
|
|
82
|
+
getUserAttributes: () => ze()
|
|
83
|
+
}), ot = (e, {
|
|
85
84
|
isExpression: t = !0
|
|
86
85
|
}) => /* 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;
|
|
87
|
-
function
|
|
86
|
+
function Ve({
|
|
88
87
|
rootState: e,
|
|
89
88
|
localState: t,
|
|
90
89
|
rootSetState: n
|
|
@@ -94,7 +93,7 @@ function Ae({
|
|
|
94
93
|
if (t && o in t)
|
|
95
94
|
return t[o];
|
|
96
95
|
const a = i[o];
|
|
97
|
-
return typeof a == "object" && a !== null ?
|
|
96
|
+
return typeof a == "object" && a !== null ? Ve({
|
|
98
97
|
rootState: a,
|
|
99
98
|
localState: void 0,
|
|
100
99
|
rootSetState: n ? (r) => {
|
|
@@ -109,7 +108,7 @@ function Ae({
|
|
|
109
108
|
}
|
|
110
109
|
});
|
|
111
110
|
}
|
|
112
|
-
const
|
|
111
|
+
const he = ({
|
|
113
112
|
code: e,
|
|
114
113
|
builder: t,
|
|
115
114
|
context: n,
|
|
@@ -118,37 +117,37 @@ const ge = ({
|
|
|
118
117
|
rootSetState: a,
|
|
119
118
|
rootState: r
|
|
120
119
|
}) => {
|
|
121
|
-
const l =
|
|
120
|
+
const l = nt({
|
|
122
121
|
builder: t,
|
|
123
122
|
context: n,
|
|
124
123
|
event: i,
|
|
125
|
-
state:
|
|
124
|
+
state: Ve({
|
|
126
125
|
rootState: r,
|
|
127
126
|
localState: o,
|
|
128
127
|
rootSetState: a
|
|
129
128
|
})
|
|
130
129
|
});
|
|
131
|
-
return new Function(...l.map(([
|
|
130
|
+
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
132
131
|
};
|
|
133
|
-
function
|
|
132
|
+
function at() {
|
|
134
133
|
var e;
|
|
135
|
-
return typeof process != "undefined" &&
|
|
134
|
+
return typeof process != "undefined" && q((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
136
135
|
}
|
|
137
|
-
const
|
|
136
|
+
const rt = ({
|
|
138
137
|
shouldLogWarning: e
|
|
139
138
|
}) => {
|
|
140
139
|
var o;
|
|
141
|
-
if (!
|
|
140
|
+
if (!at())
|
|
142
141
|
return !1;
|
|
143
142
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
144
|
-
return t && n && !i ? (e &&
|
|
145
|
-
},
|
|
143
|
+
return t && n && !i ? (e && J.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;
|
|
144
|
+
}, lt = (e) => (D() || rt({
|
|
146
145
|
shouldLogWarning: !0
|
|
147
|
-
}),
|
|
146
|
+
}), he(e)), st = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ct = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, dt = (e) => {
|
|
148
147
|
var t, n, i, o, a, r;
|
|
149
|
-
return ((i = (n = (t =
|
|
148
|
+
return ((i = (n = (t = st.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = ct.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
|
|
150
149
|
};
|
|
151
|
-
function
|
|
150
|
+
function L({
|
|
152
151
|
code: e,
|
|
153
152
|
context: t,
|
|
154
153
|
localState: n,
|
|
@@ -165,11 +164,11 @@ function U({
|
|
|
165
164
|
...i,
|
|
166
165
|
...n
|
|
167
166
|
}, l);
|
|
168
|
-
const
|
|
169
|
-
code:
|
|
167
|
+
const d = {
|
|
168
|
+
code: ot(e, {
|
|
170
169
|
isExpression: r
|
|
171
170
|
}),
|
|
172
|
-
builder:
|
|
171
|
+
builder: it(),
|
|
173
172
|
context: t,
|
|
174
173
|
event: a,
|
|
175
174
|
rootSetState: o,
|
|
@@ -177,28 +176,28 @@ function U({
|
|
|
177
176
|
localState: n
|
|
178
177
|
};
|
|
179
178
|
try {
|
|
180
|
-
return
|
|
179
|
+
return lt(d);
|
|
181
180
|
} catch (c) {
|
|
182
|
-
|
|
181
|
+
J.error("Failed code evaluation: " + c.message, {
|
|
183
182
|
code: e
|
|
184
183
|
});
|
|
185
184
|
return;
|
|
186
185
|
}
|
|
187
186
|
}
|
|
188
|
-
function
|
|
187
|
+
function ut(e, t) {
|
|
189
188
|
var n;
|
|
190
189
|
return {
|
|
191
190
|
...(n = e.component) == null ? void 0 : n.options,
|
|
192
191
|
...e.options,
|
|
193
|
-
...
|
|
192
|
+
...mt(e, t)
|
|
194
193
|
};
|
|
195
194
|
}
|
|
196
|
-
const
|
|
195
|
+
const mt = (e, t) => {
|
|
197
196
|
var n, i;
|
|
198
197
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
199
198
|
return {
|
|
200
199
|
...e.component.options,
|
|
201
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, a) =>
|
|
200
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, a) => L({
|
|
202
201
|
code: a,
|
|
203
202
|
context: t,
|
|
204
203
|
localState: t.localState,
|
|
@@ -207,13 +206,13 @@ const ft = (e, t) => {
|
|
|
207
206
|
}))
|
|
208
207
|
};
|
|
209
208
|
};
|
|
210
|
-
function
|
|
209
|
+
function ft(e, ...t) {
|
|
211
210
|
const n = Object.assign({}, e);
|
|
212
211
|
for (const i of t)
|
|
213
212
|
delete n[i];
|
|
214
213
|
return n;
|
|
215
214
|
}
|
|
216
|
-
function
|
|
215
|
+
function K(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
217
216
|
if (e == null || typeof e != "object") {
|
|
218
217
|
t(e, (a) => {
|
|
219
218
|
n !== null && i !== null && (n[i] = a);
|
|
@@ -221,59 +220,59 @@ function G(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
|
221
220
|
return;
|
|
222
221
|
}
|
|
223
222
|
o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((a, r) => {
|
|
224
|
-
t(a, (
|
|
225
|
-
e[r] =
|
|
226
|
-
}),
|
|
223
|
+
t(a, (d) => {
|
|
224
|
+
e[r] = d;
|
|
225
|
+
}), K(a, t, e, r, o);
|
|
227
226
|
}) : Object.entries(e).forEach(([a, r]) => {
|
|
228
|
-
t(r, (
|
|
229
|
-
e[a] =
|
|
230
|
-
}),
|
|
227
|
+
t(r, (d) => {
|
|
228
|
+
e[a] = d;
|
|
229
|
+
}), K(r, t, e, a, o);
|
|
231
230
|
}));
|
|
232
231
|
}
|
|
233
|
-
function
|
|
232
|
+
function Ae(e) {
|
|
234
233
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
235
234
|
}
|
|
236
|
-
function
|
|
235
|
+
function ht(e) {
|
|
237
236
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
238
237
|
return !1;
|
|
239
238
|
let t = !1;
|
|
240
|
-
return
|
|
241
|
-
if (
|
|
239
|
+
return K(e, (n) => {
|
|
240
|
+
if (Ae(n)) {
|
|
242
241
|
t = !0;
|
|
243
242
|
return;
|
|
244
243
|
}
|
|
245
244
|
}), t;
|
|
246
245
|
}
|
|
247
|
-
function
|
|
248
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
246
|
+
function gt(e, t) {
|
|
247
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (K(e, (n, i) => {
|
|
249
248
|
var o;
|
|
250
|
-
|
|
249
|
+
Ae(n) && i((o = n[t]) != null ? o : void 0);
|
|
251
250
|
}), e);
|
|
252
251
|
}
|
|
253
|
-
function
|
|
252
|
+
function bt(e, t) {
|
|
254
253
|
var n, i;
|
|
255
|
-
return (n = e.component) != null && n.options &&
|
|
254
|
+
return (n = e.component) != null && n.options && ht((i = e.component) == null ? void 0 : i.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 = gt(e.component.options, t != null ? t : "Default")), e;
|
|
256
255
|
}
|
|
257
|
-
const se = (e) => JSON.parse(JSON.stringify(e)),
|
|
256
|
+
const se = (e) => JSON.parse(JSON.stringify(e)), Ne = (e, t, n) => {
|
|
258
257
|
if (Object(e) !== e)
|
|
259
258
|
return e;
|
|
260
259
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
261
260
|
return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
262
261
|
};
|
|
263
|
-
function
|
|
262
|
+
function ie(e) {
|
|
264
263
|
if (e === null || typeof e != "object")
|
|
265
264
|
return e;
|
|
266
265
|
if (Array.isArray(e))
|
|
267
|
-
return e.map((n) =>
|
|
266
|
+
return e.map((n) => ie(n));
|
|
268
267
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
269
268
|
return e;
|
|
270
269
|
const t = {};
|
|
271
270
|
for (const n in e)
|
|
272
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
271
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ie(e[n]));
|
|
273
272
|
return t;
|
|
274
273
|
}
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
274
|
+
const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), yt = (e) => {
|
|
275
|
+
if (pt) {
|
|
277
276
|
const t = se(e);
|
|
278
277
|
return {
|
|
279
278
|
...t,
|
|
@@ -285,7 +284,7 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), vt = (e) =
|
|
|
285
284
|
}
|
|
286
285
|
};
|
|
287
286
|
} else {
|
|
288
|
-
const t =
|
|
287
|
+
const t = ie(ft(e, "children", "meta"));
|
|
289
288
|
return {
|
|
290
289
|
...t,
|
|
291
290
|
properties: {
|
|
@@ -307,27 +306,27 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), vt = (e) =
|
|
|
307
306
|
}) => {
|
|
308
307
|
if (!e.bindings)
|
|
309
308
|
return e;
|
|
310
|
-
const a =
|
|
309
|
+
const a = yt(e);
|
|
311
310
|
for (const r in e.bindings) {
|
|
312
|
-
const l = e.bindings[r],
|
|
311
|
+
const l = e.bindings[r], d = L({
|
|
313
312
|
code: l,
|
|
314
313
|
localState: n,
|
|
315
314
|
rootState: i,
|
|
316
315
|
rootSetState: o,
|
|
317
316
|
context: t
|
|
318
317
|
});
|
|
319
|
-
|
|
318
|
+
Ne(a, r, d);
|
|
320
319
|
}
|
|
321
320
|
return a;
|
|
322
321
|
};
|
|
323
|
-
function
|
|
322
|
+
function vt({
|
|
324
323
|
block: e,
|
|
325
324
|
context: t,
|
|
326
325
|
localState: n,
|
|
327
326
|
rootState: i,
|
|
328
327
|
rootSetState: o
|
|
329
328
|
}) {
|
|
330
|
-
let a =
|
|
329
|
+
let a = bt(e, i.locale);
|
|
331
330
|
return a = a, xt({
|
|
332
331
|
block: a,
|
|
333
332
|
localState: n,
|
|
@@ -336,20 +335,20 @@ function St({
|
|
|
336
335
|
context: t
|
|
337
336
|
});
|
|
338
337
|
}
|
|
339
|
-
const
|
|
340
|
-
function
|
|
338
|
+
const G = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
339
|
+
function St(e, t, n = {}) {
|
|
341
340
|
let i, o, a, r = null, l = 0;
|
|
342
|
-
const
|
|
341
|
+
const d = function() {
|
|
343
342
|
l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
344
343
|
};
|
|
345
344
|
return function() {
|
|
346
345
|
const c = Date.now();
|
|
347
346
|
!l && n.leading === !1 && (l = c);
|
|
348
347
|
const h = t - (c - l);
|
|
349
|
-
return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(
|
|
348
|
+
return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), a;
|
|
350
349
|
};
|
|
351
350
|
}
|
|
352
|
-
function
|
|
351
|
+
function U(e, ...t) {
|
|
353
352
|
const n = Object(e);
|
|
354
353
|
for (let i = 1; i < arguments.length; i++) {
|
|
355
354
|
const o = arguments[i];
|
|
@@ -359,42 +358,42 @@ function _(e, ...t) {
|
|
|
359
358
|
}
|
|
360
359
|
return n;
|
|
361
360
|
}
|
|
362
|
-
function
|
|
361
|
+
function kt(e) {
|
|
363
362
|
for (const t of e)
|
|
364
363
|
switch (t.trigger) {
|
|
365
364
|
case "pageLoad":
|
|
366
|
-
|
|
365
|
+
$e(t);
|
|
367
366
|
break;
|
|
368
367
|
case "scrollInView":
|
|
369
368
|
Tt(t);
|
|
370
369
|
break;
|
|
371
370
|
}
|
|
372
371
|
}
|
|
373
|
-
function
|
|
372
|
+
function We(e) {
|
|
374
373
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
375
374
|
}
|
|
376
|
-
function
|
|
377
|
-
const n =
|
|
375
|
+
function Fe(e, t) {
|
|
376
|
+
const n = Ct(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
378
377
|
for (const l of r)
|
|
379
|
-
for (const
|
|
380
|
-
|
|
378
|
+
for (const d of n)
|
|
379
|
+
d in l || (l[d] = i[d]);
|
|
381
380
|
}
|
|
382
|
-
function
|
|
381
|
+
function Ct(e) {
|
|
383
382
|
const t = [];
|
|
384
383
|
for (const n of e.steps)
|
|
385
384
|
for (const i in n.styles)
|
|
386
385
|
t.indexOf(i) === -1 && t.push(i);
|
|
387
386
|
return t;
|
|
388
387
|
}
|
|
389
|
-
function
|
|
388
|
+
function $e(e) {
|
|
390
389
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
391
390
|
if (!t.length) {
|
|
392
|
-
|
|
391
|
+
We(e.elementId || e.id || "");
|
|
393
392
|
return;
|
|
394
393
|
}
|
|
395
394
|
Array.from(t).forEach((n) => {
|
|
396
|
-
|
|
397
|
-
n.style.transition = `all ${e.duration}s ${
|
|
395
|
+
Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
|
|
396
|
+
n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
|
|
398
397
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
399
398
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
400
399
|
});
|
|
@@ -403,32 +402,32 @@ function Fe(e) {
|
|
|
403
402
|
function Tt(e) {
|
|
404
403
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
405
404
|
if (!t.length) {
|
|
406
|
-
|
|
405
|
+
We(e.elementId || e.id || "");
|
|
407
406
|
return;
|
|
408
407
|
}
|
|
409
408
|
Array.from(t).forEach((n) => {
|
|
410
|
-
|
|
409
|
+
Fe(e, n);
|
|
411
410
|
let i = !1, o = !1;
|
|
412
411
|
function a() {
|
|
413
412
|
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
414
|
-
|
|
413
|
+
U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
415
414
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
416
415
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
417
|
-
})) : e.repeat && i && !o && !l(n) && (i = !1,
|
|
416
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, U(n.style, e.steps[0].styles));
|
|
418
417
|
}
|
|
419
|
-
const r =
|
|
418
|
+
const r = St(a, 200, {
|
|
420
419
|
leading: !1
|
|
421
420
|
});
|
|
422
421
|
function l(h) {
|
|
423
|
-
const
|
|
424
|
-
return
|
|
422
|
+
const m = h.getBoundingClientRect(), u = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * u;
|
|
423
|
+
return m.bottom > g && m.top < u - g;
|
|
425
424
|
}
|
|
426
|
-
const
|
|
425
|
+
const d = e.steps[0].styles;
|
|
427
426
|
function c() {
|
|
428
|
-
|
|
427
|
+
U(n.style, d);
|
|
429
428
|
}
|
|
430
429
|
c(), setTimeout(() => {
|
|
431
|
-
n.style.transition = `all ${e.duration}s ${
|
|
430
|
+
n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
432
431
|
}), document.addEventListener("scroll", r, {
|
|
433
432
|
capture: !0,
|
|
434
433
|
passive: !0
|
|
@@ -437,9 +436,9 @@ function Tt(e) {
|
|
|
437
436
|
}
|
|
438
437
|
const Oe = (e) => Object.entries(e).map(([n, i]) => {
|
|
439
438
|
if (typeof i == "string")
|
|
440
|
-
return `${
|
|
441
|
-
}).filter(
|
|
442
|
-
`),
|
|
439
|
+
return `${G(n)}: ${i};`;
|
|
440
|
+
}).filter(q), It = (e) => Oe(e).join(`
|
|
441
|
+
`), M = ({
|
|
443
442
|
mediaQuery: e,
|
|
444
443
|
className: t,
|
|
445
444
|
styles: n
|
|
@@ -451,21 +450,21 @@ const Oe = (e) => Object.entries(e).map(([n, i]) => {
|
|
|
451
450
|
${i}
|
|
452
451
|
}` : i;
|
|
453
452
|
};
|
|
454
|
-
function
|
|
453
|
+
function wt({
|
|
455
454
|
style: e
|
|
456
455
|
}) {
|
|
457
456
|
return e;
|
|
458
457
|
}
|
|
459
|
-
const
|
|
458
|
+
const Et = ({
|
|
460
459
|
block: e,
|
|
461
460
|
context: t
|
|
462
|
-
}) =>
|
|
461
|
+
}) => De(wt({
|
|
463
462
|
style: e.style || {},
|
|
464
463
|
context: t,
|
|
465
464
|
block: e
|
|
466
465
|
}));
|
|
467
|
-
function
|
|
468
|
-
switch (
|
|
466
|
+
function De(e) {
|
|
467
|
+
switch ($) {
|
|
469
468
|
case "svelte":
|
|
470
469
|
case "vue":
|
|
471
470
|
case "solid":
|
|
@@ -478,7 +477,7 @@ function Le(e) {
|
|
|
478
477
|
return e;
|
|
479
478
|
}
|
|
480
479
|
}
|
|
481
|
-
const
|
|
480
|
+
const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Rt = ({
|
|
482
481
|
block: e,
|
|
483
482
|
registeredComponents: t,
|
|
484
483
|
model: n
|
|
@@ -488,14 +487,14 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
488
487
|
if (!i)
|
|
489
488
|
return null;
|
|
490
489
|
const o = t[i];
|
|
491
|
-
if (!o ||
|
|
490
|
+
if (!o || Le(o, n)) {
|
|
492
491
|
console.warn(`
|
|
493
492
|
Could not find a registered component named "${i}".
|
|
494
493
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
495
494
|
return;
|
|
496
495
|
} else
|
|
497
496
|
return o;
|
|
498
|
-
},
|
|
497
|
+
}, Pt = ({
|
|
499
498
|
block: e,
|
|
500
499
|
context: t
|
|
501
500
|
}) => {
|
|
@@ -505,7 +504,7 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
505
504
|
} = e;
|
|
506
505
|
if (!(n != null && n.collection))
|
|
507
506
|
return;
|
|
508
|
-
const o =
|
|
507
|
+
const o = L({
|
|
509
508
|
code: n.collection,
|
|
510
509
|
localState: t.localState,
|
|
511
510
|
rootState: t.rootState,
|
|
@@ -515,14 +514,14 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
515
514
|
if (!Array.isArray(o))
|
|
516
515
|
return;
|
|
517
516
|
const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
|
|
518
|
-
return o.map((
|
|
517
|
+
return o.map((d, c) => ({
|
|
519
518
|
context: {
|
|
520
519
|
...t,
|
|
521
520
|
localState: {
|
|
522
521
|
...t.localState,
|
|
523
522
|
$index: c,
|
|
524
|
-
$item:
|
|
525
|
-
[r]:
|
|
523
|
+
$item: d,
|
|
524
|
+
[r]: d,
|
|
526
525
|
[`$${r}Index`]: c
|
|
527
526
|
}
|
|
528
527
|
},
|
|
@@ -533,22 +532,22 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
533
532
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
534
533
|
builderLinkComponent: t
|
|
535
534
|
} : {};
|
|
536
|
-
},
|
|
535
|
+
}, Vt = (e, t, n) => {
|
|
537
536
|
var i;
|
|
538
537
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
539
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !
|
|
538
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !Le(r, n)))
|
|
540
539
|
} : {};
|
|
541
|
-
},
|
|
540
|
+
}, At = (e, t) => {
|
|
542
541
|
var n;
|
|
543
542
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
544
543
|
builderBlock: t
|
|
545
544
|
} : {};
|
|
546
|
-
},
|
|
545
|
+
}, Nt = (e, t) => {
|
|
547
546
|
var n;
|
|
548
547
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
549
548
|
builderContext: t
|
|
550
549
|
} : {};
|
|
551
|
-
},
|
|
550
|
+
}, Ue = {
|
|
552
551
|
small: {
|
|
553
552
|
min: 320,
|
|
554
553
|
default: 321,
|
|
@@ -564,11 +563,11 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
564
563
|
default: 991,
|
|
565
564
|
max: 1200
|
|
566
565
|
}
|
|
567
|
-
},
|
|
566
|
+
}, ge = (e, t = Ue) => `@media (max-width: ${t[e].max}px)`, _e = ({
|
|
568
567
|
small: e,
|
|
569
568
|
medium: t
|
|
570
569
|
}) => {
|
|
571
|
-
const n = se(
|
|
570
|
+
const n = se(Ue);
|
|
572
571
|
if (!e || !t)
|
|
573
572
|
return n;
|
|
574
573
|
const i = Math.floor(e / 2);
|
|
@@ -591,7 +590,7 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
591
590
|
default: a + 1
|
|
592
591
|
}, n;
|
|
593
592
|
};
|
|
594
|
-
function
|
|
593
|
+
function Y(e) {
|
|
595
594
|
return /* @__PURE__ */ s(
|
|
596
595
|
"style",
|
|
597
596
|
{
|
|
@@ -601,59 +600,59 @@ function M(e) {
|
|
|
601
600
|
}
|
|
602
601
|
);
|
|
603
602
|
}
|
|
604
|
-
function
|
|
603
|
+
function Wt(e) {
|
|
605
604
|
function t() {
|
|
606
605
|
const i = e.block;
|
|
607
|
-
return
|
|
606
|
+
return q(i.hide) ? !i.hide : q(i.show) ? i.show : !0;
|
|
608
607
|
}
|
|
609
608
|
function n() {
|
|
610
|
-
var
|
|
611
|
-
const i = e.block, o = i.responsiveStyles, a = e.context.content, r =
|
|
612
|
-
((
|
|
613
|
-
), l = o == null ? void 0 : o.large,
|
|
609
|
+
var y, b, p;
|
|
610
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = _e(
|
|
611
|
+
((y = a == null ? void 0 : a.meta) == null ? void 0 : y.breakpoints) || {}
|
|
612
|
+
), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
614
613
|
if (!h)
|
|
615
614
|
return "";
|
|
616
|
-
const
|
|
615
|
+
const m = l ? M({
|
|
617
616
|
className: h,
|
|
618
617
|
styles: l
|
|
619
|
-
}) : "",
|
|
618
|
+
}) : "", u = d ? M({
|
|
620
619
|
className: h,
|
|
621
|
-
styles:
|
|
622
|
-
mediaQuery:
|
|
620
|
+
styles: d,
|
|
621
|
+
mediaQuery: ge(
|
|
623
622
|
"medium",
|
|
624
623
|
r
|
|
625
624
|
)
|
|
626
|
-
}) : "",
|
|
625
|
+
}) : "", k = c ? M({
|
|
627
626
|
className: h,
|
|
628
627
|
styles: c,
|
|
629
|
-
mediaQuery:
|
|
628
|
+
mediaQuery: ge(
|
|
630
629
|
"small",
|
|
631
630
|
r
|
|
632
631
|
)
|
|
633
|
-
}) : "",
|
|
634
|
-
let
|
|
635
|
-
if (
|
|
636
|
-
const
|
|
637
|
-
|
|
632
|
+
}) : "", g = i.animations && i.animations.find((C) => C.trigger === "hover");
|
|
633
|
+
let v = "";
|
|
634
|
+
if (g) {
|
|
635
|
+
const C = ((p = (b = g.steps) == null ? void 0 : b[1]) == null ? void 0 : p.styles) || {};
|
|
636
|
+
v = M({
|
|
638
637
|
className: `${h}:hover`,
|
|
639
638
|
styles: {
|
|
640
|
-
...
|
|
641
|
-
transition: `all ${
|
|
642
|
-
|
|
639
|
+
...C,
|
|
640
|
+
transition: `all ${g.duration}s ${G(
|
|
641
|
+
g.easing
|
|
643
642
|
)}`,
|
|
644
|
-
transitionDelay:
|
|
643
|
+
transitionDelay: g.delay ? `${g.delay}s` : "0s"
|
|
645
644
|
}
|
|
646
645
|
}) || "";
|
|
647
646
|
}
|
|
648
647
|
return [
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
648
|
+
m,
|
|
649
|
+
u,
|
|
650
|
+
k,
|
|
651
|
+
v
|
|
653
652
|
].join(" ");
|
|
654
653
|
}
|
|
655
|
-
return /* @__PURE__ */ s(
|
|
656
|
-
|
|
654
|
+
return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
655
|
+
Y,
|
|
657
656
|
{
|
|
658
657
|
id: "builderio-block",
|
|
659
658
|
styles: n(),
|
|
@@ -661,10 +660,10 @@ function $t(e) {
|
|
|
661
660
|
}
|
|
662
661
|
) }) : null });
|
|
663
662
|
}
|
|
664
|
-
function
|
|
663
|
+
function Ft(e) {
|
|
665
664
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
666
665
|
}
|
|
667
|
-
const
|
|
666
|
+
const $t = (e) => `on${Ft(e)}`, Ot = (e, t) => (n) => L({
|
|
668
667
|
code: e,
|
|
669
668
|
context: t.context,
|
|
670
669
|
localState: t.localState,
|
|
@@ -680,9 +679,9 @@ function He(e) {
|
|
|
680
679
|
if (!n.hasOwnProperty(o))
|
|
681
680
|
continue;
|
|
682
681
|
const a = n[o];
|
|
683
|
-
let r =
|
|
682
|
+
let r = $t(o);
|
|
684
683
|
if (e.stripPrefix)
|
|
685
|
-
switch (
|
|
684
|
+
switch ($) {
|
|
686
685
|
case "vue":
|
|
687
686
|
r = r.replace("v-on:", "");
|
|
688
687
|
break;
|
|
@@ -694,12 +693,12 @@ function He(e) {
|
|
|
694
693
|
}
|
|
695
694
|
return t;
|
|
696
695
|
}
|
|
697
|
-
function
|
|
696
|
+
function Dt({
|
|
698
697
|
properties: e
|
|
699
698
|
}) {
|
|
700
699
|
return e;
|
|
701
700
|
}
|
|
702
|
-
const
|
|
701
|
+
const Lt = (e) => ({
|
|
703
702
|
href: e.href
|
|
704
703
|
});
|
|
705
704
|
function ce({
|
|
@@ -708,22 +707,22 @@ function ce({
|
|
|
708
707
|
}) {
|
|
709
708
|
var i;
|
|
710
709
|
const n = {
|
|
711
|
-
...
|
|
710
|
+
...Lt(e),
|
|
712
711
|
...e.properties,
|
|
713
712
|
"builder-id": e.id,
|
|
714
|
-
style:
|
|
713
|
+
style: Et({
|
|
715
714
|
block: e,
|
|
716
715
|
context: t
|
|
717
716
|
}),
|
|
718
|
-
[
|
|
717
|
+
[_()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
719
718
|
};
|
|
720
|
-
return
|
|
719
|
+
return Dt({
|
|
721
720
|
properties: n,
|
|
722
721
|
context: t,
|
|
723
722
|
block: e
|
|
724
723
|
});
|
|
725
724
|
}
|
|
726
|
-
function
|
|
725
|
+
function Ut(e) {
|
|
727
726
|
return /* @__PURE__ */ s(
|
|
728
727
|
re,
|
|
729
728
|
{
|
|
@@ -744,9 +743,9 @@ function _t(e) {
|
|
|
744
743
|
}
|
|
745
744
|
);
|
|
746
745
|
}
|
|
747
|
-
function
|
|
746
|
+
function _t(e) {
|
|
748
747
|
return A(() => {
|
|
749
|
-
}, []), /* @__PURE__ */ s(
|
|
748
|
+
}, []), /* @__PURE__ */ s(E, { children: e.children });
|
|
750
749
|
}
|
|
751
750
|
function Ht(e) {
|
|
752
751
|
function t() {
|
|
@@ -764,8 +763,8 @@ function Ht(e) {
|
|
|
764
763
|
})
|
|
765
764
|
} : {};
|
|
766
765
|
}
|
|
767
|
-
return /* @__PURE__ */ s(
|
|
768
|
-
|
|
766
|
+
return /* @__PURE__ */ s(E, { children: e.Wrapper.load ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
767
|
+
_t,
|
|
769
768
|
{
|
|
770
769
|
load: e.Wrapper.load,
|
|
771
770
|
fallback: e.Wrapper.fallback,
|
|
@@ -805,12 +804,12 @@ const Mt = ({
|
|
|
805
804
|
includeBlockProps: o
|
|
806
805
|
} : l;
|
|
807
806
|
};
|
|
808
|
-
function
|
|
807
|
+
function be(e) {
|
|
809
808
|
var i;
|
|
810
809
|
const [t, n] = R(
|
|
811
810
|
() => e.isInteractive ? Ht : e.componentRef
|
|
812
811
|
);
|
|
813
|
-
return /* @__PURE__ */ s(
|
|
812
|
+
return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
814
813
|
t,
|
|
815
814
|
{
|
|
816
815
|
...Mt({
|
|
@@ -824,7 +823,7 @@ function pe(e) {
|
|
|
824
823
|
contextValue: e.context
|
|
825
824
|
}),
|
|
826
825
|
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
|
|
827
|
-
|
|
826
|
+
Q,
|
|
828
827
|
{
|
|
829
828
|
block: o,
|
|
830
829
|
context: e.context,
|
|
@@ -836,10 +835,10 @@ function pe(e) {
|
|
|
836
835
|
}
|
|
837
836
|
) }) : null });
|
|
838
837
|
}
|
|
839
|
-
function
|
|
838
|
+
function pe(e) {
|
|
840
839
|
const [t, n] = R(() => e.repeatContext);
|
|
841
840
|
return /* @__PURE__ */ s(le.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
842
|
-
|
|
841
|
+
Q,
|
|
843
842
|
{
|
|
844
843
|
block: e.block,
|
|
845
844
|
context: t,
|
|
@@ -848,10 +847,10 @@ function ye(e) {
|
|
|
848
847
|
}
|
|
849
848
|
) });
|
|
850
849
|
}
|
|
851
|
-
function
|
|
852
|
-
var h,
|
|
850
|
+
function Q(e) {
|
|
851
|
+
var h, m, u, k;
|
|
853
852
|
function t() {
|
|
854
|
-
return
|
|
853
|
+
return Pt({
|
|
855
854
|
block: e.block,
|
|
856
855
|
context: e.context
|
|
857
856
|
});
|
|
@@ -861,51 +860,51 @@ function j(e) {
|
|
|
861
860
|
update: !1
|
|
862
861
|
}));
|
|
863
862
|
function o() {
|
|
864
|
-
var
|
|
865
|
-
if (n.value && !n.update && !
|
|
863
|
+
var v;
|
|
864
|
+
if (n.value && !n.update && !ae())
|
|
866
865
|
return n.value;
|
|
867
|
-
const
|
|
866
|
+
const g = (v = e.block.repeat) != null && v.collection ? e.block : vt({
|
|
868
867
|
block: e.block,
|
|
869
868
|
localState: e.context.localState,
|
|
870
869
|
rootState: e.context.rootState,
|
|
871
870
|
rootSetState: e.context.rootSetState,
|
|
872
871
|
context: e.context.context
|
|
873
872
|
});
|
|
874
|
-
return n.value =
|
|
873
|
+
return n.value = g, n.update = !1, g;
|
|
875
874
|
}
|
|
876
875
|
function a() {
|
|
877
|
-
return
|
|
876
|
+
return Rt({
|
|
878
877
|
block: o(),
|
|
879
878
|
registeredComponents: e.registeredComponents,
|
|
880
879
|
model: e.context.model
|
|
881
880
|
});
|
|
882
881
|
}
|
|
883
882
|
function r() {
|
|
884
|
-
var
|
|
885
|
-
return e.block.tagName === "a" || ((
|
|
883
|
+
var v;
|
|
884
|
+
return e.block.tagName === "a" || ((v = o().properties) == null ? void 0 : v.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
886
885
|
}
|
|
887
886
|
function l() {
|
|
888
|
-
var
|
|
889
|
-
if ((
|
|
890
|
-
return !!((
|
|
891
|
-
const
|
|
892
|
-
return ("show" in o() ? o().show : !0) && !
|
|
887
|
+
var y, b;
|
|
888
|
+
if ((y = e.block.repeat) != null && y.collection)
|
|
889
|
+
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
890
|
+
const g = "hide" in o() ? o().hide : !1;
|
|
891
|
+
return ("show" in o() ? o().show : !0) && !g;
|
|
893
892
|
}
|
|
894
|
-
function
|
|
895
|
-
var
|
|
896
|
-
return !((
|
|
893
|
+
function d() {
|
|
894
|
+
var v, y;
|
|
895
|
+
return !((v = a == null ? void 0 : a()) != null && v.component) && !t() ? (y = o().children) != null ? y : [] : [];
|
|
897
896
|
}
|
|
898
897
|
function c() {
|
|
899
|
-
var
|
|
898
|
+
var g, v, y, b;
|
|
900
899
|
return {
|
|
901
|
-
blockChildren: (
|
|
902
|
-
componentRef: (
|
|
900
|
+
blockChildren: (g = o().children) != null ? g : [],
|
|
901
|
+
componentRef: (v = a == null ? void 0 : a()) == null ? void 0 : v.component,
|
|
903
902
|
componentOptions: {
|
|
904
|
-
...
|
|
905
|
-
...
|
|
906
|
-
...
|
|
903
|
+
...ut(o(), e.context),
|
|
904
|
+
...At(a(), o()),
|
|
905
|
+
...Nt(a(), e.context),
|
|
907
906
|
...Bt(a(), e.linkComponent),
|
|
908
|
-
...
|
|
907
|
+
...Vt(
|
|
909
908
|
a(),
|
|
910
909
|
e.registeredComponents,
|
|
911
910
|
e.context.model
|
|
@@ -915,33 +914,33 @@ function j(e) {
|
|
|
915
914
|
linkComponent: e.linkComponent,
|
|
916
915
|
registeredComponents: e.registeredComponents,
|
|
917
916
|
builderBlock: o(),
|
|
918
|
-
includeBlockProps: ((
|
|
919
|
-
isInteractive: !((
|
|
917
|
+
includeBlockProps: ((y = a == null ? void 0 : a()) == null ? void 0 : y.noWrap) === !0,
|
|
918
|
+
isInteractive: !((b = a == null ? void 0 : a()) != null && b.isRSC && $ === "rsc")
|
|
920
919
|
};
|
|
921
920
|
}
|
|
922
921
|
return A(() => {
|
|
923
|
-
const
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
...
|
|
927
|
-
elementId:
|
|
922
|
+
const g = o().id, v = o().animations;
|
|
923
|
+
v && g && kt(
|
|
924
|
+
v.map((y) => ({
|
|
925
|
+
...y,
|
|
926
|
+
elementId: g
|
|
928
927
|
}))
|
|
929
928
|
);
|
|
930
929
|
}, []), A(() => {
|
|
931
930
|
n.update = !0;
|
|
932
|
-
}), /* @__PURE__ */ s(
|
|
933
|
-
/* @__PURE__ */ s(
|
|
934
|
-
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(
|
|
935
|
-
|
|
931
|
+
}), /* @__PURE__ */ s(E, { children: l() ? /* @__PURE__ */ B(E, { children: [
|
|
932
|
+
/* @__PURE__ */ s(Wt, { block: o(), context: e.context }),
|
|
933
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(E, { children: (k = t()) == null ? void 0 : k.map((g, v) => /* @__PURE__ */ s(
|
|
934
|
+
pe,
|
|
936
935
|
{
|
|
937
|
-
repeatContext:
|
|
938
|
-
block:
|
|
936
|
+
repeatContext: g.context,
|
|
937
|
+
block: g.block,
|
|
939
938
|
registeredComponents: e.registeredComponents,
|
|
940
939
|
linkComponent: e.linkComponent
|
|
941
940
|
},
|
|
942
|
-
|
|
941
|
+
v
|
|
943
942
|
)) }) : /* @__PURE__ */ s(
|
|
944
|
-
|
|
943
|
+
be,
|
|
945
944
|
{
|
|
946
945
|
componentRef: c().componentRef,
|
|
947
946
|
componentOptions: c().componentOptions,
|
|
@@ -953,24 +952,24 @@ function j(e) {
|
|
|
953
952
|
includeBlockProps: c().includeBlockProps,
|
|
954
953
|
isInteractive: c().isInteractive
|
|
955
954
|
}
|
|
956
|
-
) : /* @__PURE__ */ s(
|
|
957
|
-
|
|
955
|
+
) : /* @__PURE__ */ s(E, { children: t() ? /* @__PURE__ */ s(E, { children: (u = t()) == null ? void 0 : u.map((g, v) => /* @__PURE__ */ s(
|
|
956
|
+
pe,
|
|
958
957
|
{
|
|
959
|
-
repeatContext:
|
|
960
|
-
block:
|
|
958
|
+
repeatContext: g.context,
|
|
959
|
+
block: g.block,
|
|
961
960
|
registeredComponents: e.registeredComponents,
|
|
962
961
|
linkComponent: e.linkComponent
|
|
963
962
|
},
|
|
964
|
-
|
|
965
|
-
)) }) : /* @__PURE__ */
|
|
966
|
-
|
|
963
|
+
v
|
|
964
|
+
)) }) : /* @__PURE__ */ B(
|
|
965
|
+
Ut,
|
|
967
966
|
{
|
|
968
967
|
Wrapper: r(),
|
|
969
968
|
block: o(),
|
|
970
969
|
context: e.context,
|
|
971
970
|
children: [
|
|
972
971
|
/* @__PURE__ */ s(
|
|
973
|
-
|
|
972
|
+
be,
|
|
974
973
|
{
|
|
975
974
|
componentRef: c().componentRef,
|
|
976
975
|
componentOptions: c().componentOptions,
|
|
@@ -983,15 +982,15 @@ function j(e) {
|
|
|
983
982
|
isInteractive: c().isInteractive
|
|
984
983
|
}
|
|
985
984
|
),
|
|
986
|
-
(
|
|
987
|
-
|
|
985
|
+
(m = d()) == null ? void 0 : m.map((g) => /* @__PURE__ */ s(
|
|
986
|
+
Q,
|
|
988
987
|
{
|
|
989
|
-
block:
|
|
988
|
+
block: g,
|
|
990
989
|
registeredComponents: e.registeredComponents,
|
|
991
990
|
linkComponent: e.linkComponent,
|
|
992
991
|
context: e.context
|
|
993
992
|
},
|
|
994
|
-
|
|
993
|
+
g.id
|
|
995
994
|
))
|
|
996
995
|
]
|
|
997
996
|
}
|
|
@@ -999,7 +998,7 @@ function j(e) {
|
|
|
999
998
|
] }) : null });
|
|
1000
999
|
}
|
|
1001
1000
|
function jt(e) {
|
|
1002
|
-
const t =
|
|
1001
|
+
const t = O(null);
|
|
1003
1002
|
function n() {
|
|
1004
1003
|
var r;
|
|
1005
1004
|
return [
|
|
@@ -1041,7 +1040,7 @@ function jt(e) {
|
|
|
1041
1040
|
));
|
|
1042
1041
|
}
|
|
1043
1042
|
return A(() => {
|
|
1044
|
-
}, []), /* @__PURE__ */
|
|
1043
|
+
}, []), /* @__PURE__ */ B(E, { children: [
|
|
1045
1044
|
/* @__PURE__ */ s(
|
|
1046
1045
|
e.BlocksWrapper,
|
|
1047
1046
|
{
|
|
@@ -1064,9 +1063,9 @@ function jt(e) {
|
|
|
1064
1063
|
}` })
|
|
1065
1064
|
] });
|
|
1066
1065
|
}
|
|
1067
|
-
function
|
|
1066
|
+
function F(e) {
|
|
1068
1067
|
var i, o, a;
|
|
1069
|
-
const t =
|
|
1068
|
+
const t = fe(le), n = fe(Pe);
|
|
1070
1069
|
return /* @__PURE__ */ s(
|
|
1071
1070
|
jt,
|
|
1072
1071
|
{
|
|
@@ -1077,8 +1076,8 @@ function $(e) {
|
|
|
1077
1076
|
classNameProp: e.className,
|
|
1078
1077
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1079
1078
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1080
|
-
children: e.blocks ? /* @__PURE__ */ s(
|
|
1081
|
-
|
|
1079
|
+
children: e.blocks ? /* @__PURE__ */ s(E, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
|
|
1080
|
+
Q,
|
|
1082
1081
|
{
|
|
1083
1082
|
block: r,
|
|
1084
1083
|
linkComponent: e.linkComponent,
|
|
@@ -1090,9 +1089,9 @@ function $(e) {
|
|
|
1090
1089
|
}
|
|
1091
1090
|
);
|
|
1092
1091
|
}
|
|
1093
|
-
const
|
|
1094
|
-
function
|
|
1095
|
-
var
|
|
1092
|
+
const qt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1093
|
+
function zt(e) {
|
|
1094
|
+
var v, y;
|
|
1096
1095
|
function t() {
|
|
1097
1096
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1098
1097
|
}
|
|
@@ -1102,28 +1101,28 @@ function Kt(e) {
|
|
|
1102
1101
|
function i() {
|
|
1103
1102
|
return e.stackColumnsAt || "tablet";
|
|
1104
1103
|
}
|
|
1105
|
-
function o(
|
|
1106
|
-
return
|
|
1104
|
+
function o(b) {
|
|
1105
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
1107
1106
|
}
|
|
1108
|
-
function a(
|
|
1109
|
-
var
|
|
1110
|
-
return ((
|
|
1107
|
+
function a(b) {
|
|
1108
|
+
var p;
|
|
1109
|
+
return ((p = n()[b]) == null ? void 0 : p.width) || 100 / n().length;
|
|
1111
1110
|
}
|
|
1112
|
-
function r(
|
|
1113
|
-
const
|
|
1114
|
-
return `calc(${
|
|
1111
|
+
function r(b) {
|
|
1112
|
+
const p = a(b), C = t() * (n().length - 1) * (p / 100);
|
|
1113
|
+
return `calc(${p}% - ${C}px)`;
|
|
1115
1114
|
}
|
|
1116
1115
|
function l({
|
|
1117
|
-
stackedStyle:
|
|
1118
|
-
desktopStyle:
|
|
1116
|
+
stackedStyle: b,
|
|
1117
|
+
desktopStyle: p
|
|
1119
1118
|
}) {
|
|
1120
|
-
return i() === "tablet" ?
|
|
1119
|
+
return i() === "tablet" ? b : p;
|
|
1121
1120
|
}
|
|
1122
|
-
function
|
|
1123
|
-
stackedStyle:
|
|
1124
|
-
desktopStyle:
|
|
1121
|
+
function d({
|
|
1122
|
+
stackedStyle: b,
|
|
1123
|
+
desktopStyle: p
|
|
1125
1124
|
}) {
|
|
1126
|
-
return i() === "never" ?
|
|
1125
|
+
return i() === "never" ? p : b;
|
|
1127
1126
|
}
|
|
1128
1127
|
function c() {
|
|
1129
1128
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1137,173 +1136,173 @@ function Kt(e) {
|
|
|
1137
1136
|
})
|
|
1138
1137
|
};
|
|
1139
1138
|
}
|
|
1140
|
-
function b
|
|
1141
|
-
const
|
|
1139
|
+
function m(b) {
|
|
1140
|
+
const p = b === 0 ? 0 : t(), C = r(b), P = `${p}px`, I = "100%", w = 0;
|
|
1142
1141
|
return {
|
|
1143
1142
|
...{
|
|
1144
1143
|
display: "flex",
|
|
1145
1144
|
flexDirection: "column",
|
|
1146
1145
|
alignItems: "stretch"
|
|
1147
1146
|
},
|
|
1148
|
-
width:
|
|
1149
|
-
["marginLeft"]:
|
|
1150
|
-
"--column-width-mobile":
|
|
1151
|
-
stackedStyle:
|
|
1152
|
-
desktopStyle:
|
|
1147
|
+
width: C,
|
|
1148
|
+
["marginLeft"]: P,
|
|
1149
|
+
"--column-width-mobile": d({
|
|
1150
|
+
stackedStyle: I,
|
|
1151
|
+
desktopStyle: C
|
|
1153
1152
|
}),
|
|
1154
|
-
"--column-margin-left-mobile":
|
|
1155
|
-
stackedStyle:
|
|
1156
|
-
desktopStyle:
|
|
1153
|
+
"--column-margin-left-mobile": d({
|
|
1154
|
+
stackedStyle: w,
|
|
1155
|
+
desktopStyle: P
|
|
1157
1156
|
}),
|
|
1158
1157
|
"--column-width-tablet": l({
|
|
1159
|
-
stackedStyle:
|
|
1160
|
-
desktopStyle:
|
|
1158
|
+
stackedStyle: I,
|
|
1159
|
+
desktopStyle: C
|
|
1161
1160
|
}),
|
|
1162
1161
|
"--column-margin-left-tablet": l({
|
|
1163
|
-
stackedStyle:
|
|
1164
|
-
desktopStyle:
|
|
1162
|
+
stackedStyle: w,
|
|
1163
|
+
desktopStyle: P
|
|
1165
1164
|
})
|
|
1166
1165
|
};
|
|
1167
1166
|
}
|
|
1168
|
-
function
|
|
1169
|
-
var
|
|
1170
|
-
return
|
|
1171
|
-
((
|
|
1172
|
-
)[
|
|
1167
|
+
function u(b) {
|
|
1168
|
+
var C, P;
|
|
1169
|
+
return _e(
|
|
1170
|
+
((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
|
|
1171
|
+
)[b].max;
|
|
1173
1172
|
}
|
|
1174
|
-
function
|
|
1175
|
-
const
|
|
1173
|
+
function k() {
|
|
1174
|
+
const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1176
1175
|
return `
|
|
1177
|
-
@media (max-width: ${
|
|
1176
|
+
@media (max-width: ${u("medium")}px) {
|
|
1178
1177
|
.${e.builderBlock.id}-breakpoints {
|
|
1179
1178
|
flex-direction: var(--flex-dir-tablet);
|
|
1180
1179
|
align-items: stretch;
|
|
1181
1180
|
}
|
|
1182
1181
|
|
|
1183
|
-
${
|
|
1182
|
+
${b} {
|
|
1184
1183
|
width: var(--column-width-tablet) !important;
|
|
1185
1184
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1186
1185
|
}
|
|
1187
1186
|
}
|
|
1188
1187
|
|
|
1189
|
-
@media (max-width: ${
|
|
1188
|
+
@media (max-width: ${u("small")}px) {
|
|
1190
1189
|
.${e.builderBlock.id}-breakpoints {
|
|
1191
1190
|
flex-direction: var(--flex-dir);
|
|
1192
1191
|
align-items: stretch;
|
|
1193
1192
|
}
|
|
1194
1193
|
|
|
1195
|
-
${
|
|
1194
|
+
${b} {
|
|
1196
1195
|
width: var(--column-width-mobile) !important;
|
|
1197
1196
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1198
1197
|
}
|
|
1199
1198
|
},
|
|
1200
1199
|
`;
|
|
1201
1200
|
}
|
|
1202
|
-
function
|
|
1201
|
+
function g(b, p) {
|
|
1203
1202
|
return {
|
|
1204
|
-
...
|
|
1205
|
-
href:
|
|
1203
|
+
...b.link ? {
|
|
1204
|
+
href: b.link
|
|
1206
1205
|
} : {},
|
|
1207
|
-
[
|
|
1208
|
-
style:
|
|
1206
|
+
[_()]: "builder-column",
|
|
1207
|
+
style: De(m(p))
|
|
1209
1208
|
};
|
|
1210
1209
|
}
|
|
1211
|
-
return /* @__PURE__ */
|
|
1212
|
-
/* @__PURE__ */
|
|
1210
|
+
return /* @__PURE__ */ B(E, { children: [
|
|
1211
|
+
/* @__PURE__ */ B(
|
|
1213
1212
|
"div",
|
|
1214
1213
|
{
|
|
1215
|
-
className:
|
|
1214
|
+
className: qt((v = e.builderBlock) == null ? void 0 : v.id) + " div-a6f3faac",
|
|
1216
1215
|
style: h(),
|
|
1217
1216
|
children: [
|
|
1218
1217
|
/* @__PURE__ */ s(
|
|
1219
|
-
|
|
1218
|
+
Y,
|
|
1220
1219
|
{
|
|
1221
1220
|
id: "builderio-columns",
|
|
1222
|
-
styles:
|
|
1221
|
+
styles: k(),
|
|
1223
1222
|
nonce: e.builderContext.nonce
|
|
1224
1223
|
}
|
|
1225
1224
|
),
|
|
1226
|
-
(
|
|
1225
|
+
(y = e.columns) == null ? void 0 : y.map((b, p) => /* @__PURE__ */ s(
|
|
1227
1226
|
re,
|
|
1228
1227
|
{
|
|
1229
|
-
TagName: o(
|
|
1228
|
+
TagName: o(b),
|
|
1230
1229
|
actionAttributes: {},
|
|
1231
|
-
attributes:
|
|
1230
|
+
attributes: g(b, p),
|
|
1232
1231
|
children: /* @__PURE__ */ s(
|
|
1233
|
-
|
|
1232
|
+
F,
|
|
1234
1233
|
{
|
|
1235
|
-
path: `columns.${
|
|
1234
|
+
path: `columns.${p}.blocks`,
|
|
1236
1235
|
parent: e.builderBlock.id,
|
|
1237
|
-
styleProp: {
|
|
1238
|
-
flexGrow: "1"
|
|
1239
|
-
},
|
|
1240
1236
|
context: e.builderContext,
|
|
1241
1237
|
registeredComponents: e.builderComponents,
|
|
1242
1238
|
linkComponent: e.builderLinkComponent,
|
|
1243
|
-
blocks:
|
|
1239
|
+
blocks: b.blocks,
|
|
1240
|
+
styleProp: {
|
|
1241
|
+
flexGrow: "1"
|
|
1242
|
+
}
|
|
1244
1243
|
}
|
|
1245
1244
|
)
|
|
1246
1245
|
},
|
|
1247
|
-
|
|
1246
|
+
p
|
|
1248
1247
|
))
|
|
1249
1248
|
]
|
|
1250
1249
|
}
|
|
1251
1250
|
),
|
|
1252
|
-
/* @__PURE__ */ s("style", { children: `.div-
|
|
1251
|
+
/* @__PURE__ */ s("style", { children: `.div-a6f3faac {
|
|
1253
1252
|
display: flex;
|
|
1254
1253
|
line-height: normal;
|
|
1255
1254
|
}` })
|
|
1256
1255
|
] });
|
|
1257
1256
|
}
|
|
1258
|
-
function
|
|
1257
|
+
function Kt(e) {
|
|
1259
1258
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1260
1259
|
}
|
|
1261
|
-
function
|
|
1260
|
+
function ye(e) {
|
|
1262
1261
|
return e.replace(/http(s)?:/, "");
|
|
1263
1262
|
}
|
|
1264
|
-
function
|
|
1263
|
+
function Jt(e = "", t, n) {
|
|
1265
1264
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1266
1265
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1267
1266
|
}
|
|
1268
|
-
function
|
|
1267
|
+
function Gt(e, t) {
|
|
1269
1268
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1270
1269
|
return e;
|
|
1271
1270
|
if (t === "master")
|
|
1272
|
-
return
|
|
1271
|
+
return ye(e);
|
|
1273
1272
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1274
1273
|
if (n) {
|
|
1275
1274
|
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1276
|
-
return
|
|
1275
|
+
return ye(`${i[0]}_${a}${o}`);
|
|
1277
1276
|
}
|
|
1278
1277
|
return null;
|
|
1279
1278
|
}
|
|
1280
|
-
function
|
|
1279
|
+
function X(e) {
|
|
1281
1280
|
if (!e)
|
|
1282
1281
|
return e;
|
|
1283
1282
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1284
1283
|
if (e.match(/builder\.io/)) {
|
|
1285
1284
|
let n = e;
|
|
1286
1285
|
const i = Number(e.split("?width=")[1]);
|
|
1287
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1286
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Jt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1288
1287
|
}
|
|
1289
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1288
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Gt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1290
1289
|
}
|
|
1291
1290
|
function Yt(e) {
|
|
1292
|
-
var o, a, r, l,
|
|
1291
|
+
var o, a, r, l, d, c;
|
|
1293
1292
|
function t() {
|
|
1294
|
-
var
|
|
1295
|
-
const
|
|
1296
|
-
if (!
|
|
1293
|
+
var u;
|
|
1294
|
+
const m = e.image || e.src;
|
|
1295
|
+
if (!m || // We can auto add srcset for cdn.builder.io and shopify
|
|
1297
1296
|
// images, otherwise you can supply this prop manually
|
|
1298
|
-
!(typeof
|
|
1297
|
+
!(typeof m == "string" && (m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/))))
|
|
1299
1298
|
return e.srcset;
|
|
1300
1299
|
if (!e.noWebp) {
|
|
1301
|
-
if (e.srcset && ((
|
|
1300
|
+
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1302
1301
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1303
|
-
return console.debug("Removed given srcset"),
|
|
1302
|
+
return console.debug("Removed given srcset"), X(m);
|
|
1304
1303
|
} else if (e.image && !e.srcset)
|
|
1305
|
-
return
|
|
1306
|
-
return
|
|
1304
|
+
return X(m);
|
|
1305
|
+
return X(m);
|
|
1307
1306
|
}
|
|
1308
1307
|
}
|
|
1309
1308
|
function n() {
|
|
@@ -1320,10 +1319,9 @@ function Yt(e) {
|
|
|
1320
1319
|
};
|
|
1321
1320
|
return e.aspectRatio ? h : void 0;
|
|
1322
1321
|
}
|
|
1323
|
-
return
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
/* @__PURE__ */ N("picture", { children: [
|
|
1322
|
+
return /* @__PURE__ */ B(E, { children: [
|
|
1323
|
+
/* @__PURE__ */ B(E, { children: [
|
|
1324
|
+
/* @__PURE__ */ B("picture", { children: [
|
|
1327
1325
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1328
1326
|
/* @__PURE__ */ s(
|
|
1329
1327
|
"img",
|
|
@@ -1337,7 +1335,7 @@ function Yt(e) {
|
|
|
1337
1335
|
objectFit: e.backgroundSize || "cover",
|
|
1338
1336
|
...i()
|
|
1339
1337
|
},
|
|
1340
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1338
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-9dac2184",
|
|
1341
1339
|
src: e.image,
|
|
1342
1340
|
srcSet: t(),
|
|
1343
1341
|
sizes: e.sizes
|
|
@@ -1347,23 +1345,23 @@ function Yt(e) {
|
|
|
1347
1345
|
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1348
1346
|
"div",
|
|
1349
1347
|
{
|
|
1350
|
-
className: "builder-image-sizer div-
|
|
1348
|
+
className: "builder-image-sizer div-9dac2184",
|
|
1351
1349
|
style: {
|
|
1352
1350
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1353
1351
|
}
|
|
1354
1352
|
}
|
|
1355
1353
|
) : null,
|
|
1356
|
-
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
1357
|
-
!e.fitContent && ((c = (
|
|
1354
|
+
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
|
|
1355
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
|
|
1358
1356
|
] }),
|
|
1359
|
-
/* @__PURE__ */ s("style", { children: `.img-
|
|
1357
|
+
/* @__PURE__ */ s("style", { children: `.img-9dac2184 {
|
|
1360
1358
|
opacity: 1;
|
|
1361
1359
|
transition: opacity 0.2s ease-in-out;
|
|
1362
|
-
}.div-
|
|
1360
|
+
}.div-9dac2184 {
|
|
1363
1361
|
width: 100%;
|
|
1364
1362
|
pointer-events: none;
|
|
1365
1363
|
font-size: 0;
|
|
1366
|
-
}.div-
|
|
1364
|
+
}.div-9dac2184-2 {
|
|
1367
1365
|
display: flex;
|
|
1368
1366
|
flex-direction: column;
|
|
1369
1367
|
align-items: stretch;
|
|
@@ -1375,7 +1373,7 @@ function Yt(e) {
|
|
|
1375
1373
|
}` })
|
|
1376
1374
|
] });
|
|
1377
1375
|
}
|
|
1378
|
-
function
|
|
1376
|
+
function Qt(e) {
|
|
1379
1377
|
return /* @__PURE__ */ s(
|
|
1380
1378
|
"section",
|
|
1381
1379
|
{
|
|
@@ -1396,7 +1394,7 @@ function Xt(e) {
|
|
|
1396
1394
|
}
|
|
1397
1395
|
);
|
|
1398
1396
|
}
|
|
1399
|
-
const
|
|
1397
|
+
const Z = {
|
|
1400
1398
|
"@type": "@builder.io/sdk:Element",
|
|
1401
1399
|
layerName: "Accordion item title",
|
|
1402
1400
|
responsiveStyles: {
|
|
@@ -1425,7 +1423,7 @@ const te = {
|
|
|
1425
1423
|
}
|
|
1426
1424
|
}
|
|
1427
1425
|
}]
|
|
1428
|
-
},
|
|
1426
|
+
}, ee = {
|
|
1429
1427
|
"@type": "@builder.io/sdk:Element",
|
|
1430
1428
|
layerName: "Accordion item detail",
|
|
1431
1429
|
responsiveStyles: {
|
|
@@ -1456,7 +1454,7 @@ const te = {
|
|
|
1456
1454
|
}
|
|
1457
1455
|
}
|
|
1458
1456
|
}]
|
|
1459
|
-
},
|
|
1457
|
+
}, Xt = {
|
|
1460
1458
|
name: "Builder:Accordion",
|
|
1461
1459
|
canHaveChildren: !0,
|
|
1462
1460
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1473,19 +1471,19 @@ const te = {
|
|
|
1473
1471
|
name: "title",
|
|
1474
1472
|
type: "uiBlocks",
|
|
1475
1473
|
hideFromUI: !0,
|
|
1476
|
-
defaultValue: [
|
|
1474
|
+
defaultValue: [Z]
|
|
1477
1475
|
}, {
|
|
1478
1476
|
name: "detail",
|
|
1479
1477
|
type: "uiBlocks",
|
|
1480
1478
|
hideFromUI: !0,
|
|
1481
|
-
defaultValue: [
|
|
1479
|
+
defaultValue: [ee]
|
|
1482
1480
|
}],
|
|
1483
1481
|
defaultValue: [{
|
|
1484
|
-
title: [
|
|
1485
|
-
detail: [
|
|
1482
|
+
title: [Z],
|
|
1483
|
+
detail: [ee]
|
|
1486
1484
|
}, {
|
|
1487
|
-
title: [
|
|
1488
|
-
detail: [
|
|
1485
|
+
title: [Z],
|
|
1486
|
+
detail: [ee]
|
|
1489
1487
|
}],
|
|
1490
1488
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1491
1489
|
}, {
|
|
@@ -1521,8 +1519,8 @@ const te = {
|
|
|
1521
1519
|
builderLinkComponent: !0
|
|
1522
1520
|
}
|
|
1523
1521
|
}, xe = (e) => e.toString();
|
|
1524
|
-
function
|
|
1525
|
-
var
|
|
1522
|
+
function Zt(e) {
|
|
1523
|
+
var m;
|
|
1526
1524
|
const [t, n] = R(() => []);
|
|
1527
1525
|
function i() {
|
|
1528
1526
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1540,7 +1538,7 @@ function en(e) {
|
|
|
1540
1538
|
};
|
|
1541
1539
|
}
|
|
1542
1540
|
function a() {
|
|
1543
|
-
const
|
|
1541
|
+
const k = {
|
|
1544
1542
|
...{
|
|
1545
1543
|
display: "flex",
|
|
1546
1544
|
flexDirection: "column"
|
|
@@ -1549,75 +1547,75 @@ function en(e) {
|
|
|
1549
1547
|
cursor: "pointer"
|
|
1550
1548
|
};
|
|
1551
1549
|
return Object.fromEntries(
|
|
1552
|
-
Object.entries(
|
|
1550
|
+
Object.entries(k).filter(([g, v]) => v !== void 0)
|
|
1553
1551
|
);
|
|
1554
1552
|
}
|
|
1555
|
-
function r(
|
|
1556
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1553
|
+
function r(u) {
|
|
1554
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
|
|
1557
1555
|
}
|
|
1558
|
-
function l(
|
|
1559
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1556
|
+
function l(u) {
|
|
1557
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
|
|
1560
1558
|
}
|
|
1561
|
-
function
|
|
1562
|
-
let
|
|
1559
|
+
function d() {
|
|
1560
|
+
let u = null;
|
|
1563
1561
|
if (e.grid && t.length && document) {
|
|
1564
|
-
const
|
|
1565
|
-
let
|
|
1566
|
-
`.builder-accordion-title[data-index="${
|
|
1562
|
+
const g = t[0];
|
|
1563
|
+
let y = document.querySelector(
|
|
1564
|
+
`.builder-accordion-title[data-index="${g}"]`
|
|
1567
1565
|
);
|
|
1568
|
-
if (
|
|
1569
|
-
let
|
|
1570
|
-
for (;
|
|
1571
|
-
if (
|
|
1572
|
-
if (
|
|
1566
|
+
if (u = g, y) {
|
|
1567
|
+
let b = y.getBoundingClientRect();
|
|
1568
|
+
for (; y = y && y.nextElementSibling; )
|
|
1569
|
+
if (y) {
|
|
1570
|
+
if (y.classList.contains("builder-accordion-detail"))
|
|
1573
1571
|
continue;
|
|
1574
|
-
const
|
|
1575
|
-
if (
|
|
1576
|
-
const
|
|
1577
|
-
|
|
1572
|
+
const p = y.getBoundingClientRect();
|
|
1573
|
+
if (p.left > b.left) {
|
|
1574
|
+
const C = parseInt(
|
|
1575
|
+
y.getAttribute("data-index") || "",
|
|
1578
1576
|
10
|
|
1579
1577
|
);
|
|
1580
|
-
isNaN(
|
|
1578
|
+
isNaN(C) || (b = p, u = C);
|
|
1581
1579
|
} else
|
|
1582
1580
|
break;
|
|
1583
1581
|
}
|
|
1584
1582
|
}
|
|
1585
1583
|
}
|
|
1586
|
-
return typeof
|
|
1584
|
+
return typeof u == "number" && (u = u + 1), u;
|
|
1587
1585
|
}
|
|
1588
1586
|
function c() {
|
|
1589
|
-
const
|
|
1590
|
-
order: typeof
|
|
1587
|
+
const u = {
|
|
1588
|
+
order: typeof d() == "number" ? d() : void 0,
|
|
1591
1589
|
...e.grid && {
|
|
1592
1590
|
width: "100%"
|
|
1593
1591
|
}
|
|
1594
1592
|
};
|
|
1595
1593
|
return Object.fromEntries(
|
|
1596
|
-
Object.entries(
|
|
1594
|
+
Object.entries(u).filter(([k, g]) => g !== void 0)
|
|
1597
1595
|
);
|
|
1598
1596
|
}
|
|
1599
|
-
function h(
|
|
1600
|
-
t.includes(
|
|
1597
|
+
function h(u) {
|
|
1598
|
+
t.includes(u) ? n(i() ? [] : t.filter((k) => k !== u)) : n(i() ? [u] : t.concat(u));
|
|
1601
1599
|
}
|
|
1602
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (
|
|
1600
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (m = e.items) == null ? void 0 : m.map((u, k) => /* @__PURE__ */ B(Xe.Fragment, { children: [
|
|
1603
1601
|
/* @__PURE__ */ s(
|
|
1604
1602
|
"div",
|
|
1605
1603
|
{
|
|
1606
|
-
className: r(
|
|
1604
|
+
className: r(k),
|
|
1607
1605
|
style: {
|
|
1608
1606
|
...a(),
|
|
1609
1607
|
...e.grid && {
|
|
1610
1608
|
width: e.gridRowWidth,
|
|
1611
|
-
order:
|
|
1609
|
+
order: d() !== null ? xe(k) : xe(k + 1)
|
|
1612
1610
|
}
|
|
1613
1611
|
},
|
|
1614
|
-
"data-index":
|
|
1615
|
-
onClick: (
|
|
1612
|
+
"data-index": k,
|
|
1613
|
+
onClick: (g) => h(k),
|
|
1616
1614
|
children: /* @__PURE__ */ s(
|
|
1617
|
-
|
|
1615
|
+
F,
|
|
1618
1616
|
{
|
|
1619
|
-
blocks:
|
|
1620
|
-
path: `items.${
|
|
1617
|
+
blocks: u.title,
|
|
1618
|
+
path: `items.${k}.title`,
|
|
1621
1619
|
parent: e.builderBlock.id,
|
|
1622
1620
|
context: e.builderContext,
|
|
1623
1621
|
registeredComponents: e.builderComponents,
|
|
@@ -1626,16 +1624,16 @@ function en(e) {
|
|
|
1626
1624
|
)
|
|
1627
1625
|
}
|
|
1628
1626
|
),
|
|
1629
|
-
t.includes(
|
|
1627
|
+
t.includes(k) ? /* @__PURE__ */ s(
|
|
1630
1628
|
"div",
|
|
1631
1629
|
{
|
|
1632
|
-
className: l(
|
|
1630
|
+
className: l(k),
|
|
1633
1631
|
style: c(),
|
|
1634
1632
|
children: /* @__PURE__ */ s(
|
|
1635
|
-
|
|
1633
|
+
F,
|
|
1636
1634
|
{
|
|
1637
|
-
blocks:
|
|
1638
|
-
path: `items.${
|
|
1635
|
+
blocks: u.detail,
|
|
1636
|
+
path: `items.${k}.detail`,
|
|
1639
1637
|
parent: e.builderBlock.id,
|
|
1640
1638
|
context: e.builderContext,
|
|
1641
1639
|
registeredComponents: e.builderComponents,
|
|
@@ -1644,9 +1642,9 @@ function en(e) {
|
|
|
1644
1642
|
)
|
|
1645
1643
|
}
|
|
1646
1644
|
) : null
|
|
1647
|
-
] },
|
|
1645
|
+
] }, k)) });
|
|
1648
1646
|
}
|
|
1649
|
-
const
|
|
1647
|
+
const en = {
|
|
1650
1648
|
name: "Core:Button",
|
|
1651
1649
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1652
1650
|
defaultStyles: {
|
|
@@ -1682,7 +1680,7 @@ const tn = {
|
|
|
1682
1680
|
shouldReceiveBuilderProps: {
|
|
1683
1681
|
builderLinkComponent: !0
|
|
1684
1682
|
}
|
|
1685
|
-
},
|
|
1683
|
+
}, tn = {
|
|
1686
1684
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1687
1685
|
name: "Columns",
|
|
1688
1686
|
isRSC: !0,
|
|
@@ -1861,7 +1859,7 @@ const tn = {
|
|
|
1861
1859
|
});
|
|
1862
1860
|
}
|
|
1863
1861
|
const n = e.get("columns");
|
|
1864
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l,
|
|
1862
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
|
|
1865
1863
|
}
|
|
1866
1864
|
}, {
|
|
1867
1865
|
name: "space",
|
|
@@ -1889,13 +1887,13 @@ const tn = {
|
|
|
1889
1887
|
builderComponents: !0,
|
|
1890
1888
|
builderLinkComponent: !0
|
|
1891
1889
|
}
|
|
1892
|
-
},
|
|
1890
|
+
}, nn = {
|
|
1893
1891
|
name: "Fragment",
|
|
1894
1892
|
static: !0,
|
|
1895
1893
|
hidden: !0,
|
|
1896
1894
|
canHaveChildren: !0,
|
|
1897
1895
|
noWrap: !0
|
|
1898
|
-
},
|
|
1896
|
+
}, de = ["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"], on = ["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"], an = {
|
|
1899
1897
|
name: "Image",
|
|
1900
1898
|
static: !0,
|
|
1901
1899
|
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",
|
|
@@ -1910,21 +1908,21 @@ const tn = {
|
|
|
1910
1908
|
name: "image",
|
|
1911
1909
|
type: "file",
|
|
1912
1910
|
bubble: !0,
|
|
1913
|
-
allowedFileTypes:
|
|
1911
|
+
allowedFileTypes: de,
|
|
1914
1912
|
required: !0,
|
|
1915
1913
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1916
1914
|
onChange: (e) => {
|
|
1917
1915
|
e.delete("srcset"), e.delete("noWebp");
|
|
1918
1916
|
function n(r, l = 6e4) {
|
|
1919
|
-
return new Promise((
|
|
1917
|
+
return new Promise((d, c) => {
|
|
1920
1918
|
const h = document.createElement("img");
|
|
1921
|
-
let
|
|
1919
|
+
let m = !1;
|
|
1922
1920
|
h.onload = () => {
|
|
1923
|
-
|
|
1924
|
-
}, h.addEventListener("error", (
|
|
1925
|
-
console.warn("Image load failed",
|
|
1921
|
+
m = !0, d(h);
|
|
1922
|
+
}, h.addEventListener("error", (u) => {
|
|
1923
|
+
console.warn("Image load failed", u.error), c(u.error);
|
|
1926
1924
|
}), h.src = r, setTimeout(() => {
|
|
1927
|
-
|
|
1925
|
+
m || c(new Error("Image load timed out"));
|
|
1928
1926
|
}, l);
|
|
1929
1927
|
});
|
|
1930
1928
|
}
|
|
@@ -2003,421 +2001,7 @@ const tn = {
|
|
|
2003
2001
|
shouldReceiveBuilderProps: {
|
|
2004
2002
|
builderBlock: !0
|
|
2005
2003
|
}
|
|
2006
|
-
},
|
|
2007
|
-
name: "PersonalizationContainer",
|
|
2008
|
-
shouldReceiveBuilderProps: {
|
|
2009
|
-
builderBlock: !0,
|
|
2010
|
-
builderContext: !0
|
|
2011
|
-
},
|
|
2012
|
-
noWrap: !0,
|
|
2013
|
-
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
|
|
2014
|
-
canHaveChildren: !0,
|
|
2015
|
-
inputs: [{
|
|
2016
|
-
name: "variants",
|
|
2017
|
-
defaultValue: [],
|
|
2018
|
-
behavior: "personalizationVariantList",
|
|
2019
|
-
type: "list",
|
|
2020
|
-
subFields: [{
|
|
2021
|
-
name: "name",
|
|
2022
|
-
type: "text"
|
|
2023
|
-
}, {
|
|
2024
|
-
name: "query",
|
|
2025
|
-
friendlyName: "Targeting rules",
|
|
2026
|
-
type: "BuilderQuery",
|
|
2027
|
-
defaultValue: []
|
|
2028
|
-
}, {
|
|
2029
|
-
name: "startDate",
|
|
2030
|
-
type: "date"
|
|
2031
|
-
}, {
|
|
2032
|
-
name: "endDate",
|
|
2033
|
-
type: "date"
|
|
2034
|
-
}, {
|
|
2035
|
-
name: "blocks",
|
|
2036
|
-
type: "uiBlocks",
|
|
2037
|
-
hideFromUI: !0,
|
|
2038
|
-
defaultValue: []
|
|
2039
|
-
}]
|
|
2040
|
-
}]
|
|
2041
|
-
};
|
|
2042
|
-
function Q(e) {
|
|
2043
|
-
return /* @__PURE__ */ s(
|
|
2044
|
-
"script",
|
|
2045
|
-
{
|
|
2046
|
-
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
2047
|
-
"data-id": e.id,
|
|
2048
|
-
nonce: e.nonce || ""
|
|
2049
|
-
}
|
|
2050
|
-
);
|
|
2051
|
-
}
|
|
2052
|
-
function sn(e, t, n, i) {
|
|
2053
|
-
function o(c) {
|
|
2054
|
-
return typeof c == "string";
|
|
2055
|
-
}
|
|
2056
|
-
function a(c) {
|
|
2057
|
-
return typeof c == "number";
|
|
2058
|
-
}
|
|
2059
|
-
function r(c, h) {
|
|
2060
|
-
return (() => {
|
|
2061
|
-
const f = h.property, p = h.operator;
|
|
2062
|
-
let d = h.value;
|
|
2063
|
-
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (d = h.value.slice(0, -1)), !(f && p))
|
|
2064
|
-
return !0;
|
|
2065
|
-
if (Array.isArray(d))
|
|
2066
|
-
return p === "isNot" ? d.every((v) => r(c, {
|
|
2067
|
-
property: f,
|
|
2068
|
-
operator: p,
|
|
2069
|
-
value: v
|
|
2070
|
-
})) : !!d.find((v) => r(c, {
|
|
2071
|
-
property: f,
|
|
2072
|
-
operator: p,
|
|
2073
|
-
value: v
|
|
2074
|
-
}));
|
|
2075
|
-
const g = c[f];
|
|
2076
|
-
if (Array.isArray(g))
|
|
2077
|
-
return g.includes(d);
|
|
2078
|
-
switch (p) {
|
|
2079
|
-
case "is":
|
|
2080
|
-
return g === d;
|
|
2081
|
-
case "isNot":
|
|
2082
|
-
return g !== d;
|
|
2083
|
-
case "contains":
|
|
2084
|
-
return (o(g) || Array.isArray(g)) && g.includes(String(d));
|
|
2085
|
-
case "startsWith":
|
|
2086
|
-
return o(g) && g.startsWith(String(d));
|
|
2087
|
-
case "endsWith":
|
|
2088
|
-
return o(g) && g.endsWith(String(d));
|
|
2089
|
-
case "greaterThan":
|
|
2090
|
-
return a(g) && a(d) && g > d;
|
|
2091
|
-
case "lessThan":
|
|
2092
|
-
return a(g) && a(d) && g < d;
|
|
2093
|
-
case "greaterThanOrEqualTo":
|
|
2094
|
-
return a(g) && a(d) && g >= d;
|
|
2095
|
-
case "lessThanOrEqualTo":
|
|
2096
|
-
return a(g) && a(d) && g <= d;
|
|
2097
|
-
default:
|
|
2098
|
-
return !1;
|
|
2099
|
-
}
|
|
2100
|
-
})();
|
|
2101
|
-
}
|
|
2102
|
-
const l = {
|
|
2103
|
-
query: t,
|
|
2104
|
-
startDate: n,
|
|
2105
|
-
endDate: i
|
|
2106
|
-
}, u = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2107
|
-
return l.startDate && new Date(l.startDate) > u || l.endDate && new Date(l.endDate) < u ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => r(e, c));
|
|
2108
|
-
}
|
|
2109
|
-
const cn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2110
|
-
if (!navigator.cookieEnabled) {
|
|
2111
|
-
return;
|
|
2112
|
-
}
|
|
2113
|
-
function getCookie(name) {
|
|
2114
|
-
const nameEQ = name + '=';
|
|
2115
|
-
const ca = document.cookie.split(';');
|
|
2116
|
-
for (let i = 0; i < ca.length; i++) {
|
|
2117
|
-
let c = ca[i];
|
|
2118
|
-
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
|
2119
|
-
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
|
2120
|
-
}
|
|
2121
|
-
return null;
|
|
2122
|
-
}
|
|
2123
|
-
function removeVariants() {
|
|
2124
|
-
variants?.forEach(function (_, index) {
|
|
2125
|
-
document.querySelector('template[data-variant-id="' + blockId + '-' + index + '"]')?.remove();
|
|
2126
|
-
});
|
|
2127
|
-
document.querySelector('script[data-id="variants-script-' + blockId + '"]')?.remove();
|
|
2128
|
-
document.querySelector('style[data-id="variants-styles-' + blockId + '"]')?.remove();
|
|
2129
|
-
}
|
|
2130
|
-
const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
|
|
2131
|
-
if (locale) {
|
|
2132
|
-
attributes.locale = locale;
|
|
2133
|
-
}
|
|
2134
|
-
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
2135
|
-
return filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
2136
|
-
});
|
|
2137
|
-
const isDebug = location.href.includes('builder.debug=true');
|
|
2138
|
-
if (isDebug) {
|
|
2139
|
-
console.debug('PersonalizationContainer', {
|
|
2140
|
-
attributes,
|
|
2141
|
-
variants,
|
|
2142
|
-
winningVariantIndex
|
|
2143
|
-
});
|
|
2144
|
-
}
|
|
2145
|
-
if (winningVariantIndex !== -1) {
|
|
2146
|
-
const winningVariant = document.querySelector('template[data-variant-id="' + blockId + '-' + winningVariantIndex + '"]');
|
|
2147
|
-
if (winningVariant) {
|
|
2148
|
-
const parentNode = winningVariant.parentNode;
|
|
2149
|
-
if (parentNode) {
|
|
2150
|
-
const newParent = parentNode.cloneNode(false);
|
|
2151
|
-
newParent.appendChild(winningVariant.content.firstChild);
|
|
2152
|
-
newParent.appendChild(winningVariant.content.lastChild);
|
|
2153
|
-
parentNode.parentNode?.replaceChild(newParent, parentNode);
|
|
2154
|
-
}
|
|
2155
|
-
if (isDebug) {
|
|
2156
|
-
console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);
|
|
2157
|
-
}
|
|
2158
|
-
}
|
|
2159
|
-
} else if (variants && variants.length > 0) {
|
|
2160
|
-
removeVariants();
|
|
2161
|
-
}
|
|
2162
|
-
}`, un = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2163
|
-
function isString(val) {
|
|
2164
|
-
return typeof val === 'string';
|
|
2165
|
-
}
|
|
2166
|
-
function isNumber(val) {
|
|
2167
|
-
return typeof val === 'number';
|
|
2168
|
-
}
|
|
2169
|
-
function objectMatchesQuery(userattr, query) {
|
|
2170
|
-
const result = (() => {
|
|
2171
|
-
const property = query.property;
|
|
2172
|
-
const operator = query.operator;
|
|
2173
|
-
let testValue = query.value;
|
|
2174
|
-
if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
|
|
2175
|
-
testValue = query.value.slice(0, -1);
|
|
2176
|
-
}
|
|
2177
|
-
if (!(property && operator)) {
|
|
2178
|
-
return true;
|
|
2179
|
-
}
|
|
2180
|
-
if (Array.isArray(testValue)) {
|
|
2181
|
-
if (operator === 'isNot') {
|
|
2182
|
-
return testValue.every(val => objectMatchesQuery(userattr, {
|
|
2183
|
-
property,
|
|
2184
|
-
operator,
|
|
2185
|
-
value: val
|
|
2186
|
-
}));
|
|
2187
|
-
}
|
|
2188
|
-
return !!testValue.find(val => objectMatchesQuery(userattr, {
|
|
2189
|
-
property,
|
|
2190
|
-
operator,
|
|
2191
|
-
value: val
|
|
2192
|
-
}));
|
|
2193
|
-
}
|
|
2194
|
-
const value = userattr[property];
|
|
2195
|
-
if (Array.isArray(value)) {
|
|
2196
|
-
return value.includes(testValue);
|
|
2197
|
-
}
|
|
2198
|
-
switch (operator) {
|
|
2199
|
-
case 'is':
|
|
2200
|
-
return value === testValue;
|
|
2201
|
-
case 'isNot':
|
|
2202
|
-
return value !== testValue;
|
|
2203
|
-
case 'contains':
|
|
2204
|
-
return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
|
|
2205
|
-
case 'startsWith':
|
|
2206
|
-
return isString(value) && value.startsWith(String(testValue));
|
|
2207
|
-
case 'endsWith':
|
|
2208
|
-
return isString(value) && value.endsWith(String(testValue));
|
|
2209
|
-
case 'greaterThan':
|
|
2210
|
-
return isNumber(value) && isNumber(testValue) && value > testValue;
|
|
2211
|
-
case 'lessThan':
|
|
2212
|
-
return isNumber(value) && isNumber(testValue) && value < testValue;
|
|
2213
|
-
case 'greaterThanOrEqualTo':
|
|
2214
|
-
return isNumber(value) && isNumber(testValue) && value >= testValue;
|
|
2215
|
-
case 'lessThanOrEqualTo':
|
|
2216
|
-
return isNumber(value) && isNumber(testValue) && value <= testValue;
|
|
2217
|
-
default:
|
|
2218
|
-
return false;
|
|
2219
|
-
}
|
|
2220
|
-
})();
|
|
2221
|
-
return result;
|
|
2222
|
-
}
|
|
2223
|
-
const item = {
|
|
2224
|
-
query,
|
|
2225
|
-
startDate,
|
|
2226
|
-
endDate
|
|
2227
|
-
};
|
|
2228
|
-
const now = userAttributes.date && new Date(userAttributes.date) || new Date();
|
|
2229
|
-
if (item.startDate && new Date(item.startDate) > now) {
|
|
2230
|
-
return false;
|
|
2231
|
-
} else if (item.endDate && new Date(item.endDate) < now) {
|
|
2232
|
-
return false;
|
|
2233
|
-
}
|
|
2234
|
-
if (!item.query || !item.query.length) {
|
|
2235
|
-
return true;
|
|
2236
|
-
}
|
|
2237
|
-
return item.query.every(filter => {
|
|
2238
|
-
return objectMatchesQuery(userAttributes, filter);
|
|
2239
|
-
});
|
|
2240
|
-
}`;
|
|
2241
|
-
function dn(e, t) {
|
|
2242
|
-
return !(!(e && e.length > 0) || !t || L());
|
|
2243
|
-
}
|
|
2244
|
-
function mn(e) {
|
|
2245
|
-
const {
|
|
2246
|
-
variants: t,
|
|
2247
|
-
previewingIndex: n,
|
|
2248
|
-
isHydrated: i,
|
|
2249
|
-
filteredVariants: o,
|
|
2250
|
-
fallbackBlocks: a
|
|
2251
|
-
} = e;
|
|
2252
|
-
if (i && W() && typeof n == "number" && n < ((t == null ? void 0 : t.length) || 0) && !(o != null && o.length))
|
|
2253
|
-
return {
|
|
2254
|
-
blocks: t[n].blocks,
|
|
2255
|
-
path: `component.options.variants.${n}.blocks`
|
|
2256
|
-
};
|
|
2257
|
-
const l = o == null ? void 0 : o[0];
|
|
2258
|
-
return l ? {
|
|
2259
|
-
blocks: l.blocks,
|
|
2260
|
-
path: `component.options.variants.${t == null ? void 0 : t.indexOf(l)}.blocks`
|
|
2261
|
-
} : {
|
|
2262
|
-
blocks: a || [],
|
|
2263
|
-
path: void 0
|
|
2264
|
-
};
|
|
2265
|
-
}
|
|
2266
|
-
const fn = (e, t, n) => `
|
|
2267
|
-
(function() {
|
|
2268
|
-
${un}
|
|
2269
|
-
${cn}
|
|
2270
|
-
getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
|
|
2271
|
-
})();
|
|
2272
|
-
`;
|
|
2273
|
-
function hn(e) {
|
|
2274
|
-
var g, v, y, x, I, B, C;
|
|
2275
|
-
const t = D(null), [n, i] = R(
|
|
2276
|
-
() => de.getUserAttributes()
|
|
2277
|
-
), [o, a] = R(
|
|
2278
|
-
() => {
|
|
2279
|
-
var S, T, w;
|
|
2280
|
-
return fn(
|
|
2281
|
-
e.variants,
|
|
2282
|
-
((S = e.builderBlock) == null ? void 0 : S.id) || "none",
|
|
2283
|
-
(w = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : w.locale
|
|
2284
|
-
);
|
|
2285
|
-
}
|
|
2286
|
-
), [r, l] = R(() => []), [u, c] = R(
|
|
2287
|
-
() => {
|
|
2288
|
-
var S;
|
|
2289
|
-
return dn(
|
|
2290
|
-
e.variants,
|
|
2291
|
-
q((S = e.builderContext) == null ? void 0 : S.canTrack)
|
|
2292
|
-
);
|
|
2293
|
-
}
|
|
2294
|
-
), [h, b] = R(() => !1);
|
|
2295
|
-
function f() {
|
|
2296
|
-
return (e.variants || []).filter((S) => {
|
|
2297
|
-
var T, w, m, k;
|
|
2298
|
-
return sn(
|
|
2299
|
-
{
|
|
2300
|
-
...(w = (T = e.builderContext) == null ? void 0 : T.rootState) != null && w.locale ? {
|
|
2301
|
-
locale: (k = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : k.locale
|
|
2302
|
-
} : {},
|
|
2303
|
-
...n
|
|
2304
|
-
},
|
|
2305
|
-
S.query,
|
|
2306
|
-
S.startDate,
|
|
2307
|
-
S.endDate
|
|
2308
|
-
);
|
|
2309
|
-
});
|
|
2310
|
-
}
|
|
2311
|
-
function p() {
|
|
2312
|
-
var S;
|
|
2313
|
-
return mn({
|
|
2314
|
-
variants: e.variants,
|
|
2315
|
-
fallbackBlocks: (S = e.builderBlock) == null ? void 0 : S.children,
|
|
2316
|
-
isHydrated: h,
|
|
2317
|
-
filteredVariants: f(),
|
|
2318
|
-
previewingIndex: e.previewingIndex
|
|
2319
|
-
});
|
|
2320
|
-
}
|
|
2321
|
-
function d() {
|
|
2322
|
-
return (e.variants || []).map(
|
|
2323
|
-
(S, T) => {
|
|
2324
|
-
var w;
|
|
2325
|
-
return `[data-variant-id="${(w = e.builderBlock) == null ? void 0 : w.id}-${T}"] { display: none; } `;
|
|
2326
|
-
}
|
|
2327
|
-
).join("");
|
|
2328
|
-
}
|
|
2329
|
-
return A(() => {
|
|
2330
|
-
var T;
|
|
2331
|
-
b(!0);
|
|
2332
|
-
const S = de.subscribeOnUserAttributesChange(
|
|
2333
|
-
(w) => {
|
|
2334
|
-
i(w);
|
|
2335
|
-
}
|
|
2336
|
-
);
|
|
2337
|
-
if (!(W() || X())) {
|
|
2338
|
-
const w = f()[0];
|
|
2339
|
-
t.current && (t.current.dispatchEvent(
|
|
2340
|
-
new CustomEvent("builder.variantLoaded", {
|
|
2341
|
-
detail: {
|
|
2342
|
-
variant: w || "default",
|
|
2343
|
-
content: (T = e.builderContext) == null ? void 0 : T.content
|
|
2344
|
-
},
|
|
2345
|
-
bubbles: !0
|
|
2346
|
-
})
|
|
2347
|
-
), new IntersectionObserver((k) => {
|
|
2348
|
-
k.forEach((V) => {
|
|
2349
|
-
var E;
|
|
2350
|
-
V.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2351
|
-
new CustomEvent("builder.variantDisplayed", {
|
|
2352
|
-
detail: {
|
|
2353
|
-
variant: w || "default",
|
|
2354
|
-
content: (E = e.builderContext) == null ? void 0 : E.content
|
|
2355
|
-
},
|
|
2356
|
-
bubbles: !0
|
|
2357
|
-
})
|
|
2358
|
-
);
|
|
2359
|
-
});
|
|
2360
|
-
}).observe(t.current));
|
|
2361
|
-
}
|
|
2362
|
-
r.push(S);
|
|
2363
|
-
}, []), A(() => () => {
|
|
2364
|
-
r.forEach((S) => S());
|
|
2365
|
-
}, []), /* @__PURE__ */ N(
|
|
2366
|
-
"div",
|
|
2367
|
-
{
|
|
2368
|
-
ref: t,
|
|
2369
|
-
...e.attributes,
|
|
2370
|
-
className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.class) || ""}`,
|
|
2371
|
-
children: [
|
|
2372
|
-
u ? /* @__PURE__ */ N(P, { children: [
|
|
2373
|
-
(v = e.variants) == null ? void 0 : v.map((S, T) => {
|
|
2374
|
-
var w, m;
|
|
2375
|
-
return /* @__PURE__ */ s(
|
|
2376
|
-
"template",
|
|
2377
|
-
{
|
|
2378
|
-
"data-variant-id": `${(w = e.builderBlock) == null ? void 0 : w.id}-${T}`,
|
|
2379
|
-
children: /* @__PURE__ */ s(
|
|
2380
|
-
$,
|
|
2381
|
-
{
|
|
2382
|
-
blocks: S.blocks,
|
|
2383
|
-
parent: (m = e.builderBlock) == null ? void 0 : m.id,
|
|
2384
|
-
path: `component.options.variants.${T}.blocks`
|
|
2385
|
-
}
|
|
2386
|
-
)
|
|
2387
|
-
},
|
|
2388
|
-
T
|
|
2389
|
-
);
|
|
2390
|
-
}),
|
|
2391
|
-
/* @__PURE__ */ s(
|
|
2392
|
-
M,
|
|
2393
|
-
{
|
|
2394
|
-
nonce: ((y = e.builderContext) == null ? void 0 : y.nonce) || "",
|
|
2395
|
-
styles: d(),
|
|
2396
|
-
id: `variants-styles-${(x = e.builderBlock) == null ? void 0 : x.id}`
|
|
2397
|
-
}
|
|
2398
|
-
),
|
|
2399
|
-
/* @__PURE__ */ s(
|
|
2400
|
-
Q,
|
|
2401
|
-
{
|
|
2402
|
-
nonce: ((I = e.builderContext) == null ? void 0 : I.nonce) || "",
|
|
2403
|
-
scriptStr: o,
|
|
2404
|
-
id: `variants-script-${(B = e.builderBlock) == null ? void 0 : B.id}`
|
|
2405
|
-
}
|
|
2406
|
-
)
|
|
2407
|
-
] }) : null,
|
|
2408
|
-
/* @__PURE__ */ s(
|
|
2409
|
-
$,
|
|
2410
|
-
{
|
|
2411
|
-
blocks: p().blocks,
|
|
2412
|
-
parent: (C = e.builderBlock) == null ? void 0 : C.id,
|
|
2413
|
-
path: p().path
|
|
2414
|
-
}
|
|
2415
|
-
)
|
|
2416
|
-
]
|
|
2417
|
-
}
|
|
2418
|
-
);
|
|
2419
|
-
}
|
|
2420
|
-
const gn = {
|
|
2004
|
+
}, rn = {
|
|
2421
2005
|
name: "Core:Section",
|
|
2422
2006
|
static: !0,
|
|
2423
2007
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2456,7 +2040,7 @@ const gn = {
|
|
|
2456
2040
|
}
|
|
2457
2041
|
}
|
|
2458
2042
|
}]
|
|
2459
|
-
},
|
|
2043
|
+
}, ln = {
|
|
2460
2044
|
name: "Slot",
|
|
2461
2045
|
isRSC: !0,
|
|
2462
2046
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2474,7 +2058,7 @@ const gn = {
|
|
|
2474
2058
|
builderComponents: !0
|
|
2475
2059
|
}
|
|
2476
2060
|
};
|
|
2477
|
-
function
|
|
2061
|
+
function sn(e) {
|
|
2478
2062
|
var t, n, i;
|
|
2479
2063
|
return /* @__PURE__ */ s(
|
|
2480
2064
|
"div",
|
|
@@ -2486,7 +2070,7 @@ function pn(e) {
|
|
|
2486
2070
|
"builder-slot": e.name
|
|
2487
2071
|
},
|
|
2488
2072
|
children: /* @__PURE__ */ s(
|
|
2489
|
-
|
|
2073
|
+
F,
|
|
2490
2074
|
{
|
|
2491
2075
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2492
2076
|
path: `symbol.data.${e.name}`,
|
|
@@ -2498,7 +2082,7 @@ function pn(e) {
|
|
|
2498
2082
|
}
|
|
2499
2083
|
);
|
|
2500
2084
|
}
|
|
2501
|
-
const
|
|
2085
|
+
const cn = {
|
|
2502
2086
|
name: "Symbol",
|
|
2503
2087
|
noWrap: !0,
|
|
2504
2088
|
static: !0,
|
|
@@ -2537,7 +2121,7 @@ const yn = {
|
|
|
2537
2121
|
builderComponents: !0,
|
|
2538
2122
|
builderLinkComponent: !0
|
|
2539
2123
|
}
|
|
2540
|
-
},
|
|
2124
|
+
}, te = {
|
|
2541
2125
|
"@type": "@builder.io/sdk:Element",
|
|
2542
2126
|
responsiveStyles: {
|
|
2543
2127
|
large: {
|
|
@@ -2559,7 +2143,7 @@ const yn = {
|
|
|
2559
2143
|
text: "New tab"
|
|
2560
2144
|
}
|
|
2561
2145
|
}
|
|
2562
|
-
},
|
|
2146
|
+
}, ne = {
|
|
2563
2147
|
"@type": "@builder.io/sdk:Element",
|
|
2564
2148
|
responsiveStyles: {
|
|
2565
2149
|
large: {
|
|
@@ -2575,7 +2159,7 @@ const yn = {
|
|
|
2575
2159
|
text: "New tab content "
|
|
2576
2160
|
}
|
|
2577
2161
|
}
|
|
2578
|
-
},
|
|
2162
|
+
}, dn = {
|
|
2579
2163
|
name: "Builder: Tabs",
|
|
2580
2164
|
inputs: [{
|
|
2581
2165
|
name: "tabs",
|
|
@@ -2585,16 +2169,16 @@ const yn = {
|
|
|
2585
2169
|
name: "label",
|
|
2586
2170
|
type: "uiBlocks",
|
|
2587
2171
|
hideFromUI: !0,
|
|
2588
|
-
defaultValue: [
|
|
2172
|
+
defaultValue: [te]
|
|
2589
2173
|
}, {
|
|
2590
2174
|
name: "content",
|
|
2591
2175
|
type: "uiBlocks",
|
|
2592
2176
|
hideFromUI: !0,
|
|
2593
|
-
defaultValue: [
|
|
2177
|
+
defaultValue: [ne]
|
|
2594
2178
|
}],
|
|
2595
2179
|
defaultValue: [{
|
|
2596
2180
|
label: [{
|
|
2597
|
-
...
|
|
2181
|
+
...te,
|
|
2598
2182
|
component: {
|
|
2599
2183
|
name: "Text",
|
|
2600
2184
|
options: {
|
|
@@ -2603,7 +2187,7 @@ const yn = {
|
|
|
2603
2187
|
}
|
|
2604
2188
|
}],
|
|
2605
2189
|
content: [{
|
|
2606
|
-
...
|
|
2190
|
+
...ne,
|
|
2607
2191
|
component: {
|
|
2608
2192
|
name: "Text",
|
|
2609
2193
|
options: {
|
|
@@ -2613,7 +2197,7 @@ const yn = {
|
|
|
2613
2197
|
}]
|
|
2614
2198
|
}, {
|
|
2615
2199
|
label: [{
|
|
2616
|
-
...
|
|
2200
|
+
...te,
|
|
2617
2201
|
component: {
|
|
2618
2202
|
name: "Text",
|
|
2619
2203
|
options: {
|
|
@@ -2622,7 +2206,7 @@ const yn = {
|
|
|
2622
2206
|
}
|
|
2623
2207
|
}],
|
|
2624
2208
|
content: [{
|
|
2625
|
-
...
|
|
2209
|
+
...ne,
|
|
2626
2210
|
component: {
|
|
2627
2211
|
name: "Text",
|
|
2628
2212
|
options: {
|
|
@@ -2679,7 +2263,7 @@ const yn = {
|
|
|
2679
2263
|
builderLinkComponent: !0
|
|
2680
2264
|
}
|
|
2681
2265
|
};
|
|
2682
|
-
function
|
|
2266
|
+
function un(e) {
|
|
2683
2267
|
var a;
|
|
2684
2268
|
const [t, n] = R(
|
|
2685
2269
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2690,7 +2274,7 @@ function xn(e) {
|
|
|
2690
2274
|
function o(r) {
|
|
2691
2275
|
r === t && e.collapsible ? n(-1) : n(r);
|
|
2692
2276
|
}
|
|
2693
|
-
return /* @__PURE__ */
|
|
2277
|
+
return /* @__PURE__ */ B("div", { children: [
|
|
2694
2278
|
/* @__PURE__ */ s(
|
|
2695
2279
|
"div",
|
|
2696
2280
|
{
|
|
@@ -2708,9 +2292,9 @@ function xn(e) {
|
|
|
2708
2292
|
style: {
|
|
2709
2293
|
...t === l ? e.activeTabStyle : {}
|
|
2710
2294
|
},
|
|
2711
|
-
onClick: (
|
|
2295
|
+
onClick: (d) => o(l),
|
|
2712
2296
|
children: /* @__PURE__ */ s(
|
|
2713
|
-
|
|
2297
|
+
F,
|
|
2714
2298
|
{
|
|
2715
2299
|
parent: e.builderBlock.id,
|
|
2716
2300
|
path: `tabs.${l}.label`,
|
|
@@ -2726,7 +2310,7 @@ function xn(e) {
|
|
|
2726
2310
|
}
|
|
2727
2311
|
),
|
|
2728
2312
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2729
|
-
|
|
2313
|
+
F,
|
|
2730
2314
|
{
|
|
2731
2315
|
parent: e.builderBlock.id,
|
|
2732
2316
|
path: `tabs.${t}.content`,
|
|
@@ -2738,7 +2322,7 @@ function xn(e) {
|
|
|
2738
2322
|
) }) : null
|
|
2739
2323
|
] });
|
|
2740
2324
|
}
|
|
2741
|
-
const
|
|
2325
|
+
const mn = {
|
|
2742
2326
|
shouldReceiveBuilderProps: {
|
|
2743
2327
|
builderBlock: !1,
|
|
2744
2328
|
builderContext: !0
|
|
@@ -2761,7 +2345,7 @@ const Sn = {
|
|
|
2761
2345
|
textAlign: "center"
|
|
2762
2346
|
}
|
|
2763
2347
|
};
|
|
2764
|
-
function
|
|
2348
|
+
function fn(e) {
|
|
2765
2349
|
var t;
|
|
2766
2350
|
return /* @__PURE__ */ s(
|
|
2767
2351
|
"div",
|
|
@@ -2774,7 +2358,7 @@ function kn(e) {
|
|
|
2774
2358
|
}
|
|
2775
2359
|
);
|
|
2776
2360
|
}
|
|
2777
|
-
const
|
|
2361
|
+
const hn = {
|
|
2778
2362
|
name: "Custom Code",
|
|
2779
2363
|
static: !0,
|
|
2780
2364
|
requiredPermissions: ["editCode"],
|
|
@@ -2797,15 +2381,15 @@ const Cn = {
|
|
|
2797
2381
|
advanced: !0
|
|
2798
2382
|
}]
|
|
2799
2383
|
};
|
|
2800
|
-
function
|
|
2801
|
-
const t =
|
|
2384
|
+
function gn(e) {
|
|
2385
|
+
const t = O(null), [n, i] = R(() => []), [o, a] = R(() => []);
|
|
2802
2386
|
return A(() => {
|
|
2803
2387
|
var l;
|
|
2804
2388
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2805
2389
|
return;
|
|
2806
2390
|
const r = t.current.getElementsByTagName("script");
|
|
2807
|
-
for (let
|
|
2808
|
-
const c = r[
|
|
2391
|
+
for (let d = 0; d < r.length; d++) {
|
|
2392
|
+
const c = r[d];
|
|
2809
2393
|
if (c.src) {
|
|
2810
2394
|
if (n.includes(c.src))
|
|
2811
2395
|
continue;
|
|
@@ -2835,7 +2419,7 @@ function wn(e) {
|
|
|
2835
2419
|
}
|
|
2836
2420
|
);
|
|
2837
2421
|
}
|
|
2838
|
-
const
|
|
2422
|
+
const bn = {
|
|
2839
2423
|
name: "Embed",
|
|
2840
2424
|
static: !0,
|
|
2841
2425
|
inputs: [{
|
|
@@ -2850,29 +2434,29 @@ const Tn = {
|
|
|
2850
2434
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2851
2435
|
hideFromUI: !0
|
|
2852
2436
|
}]
|
|
2853
|
-
},
|
|
2854
|
-
function
|
|
2855
|
-
const t =
|
|
2856
|
-
function
|
|
2437
|
+
}, pn = ["text/javascript", "application/javascript", "application/ecmascript"], yn = (e) => pn.includes(e.type);
|
|
2438
|
+
function xn(e) {
|
|
2439
|
+
const t = O(null), [n, i] = R(() => []), [o, a] = R(() => []), [r, l] = R(() => !1);
|
|
2440
|
+
function d() {
|
|
2857
2441
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2858
2442
|
return;
|
|
2859
2443
|
const c = t.current.getElementsByTagName("script");
|
|
2860
2444
|
for (let h = 0; h < c.length; h++) {
|
|
2861
|
-
const
|
|
2862
|
-
if (
|
|
2863
|
-
n.push(
|
|
2864
|
-
const
|
|
2865
|
-
|
|
2866
|
-
} else if (
|
|
2445
|
+
const m = c[h];
|
|
2446
|
+
if (m.src && !n.includes(m.src)) {
|
|
2447
|
+
n.push(m.src);
|
|
2448
|
+
const u = document.createElement("script");
|
|
2449
|
+
u.async = !0, u.src = m.src, document.head.appendChild(u);
|
|
2450
|
+
} else if (yn(m) && !o.includes(m.innerText))
|
|
2867
2451
|
try {
|
|
2868
|
-
o.push(
|
|
2869
|
-
} catch (
|
|
2870
|
-
console.warn("`Embed`: Error running script:",
|
|
2452
|
+
o.push(m.innerText), new Function(m.innerText)();
|
|
2453
|
+
} catch (u) {
|
|
2454
|
+
console.warn("`Embed`: Error running script:", u);
|
|
2871
2455
|
}
|
|
2872
2456
|
}
|
|
2873
2457
|
}
|
|
2874
2458
|
return A(() => {
|
|
2875
|
-
t.current && !r && (l(!0),
|
|
2459
|
+
t.current && !r && (l(!0), d());
|
|
2876
2460
|
}, [t.current, r]), /* @__PURE__ */ s(
|
|
2877
2461
|
"div",
|
|
2878
2462
|
{
|
|
@@ -2882,7 +2466,7 @@ function Rn(e) {
|
|
|
2882
2466
|
}
|
|
2883
2467
|
);
|
|
2884
2468
|
}
|
|
2885
|
-
const
|
|
2469
|
+
const vn = {
|
|
2886
2470
|
name: "Form:Form",
|
|
2887
2471
|
// editableTags: ['builder-form-error']
|
|
2888
2472
|
defaults: {
|
|
@@ -3119,119 +2703,118 @@ const Pn = {
|
|
|
3119
2703
|
builderComponents: !0,
|
|
3120
2704
|
builderLinkComponent: !0
|
|
3121
2705
|
}
|
|
3122
|
-
},
|
|
2706
|
+
}, Sn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], kn = () => {
|
|
3123
2707
|
const e = process.env.NODE_ENV || "production";
|
|
3124
|
-
return
|
|
2708
|
+
return Sn.includes(e) ? e : "production";
|
|
3125
2709
|
};
|
|
3126
|
-
function
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
const d = {
|
|
2710
|
+
function Cn(e) {
|
|
2711
|
+
const t = O(null), [n, i] = R(() => "unsubmitted"), [o, a] = R(() => null), [r, l] = R(() => "");
|
|
2712
|
+
function d(m) {
|
|
2713
|
+
var k, g;
|
|
2714
|
+
const u = {
|
|
3132
2715
|
...e.builderContext.rootState,
|
|
3133
|
-
...
|
|
2716
|
+
...m
|
|
3134
2717
|
};
|
|
3135
|
-
e.builderContext.rootSetState ? (
|
|
2718
|
+
e.builderContext.rootSetState ? (g = (k = e.builderContext).rootSetState) == null || g.call(k, u) : e.builderContext.rootState = u;
|
|
3136
2719
|
}
|
|
3137
2720
|
function c() {
|
|
3138
2721
|
return W() && e.previewState || n;
|
|
3139
2722
|
}
|
|
3140
|
-
function h(
|
|
3141
|
-
var
|
|
3142
|
-
const
|
|
2723
|
+
function h(m) {
|
|
2724
|
+
var k;
|
|
2725
|
+
const u = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3143
2726
|
if (e.sendSubmissionsTo === "zapier")
|
|
3144
|
-
|
|
3145
|
-
else if (
|
|
2727
|
+
m.preventDefault();
|
|
2728
|
+
else if (u) {
|
|
3146
2729
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3147
|
-
|
|
2730
|
+
m.preventDefault();
|
|
3148
2731
|
return;
|
|
3149
2732
|
}
|
|
3150
|
-
|
|
3151
|
-
const
|
|
3152
|
-
let
|
|
3153
|
-
const
|
|
3154
|
-
let
|
|
3155
|
-
const
|
|
3156
|
-
if (
|
|
3157
|
-
if (
|
|
3158
|
-
if (
|
|
3159
|
-
return
|
|
3160
|
-
key:
|
|
3161
|
-
value:
|
|
2733
|
+
m.preventDefault();
|
|
2734
|
+
const g = m.currentTarget || m.target, v = e.customHeaders || {};
|
|
2735
|
+
let y;
|
|
2736
|
+
const b = new FormData(g), p = Array.from(g.querySelectorAll("input,select,textarea")).filter((f) => !!f.name).map((f) => {
|
|
2737
|
+
let S;
|
|
2738
|
+
const x = f.name;
|
|
2739
|
+
if (f instanceof HTMLInputElement)
|
|
2740
|
+
if (f.type === "radio") {
|
|
2741
|
+
if (f.checked)
|
|
2742
|
+
return S = f.name, {
|
|
2743
|
+
key: x,
|
|
2744
|
+
value: S
|
|
3162
2745
|
};
|
|
3163
|
-
} else if (
|
|
3164
|
-
|
|
3165
|
-
else if (
|
|
3166
|
-
const
|
|
3167
|
-
isNaN(
|
|
2746
|
+
} else if (f.type === "checkbox")
|
|
2747
|
+
S = f.checked;
|
|
2748
|
+
else if (f.type === "number" || f.type === "range") {
|
|
2749
|
+
const T = f.valueAsNumber;
|
|
2750
|
+
isNaN(T) || (S = T);
|
|
3168
2751
|
} else
|
|
3169
|
-
|
|
2752
|
+
f.type === "file" ? S = f.files : S = f.value;
|
|
3170
2753
|
else
|
|
3171
|
-
|
|
2754
|
+
S = f.value;
|
|
3172
2755
|
return {
|
|
3173
|
-
key:
|
|
3174
|
-
value:
|
|
2756
|
+
key: x,
|
|
2757
|
+
value: S
|
|
3175
2758
|
};
|
|
3176
2759
|
});
|
|
3177
2760
|
let C = e.contentType;
|
|
3178
|
-
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(
|
|
3179
|
-
(
|
|
2761
|
+
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(p).forEach(({ value: f }) => {
|
|
2762
|
+
(f instanceof File || Array.isArray(f) && f[0] instanceof File || f instanceof FileList) && (C = "multipart/form-data");
|
|
3180
2763
|
}), C !== "application/json")
|
|
3181
|
-
|
|
2764
|
+
y = b;
|
|
3182
2765
|
else {
|
|
3183
|
-
const
|
|
3184
|
-
Array.from(
|
|
3185
|
-
|
|
3186
|
-
}),
|
|
2766
|
+
const f = {};
|
|
2767
|
+
Array.from(p).forEach(({ value: S, key: x }) => {
|
|
2768
|
+
Ne(f, x, S);
|
|
2769
|
+
}), y = JSON.stringify(f);
|
|
3187
2770
|
}
|
|
3188
|
-
C && C !== "multipart/form-data" && (
|
|
3189
|
-
const
|
|
3190
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2771
|
+
C && C !== "multipart/form-data" && (u && ((k = e.action) != null && k.includes("zapier.com")) || (v["content-type"] = C));
|
|
2772
|
+
const P = new CustomEvent("presubmit", { detail: { body: y } });
|
|
2773
|
+
if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
|
|
3191
2774
|
return;
|
|
3192
2775
|
i("sending");
|
|
3193
|
-
const
|
|
2776
|
+
const I = `${kn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3194
2777
|
e.sendSubmissionsToEmail || ""
|
|
3195
|
-
)}&name=${encodeURIComponent(e.name || "")}`, w = e.sendSubmissionsTo === "email" ?
|
|
3196
|
-
Ie(w), fetch(w, { body:
|
|
3197
|
-
async (
|
|
3198
|
-
let
|
|
3199
|
-
const
|
|
3200
|
-
if (
|
|
3201
|
-
let
|
|
3202
|
-
|
|
2778
|
+
)}&name=${encodeURIComponent(e.name || "")}`, w = e.sendSubmissionsTo === "email" ? I : e.action;
|
|
2779
|
+
Ie(w), fetch(w, { body: y, headers: v, method: e.method || "post" }).then(
|
|
2780
|
+
async (f) => {
|
|
2781
|
+
let S;
|
|
2782
|
+
const x = f.headers.get("content-type");
|
|
2783
|
+
if (x && x.indexOf("application/json") !== -1 ? S = await f.json() : S = await f.text(), !f.ok && e.errorMessagePath) {
|
|
2784
|
+
let T = Be(S, e.errorMessagePath);
|
|
2785
|
+
T && (typeof T != "string" && (T = JSON.stringify(T)), l(T), d({ formErrorMessage: T }));
|
|
3203
2786
|
}
|
|
3204
|
-
if (a(
|
|
3205
|
-
const
|
|
3206
|
-
detail: { res:
|
|
2787
|
+
if (a(S), i(f.ok ? "success" : "error"), f.ok) {
|
|
2788
|
+
const T = new CustomEvent("submit:success", {
|
|
2789
|
+
detail: { res: f, body: S }
|
|
3207
2790
|
});
|
|
3208
2791
|
if (t.current) {
|
|
3209
|
-
if (t.current.dispatchEvent(
|
|
2792
|
+
if (t.current.dispatchEvent(T), T.defaultPrevented)
|
|
3210
2793
|
return;
|
|
3211
2794
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3212
2795
|
}
|
|
3213
2796
|
if (e.successUrl)
|
|
3214
2797
|
if (t.current) {
|
|
3215
|
-
const
|
|
2798
|
+
const V = new CustomEvent("route", {
|
|
3216
2799
|
detail: { url: e.successUrl }
|
|
3217
2800
|
});
|
|
3218
|
-
t.current.dispatchEvent(
|
|
2801
|
+
t.current.dispatchEvent(V), V.defaultPrevented || (location.href = e.successUrl);
|
|
3219
2802
|
} else
|
|
3220
2803
|
location.href = e.successUrl;
|
|
3221
2804
|
}
|
|
3222
2805
|
},
|
|
3223
|
-
(
|
|
3224
|
-
const
|
|
3225
|
-
detail: { error:
|
|
2806
|
+
(f) => {
|
|
2807
|
+
const S = new CustomEvent("submit:error", {
|
|
2808
|
+
detail: { error: f }
|
|
3226
2809
|
});
|
|
3227
|
-
t.current && (t.current.dispatchEvent(
|
|
2810
|
+
t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (a(f), i("error"));
|
|
3228
2811
|
}
|
|
3229
2812
|
);
|
|
3230
2813
|
}
|
|
3231
2814
|
}
|
|
3232
|
-
return /* @__PURE__ */
|
|
2815
|
+
return /* @__PURE__ */ B(E, { children: [
|
|
3233
2816
|
" ",
|
|
3234
|
-
/* @__PURE__ */
|
|
2817
|
+
/* @__PURE__ */ B(
|
|
3235
2818
|
"form",
|
|
3236
2819
|
{
|
|
3237
2820
|
validate: e.validate,
|
|
@@ -3239,21 +2822,12 @@ function An(e) {
|
|
|
3239
2822
|
action: !e.sendWithJs && e.action,
|
|
3240
2823
|
method: e.method,
|
|
3241
2824
|
name: e.name,
|
|
3242
|
-
onSubmit: (
|
|
2825
|
+
onSubmit: (m) => h(m),
|
|
3243
2826
|
...e.attributes,
|
|
3244
2827
|
children: [
|
|
3245
|
-
e.
|
|
3246
|
-
j,
|
|
3247
|
-
{
|
|
3248
|
-
block: p,
|
|
3249
|
-
context: e.builderContext,
|
|
3250
|
-
registeredComponents: e.builderComponents,
|
|
3251
|
-
linkComponent: e.builderLinkComponent
|
|
3252
|
-
},
|
|
3253
|
-
`form-block-${d}`
|
|
3254
|
-
)) }) : null,
|
|
2828
|
+
e.children,
|
|
3255
2829
|
c() === "error" ? /* @__PURE__ */ s(
|
|
3256
|
-
|
|
2830
|
+
F,
|
|
3257
2831
|
{
|
|
3258
2832
|
path: "errorMessage",
|
|
3259
2833
|
blocks: e.errorMessage,
|
|
@@ -3261,16 +2835,16 @@ function An(e) {
|
|
|
3261
2835
|
}
|
|
3262
2836
|
) : null,
|
|
3263
2837
|
c() === "sending" ? /* @__PURE__ */ s(
|
|
3264
|
-
|
|
2838
|
+
F,
|
|
3265
2839
|
{
|
|
3266
2840
|
path: "sendingMessage",
|
|
3267
2841
|
blocks: e.sendingMessage,
|
|
3268
2842
|
context: e.builderContext
|
|
3269
2843
|
}
|
|
3270
2844
|
) : null,
|
|
3271
|
-
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-
|
|
2845
|
+
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(o, null, 2) }) : null,
|
|
3272
2846
|
c() === "success" ? /* @__PURE__ */ s(
|
|
3273
|
-
|
|
2847
|
+
F,
|
|
3274
2848
|
{
|
|
3275
2849
|
path: "successMessage",
|
|
3276
2850
|
blocks: e.successMessage,
|
|
@@ -3281,11 +2855,11 @@ function An(e) {
|
|
|
3281
2855
|
}
|
|
3282
2856
|
),
|
|
3283
2857
|
" ",
|
|
3284
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
2858
|
+
/* @__PURE__ */ s("style", { children: ".pre-7acc3b46 { padding: 10px; color: red; text-align: center; }" }),
|
|
3285
2859
|
" "
|
|
3286
2860
|
] });
|
|
3287
2861
|
}
|
|
3288
|
-
const
|
|
2862
|
+
const Tn = {
|
|
3289
2863
|
name: "Form:Input",
|
|
3290
2864
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3291
2865
|
inputs: [
|
|
@@ -3337,8 +2911,8 @@ const Nn = {
|
|
|
3337
2911
|
borderColor: "#ccc"
|
|
3338
2912
|
}
|
|
3339
2913
|
};
|
|
3340
|
-
function
|
|
3341
|
-
return /* @__PURE__ */
|
|
2914
|
+
function In(e) {
|
|
2915
|
+
return /* @__PURE__ */ Re(
|
|
3342
2916
|
"input",
|
|
3343
2917
|
{
|
|
3344
2918
|
...e.attributes,
|
|
@@ -3352,7 +2926,7 @@ function Wn(e) {
|
|
|
3352
2926
|
}
|
|
3353
2927
|
);
|
|
3354
2928
|
}
|
|
3355
|
-
const
|
|
2929
|
+
const wn = {
|
|
3356
2930
|
name: "Form:Select",
|
|
3357
2931
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3358
2932
|
defaultStyles: {
|
|
@@ -3395,9 +2969,9 @@ const $n = {
|
|
|
3395
2969
|
static: !0,
|
|
3396
2970
|
noWrap: !0
|
|
3397
2971
|
};
|
|
3398
|
-
function
|
|
2972
|
+
function En(e) {
|
|
3399
2973
|
var t;
|
|
3400
|
-
return /* @__PURE__ */
|
|
2974
|
+
return /* @__PURE__ */ Re(
|
|
3401
2975
|
"select",
|
|
3402
2976
|
{
|
|
3403
2977
|
...e.attributes,
|
|
@@ -3410,7 +2984,7 @@ function Dn(e) {
|
|
|
3410
2984
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3411
2985
|
);
|
|
3412
2986
|
}
|
|
3413
|
-
const
|
|
2987
|
+
const Rn = {
|
|
3414
2988
|
name: "Form:SubmitButton",
|
|
3415
2989
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3416
2990
|
defaultStyles: {
|
|
@@ -3436,10 +3010,10 @@ const Fn = {
|
|
|
3436
3010
|
// TODO: defaultChildren
|
|
3437
3011
|
// canHaveChildren: true,
|
|
3438
3012
|
};
|
|
3439
|
-
function
|
|
3013
|
+
function Pn(e) {
|
|
3440
3014
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3441
3015
|
}
|
|
3442
|
-
const
|
|
3016
|
+
const Bn = {
|
|
3443
3017
|
name: "Form:TextArea",
|
|
3444
3018
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3445
3019
|
inputs: [{
|
|
@@ -3476,7 +3050,7 @@ const Ln = {
|
|
|
3476
3050
|
static: !0,
|
|
3477
3051
|
noWrap: !0
|
|
3478
3052
|
};
|
|
3479
|
-
function
|
|
3053
|
+
function Vn(e) {
|
|
3480
3054
|
return /* @__PURE__ */ s(
|
|
3481
3055
|
"textarea",
|
|
3482
3056
|
{
|
|
@@ -3489,7 +3063,7 @@ function Un(e) {
|
|
|
3489
3063
|
}
|
|
3490
3064
|
);
|
|
3491
3065
|
}
|
|
3492
|
-
const
|
|
3066
|
+
const An = {
|
|
3493
3067
|
// friendlyName?
|
|
3494
3068
|
name: "Raw:Img",
|
|
3495
3069
|
hideFromInsertMenu: !0,
|
|
@@ -3498,13 +3072,13 @@ const _n = {
|
|
|
3498
3072
|
name: "image",
|
|
3499
3073
|
bubble: !0,
|
|
3500
3074
|
type: "file",
|
|
3501
|
-
allowedFileTypes:
|
|
3075
|
+
allowedFileTypes: de,
|
|
3502
3076
|
required: !0
|
|
3503
3077
|
}],
|
|
3504
3078
|
noWrap: !0,
|
|
3505
3079
|
static: !0
|
|
3506
3080
|
};
|
|
3507
|
-
function
|
|
3081
|
+
function Nn(e) {
|
|
3508
3082
|
return /* @__PURE__ */ s(
|
|
3509
3083
|
"img",
|
|
3510
3084
|
{
|
|
@@ -3519,7 +3093,7 @@ function qn(e) {
|
|
|
3519
3093
|
W() && e.imgSrc || "default-key"
|
|
3520
3094
|
);
|
|
3521
3095
|
}
|
|
3522
|
-
const
|
|
3096
|
+
const Wn = {
|
|
3523
3097
|
name: "Video",
|
|
3524
3098
|
canHaveChildren: !0,
|
|
3525
3099
|
defaultStyles: {
|
|
@@ -3530,14 +3104,14 @@ const Hn = {
|
|
|
3530
3104
|
inputs: [{
|
|
3531
3105
|
name: "video",
|
|
3532
3106
|
type: "file",
|
|
3533
|
-
allowedFileTypes:
|
|
3107
|
+
allowedFileTypes: on,
|
|
3534
3108
|
bubble: !0,
|
|
3535
3109
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3536
3110
|
required: !0
|
|
3537
3111
|
}, {
|
|
3538
3112
|
name: "posterImage",
|
|
3539
3113
|
type: "file",
|
|
3540
|
-
allowedFileTypes:
|
|
3114
|
+
allowedFileTypes: de,
|
|
3541
3115
|
helperText: "Image to show before the video plays"
|
|
3542
3116
|
}, {
|
|
3543
3117
|
name: "autoPlay",
|
|
@@ -3604,8 +3178,8 @@ const Hn = {
|
|
|
3604
3178
|
builderBlock: !0
|
|
3605
3179
|
}
|
|
3606
3180
|
};
|
|
3607
|
-
function
|
|
3608
|
-
var i, o, a, r, l,
|
|
3181
|
+
function Fn(e) {
|
|
3182
|
+
var i, o, a, r, l, d, c;
|
|
3609
3183
|
function t() {
|
|
3610
3184
|
return {
|
|
3611
3185
|
...e.autoPlay === !0 ? {
|
|
@@ -3630,7 +3204,7 @@ function Mn(e) {
|
|
|
3630
3204
|
...t()
|
|
3631
3205
|
};
|
|
3632
3206
|
}
|
|
3633
|
-
return /* @__PURE__ */
|
|
3207
|
+
return /* @__PURE__ */ B(
|
|
3634
3208
|
"div",
|
|
3635
3209
|
{
|
|
3636
3210
|
style: {
|
|
@@ -3651,7 +3225,6 @@ function Mn(e) {
|
|
|
3651
3225
|
objectPosition: e.position,
|
|
3652
3226
|
// Hack to get object fit to work as expected and
|
|
3653
3227
|
// not have the video overflow
|
|
3654
|
-
zIndex: 2,
|
|
3655
3228
|
borderRadius: "1px",
|
|
3656
3229
|
...e.aspectRatio ? {
|
|
3657
3230
|
position: "absolute"
|
|
@@ -3684,7 +3257,7 @@ function Mn(e) {
|
|
|
3684
3257
|
children: e.children
|
|
3685
3258
|
}
|
|
3686
3259
|
) : null,
|
|
3687
|
-
(c = (
|
|
3260
|
+
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3688
3261
|
"div",
|
|
3689
3262
|
{
|
|
3690
3263
|
style: {
|
|
@@ -3705,67 +3278,64 @@ function Mn(e) {
|
|
|
3705
3278
|
}
|
|
3706
3279
|
);
|
|
3707
3280
|
}
|
|
3708
|
-
const
|
|
3709
|
-
component:
|
|
3710
|
-
...
|
|
3281
|
+
const $n = () => [{
|
|
3282
|
+
component: gn,
|
|
3283
|
+
...hn
|
|
3711
3284
|
}, {
|
|
3712
|
-
component:
|
|
3713
|
-
...
|
|
3285
|
+
component: xn,
|
|
3286
|
+
...bn
|
|
3714
3287
|
}, {
|
|
3715
|
-
component:
|
|
3716
|
-
...
|
|
3288
|
+
component: Cn,
|
|
3289
|
+
...vn
|
|
3290
|
+
}, {
|
|
3291
|
+
component: In,
|
|
3292
|
+
...Tn
|
|
3717
3293
|
}, {
|
|
3718
|
-
component:
|
|
3719
|
-
...
|
|
3294
|
+
component: Pn,
|
|
3295
|
+
...Rn
|
|
3720
3296
|
}, {
|
|
3721
|
-
component:
|
|
3722
|
-
...
|
|
3297
|
+
component: En,
|
|
3298
|
+
...wn
|
|
3723
3299
|
}, {
|
|
3724
|
-
component:
|
|
3725
|
-
|
|
3300
|
+
component: Vn,
|
|
3301
|
+
...Bn
|
|
3726
3302
|
}, {
|
|
3727
|
-
component:
|
|
3728
|
-
...
|
|
3303
|
+
component: Nn,
|
|
3304
|
+
...An
|
|
3729
3305
|
}, {
|
|
3730
|
-
component:
|
|
3731
|
-
...
|
|
3306
|
+
component: Fn,
|
|
3307
|
+
...Wn
|
|
3308
|
+
}], ve = () => [{
|
|
3309
|
+
component: tt,
|
|
3310
|
+
...en
|
|
3732
3311
|
}, {
|
|
3733
|
-
component:
|
|
3734
|
-
...Hn
|
|
3735
|
-
}], Se = () => [{
|
|
3736
|
-
component: nt,
|
|
3312
|
+
component: zt,
|
|
3737
3313
|
...tn
|
|
3738
3314
|
}, {
|
|
3739
3315
|
component: Kt,
|
|
3740
3316
|
...nn
|
|
3741
|
-
}, {
|
|
3742
|
-
component: Jt,
|
|
3743
|
-
...on
|
|
3744
3317
|
}, {
|
|
3745
3318
|
component: Yt,
|
|
3746
|
-
...
|
|
3319
|
+
...an
|
|
3747
3320
|
}, {
|
|
3748
|
-
component:
|
|
3749
|
-
...
|
|
3321
|
+
component: Qt,
|
|
3322
|
+
...rn
|
|
3750
3323
|
}, {
|
|
3751
|
-
component:
|
|
3752
|
-
...
|
|
3324
|
+
component: sn,
|
|
3325
|
+
...ln
|
|
3753
3326
|
}, {
|
|
3754
|
-
component:
|
|
3755
|
-
...
|
|
3327
|
+
component: ri,
|
|
3328
|
+
...cn
|
|
3756
3329
|
}, {
|
|
3757
|
-
component:
|
|
3758
|
-
...
|
|
3330
|
+
component: fn,
|
|
3331
|
+
...mn
|
|
3759
3332
|
}, {
|
|
3760
|
-
component:
|
|
3761
|
-
...
|
|
3333
|
+
component: un,
|
|
3334
|
+
...dn
|
|
3762
3335
|
}, {
|
|
3763
|
-
component:
|
|
3764
|
-
...
|
|
3765
|
-
}, {
|
|
3766
|
-
component: en,
|
|
3767
|
-
...Zt
|
|
3768
|
-
}, ...jn()], zn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3336
|
+
component: Zt,
|
|
3337
|
+
...Xt
|
|
3338
|
+
}, ...$n()], On = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3769
3339
|
function getAndSetVariantId() {
|
|
3770
3340
|
function setCookie(name, value, days) {
|
|
3771
3341
|
let expires = '';
|
|
@@ -3821,7 +3391,7 @@ const jn = () => [{
|
|
|
3821
3391
|
}).join('');
|
|
3822
3392
|
styleEl.innerHTML = newStyleStr;
|
|
3823
3393
|
}
|
|
3824
|
-
}`,
|
|
3394
|
+
}`, Dn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3825
3395
|
if (!navigator.cookieEnabled) {
|
|
3826
3396
|
return;
|
|
3827
3397
|
}
|
|
@@ -3855,29 +3425,39 @@ const jn = () => [{
|
|
|
3855
3425
|
thisScriptEl?.remove();
|
|
3856
3426
|
}
|
|
3857
3427
|
return;
|
|
3858
|
-
}`, Me = "builderIoAbTest", je = "builderIoRenderContent",
|
|
3428
|
+
}`, Me = "builderIoAbTest", je = "builderIoRenderContent", j = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3859
3429
|
...t,
|
|
3860
3430
|
testVariationId: t.id,
|
|
3861
3431
|
id: e == null ? void 0 : e.id
|
|
3862
|
-
})),
|
|
3432
|
+
})), Ln = ({
|
|
3863
3433
|
canTrack: e,
|
|
3864
3434
|
content: t
|
|
3865
|
-
}) => !(!(
|
|
3866
|
-
window.${Me} = ${
|
|
3867
|
-
window.${je} = ${
|
|
3868
|
-
`,
|
|
3435
|
+
}) => !(!(j(t).length > 0) || !e || D()), Un = (e) => e === "react" || e === "reactNative", qe = Un($), _n = () => `
|
|
3436
|
+
window.${Me} = ${On}
|
|
3437
|
+
window.${je} = ${Dn}
|
|
3438
|
+
`, Hn = (e, t) => `
|
|
3869
3439
|
window.${Me}(
|
|
3870
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3871
|
-
)`,
|
|
3440
|
+
"${t}",${JSON.stringify(e)}, ${qe}
|
|
3441
|
+
)`, Mn = ({
|
|
3872
3442
|
contentId: e,
|
|
3873
3443
|
variationId: t
|
|
3874
3444
|
}) => `window.${je}(
|
|
3875
|
-
"${t}", "${e}", ${
|
|
3445
|
+
"${t}", "${e}", ${qe}
|
|
3876
3446
|
)`;
|
|
3877
|
-
function
|
|
3447
|
+
function oe(e) {
|
|
3448
|
+
return /* @__PURE__ */ s(
|
|
3449
|
+
"script",
|
|
3450
|
+
{
|
|
3451
|
+
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
3452
|
+
"data-id": e.id,
|
|
3453
|
+
nonce: e.nonce || ""
|
|
3454
|
+
}
|
|
3455
|
+
);
|
|
3456
|
+
}
|
|
3457
|
+
function Se(e) {
|
|
3878
3458
|
return Math.round(e * 1e3) / 1e3;
|
|
3879
3459
|
}
|
|
3880
|
-
const
|
|
3460
|
+
const jn = (e, t, n = !0) => {
|
|
3881
3461
|
if (!(e instanceof HTMLElement))
|
|
3882
3462
|
return null;
|
|
3883
3463
|
let i = n ? e : e.parentElement;
|
|
@@ -3888,35 +3468,35 @@ const Zn = (e, t, n = !0) => {
|
|
|
3888
3468
|
return i;
|
|
3889
3469
|
} while (i = i.parentElement);
|
|
3890
3470
|
return null;
|
|
3891
|
-
},
|
|
3471
|
+
}, qn = (e) => jn(e, (t) => {
|
|
3892
3472
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3893
3473
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3894
|
-
}),
|
|
3474
|
+
}), ke = ({
|
|
3895
3475
|
event: e,
|
|
3896
3476
|
target: t
|
|
3897
3477
|
}) => {
|
|
3898
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
3478
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Se(i / n.width), r = Se(o / n.height);
|
|
3899
3479
|
return {
|
|
3900
3480
|
x: a,
|
|
3901
3481
|
y: r
|
|
3902
3482
|
};
|
|
3903
|
-
},
|
|
3904
|
-
const t = e.target, n = t &&
|
|
3483
|
+
}, zn = (e) => {
|
|
3484
|
+
const t = e.target, n = t && qn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3905
3485
|
return {
|
|
3906
3486
|
targetBuilderElement: i || void 0,
|
|
3907
3487
|
metadata: {
|
|
3908
|
-
targetOffset: t ?
|
|
3488
|
+
targetOffset: t ? ke({
|
|
3909
3489
|
event: e,
|
|
3910
3490
|
target: t
|
|
3911
3491
|
}) : void 0,
|
|
3912
|
-
builderTargetOffset: n ?
|
|
3492
|
+
builderTargetOffset: n ? ke({
|
|
3913
3493
|
event: e,
|
|
3914
3494
|
target: n
|
|
3915
3495
|
}) : void 0,
|
|
3916
3496
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3917
3497
|
}
|
|
3918
3498
|
};
|
|
3919
|
-
},
|
|
3499
|
+
}, Kn = ["svelte", "qwik", "vue"], Ce = () => Kn.includes($) && (W() || ae()), Jn = (e) => {
|
|
3920
3500
|
var a, r;
|
|
3921
3501
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
3922
3502
|
let o = "";
|
|
@@ -3942,15 +3522,15 @@ font-weight: ${l};
|
|
|
3942
3522
|
`.trim());
|
|
3943
3523
|
}
|
|
3944
3524
|
return o;
|
|
3945
|
-
},
|
|
3525
|
+
}, Gn = ({
|
|
3946
3526
|
customFonts: e
|
|
3947
3527
|
}) => {
|
|
3948
3528
|
var t;
|
|
3949
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3950
|
-
},
|
|
3529
|
+
return ((t = e == null ? void 0 : e.map((n) => Jn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3530
|
+
}, Yn = ({
|
|
3951
3531
|
cssCode: e,
|
|
3952
3532
|
contentId: t
|
|
3953
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3533
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Qn = `
|
|
3954
3534
|
.builder-button {
|
|
3955
3535
|
all: unset;
|
|
3956
3536
|
}
|
|
@@ -3967,39 +3547,39 @@ font-weight: ${l};
|
|
|
3967
3547
|
text-align: inherit;
|
|
3968
3548
|
font-family: inherit;
|
|
3969
3549
|
}
|
|
3970
|
-
`,
|
|
3971
|
-
function
|
|
3972
|
-
var
|
|
3973
|
-
const t =
|
|
3974
|
-
function n(
|
|
3975
|
-
var
|
|
3976
|
-
const
|
|
3550
|
+
`, Xn = (e) => e ? "" : Qn, Zn = (e) => `variant-${e}`;
|
|
3551
|
+
function ei(e) {
|
|
3552
|
+
var p, C, P;
|
|
3553
|
+
const t = O(null);
|
|
3554
|
+
function n(I) {
|
|
3555
|
+
var f, S;
|
|
3556
|
+
const w = {
|
|
3977
3557
|
...e.builderContextSignal.rootState,
|
|
3978
|
-
...
|
|
3558
|
+
...I
|
|
3979
3559
|
};
|
|
3980
|
-
e.builderContextSignal.rootSetState ? (
|
|
3981
|
-
...
|
|
3982
|
-
rootState:
|
|
3560
|
+
e.builderContextSignal.rootSetState ? (S = (f = e.builderContextSignal).rootSetState) == null || S.call(f, w) : e.setBuilderContextSignal((x) => ({
|
|
3561
|
+
...x,
|
|
3562
|
+
rootState: w
|
|
3983
3563
|
}));
|
|
3984
3564
|
}
|
|
3985
|
-
function i(
|
|
3986
|
-
var
|
|
3987
|
-
const
|
|
3565
|
+
function i(I) {
|
|
3566
|
+
var f, S, x, T, V;
|
|
3567
|
+
const w = {
|
|
3988
3568
|
...e.builderContextSignal.content,
|
|
3989
|
-
...
|
|
3569
|
+
...I,
|
|
3990
3570
|
data: {
|
|
3991
|
-
...(
|
|
3992
|
-
...
|
|
3571
|
+
...(f = e.builderContextSignal.content) == null ? void 0 : f.data,
|
|
3572
|
+
...I == null ? void 0 : I.data
|
|
3993
3573
|
},
|
|
3994
3574
|
meta: {
|
|
3995
|
-
...(
|
|
3996
|
-
...
|
|
3997
|
-
breakpoints: ((
|
|
3575
|
+
...(S = e.builderContextSignal.content) == null ? void 0 : S.meta,
|
|
3576
|
+
...I == null ? void 0 : I.meta,
|
|
3577
|
+
breakpoints: ((x = I == null ? void 0 : I.meta) == null ? void 0 : x.breakpoints) || ((V = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : V.breakpoints)
|
|
3998
3578
|
}
|
|
3999
3579
|
};
|
|
4000
|
-
e.setBuilderContextSignal((
|
|
4001
|
-
...
|
|
4002
|
-
content:
|
|
3580
|
+
e.setBuilderContextSignal((N) => ({
|
|
3581
|
+
...N,
|
|
3582
|
+
content: w
|
|
4003
3583
|
}));
|
|
4004
3584
|
}
|
|
4005
3585
|
function o() {
|
|
@@ -4011,59 +3591,59 @@ function ci(e) {
|
|
|
4011
3591
|
const [a, r] = R(
|
|
4012
3592
|
() => e.contentWrapper || "div"
|
|
4013
3593
|
);
|
|
4014
|
-
function l(
|
|
3594
|
+
function l(I) {
|
|
4015
3595
|
return Ye({
|
|
4016
3596
|
model: e.model,
|
|
4017
3597
|
trustedHosts: e.trustedHosts,
|
|
4018
3598
|
callbacks: {
|
|
4019
|
-
configureSdk: (
|
|
4020
|
-
var
|
|
4021
|
-
const { breakpoints:
|
|
4022
|
-
!
|
|
3599
|
+
configureSdk: (w) => {
|
|
3600
|
+
var x;
|
|
3601
|
+
const { breakpoints: f, contentId: S } = w;
|
|
3602
|
+
!S || S !== ((x = e.builderContextSignal.content) == null ? void 0 : x.id) || f && i({
|
|
4023
3603
|
meta: {
|
|
4024
|
-
breakpoints:
|
|
3604
|
+
breakpoints: f
|
|
4025
3605
|
}
|
|
4026
3606
|
});
|
|
4027
3607
|
},
|
|
4028
|
-
animation: (
|
|
4029
|
-
|
|
3608
|
+
animation: (w) => {
|
|
3609
|
+
$e(w);
|
|
4030
3610
|
},
|
|
4031
|
-
contentUpdate: (
|
|
4032
|
-
i(
|
|
3611
|
+
contentUpdate: (w) => {
|
|
3612
|
+
i(w);
|
|
4033
3613
|
}
|
|
4034
3614
|
}
|
|
4035
|
-
})(
|
|
3615
|
+
})(I);
|
|
4036
3616
|
}
|
|
4037
|
-
const [
|
|
4038
|
-
function
|
|
4039
|
-
var
|
|
3617
|
+
const [d, c] = R(() => ({})), [h, m] = R(() => ({})), [u, k] = R(() => !1);
|
|
3618
|
+
function g(I) {
|
|
3619
|
+
var w, f;
|
|
4040
3620
|
if (e.builderContextSignal.content) {
|
|
4041
|
-
const
|
|
4042
|
-
|
|
3621
|
+
const S = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, x = (f = e.builderContextSignal.content) == null ? void 0 : f.id;
|
|
3622
|
+
ue({
|
|
4043
3623
|
apiHost: e.apiHost,
|
|
4044
3624
|
type: "click",
|
|
4045
|
-
canTrack:
|
|
4046
|
-
contentId:
|
|
3625
|
+
canTrack: z(e.canTrack),
|
|
3626
|
+
contentId: x,
|
|
4047
3627
|
apiKey: e.apiKey,
|
|
4048
|
-
variationId:
|
|
4049
|
-
...
|
|
4050
|
-
unique: !
|
|
3628
|
+
variationId: S !== x ? S : void 0,
|
|
3629
|
+
...zn(I),
|
|
3630
|
+
unique: !u
|
|
4051
3631
|
});
|
|
4052
3632
|
}
|
|
4053
|
-
|
|
3633
|
+
u || k(!0);
|
|
4054
3634
|
}
|
|
4055
|
-
function
|
|
4056
|
-
var
|
|
4057
|
-
const
|
|
4058
|
-
Object.entries(
|
|
4059
|
-
if (!
|
|
3635
|
+
function v() {
|
|
3636
|
+
var w, f, S;
|
|
3637
|
+
const I = (S = (f = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : f.httpRequests) != null ? S : {};
|
|
3638
|
+
Object.entries(I).forEach(([x, T]) => {
|
|
3639
|
+
if (!T || h[x] || d[x] && !W())
|
|
4060
3640
|
return;
|
|
4061
|
-
h[
|
|
4062
|
-
const V =
|
|
3641
|
+
h[x] = !0;
|
|
3642
|
+
const V = T.replace(
|
|
4063
3643
|
/{{([^}]+)}}/g,
|
|
4064
|
-
(
|
|
4065
|
-
|
|
4066
|
-
code:
|
|
3644
|
+
(N, H) => String(
|
|
3645
|
+
L({
|
|
3646
|
+
code: H,
|
|
4067
3647
|
context: e.context || {},
|
|
4068
3648
|
localState: void 0,
|
|
4069
3649
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4071,18 +3651,18 @@ function ci(e) {
|
|
|
4071
3651
|
})
|
|
4072
3652
|
)
|
|
4073
3653
|
);
|
|
4074
|
-
Ie(V), fetch(V).then((
|
|
3654
|
+
Ie(V), fetch(V).then((N) => N.json()).then((N) => {
|
|
4075
3655
|
n({
|
|
4076
|
-
[
|
|
4077
|
-
}),
|
|
4078
|
-
}).catch((
|
|
4079
|
-
console.error("error fetching dynamic data",
|
|
3656
|
+
[x]: N
|
|
3657
|
+
}), d[x] = !0;
|
|
3658
|
+
}).catch((N) => {
|
|
3659
|
+
console.error("error fetching dynamic data", T, N);
|
|
4080
3660
|
}).finally(() => {
|
|
4081
|
-
h[
|
|
3661
|
+
h[x] = !1;
|
|
4082
3662
|
});
|
|
4083
3663
|
});
|
|
4084
3664
|
}
|
|
4085
|
-
function
|
|
3665
|
+
function y() {
|
|
4086
3666
|
W() && window.dispatchEvent(
|
|
4087
3667
|
new CustomEvent(
|
|
4088
3668
|
"builder:component:stateChange",
|
|
@@ -4097,11 +3677,11 @@ function ci(e) {
|
|
|
4097
3677
|
)
|
|
4098
3678
|
);
|
|
4099
3679
|
}
|
|
4100
|
-
const
|
|
4101
|
-
return
|
|
4102
|
-
var
|
|
4103
|
-
if (
|
|
4104
|
-
if (W() && !e.isNestedRender && (window.addEventListener("message", l),
|
|
3680
|
+
const b = O(!1);
|
|
3681
|
+
return b.current || (v(), y(), b.current = !0), A(() => {
|
|
3682
|
+
var I, w, f;
|
|
3683
|
+
if (D()) {
|
|
3684
|
+
if (W() && !e.isNestedRender && (window.addEventListener("message", l), Ke(), Je({
|
|
4105
3685
|
...e.locale ? {
|
|
4106
3686
|
locale: e.locale
|
|
4107
3687
|
} : {},
|
|
@@ -4113,48 +3693,48 @@ function ci(e) {
|
|
|
4113
3693
|
} : {}
|
|
4114
3694
|
}), Object.values(
|
|
4115
3695
|
e.builderContextSignal.componentInfos
|
|
4116
|
-
).forEach((
|
|
4117
|
-
var
|
|
4118
|
-
if (!e.model || !((
|
|
4119
|
-
const
|
|
4120
|
-
(V = window.parent) == null || V.postMessage(
|
|
3696
|
+
).forEach((x) => {
|
|
3697
|
+
var T, V;
|
|
3698
|
+
if (!e.model || !((T = x.models) != null && T.length) || x.models.includes(e.model)) {
|
|
3699
|
+
const N = Ge(x);
|
|
3700
|
+
(V = window.parent) == null || V.postMessage(N, "*");
|
|
4121
3701
|
}
|
|
4122
3702
|
}), window.addEventListener(
|
|
4123
3703
|
"builder:component:stateChangeListenerActivated",
|
|
4124
|
-
|
|
4125
|
-
)), e.builderContextSignal.content &&
|
|
4126
|
-
const
|
|
4127
|
-
|
|
3704
|
+
y
|
|
3705
|
+
)), e.builderContextSignal.content && z(e.canTrack)) {
|
|
3706
|
+
const x = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, T = (w = e.builderContextSignal.content) == null ? void 0 : w.id, V = e.apiKey;
|
|
3707
|
+
ue({
|
|
4128
3708
|
apiHost: e.apiHost,
|
|
4129
3709
|
type: "impression",
|
|
4130
3710
|
canTrack: !0,
|
|
4131
|
-
contentId:
|
|
3711
|
+
contentId: T,
|
|
4132
3712
|
apiKey: V,
|
|
4133
|
-
variationId:
|
|
3713
|
+
variationId: x !== T ? x : void 0
|
|
4134
3714
|
});
|
|
4135
3715
|
}
|
|
4136
|
-
if (
|
|
4137
|
-
const
|
|
4138
|
-
`builder.overrides.${
|
|
4139
|
-
),
|
|
4140
|
-
(
|
|
3716
|
+
if (ae() && !W()) {
|
|
3717
|
+
const x = new URL(location.href).searchParams, T = x.get("builder.preview"), V = x.get(
|
|
3718
|
+
`builder.overrides.${T}`
|
|
3719
|
+
), N = x.get("apiKey") || x.get("builder.space");
|
|
3720
|
+
(T === "BUILDER_STUDIO" || T === e.model && N === e.apiKey && (!e.content || V === e.content.id)) && we({
|
|
4141
3721
|
model: e.model || "",
|
|
4142
3722
|
apiKey: e.apiKey,
|
|
4143
3723
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4144
|
-
...
|
|
3724
|
+
...T === "BUILDER_STUDIO" && ((f = e.context) != null && f.symbolId) ? {
|
|
4145
3725
|
query: {
|
|
4146
3726
|
id: e.context.symbolId
|
|
4147
3727
|
}
|
|
4148
3728
|
} : {}
|
|
4149
|
-
}).then((
|
|
4150
|
-
|
|
3729
|
+
}).then((H) => {
|
|
3730
|
+
H && i(H);
|
|
4151
3731
|
});
|
|
4152
3732
|
}
|
|
4153
3733
|
}
|
|
4154
3734
|
}, []), A(() => {
|
|
4155
3735
|
e.content && i(e.content);
|
|
4156
3736
|
}, [e.content]), A(() => {
|
|
4157
|
-
|
|
3737
|
+
y();
|
|
4158
3738
|
}, [e.builderContextSignal.rootState]), A(() => {
|
|
4159
3739
|
e.data && n(e.data);
|
|
4160
3740
|
}, [e.data]), A(() => {
|
|
@@ -4162,22 +3742,22 @@ function ci(e) {
|
|
|
4162
3742
|
locale: e.locale
|
|
4163
3743
|
});
|
|
4164
3744
|
}, [e.locale]), A(() => () => {
|
|
4165
|
-
|
|
3745
|
+
D() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
4166
3746
|
"builder:component:stateChangeListenerActivated",
|
|
4167
|
-
|
|
3747
|
+
y
|
|
4168
3748
|
));
|
|
4169
|
-
}, []), /* @__PURE__ */ s(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ||
|
|
3749
|
+
}, []), /* @__PURE__ */ s(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Ce() ? /* @__PURE__ */ s(
|
|
4170
3750
|
a,
|
|
4171
3751
|
{
|
|
4172
3752
|
ref: t,
|
|
4173
|
-
onClick: (
|
|
4174
|
-
"builder-content-id": (
|
|
3753
|
+
onClick: (I) => g(I),
|
|
3754
|
+
"builder-content-id": (p = e.builderContextSignal.content) == null ? void 0 : p.id,
|
|
4175
3755
|
"builder-model": e.model,
|
|
4176
|
-
className:
|
|
4177
|
-
((
|
|
3756
|
+
className: Zn(
|
|
3757
|
+
((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
|
|
4178
3758
|
),
|
|
4179
3759
|
style: {
|
|
4180
|
-
display: !e.builderContextSignal.content &&
|
|
3760
|
+
display: !e.builderContextSignal.content && Ce() ? "none" : void 0
|
|
4181
3761
|
},
|
|
4182
3762
|
...o(),
|
|
4183
3763
|
...e.contentWrapperProps,
|
|
@@ -4185,21 +3765,21 @@ function ci(e) {
|
|
|
4185
3765
|
}
|
|
4186
3766
|
) : null });
|
|
4187
3767
|
}
|
|
4188
|
-
function
|
|
3768
|
+
function ti(e) {
|
|
4189
3769
|
const [t, n] = R(
|
|
4190
3770
|
() => `
|
|
4191
|
-
${
|
|
3771
|
+
${Yn({
|
|
4192
3772
|
cssCode: e.cssCode,
|
|
4193
3773
|
contentId: e.contentId
|
|
4194
3774
|
})}
|
|
4195
|
-
${
|
|
3775
|
+
${Gn({
|
|
4196
3776
|
customFonts: e.customFonts
|
|
4197
3777
|
})}
|
|
4198
|
-
${
|
|
3778
|
+
${Xn(e.isNestedRender)}
|
|
4199
3779
|
`.trim()
|
|
4200
3780
|
);
|
|
4201
3781
|
return /* @__PURE__ */ s(
|
|
4202
|
-
|
|
3782
|
+
Y,
|
|
4203
3783
|
{
|
|
4204
3784
|
id: "builderio-content",
|
|
4205
3785
|
styles: t,
|
|
@@ -4207,15 +3787,15 @@ ${li(e.isNestedRender)}
|
|
|
4207
3787
|
}
|
|
4208
3788
|
);
|
|
4209
3789
|
}
|
|
4210
|
-
const
|
|
3790
|
+
const ni = ({
|
|
4211
3791
|
content: e,
|
|
4212
3792
|
data: t,
|
|
4213
3793
|
locale: n
|
|
4214
3794
|
}) => {
|
|
4215
3795
|
var a, r, l;
|
|
4216
3796
|
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
4217
|
-
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((
|
|
4218
|
-
|
|
3797
|
+
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((d) => {
|
|
3798
|
+
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
4219
3799
|
}), {
|
|
4220
3800
|
...i,
|
|
4221
3801
|
...o,
|
|
@@ -4224,7 +3804,7 @@ const di = ({
|
|
|
4224
3804
|
locale: n
|
|
4225
3805
|
} : {}
|
|
4226
3806
|
};
|
|
4227
|
-
},
|
|
3807
|
+
}, ii = ({
|
|
4228
3808
|
content: e,
|
|
4229
3809
|
data: t
|
|
4230
3810
|
}) => e ? {
|
|
@@ -4236,45 +3816,45 @@ const di = ({
|
|
|
4236
3816
|
meta: e == null ? void 0 : e.meta
|
|
4237
3817
|
} : void 0;
|
|
4238
3818
|
function Te(e) {
|
|
4239
|
-
var c, h,
|
|
3819
|
+
var c, h, m, u, k, g, v, y, b;
|
|
4240
3820
|
const [t, n] = R(
|
|
4241
3821
|
() => {
|
|
4242
|
-
var
|
|
4243
|
-
return
|
|
3822
|
+
var p, C;
|
|
3823
|
+
return Mn({
|
|
4244
3824
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4245
|
-
variationId: (
|
|
3825
|
+
variationId: (p = e.content) == null ? void 0 : p.testVariationId,
|
|
4246
3826
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4247
|
-
contentId: (
|
|
3827
|
+
contentId: (C = e.content) == null ? void 0 : C.id
|
|
4248
3828
|
});
|
|
4249
3829
|
}
|
|
4250
3830
|
);
|
|
4251
|
-
function i(
|
|
4252
|
-
l((
|
|
4253
|
-
...
|
|
4254
|
-
rootState:
|
|
3831
|
+
function i(p) {
|
|
3832
|
+
l((C) => ({
|
|
3833
|
+
...C,
|
|
3834
|
+
rootState: p
|
|
4255
3835
|
}));
|
|
4256
3836
|
}
|
|
4257
3837
|
const [o, a] = R(
|
|
4258
3838
|
() => [
|
|
4259
|
-
...
|
|
3839
|
+
...ve(),
|
|
4260
3840
|
...e.customComponents || []
|
|
4261
3841
|
].reduce(
|
|
4262
|
-
(
|
|
4263
|
-
...
|
|
4264
|
-
[
|
|
4265
|
-
component:
|
|
4266
|
-
...
|
|
3842
|
+
(p, { component: C, ...P }) => ({
|
|
3843
|
+
...p,
|
|
3844
|
+
[P.name]: {
|
|
3845
|
+
component: C,
|
|
3846
|
+
...me(P)
|
|
4267
3847
|
}
|
|
4268
3848
|
}),
|
|
4269
3849
|
{}
|
|
4270
3850
|
)
|
|
4271
3851
|
), [r, l] = R(() => ({
|
|
4272
|
-
content:
|
|
3852
|
+
content: ii({
|
|
4273
3853
|
content: e.content,
|
|
4274
3854
|
data: e.data
|
|
4275
3855
|
}),
|
|
4276
3856
|
localState: void 0,
|
|
4277
|
-
rootState:
|
|
3857
|
+
rootState: ni({
|
|
4278
3858
|
content: e.content,
|
|
4279
3859
|
data: e.data,
|
|
4280
3860
|
locale: e.locale
|
|
@@ -4285,12 +3865,12 @@ function Te(e) {
|
|
|
4285
3865
|
apiKey: e.apiKey,
|
|
4286
3866
|
apiVersion: e.apiVersion,
|
|
4287
3867
|
componentInfos: [
|
|
4288
|
-
...
|
|
3868
|
+
...ve(),
|
|
4289
3869
|
...e.customComponents || []
|
|
4290
3870
|
].reduce(
|
|
4291
|
-
(
|
|
4292
|
-
...
|
|
4293
|
-
[
|
|
3871
|
+
(p, { component: C, ...P }) => ({
|
|
3872
|
+
...p,
|
|
3873
|
+
[P.name]: me(P)
|
|
4294
3874
|
}),
|
|
4295
3875
|
{}
|
|
4296
3876
|
),
|
|
@@ -4299,31 +3879,31 @@ function Te(e) {
|
|
|
4299
3879
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4300
3880
|
nonce: e.nonce || "",
|
|
4301
3881
|
model: e.model || ""
|
|
4302
|
-
})),
|
|
4303
|
-
if (!
|
|
4304
|
-
e.apiKey ||
|
|
3882
|
+
})), d = O(!1);
|
|
3883
|
+
if (!d.current) {
|
|
3884
|
+
e.apiKey || J.error(
|
|
4305
3885
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4306
3886
|
);
|
|
4307
|
-
const
|
|
4308
|
-
|
|
4309
|
-
code:
|
|
3887
|
+
const p = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
3888
|
+
p && L({
|
|
3889
|
+
code: p,
|
|
4310
3890
|
context: e.context || {},
|
|
4311
3891
|
localState: void 0,
|
|
4312
3892
|
rootState: r.rootState,
|
|
4313
|
-
rootSetState: (
|
|
4314
|
-
Object.assign(r.rootState,
|
|
3893
|
+
rootSetState: (C) => {
|
|
3894
|
+
Object.assign(r.rootState, C);
|
|
4315
3895
|
},
|
|
4316
3896
|
isExpression: !1
|
|
4317
|
-
}),
|
|
3897
|
+
}), d.current = !0;
|
|
4318
3898
|
}
|
|
4319
3899
|
return /* @__PURE__ */ s(
|
|
4320
|
-
|
|
3900
|
+
Pe.Provider,
|
|
4321
3901
|
{
|
|
4322
3902
|
value: {
|
|
4323
3903
|
registeredComponents: o
|
|
4324
3904
|
},
|
|
4325
|
-
children: /* @__PURE__ */
|
|
4326
|
-
|
|
3905
|
+
children: /* @__PURE__ */ B(
|
|
3906
|
+
ei,
|
|
4327
3907
|
{
|
|
4328
3908
|
apiHost: e.apiHost,
|
|
4329
3909
|
nonce: e.nonce,
|
|
@@ -4344,7 +3924,7 @@ function Te(e) {
|
|
|
4344
3924
|
setBuilderContextSignal: l,
|
|
4345
3925
|
children: [
|
|
4346
3926
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4347
|
-
|
|
3927
|
+
oe,
|
|
4348
3928
|
{
|
|
4349
3929
|
id: "builderio-variant-visibility",
|
|
4350
3930
|
scriptStr: t,
|
|
@@ -4352,19 +3932,19 @@ function Te(e) {
|
|
|
4352
3932
|
}
|
|
4353
3933
|
) : null,
|
|
4354
3934
|
/* @__PURE__ */ s(
|
|
4355
|
-
|
|
3935
|
+
ti,
|
|
4356
3936
|
{
|
|
4357
3937
|
nonce: e.nonce || "",
|
|
4358
3938
|
isNestedRender: e.isNestedRender,
|
|
4359
|
-
contentId: (
|
|
4360
|
-
cssCode: (
|
|
4361
|
-
customFonts: (
|
|
3939
|
+
contentId: (m = r.content) == null ? void 0 : m.id,
|
|
3940
|
+
cssCode: (k = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : k.cssCode,
|
|
3941
|
+
customFonts: (v = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : v.customFonts
|
|
4362
3942
|
}
|
|
4363
3943
|
),
|
|
4364
3944
|
/* @__PURE__ */ s(
|
|
4365
|
-
|
|
3945
|
+
F,
|
|
4366
3946
|
{
|
|
4367
|
-
blocks: (
|
|
3947
|
+
blocks: (b = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : b.blocks,
|
|
4368
3948
|
context: r,
|
|
4369
3949
|
registeredComponents: o,
|
|
4370
3950
|
linkComponent: e.linkComponent
|
|
@@ -4376,50 +3956,50 @@ function Te(e) {
|
|
|
4376
3956
|
}
|
|
4377
3957
|
);
|
|
4378
3958
|
}
|
|
4379
|
-
function
|
|
3959
|
+
function oi(e) {
|
|
4380
3960
|
var r;
|
|
4381
3961
|
const [t, n] = R(
|
|
4382
|
-
() =>
|
|
4383
|
-
canTrack:
|
|
3962
|
+
() => Ln({
|
|
3963
|
+
canTrack: z(e.canTrack),
|
|
4384
3964
|
content: e.content
|
|
4385
3965
|
})
|
|
4386
3966
|
);
|
|
4387
3967
|
function i() {
|
|
4388
3968
|
var l;
|
|
4389
|
-
return
|
|
4390
|
-
|
|
4391
|
-
id:
|
|
4392
|
-
testRatio:
|
|
3969
|
+
return Hn(
|
|
3970
|
+
j(e.content).map((d) => ({
|
|
3971
|
+
id: d.testVariationId,
|
|
3972
|
+
testRatio: d.testRatio
|
|
4393
3973
|
})),
|
|
4394
3974
|
((l = e.content) == null ? void 0 : l.id) || ""
|
|
4395
3975
|
);
|
|
4396
3976
|
}
|
|
4397
3977
|
function o() {
|
|
4398
|
-
return
|
|
3978
|
+
return j(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4399
3979
|
}
|
|
4400
3980
|
function a() {
|
|
4401
3981
|
var l;
|
|
4402
3982
|
return t ? {
|
|
4403
3983
|
...e.content,
|
|
4404
3984
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4405
|
-
} :
|
|
3985
|
+
} : Qe({
|
|
4406
3986
|
item: e.content,
|
|
4407
|
-
canTrack:
|
|
3987
|
+
canTrack: z(e.canTrack)
|
|
4408
3988
|
});
|
|
4409
3989
|
}
|
|
4410
3990
|
return A(() => {
|
|
4411
|
-
}, []), /* @__PURE__ */
|
|
4412
|
-
!e.isNestedRender &&
|
|
4413
|
-
|
|
3991
|
+
}, []), /* @__PURE__ */ B(E, { children: [
|
|
3992
|
+
!e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ s(
|
|
3993
|
+
oe,
|
|
4414
3994
|
{
|
|
4415
3995
|
id: "builderio-init-variants-fns",
|
|
4416
|
-
scriptStr:
|
|
3996
|
+
scriptStr: _n(),
|
|
4417
3997
|
nonce: e.nonce || ""
|
|
4418
3998
|
}
|
|
4419
3999
|
) : null,
|
|
4420
|
-
t ? /* @__PURE__ */
|
|
4000
|
+
t ? /* @__PURE__ */ B(E, { children: [
|
|
4421
4001
|
/* @__PURE__ */ s(
|
|
4422
|
-
|
|
4002
|
+
Y,
|
|
4423
4003
|
{
|
|
4424
4004
|
id: "builderio-variants",
|
|
4425
4005
|
styles: o(),
|
|
@@ -4427,14 +4007,14 @@ function fi(e) {
|
|
|
4427
4007
|
}
|
|
4428
4008
|
),
|
|
4429
4009
|
/* @__PURE__ */ s(
|
|
4430
|
-
|
|
4010
|
+
oe,
|
|
4431
4011
|
{
|
|
4432
4012
|
id: "builderio-variants-visibility",
|
|
4433
4013
|
scriptStr: i(),
|
|
4434
4014
|
nonce: e.nonce || ""
|
|
4435
4015
|
}
|
|
4436
4016
|
),
|
|
4437
|
-
(r =
|
|
4017
|
+
(r = j(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
4438
4018
|
Te,
|
|
4439
4019
|
{
|
|
4440
4020
|
apiHost: e.apiHost,
|
|
@@ -4490,13 +4070,13 @@ function fi(e) {
|
|
|
4490
4070
|
)
|
|
4491
4071
|
] });
|
|
4492
4072
|
}
|
|
4493
|
-
const
|
|
4073
|
+
const ai = async ({
|
|
4494
4074
|
builderContextValue: e,
|
|
4495
4075
|
symbol: t
|
|
4496
4076
|
}) => {
|
|
4497
4077
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4498
4078
|
(e != null && e.apiKey))
|
|
4499
|
-
return
|
|
4079
|
+
return we({
|
|
4500
4080
|
model: t.model,
|
|
4501
4081
|
apiKey: e.apiKey,
|
|
4502
4082
|
apiVersion: e.apiVersion,
|
|
@@ -4506,11 +4086,11 @@ const hi = async ({
|
|
|
4506
4086
|
}
|
|
4507
4087
|
}
|
|
4508
4088
|
}).catch((n) => {
|
|
4509
|
-
|
|
4089
|
+
J.error("Could not fetch symbol content: ", n);
|
|
4510
4090
|
});
|
|
4511
4091
|
};
|
|
4512
|
-
function
|
|
4513
|
-
var l,
|
|
4092
|
+
function ri(e) {
|
|
4093
|
+
var l, d, c, h;
|
|
4514
4094
|
function t() {
|
|
4515
4095
|
return "div";
|
|
4516
4096
|
}
|
|
@@ -4518,31 +4098,31 @@ function gi(e) {
|
|
|
4518
4098
|
return "div";
|
|
4519
4099
|
}
|
|
4520
4100
|
function i() {
|
|
4521
|
-
var
|
|
4101
|
+
var m, u;
|
|
4522
4102
|
return [
|
|
4523
|
-
e.attributes[
|
|
4103
|
+
e.attributes[_()],
|
|
4524
4104
|
"builder-symbol",
|
|
4525
|
-
(
|
|
4526
|
-
(
|
|
4105
|
+
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
4106
|
+
(u = e.symbol) != null && u.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4527
4107
|
].filter(Boolean).join(" ");
|
|
4528
4108
|
}
|
|
4529
4109
|
const [o, a] = R(() => {
|
|
4530
|
-
var
|
|
4531
|
-
return (
|
|
4110
|
+
var m;
|
|
4111
|
+
return (m = e.symbol) == null ? void 0 : m.content;
|
|
4532
4112
|
});
|
|
4533
4113
|
function r() {
|
|
4534
|
-
o ||
|
|
4114
|
+
o || ai({
|
|
4535
4115
|
symbol: e.symbol,
|
|
4536
4116
|
builderContextValue: e.builderContext
|
|
4537
|
-
}).then((
|
|
4538
|
-
|
|
4117
|
+
}).then((m) => {
|
|
4118
|
+
m && a(m);
|
|
4539
4119
|
});
|
|
4540
4120
|
}
|
|
4541
4121
|
return A(() => {
|
|
4542
4122
|
}, []), A(() => {
|
|
4543
4123
|
r();
|
|
4544
4124
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4545
|
-
|
|
4125
|
+
oi,
|
|
4546
4126
|
{
|
|
4547
4127
|
nonce: e.builderContext.nonce,
|
|
4548
4128
|
isNestedRender: !0,
|
|
@@ -4554,7 +4134,7 @@ function gi(e) {
|
|
|
4554
4134
|
},
|
|
4555
4135
|
customComponents: Object.values(e.builderComponents),
|
|
4556
4136
|
data: {
|
|
4557
|
-
...(
|
|
4137
|
+
...(d = e.symbol) == null ? void 0 : d.data,
|
|
4558
4138
|
...e.builderContext.localState,
|
|
4559
4139
|
...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
|
|
4560
4140
|
},
|
|
@@ -4568,16 +4148,15 @@ function gi(e) {
|
|
|
4568
4148
|
) });
|
|
4569
4149
|
}
|
|
4570
4150
|
export {
|
|
4571
|
-
|
|
4151
|
+
F as Blocks,
|
|
4572
4152
|
le as BuilderContext,
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4153
|
+
tt as Button,
|
|
4154
|
+
zt as Columns,
|
|
4155
|
+
oi as Content,
|
|
4156
|
+
Kt as Fragment,
|
|
4577
4157
|
Yt as Image,
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
Si as setClientUserAttributes
|
|
4158
|
+
Qt as Section,
|
|
4159
|
+
ri as Symbol,
|
|
4160
|
+
fn as Text,
|
|
4161
|
+
Fn as Video
|
|
4583
4162
|
};
|