@builder.io/sdk-react 3.0.7 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +32 -32
- package/lib/browser/blocks-exports.mjs +946 -908
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-20c79b90.js → server-entry-422fad84.js} +26 -16
- package/lib/browser/server-entry-916191b4.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-071aa4f9.cjs → accordion-2f83fc75.cjs} +1 -1
- package/lib/edge/{accordion-22c2c037.js → accordion-e1b77652.js} +1 -1
- package/lib/edge/{blocks-2989e629.js → blocks-0885e182.js} +2 -2
- package/lib/edge/{blocks-d3f37507.cjs → blocks-5165c164.cjs} +1 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-a2cc6565.cjs → button-d7197e96.cjs} +1 -1
- package/lib/edge/{button-2b5270c4.js → button-d878f35c.js} +2 -2
- package/lib/edge/{columns-b7240242.cjs → columns-46729516.cjs} +1 -1
- package/lib/edge/{columns-21b9be25.js → columns-b365c86a.js} +3 -3
- package/lib/edge/{content-variants-88f4dc64.js → content-variants-1594c868.js} +281 -279
- package/lib/edge/content-variants-c6cab1c3.cjs +134 -0
- package/lib/edge/{form-77687883.cjs → form-9844766c.cjs} +1 -1
- package/lib/edge/{form-d29f3cc0.js → form-b66c20a3.js} +3 -3
- package/lib/edge/{get-class-prop-name-f597545d.cjs → get-class-prop-name-0b992cfb.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-dbc5d99c.js → get-class-prop-name-dac81472.js} +1 -1
- package/lib/edge/{img-fed70928.js → img-c4a772a8.js} +1 -1
- package/lib/edge/{img-03f9002b.cjs → img-fb35350a.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-1e548fd0.cjs → input-122768ac.cjs} +1 -1
- package/lib/edge/{input-083c3c35.js → input-57c5b097.js} +1 -1
- package/lib/edge/{personalization-container-bcff3433.js → personalization-container-7e63edce.js} +4 -4
- package/lib/edge/{personalization-container-dde10a09.cjs → personalization-container-a17ae615.cjs} +1 -1
- package/lib/edge/{select-9f22c2ba.js → select-3d4324ef.js} +1 -1
- package/lib/edge/{select-21e33225.cjs → select-7f750b70.cjs} +1 -1
- package/lib/edge/server-entry-77166102.cjs +2 -0
- package/lib/edge/{server-entry-43a6f5be.js → server-entry-c1673af2.js} +28 -18
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-ca171e8c.js → slot-05ef18a0.js} +3 -3
- package/lib/edge/{slot-a9f5d6c0.cjs → slot-123c0993.cjs} +1 -1
- package/lib/edge/symbol-ee314d5a.cjs +1 -0
- package/lib/edge/{symbol-8f6ff028.js → symbol-f488bea0.js} +25 -25
- package/lib/edge/{tabs-6b67fca2.js → tabs-244d53fa.js} +3 -3
- package/lib/edge/{tabs-880c9088.cjs → tabs-edb82022.cjs} +1 -1
- package/lib/edge/{video-a3f10439.js → video-52df64e2.js} +54 -17
- package/lib/edge/video-cc58dd83.cjs +1 -0
- package/lib/node/blocks-exports.cjs +32 -32
- package/lib/node/blocks-exports.mjs +781 -743
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-6626257d.js → server-entry-4df60fc5.js} +26 -16
- package/lib/node/server-entry-8ab8c78b.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-5cb298bf.js → setIvm-0edfc727.js} +1 -1
- package/lib/node/{setIvm-49abbae6.cjs → setIvm-6405aa63.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-11e8399e.cjs → should-force-browser-runtime-in-node-6d4dbff9.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-94f1a5b3.js → should-force-browser-runtime-in-node-7a39b073.js} +1 -1
- package/package.json +1 -1
- package/types/components/content-variants/content-variants.types.d.ts +2 -2
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/subscribe-to-editor.d.ts +13 -13
- package/types/scripts/init-editing.d.ts +3 -1
- package/lib/browser/server-entry-762e29e0.cjs +0 -2
- package/lib/edge/content-variants-fdd5ee50.cjs +0 -134
- package/lib/edge/server-entry-ac35a5c8.cjs +0 -2
- package/lib/edge/symbol-a2015c7e.cjs +0 -1
- package/lib/edge/video-4ecfd08b.cjs +0 -1
- package/lib/node/server-entry-0b433783.cjs +0 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as O, isEditing as W, isBrowser as
|
|
3
|
-
import { setClientUserAttributes as
|
|
4
|
-
import { jsx as s, Fragment as R, jsxs as
|
|
5
|
-
import * as
|
|
6
|
-
import { createContext as
|
|
7
|
-
const
|
|
2
|
+
import { TARGET as O, isEditing as W, isBrowser as F, getUserAttributes as Je, checkIsDefined as K, logger as Q, isPreviewing as Y, userAttributesService as fe, getDefaultCanTrack as M, logFetch as Ee, registerInsertMenu as Ge, setupBrowserForEditing as Qe, createRegisterComponentMessage as Ye, _track as he, fetchOneEntry as Re, createEditorListener as Xe, serializeIncludingFunctions as ge, handleABTestingSync as Ze } from "./server-entry-422fad84.js";
|
|
3
|
+
import { setClientUserAttributes as ki } from "./server-entry-422fad84.js";
|
|
4
|
+
import { jsx as s, Fragment as R, jsxs as A } from "react/jsx-runtime";
|
|
5
|
+
import * as et from "react";
|
|
6
|
+
import { createContext as Pe, useEffect as B, useState as E, useRef as $, useContext as be, createElement as Ve } from "react";
|
|
7
|
+
const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
|
|
8
8
|
function le(e) {
|
|
9
|
-
return /* @__PURE__ */ s(R, { children:
|
|
9
|
+
return /* @__PURE__ */ s(R, { children: nt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { 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
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const H = () => {
|
|
12
12
|
switch (O) {
|
|
13
13
|
case "react":
|
|
14
14
|
case "reactNative":
|
|
@@ -22,11 +22,11 @@ const M = () => {
|
|
|
22
22
|
return "class";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function it(e) {
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
29
|
-
[
|
|
29
|
+
[H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
|
|
30
30
|
...e.link ? {
|
|
31
31
|
href: e.link,
|
|
32
32
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -46,7 +46,7 @@ function nt(e) {
|
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
const se =
|
|
49
|
+
const se = Pe({
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
52
52
|
localState: void 0,
|
|
@@ -61,10 +61,10 @@ const se = Re({
|
|
|
61
61
|
BlocksWrapperProps: {},
|
|
62
62
|
nonce: "",
|
|
63
63
|
model: ""
|
|
64
|
-
}),
|
|
65
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((
|
|
64
|
+
}), Be = Pe({ registeredComponents: {} }), Ne = (e, t, n) => {
|
|
65
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
66
66
|
return i === void 0 || i === e ? n : i;
|
|
67
|
-
},
|
|
67
|
+
}, ot = ({
|
|
68
68
|
builder: e,
|
|
69
69
|
context: t,
|
|
70
70
|
event: n,
|
|
@@ -78,106 +78,106 @@ const se = Re({
|
|
|
78
78
|
event: n
|
|
79
79
|
}), at = () => ({
|
|
80
80
|
isEditing: W(),
|
|
81
|
-
isBrowser:
|
|
82
|
-
isServer:
|
|
83
|
-
getUserAttributes: () =>
|
|
84
|
-
}),
|
|
81
|
+
isBrowser: F(),
|
|
82
|
+
isServer: !F(),
|
|
83
|
+
getUserAttributes: () => Je()
|
|
84
|
+
}), rt = (e, {
|
|
85
85
|
isExpression: t = !0
|
|
86
86
|
}) => /* 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
|
|
87
|
+
function Ae({
|
|
88
88
|
rootState: e,
|
|
89
89
|
localState: t,
|
|
90
90
|
rootSetState: n
|
|
91
91
|
}) {
|
|
92
92
|
return new Proxy(e, {
|
|
93
|
-
get: (i,
|
|
94
|
-
if (t &&
|
|
95
|
-
return t[
|
|
96
|
-
const
|
|
97
|
-
return typeof
|
|
98
|
-
rootState:
|
|
93
|
+
get: (i, o) => {
|
|
94
|
+
if (t && o in t)
|
|
95
|
+
return t[o];
|
|
96
|
+
const a = i[o];
|
|
97
|
+
return typeof a == "object" && a !== null ? Ae({
|
|
98
|
+
rootState: a,
|
|
99
99
|
localState: void 0,
|
|
100
100
|
rootSetState: n ? (r) => {
|
|
101
|
-
i[
|
|
101
|
+
i[o] = r, n(i);
|
|
102
102
|
} : void 0
|
|
103
|
-
}) :
|
|
103
|
+
}) : a;
|
|
104
104
|
},
|
|
105
|
-
set: (i,
|
|
106
|
-
if (t &&
|
|
105
|
+
set: (i, o, a) => {
|
|
106
|
+
if (t && o in t)
|
|
107
107
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
108
|
-
return i[
|
|
108
|
+
return i[o] = a, n == null || n(i), !0;
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const pe = ({
|
|
113
113
|
code: e,
|
|
114
114
|
builder: t,
|
|
115
115
|
context: n,
|
|
116
116
|
event: i,
|
|
117
|
-
localState:
|
|
118
|
-
rootSetState:
|
|
117
|
+
localState: o,
|
|
118
|
+
rootSetState: a,
|
|
119
119
|
rootState: r
|
|
120
120
|
}) => {
|
|
121
|
-
const l =
|
|
121
|
+
const l = ot({
|
|
122
122
|
builder: t,
|
|
123
123
|
context: n,
|
|
124
124
|
event: i,
|
|
125
|
-
state:
|
|
125
|
+
state: Ae({
|
|
126
126
|
rootState: r,
|
|
127
|
-
localState:
|
|
128
|
-
rootSetState:
|
|
127
|
+
localState: o,
|
|
128
|
+
rootSetState: a
|
|
129
129
|
})
|
|
130
130
|
});
|
|
131
|
-
return new Function(...l.map(([
|
|
131
|
+
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
132
132
|
};
|
|
133
|
-
function
|
|
133
|
+
function lt() {
|
|
134
134
|
var e;
|
|
135
135
|
return typeof process != "undefined" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const st = ({
|
|
138
138
|
shouldLogWarning: e
|
|
139
139
|
}) => {
|
|
140
|
-
var
|
|
141
|
-
if (!
|
|
140
|
+
var o;
|
|
141
|
+
if (!lt())
|
|
142
142
|
return !1;
|
|
143
|
-
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (
|
|
143
|
+
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
144
|
return t && n && !i ? (e && Q.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;
|
|
145
|
-
},
|
|
145
|
+
}, ct = (e) => (F() || st({
|
|
146
146
|
shouldLogWarning: !0
|
|
147
|
-
}),
|
|
148
|
-
var t, n, i,
|
|
149
|
-
return ((i = (n = (t =
|
|
147
|
+
}), pe(e)), ut = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, dt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, mt = (e) => {
|
|
148
|
+
var t, n, i, o, a, r;
|
|
149
|
+
return ((i = (n = (t = ut.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = dt.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
|
|
150
150
|
};
|
|
151
151
|
function L({
|
|
152
152
|
code: e,
|
|
153
153
|
context: t,
|
|
154
154
|
localState: n,
|
|
155
155
|
rootState: i,
|
|
156
|
-
rootSetState:
|
|
157
|
-
event:
|
|
156
|
+
rootSetState: o,
|
|
157
|
+
event: a,
|
|
158
158
|
isExpression: r = !0
|
|
159
159
|
}) {
|
|
160
160
|
if (e.trim() === "")
|
|
161
161
|
return;
|
|
162
|
-
const l =
|
|
162
|
+
const l = mt(e.trim());
|
|
163
163
|
if (l)
|
|
164
|
-
return
|
|
164
|
+
return Ne({
|
|
165
165
|
...i,
|
|
166
166
|
...n
|
|
167
167
|
}, l);
|
|
168
|
-
const
|
|
169
|
-
code:
|
|
168
|
+
const d = {
|
|
169
|
+
code: rt(e, {
|
|
170
170
|
isExpression: r
|
|
171
171
|
}),
|
|
172
172
|
builder: at(),
|
|
173
173
|
context: t,
|
|
174
|
-
event:
|
|
175
|
-
rootSetState:
|
|
174
|
+
event: a,
|
|
175
|
+
rootSetState: o,
|
|
176
176
|
rootState: i,
|
|
177
177
|
localState: n
|
|
178
178
|
};
|
|
179
179
|
try {
|
|
180
|
-
return
|
|
180
|
+
return ct(d);
|
|
181
181
|
} catch (c) {
|
|
182
182
|
Q.error("Failed code evaluation: " + c.message, {
|
|
183
183
|
code: e
|
|
@@ -185,21 +185,21 @@ function L({
|
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function ft(e, t) {
|
|
189
189
|
var n;
|
|
190
190
|
return {
|
|
191
191
|
...(n = e.component) == null ? void 0 : n.options,
|
|
192
192
|
...e.options,
|
|
193
|
-
...
|
|
193
|
+
...ht(e, t)
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const ht = (e, t) => {
|
|
197
197
|
var n, i;
|
|
198
198
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
199
199
|
return {
|
|
200
200
|
...e.component.options,
|
|
201
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (
|
|
202
|
-
code:
|
|
201
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, a) => L({
|
|
202
|
+
code: a,
|
|
203
203
|
context: t,
|
|
204
204
|
localState: t.localState,
|
|
205
205
|
rootState: t.rootState,
|
|
@@ -207,58 +207,58 @@ const ft = (e, t) => {
|
|
|
207
207
|
}))
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
|
-
function
|
|
210
|
+
function gt(e, ...t) {
|
|
211
211
|
const n = Object.assign({}, e);
|
|
212
212
|
for (const i of t)
|
|
213
213
|
delete n[i];
|
|
214
214
|
return n;
|
|
215
215
|
}
|
|
216
|
-
function J(e, t, n = null, i = null,
|
|
216
|
+
function J(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
217
217
|
if (e == null || typeof e != "object") {
|
|
218
|
-
t(e, (
|
|
219
|
-
n !== null && i !== null && (n[i] =
|
|
218
|
+
t(e, (a) => {
|
|
219
|
+
n !== null && i !== null && (n[i] = a);
|
|
220
220
|
});
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
|
-
|
|
224
|
-
t(
|
|
225
|
-
e[r] =
|
|
226
|
-
}), J(
|
|
227
|
-
}) : Object.entries(e).forEach(([
|
|
228
|
-
t(r, (
|
|
229
|
-
e[
|
|
230
|
-
}), J(r, t, e,
|
|
223
|
+
o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((a, r) => {
|
|
224
|
+
t(a, (d) => {
|
|
225
|
+
e[r] = d;
|
|
226
|
+
}), J(a, t, e, r, o);
|
|
227
|
+
}) : Object.entries(e).forEach(([a, r]) => {
|
|
228
|
+
t(r, (d) => {
|
|
229
|
+
e[a] = d;
|
|
230
|
+
}), J(r, t, e, a, o);
|
|
231
231
|
}));
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function We(e) {
|
|
234
234
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function bt(e) {
|
|
237
237
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
238
238
|
return !1;
|
|
239
239
|
let t = !1;
|
|
240
240
|
return J(e, (n) => {
|
|
241
|
-
if (
|
|
241
|
+
if (We(n)) {
|
|
242
242
|
t = !0;
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
245
|
}), t;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function pt(e, t) {
|
|
248
248
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (J(e, (n, i) => {
|
|
249
|
-
var
|
|
250
|
-
|
|
249
|
+
var o;
|
|
250
|
+
We(n) && i((o = n[t]) != null ? o : void 0);
|
|
251
251
|
}), e);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function yt(e, t) {
|
|
254
254
|
var n, i;
|
|
255
|
-
return (n = e.component) != null && n.options &&
|
|
255
|
+
return (n = e.component) != null && n.options && bt((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 = pt(e.component.options, t != null ? t : "Default")), e;
|
|
256
256
|
}
|
|
257
|
-
const ce = (e) => JSON.parse(JSON.stringify(e)),
|
|
257
|
+
const ce = (e) => JSON.parse(JSON.stringify(e)), De = (e, t, n) => {
|
|
258
258
|
if (Object(e) !== e)
|
|
259
259
|
return e;
|
|
260
260
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
261
|
-
return i.slice(0, -1).reduce((
|
|
261
|
+
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
262
|
};
|
|
263
263
|
function re(e) {
|
|
264
264
|
if (e === null || typeof e != "object")
|
|
@@ -272,8 +272,8 @@ function re(e) {
|
|
|
272
272
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = re(e[n]));
|
|
273
273
|
return t;
|
|
274
274
|
}
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
275
|
+
const vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), xt = (e) => {
|
|
276
|
+
if (vt) {
|
|
277
277
|
const t = ce(e);
|
|
278
278
|
return {
|
|
279
279
|
...t,
|
|
@@ -285,7 +285,7 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), vt = (e) =
|
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
} else {
|
|
288
|
-
const t = re(
|
|
288
|
+
const t = re(gt(e, "children", "meta"));
|
|
289
289
|
return {
|
|
290
290
|
...t,
|
|
291
291
|
properties: {
|
|
@@ -298,179 +298,179 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), vt = (e) =
|
|
|
298
298
|
meta: e.meta
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, St = ({
|
|
302
302
|
block: e,
|
|
303
303
|
context: t,
|
|
304
304
|
localState: n,
|
|
305
305
|
rootState: i,
|
|
306
|
-
rootSetState:
|
|
306
|
+
rootSetState: o
|
|
307
307
|
}) => {
|
|
308
308
|
if (!e.bindings)
|
|
309
309
|
return e;
|
|
310
|
-
const
|
|
310
|
+
const a = xt(e);
|
|
311
311
|
for (const r in e.bindings) {
|
|
312
|
-
const l = e.bindings[r],
|
|
312
|
+
const l = e.bindings[r], d = L({
|
|
313
313
|
code: l,
|
|
314
314
|
localState: n,
|
|
315
315
|
rootState: i,
|
|
316
|
-
rootSetState:
|
|
316
|
+
rootSetState: o,
|
|
317
317
|
context: t
|
|
318
318
|
});
|
|
319
|
-
|
|
319
|
+
De(a, r, d);
|
|
320
320
|
}
|
|
321
|
-
return
|
|
321
|
+
return a;
|
|
322
322
|
};
|
|
323
|
-
function
|
|
323
|
+
function kt({
|
|
324
324
|
block: e,
|
|
325
325
|
context: t,
|
|
326
326
|
localState: n,
|
|
327
327
|
rootState: i,
|
|
328
|
-
rootSetState:
|
|
328
|
+
rootSetState: o
|
|
329
329
|
}) {
|
|
330
|
-
let
|
|
331
|
-
return
|
|
332
|
-
block:
|
|
330
|
+
let a = yt(e, i.locale);
|
|
331
|
+
return a = a, St({
|
|
332
|
+
block: a,
|
|
333
333
|
localState: n,
|
|
334
334
|
rootState: i,
|
|
335
|
-
rootSetState:
|
|
335
|
+
rootSetState: o,
|
|
336
336
|
context: t
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
339
|
const X = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
340
|
-
function
|
|
341
|
-
let i,
|
|
342
|
-
const
|
|
343
|
-
l = n.leading === !1 ? 0 : Date.now(), r = null,
|
|
340
|
+
function Ct(e, t, n = {}) {
|
|
341
|
+
let i, o, a, r = null, l = 0;
|
|
342
|
+
const d = function() {
|
|
343
|
+
l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
344
344
|
};
|
|
345
345
|
return function() {
|
|
346
346
|
const c = Date.now();
|
|
347
347
|
!l && n.leading === !1 && (l = c);
|
|
348
348
|
const h = t - (c - l);
|
|
349
|
-
return i = this,
|
|
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(d, h)), a;
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function q(e, ...t) {
|
|
353
353
|
const n = Object(e);
|
|
354
354
|
for (let i = 1; i < arguments.length; i++) {
|
|
355
|
-
const
|
|
356
|
-
if (
|
|
357
|
-
for (const
|
|
358
|
-
Object.prototype.hasOwnProperty.call(
|
|
355
|
+
const o = arguments[i];
|
|
356
|
+
if (o != null)
|
|
357
|
+
for (const a in o)
|
|
358
|
+
Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
|
|
359
359
|
}
|
|
360
360
|
return n;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Tt(e) {
|
|
363
363
|
for (const t of e)
|
|
364
364
|
switch (t.trigger) {
|
|
365
365
|
case "pageLoad":
|
|
366
|
-
|
|
366
|
+
Oe(t);
|
|
367
367
|
break;
|
|
368
368
|
case "scrollInView":
|
|
369
|
-
|
|
369
|
+
It(t);
|
|
370
370
|
break;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function $e(e) {
|
|
374
374
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
const n =
|
|
376
|
+
function Fe(e, t) {
|
|
377
|
+
const n = wt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
378
378
|
for (const l of r)
|
|
379
|
-
for (const
|
|
380
|
-
|
|
379
|
+
for (const d of n)
|
|
380
|
+
d in l || (l[d] = i[d]);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function wt(e) {
|
|
383
383
|
const t = [];
|
|
384
384
|
for (const n of e.steps)
|
|
385
385
|
for (const i in n.styles)
|
|
386
386
|
t.indexOf(i) === -1 && t.push(i);
|
|
387
387
|
return t;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Oe(e) {
|
|
390
390
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
391
391
|
if (!t.length) {
|
|
392
|
-
|
|
392
|
+
$e(e.elementId || e.id || "");
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
395
|
Array.from(t).forEach((n) => {
|
|
396
|
-
|
|
397
|
-
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
396
|
+
Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
|
|
397
|
+
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
|
|
398
398
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
399
399
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
400
400
|
});
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function It(e) {
|
|
404
404
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
405
405
|
if (!t.length) {
|
|
406
|
-
|
|
406
|
+
$e(e.elementId || e.id || "");
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
409
|
Array.from(t).forEach((n) => {
|
|
410
|
-
|
|
411
|
-
let i = !1,
|
|
412
|
-
function
|
|
413
|
-
!i && l(n) ? (i = !0,
|
|
414
|
-
|
|
415
|
-
|
|
410
|
+
Fe(e, n);
|
|
411
|
+
let i = !1, o = !1;
|
|
412
|
+
function a() {
|
|
413
|
+
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
414
|
+
q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
415
|
+
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
416
416
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
417
|
-
})) : e.repeat && i && !
|
|
417
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, q(n.style, e.steps[0].styles));
|
|
418
418
|
}
|
|
419
|
-
const r =
|
|
419
|
+
const r = Ct(a, 200, {
|
|
420
420
|
leading: !1
|
|
421
421
|
});
|
|
422
422
|
function l(h) {
|
|
423
|
-
const
|
|
424
|
-
return
|
|
423
|
+
const y = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
|
|
424
|
+
return y.bottom > f && y.top < u - f;
|
|
425
425
|
}
|
|
426
|
-
const
|
|
426
|
+
const d = e.steps[0].styles;
|
|
427
427
|
function c() {
|
|
428
|
-
|
|
428
|
+
q(n.style, d);
|
|
429
429
|
}
|
|
430
430
|
c(), setTimeout(() => {
|
|
431
431
|
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
432
432
|
}), document.addEventListener("scroll", r, {
|
|
433
433
|
capture: !0,
|
|
434
434
|
passive: !0
|
|
435
|
-
}),
|
|
435
|
+
}), a();
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
|
-
const
|
|
438
|
+
const Le = (e) => Object.entries(e).map(([n, i]) => {
|
|
439
439
|
if (typeof i == "string")
|
|
440
440
|
return `${X(n)}: ${i};`;
|
|
441
|
-
}).filter(K),
|
|
442
|
-
`),
|
|
441
|
+
}).filter(K), Et = (e) => Le(e).join(`
|
|
442
|
+
`), _ = ({
|
|
443
443
|
mediaQuery: e,
|
|
444
444
|
className: t,
|
|
445
445
|
styles: n
|
|
446
446
|
}) => {
|
|
447
447
|
const i = `.${t} {
|
|
448
|
-
${
|
|
448
|
+
${Et(n)}
|
|
449
449
|
}`;
|
|
450
450
|
return e ? `${e} {
|
|
451
451
|
${i}
|
|
452
452
|
}` : i;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function Rt({
|
|
455
455
|
style: e
|
|
456
456
|
}) {
|
|
457
457
|
return e;
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const Pt = ({
|
|
460
460
|
block: e,
|
|
461
461
|
context: t
|
|
462
|
-
}) =>
|
|
462
|
+
}) => Ue(Rt({
|
|
463
463
|
style: e.style || {},
|
|
464
464
|
context: t,
|
|
465
465
|
block: e
|
|
466
466
|
}));
|
|
467
|
-
function
|
|
467
|
+
function Ue(e) {
|
|
468
468
|
switch (O) {
|
|
469
469
|
case "svelte":
|
|
470
470
|
case "vue":
|
|
471
471
|
case "solid":
|
|
472
472
|
case "angular":
|
|
473
|
-
return
|
|
473
|
+
return Le(e).join(" ");
|
|
474
474
|
case "qwik":
|
|
475
475
|
case "reactNative":
|
|
476
476
|
case "react":
|
|
@@ -478,24 +478,24 @@ function Le(e) {
|
|
|
478
478
|
return e;
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
const
|
|
481
|
+
const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Vt = ({
|
|
482
482
|
block: e,
|
|
483
483
|
registeredComponents: t,
|
|
484
484
|
model: n
|
|
485
485
|
}) => {
|
|
486
|
-
var
|
|
487
|
-
const i = (
|
|
486
|
+
var a;
|
|
487
|
+
const i = (a = e.component) == null ? void 0 : a.name;
|
|
488
488
|
if (!i)
|
|
489
489
|
return null;
|
|
490
|
-
const
|
|
491
|
-
if (!
|
|
490
|
+
const o = t[i];
|
|
491
|
+
if (!o || _e(o, n)) {
|
|
492
492
|
console.warn(`
|
|
493
493
|
Could not find a registered component named "${i}".
|
|
494
494
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
495
495
|
return;
|
|
496
496
|
} else
|
|
497
|
-
return
|
|
498
|
-
},
|
|
497
|
+
return o;
|
|
498
|
+
}, Bt = ({
|
|
499
499
|
block: e,
|
|
500
500
|
context: t
|
|
501
501
|
}) => {
|
|
@@ -505,50 +505,50 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
505
505
|
} = e;
|
|
506
506
|
if (!(n != null && n.collection))
|
|
507
507
|
return;
|
|
508
|
-
const
|
|
508
|
+
const o = L({
|
|
509
509
|
code: n.collection,
|
|
510
510
|
localState: t.localState,
|
|
511
511
|
rootState: t.rootState,
|
|
512
512
|
rootSetState: t.rootSetState,
|
|
513
513
|
context: t.context
|
|
514
514
|
});
|
|
515
|
-
if (!Array.isArray(
|
|
515
|
+
if (!Array.isArray(o))
|
|
516
516
|
return;
|
|
517
|
-
const
|
|
518
|
-
return
|
|
517
|
+
const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
|
|
518
|
+
return o.map((d, c) => ({
|
|
519
519
|
context: {
|
|
520
520
|
...t,
|
|
521
521
|
localState: {
|
|
522
522
|
...t.localState,
|
|
523
523
|
$index: c,
|
|
524
|
-
$item:
|
|
525
|
-
[r]:
|
|
524
|
+
$item: d,
|
|
525
|
+
[r]: d,
|
|
526
526
|
[`$${r}Index`]: c
|
|
527
527
|
}
|
|
528
528
|
},
|
|
529
529
|
block: i
|
|
530
530
|
}));
|
|
531
|
-
},
|
|
531
|
+
}, Nt = (e, t) => {
|
|
532
532
|
var n;
|
|
533
533
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
534
534
|
builderLinkComponent: t
|
|
535
535
|
} : {};
|
|
536
|
-
},
|
|
536
|
+
}, At = (e, t, n) => {
|
|
537
537
|
var i;
|
|
538
538
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
539
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([
|
|
539
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !_e(r, n)))
|
|
540
540
|
} : {};
|
|
541
|
-
},
|
|
541
|
+
}, Wt = (e, t) => {
|
|
542
542
|
var n;
|
|
543
543
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
544
544
|
builderBlock: t
|
|
545
545
|
} : {};
|
|
546
|
-
},
|
|
546
|
+
}, Dt = (e, t) => {
|
|
547
547
|
var n;
|
|
548
548
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
549
549
|
builderContext: t
|
|
550
550
|
} : {};
|
|
551
|
-
},
|
|
551
|
+
}, qe = {
|
|
552
552
|
xsmall: {
|
|
553
553
|
min: 0,
|
|
554
554
|
default: 160,
|
|
@@ -569,34 +569,34 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
569
569
|
default: 991,
|
|
570
570
|
max: 1200
|
|
571
571
|
}
|
|
572
|
-
}, ee = (e, t =
|
|
573
|
-
const t = ce(
|
|
572
|
+
}, ee = (e, t = qe) => `@media (max-width: ${t[e].max}px)`, Me = (e) => {
|
|
573
|
+
const t = ce(qe);
|
|
574
574
|
if (!e)
|
|
575
575
|
return t;
|
|
576
576
|
const {
|
|
577
577
|
xsmall: n,
|
|
578
578
|
small: i,
|
|
579
|
-
medium:
|
|
579
|
+
medium: o
|
|
580
580
|
} = e;
|
|
581
581
|
if (n) {
|
|
582
|
-
const
|
|
582
|
+
const d = Math.floor(n / 2);
|
|
583
583
|
t.xsmall = {
|
|
584
584
|
max: n,
|
|
585
|
-
min:
|
|
586
|
-
default:
|
|
585
|
+
min: d,
|
|
586
|
+
default: d + 1
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
|
-
if (!i || !
|
|
589
|
+
if (!i || !o)
|
|
590
590
|
return t;
|
|
591
|
-
const
|
|
591
|
+
const a = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
592
592
|
t.small = {
|
|
593
593
|
max: i,
|
|
594
|
-
min:
|
|
595
|
-
default:
|
|
594
|
+
min: a,
|
|
595
|
+
default: a + 1
|
|
596
596
|
};
|
|
597
597
|
const r = t.small.max + 1;
|
|
598
598
|
t.medium = {
|
|
599
|
-
max:
|
|
599
|
+
max: o,
|
|
600
600
|
min: r,
|
|
601
601
|
default: r + 1
|
|
602
602
|
};
|
|
@@ -608,7 +608,7 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
608
608
|
default: l + 1
|
|
609
609
|
}, t;
|
|
610
610
|
};
|
|
611
|
-
function
|
|
611
|
+
function j(e) {
|
|
612
612
|
return /* @__PURE__ */ s(
|
|
613
613
|
"style",
|
|
614
614
|
{
|
|
@@ -618,67 +618,67 @@ function H(e) {
|
|
|
618
618
|
}
|
|
619
619
|
);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function $t(e) {
|
|
622
622
|
function t() {
|
|
623
623
|
const i = e.block;
|
|
624
624
|
return K(i.hide) ? !i.hide : K(i.show) ? i.show : !0;
|
|
625
625
|
}
|
|
626
626
|
function n() {
|
|
627
|
-
var
|
|
628
|
-
const i = e.block,
|
|
629
|
-
((
|
|
630
|
-
), l = !!((
|
|
631
|
-
if (!
|
|
627
|
+
var C, P, w, k, m;
|
|
628
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Me(
|
|
629
|
+
((C = a == null ? void 0 : a.meta) == null ? void 0 : C.breakpoints) || {}
|
|
630
|
+
), l = !!((w = (P = a == null ? void 0 : a.meta) == null ? void 0 : P.breakpoints) != null && w.xsmall), d = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, h = o == null ? void 0 : o.small, y = o == null ? void 0 : o.xsmall, u = i.id;
|
|
631
|
+
if (!u)
|
|
632
632
|
return "";
|
|
633
|
-
const
|
|
634
|
-
className:
|
|
635
|
-
styles:
|
|
636
|
-
}) : "", f = c ?
|
|
637
|
-
className:
|
|
633
|
+
const v = d ? _({
|
|
634
|
+
className: u,
|
|
635
|
+
styles: d
|
|
636
|
+
}) : "", f = c ? _({
|
|
637
|
+
className: u,
|
|
638
638
|
styles: c,
|
|
639
639
|
mediaQuery: ee(
|
|
640
640
|
"medium",
|
|
641
641
|
r
|
|
642
642
|
)
|
|
643
|
-
}) : "",
|
|
644
|
-
className:
|
|
643
|
+
}) : "", g = h ? _({
|
|
644
|
+
className: u,
|
|
645
645
|
styles: h,
|
|
646
646
|
mediaQuery: ee(
|
|
647
647
|
"small",
|
|
648
648
|
r
|
|
649
649
|
)
|
|
650
|
-
}) : "", x =
|
|
651
|
-
className:
|
|
652
|
-
styles:
|
|
650
|
+
}) : "", x = y && l ? _({
|
|
651
|
+
className: u,
|
|
652
|
+
styles: y,
|
|
653
653
|
mediaQuery: ee(
|
|
654
654
|
"xsmall",
|
|
655
655
|
r
|
|
656
656
|
)
|
|
657
|
-
}) : "",
|
|
657
|
+
}) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
658
658
|
let S = "";
|
|
659
|
-
if (
|
|
660
|
-
const p = ((m = (
|
|
661
|
-
S =
|
|
662
|
-
className: `${
|
|
659
|
+
if (b) {
|
|
660
|
+
const p = ((m = (k = b.steps) == null ? void 0 : k[1]) == null ? void 0 : m.styles) || {};
|
|
661
|
+
S = _({
|
|
662
|
+
className: `${u}:hover`,
|
|
663
663
|
styles: {
|
|
664
664
|
...p,
|
|
665
|
-
transition: `all ${
|
|
666
|
-
|
|
665
|
+
transition: `all ${b.duration}s ${X(
|
|
666
|
+
b.easing
|
|
667
667
|
)}`,
|
|
668
|
-
transitionDelay:
|
|
668
|
+
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
669
669
|
}
|
|
670
670
|
}) || "";
|
|
671
671
|
}
|
|
672
672
|
return [
|
|
673
|
-
|
|
673
|
+
v,
|
|
674
674
|
f,
|
|
675
|
-
|
|
675
|
+
g,
|
|
676
676
|
x,
|
|
677
677
|
S
|
|
678
678
|
].join(" ");
|
|
679
679
|
}
|
|
680
680
|
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
681
|
-
|
|
681
|
+
j,
|
|
682
682
|
{
|
|
683
683
|
id: "builderio-block",
|
|
684
684
|
styles: n(),
|
|
@@ -686,10 +686,10 @@ function Dt(e) {
|
|
|
686
686
|
}
|
|
687
687
|
) }) : null });
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function Ft(e) {
|
|
690
690
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
691
691
|
}
|
|
692
|
-
const
|
|
692
|
+
const Ot = (e) => `on${Ft(e)}`, Lt = (e, t) => (n) => L({
|
|
693
693
|
code: e,
|
|
694
694
|
context: t.context,
|
|
695
695
|
localState: t.localState,
|
|
@@ -698,14 +698,14 @@ const Ft = (e) => `on${$t(e)}`, Ot = (e, t) => (n) => L({
|
|
|
698
698
|
event: n,
|
|
699
699
|
isExpression: !1
|
|
700
700
|
});
|
|
701
|
-
function
|
|
701
|
+
function He(e) {
|
|
702
702
|
var i;
|
|
703
703
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
704
|
-
for (const
|
|
705
|
-
if (!n.hasOwnProperty(
|
|
704
|
+
for (const o in n) {
|
|
705
|
+
if (!n.hasOwnProperty(o))
|
|
706
706
|
continue;
|
|
707
|
-
const
|
|
708
|
-
let r =
|
|
707
|
+
const a = n[o];
|
|
708
|
+
let r = Ot(o);
|
|
709
709
|
if (e.stripPrefix)
|
|
710
710
|
switch (O) {
|
|
711
711
|
case "vue":
|
|
@@ -715,16 +715,16 @@ function Me(e) {
|
|
|
715
715
|
r = r.replace("on:", "");
|
|
716
716
|
break;
|
|
717
717
|
}
|
|
718
|
-
t[r] =
|
|
718
|
+
t[r] = Lt(a, e);
|
|
719
719
|
}
|
|
720
720
|
return t;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function Ut({
|
|
723
723
|
properties: e
|
|
724
724
|
}) {
|
|
725
725
|
return e;
|
|
726
726
|
}
|
|
727
|
-
const
|
|
727
|
+
const _t = (e) => ({
|
|
728
728
|
href: e.href
|
|
729
729
|
});
|
|
730
730
|
function ue({
|
|
@@ -733,22 +733,22 @@ function ue({
|
|
|
733
733
|
}) {
|
|
734
734
|
var i;
|
|
735
735
|
const n = {
|
|
736
|
-
...
|
|
736
|
+
..._t(e),
|
|
737
737
|
...e.properties,
|
|
738
738
|
"builder-id": e.id,
|
|
739
|
-
style:
|
|
739
|
+
style: Pt({
|
|
740
740
|
block: e,
|
|
741
741
|
context: t
|
|
742
742
|
}),
|
|
743
|
-
[
|
|
743
|
+
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
744
744
|
};
|
|
745
|
-
return
|
|
745
|
+
return Ut({
|
|
746
746
|
properties: n,
|
|
747
747
|
context: t,
|
|
748
748
|
block: e
|
|
749
749
|
});
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function qt(e) {
|
|
752
752
|
return /* @__PURE__ */ s(
|
|
753
753
|
le,
|
|
754
754
|
{
|
|
@@ -757,7 +757,7 @@ function _t(e) {
|
|
|
757
757
|
block: e.block,
|
|
758
758
|
context: e.context
|
|
759
759
|
}),
|
|
760
|
-
actionAttributes:
|
|
760
|
+
actionAttributes: He({
|
|
761
761
|
block: e.block,
|
|
762
762
|
rootState: e.context.rootState,
|
|
763
763
|
rootSetState: e.context.rootSetState,
|
|
@@ -769,18 +769,18 @@ function _t(e) {
|
|
|
769
769
|
}
|
|
770
770
|
);
|
|
771
771
|
}
|
|
772
|
-
function
|
|
773
|
-
return
|
|
772
|
+
function Mt(e) {
|
|
773
|
+
return B(() => {
|
|
774
774
|
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function Ht(e) {
|
|
777
777
|
function t() {
|
|
778
778
|
return e.includeBlockProps ? {
|
|
779
779
|
...ue({
|
|
780
780
|
block: e.block,
|
|
781
781
|
context: e.context
|
|
782
782
|
}),
|
|
783
|
-
...
|
|
783
|
+
...He({
|
|
784
784
|
block: e.block,
|
|
785
785
|
rootState: e.context.rootState,
|
|
786
786
|
rootSetState: e.context.rootSetState,
|
|
@@ -790,7 +790,7 @@ function Mt(e) {
|
|
|
790
790
|
} : {};
|
|
791
791
|
}
|
|
792
792
|
return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
793
|
-
|
|
793
|
+
Mt,
|
|
794
794
|
{
|
|
795
795
|
load: e.Wrapper.load,
|
|
796
796
|
fallback: e.Wrapper.fallback,
|
|
@@ -800,13 +800,13 @@ function Mt(e) {
|
|
|
800
800
|
}
|
|
801
801
|
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
802
802
|
}
|
|
803
|
-
const
|
|
803
|
+
const jt = ({
|
|
804
804
|
componentOptions: e,
|
|
805
805
|
builderBlock: t,
|
|
806
806
|
context: n,
|
|
807
807
|
componentRef: i,
|
|
808
|
-
includeBlockProps:
|
|
809
|
-
isInteractive:
|
|
808
|
+
includeBlockProps: o,
|
|
809
|
+
isInteractive: a,
|
|
810
810
|
contextValue: r
|
|
811
811
|
}) => {
|
|
812
812
|
const l = {
|
|
@@ -815,30 +815,30 @@ const Ht = ({
|
|
|
815
815
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
816
816
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
817
817
|
*/
|
|
818
|
-
...
|
|
818
|
+
...o ? {
|
|
819
819
|
attributes: ue({
|
|
820
820
|
block: t,
|
|
821
821
|
context: r
|
|
822
822
|
})
|
|
823
823
|
} : {}
|
|
824
824
|
};
|
|
825
|
-
return
|
|
825
|
+
return a ? {
|
|
826
826
|
Wrapper: i,
|
|
827
827
|
block: t,
|
|
828
828
|
context: n,
|
|
829
829
|
wrapperProps: e,
|
|
830
|
-
includeBlockProps:
|
|
830
|
+
includeBlockProps: o
|
|
831
831
|
} : l;
|
|
832
832
|
};
|
|
833
|
-
function
|
|
833
|
+
function ye(e) {
|
|
834
834
|
var i;
|
|
835
835
|
const [t, n] = E(
|
|
836
|
-
() => e.isInteractive ?
|
|
836
|
+
() => e.isInteractive ? Ht : e.componentRef
|
|
837
837
|
);
|
|
838
838
|
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
839
839
|
t,
|
|
840
840
|
{
|
|
841
|
-
...
|
|
841
|
+
...jt({
|
|
842
842
|
componentOptions: e.componentOptions,
|
|
843
843
|
builderBlock: e.builderBlock,
|
|
844
844
|
context: e.context,
|
|
@@ -848,20 +848,20 @@ function pe(e) {
|
|
|
848
848
|
isInteractive: e.isInteractive,
|
|
849
849
|
contextValue: e.context
|
|
850
850
|
}),
|
|
851
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((
|
|
851
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
|
|
852
852
|
Z,
|
|
853
853
|
{
|
|
854
|
-
block:
|
|
854
|
+
block: o,
|
|
855
855
|
context: e.context,
|
|
856
856
|
registeredComponents: e.registeredComponents,
|
|
857
857
|
linkComponent: e.linkComponent
|
|
858
858
|
},
|
|
859
|
-
|
|
859
|
+
o.id
|
|
860
860
|
))
|
|
861
861
|
}
|
|
862
862
|
) }) : null });
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function ve(e) {
|
|
865
865
|
const [t, n] = E(() => e.repeatContext);
|
|
866
866
|
return /* @__PURE__ */ s(se.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
867
867
|
Z,
|
|
@@ -874,9 +874,9 @@ function ye(e) {
|
|
|
874
874
|
) });
|
|
875
875
|
}
|
|
876
876
|
function Z(e) {
|
|
877
|
-
var h,
|
|
877
|
+
var h, y, u, v;
|
|
878
878
|
function t() {
|
|
879
|
-
return
|
|
879
|
+
return Bt({
|
|
880
880
|
block: e.block,
|
|
881
881
|
context: e.context
|
|
882
882
|
});
|
|
@@ -885,11 +885,11 @@ function Z(e) {
|
|
|
885
885
|
value: null,
|
|
886
886
|
update: !1
|
|
887
887
|
}));
|
|
888
|
-
function
|
|
889
|
-
var
|
|
888
|
+
function o() {
|
|
889
|
+
var g;
|
|
890
890
|
if (n.value && !n.update && !Y())
|
|
891
891
|
return n.value;
|
|
892
|
-
const f = (
|
|
892
|
+
const f = (g = e.block.repeat) != null && g.collection ? e.block : kt({
|
|
893
893
|
block: e.block,
|
|
894
894
|
localState: e.context.localState,
|
|
895
895
|
rootState: e.context.rootState,
|
|
@@ -898,40 +898,40 @@ function Z(e) {
|
|
|
898
898
|
});
|
|
899
899
|
return n.value = f, n.update = !1, f;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
902
|
-
return
|
|
903
|
-
block:
|
|
901
|
+
function a() {
|
|
902
|
+
return Vt({
|
|
903
|
+
block: o(),
|
|
904
904
|
registeredComponents: e.registeredComponents,
|
|
905
905
|
model: e.context.model
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
function r() {
|
|
909
|
-
var
|
|
910
|
-
return e.block.tagName === "a" || ((
|
|
909
|
+
var g;
|
|
910
|
+
return e.block.tagName === "a" || ((g = o().properties) == null ? void 0 : g.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
911
911
|
}
|
|
912
912
|
function l() {
|
|
913
|
-
var x,
|
|
913
|
+
var x, b;
|
|
914
914
|
if ((x = e.block.repeat) != null && x.collection)
|
|
915
|
-
return !!((
|
|
916
|
-
const f = "hide" in
|
|
917
|
-
return ("show" in
|
|
915
|
+
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
916
|
+
const f = "hide" in o() ? o().hide : !1;
|
|
917
|
+
return ("show" in o() ? o().show : !0) && !f;
|
|
918
918
|
}
|
|
919
|
-
function
|
|
920
|
-
var
|
|
921
|
-
return !((
|
|
919
|
+
function d() {
|
|
920
|
+
var g, x;
|
|
921
|
+
return !((g = a == null ? void 0 : a()) != null && g.component) && !t() ? (x = o().children) != null ? x : [] : [];
|
|
922
922
|
}
|
|
923
923
|
function c() {
|
|
924
|
-
var f,
|
|
924
|
+
var f, g, x, b;
|
|
925
925
|
return {
|
|
926
|
-
blockChildren: (f =
|
|
927
|
-
componentRef: (
|
|
926
|
+
blockChildren: (f = o().children) != null ? f : [],
|
|
927
|
+
componentRef: (g = a == null ? void 0 : a()) == null ? void 0 : g.component,
|
|
928
928
|
componentOptions: {
|
|
929
|
-
...
|
|
930
|
-
...
|
|
931
|
-
...
|
|
932
|
-
...
|
|
933
|
-
...
|
|
934
|
-
|
|
929
|
+
...ft(o(), e.context),
|
|
930
|
+
...Wt(a(), o()),
|
|
931
|
+
...Dt(a(), e.context),
|
|
932
|
+
...Nt(a(), e.linkComponent),
|
|
933
|
+
...At(
|
|
934
|
+
a(),
|
|
935
935
|
e.registeredComponents,
|
|
936
936
|
e.context.model
|
|
937
937
|
)
|
|
@@ -939,34 +939,34 @@ function Z(e) {
|
|
|
939
939
|
context: e.context,
|
|
940
940
|
linkComponent: e.linkComponent,
|
|
941
941
|
registeredComponents: e.registeredComponents,
|
|
942
|
-
builderBlock:
|
|
943
|
-
includeBlockProps: ((x =
|
|
944
|
-
isInteractive: !((
|
|
942
|
+
builderBlock: o(),
|
|
943
|
+
includeBlockProps: ((x = a == null ? void 0 : a()) == null ? void 0 : x.noWrap) === !0,
|
|
944
|
+
isInteractive: !((b = a == null ? void 0 : a()) != null && b.isRSC && O === "rsc")
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
|
-
return
|
|
948
|
-
const f =
|
|
949
|
-
|
|
950
|
-
|
|
947
|
+
return B(() => {
|
|
948
|
+
const f = o().id, g = o().animations;
|
|
949
|
+
g && f && Tt(
|
|
950
|
+
g.map((x) => ({
|
|
951
951
|
...x,
|
|
952
952
|
elementId: f
|
|
953
953
|
}))
|
|
954
954
|
);
|
|
955
|
-
}, []),
|
|
955
|
+
}, []), B(() => {
|
|
956
956
|
n.update = !0;
|
|
957
|
-
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */
|
|
958
|
-
/* @__PURE__ */ s(
|
|
959
|
-
(h =
|
|
960
|
-
|
|
957
|
+
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ A(R, { children: [
|
|
958
|
+
/* @__PURE__ */ s($t, { block: o(), context: e.context }),
|
|
959
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, g) => /* @__PURE__ */ s(
|
|
960
|
+
ve,
|
|
961
961
|
{
|
|
962
962
|
repeatContext: f.context,
|
|
963
963
|
block: f.block,
|
|
964
964
|
registeredComponents: e.registeredComponents,
|
|
965
965
|
linkComponent: e.linkComponent
|
|
966
966
|
},
|
|
967
|
-
|
|
967
|
+
g
|
|
968
968
|
)) }) : /* @__PURE__ */ s(
|
|
969
|
-
|
|
969
|
+
ye,
|
|
970
970
|
{
|
|
971
971
|
componentRef: c().componentRef,
|
|
972
972
|
componentOptions: c().componentOptions,
|
|
@@ -978,24 +978,24 @@ function Z(e) {
|
|
|
978
978
|
includeBlockProps: c().includeBlockProps,
|
|
979
979
|
isInteractive: c().isInteractive
|
|
980
980
|
}
|
|
981
|
-
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (
|
|
982
|
-
|
|
981
|
+
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (u = t()) == null ? void 0 : u.map((f, g) => /* @__PURE__ */ s(
|
|
982
|
+
ve,
|
|
983
983
|
{
|
|
984
984
|
repeatContext: f.context,
|
|
985
985
|
block: f.block,
|
|
986
986
|
registeredComponents: e.registeredComponents,
|
|
987
987
|
linkComponent: e.linkComponent
|
|
988
988
|
},
|
|
989
|
-
|
|
990
|
-
)) }) : /* @__PURE__ */
|
|
991
|
-
|
|
989
|
+
g
|
|
990
|
+
)) }) : /* @__PURE__ */ A(
|
|
991
|
+
qt,
|
|
992
992
|
{
|
|
993
993
|
Wrapper: r(),
|
|
994
|
-
block:
|
|
994
|
+
block: o(),
|
|
995
995
|
context: e.context,
|
|
996
996
|
children: [
|
|
997
997
|
/* @__PURE__ */ s(
|
|
998
|
-
|
|
998
|
+
ye,
|
|
999
999
|
{
|
|
1000
1000
|
componentRef: c().componentRef,
|
|
1001
1001
|
componentOptions: c().componentOptions,
|
|
@@ -1008,7 +1008,7 @@ function Z(e) {
|
|
|
1008
1008
|
isInteractive: c().isInteractive
|
|
1009
1009
|
}
|
|
1010
1010
|
),
|
|
1011
|
-
(
|
|
1011
|
+
(y = d()) == null ? void 0 : y.map((f) => /* @__PURE__ */ s(
|
|
1012
1012
|
Z,
|
|
1013
1013
|
{
|
|
1014
1014
|
block: f,
|
|
@@ -1023,8 +1023,8 @@ function Z(e) {
|
|
|
1023
1023
|
) })
|
|
1024
1024
|
] }) : null });
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1027
|
-
const t =
|
|
1026
|
+
function zt(e) {
|
|
1027
|
+
const t = $(null);
|
|
1028
1028
|
function n() {
|
|
1029
1029
|
var r;
|
|
1030
1030
|
return [
|
|
@@ -1039,7 +1039,7 @@ function jt(e) {
|
|
|
1039
1039
|
const r = "this.", l = "component.options.";
|
|
1040
1040
|
return e.path.startsWith(r) ? e.path.replace(r, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function o() {
|
|
1043
1043
|
var r, l;
|
|
1044
1044
|
W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1045
1045
|
{
|
|
@@ -1052,7 +1052,7 @@ function jt(e) {
|
|
|
1052
1052
|
"*"
|
|
1053
1053
|
));
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function a() {
|
|
1056
1056
|
var r, l;
|
|
1057
1057
|
W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1058
1058
|
{
|
|
@@ -1065,8 +1065,8 @@ function jt(e) {
|
|
|
1065
1065
|
"*"
|
|
1066
1066
|
));
|
|
1067
1067
|
}
|
|
1068
|
-
return
|
|
1069
|
-
}, []), /* @__PURE__ */
|
|
1068
|
+
return B(() => {
|
|
1069
|
+
}, []), /* @__PURE__ */ A(R, { children: [
|
|
1070
1070
|
/* @__PURE__ */ s(
|
|
1071
1071
|
e.BlocksWrapper,
|
|
1072
1072
|
{
|
|
@@ -1075,9 +1075,9 @@ function jt(e) {
|
|
|
1075
1075
|
"builder-path": i(),
|
|
1076
1076
|
"builder-parent-id": e.parent,
|
|
1077
1077
|
style: e.styleProp,
|
|
1078
|
-
onClick: (r) =>
|
|
1079
|
-
onMouseEnter: (r) =>
|
|
1080
|
-
onKeyPress: (r) =>
|
|
1078
|
+
onClick: (r) => o(),
|
|
1079
|
+
onMouseEnter: (r) => a(),
|
|
1080
|
+
onKeyPress: (r) => o(),
|
|
1081
1081
|
...e.BlocksWrapperProps,
|
|
1082
1082
|
children: e.children
|
|
1083
1083
|
}
|
|
@@ -1090,10 +1090,10 @@ function jt(e) {
|
|
|
1090
1090
|
] });
|
|
1091
1091
|
}
|
|
1092
1092
|
function D(e) {
|
|
1093
|
-
var i,
|
|
1094
|
-
const t =
|
|
1093
|
+
var i, o, a;
|
|
1094
|
+
const t = be(se), n = be(Be);
|
|
1095
1095
|
return /* @__PURE__ */ s(
|
|
1096
|
-
|
|
1096
|
+
zt,
|
|
1097
1097
|
{
|
|
1098
1098
|
blocks: e.blocks,
|
|
1099
1099
|
parent: e.parent,
|
|
@@ -1101,8 +1101,8 @@ function D(e) {
|
|
|
1101
1101
|
styleProp: e.styleProp,
|
|
1102
1102
|
classNameProp: e.className,
|
|
1103
1103
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1104
|
-
BlocksWrapperProps: ((
|
|
1105
|
-
children: e.blocks ? /* @__PURE__ */ s(R, { children: (
|
|
1104
|
+
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1105
|
+
children: e.blocks ? /* @__PURE__ */ s(R, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
|
|
1106
1106
|
Z,
|
|
1107
1107
|
{
|
|
1108
1108
|
block: r,
|
|
@@ -1115,9 +1115,9 @@ function D(e) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
);
|
|
1117
1117
|
}
|
|
1118
|
-
const
|
|
1119
|
-
function
|
|
1120
|
-
var
|
|
1118
|
+
const Kt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1119
|
+
function Jt(e) {
|
|
1120
|
+
var g, x;
|
|
1121
1121
|
function t() {
|
|
1122
1122
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1123
1123
|
}
|
|
@@ -1127,28 +1127,28 @@ function Kt(e) {
|
|
|
1127
1127
|
function i() {
|
|
1128
1128
|
return e.stackColumnsAt || "tablet";
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1131
|
-
return
|
|
1130
|
+
function o(b) {
|
|
1131
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1133
|
+
function a(b) {
|
|
1134
1134
|
var S;
|
|
1135
|
-
return ((S = n()[
|
|
1135
|
+
return ((S = n()[b]) == null ? void 0 : S.width) || 100 / n().length;
|
|
1136
1136
|
}
|
|
1137
|
-
function r(
|
|
1138
|
-
const S =
|
|
1139
|
-
return `calc(${S}% - ${
|
|
1137
|
+
function r(b) {
|
|
1138
|
+
const S = a(b), C = t() * (n().length - 1) * (S / 100);
|
|
1139
|
+
return `calc(${S}% - ${C}px)`;
|
|
1140
1140
|
}
|
|
1141
1141
|
function l({
|
|
1142
|
-
stackedStyle:
|
|
1142
|
+
stackedStyle: b,
|
|
1143
1143
|
desktopStyle: S
|
|
1144
1144
|
}) {
|
|
1145
|
-
return i() === "tablet" ?
|
|
1145
|
+
return i() === "tablet" ? b : S;
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1148
|
-
stackedStyle:
|
|
1147
|
+
function d({
|
|
1148
|
+
stackedStyle: b,
|
|
1149
1149
|
desktopStyle: S
|
|
1150
1150
|
}) {
|
|
1151
|
-
return i() === "never" ? S :
|
|
1151
|
+
return i() === "never" ? S : b;
|
|
1152
1152
|
}
|
|
1153
1153
|
function c() {
|
|
1154
1154
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1162,98 +1162,98 @@ function Kt(e) {
|
|
|
1162
1162
|
})
|
|
1163
1163
|
};
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1166
|
-
const S =
|
|
1165
|
+
function y(b) {
|
|
1166
|
+
const S = b === 0 ? 0 : t(), C = r(b), P = `${S}px`, w = "100%", k = 0;
|
|
1167
1167
|
return {
|
|
1168
1168
|
...{
|
|
1169
1169
|
display: "flex",
|
|
1170
1170
|
flexDirection: "column",
|
|
1171
1171
|
alignItems: "stretch"
|
|
1172
1172
|
},
|
|
1173
|
-
width:
|
|
1173
|
+
width: C,
|
|
1174
1174
|
["marginLeft"]: P,
|
|
1175
|
-
"--column-width-mobile":
|
|
1176
|
-
stackedStyle:
|
|
1177
|
-
desktopStyle:
|
|
1175
|
+
"--column-width-mobile": d({
|
|
1176
|
+
stackedStyle: w,
|
|
1177
|
+
desktopStyle: C
|
|
1178
1178
|
}),
|
|
1179
|
-
"--column-margin-left-mobile":
|
|
1180
|
-
stackedStyle:
|
|
1179
|
+
"--column-margin-left-mobile": d({
|
|
1180
|
+
stackedStyle: k,
|
|
1181
1181
|
desktopStyle: P
|
|
1182
1182
|
}),
|
|
1183
1183
|
"--column-width-tablet": l({
|
|
1184
|
-
stackedStyle:
|
|
1185
|
-
desktopStyle:
|
|
1184
|
+
stackedStyle: w,
|
|
1185
|
+
desktopStyle: C
|
|
1186
1186
|
}),
|
|
1187
1187
|
"--column-margin-left-tablet": l({
|
|
1188
|
-
stackedStyle:
|
|
1188
|
+
stackedStyle: k,
|
|
1189
1189
|
desktopStyle: P
|
|
1190
1190
|
})
|
|
1191
1191
|
};
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1194
|
-
var
|
|
1195
|
-
return
|
|
1196
|
-
((P = (
|
|
1197
|
-
)[
|
|
1193
|
+
function u(b) {
|
|
1194
|
+
var C, P;
|
|
1195
|
+
return Me(
|
|
1196
|
+
((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
|
|
1197
|
+
)[b].max;
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1200
|
-
const
|
|
1199
|
+
function v() {
|
|
1200
|
+
const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1201
1201
|
return `
|
|
1202
|
-
@media (max-width: ${
|
|
1202
|
+
@media (max-width: ${u("medium")}px) {
|
|
1203
1203
|
.${e.builderBlock.id}-breakpoints {
|
|
1204
1204
|
flex-direction: var(--flex-dir-tablet);
|
|
1205
1205
|
align-items: stretch;
|
|
1206
1206
|
}
|
|
1207
1207
|
|
|
1208
|
-
${
|
|
1208
|
+
${b} {
|
|
1209
1209
|
width: var(--column-width-tablet) !important;
|
|
1210
1210
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1211
1211
|
}
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
|
-
@media (max-width: ${
|
|
1214
|
+
@media (max-width: ${u("small")}px) {
|
|
1215
1215
|
.${e.builderBlock.id}-breakpoints {
|
|
1216
1216
|
flex-direction: var(--flex-dir);
|
|
1217
1217
|
align-items: stretch;
|
|
1218
1218
|
}
|
|
1219
1219
|
|
|
1220
|
-
${
|
|
1220
|
+
${b} {
|
|
1221
1221
|
width: var(--column-width-mobile) !important;
|
|
1222
1222
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1223
1223
|
}
|
|
1224
1224
|
},
|
|
1225
1225
|
`;
|
|
1226
1226
|
}
|
|
1227
|
-
function f(
|
|
1227
|
+
function f(b, S) {
|
|
1228
1228
|
return {
|
|
1229
|
-
...
|
|
1230
|
-
href:
|
|
1229
|
+
...b.link ? {
|
|
1230
|
+
href: b.link
|
|
1231
1231
|
} : {},
|
|
1232
|
-
[
|
|
1233
|
-
style:
|
|
1232
|
+
[H()]: "builder-column",
|
|
1233
|
+
style: Ue(y(S))
|
|
1234
1234
|
};
|
|
1235
1235
|
}
|
|
1236
|
-
return /* @__PURE__ */
|
|
1237
|
-
/* @__PURE__ */
|
|
1236
|
+
return /* @__PURE__ */ A(R, { children: [
|
|
1237
|
+
/* @__PURE__ */ A(
|
|
1238
1238
|
"div",
|
|
1239
1239
|
{
|
|
1240
|
-
className:
|
|
1240
|
+
className: Kt((g = e.builderBlock) == null ? void 0 : g.id) + " div-a6f3faac",
|
|
1241
1241
|
style: h(),
|
|
1242
1242
|
children: [
|
|
1243
1243
|
/* @__PURE__ */ s(
|
|
1244
|
-
|
|
1244
|
+
j,
|
|
1245
1245
|
{
|
|
1246
1246
|
id: "builderio-columns",
|
|
1247
|
-
styles:
|
|
1247
|
+
styles: v(),
|
|
1248
1248
|
nonce: e.builderContext.nonce
|
|
1249
1249
|
}
|
|
1250
1250
|
),
|
|
1251
|
-
(x = e.columns) == null ? void 0 : x.map((
|
|
1251
|
+
(x = e.columns) == null ? void 0 : x.map((b, S) => /* @__PURE__ */ s(
|
|
1252
1252
|
le,
|
|
1253
1253
|
{
|
|
1254
|
-
TagName:
|
|
1254
|
+
TagName: o(b),
|
|
1255
1255
|
actionAttributes: {},
|
|
1256
|
-
attributes: f(
|
|
1256
|
+
attributes: f(b, S),
|
|
1257
1257
|
children: /* @__PURE__ */ s(
|
|
1258
1258
|
D,
|
|
1259
1259
|
{
|
|
@@ -1262,7 +1262,7 @@ function Kt(e) {
|
|
|
1262
1262
|
context: e.builderContext,
|
|
1263
1263
|
registeredComponents: e.builderComponents,
|
|
1264
1264
|
linkComponent: e.builderLinkComponent,
|
|
1265
|
-
blocks:
|
|
1265
|
+
blocks: b.blocks,
|
|
1266
1266
|
styleProp: {
|
|
1267
1267
|
flexGrow: "1"
|
|
1268
1268
|
}
|
|
@@ -1280,25 +1280,25 @@ function Kt(e) {
|
|
|
1280
1280
|
}` })
|
|
1281
1281
|
] });
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function Gt(e) {
|
|
1284
1284
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function xe(e) {
|
|
1287
1287
|
return e.replace(/http(s)?:/, "");
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1290
|
-
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"),
|
|
1291
|
-
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e +
|
|
1289
|
+
function Qt(e = "", t, n) {
|
|
1290
|
+
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1291
|
+
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function Yt(e, t) {
|
|
1294
1294
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1295
1295
|
return e;
|
|
1296
1296
|
if (t === "master")
|
|
1297
|
-
return
|
|
1297
|
+
return xe(e);
|
|
1298
1298
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1299
1299
|
if (n) {
|
|
1300
|
-
const i = e.split(n[0]),
|
|
1301
|
-
return
|
|
1300
|
+
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1301
|
+
return xe(`${i[0]}_${a}${o}`);
|
|
1302
1302
|
}
|
|
1303
1303
|
return null;
|
|
1304
1304
|
}
|
|
@@ -1309,26 +1309,26 @@ function te(e) {
|
|
|
1309
1309
|
if (e.match(/builder\.io/)) {
|
|
1310
1310
|
let n = e;
|
|
1311
1311
|
const i = Number(e.split("?width=")[1]);
|
|
1312
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((
|
|
1312
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Qt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1313
1313
|
}
|
|
1314
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1314
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Yt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1317
|
-
var
|
|
1316
|
+
function Xt(e) {
|
|
1317
|
+
var o, a, r, l, d, c;
|
|
1318
1318
|
function t() {
|
|
1319
|
-
var
|
|
1320
|
-
const
|
|
1321
|
-
if (!
|
|
1319
|
+
var u;
|
|
1320
|
+
const y = e.image || e.src;
|
|
1321
|
+
if (!y || // We can auto add srcset for cdn.builder.io and shopify
|
|
1322
1322
|
// images, otherwise you can supply this prop manually
|
|
1323
|
-
!(typeof
|
|
1323
|
+
!(typeof y == "string" && (y.match(/builder\.io/) || y.match(/cdn\.shopify\.com/))))
|
|
1324
1324
|
return e.srcset;
|
|
1325
1325
|
if (!e.noWebp) {
|
|
1326
|
-
if (e.srcset && ((
|
|
1326
|
+
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1327
1327
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1328
|
-
return console.debug("Removed given srcset"), te(
|
|
1328
|
+
return console.debug("Removed given srcset"), te(y);
|
|
1329
1329
|
} else if (e.image && !e.srcset)
|
|
1330
|
-
return te(
|
|
1331
|
-
return te(
|
|
1330
|
+
return te(y);
|
|
1331
|
+
return te(y);
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
1334
1334
|
function n() {
|
|
@@ -1345,9 +1345,9 @@ function Yt(e) {
|
|
|
1345
1345
|
};
|
|
1346
1346
|
return e.aspectRatio ? h : void 0;
|
|
1347
1347
|
}
|
|
1348
|
-
return /* @__PURE__ */
|
|
1349
|
-
/* @__PURE__ */
|
|
1350
|
-
/* @__PURE__ */
|
|
1348
|
+
return /* @__PURE__ */ A(R, { children: [
|
|
1349
|
+
/* @__PURE__ */ A(R, { children: [
|
|
1350
|
+
/* @__PURE__ */ A("picture", { children: [
|
|
1351
1351
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1352
1352
|
/* @__PURE__ */ s(
|
|
1353
1353
|
"img",
|
|
@@ -1368,7 +1368,7 @@ function Yt(e) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
)
|
|
1370
1370
|
] }),
|
|
1371
|
-
e.aspectRatio && !((
|
|
1371
|
+
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1372
1372
|
"div",
|
|
1373
1373
|
{
|
|
1374
1374
|
className: "builder-image-sizer div-9dac2184",
|
|
@@ -1378,7 +1378,7 @@ function Yt(e) {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
) : null,
|
|
1380
1380
|
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1381
|
-
!e.fitContent && ((c = (
|
|
1381
|
+
!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
|
|
1382
1382
|
] }),
|
|
1383
1383
|
/* @__PURE__ */ s("style", { children: `.img-9dac2184 {
|
|
1384
1384
|
opacity: 1;
|
|
@@ -1399,7 +1399,7 @@ function Yt(e) {
|
|
|
1399
1399
|
}` })
|
|
1400
1400
|
] });
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function Zt(e) {
|
|
1403
1403
|
return /* @__PURE__ */ s(
|
|
1404
1404
|
"section",
|
|
1405
1405
|
{
|
|
@@ -1480,7 +1480,7 @@ const ne = {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
1482
|
}]
|
|
1483
|
-
},
|
|
1483
|
+
}, en = {
|
|
1484
1484
|
name: "Builder:Accordion",
|
|
1485
1485
|
canHaveChildren: !0,
|
|
1486
1486
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1544,14 +1544,14 @@ const ne = {
|
|
|
1544
1544
|
builderComponents: !0,
|
|
1545
1545
|
builderLinkComponent: !0
|
|
1546
1546
|
}
|
|
1547
|
-
},
|
|
1548
|
-
function
|
|
1549
|
-
var
|
|
1547
|
+
}, Se = (e) => e.toString();
|
|
1548
|
+
function tn(e) {
|
|
1549
|
+
var y;
|
|
1550
1550
|
const [t, n] = E(() => []);
|
|
1551
1551
|
function i() {
|
|
1552
1552
|
return !!(e.grid || e.oneAtATime);
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function o() {
|
|
1555
1555
|
return {
|
|
1556
1556
|
display: "flex",
|
|
1557
1557
|
alignItems: "stretch",
|
|
@@ -1563,8 +1563,8 @@ function en(e) {
|
|
|
1563
1563
|
}
|
|
1564
1564
|
};
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1567
|
-
const
|
|
1566
|
+
function a() {
|
|
1567
|
+
const v = {
|
|
1568
1568
|
...{
|
|
1569
1569
|
display: "flex",
|
|
1570
1570
|
flexDirection: "column"
|
|
@@ -1573,75 +1573,75 @@ function en(e) {
|
|
|
1573
1573
|
cursor: "pointer"
|
|
1574
1574
|
};
|
|
1575
1575
|
return Object.fromEntries(
|
|
1576
|
-
Object.entries(
|
|
1576
|
+
Object.entries(v).filter(([f, g]) => g !== void 0)
|
|
1577
1577
|
);
|
|
1578
1578
|
}
|
|
1579
|
-
function r(
|
|
1580
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1579
|
+
function r(u) {
|
|
1580
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
|
|
1581
1581
|
}
|
|
1582
|
-
function l(
|
|
1583
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1582
|
+
function l(u) {
|
|
1583
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1586
|
-
let
|
|
1585
|
+
function d() {
|
|
1586
|
+
let u = null;
|
|
1587
1587
|
if (e.grid && t.length && document) {
|
|
1588
1588
|
const f = t[0];
|
|
1589
1589
|
let x = document.querySelector(
|
|
1590
1590
|
`.builder-accordion-title[data-index="${f}"]`
|
|
1591
1591
|
);
|
|
1592
|
-
if (
|
|
1593
|
-
let
|
|
1592
|
+
if (u = f, x) {
|
|
1593
|
+
let b = x.getBoundingClientRect();
|
|
1594
1594
|
for (; x = x && x.nextElementSibling; )
|
|
1595
1595
|
if (x) {
|
|
1596
1596
|
if (x.classList.contains("builder-accordion-detail"))
|
|
1597
1597
|
continue;
|
|
1598
1598
|
const S = x.getBoundingClientRect();
|
|
1599
|
-
if (S.left >
|
|
1600
|
-
const
|
|
1599
|
+
if (S.left > b.left) {
|
|
1600
|
+
const C = parseInt(
|
|
1601
1601
|
x.getAttribute("data-index") || "",
|
|
1602
1602
|
10
|
|
1603
1603
|
);
|
|
1604
|
-
isNaN(
|
|
1604
|
+
isNaN(C) || (b = S, u = C);
|
|
1605
1605
|
} else
|
|
1606
1606
|
break;
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
1609
|
}
|
|
1610
|
-
return typeof
|
|
1610
|
+
return typeof u == "number" && (u = u + 1), u;
|
|
1611
1611
|
}
|
|
1612
1612
|
function c() {
|
|
1613
|
-
const
|
|
1614
|
-
order: typeof
|
|
1613
|
+
const u = {
|
|
1614
|
+
order: typeof d() == "number" ? d() : void 0,
|
|
1615
1615
|
...e.grid && {
|
|
1616
1616
|
width: "100%"
|
|
1617
1617
|
}
|
|
1618
1618
|
};
|
|
1619
1619
|
return Object.fromEntries(
|
|
1620
|
-
Object.entries(
|
|
1620
|
+
Object.entries(u).filter(([v, f]) => f !== void 0)
|
|
1621
1621
|
);
|
|
1622
1622
|
}
|
|
1623
|
-
function h(
|
|
1624
|
-
t.includes(
|
|
1623
|
+
function h(u) {
|
|
1624
|
+
t.includes(u) ? n(i() ? [] : t.filter((v) => v !== u)) : n(i() ? [u] : t.concat(u));
|
|
1625
1625
|
}
|
|
1626
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style:
|
|
1626
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ A(et.Fragment, { children: [
|
|
1627
1627
|
/* @__PURE__ */ s(
|
|
1628
1628
|
"div",
|
|
1629
1629
|
{
|
|
1630
|
-
className: r(
|
|
1630
|
+
className: r(v),
|
|
1631
1631
|
style: {
|
|
1632
|
-
...
|
|
1632
|
+
...a(),
|
|
1633
1633
|
...e.grid && {
|
|
1634
1634
|
width: e.gridRowWidth,
|
|
1635
|
-
order:
|
|
1635
|
+
order: d() !== null ? Se(v) : Se(v + 1)
|
|
1636
1636
|
}
|
|
1637
1637
|
},
|
|
1638
|
-
"data-index":
|
|
1639
|
-
onClick: (f) => h(
|
|
1638
|
+
"data-index": v,
|
|
1639
|
+
onClick: (f) => h(v),
|
|
1640
1640
|
children: /* @__PURE__ */ s(
|
|
1641
1641
|
D,
|
|
1642
1642
|
{
|
|
1643
|
-
blocks:
|
|
1644
|
-
path: `items.${
|
|
1643
|
+
blocks: u.title,
|
|
1644
|
+
path: `items.${v}.title`,
|
|
1645
1645
|
parent: e.builderBlock.id,
|
|
1646
1646
|
context: e.builderContext,
|
|
1647
1647
|
registeredComponents: e.builderComponents,
|
|
@@ -1650,16 +1650,16 @@ function en(e) {
|
|
|
1650
1650
|
)
|
|
1651
1651
|
}
|
|
1652
1652
|
),
|
|
1653
|
-
t.includes(
|
|
1653
|
+
t.includes(v) ? /* @__PURE__ */ s(
|
|
1654
1654
|
"div",
|
|
1655
1655
|
{
|
|
1656
|
-
className: l(
|
|
1656
|
+
className: l(v),
|
|
1657
1657
|
style: c(),
|
|
1658
1658
|
children: /* @__PURE__ */ s(
|
|
1659
1659
|
D,
|
|
1660
1660
|
{
|
|
1661
|
-
blocks:
|
|
1662
|
-
path: `items.${
|
|
1661
|
+
blocks: u.detail,
|
|
1662
|
+
path: `items.${v}.detail`,
|
|
1663
1663
|
parent: e.builderBlock.id,
|
|
1664
1664
|
context: e.builderContext,
|
|
1665
1665
|
registeredComponents: e.builderComponents,
|
|
@@ -1668,9 +1668,9 @@ function en(e) {
|
|
|
1668
1668
|
)
|
|
1669
1669
|
}
|
|
1670
1670
|
) : null
|
|
1671
|
-
] },
|
|
1671
|
+
] }, v)) });
|
|
1672
1672
|
}
|
|
1673
|
-
const
|
|
1673
|
+
const nn = {
|
|
1674
1674
|
name: "Core:Button",
|
|
1675
1675
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1676
1676
|
defaultStyles: {
|
|
@@ -1706,7 +1706,7 @@ const tn = {
|
|
|
1706
1706
|
shouldReceiveBuilderProps: {
|
|
1707
1707
|
builderLinkComponent: !0
|
|
1708
1708
|
}
|
|
1709
|
-
},
|
|
1709
|
+
}, on = {
|
|
1710
1710
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1711
1711
|
name: "Columns",
|
|
1712
1712
|
isRSC: !0,
|
|
@@ -1885,7 +1885,7 @@ const tn = {
|
|
|
1885
1885
|
});
|
|
1886
1886
|
}
|
|
1887
1887
|
const n = e.get("columns");
|
|
1888
|
-
Array.isArray(n) && n.find((
|
|
1888
|
+
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();
|
|
1889
1889
|
}
|
|
1890
1890
|
}, {
|
|
1891
1891
|
name: "space",
|
|
@@ -1919,7 +1919,7 @@ const tn = {
|
|
|
1919
1919
|
hidden: !0,
|
|
1920
1920
|
canHaveChildren: !0,
|
|
1921
1921
|
noWrap: !0
|
|
1922
|
-
}, 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"],
|
|
1922
|
+
}, 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"], rn = ["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"], ln = {
|
|
1923
1923
|
name: "Image",
|
|
1924
1924
|
static: !0,
|
|
1925
1925
|
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",
|
|
@@ -1940,28 +1940,28 @@ const tn = {
|
|
|
1940
1940
|
onChange: (e) => {
|
|
1941
1941
|
e.delete("srcset"), e.delete("noWebp");
|
|
1942
1942
|
function n(r, l = 6e4) {
|
|
1943
|
-
return new Promise((
|
|
1943
|
+
return new Promise((d, c) => {
|
|
1944
1944
|
const h = document.createElement("img");
|
|
1945
|
-
let
|
|
1945
|
+
let y = !1;
|
|
1946
1946
|
h.onload = () => {
|
|
1947
|
-
|
|
1948
|
-
}, h.addEventListener("error", (
|
|
1949
|
-
console.warn("Image load failed",
|
|
1947
|
+
y = !0, d(h);
|
|
1948
|
+
}, h.addEventListener("error", (u) => {
|
|
1949
|
+
console.warn("Image load failed", u.error), c(u.error);
|
|
1950
1950
|
}), h.src = r, setTimeout(() => {
|
|
1951
|
-
|
|
1951
|
+
y || c(new Error("Image load timed out"));
|
|
1952
1952
|
}, l);
|
|
1953
1953
|
});
|
|
1954
1954
|
}
|
|
1955
1955
|
function i(r) {
|
|
1956
1956
|
return Math.round(r * 1e3) / 1e3;
|
|
1957
1957
|
}
|
|
1958
|
-
const
|
|
1959
|
-
if (fetch(
|
|
1958
|
+
const o = e.get("image"), a = e.get("aspectRatio");
|
|
1959
|
+
if (fetch(o).then((r) => r.blob()).then((r) => {
|
|
1960
1960
|
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1961
|
-
}),
|
|
1962
|
-
return n(
|
|
1961
|
+
}), o && (!a || a === 0.7041))
|
|
1962
|
+
return n(o).then((r) => {
|
|
1963
1963
|
const l = e.get("aspectRatio");
|
|
1964
|
-
e.get("image") ===
|
|
1964
|
+
e.get("image") === o && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1965
1965
|
});
|
|
1966
1966
|
}
|
|
1967
1967
|
}, {
|
|
@@ -2027,7 +2027,7 @@ const tn = {
|
|
|
2027
2027
|
shouldReceiveBuilderProps: {
|
|
2028
2028
|
builderBlock: !0
|
|
2029
2029
|
}
|
|
2030
|
-
},
|
|
2030
|
+
}, sn = {
|
|
2031
2031
|
name: "PersonalizationContainer",
|
|
2032
2032
|
shouldReceiveBuilderProps: {
|
|
2033
2033
|
builderBlock: !0,
|
|
@@ -2073,51 +2073,51 @@ function G(e) {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
);
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2077
|
-
function
|
|
2076
|
+
function cn(e, t, n, i) {
|
|
2077
|
+
function o(c) {
|
|
2078
2078
|
return typeof c == "string";
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2080
|
+
function a(c) {
|
|
2081
2081
|
return typeof c == "number";
|
|
2082
2082
|
}
|
|
2083
2083
|
function r(c, h) {
|
|
2084
2084
|
return (() => {
|
|
2085
|
-
const
|
|
2085
|
+
const u = h.property, v = h.operator;
|
|
2086
2086
|
let f = h.value;
|
|
2087
|
-
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(
|
|
2087
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && v))
|
|
2088
2088
|
return !0;
|
|
2089
2089
|
if (Array.isArray(f))
|
|
2090
|
-
return
|
|
2091
|
-
property:
|
|
2092
|
-
operator:
|
|
2090
|
+
return v === "isNot" ? f.every((x) => r(c, {
|
|
2091
|
+
property: u,
|
|
2092
|
+
operator: v,
|
|
2093
2093
|
value: x
|
|
2094
2094
|
})) : !!f.find((x) => r(c, {
|
|
2095
|
-
property:
|
|
2096
|
-
operator:
|
|
2095
|
+
property: u,
|
|
2096
|
+
operator: v,
|
|
2097
2097
|
value: x
|
|
2098
2098
|
}));
|
|
2099
|
-
const
|
|
2100
|
-
if (Array.isArray(
|
|
2101
|
-
return
|
|
2102
|
-
switch (
|
|
2099
|
+
const g = c[u];
|
|
2100
|
+
if (Array.isArray(g))
|
|
2101
|
+
return g.includes(f);
|
|
2102
|
+
switch (v) {
|
|
2103
2103
|
case "is":
|
|
2104
|
-
return
|
|
2104
|
+
return g === f;
|
|
2105
2105
|
case "isNot":
|
|
2106
|
-
return
|
|
2106
|
+
return g !== f;
|
|
2107
2107
|
case "contains":
|
|
2108
|
-
return (
|
|
2108
|
+
return (o(g) || Array.isArray(g)) && g.includes(String(f));
|
|
2109
2109
|
case "startsWith":
|
|
2110
|
-
return
|
|
2110
|
+
return o(g) && g.startsWith(String(f));
|
|
2111
2111
|
case "endsWith":
|
|
2112
|
-
return
|
|
2112
|
+
return o(g) && g.endsWith(String(f));
|
|
2113
2113
|
case "greaterThan":
|
|
2114
|
-
return
|
|
2114
|
+
return a(g) && a(f) && g > f;
|
|
2115
2115
|
case "lessThan":
|
|
2116
|
-
return
|
|
2116
|
+
return a(g) && a(f) && g < f;
|
|
2117
2117
|
case "greaterThanOrEqualTo":
|
|
2118
|
-
return
|
|
2118
|
+
return a(g) && a(f) && g >= f;
|
|
2119
2119
|
case "lessThanOrEqualTo":
|
|
2120
|
-
return
|
|
2120
|
+
return a(g) && a(f) && g <= f;
|
|
2121
2121
|
default:
|
|
2122
2122
|
return !1;
|
|
2123
2123
|
}
|
|
@@ -2127,10 +2127,10 @@ function sn(e, t, n, i) {
|
|
|
2127
2127
|
query: t,
|
|
2128
2128
|
startDate: n,
|
|
2129
2129
|
endDate: i
|
|
2130
|
-
},
|
|
2131
|
-
return l.startDate && new Date(l.startDate) >
|
|
2130
|
+
}, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2131
|
+
return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => r(e, c));
|
|
2132
2132
|
}
|
|
2133
|
-
const
|
|
2133
|
+
const un = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2134
2134
|
if (!navigator.cookieEnabled) {
|
|
2135
2135
|
return;
|
|
2136
2136
|
}
|
|
@@ -2183,7 +2183,7 @@ const cn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2183
2183
|
} else if (variants && variants.length > 0) {
|
|
2184
2184
|
removeVariants();
|
|
2185
2185
|
}
|
|
2186
|
-
}`,
|
|
2186
|
+
}`, dn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2187
2187
|
function isString(val) {
|
|
2188
2188
|
return typeof val === 'string';
|
|
2189
2189
|
}
|
|
@@ -2262,27 +2262,27 @@ const cn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2262
2262
|
return objectMatchesQuery(userAttributes, filter);
|
|
2263
2263
|
});
|
|
2264
2264
|
}`;
|
|
2265
|
-
function
|
|
2266
|
-
return !(!(e && e.length > 0) || !t ||
|
|
2265
|
+
function mn(e, t) {
|
|
2266
|
+
return !(!(e && e.length > 0) || !t || F());
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function fn({
|
|
2269
2269
|
variants: e,
|
|
2270
2270
|
previewingIndex: t,
|
|
2271
2271
|
isHydrated: n,
|
|
2272
2272
|
filteredVariants: i,
|
|
2273
|
-
fallbackBlocks:
|
|
2273
|
+
fallbackBlocks: o
|
|
2274
2274
|
}) {
|
|
2275
2275
|
var r;
|
|
2276
|
-
const
|
|
2277
|
-
blocks:
|
|
2276
|
+
const a = {
|
|
2277
|
+
blocks: o != null ? o : [],
|
|
2278
2278
|
path: "this.children"
|
|
2279
2279
|
};
|
|
2280
2280
|
if (n && W())
|
|
2281
2281
|
return typeof t == "number" && t < ((r = e == null ? void 0 : e.length) != null ? r : 0) ? {
|
|
2282
2282
|
blocks: e[t].blocks,
|
|
2283
2283
|
path: `component.options.variants.${t}.blocks`
|
|
2284
|
-
} :
|
|
2285
|
-
if (
|
|
2284
|
+
} : a;
|
|
2285
|
+
if (F()) {
|
|
2286
2286
|
const l = i == null ? void 0 : i[0];
|
|
2287
2287
|
if (l)
|
|
2288
2288
|
return {
|
|
@@ -2290,81 +2290,81 @@ function mn({
|
|
|
2290
2290
|
path: `component.options.variants.${e == null ? void 0 : e.indexOf(l)}.blocks`
|
|
2291
2291
|
};
|
|
2292
2292
|
}
|
|
2293
|
-
return
|
|
2293
|
+
return a;
|
|
2294
2294
|
}
|
|
2295
|
-
const
|
|
2295
|
+
const hn = (e, t, n) => `
|
|
2296
2296
|
(function() {
|
|
2297
|
+
${dn}
|
|
2297
2298
|
${un}
|
|
2298
|
-
${cn}
|
|
2299
2299
|
getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
|
|
2300
2300
|
})();
|
|
2301
2301
|
`;
|
|
2302
|
-
function
|
|
2303
|
-
var
|
|
2304
|
-
const t =
|
|
2305
|
-
() =>
|
|
2306
|
-
), [
|
|
2302
|
+
function gn(e) {
|
|
2303
|
+
var g, x, b, S, C, P, w;
|
|
2304
|
+
const t = $(null), [n, i] = E(
|
|
2305
|
+
() => fe.getUserAttributes()
|
|
2306
|
+
), [o, a] = E(
|
|
2307
2307
|
() => {
|
|
2308
|
-
var
|
|
2309
|
-
return
|
|
2308
|
+
var k, m, p;
|
|
2309
|
+
return hn(
|
|
2310
2310
|
e.variants,
|
|
2311
|
-
((
|
|
2311
|
+
((k = e.builderBlock) == null ? void 0 : k.id) || "none",
|
|
2312
2312
|
(p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
|
|
2313
2313
|
);
|
|
2314
2314
|
}
|
|
2315
|
-
), [r, l] = E(() => []), [
|
|
2315
|
+
), [r, l] = E(() => []), [d, c] = E(
|
|
2316
2316
|
() => {
|
|
2317
|
-
var
|
|
2318
|
-
return
|
|
2317
|
+
var k;
|
|
2318
|
+
return mn(
|
|
2319
2319
|
e.variants,
|
|
2320
|
-
|
|
2320
|
+
M((k = e.builderContext) == null ? void 0 : k.canTrack)
|
|
2321
2321
|
);
|
|
2322
2322
|
}
|
|
2323
|
-
), [h,
|
|
2324
|
-
function
|
|
2325
|
-
return (e.variants || []).filter((
|
|
2326
|
-
var m, p,
|
|
2327
|
-
return
|
|
2323
|
+
), [h, y] = E(() => !1);
|
|
2324
|
+
function u() {
|
|
2325
|
+
return (e.variants || []).filter((k) => {
|
|
2326
|
+
var m, p, I, T;
|
|
2327
|
+
return cn(
|
|
2328
2328
|
{
|
|
2329
2329
|
...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
|
|
2330
|
-
locale: (
|
|
2330
|
+
locale: (T = (I = e.builderContext) == null ? void 0 : I.rootState) == null ? void 0 : T.locale
|
|
2331
2331
|
} : {},
|
|
2332
2332
|
...n
|
|
2333
2333
|
},
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2334
|
+
k.query,
|
|
2335
|
+
k.startDate,
|
|
2336
|
+
k.endDate
|
|
2337
2337
|
);
|
|
2338
2338
|
});
|
|
2339
2339
|
}
|
|
2340
|
-
function
|
|
2341
|
-
var
|
|
2342
|
-
return
|
|
2340
|
+
function v() {
|
|
2341
|
+
var k;
|
|
2342
|
+
return fn({
|
|
2343
2343
|
variants: e.variants,
|
|
2344
|
-
fallbackBlocks: (
|
|
2344
|
+
fallbackBlocks: (k = e.builderBlock) == null ? void 0 : k.children,
|
|
2345
2345
|
isHydrated: h,
|
|
2346
|
-
filteredVariants:
|
|
2346
|
+
filteredVariants: u(),
|
|
2347
2347
|
previewingIndex: e.previewingIndex
|
|
2348
2348
|
});
|
|
2349
2349
|
}
|
|
2350
2350
|
function f() {
|
|
2351
2351
|
return (e.variants || []).map(
|
|
2352
|
-
(
|
|
2352
|
+
(k, m) => {
|
|
2353
2353
|
var p;
|
|
2354
2354
|
return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
|
|
2355
2355
|
}
|
|
2356
2356
|
).join("");
|
|
2357
2357
|
}
|
|
2358
|
-
return
|
|
2358
|
+
return B(() => {
|
|
2359
2359
|
var m;
|
|
2360
|
-
|
|
2361
|
-
const
|
|
2360
|
+
y(!0);
|
|
2361
|
+
const k = fe.subscribeOnUserAttributesChange(
|
|
2362
2362
|
(p) => {
|
|
2363
2363
|
i(p);
|
|
2364
2364
|
}
|
|
2365
2365
|
);
|
|
2366
2366
|
if (!(W() || Y())) {
|
|
2367
|
-
const p =
|
|
2367
|
+
const p = u()[0];
|
|
2368
2368
|
t.current && (t.current.dispatchEvent(
|
|
2369
2369
|
new CustomEvent("builder.variantLoaded", {
|
|
2370
2370
|
detail: {
|
|
@@ -2373,14 +2373,14 @@ function hn(e) {
|
|
|
2373
2373
|
},
|
|
2374
2374
|
bubbles: !0
|
|
2375
2375
|
})
|
|
2376
|
-
), new IntersectionObserver((
|
|
2377
|
-
|
|
2378
|
-
var
|
|
2379
|
-
|
|
2376
|
+
), new IntersectionObserver((T) => {
|
|
2377
|
+
T.forEach((V) => {
|
|
2378
|
+
var N;
|
|
2379
|
+
V.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2380
2380
|
new CustomEvent("builder.variantDisplayed", {
|
|
2381
2381
|
detail: {
|
|
2382
2382
|
variant: p || "default",
|
|
2383
|
-
content: (
|
|
2383
|
+
content: (N = e.builderContext) == null ? void 0 : N.content
|
|
2384
2384
|
},
|
|
2385
2385
|
bubbles: !0
|
|
2386
2386
|
})
|
|
@@ -2388,19 +2388,19 @@ function hn(e) {
|
|
|
2388
2388
|
});
|
|
2389
2389
|
}).observe(t.current));
|
|
2390
2390
|
}
|
|
2391
|
-
r.push(
|
|
2392
|
-
}, []),
|
|
2393
|
-
r.forEach((
|
|
2394
|
-
}, []), /* @__PURE__ */
|
|
2391
|
+
r.push(k);
|
|
2392
|
+
}, []), B(() => () => {
|
|
2393
|
+
r.forEach((k) => k());
|
|
2394
|
+
}, []), /* @__PURE__ */ A(
|
|
2395
2395
|
"div",
|
|
2396
2396
|
{
|
|
2397
2397
|
ref: t,
|
|
2398
2398
|
...e.attributes,
|
|
2399
|
-
className: `builder-personalization-container ${((
|
|
2399
|
+
className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
|
|
2400
2400
|
children: [
|
|
2401
|
-
|
|
2402
|
-
(x = e.variants) == null ? void 0 : x.map((
|
|
2403
|
-
var p,
|
|
2401
|
+
d ? /* @__PURE__ */ A(R, { children: [
|
|
2402
|
+
(x = e.variants) == null ? void 0 : x.map((k, m) => {
|
|
2403
|
+
var p, I;
|
|
2404
2404
|
return /* @__PURE__ */ s(
|
|
2405
2405
|
"template",
|
|
2406
2406
|
{
|
|
@@ -2408,8 +2408,8 @@ function hn(e) {
|
|
|
2408
2408
|
children: /* @__PURE__ */ s(
|
|
2409
2409
|
D,
|
|
2410
2410
|
{
|
|
2411
|
-
blocks:
|
|
2412
|
-
parent: (
|
|
2411
|
+
blocks: k.blocks,
|
|
2412
|
+
parent: (I = e.builderBlock) == null ? void 0 : I.id,
|
|
2413
2413
|
path: `component.options.variants.${m}.blocks`
|
|
2414
2414
|
}
|
|
2415
2415
|
)
|
|
@@ -2418,9 +2418,9 @@ function hn(e) {
|
|
|
2418
2418
|
);
|
|
2419
2419
|
}),
|
|
2420
2420
|
/* @__PURE__ */ s(
|
|
2421
|
-
|
|
2421
|
+
j,
|
|
2422
2422
|
{
|
|
2423
|
-
nonce: ((
|
|
2423
|
+
nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
|
|
2424
2424
|
styles: f(),
|
|
2425
2425
|
id: `variants-styles-${(S = e.builderBlock) == null ? void 0 : S.id}`
|
|
2426
2426
|
}
|
|
@@ -2428,8 +2428,8 @@ function hn(e) {
|
|
|
2428
2428
|
/* @__PURE__ */ s(
|
|
2429
2429
|
G,
|
|
2430
2430
|
{
|
|
2431
|
-
nonce: ((
|
|
2432
|
-
scriptStr:
|
|
2431
|
+
nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
|
|
2432
|
+
scriptStr: o,
|
|
2433
2433
|
id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}`
|
|
2434
2434
|
}
|
|
2435
2435
|
)
|
|
@@ -2437,16 +2437,16 @@ function hn(e) {
|
|
|
2437
2437
|
/* @__PURE__ */ s(
|
|
2438
2438
|
D,
|
|
2439
2439
|
{
|
|
2440
|
-
blocks:
|
|
2441
|
-
parent: (
|
|
2442
|
-
path:
|
|
2440
|
+
blocks: v().blocks,
|
|
2441
|
+
parent: (w = e.builderBlock) == null ? void 0 : w.id,
|
|
2442
|
+
path: v().path
|
|
2443
2443
|
}
|
|
2444
2444
|
)
|
|
2445
2445
|
]
|
|
2446
2446
|
}
|
|
2447
2447
|
);
|
|
2448
2448
|
}
|
|
2449
|
-
const
|
|
2449
|
+
const bn = {
|
|
2450
2450
|
name: "Core:Section",
|
|
2451
2451
|
static: !0,
|
|
2452
2452
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2485,7 +2485,7 @@ const gn = {
|
|
|
2485
2485
|
}
|
|
2486
2486
|
}
|
|
2487
2487
|
}]
|
|
2488
|
-
},
|
|
2488
|
+
}, pn = {
|
|
2489
2489
|
name: "Slot",
|
|
2490
2490
|
isRSC: !0,
|
|
2491
2491
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2503,7 +2503,7 @@ const gn = {
|
|
|
2503
2503
|
builderComponents: !0
|
|
2504
2504
|
}
|
|
2505
2505
|
};
|
|
2506
|
-
function
|
|
2506
|
+
function yn(e) {
|
|
2507
2507
|
var t, n, i;
|
|
2508
2508
|
return /* @__PURE__ */ s(
|
|
2509
2509
|
"div",
|
|
@@ -2527,7 +2527,7 @@ function pn(e) {
|
|
|
2527
2527
|
}
|
|
2528
2528
|
);
|
|
2529
2529
|
}
|
|
2530
|
-
const
|
|
2530
|
+
const vn = {
|
|
2531
2531
|
name: "Symbol",
|
|
2532
2532
|
noWrap: !0,
|
|
2533
2533
|
static: !0,
|
|
@@ -2566,7 +2566,7 @@ const yn = {
|
|
|
2566
2566
|
builderComponents: !0,
|
|
2567
2567
|
builderLinkComponent: !0
|
|
2568
2568
|
}
|
|
2569
|
-
},
|
|
2569
|
+
}, oe = {
|
|
2570
2570
|
"@type": "@builder.io/sdk:Element",
|
|
2571
2571
|
responsiveStyles: {
|
|
2572
2572
|
large: {
|
|
@@ -2588,7 +2588,7 @@ const yn = {
|
|
|
2588
2588
|
text: "New tab"
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
|
-
},
|
|
2591
|
+
}, ae = {
|
|
2592
2592
|
"@type": "@builder.io/sdk:Element",
|
|
2593
2593
|
responsiveStyles: {
|
|
2594
2594
|
large: {
|
|
@@ -2604,7 +2604,7 @@ const yn = {
|
|
|
2604
2604
|
text: "New tab content "
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
2607
|
-
},
|
|
2607
|
+
}, xn = {
|
|
2608
2608
|
name: "Builder: Tabs",
|
|
2609
2609
|
inputs: [{
|
|
2610
2610
|
name: "tabs",
|
|
@@ -2614,16 +2614,16 @@ const yn = {
|
|
|
2614
2614
|
name: "label",
|
|
2615
2615
|
type: "uiBlocks",
|
|
2616
2616
|
hideFromUI: !0,
|
|
2617
|
-
defaultValue: [
|
|
2617
|
+
defaultValue: [oe]
|
|
2618
2618
|
}, {
|
|
2619
2619
|
name: "content",
|
|
2620
2620
|
type: "uiBlocks",
|
|
2621
2621
|
hideFromUI: !0,
|
|
2622
|
-
defaultValue: [
|
|
2622
|
+
defaultValue: [ae]
|
|
2623
2623
|
}],
|
|
2624
2624
|
defaultValue: [{
|
|
2625
2625
|
label: [{
|
|
2626
|
-
...
|
|
2626
|
+
...oe,
|
|
2627
2627
|
component: {
|
|
2628
2628
|
name: "Text",
|
|
2629
2629
|
options: {
|
|
@@ -2632,7 +2632,7 @@ const yn = {
|
|
|
2632
2632
|
}
|
|
2633
2633
|
}],
|
|
2634
2634
|
content: [{
|
|
2635
|
-
...
|
|
2635
|
+
...ae,
|
|
2636
2636
|
component: {
|
|
2637
2637
|
name: "Text",
|
|
2638
2638
|
options: {
|
|
@@ -2642,7 +2642,7 @@ const yn = {
|
|
|
2642
2642
|
}]
|
|
2643
2643
|
}, {
|
|
2644
2644
|
label: [{
|
|
2645
|
-
...
|
|
2645
|
+
...oe,
|
|
2646
2646
|
component: {
|
|
2647
2647
|
name: "Text",
|
|
2648
2648
|
options: {
|
|
@@ -2651,7 +2651,7 @@ const yn = {
|
|
|
2651
2651
|
}
|
|
2652
2652
|
}],
|
|
2653
2653
|
content: [{
|
|
2654
|
-
...
|
|
2654
|
+
...ae,
|
|
2655
2655
|
component: {
|
|
2656
2656
|
name: "Text",
|
|
2657
2657
|
options: {
|
|
@@ -2708,18 +2708,18 @@ const yn = {
|
|
|
2708
2708
|
builderLinkComponent: !0
|
|
2709
2709
|
}
|
|
2710
2710
|
};
|
|
2711
|
-
function
|
|
2712
|
-
var
|
|
2711
|
+
function Sn(e) {
|
|
2712
|
+
var a;
|
|
2713
2713
|
const [t, n] = E(
|
|
2714
2714
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2715
2715
|
);
|
|
2716
2716
|
function i(r) {
|
|
2717
2717
|
return e.tabs && e.tabs[r].content;
|
|
2718
2718
|
}
|
|
2719
|
-
function
|
|
2719
|
+
function o(r) {
|
|
2720
2720
|
r === t && e.collapsible ? n(-1) : n(r);
|
|
2721
2721
|
}
|
|
2722
|
-
return /* @__PURE__ */
|
|
2722
|
+
return /* @__PURE__ */ A("div", { children: [
|
|
2723
2723
|
/* @__PURE__ */ s(
|
|
2724
2724
|
"div",
|
|
2725
2725
|
{
|
|
@@ -2730,14 +2730,14 @@ function xn(e) {
|
|
|
2730
2730
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2731
2731
|
overflow: "auto"
|
|
2732
2732
|
},
|
|
2733
|
-
children: (
|
|
2733
|
+
children: (a = e.tabs) == null ? void 0 : a.map((r, l) => /* @__PURE__ */ s(
|
|
2734
2734
|
"span",
|
|
2735
2735
|
{
|
|
2736
2736
|
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
2737
2737
|
style: {
|
|
2738
2738
|
...t === l ? e.activeTabStyle : {}
|
|
2739
2739
|
},
|
|
2740
|
-
onClick: (
|
|
2740
|
+
onClick: (d) => o(l),
|
|
2741
2741
|
children: /* @__PURE__ */ s(
|
|
2742
2742
|
D,
|
|
2743
2743
|
{
|
|
@@ -2767,7 +2767,7 @@ function xn(e) {
|
|
|
2767
2767
|
) }) : null
|
|
2768
2768
|
] });
|
|
2769
2769
|
}
|
|
2770
|
-
const
|
|
2770
|
+
const kn = {
|
|
2771
2771
|
shouldReceiveBuilderProps: {
|
|
2772
2772
|
builderBlock: !1,
|
|
2773
2773
|
builderContext: !0
|
|
@@ -2790,7 +2790,7 @@ const Sn = {
|
|
|
2790
2790
|
textAlign: "center"
|
|
2791
2791
|
}
|
|
2792
2792
|
};
|
|
2793
|
-
function
|
|
2793
|
+
function Cn(e) {
|
|
2794
2794
|
var t;
|
|
2795
2795
|
return /* @__PURE__ */ s(
|
|
2796
2796
|
"div",
|
|
@@ -2803,7 +2803,7 @@ function kn(e) {
|
|
|
2803
2803
|
}
|
|
2804
2804
|
);
|
|
2805
2805
|
}
|
|
2806
|
-
const
|
|
2806
|
+
const Tn = {
|
|
2807
2807
|
name: "Custom Code",
|
|
2808
2808
|
static: !0,
|
|
2809
2809
|
requiredPermissions: ["editCode"],
|
|
@@ -2826,15 +2826,15 @@ const Cn = {
|
|
|
2826
2826
|
advanced: !0
|
|
2827
2827
|
}]
|
|
2828
2828
|
};
|
|
2829
|
-
function
|
|
2830
|
-
const t =
|
|
2831
|
-
return
|
|
2829
|
+
function wn(e) {
|
|
2830
|
+
const t = $(null), [n, i] = E(() => []), [o, a] = E(() => []);
|
|
2831
|
+
return B(() => {
|
|
2832
2832
|
var l;
|
|
2833
2833
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2834
2834
|
return;
|
|
2835
2835
|
const r = t.current.getElementsByTagName("script");
|
|
2836
|
-
for (let
|
|
2837
|
-
const c = r[
|
|
2836
|
+
for (let d = 0; d < r.length; d++) {
|
|
2837
|
+
const c = r[d];
|
|
2838
2838
|
if (c.src) {
|
|
2839
2839
|
if (n.includes(c.src))
|
|
2840
2840
|
continue;
|
|
@@ -2846,10 +2846,10 @@ function Tn(e) {
|
|
|
2846
2846
|
"application/javascript",
|
|
2847
2847
|
"application/ecmascript"
|
|
2848
2848
|
].includes(c.type)) {
|
|
2849
|
-
if (
|
|
2849
|
+
if (o.includes(c.innerText))
|
|
2850
2850
|
continue;
|
|
2851
2851
|
try {
|
|
2852
|
-
|
|
2852
|
+
o.push(c.innerText), new Function(c.innerText)();
|
|
2853
2853
|
} catch (h) {
|
|
2854
2854
|
console.warn("`CustomCode`: Error running script:", h);
|
|
2855
2855
|
}
|
|
@@ -2864,7 +2864,7 @@ function Tn(e) {
|
|
|
2864
2864
|
}
|
|
2865
2865
|
);
|
|
2866
2866
|
}
|
|
2867
|
-
const
|
|
2867
|
+
const In = {
|
|
2868
2868
|
name: "Embed",
|
|
2869
2869
|
static: !0,
|
|
2870
2870
|
inputs: [{
|
|
@@ -2879,29 +2879,29 @@ const wn = {
|
|
|
2879
2879
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2880
2880
|
hideFromUI: !0
|
|
2881
2881
|
}]
|
|
2882
|
-
},
|
|
2883
|
-
function
|
|
2884
|
-
const t =
|
|
2885
|
-
function
|
|
2882
|
+
}, En = ["text/javascript", "application/javascript", "application/ecmascript"], Rn = (e) => En.includes(e.type);
|
|
2883
|
+
function Pn(e) {
|
|
2884
|
+
const t = $(null), [n, i] = E(() => []), [o, a] = E(() => []), [r, l] = E(() => !1);
|
|
2885
|
+
function d() {
|
|
2886
2886
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2887
2887
|
return;
|
|
2888
2888
|
const c = t.current.getElementsByTagName("script");
|
|
2889
2889
|
for (let h = 0; h < c.length; h++) {
|
|
2890
|
-
const
|
|
2891
|
-
if (
|
|
2892
|
-
n.push(
|
|
2893
|
-
const
|
|
2894
|
-
|
|
2895
|
-
} else if (
|
|
2890
|
+
const y = c[h];
|
|
2891
|
+
if (y.src && !n.includes(y.src)) {
|
|
2892
|
+
n.push(y.src);
|
|
2893
|
+
const u = document.createElement("script");
|
|
2894
|
+
u.async = !0, u.src = y.src, document.head.appendChild(u);
|
|
2895
|
+
} else if (Rn(y) && !o.includes(y.innerText))
|
|
2896
2896
|
try {
|
|
2897
|
-
|
|
2898
|
-
} catch (
|
|
2899
|
-
console.warn("`Embed`: Error running script:",
|
|
2897
|
+
o.push(y.innerText), new Function(y.innerText)();
|
|
2898
|
+
} catch (u) {
|
|
2899
|
+
console.warn("`Embed`: Error running script:", u);
|
|
2900
2900
|
}
|
|
2901
2901
|
}
|
|
2902
2902
|
}
|
|
2903
|
-
return
|
|
2904
|
-
t.current && !r && (l(!0),
|
|
2903
|
+
return B(() => {
|
|
2904
|
+
t.current && !r && (l(!0), d());
|
|
2905
2905
|
}, [t.current, r]), /* @__PURE__ */ s(
|
|
2906
2906
|
"div",
|
|
2907
2907
|
{
|
|
@@ -2911,7 +2911,7 @@ function Rn(e) {
|
|
|
2911
2911
|
}
|
|
2912
2912
|
);
|
|
2913
2913
|
}
|
|
2914
|
-
const
|
|
2914
|
+
const Vn = {
|
|
2915
2915
|
name: "Form:Form",
|
|
2916
2916
|
// editableTags: ['builder-form-error']
|
|
2917
2917
|
defaults: {
|
|
@@ -3148,102 +3148,102 @@ const Pn = {
|
|
|
3148
3148
|
builderComponents: !0,
|
|
3149
3149
|
builderLinkComponent: !0
|
|
3150
3150
|
}
|
|
3151
|
-
},
|
|
3151
|
+
}, Bn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Nn = () => {
|
|
3152
3152
|
const e = process.env.NODE_ENV || "production";
|
|
3153
|
-
return
|
|
3153
|
+
return Bn.includes(e) ? e : "production";
|
|
3154
3154
|
};
|
|
3155
|
-
function
|
|
3156
|
-
const t =
|
|
3157
|
-
function
|
|
3158
|
-
var
|
|
3159
|
-
const
|
|
3155
|
+
function An(e) {
|
|
3156
|
+
const t = $(null), [n, i] = E(() => "unsubmitted"), [o, a] = E(() => null), [r, l] = E(() => "");
|
|
3157
|
+
function d(y) {
|
|
3158
|
+
var v, f;
|
|
3159
|
+
const u = {
|
|
3160
3160
|
...e.builderContext.rootState,
|
|
3161
|
-
...
|
|
3161
|
+
...y
|
|
3162
3162
|
};
|
|
3163
|
-
e.builderContext.rootSetState ? (f = (
|
|
3163
|
+
e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, u) : e.builderContext.rootState = u;
|
|
3164
3164
|
}
|
|
3165
3165
|
function c() {
|
|
3166
3166
|
return W() && e.previewState || n;
|
|
3167
3167
|
}
|
|
3168
|
-
function h(
|
|
3169
|
-
var
|
|
3170
|
-
const
|
|
3168
|
+
function h(y) {
|
|
3169
|
+
var v;
|
|
3170
|
+
const u = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3171
3171
|
if (e.sendSubmissionsTo === "zapier")
|
|
3172
|
-
|
|
3173
|
-
else if (
|
|
3172
|
+
y.preventDefault();
|
|
3173
|
+
else if (u) {
|
|
3174
3174
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3175
|
-
|
|
3175
|
+
y.preventDefault();
|
|
3176
3176
|
return;
|
|
3177
3177
|
}
|
|
3178
|
-
|
|
3179
|
-
const f =
|
|
3178
|
+
y.preventDefault();
|
|
3179
|
+
const f = y.currentTarget || y.target, g = e.customHeaders || {};
|
|
3180
3180
|
let x;
|
|
3181
|
-
const
|
|
3181
|
+
const b = new FormData(f), S = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
|
|
3182
3182
|
let p;
|
|
3183
|
-
const
|
|
3183
|
+
const I = m.name;
|
|
3184
3184
|
if (m instanceof HTMLInputElement)
|
|
3185
3185
|
if (m.type === "radio") {
|
|
3186
3186
|
if (m.checked)
|
|
3187
3187
|
return p = m.name, {
|
|
3188
|
-
key:
|
|
3188
|
+
key: I,
|
|
3189
3189
|
value: p
|
|
3190
3190
|
};
|
|
3191
3191
|
} else if (m.type === "checkbox")
|
|
3192
3192
|
p = m.checked;
|
|
3193
3193
|
else if (m.type === "number" || m.type === "range") {
|
|
3194
|
-
const
|
|
3195
|
-
isNaN(
|
|
3194
|
+
const T = m.valueAsNumber;
|
|
3195
|
+
isNaN(T) || (p = T);
|
|
3196
3196
|
} else
|
|
3197
3197
|
m.type === "file" ? p = m.files : p = m.value;
|
|
3198
3198
|
else
|
|
3199
3199
|
p = m.value;
|
|
3200
3200
|
return {
|
|
3201
|
-
key:
|
|
3201
|
+
key: I,
|
|
3202
3202
|
value: p
|
|
3203
3203
|
};
|
|
3204
3204
|
});
|
|
3205
|
-
let
|
|
3206
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
3207
|
-
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (
|
|
3208
|
-
}),
|
|
3209
|
-
x =
|
|
3205
|
+
let C = e.contentType;
|
|
3206
|
+
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(S).forEach(({ value: m }) => {
|
|
3207
|
+
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
|
|
3208
|
+
}), C !== "application/json")
|
|
3209
|
+
x = b;
|
|
3210
3210
|
else {
|
|
3211
3211
|
const m = {};
|
|
3212
|
-
Array.from(S).forEach(({ value: p, key:
|
|
3213
|
-
|
|
3212
|
+
Array.from(S).forEach(({ value: p, key: I }) => {
|
|
3213
|
+
De(m, I, p);
|
|
3214
3214
|
}), x = JSON.stringify(m);
|
|
3215
3215
|
}
|
|
3216
|
-
|
|
3216
|
+
C && C !== "multipart/form-data" && (u && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = C));
|
|
3217
3217
|
const P = new CustomEvent("presubmit", { detail: { body: x } });
|
|
3218
3218
|
if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
|
|
3219
3219
|
return;
|
|
3220
3220
|
i("sending");
|
|
3221
|
-
const
|
|
3221
|
+
const w = `${Nn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3222
3222
|
e.sendSubmissionsToEmail || ""
|
|
3223
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
3224
|
-
|
|
3223
|
+
)}&name=${encodeURIComponent(e.name || "")}`, k = e.sendSubmissionsTo === "email" ? w : e.action;
|
|
3224
|
+
Ee(k), fetch(k, { body: x, headers: g, method: e.method || "post" }).then(
|
|
3225
3225
|
async (m) => {
|
|
3226
3226
|
let p;
|
|
3227
|
-
const
|
|
3228
|
-
if (
|
|
3229
|
-
let
|
|
3230
|
-
|
|
3227
|
+
const I = m.headers.get("content-type");
|
|
3228
|
+
if (I && I.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
|
|
3229
|
+
let T = Ne(p, e.errorMessagePath);
|
|
3230
|
+
T && (typeof T != "string" && (T = JSON.stringify(T)), l(T), d({ formErrorMessage: T }));
|
|
3231
3231
|
}
|
|
3232
|
-
if (
|
|
3233
|
-
const
|
|
3232
|
+
if (a(p), i(m.ok ? "success" : "error"), m.ok) {
|
|
3233
|
+
const T = new CustomEvent("submit:success", {
|
|
3234
3234
|
detail: { res: m, body: p }
|
|
3235
3235
|
});
|
|
3236
3236
|
if (t.current) {
|
|
3237
|
-
if (t.current.dispatchEvent(
|
|
3237
|
+
if (t.current.dispatchEvent(T), T.defaultPrevented)
|
|
3238
3238
|
return;
|
|
3239
3239
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3240
3240
|
}
|
|
3241
3241
|
if (e.successUrl)
|
|
3242
3242
|
if (t.current) {
|
|
3243
|
-
const
|
|
3243
|
+
const V = new CustomEvent("route", {
|
|
3244
3244
|
detail: { url: e.successUrl }
|
|
3245
3245
|
});
|
|
3246
|
-
t.current.dispatchEvent(
|
|
3246
|
+
t.current.dispatchEvent(V), V.defaultPrevented || (location.href = e.successUrl);
|
|
3247
3247
|
} else
|
|
3248
3248
|
location.href = e.successUrl;
|
|
3249
3249
|
}
|
|
@@ -3252,14 +3252,14 @@ function Nn(e) {
|
|
|
3252
3252
|
const p = new CustomEvent("submit:error", {
|
|
3253
3253
|
detail: { error: m }
|
|
3254
3254
|
});
|
|
3255
|
-
t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (
|
|
3255
|
+
t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (a(m), i("error"));
|
|
3256
3256
|
}
|
|
3257
3257
|
);
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
|
-
return /* @__PURE__ */
|
|
3260
|
+
return /* @__PURE__ */ A(R, { children: [
|
|
3261
3261
|
" ",
|
|
3262
|
-
/* @__PURE__ */
|
|
3262
|
+
/* @__PURE__ */ A(
|
|
3263
3263
|
"form",
|
|
3264
3264
|
{
|
|
3265
3265
|
validate: e.validate,
|
|
@@ -3267,7 +3267,7 @@ function Nn(e) {
|
|
|
3267
3267
|
action: !e.sendWithJs && e.action,
|
|
3268
3268
|
method: e.method,
|
|
3269
3269
|
name: e.name,
|
|
3270
|
-
onSubmit: (
|
|
3270
|
+
onSubmit: (y) => h(y),
|
|
3271
3271
|
...e.attributes,
|
|
3272
3272
|
children: [
|
|
3273
3273
|
e.children,
|
|
@@ -3287,7 +3287,7 @@ function Nn(e) {
|
|
|
3287
3287
|
context: e.builderContext
|
|
3288
3288
|
}
|
|
3289
3289
|
) : null,
|
|
3290
|
-
c() === "error" &&
|
|
3290
|
+
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(o, null, 2) }) : null,
|
|
3291
3291
|
c() === "success" ? /* @__PURE__ */ s(
|
|
3292
3292
|
D,
|
|
3293
3293
|
{
|
|
@@ -3304,7 +3304,7 @@ function Nn(e) {
|
|
|
3304
3304
|
" "
|
|
3305
3305
|
] });
|
|
3306
3306
|
}
|
|
3307
|
-
const
|
|
3307
|
+
const Wn = {
|
|
3308
3308
|
name: "Form:Input",
|
|
3309
3309
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3310
3310
|
inputs: [
|
|
@@ -3356,8 +3356,8 @@ const An = {
|
|
|
3356
3356
|
borderColor: "#ccc"
|
|
3357
3357
|
}
|
|
3358
3358
|
};
|
|
3359
|
-
function
|
|
3360
|
-
return /* @__PURE__ */
|
|
3359
|
+
function Dn(e) {
|
|
3360
|
+
return /* @__PURE__ */ Ve(
|
|
3361
3361
|
"input",
|
|
3362
3362
|
{
|
|
3363
3363
|
...e.attributes,
|
|
@@ -3371,7 +3371,7 @@ function Wn(e) {
|
|
|
3371
3371
|
}
|
|
3372
3372
|
);
|
|
3373
3373
|
}
|
|
3374
|
-
const
|
|
3374
|
+
const $n = {
|
|
3375
3375
|
name: "Form:Select",
|
|
3376
3376
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3377
3377
|
defaultStyles: {
|
|
@@ -3414,9 +3414,9 @@ const Dn = {
|
|
|
3414
3414
|
static: !0,
|
|
3415
3415
|
noWrap: !0
|
|
3416
3416
|
};
|
|
3417
|
-
function
|
|
3417
|
+
function Fn(e) {
|
|
3418
3418
|
var t;
|
|
3419
|
-
return /* @__PURE__ */
|
|
3419
|
+
return /* @__PURE__ */ Ve(
|
|
3420
3420
|
"select",
|
|
3421
3421
|
{
|
|
3422
3422
|
...e.attributes,
|
|
@@ -3429,7 +3429,7 @@ function $n(e) {
|
|
|
3429
3429
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3430
3430
|
);
|
|
3431
3431
|
}
|
|
3432
|
-
const
|
|
3432
|
+
const On = {
|
|
3433
3433
|
name: "Form:SubmitButton",
|
|
3434
3434
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3435
3435
|
defaultStyles: {
|
|
@@ -3455,10 +3455,10 @@ const Fn = {
|
|
|
3455
3455
|
// TODO: defaultChildren
|
|
3456
3456
|
// canHaveChildren: true,
|
|
3457
3457
|
};
|
|
3458
|
-
function
|
|
3458
|
+
function Ln(e) {
|
|
3459
3459
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3460
3460
|
}
|
|
3461
|
-
const
|
|
3461
|
+
const Un = {
|
|
3462
3462
|
name: "Form:TextArea",
|
|
3463
3463
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3464
3464
|
inputs: [{
|
|
@@ -3495,7 +3495,7 @@ const Ln = {
|
|
|
3495
3495
|
static: !0,
|
|
3496
3496
|
noWrap: !0
|
|
3497
3497
|
};
|
|
3498
|
-
function
|
|
3498
|
+
function _n(e) {
|
|
3499
3499
|
return /* @__PURE__ */ s(
|
|
3500
3500
|
"textarea",
|
|
3501
3501
|
{
|
|
@@ -3508,7 +3508,7 @@ function Un(e) {
|
|
|
3508
3508
|
}
|
|
3509
3509
|
);
|
|
3510
3510
|
}
|
|
3511
|
-
const
|
|
3511
|
+
const qn = {
|
|
3512
3512
|
// friendlyName?
|
|
3513
3513
|
name: "Raw:Img",
|
|
3514
3514
|
hideFromInsertMenu: !0,
|
|
@@ -3523,7 +3523,7 @@ const _n = {
|
|
|
3523
3523
|
noWrap: !0,
|
|
3524
3524
|
static: !0
|
|
3525
3525
|
};
|
|
3526
|
-
function
|
|
3526
|
+
function Mn(e) {
|
|
3527
3527
|
return /* @__PURE__ */ s(
|
|
3528
3528
|
"img",
|
|
3529
3529
|
{
|
|
@@ -3538,7 +3538,7 @@ function qn(e) {
|
|
|
3538
3538
|
W() && e.imgSrc || "default-key"
|
|
3539
3539
|
);
|
|
3540
3540
|
}
|
|
3541
|
-
const
|
|
3541
|
+
const Hn = {
|
|
3542
3542
|
name: "Video",
|
|
3543
3543
|
canHaveChildren: !0,
|
|
3544
3544
|
defaultStyles: {
|
|
@@ -3549,7 +3549,7 @@ const Mn = {
|
|
|
3549
3549
|
inputs: [{
|
|
3550
3550
|
name: "video",
|
|
3551
3551
|
type: "file",
|
|
3552
|
-
allowedFileTypes:
|
|
3552
|
+
allowedFileTypes: rn,
|
|
3553
3553
|
bubble: !0,
|
|
3554
3554
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3555
3555
|
required: !0
|
|
@@ -3623,9 +3623,10 @@ const Mn = {
|
|
|
3623
3623
|
builderBlock: !0
|
|
3624
3624
|
}
|
|
3625
3625
|
};
|
|
3626
|
-
function
|
|
3627
|
-
var
|
|
3628
|
-
|
|
3626
|
+
function jn(e) {
|
|
3627
|
+
var r, l, d, c, h, y, u;
|
|
3628
|
+
const t = $(null);
|
|
3629
|
+
function n() {
|
|
3629
3630
|
return {
|
|
3630
3631
|
...e.autoPlay === !0 ? {
|
|
3631
3632
|
autoPlay: !0
|
|
@@ -3644,12 +3645,37 @@ function Hn(e) {
|
|
|
3644
3645
|
} : {}
|
|
3645
3646
|
};
|
|
3646
3647
|
}
|
|
3647
|
-
function
|
|
3648
|
+
function i() {
|
|
3648
3649
|
return {
|
|
3649
|
-
...
|
|
3650
|
+
...n()
|
|
3650
3651
|
};
|
|
3651
3652
|
}
|
|
3652
|
-
|
|
3653
|
+
const [o, a] = E(() => {
|
|
3654
|
+
});
|
|
3655
|
+
return B(() => {
|
|
3656
|
+
if (e.lazyLoad) {
|
|
3657
|
+
const v = new IntersectionObserver(function(f) {
|
|
3658
|
+
f.forEach(function(g) {
|
|
3659
|
+
if (!g.isIntersecting)
|
|
3660
|
+
return;
|
|
3661
|
+
const x = g.target;
|
|
3662
|
+
try {
|
|
3663
|
+
Array.from(x.children).filter(
|
|
3664
|
+
(b) => b instanceof HTMLElement && b.tagName === "SOURCE"
|
|
3665
|
+
).forEach((b) => {
|
|
3666
|
+
const S = b.dataset.src;
|
|
3667
|
+
S && (b.src = S);
|
|
3668
|
+
}), x.load(), v.unobserve(x);
|
|
3669
|
+
} catch (b) {
|
|
3670
|
+
console.error("Error loading lazy video:", b);
|
|
3671
|
+
}
|
|
3672
|
+
});
|
|
3673
|
+
});
|
|
3674
|
+
t.current && v.observe(t.current), a(v);
|
|
3675
|
+
}
|
|
3676
|
+
}, []), B(() => () => {
|
|
3677
|
+
o && o.disconnect();
|
|
3678
|
+
}, []), /* @__PURE__ */ A(
|
|
3653
3679
|
"div",
|
|
3654
3680
|
{
|
|
3655
3681
|
style: {
|
|
@@ -3660,12 +3686,13 @@ function Hn(e) {
|
|
|
3660
3686
|
"video",
|
|
3661
3687
|
{
|
|
3662
3688
|
className: "builder-video",
|
|
3663
|
-
...
|
|
3664
|
-
|
|
3689
|
+
...i(),
|
|
3690
|
+
ref: t,
|
|
3691
|
+
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
3665
3692
|
style: {
|
|
3666
3693
|
width: "100%",
|
|
3667
3694
|
height: "100%",
|
|
3668
|
-
...(
|
|
3695
|
+
...(r = e.attributes) == null ? void 0 : r.style,
|
|
3669
3696
|
objectFit: e.fit,
|
|
3670
3697
|
objectPosition: e.position,
|
|
3671
3698
|
// Hack to get object fit to work as expected and
|
|
@@ -3675,12 +3702,21 @@ function Hn(e) {
|
|
|
3675
3702
|
position: "absolute"
|
|
3676
3703
|
} : null
|
|
3677
3704
|
},
|
|
3678
|
-
src: e.video || "no-src",
|
|
3679
3705
|
poster: e.posterImage,
|
|
3680
|
-
children:
|
|
3706
|
+
children: /* @__PURE__ */ s(
|
|
3707
|
+
"source",
|
|
3708
|
+
{
|
|
3709
|
+
type: "video/mp4",
|
|
3710
|
+
...e.lazyLoad ? {
|
|
3711
|
+
"data-src": e.video
|
|
3712
|
+
} : {
|
|
3713
|
+
src: e.video
|
|
3714
|
+
}
|
|
3715
|
+
}
|
|
3716
|
+
)
|
|
3681
3717
|
}
|
|
3682
3718
|
),
|
|
3683
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3719
|
+
e.aspectRatio && !(e.fitContent && ((d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length)) ? /* @__PURE__ */ s(
|
|
3684
3720
|
"div",
|
|
3685
3721
|
{
|
|
3686
3722
|
style: {
|
|
@@ -3691,7 +3727,7 @@ function Hn(e) {
|
|
|
3691
3727
|
}
|
|
3692
3728
|
}
|
|
3693
3729
|
) : null,
|
|
3694
|
-
(
|
|
3730
|
+
(h = (c = e.builderBlock) == null ? void 0 : c.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3695
3731
|
"div",
|
|
3696
3732
|
{
|
|
3697
3733
|
style: {
|
|
@@ -3702,7 +3738,7 @@ function Hn(e) {
|
|
|
3702
3738
|
children: e.children
|
|
3703
3739
|
}
|
|
3704
3740
|
) : null,
|
|
3705
|
-
(
|
|
3741
|
+
(u = (y = e.builderBlock) == null ? void 0 : y.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3706
3742
|
"div",
|
|
3707
3743
|
{
|
|
3708
3744
|
style: {
|
|
@@ -3723,67 +3759,67 @@ function Hn(e) {
|
|
|
3723
3759
|
}
|
|
3724
3760
|
);
|
|
3725
3761
|
}
|
|
3726
|
-
const
|
|
3727
|
-
component:
|
|
3728
|
-
...
|
|
3729
|
-
}, {
|
|
3730
|
-
component: Rn,
|
|
3731
|
-
...wn
|
|
3762
|
+
const zn = () => [{
|
|
3763
|
+
component: wn,
|
|
3764
|
+
...Tn
|
|
3732
3765
|
}, {
|
|
3733
|
-
component:
|
|
3734
|
-
...
|
|
3766
|
+
component: Pn,
|
|
3767
|
+
...In
|
|
3735
3768
|
}, {
|
|
3736
|
-
component:
|
|
3737
|
-
...
|
|
3769
|
+
component: An,
|
|
3770
|
+
...Vn
|
|
3738
3771
|
}, {
|
|
3739
|
-
component:
|
|
3740
|
-
...
|
|
3772
|
+
component: Dn,
|
|
3773
|
+
...Wn
|
|
3741
3774
|
}, {
|
|
3742
|
-
component:
|
|
3743
|
-
...
|
|
3775
|
+
component: Ln,
|
|
3776
|
+
...On
|
|
3744
3777
|
}, {
|
|
3745
|
-
component:
|
|
3746
|
-
|
|
3778
|
+
component: Fn,
|
|
3779
|
+
...$n
|
|
3747
3780
|
}, {
|
|
3748
|
-
component:
|
|
3749
|
-
...
|
|
3781
|
+
component: _n,
|
|
3782
|
+
...Un
|
|
3750
3783
|
}, {
|
|
3751
|
-
component:
|
|
3752
|
-
...
|
|
3753
|
-
}], Se = () => [{
|
|
3754
|
-
component: nt,
|
|
3755
|
-
...tn
|
|
3784
|
+
component: Mn,
|
|
3785
|
+
...qn
|
|
3756
3786
|
}, {
|
|
3757
|
-
component:
|
|
3787
|
+
component: jn,
|
|
3788
|
+
...Hn
|
|
3789
|
+
}], ke = () => [{
|
|
3790
|
+
component: it,
|
|
3758
3791
|
...nn
|
|
3759
3792
|
}, {
|
|
3760
3793
|
component: Jt,
|
|
3761
|
-
...
|
|
3794
|
+
...on
|
|
3762
3795
|
}, {
|
|
3763
|
-
component:
|
|
3764
|
-
...
|
|
3796
|
+
component: Gt,
|
|
3797
|
+
...an
|
|
3765
3798
|
}, {
|
|
3766
3799
|
component: Xt,
|
|
3767
|
-
...
|
|
3800
|
+
...ln
|
|
3768
3801
|
}, {
|
|
3769
|
-
component:
|
|
3802
|
+
component: Zt,
|
|
3770
3803
|
...bn
|
|
3771
3804
|
}, {
|
|
3772
|
-
component:
|
|
3773
|
-
...
|
|
3805
|
+
component: yn,
|
|
3806
|
+
...pn
|
|
3774
3807
|
}, {
|
|
3775
|
-
component:
|
|
3776
|
-
...
|
|
3808
|
+
component: bi,
|
|
3809
|
+
...vn
|
|
3777
3810
|
}, {
|
|
3778
|
-
component:
|
|
3779
|
-
...
|
|
3811
|
+
component: Cn,
|
|
3812
|
+
...kn
|
|
3780
3813
|
}, {
|
|
3781
|
-
component:
|
|
3782
|
-
...
|
|
3814
|
+
component: gn,
|
|
3815
|
+
...sn
|
|
3783
3816
|
}, {
|
|
3784
|
-
component:
|
|
3785
|
-
...
|
|
3786
|
-
},
|
|
3817
|
+
component: Sn,
|
|
3818
|
+
...xn
|
|
3819
|
+
}, {
|
|
3820
|
+
component: tn,
|
|
3821
|
+
...en
|
|
3822
|
+
}, ...zn()], Kn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3787
3823
|
function getAndSetVariantId() {
|
|
3788
3824
|
function setCookie(name, value, days) {
|
|
3789
3825
|
let expires = '';
|
|
@@ -3839,7 +3875,7 @@ const jn = () => [{
|
|
|
3839
3875
|
}).join('');
|
|
3840
3876
|
styleEl.innerHTML = newStyleStr;
|
|
3841
3877
|
}
|
|
3842
|
-
}`,
|
|
3878
|
+
}`, Jn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3843
3879
|
if (!navigator.cookieEnabled) {
|
|
3844
3880
|
return;
|
|
3845
3881
|
}
|
|
@@ -3873,29 +3909,29 @@ const jn = () => [{
|
|
|
3873
3909
|
thisScriptEl?.remove();
|
|
3874
3910
|
}
|
|
3875
3911
|
return;
|
|
3876
|
-
}`,
|
|
3912
|
+
}`, je = "builderIoAbTest", ze = "builderIoRenderContent", z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3877
3913
|
...t,
|
|
3878
3914
|
testVariationId: t.id,
|
|
3879
3915
|
id: e == null ? void 0 : e.id
|
|
3880
|
-
})),
|
|
3916
|
+
})), Gn = ({
|
|
3881
3917
|
canTrack: e,
|
|
3882
3918
|
content: t
|
|
3883
|
-
}) => !(!(z(t).length > 0) || !e ||
|
|
3884
|
-
window.${He} = ${zn}
|
|
3919
|
+
}) => !(!(z(t).length > 0) || !e || F()), Qn = (e) => e === "react" || e === "reactNative", Ke = Qn(O), Yn = () => `
|
|
3885
3920
|
window.${je} = ${Kn}
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3921
|
+
window.${ze} = ${Jn}
|
|
3922
|
+
`, Xn = (e, t) => `
|
|
3923
|
+
window.${je}(
|
|
3924
|
+
"${t}",${JSON.stringify(e)}, ${Ke}
|
|
3925
|
+
)`, Zn = ({
|
|
3890
3926
|
contentId: e,
|
|
3891
3927
|
variationId: t
|
|
3892
|
-
}) => `window.${
|
|
3893
|
-
"${t}", "${e}", ${
|
|
3928
|
+
}) => `window.${ze}(
|
|
3929
|
+
"${t}", "${e}", ${Ke}
|
|
3894
3930
|
)`;
|
|
3895
|
-
function
|
|
3931
|
+
function Ce(e) {
|
|
3896
3932
|
return Math.round(e * 1e3) / 1e3;
|
|
3897
3933
|
}
|
|
3898
|
-
const
|
|
3934
|
+
const ei = (e, t, n = !0) => {
|
|
3899
3935
|
if (!(e instanceof HTMLElement))
|
|
3900
3936
|
return null;
|
|
3901
3937
|
let i = n ? e : e.parentElement;
|
|
@@ -3906,39 +3942,39 @@ const Zn = (e, t, n = !0) => {
|
|
|
3906
3942
|
return i;
|
|
3907
3943
|
} while (i = i.parentElement);
|
|
3908
3944
|
return null;
|
|
3909
|
-
},
|
|
3945
|
+
}, ti = (e) => ei(e, (t) => {
|
|
3910
3946
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3911
3947
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3912
|
-
}),
|
|
3948
|
+
}), Te = ({
|
|
3913
3949
|
event: e,
|
|
3914
3950
|
target: t
|
|
3915
3951
|
}) => {
|
|
3916
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left,
|
|
3952
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Ce(i / n.width), r = Ce(o / n.height);
|
|
3917
3953
|
return {
|
|
3918
|
-
x:
|
|
3954
|
+
x: a,
|
|
3919
3955
|
y: r
|
|
3920
3956
|
};
|
|
3921
|
-
},
|
|
3922
|
-
const t = e.target, n = t &&
|
|
3957
|
+
}, ni = (e) => {
|
|
3958
|
+
const t = e.target, n = t && ti(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3923
3959
|
return {
|
|
3924
3960
|
targetBuilderElement: i || void 0,
|
|
3925
3961
|
metadata: {
|
|
3926
|
-
targetOffset: t ?
|
|
3962
|
+
targetOffset: t ? Te({
|
|
3927
3963
|
event: e,
|
|
3928
3964
|
target: t
|
|
3929
3965
|
}) : void 0,
|
|
3930
|
-
builderTargetOffset: n ?
|
|
3966
|
+
builderTargetOffset: n ? Te({
|
|
3931
3967
|
event: e,
|
|
3932
3968
|
target: n
|
|
3933
3969
|
}) : void 0,
|
|
3934
3970
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3935
3971
|
}
|
|
3936
3972
|
};
|
|
3937
|
-
},
|
|
3938
|
-
var
|
|
3939
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (
|
|
3940
|
-
let
|
|
3941
|
-
if (i && t && n && (
|
|
3973
|
+
}, ii = ["svelte", "qwik", "vue"], we = () => ii.includes(O) && (W() || Y()), oi = (e) => {
|
|
3974
|
+
var a, r;
|
|
3975
|
+
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;
|
|
3976
|
+
let o = "";
|
|
3977
|
+
if (i && t && n && (o += `
|
|
3942
3978
|
@font-face {
|
|
3943
3979
|
font-family: "${t}";
|
|
3944
3980
|
src: local("${n}"), url('${i}') format('woff2');
|
|
@@ -3950,7 +3986,7 @@ font-weight: 400;
|
|
|
3950
3986
|
if (!(String(Number(l)) === l))
|
|
3951
3987
|
continue;
|
|
3952
3988
|
const c = e.files[l];
|
|
3953
|
-
c && c !== i && (
|
|
3989
|
+
c && c !== i && (o += `
|
|
3954
3990
|
@font-face {
|
|
3955
3991
|
font-family: "${t}";
|
|
3956
3992
|
src: url('${c}') format('woff2');
|
|
@@ -3959,16 +3995,16 @@ font-weight: ${l};
|
|
|
3959
3995
|
}
|
|
3960
3996
|
`.trim());
|
|
3961
3997
|
}
|
|
3962
|
-
return
|
|
3998
|
+
return o;
|
|
3963
3999
|
}, ai = ({
|
|
3964
4000
|
customFonts: e
|
|
3965
4001
|
}) => {
|
|
3966
4002
|
var t;
|
|
3967
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3968
|
-
},
|
|
4003
|
+
return ((t = e == null ? void 0 : e.map((n) => oi(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4004
|
+
}, ri = ({
|
|
3969
4005
|
cssCode: e,
|
|
3970
4006
|
contentId: t
|
|
3971
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4007
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", li = `
|
|
3972
4008
|
.builder-button {
|
|
3973
4009
|
all: unset;
|
|
3974
4010
|
}
|
|
@@ -3985,103 +4021,103 @@ font-weight: ${l};
|
|
|
3985
4021
|
text-align: inherit;
|
|
3986
4022
|
font-family: inherit;
|
|
3987
4023
|
}
|
|
3988
|
-
`,
|
|
3989
|
-
function
|
|
3990
|
-
var S,
|
|
3991
|
-
const t =
|
|
3992
|
-
function n(
|
|
4024
|
+
`, si = (e) => e ? "" : li, ci = (e) => `variant-${e}`;
|
|
4025
|
+
function ui(e) {
|
|
4026
|
+
var S, C, P;
|
|
4027
|
+
const t = $(null);
|
|
4028
|
+
function n(w) {
|
|
3993
4029
|
var m, p;
|
|
3994
|
-
const
|
|
4030
|
+
const k = {
|
|
3995
4031
|
...e.builderContextSignal.rootState,
|
|
3996
|
-
...
|
|
4032
|
+
...w
|
|
3997
4033
|
};
|
|
3998
|
-
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m,
|
|
3999
|
-
...
|
|
4000
|
-
rootState:
|
|
4034
|
+
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, k) : e.setBuilderContextSignal((I) => ({
|
|
4035
|
+
...I,
|
|
4036
|
+
rootState: k
|
|
4001
4037
|
}));
|
|
4002
4038
|
}
|
|
4003
|
-
function i(
|
|
4004
|
-
var m, p,
|
|
4005
|
-
const
|
|
4039
|
+
function i(w) {
|
|
4040
|
+
var m, p, I, T, V;
|
|
4041
|
+
const k = {
|
|
4006
4042
|
...e.builderContextSignal.content,
|
|
4007
|
-
...
|
|
4043
|
+
...w,
|
|
4008
4044
|
data: {
|
|
4009
4045
|
...(m = e.builderContextSignal.content) == null ? void 0 : m.data,
|
|
4010
|
-
...
|
|
4046
|
+
...w == null ? void 0 : w.data
|
|
4011
4047
|
},
|
|
4012
4048
|
meta: {
|
|
4013
4049
|
...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
|
|
4014
|
-
...
|
|
4015
|
-
breakpoints: ((
|
|
4050
|
+
...w == null ? void 0 : w.meta,
|
|
4051
|
+
breakpoints: ((I = w == null ? void 0 : w.meta) == null ? void 0 : I.breakpoints) || ((V = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : V.breakpoints)
|
|
4016
4052
|
}
|
|
4017
4053
|
};
|
|
4018
|
-
e.setBuilderContextSignal((
|
|
4019
|
-
...
|
|
4020
|
-
content:
|
|
4054
|
+
e.setBuilderContextSignal((N) => ({
|
|
4055
|
+
...N,
|
|
4056
|
+
content: k
|
|
4021
4057
|
}));
|
|
4022
4058
|
}
|
|
4023
|
-
function
|
|
4059
|
+
function o() {
|
|
4024
4060
|
return e.showContent ? {} : {
|
|
4025
4061
|
hidden: !0,
|
|
4026
4062
|
"aria-hidden": !0
|
|
4027
4063
|
};
|
|
4028
4064
|
}
|
|
4029
|
-
const [
|
|
4065
|
+
const [a, r] = E(
|
|
4030
4066
|
() => e.contentWrapper || "div"
|
|
4031
4067
|
);
|
|
4032
|
-
function l(
|
|
4033
|
-
return
|
|
4068
|
+
function l(w) {
|
|
4069
|
+
return Xe({
|
|
4034
4070
|
model: e.model,
|
|
4035
4071
|
trustedHosts: e.trustedHosts,
|
|
4036
4072
|
callbacks: {
|
|
4037
|
-
configureSdk: (
|
|
4038
|
-
var
|
|
4039
|
-
const { breakpoints: m, contentId: p } =
|
|
4040
|
-
!p || p !== ((
|
|
4073
|
+
configureSdk: (k) => {
|
|
4074
|
+
var I;
|
|
4075
|
+
const { breakpoints: m, contentId: p } = k;
|
|
4076
|
+
!p || p !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || m && i({
|
|
4041
4077
|
meta: {
|
|
4042
4078
|
breakpoints: m
|
|
4043
4079
|
}
|
|
4044
4080
|
});
|
|
4045
4081
|
},
|
|
4046
|
-
animation: (
|
|
4047
|
-
|
|
4082
|
+
animation: (k) => {
|
|
4083
|
+
Oe(k);
|
|
4048
4084
|
},
|
|
4049
|
-
contentUpdate: (
|
|
4050
|
-
i(
|
|
4085
|
+
contentUpdate: (k) => {
|
|
4086
|
+
i(k);
|
|
4051
4087
|
}
|
|
4052
4088
|
}
|
|
4053
|
-
})(
|
|
4089
|
+
})(w);
|
|
4054
4090
|
}
|
|
4055
|
-
const [
|
|
4056
|
-
function f(
|
|
4057
|
-
var
|
|
4091
|
+
const [d, c] = E(() => ({})), [h, y] = E(() => ({})), [u, v] = E(() => !1);
|
|
4092
|
+
function f(w) {
|
|
4093
|
+
var k, m;
|
|
4058
4094
|
if (e.builderContextSignal.content) {
|
|
4059
|
-
const p = (
|
|
4060
|
-
|
|
4095
|
+
const p = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, I = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
|
|
4096
|
+
he({
|
|
4061
4097
|
apiHost: e.apiHost,
|
|
4062
4098
|
type: "click",
|
|
4063
|
-
canTrack:
|
|
4064
|
-
contentId:
|
|
4099
|
+
canTrack: M(e.canTrack),
|
|
4100
|
+
contentId: I,
|
|
4065
4101
|
apiKey: e.apiKey,
|
|
4066
|
-
variationId: p !==
|
|
4067
|
-
...
|
|
4068
|
-
unique: !
|
|
4102
|
+
variationId: p !== I ? p : void 0,
|
|
4103
|
+
...ni(w),
|
|
4104
|
+
unique: !u
|
|
4069
4105
|
});
|
|
4070
4106
|
}
|
|
4071
|
-
|
|
4107
|
+
u || v(!0);
|
|
4072
4108
|
}
|
|
4073
|
-
function
|
|
4074
|
-
var
|
|
4075
|
-
const
|
|
4076
|
-
Object.entries(
|
|
4077
|
-
if (!
|
|
4109
|
+
function g() {
|
|
4110
|
+
var k, m, p;
|
|
4111
|
+
const w = (p = (m = (k = e.builderContextSignal.content) == null ? void 0 : k.data) == null ? void 0 : m.httpRequests) != null ? p : {};
|
|
4112
|
+
Object.entries(w).forEach(([I, T]) => {
|
|
4113
|
+
if (!T || h[I] || d[I] && !W())
|
|
4078
4114
|
return;
|
|
4079
|
-
h[
|
|
4080
|
-
const
|
|
4115
|
+
h[I] = !0;
|
|
4116
|
+
const V = T.replace(
|
|
4081
4117
|
/{{([^}]+)}}/g,
|
|
4082
|
-
(
|
|
4118
|
+
(N, U) => String(
|
|
4083
4119
|
L({
|
|
4084
|
-
code:
|
|
4120
|
+
code: U,
|
|
4085
4121
|
context: e.context || {},
|
|
4086
4122
|
localState: void 0,
|
|
4087
4123
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4089,14 +4125,14 @@ function ci(e) {
|
|
|
4089
4125
|
})
|
|
4090
4126
|
)
|
|
4091
4127
|
);
|
|
4092
|
-
|
|
4128
|
+
Ee(V), fetch(V).then((N) => N.json()).then((N) => {
|
|
4093
4129
|
n({
|
|
4094
|
-
[
|
|
4095
|
-
}),
|
|
4096
|
-
}).catch((
|
|
4097
|
-
console.error("error fetching dynamic data",
|
|
4130
|
+
[I]: N
|
|
4131
|
+
}), d[I] = !0;
|
|
4132
|
+
}).catch((N) => {
|
|
4133
|
+
console.error("error fetching dynamic data", T, N);
|
|
4098
4134
|
}).finally(() => {
|
|
4099
|
-
h[
|
|
4135
|
+
h[I] = !1;
|
|
4100
4136
|
});
|
|
4101
4137
|
});
|
|
4102
4138
|
}
|
|
@@ -4115,11 +4151,11 @@ function ci(e) {
|
|
|
4115
4151
|
)
|
|
4116
4152
|
);
|
|
4117
4153
|
}
|
|
4118
|
-
const
|
|
4119
|
-
return
|
|
4120
|
-
var
|
|
4121
|
-
if (
|
|
4122
|
-
if (W() && !e.isNestedRender && (window.addEventListener("message", l),
|
|
4154
|
+
const b = $(!1);
|
|
4155
|
+
return b.current || (g(), x(), b.current = !0), B(() => {
|
|
4156
|
+
var w, k, m, p;
|
|
4157
|
+
if (F()) {
|
|
4158
|
+
if (W() && !e.isNestedRender && (window.addEventListener("message", l), Ge(), Qe({
|
|
4123
4159
|
...e.locale ? {
|
|
4124
4160
|
locale: e.locale
|
|
4125
4161
|
} : {},
|
|
@@ -4128,96 +4164,98 @@ function ci(e) {
|
|
|
4128
4164
|
} : {},
|
|
4129
4165
|
...e.trustedHosts ? {
|
|
4130
4166
|
trustedHosts: e.trustedHosts
|
|
4131
|
-
} : {}
|
|
4167
|
+
} : {},
|
|
4168
|
+
modelName: (w = e.model) != null ? w : "",
|
|
4169
|
+
apiKey: e.apiKey
|
|
4132
4170
|
}), Object.values(
|
|
4133
4171
|
e.builderContextSignal.componentInfos
|
|
4134
|
-
).forEach((
|
|
4135
|
-
var
|
|
4136
|
-
if (!
|
|
4137
|
-
const
|
|
4138
|
-
(
|
|
4172
|
+
).forEach((T) => {
|
|
4173
|
+
var V, N;
|
|
4174
|
+
if (!((V = T.models) != null && V.length) || T.models.includes(e.model)) {
|
|
4175
|
+
const U = Ye(T);
|
|
4176
|
+
(N = window.parent) == null || N.postMessage(U, "*");
|
|
4139
4177
|
}
|
|
4140
4178
|
}), window.addEventListener(
|
|
4141
4179
|
"builder:component:stateChangeListenerActivated",
|
|
4142
4180
|
x
|
|
4143
|
-
)), e.builderContextSignal.content &&
|
|
4144
|
-
const
|
|
4145
|
-
|
|
4181
|
+
)), e.builderContextSignal.content && M(e.canTrack)) {
|
|
4182
|
+
const T = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, V = (m = e.builderContextSignal.content) == null ? void 0 : m.id, N = e.apiKey;
|
|
4183
|
+
he({
|
|
4146
4184
|
apiHost: e.apiHost,
|
|
4147
4185
|
type: "impression",
|
|
4148
4186
|
canTrack: !0,
|
|
4149
|
-
contentId:
|
|
4150
|
-
apiKey:
|
|
4151
|
-
variationId:
|
|
4187
|
+
contentId: V,
|
|
4188
|
+
apiKey: N,
|
|
4189
|
+
variationId: T !== V ? T : void 0
|
|
4152
4190
|
});
|
|
4153
4191
|
}
|
|
4154
4192
|
if (Y() && !W()) {
|
|
4155
|
-
const
|
|
4156
|
-
`builder.overrides.${
|
|
4157
|
-
),
|
|
4158
|
-
(
|
|
4159
|
-
model: e.model
|
|
4193
|
+
const T = new URL(location.href).searchParams, V = T.get("builder.preview"), N = T.get(
|
|
4194
|
+
`builder.overrides.${V}`
|
|
4195
|
+
), U = T.get("apiKey") || T.get("builder.space");
|
|
4196
|
+
(V === "BUILDER_STUDIO" || V === e.model && U === e.apiKey && (!e.content || N === e.content.id)) && Re({
|
|
4197
|
+
model: e.model,
|
|
4160
4198
|
apiKey: e.apiKey,
|
|
4161
4199
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4162
|
-
...
|
|
4200
|
+
...V === "BUILDER_STUDIO" && ((p = e.context) != null && p.symbolId) ? {
|
|
4163
4201
|
query: {
|
|
4164
4202
|
id: e.context.symbolId
|
|
4165
4203
|
}
|
|
4166
4204
|
} : {}
|
|
4167
|
-
}).then((
|
|
4168
|
-
|
|
4205
|
+
}).then((me) => {
|
|
4206
|
+
me && i(me);
|
|
4169
4207
|
});
|
|
4170
4208
|
}
|
|
4171
4209
|
}
|
|
4172
|
-
}, []),
|
|
4210
|
+
}, []), B(() => {
|
|
4173
4211
|
e.content && i(e.content);
|
|
4174
|
-
}, [e.content]),
|
|
4212
|
+
}, [e.content]), B(() => {
|
|
4175
4213
|
x();
|
|
4176
|
-
}, [e.builderContextSignal.rootState]),
|
|
4214
|
+
}, [e.builderContextSignal.rootState]), B(() => {
|
|
4177
4215
|
e.data && n(e.data);
|
|
4178
|
-
}, [e.data]),
|
|
4216
|
+
}, [e.data]), B(() => {
|
|
4179
4217
|
e.locale && n({
|
|
4180
4218
|
locale: e.locale
|
|
4181
4219
|
});
|
|
4182
|
-
}, [e.locale]),
|
|
4183
|
-
|
|
4220
|
+
}, [e.locale]), B(() => () => {
|
|
4221
|
+
F() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
4184
4222
|
"builder:component:stateChangeListenerActivated",
|
|
4185
4223
|
x
|
|
4186
4224
|
));
|
|
4187
|
-
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ||
|
|
4188
|
-
|
|
4225
|
+
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || we() ? /* @__PURE__ */ s(
|
|
4226
|
+
a,
|
|
4189
4227
|
{
|
|
4190
4228
|
ref: t,
|
|
4191
|
-
onClick: (
|
|
4229
|
+
onClick: (w) => f(w),
|
|
4192
4230
|
"builder-content-id": (S = e.builderContextSignal.content) == null ? void 0 : S.id,
|
|
4193
4231
|
"builder-model": e.model,
|
|
4194
|
-
className:
|
|
4195
|
-
((
|
|
4232
|
+
className: ci(
|
|
4233
|
+
((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
|
|
4196
4234
|
),
|
|
4197
4235
|
style: {
|
|
4198
|
-
display: !e.builderContextSignal.content &&
|
|
4236
|
+
display: !e.builderContextSignal.content && we() ? "none" : void 0
|
|
4199
4237
|
},
|
|
4200
|
-
...
|
|
4238
|
+
...o(),
|
|
4201
4239
|
...e.contentWrapperProps,
|
|
4202
4240
|
children: e.children
|
|
4203
4241
|
}
|
|
4204
4242
|
) : null });
|
|
4205
4243
|
}
|
|
4206
|
-
function
|
|
4244
|
+
function di(e) {
|
|
4207
4245
|
const [t, n] = E(
|
|
4208
4246
|
() => `
|
|
4209
|
-
${
|
|
4247
|
+
${ri({
|
|
4210
4248
|
cssCode: e.cssCode,
|
|
4211
4249
|
contentId: e.contentId
|
|
4212
4250
|
})}
|
|
4213
4251
|
${ai({
|
|
4214
4252
|
customFonts: e.customFonts
|
|
4215
4253
|
})}
|
|
4216
|
-
${
|
|
4254
|
+
${si(e.isNestedRender)}
|
|
4217
4255
|
`.trim()
|
|
4218
4256
|
);
|
|
4219
4257
|
return /* @__PURE__ */ s(
|
|
4220
|
-
|
|
4258
|
+
j,
|
|
4221
4259
|
{
|
|
4222
4260
|
id: "builderio-content",
|
|
4223
4261
|
styles: t,
|
|
@@ -4225,24 +4263,24 @@ ${li(e.isNestedRender)}
|
|
|
4225
4263
|
}
|
|
4226
4264
|
);
|
|
4227
4265
|
}
|
|
4228
|
-
const
|
|
4266
|
+
const mi = ({
|
|
4229
4267
|
content: e,
|
|
4230
4268
|
data: t,
|
|
4231
4269
|
locale: n
|
|
4232
4270
|
}) => {
|
|
4233
|
-
var
|
|
4234
|
-
const i = {},
|
|
4235
|
-
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((
|
|
4236
|
-
|
|
4271
|
+
var a, r, l;
|
|
4272
|
+
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
4273
|
+
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((d) => {
|
|
4274
|
+
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
4237
4275
|
}), {
|
|
4238
4276
|
...i,
|
|
4239
|
-
...
|
|
4277
|
+
...o,
|
|
4240
4278
|
...t,
|
|
4241
4279
|
...n ? {
|
|
4242
4280
|
locale: n
|
|
4243
4281
|
} : {}
|
|
4244
4282
|
};
|
|
4245
|
-
},
|
|
4283
|
+
}, fi = ({
|
|
4246
4284
|
content: e,
|
|
4247
4285
|
data: t
|
|
4248
4286
|
}) => e ? {
|
|
@@ -4253,46 +4291,46 @@ const di = ({
|
|
|
4253
4291
|
},
|
|
4254
4292
|
meta: e == null ? void 0 : e.meta
|
|
4255
4293
|
} : void 0;
|
|
4256
|
-
function
|
|
4257
|
-
var c, h,
|
|
4294
|
+
function Ie(e) {
|
|
4295
|
+
var c, h, y, u, v, f, g, x, b;
|
|
4258
4296
|
const [t, n] = E(
|
|
4259
4297
|
() => {
|
|
4260
|
-
var S,
|
|
4261
|
-
return
|
|
4298
|
+
var S, C;
|
|
4299
|
+
return Zn({
|
|
4262
4300
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4263
4301
|
variationId: (S = e.content) == null ? void 0 : S.testVariationId,
|
|
4264
4302
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4265
|
-
contentId: (
|
|
4303
|
+
contentId: (C = e.content) == null ? void 0 : C.id
|
|
4266
4304
|
});
|
|
4267
4305
|
}
|
|
4268
4306
|
);
|
|
4269
4307
|
function i(S) {
|
|
4270
|
-
l((
|
|
4271
|
-
...
|
|
4308
|
+
l((C) => ({
|
|
4309
|
+
...C,
|
|
4272
4310
|
rootState: S
|
|
4273
4311
|
}));
|
|
4274
4312
|
}
|
|
4275
|
-
const [
|
|
4313
|
+
const [o, a] = E(
|
|
4276
4314
|
() => [
|
|
4277
|
-
...
|
|
4315
|
+
...ke(),
|
|
4278
4316
|
...e.customComponents || []
|
|
4279
4317
|
].reduce(
|
|
4280
|
-
(S, { component:
|
|
4318
|
+
(S, { component: C, ...P }) => ({
|
|
4281
4319
|
...S,
|
|
4282
4320
|
[P.name]: {
|
|
4283
|
-
component:
|
|
4284
|
-
...
|
|
4321
|
+
component: C,
|
|
4322
|
+
...ge(P)
|
|
4285
4323
|
}
|
|
4286
4324
|
}),
|
|
4287
4325
|
{}
|
|
4288
4326
|
)
|
|
4289
4327
|
), [r, l] = E(() => ({
|
|
4290
|
-
content:
|
|
4328
|
+
content: fi({
|
|
4291
4329
|
content: e.content,
|
|
4292
4330
|
data: e.data
|
|
4293
4331
|
}),
|
|
4294
4332
|
localState: void 0,
|
|
4295
|
-
rootState:
|
|
4333
|
+
rootState: mi({
|
|
4296
4334
|
content: e.content,
|
|
4297
4335
|
data: e.data,
|
|
4298
4336
|
locale: e.locale
|
|
@@ -4303,12 +4341,12 @@ function we(e) {
|
|
|
4303
4341
|
apiKey: e.apiKey,
|
|
4304
4342
|
apiVersion: e.apiVersion,
|
|
4305
4343
|
componentInfos: [
|
|
4306
|
-
...
|
|
4344
|
+
...ke(),
|
|
4307
4345
|
...e.customComponents || []
|
|
4308
4346
|
].reduce(
|
|
4309
|
-
(S, { component:
|
|
4347
|
+
(S, { component: C, ...P }) => ({
|
|
4310
4348
|
...S,
|
|
4311
|
-
[P.name]:
|
|
4349
|
+
[P.name]: ge(P)
|
|
4312
4350
|
}),
|
|
4313
4351
|
{}
|
|
4314
4352
|
),
|
|
@@ -4316,9 +4354,9 @@ function we(e) {
|
|
|
4316
4354
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
4317
4355
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4318
4356
|
nonce: e.nonce || "",
|
|
4319
|
-
model: e.model
|
|
4320
|
-
})),
|
|
4321
|
-
if (!
|
|
4357
|
+
model: e.model
|
|
4358
|
+
})), d = $(!1);
|
|
4359
|
+
if (!d.current) {
|
|
4322
4360
|
e.apiKey || Q.error(
|
|
4323
4361
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4324
4362
|
);
|
|
@@ -4328,20 +4366,20 @@ function we(e) {
|
|
|
4328
4366
|
context: e.context || {},
|
|
4329
4367
|
localState: void 0,
|
|
4330
4368
|
rootState: r.rootState,
|
|
4331
|
-
rootSetState: (
|
|
4332
|
-
Object.assign(r.rootState,
|
|
4369
|
+
rootSetState: (C) => {
|
|
4370
|
+
Object.assign(r.rootState, C);
|
|
4333
4371
|
},
|
|
4334
4372
|
isExpression: !1
|
|
4335
|
-
}),
|
|
4373
|
+
}), d.current = !0;
|
|
4336
4374
|
}
|
|
4337
4375
|
return /* @__PURE__ */ s(
|
|
4338
|
-
|
|
4376
|
+
Be.Provider,
|
|
4339
4377
|
{
|
|
4340
4378
|
value: {
|
|
4341
|
-
registeredComponents:
|
|
4379
|
+
registeredComponents: o
|
|
4342
4380
|
},
|
|
4343
|
-
children: /* @__PURE__ */
|
|
4344
|
-
|
|
4381
|
+
children: /* @__PURE__ */ A(
|
|
4382
|
+
ui,
|
|
4345
4383
|
{
|
|
4346
4384
|
apiHost: e.apiHost,
|
|
4347
4385
|
nonce: e.nonce,
|
|
@@ -4370,21 +4408,21 @@ function we(e) {
|
|
|
4370
4408
|
}
|
|
4371
4409
|
) : null,
|
|
4372
4410
|
/* @__PURE__ */ s(
|
|
4373
|
-
|
|
4411
|
+
di,
|
|
4374
4412
|
{
|
|
4375
4413
|
nonce: e.nonce || "",
|
|
4376
4414
|
isNestedRender: e.isNestedRender,
|
|
4377
|
-
contentId: (
|
|
4378
|
-
cssCode: (
|
|
4379
|
-
customFonts: (
|
|
4415
|
+
contentId: (y = r.content) == null ? void 0 : y.id,
|
|
4416
|
+
cssCode: (v = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : v.cssCode,
|
|
4417
|
+
customFonts: (g = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : g.customFonts
|
|
4380
4418
|
}
|
|
4381
4419
|
),
|
|
4382
4420
|
/* @__PURE__ */ s(
|
|
4383
4421
|
D,
|
|
4384
4422
|
{
|
|
4385
|
-
blocks: (
|
|
4423
|
+
blocks: (b = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : b.blocks,
|
|
4386
4424
|
context: r,
|
|
4387
|
-
registeredComponents:
|
|
4425
|
+
registeredComponents: o,
|
|
4388
4426
|
linkComponent: e.linkComponent
|
|
4389
4427
|
}
|
|
4390
4428
|
)
|
|
@@ -4394,53 +4432,53 @@ function we(e) {
|
|
|
4394
4432
|
}
|
|
4395
4433
|
);
|
|
4396
4434
|
}
|
|
4397
|
-
function
|
|
4435
|
+
function hi(e) {
|
|
4398
4436
|
var r;
|
|
4399
4437
|
const [t, n] = E(
|
|
4400
|
-
() =>
|
|
4401
|
-
canTrack:
|
|
4438
|
+
() => Gn({
|
|
4439
|
+
canTrack: M(e.canTrack),
|
|
4402
4440
|
content: e.content
|
|
4403
4441
|
})
|
|
4404
4442
|
);
|
|
4405
4443
|
function i() {
|
|
4406
4444
|
var l;
|
|
4407
|
-
return
|
|
4408
|
-
z(e.content).map((
|
|
4409
|
-
id:
|
|
4410
|
-
testRatio:
|
|
4445
|
+
return Xn(
|
|
4446
|
+
z(e.content).map((d) => ({
|
|
4447
|
+
id: d.testVariationId,
|
|
4448
|
+
testRatio: d.testRatio
|
|
4411
4449
|
})),
|
|
4412
4450
|
((l = e.content) == null ? void 0 : l.id) || ""
|
|
4413
4451
|
);
|
|
4414
4452
|
}
|
|
4415
|
-
function
|
|
4453
|
+
function o() {
|
|
4416
4454
|
return z(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4417
4455
|
}
|
|
4418
|
-
function
|
|
4456
|
+
function a() {
|
|
4419
4457
|
var l;
|
|
4420
4458
|
return t ? {
|
|
4421
4459
|
...e.content,
|
|
4422
4460
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4423
|
-
} :
|
|
4461
|
+
} : Ze({
|
|
4424
4462
|
item: e.content,
|
|
4425
|
-
canTrack:
|
|
4463
|
+
canTrack: M(e.canTrack)
|
|
4426
4464
|
});
|
|
4427
4465
|
}
|
|
4428
|
-
return
|
|
4429
|
-
}, []), /* @__PURE__ */
|
|
4466
|
+
return B(() => {
|
|
4467
|
+
}, []), /* @__PURE__ */ A(R, { children: [
|
|
4430
4468
|
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
|
|
4431
4469
|
G,
|
|
4432
4470
|
{
|
|
4433
4471
|
id: "builderio-init-variants-fns",
|
|
4434
|
-
scriptStr:
|
|
4472
|
+
scriptStr: Yn(),
|
|
4435
4473
|
nonce: e.nonce || ""
|
|
4436
4474
|
}
|
|
4437
4475
|
) : null,
|
|
4438
|
-
t ? /* @__PURE__ */
|
|
4476
|
+
t ? /* @__PURE__ */ A(R, { children: [
|
|
4439
4477
|
/* @__PURE__ */ s(
|
|
4440
|
-
|
|
4478
|
+
j,
|
|
4441
4479
|
{
|
|
4442
4480
|
id: "builderio-variants",
|
|
4443
|
-
styles:
|
|
4481
|
+
styles: o(),
|
|
4444
4482
|
nonce: e.nonce || ""
|
|
4445
4483
|
}
|
|
4446
4484
|
),
|
|
@@ -4453,7 +4491,7 @@ function fi(e) {
|
|
|
4453
4491
|
}
|
|
4454
4492
|
),
|
|
4455
4493
|
(r = z(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
4456
|
-
|
|
4494
|
+
Ie,
|
|
4457
4495
|
{
|
|
4458
4496
|
apiHost: e.apiHost,
|
|
4459
4497
|
isNestedRender: e.isNestedRender,
|
|
@@ -4481,12 +4519,12 @@ function fi(e) {
|
|
|
4481
4519
|
))
|
|
4482
4520
|
] }) : null,
|
|
4483
4521
|
/* @__PURE__ */ s(
|
|
4484
|
-
|
|
4522
|
+
Ie,
|
|
4485
4523
|
{
|
|
4486
4524
|
apiHost: e.apiHost,
|
|
4487
4525
|
nonce: e.nonce,
|
|
4488
4526
|
isNestedRender: e.isNestedRender,
|
|
4489
|
-
content:
|
|
4527
|
+
content: a(),
|
|
4490
4528
|
showContent: !0,
|
|
4491
4529
|
model: e.model,
|
|
4492
4530
|
data: e.data,
|
|
@@ -4508,13 +4546,13 @@ function fi(e) {
|
|
|
4508
4546
|
)
|
|
4509
4547
|
] });
|
|
4510
4548
|
}
|
|
4511
|
-
const
|
|
4549
|
+
const gi = async ({
|
|
4512
4550
|
builderContextValue: e,
|
|
4513
4551
|
symbol: t
|
|
4514
4552
|
}) => {
|
|
4515
4553
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4516
4554
|
(e != null && e.apiKey))
|
|
4517
|
-
return
|
|
4555
|
+
return Re({
|
|
4518
4556
|
model: t.model,
|
|
4519
4557
|
apiKey: e.apiKey,
|
|
4520
4558
|
apiVersion: e.apiVersion,
|
|
@@ -4527,8 +4565,8 @@ const hi = async ({
|
|
|
4527
4565
|
Q.error("Could not fetch symbol content: ", n);
|
|
4528
4566
|
});
|
|
4529
4567
|
};
|
|
4530
|
-
function
|
|
4531
|
-
var l,
|
|
4568
|
+
function bi(e) {
|
|
4569
|
+
var l, d, c, h, y;
|
|
4532
4570
|
function t() {
|
|
4533
4571
|
return "div";
|
|
4534
4572
|
}
|
|
@@ -4536,31 +4574,31 @@ function gi(e) {
|
|
|
4536
4574
|
return "div";
|
|
4537
4575
|
}
|
|
4538
4576
|
function i() {
|
|
4539
|
-
var
|
|
4577
|
+
var u, v;
|
|
4540
4578
|
return [
|
|
4541
|
-
e.attributes[
|
|
4579
|
+
e.attributes[H()],
|
|
4542
4580
|
"builder-symbol",
|
|
4543
|
-
(
|
|
4544
|
-
(
|
|
4581
|
+
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
4582
|
+
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4545
4583
|
].filter(Boolean).join(" ");
|
|
4546
4584
|
}
|
|
4547
|
-
const [
|
|
4548
|
-
var
|
|
4549
|
-
return (
|
|
4585
|
+
const [o, a] = E(() => {
|
|
4586
|
+
var u;
|
|
4587
|
+
return (u = e.symbol) == null ? void 0 : u.content;
|
|
4550
4588
|
});
|
|
4551
4589
|
function r() {
|
|
4552
|
-
|
|
4590
|
+
o || gi({
|
|
4553
4591
|
symbol: e.symbol,
|
|
4554
4592
|
builderContextValue: e.builderContext
|
|
4555
|
-
}).then((
|
|
4556
|
-
|
|
4593
|
+
}).then((u) => {
|
|
4594
|
+
u && a(u);
|
|
4557
4595
|
});
|
|
4558
4596
|
}
|
|
4559
|
-
return
|
|
4560
|
-
}, []),
|
|
4597
|
+
return B(() => {
|
|
4598
|
+
}, []), B(() => {
|
|
4561
4599
|
r();
|
|
4562
4600
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4563
|
-
|
|
4601
|
+
hi,
|
|
4564
4602
|
{
|
|
4565
4603
|
nonce: e.builderContext.nonce,
|
|
4566
4604
|
isNestedRender: !0,
|
|
@@ -4572,13 +4610,13 @@ function gi(e) {
|
|
|
4572
4610
|
},
|
|
4573
4611
|
customComponents: Object.values(e.builderComponents),
|
|
4574
4612
|
data: {
|
|
4575
|
-
...(
|
|
4613
|
+
...(d = e.symbol) == null ? void 0 : d.data,
|
|
4576
4614
|
...e.builderContext.localState,
|
|
4577
|
-
...(c =
|
|
4615
|
+
...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
|
|
4578
4616
|
},
|
|
4579
4617
|
canTrack: e.builderContext.canTrack,
|
|
4580
|
-
model: (h = e.symbol) == null ? void 0 : h.model,
|
|
4581
|
-
content:
|
|
4618
|
+
model: (y = (h = e.symbol) == null ? void 0 : h.model) != null ? y : "",
|
|
4619
|
+
content: o,
|
|
4582
4620
|
linkComponent: e.builderLinkComponent,
|
|
4583
4621
|
blocksWrapper: t(),
|
|
4584
4622
|
contentWrapper: n()
|
|
@@ -4588,14 +4626,14 @@ function gi(e) {
|
|
|
4588
4626
|
export {
|
|
4589
4627
|
D as Blocks,
|
|
4590
4628
|
se as BuilderContext,
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4629
|
+
it as Button,
|
|
4630
|
+
Jt as Columns,
|
|
4631
|
+
hi as Content,
|
|
4632
|
+
Gt as Fragment,
|
|
4633
|
+
Xt as Image,
|
|
4634
|
+
Zt as Section,
|
|
4635
|
+
bi as Symbol,
|
|
4636
|
+
Cn as Text,
|
|
4637
|
+
jn as Video,
|
|
4638
|
+
ki as setClientUserAttributes
|
|
4601
4639
|
};
|